1 2013-05-03 Richard Biener <rguenther@suse.de>
3 * double-int.h (lshift): New overload without precision
5 (operator *=, operator +=, operator -=): Move ...
6 * double-int.c (operator *=, operator +=, operator -=): ... here
7 and implement more efficiently.
8 (mul_double_with_sign): Remove.
9 (lshift_double): Adjust to take unsinged shift argument, push
10 dispatching code to callers.
11 (mul_double_wide_with_sign): Add early out for callers that
12 are not interested in high parts or overflow.
13 (lshift): New function.
14 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
16 (lrotate, rrotate): Use logical shifts.
17 * expr.c (get_inner_reference): Use lshift.
18 * fixed-value.c (do_fixed_divide): Likewise.
19 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21 (indirect_refs_may_alias_p): Likewise.
22 (stmt_kills_ref_p_1): Likewise.
24 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
26 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
31 scalar form of FABD instruction.
33 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
35 * lra-constraints.c (process_alt_operands): Add checking alt
36 number to choose the best alternative.
38 2013-05-02 Richard Biener <rguenther@suse.de>
40 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
41 bitmap and its handling.
42 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
44 2013-05-02 Richard Biener <rguenther@suse.de>
47 * tree-inline.c (copy_loops): Properly handle removed loops.
48 (copy_cfg_body): Mark destination loops for fixup if source
51 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
54 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
55 generating simple_return for naked functions.
57 2013-05-02 Martin Jambor <mjambor@suse.cz>
60 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
61 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
63 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
64 ipa_agg_replacement_value structures.
65 (known_aggs_to_agg_replacement_list): Likewise.
66 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
67 (read_agg_replacement_chain): Likewise.
68 (ipcp_transform_function): Also check that by_ref flags match.
70 2013-05-02 Richard Biener <rguenther@suse.de>
72 * graphds.h (struct graph): Add obstack member.
73 * graphds.c (new_graph): Initialize obstack and allocate
75 (add_edge): Allocate edge from the obstack.
76 (free_graph): Free the obstack instead of all edges and
79 2013-05-02 Teresa Johnson <tejohnson@google.com>
81 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
83 * cfg.c (update_bb_profile_for_threading): Ditto.
84 * tree-inline.c (copy_bb): Ditto.
85 (copy_edges_for_bb): Ditto.
86 (initialize_cfun): Ditto.
87 (copy_cfg_body): Ditto.
88 (expand_call_inline): Ditto.
89 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
90 (estimate_node_size_and_time): Ditto.
91 (inline_merge_summary): Ditto.
92 * cgraphclones.c (cgraph_clone_edge): Ditto.
93 (cgraph_clone_node): Ditto.
94 * sched-rgn.c (compute_dom_prob_ps): Ditto.
95 (compute_trg_info): Ditto.
97 2013-05-02 Ian Bolton <ian.bolton@arm.com>
99 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
100 S reg when fp attribute set.
101 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
103 2013-05-02 Ian Bolton <ian.bolton@arm.com>
105 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
107 (*and_one_cmplsi3_compare0_uxtw): Likewise.
108 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
109 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
111 2013-05-02 Richard Biener <rguenther@suse.de>
113 * tree-scalar-evolution.c (scev_info_hasher): Remove.
114 (struct instantiate_cache_entry): New type.
115 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
116 (struct instantiate_cache_type): New type.
117 (set_instantiated_value, get_instantiated_value): Remove.
118 (get_instantiated_value_entry): New function.
119 (instantiate_scev_name): Use the new cache and adjust.
120 (instantiate_scev_poly): Adjust.
121 (instantiate_scev_binary): Likewise.
122 (instantiate_array_ref): Likewise.
123 (instantiate_scev_convert): Likewise.
124 (instantiate_scev_not): Likewise.
125 (instantiate_scev_3): Likewise.
126 (instantiate_scev_2): Likewise.
127 (instantiate_scev_r): Likewise.
128 (instantiate_scev): Likewise.
129 (resolve_mixers): Likewise.
131 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
134 * lra-constraints.c (best_small_class_operands_num): Remove.
135 (process_alt_operands): Remove small_class_operands_num. Take
136 small classes operands into losers and only if the operand is not
137 matched. Modify debugging output.
138 (curr_insn_transform): Remove best_small_class_operands_num.
141 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
143 * config/aarch64/aarch64-builtins.c
144 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
145 * config/aarch64/aarch64-simd-builtins.def
146 (reduc_splus_): Add new modes.
148 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
149 (reduc_uplus_v4sf): Likewise.
150 (reduc_splus_v4sf): Likewise.
151 (aarch64_addv<mode>): Likewise.
152 (reduc_uplus_<mode>): Likewise.
153 (reduc_splus_<mode>): Likewise.
154 (aarch64_addvv2di): Likewise.
155 (reduc_uplus_v2di): Likewise.
156 (reduc_splus_v2di): Likewise.
157 (aarch64_addvv2si): Likewise.
158 (reduc_uplus_v2si): Likewise.
159 (reduc_splus_v2si): Likewise.
160 (reduc_<sur>plus_<mode>): New.
161 (reduc_<sur>plus_v2di): Likewise.
162 (reduc_<sur>plus_v2si): Likewise.
163 (reduc_<sur>plus_v4sf): Likewise.
164 (aarch64_addpv4sf): Likewise.
165 * config/aarch64/arm_neon.h
166 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
167 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
168 add UNSPEC_SADDV, UNSPEC_UADDV.
170 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
172 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
174 * config/aarch64/arm_neon.h
175 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
177 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
179 * config/aarch64/aarch64-builtins
180 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
182 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
184 * config/aarch64/aarch64-simd-builtins.def
186 (reduc_smin_): Likewise.
187 (reduc_umax_): Likewise.
188 (reduc_umin_): Likewise.
189 (reduc_smax_nan_): Likewise.
190 (reduc_smin_nan_): Likewise.
193 (smax): Update for V2SF, V4SF and V2DF modes.
196 (smin_nan): Likewise.
197 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
198 (<su><maxmin><mode>3): ...This, refactor.
199 (s<maxmin><mode>3): New.
200 (<maxmin_uns><mode>3): Likewise.
201 (reduc_<maxmin_uns>_<mode>): Refactor.
202 (reduc_<maxmin_uns>_v4sf): Likewise.
203 (reduc_<maxmin_uns>_v2si): Likewise.
204 (aarch64_<fmaxmin><mode>: Remove.
205 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
207 (vmin<q>_f<32,64>): Likewise.
208 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
210 (su): Add mappings for smax, smin, umax, umin.
212 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
213 (FMAXMIN): Rename as...
214 (FMAXMIN_UNS): ...This.
216 (fmaxminv): Likewise.
219 (maxmin_uns_op): Likewise.
221 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
223 * config/aarch64/arm_neon.h
224 (vac<ge, gt><sd>_f<32, 64>): Rename to...
225 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
226 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
228 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
230 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
231 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
233 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
235 * config/aarch64/aarch64-simd.md
236 (vcond<mode>_internal): Handle special cases for constant masks.
237 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
238 (vcondu<mode><mode>): Likewise.
239 (vcond<v_cmp_result><mode>): New.
241 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
243 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
244 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
245 * config/aarch64/aarch64-simd-builtins.def
246 (cmeq): Update to BUILTIN_VALLDI.
251 * config/aarch64/arm_neon.h
252 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
253 to builtins or C as appropriate.
255 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
257 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
261 * config/aarch64/aarch64-simd.md
263 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
264 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
265 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
266 (cstore<mode>_neg): ...This.
267 * config/aarch64/iterators.md
269 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
271 (UCOMPARISONS): Likewise.
272 (optab): Add missing comparisons.
280 (V_cmp_result): Add DF, SF modes.
281 (v_cmp_result): Likewise.
284 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
286 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
288 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
289 define_insn to define_insn_and_split.
290 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
291 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
292 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
293 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
294 (thumb2_negscc): Likewise.
296 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
298 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
300 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
302 * config/arm/thumb2.md: Remove trailing whitespaces.
304 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
306 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
307 Use gen_int_mode rather than GEN_INT.
309 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
311 * value-prof.c (stream_in_histogram_value): Remove the strayed
314 2013-04-30 Richard Biener <rguenther@suse.de>
317 * cfghooks.c (split_edge): Properly check for the loop
320 2013-04-30 Richard Biener <rguenther@suse.de>
323 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
325 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
327 PR rtl-optimization/56957
328 PR rtl-optimization/57105
330 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
331 variable. Use just INSN_UID for determining whether an insn
332 should be only disconnected from the insn stream.
333 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
335 2013-04-30 Jakub Jelinek <jakub@redhat.com>
337 PR tree-optimization/57104
338 * tsan.c (instrument_expr): Don't instrument accesses to
339 DECL_HARD_REGISTER VAR_DECLs.
341 2013-04-30 Richard Biener <rguenther@suse.de>
343 * function.h (loops_for_fn): New inline function.
344 (set_loops_for_fn): Likewise.
345 * cfgloop.h (place_new_loop): Add struct function parameter.
346 (get_loop): Likewise.
347 (get_loops): Likewise.
348 (number_of_loops): Likewise.
350 (fel_init): Likewise.
351 * cfg.c (get_loop_copy): Adjust.
352 * cfgloop.c (flow_loops_dump): Likewise.
353 (record_loop_exits): Likewise.
354 (verify_loop_structure): Likewise.
355 * cfgloopanal.c (mark_irreducible_loops): Likewise.
356 (estimate_reg_pressure_cost): Likewise.
357 (mark_loop_exit_edges): Likewise.
358 * cfgloopmanip.c (place_new_loop): Likewise.
359 (add_loop): Likewise.
360 (duplicate_loop): Likewise.
361 * graph.c (draw_cfg_nodes): Likewise.
362 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
363 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
364 (extract_affine_chrec): Likewise.
365 (build_scop_iteration_domain): Likewise.
366 * graphite.c (graphite_initialize): Likewise.
367 * ira-build.c (create_loop_tree_nodes): Likewise.
368 (more_one_region_p): Likewise.
369 (rebuild_regno_allocno_maps): Likewise.
370 (mark_loops_for_removal): Likewise.
371 (mark_all_loops_for_removal): Likewise.
372 (remove_unnecessary_regions): Likewise.
373 (ira_build): Likewise.
374 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
375 * loop-init.c (fix_loop_structure): Likewise.
376 (gate_rtl_move_loop_invariants): Likewise.
377 (gate_rtl_unswitch): Likewise.
378 (gate_rtl_unroll_and_peel_loops): Likewise.
379 (rtl_doloop): Likewise.
380 * lto-streamer-in.c (input_cfg): Likewise.
381 * lto-streamer-out.c (output_cfg): Likewise.
382 * modulo-sched.c (sms_schedule): Likewise.
383 * predict.c (tree_estimate_probability): Likewise.
384 (tree_estimate_probability_driver): Likewise.
385 (estimate_loops): Likewise.
386 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
387 (move_sese_region_to_fn): Likewise.
388 (debug_loop_num): Likewise.
389 * tree-chrec.c (chrec_evaluate): Likewise.
390 (hide_evolution_in_other_loops_than_loop): Likewise.
391 (chrec_component_in_loop_num): Likewise.
392 (reset_evolution_in_loop): Likewise.
393 (evolution_function_is_invariant_rec_p): Likewise.
394 * tree-if-conv.c (main_tree_if_conversion): Likewise.
395 * tree-inline.c (copy_loops): Likewise.
396 (copy_cfg_body): Likewise.
397 (tree_function_versioning): Likewise.
398 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
399 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
401 (add_to_evolution_1): Likewise.
402 (scev_const_prop): Likewise.
403 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
404 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
405 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
406 (tree_ssa_lim_initialize): Likewise.
407 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
408 (verify_loop_closed_ssa): Likewise.
409 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
410 (tree_ssa_loop_im): Likewise.
411 (tree_ssa_loop_unswitch): Likewise.
412 (tree_vectorize): Likewise.
413 (check_data_deps): Likewise.
414 (tree_ssa_loop_ivcanon): Likewise.
415 (tree_ssa_loop_bounds): Likewise.
416 (tree_complete_unroll): Likewise.
417 (tree_complete_unroll_inner): Likewise.
418 (tree_parallelize_loops): Likewise.
419 (tree_ssa_loop_prefetch): Likewise.
420 (tree_ssa_loop_ivopts): Likewise.
421 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
422 * tree-vectorizer.c (vectorize_loops): Likewise.
424 2013-04-29 Mike Frysinger <vapier@gentoo.org>
426 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
427 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
428 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
431 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
434 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
437 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
440 * lra-constraints.c (process_alt_operands): Discourage a bit more
441 using memory for pseudos. Print cost dump for alternatives.
442 Modify cost values for conflicts with early clobbers.
443 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
445 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
448 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
450 2013-04-29 Ian Bolton <ian.bolton@arm.com>
452 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
454 (movdi_aarch64): Support LDR/STR from/to D register.
456 2013-04-29 Ian Bolton <ian.bolton@arm.com>
458 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
459 or higher by default.
461 2013-04-29 Richard Biener <rguenther@suse.de>
464 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
465 even if not adding abnormal edges for calls that can make
468 2013-04-29 Richard Biener <rguenther@suse.de>
471 * tree-cfg.c (move_stmt_op): Fix condition under which to update
473 (move_stmt_r): Remove redundant checking.
475 2013-04-29 Teresa Johnson <tejohnson@google.com>
478 * basic-block.h (apply_scale): New function.
479 (apply_probability): Use apply_scale.
480 * gimple-streamer-in.c (input_bb): Ditto.
481 * lto-streamer-in.c (input_cfg): Ditto.
482 * lto-cgraph.c (merge_profile_summaries): Ditto.
483 * tree-optimize.c (execute_fixup_cfg): Ditto.
484 * tree-inline.c (copy_bb): Update comment to use apply_scale.
485 (copy_edges_for_bb): Ditto.
486 (copy_cfg_body): Ditto.
488 2013-04-29 Tom de Vries <tom@codesourcery.com>
490 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
491 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
492 (tail_merge_optimize): Handle current_loops == NULL.
494 2013-04-26 Jeff Law <law@redhat.com>
496 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
497 (simplify_cond_using_ranges): Generalize code to simplify
498 COND_EXPRs where one argument is a constant and the other
499 is an SSA_NAME created by an integral type conversion.
501 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
503 * config/arm/arm.md (store_minmaxsi): Use only when
504 optimize_insn_for_size_p.
506 2013-04-29 Christian Bruel <christian.bruel@st.com>
509 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
511 2013-04-29 Richard Biener <rguenther@suse.de>
514 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
515 loop tree make sure to schedule a fixup for the child as well.
516 (expand_omp_for_generic): Properly add loops.
517 (expand_omp_for_static_nochunk): Likewise.
518 (expand_omp_for_static_chunk): Likewise.
519 (expand_omp_for): For the degenerate case fixup loops.
520 (expand_omp_sections): Fix default bb placement in loops.
521 (expand_omp_atomic_pipeline): Properly add loops.
523 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
525 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
527 2013-04-29 Tom de Vries <tom@codesourcery.com>
529 * tree-ssa-tail-merge.c: Update header comment.
531 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
533 * config/aarch64/arm_neon.h
534 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
535 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
536 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
537 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
538 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
539 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
540 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
541 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
543 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
545 * config/aarch64/aarch64-simd.md
546 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
547 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
548 fix_trunc, fixuns_trunc.
549 (ftrunc<VDQF:mode>2): New.
550 * config/aarch64/iterators.md (optab): Add fix, fixuns.
551 (fix_trunc_optab): New.
553 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
555 * config/aarch64/aarch64-builtins.c
556 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
557 iceilf, lround, iroundf.
559 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
562 * config/i386/i386.h (enum ix86_tune_indices)
563 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
564 New, split from X86_TUNE_INTER_UNIT_MOVES.
565 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
566 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
567 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
568 (TARGET_INTER_UNIT_MOVES): Remove.
569 * config/i386/i386.c (initial_ix86_tune_features): Update.
570 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
571 (ix86_expand_convert_uns_didf_sse): Use
572 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
573 (ix86_expand_vector_init_one_nonzero): Ditto.
574 (ix86_expand_vector_init_interleave): Ditto.
575 (inline_secondary_memory_needed): Return true for moves from SSE class
576 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
577 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
578 * config/i386/constraints.md (Yi, Ym): Depend on
579 TARGET_INTER_UNIT_MOVES_TO_VEC.
580 (Yj, Yn): New constraints.
581 * config/i386/i386.md (*movdi_internal): Change constraints of
582 operand 1 from Yi to Yj and from Ym to Yn.
583 (*movsi_internal): Ditto.
584 (*movdf_internal): Ditto.
585 (*movsf_internal): Ditto.
586 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
587 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
588 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
589 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
590 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
591 * config/i386/sse.md (movdi_to_sse): Ditto.
592 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
593 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
594 TARGET_INTER_UNIT_MOVES.
595 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
596 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
597 instead of TARGET_INTER_UNIT_MOVES.
598 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
599 operand 1 from Yi to Yj and from Ym to Yn.
601 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
603 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
604 (float_truncate_hi_): Likewise.
605 (float_extend_lo_): Likewise.
606 (float_truncate_lo_): Likewise.
607 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
608 (aarch64_float_extend_lo_v2df): Likewise.
609 (vec_unpacks_hi_v4sf): Likewise.
610 (aarch64_float_truncate_lo_v2sf): Likewise.
611 (aarch64_float_truncate_hi_v4sf): Likewise.
612 (vec_pack_trunc_v2df): Likewise.
613 (vec_pack_trunc_df): Likewise.
615 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
617 * config/aarch64/aarch64-builtins.c
618 (aarch64_fold_builtin): Fold float conversions.
619 * config/aarch64/aarch64-simd-builtins.def
620 (floatv2si, floatv4si, floatv2di): New.
621 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
622 * config/aarch64/aarch64-simd.md
623 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
624 * config/aarch64/iterators.md (FLOATUORS): New.
625 (optab): Add float, floatuns.
626 (su_optab): Likewise.
628 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
630 * config/aarch64/aarch64-builtins.c
631 (aarch64_builtin_vectorized_function): Use new names for
633 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
634 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
635 (fcvtzu): Split as...
636 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
637 (fcvtas): Split as...
638 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
639 (fcvtau): Split as...
640 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
641 (fcvtps): Split as...
642 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
643 (fcvtpu): Split as...
644 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
645 (fcvtms): Split as...
646 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
647 (fcvtmu): Split as...
648 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
649 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
650 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
651 (lfrintnusf, lfrintnudf): Likewise.
652 * config/aarch64/aarch64-simd.md
653 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
655 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
656 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
657 (fcvt_pattern): Likewise.
659 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
661 * config/aarch64/aarch64-simd.md
662 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
663 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
665 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
667 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
668 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
669 (vrnd<a,m,n,p>_f32): Implement using builtins.
670 (vrnd<i,x><q>_f<32, 64>): New.
672 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
674 * config/aarch64/aarch64-builtins.c
675 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
676 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
677 (frintz): Rename to...
679 (frintp): Rename to...
681 (frintm): Rename to...
683 (frinti): Rename to...
684 (nearbyint): ...this.
685 (frintx): Rename to...
687 (frinta): Rename to...
689 * config/aarch64/aarch64-simd.md
690 (aarch64_frint<frint_suffix><mode>): Delete.
691 (<frint_pattern><mode>2): Convert to insn.
692 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
693 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
694 (frint_pattern): Likewise.
695 (frint_suffix): Likewise.
697 2013-04-29 Richard Biener <rguenther@suse.de>
699 PR tree-optimization/57081
700 * loop-init.c: Include tree-flow.h.
701 (loop_optimizer_finalize): Free number of iteration estimates.
702 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
704 2013-04-29 Jakub Jelinek <jakub@redhat.com>
706 PR tree-optimization/57083
707 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
708 non-singleton shift count range, zero extend low_bound for uns case.
710 * config/i386/predicates.md (general_vector_operand): New predicate.
711 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
712 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
713 if they aren't nonimmediate operands. If their original values
714 satisfy const_vector_equal_evenodd_p, don't shift them.
715 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
716 predicates. For the SSE4.1 case force operands[{1,2}] into registers
717 if not nonimmediate_operand.
718 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
719 instead of register_operand.
720 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
722 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
724 * stor-layout.c (finalize_size_functions): Allocate a structure and
725 reset cfun before dumping the functions.
727 2013-04-27 Jakub Jelinek <jakub@redhat.com>
729 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
732 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
733 use xop_pmacsdqh if uns_p.
734 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
735 the immediate rotate count.
737 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
739 * rtl.h (struct rtx_def): Add comment for field jump.
740 (LRA_SUBREG_P): New macro.
741 * recog.c (register_operand): Check LRA_SUBREG_P.
742 * lra.c (lra): Add note at the end of RTL code. Align non-empty
744 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
745 (lra_final_code_change): Skip subreg change for operators.
746 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
747 if there are no operand changes.
748 * lra-constraints.c (curr_insn_set): New.
749 (match_reload): Set LRA_SUBREG_P.
750 (emit_spill_move): Ditto.
751 (check_and_process_move): Use curr_insn_set. Process only single
752 set insns. Don't initialize sec_mem_p and change_p.
753 (simplify_operand_subreg): Use LRA_SUBREG_P.
754 (reg_in_class_p): New function.
755 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
756 of #ifdef. Add code to remove cycling.
757 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
758 non-null disp. Reload inner instead of disp when base and index
759 are null. Try to put lo_sum into register.
760 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
761 (check_and_process_move): Move code for move cost check to
762 simple_move_p. Remove equiv_substitution.
763 (simple_move_p): New function.
764 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
765 curr_insn_set. Call check_and_process_move only for single set
766 insns. Use the new function. Move call of check_and_process_move
767 after operand equiv substitution and address process.
769 2013-04-26 Jakub Jelinek <jakub@redhat.com>
772 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
773 with nonlocal goto receivers or returns twice calls, ignore
774 unininitialized values from abnormal edges to nl goto receiver
775 or returns twice call.
777 2013-04-26 Jakub Jelinek <jakub@redhat.com>
779 PR tree-optimization/57051
780 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
781 and VEC_RSHIFT_EXPR if shift count is a multiple of element
784 2013-04-26 Richard Biener <rguenther@suse.de>
786 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
787 (expand_omp_taskreg): Likewise. Mark loops for fixup.
788 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
789 (fixup_loop_arrays_after_move): New function.
790 (move_sese_region_to_fn): Properly outline the loop tree parts
793 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
795 * config/i386/i386.md (type, unit): Fix long lines.
797 2013-04-26 Richard Biener <rguenther@suse.de>
799 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
800 (lto-streamer-out.o): Likewise.
801 * cfgloop.c (init_loops_structure): Export, add struct function
803 (flow_loops_find): Adjust.
804 * cfgloop.h (enum loop_estimation): Add EST_LAST.
805 (init_loops_structure): Declare.
806 * lto-streamer-in.c: Include cfgloop.h.
807 (input_cfg): Input the loop tree.
808 * lto-streamer-out.c: Include cfgloop.h.
809 (output_cfg): Output the loop tree.
810 (output_struct_function_base): Do not drop PROP_loops.
812 2013-03-26 Richard Biener <rguenther@suse.de>
814 * tree-cfg.c (execute_build_cfg): Build the loop tree.
815 (pass_build_cfg): Provide PROP_loops.
816 (move_sese_region_to_fn): Remove loops that are outlined into fn
818 * tree-inline.c: Include cfgloop.h.
819 (initialize_cfun): Do not drop PROP_loops.
820 (copy_loops): New function.
821 (copy_cfg_body): Copy loop structure.
822 (tree_function_versioning): Initialize destination loop tree.
823 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
824 (pass_parallelize_loops): Do IL verification.
825 * loop-init.c (loop_optimizer_init): Fixup loops if required.
826 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
827 the CFG make sure we fixup loops as well.
828 * tree-ssa-tail-merge.c: Include cfgloop.h.
829 (replace_block_by): When merging loop latches mark loops for fixup.
830 * lto-streamer-out.c (output_struct_function_base): Drop
832 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
833 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
834 * ipa-split.c: Include cfgloop.h.
835 (split_function): Add the new return block to the loop tree root.
836 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
837 whether we have removed the forwarder block.
838 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
839 * cfgloop.h (place_new_loop): Declare.
840 * cfgloopmanip.c (place_new_loop): Export.
841 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
842 (tree-switch-conversion.o): Likewise.
843 (tree-complex.o): Likewise.
844 (tree-inline.o): Likewise.
845 (tree-ssa-tailmerge.o): Likewise.
846 (ipa-split.o): Likewise.
847 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
848 (tree-ssa-copy.o): Likewise.
849 * tree-switch-conversion.c: Include cfgloop.h
850 (process_switch): If we emit a bit-test cascade, schedule loops
852 * tree-complex.c: Include cfgloop.h.
853 (expand_complex_div_wide): Properly add new basic-blocks to loops.
854 * asan.c: Include cfgloop.h.
855 (create_cond_insert_point): Properly add new basic-blocks to
856 loops, schedule loop fixup.
857 * cfgloop.c (verify_loop_structure): Check that looks are not
859 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
861 (expand_omp_for_generic): Likewise.
862 (expand_omp_sections): Likewise.
863 (expand_omp_atomic_pipeline): Schedule loops for fixup.
864 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
865 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
866 is initialized, not when loops are present.
867 * tree-parloops.c (parallelize_loops): Remove checking here.
868 * passes.c (init_optimization_passes): Schedule a copy-propagation
869 pass before complete unrolling of inner loops.
871 2013-04-26 Jakub Jelinek <jakub@redhat.com>
873 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
874 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
875 (colorize_init): Add argument to _WIN32 version.
876 * toplev.c: Include diagnostic-color.h.
877 (process_options): Default to -fdiagnostics-color=auto if
878 GCC_COLORS env var is in the environment.
879 * common.opt (fdiagnostics-color=): Add Var and Init.
880 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
881 env var is in the environment, the default is auto rather than never.
883 * diagnostic.h (file_name_as_prefix): Add context argument.
884 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
886 * langhooks.c (lhd_print_error_function): Adjust caller.
888 2013-04-25 Lawrence Crowl <crowl@google.com>
890 * var-tracking.c (shared_hash_def::htab):
891 Change type to hash_table. Update dependent calls and types.
893 2013-04-25 Lawrence Crowl <crowl@google.com>
895 * Makefile.in: Update as needed below.
897 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
898 Move declaration to after the type's method definitons.
900 * attribs.c (htab_t scoped_attributes::attribute_hash):
901 Change type to hash_table. Update dependent calls and types.
903 * bitmap.c (htab_t bitmap_desc_hash):
904 Change type to hash_table. Update dependent calls and types.
906 * cselib.c (htab_t cselib_hash_table):
907 Change type to hash_table. Update dependent calls and types.
909 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
910 (hash_string_slot_node): Move implementation into lto-streamer.h
911 struct string_slot_hasher.
912 (eq_string_slot_node): Likewise.
914 * data-streamer-out.c: Update output_block::string_hash_table
915 dependent calls and types.
917 * dwarf2cfi.c (htab_t trace_index):
918 Change type to hash_table. Update dependent calls and types.
920 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
921 Change type to hash_table. Update dependent calls and types.
922 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
923 (htab_t optimize_external_refs::map): Likewise.
924 (htab_t output_comp_unit::extern_map): Likewise.
925 (htab_t output_comdat_type_unit::extern_map): Likewise.
926 (htab_t output_macinfo::macinfo_htab): Likewise.
927 (htab_t optimize_location_lists::htab): Likewise.
928 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
930 * except.c (htab_t ehspec_hash_type):
931 Change type to hash_table. Update dependent calls and types.
932 (assign_filter_values::ttypes): Likewise.
933 (assign_filter_values::ehspec): Likewise.
934 (sjlj_assign_call_site_values::ar_hash): Likewise.
935 (convert_to_eh_region_ranges::ar_hash): Likewise.
937 * gcse.c (htab_t pre_ldst_table):
938 Change type to hash_table. Update dependent calls and types.
940 * ggc-common.c (htab_t saving_htab):
941 Change type to hash_table. Update dependent calls and types.
942 (htab_t loc_hash): Likewise.
943 (htab_t ptr_hash): Likewise.
944 (call_count): Rename ggc_call_count.
945 (call_alloc): Rename ggc_call_alloc.
946 (loc_descriptor): Rename make_loc_descriptor.
947 (add_statistics): Rename ggc_add_statistics.
949 * ggc-common.c (saving_htab):
950 Change type to hash_table. Update dependent calls and types.
952 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
953 (push_gimplify_context): Likewise.
954 (pop_gimplify_context): Likewise.
955 (struct gimple_temp_hash_elt): Added.
956 (struct gimplify_hasher): Likewise.
957 (struct gimplify_ctx.temp_htab):
958 Change type to hash_table. Update dependent calls and types.
960 * gimple-fold.c: Include gimplify-ctx.h.
962 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
963 Change type to hash_table. Update dependent calls and types.
964 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
965 avoid potential global name collision.
967 * gimplify.c: Include gimplify-ctx.h.
968 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
969 (htab_t gimplify_ctx::temp_htab):
970 Update dependent calls and types for new type hash_table.
971 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
972 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
974 * gimplify-ctx.h: New.
975 (struct gimple_temp_hash_elt): Move from gimplify.c.
976 (class gimplify_hasher): New.
977 (struct gimplify_ctx): Move from gimple.h.
978 (htab_t gimplify_ctx::temp_htab):
979 Change type to hash_table. Update dependent calls and types.
981 * graphite-clast-to-gimple.c: Include graphite-htab.h.
982 (htab_t ivs_params::newivs_index):
983 Change type to hash_table. Update dependent calls and types.
984 (htab_t ivs_params::params_index): Likewise.
985 (htab_t print_generated_program::params_index): Likewise.
986 (htab_t gloog::newivs_index): Likewise.
987 (htab_t gloog::params_index): Likewise.
989 * graphite.c: Include graphite-htab.h.
990 4htab_t graphite_transform_loops::bb_pbb_mapping):
991 Change type to hash_table. Update dependent calls and types.
993 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
994 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
995 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
997 * graphite-dependences.c: Include graphite-htab.h.
998 (loop_is_parallel_p): Change hash table type of parameter.
1000 * graphite-htab.h: New.
1001 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
1002 (extern find_pbb_via_hash): Move from graphite-poly.h.
1003 (extern loop_is_parallel_p): Move from graphite-poly.h.
1004 (extern get_loop_body_pbbs): Move from graphite-poly.h.
1006 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
1007 (extern loop_is_parallel_p): Move to graphite-htab.h.
1008 (extern get_loop_body_pbbs): Move to graphite-htab.h.
1010 * haifa-sched.c (htab_t delay_htab):
1011 Change type to hash_table. Update dependent calls and types.
1012 (htab_t delay_htab_i2): Likewise.
1014 * ira-color.c (htab_t allocno_hard_regs_htab):
1015 Change type to hash_table. Update dependent calls and types.
1017 * ira-costs.c (htab_t cost_classes_htab):
1018 Change type to hash_table. Update dependent calls and types.
1020 * loop-invariant.c (htab_t merge_identical_invariants::eq):
1021 Change type to hash_table. Update dependent calls and types.
1023 * loop-iv.c (htab_t bivs):
1024 Change type to hash_table. Update dependent calls and types.
1026 * loop-unroll.c (htab_t opt_info::insns_to_split):
1027 Change type to hash_table. Update dependent calls and types.
1028 (htab_t opt_info::insns_with_var_to_expand): Likewise.
1030 * lto-streamer.h (struct string_slot): Move from data-streamer.h
1031 (struct string_slot_hasher): New.
1032 (htab_t output_block::string_hash_table):
1033 Change type to hash_table. Update dependent calls and types.
1035 * lto-streamer-in.c (freeing_string_slot_hasher): New.
1036 (htab_t file_name_hash_table):
1037 Change type to hash_table. Update dependent calls and types.
1039 * lto-streamer-out.c: Update output_block::string_hash_table dependent
1042 * lto-streamer.c (htab_t tree_htab):
1043 Change type to hash_table. Update dependent calls and types.
1045 * omp-low.c: Include gimplify-ctx.h.
1047 * passes.c (htab_t name_to_pass_map):
1048 Change type to hash_table. Update dependent calls and types.
1049 (pass_traverse): Rename to passes_pass_traverse.
1051 * plugin.c (htab_t event_tab):
1052 Change type to hash_table. Update dependent calls and types.
1054 * postreload-gcse.c (htab_t expr_table):
1055 Change type to hash_table. Update dependent calls and types.
1056 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
1058 * sese.c (debug_rename_map_1): Make extern.
1059 (htab_t copy_bb_and_scalar_dependences::rename_map):
1060 Change type to hash_table. Update dependent calls and types.
1062 * sese.h (extern debug_rename_map): Move to .c file.
1064 * store-motion.c (htab_t store_motion_mems_table):
1065 Change type to hash_table. Update dependent calls and types.
1067 * trans-mem.c (htab_t tm_new_mem_hash):
1068 Change type to hash_table. Update dependent calls and types.
1070 * tree-browser.c (htab_t TB_up_ht):
1071 Change type to hash_table. Update dependent calls and types.
1073 * tree-cfg.c (htab_t discriminator_per_locus):
1074 Change type to hash_table. Update dependent calls and types.
1076 * tree-complex.c: Include tree-hasher.h
1077 (htab_t complex_variable_components):
1078 Change type to hash_table. Update dependent calls and types.
1080 * tree-eh.c (htab_t finally_tree):
1081 Change type to hash_table. Update dependent calls and types.
1083 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
1084 struct int_tree_hasher.
1085 (extern int_tree_map_eq): Likewise.
1086 (uid_decl_map_hash): Removed.
1087 (extern decl_tree_map_eq): Likewise.
1089 * tree-hasher.h: New.
1090 (struct int_tree_hasher): New.
1091 (typedef int_tree_htab_type): New.
1093 * tree-inline.c: Include gimplify-ctx.h.
1095 * tree-mudflap.c: Include gimplify-ctx.h.
1097 * tree-parloops.c: Include tree-hasher.h.
1098 (htab_t eliminate_local_variables_stmt::decl_address):
1099 Change type to hash_table. Update dependent calls and types.
1100 (htab_t separate_decls_in_region::decl_copies): Likewise.
1102 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
1103 Change type to hash_table. Update dependent calls and types.
1105 * tree-sra.c (candidates):
1106 Change type to hash_table. Update dependent calls and types.
1108 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
1110 (int_tree_map_hash): Likewise.
1112 * tree-ssa-dom.c (htab_t avail_exprs):
1113 Change type to hash_table. Update dependent calls and types.
1115 * tree-ssa-live.c (var_map_base_init::tree_to_index):
1116 Change type to hash_table. Update dependent calls and types.
1118 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
1119 Change type to hash_table. Update dependent calls and types.
1121 * tree-ssa-phiopt.c (seen_ssa_names):
1122 Change type to hash_table. Update dependent calls and types.
1124 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
1125 Change type to hash_table. Update dependent calls and types.
1127 * tree-ssa-uncprop.c (equiv):
1128 Change type to hash_table. Update dependent calls and types.
1130 2013-04-25 Jakub Jelinek <jakub@redhat.com>
1132 PR rtl-optimization/57003
1133 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1134 call note_stores with kill_clobbered_value callback again after
1135 killing regs_invalidated_by_call.
1137 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1139 * config/aarch64/aarch64-simd.md
1140 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
1141 (aarch64_simd_bsl<mode>): Likewise.
1142 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
1144 2013-04-25 Marek Polacek <polacek@redhat.com>
1146 PR tree-optimization/57066
1147 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
1149 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
1151 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
1153 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1155 * config/aarch64/aarch64-builtins.c
1156 (aarch64_fold_builtin): New.
1157 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
1158 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
1159 * config/aarch64/aarch64-simd-builtins.def (abs): New.
1160 * config/aarch64/arm_neon.h
1161 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
1163 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1164 Tejas Belagod <tejas.belagod@arm.com>
1166 * config/aarch64/aarch64-builtins.c
1167 (aarch64_gimple_fold_builtin): New.
1168 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
1169 * config/aarch64/aarch64-simd-builtins.def (addv): New.
1170 * config/aarch64/aarch64-simd.md (addpv4sf): New.
1172 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1174 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1176 * config/aarch64/aarch64.md
1177 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
1179 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1181 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
1182 (*ngcsi_uxtw): New pattern.
1184 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1185 Julian Brown <julian@codesourcery.com>
1187 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
1188 (TB_DREG): Add T_V4HF.
1189 (v4hf_UP): New macro.
1190 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1191 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1192 Handle initialisation of V4HF. Adjust initialisation of reinterpret
1194 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1195 (arm_vector_mode_supported_p): Handle V4HF.
1196 (arm_mangle_map): Handle V4HFmode.
1197 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
1198 * config/arm/arm_neon_builtins.def: Add entries for
1199 vcvtv4hfv4sf, vcvtv4sfv4hf.
1200 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
1201 (neon_vcvtv4hfv4sf): Likewise.
1202 * config/arm/neon-gen.ml: Handle half-precision floating point
1204 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
1205 * config/arm/arm_neon.h: Regenerate.
1206 * config/arm/neon.ml (type elts): Add F16.
1207 (type vectype): Add T_float16x4, T_floatHF.
1208 (type vecmode): Add V4HF.
1209 (type features): Add Requires_FP_bit feature.
1210 (elt_width): Handle F16.
1211 (elt_class): Likewise.
1212 (elt_of_class_width): Likewise.
1213 (mode_of_elt): Refactor.
1214 (type_for_elt): Handle F16, fix error messages.
1215 (vectype_size): Handle T_float16x4.
1216 (vcvt_sh): New function.
1217 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
1218 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
1219 (string_of_mode): Handle V4HF.
1220 * doc/arm-neon-intrinsics.texi: Regenerate.
1222 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1224 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
1225 format specifier in 'X' case.
1227 2013-04-25 Alan Modra <amodra@gmail.com>
1230 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
1231 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
1232 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
1233 Repeat for many other rotate/shift and mask patterns using subregs.
1234 Name lshiftrt insns.
1235 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
1236 on WORDS_BIG_ENDIAN.
1238 2013-04-25 Alan Modra <amodra@gmail.com>
1240 * config.gcc: Support little-endian powerpc-linux targets.
1241 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
1242 (LINK_OS_LINUX_SPEC): Define.
1243 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
1244 Preserve MASK_LITTLE_ENDIAN.
1245 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
1246 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
1247 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
1248 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
1249 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
1250 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
1251 Correct fp word order for little-endian. Don't shift toc entries
1252 smaller than a word for little-endian.
1253 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
1254 (bswapdi2 splits): Correct low-part subreg for little-endian.
1255 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
1256 low/high where such is correct only for be.
1257 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
1258 little-endian for -mcall-aixdesc.
1260 2013-04-25 Alan Modra <amodra@gmail.com>
1262 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
1263 replace_equiv_address_nv.
1265 2013-04-25 Alan Modra <amodra@gmail.com>
1267 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
1269 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1272 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1273 * rtl.h (struct rtx_def): ...
1275 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1277 PR rtl-optimizations/57046
1278 * lra-constraints (split_reg): Set up lra_risky_transformations_p
1279 for multi-reg splits.
1281 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
1283 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
1285 2013-04-24 Sterling Augustine <saugustine@google.com>
1287 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
1288 (comp_dir_string, debug_str_dwo_section): New.
1289 (DEBUG_STR_DWO_SECTION): Rename to ...
1290 (DEBUG_DWO_STR_SECTION): ... this.
1291 (DEBUG_NORM_STR_SECTION): Delete.
1292 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
1293 (DEBUG_STR_DWO_SECTION_FLAGS): New.
1294 (find_AT_string): Move most logic to ...
1295 (find_AT_string_in_table): ... here. New.
1296 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
1297 add_skeleton_AT_string. Delete logic.
1298 (output_skeleton_debug_sections): Remove call to
1299 add_top_level_skeleton_die_attrs.
1300 (add_comp_dir_attribute): Move logic to comp_dir_string.
1301 (dwarf2out_init): Initialize debug_str_dwo_section.
1302 (output_indirect_string): Call find_string_form.
1303 (output_indirect_strings): Rewrite.
1304 (prune_unused_types): Empty skeleton_debug_str_hash.
1305 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
1306 (dwarf2out_finish): Call output_indirect_strings.
1308 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1310 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
1312 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1314 * rtl.h (struct rtx_def): Add comment for field jump.
1315 (LRA_SUBREG_P): New macro.
1316 * recog.c (register_operand): Check LRA_SUBREG_P.
1317 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1319 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1320 (lra_final_code_change): Skip subreg change for operators.
1321 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1322 if there are no operand changes.
1323 * lra-constraints.c (curr_insn_set): New.
1324 (match_reload): Set LRA_SUBREG_P.
1325 (emit_spill_move): Ditto.
1326 (check_and_process_move): Use curr_insn_set. Process only single
1327 set insns. Don't initialize sec_mem_p and change_p.
1328 (simplify_operand_subreg): Use LRA_SUBREG_P.
1329 (reg_in_class_p): New function.
1330 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1331 of #ifdef. Add code to remove cycling.
1332 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1333 non-null disp. Reload inner instead of disp when base and index
1334 are null. Try to put lo_sum into register.
1335 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1336 (check_and_process_move): Move code for move cost check to
1337 simple_move_p. Remove equiv_substitution.
1338 (simple_move_p): New function.
1339 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1340 curr_insn_set. Call check_and_process_move only for single set
1341 insns. Use the new function. Move call of check_and_process_move
1342 after operand equiv substitution and address process.
1344 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
1346 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
1347 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
1348 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
1350 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1352 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
1354 2013-04-24 Marek Polacek <polacek@redhat.com>
1356 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
1357 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
1358 (select_loops_exit_conditions): Likewise.
1359 (number_of_iterations_for_all_loops): Likewise.
1360 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
1361 (scev_analysis): Likewise.
1363 2013-04-02 Catherine Moore <clm@codesourcery.com>
1364 Chao-ying Fu <fu@mips.com>
1366 * config/mips/micromips.md (jraddiusp): New pattern.
1367 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
1368 instruction if possible.
1370 2013-04-24 Alan Modra <amodra@gmail.com>
1372 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
1374 2013-04-24 Julian Brown <julian@codesourcery.com>
1375 Chung-Lin Tang <cltang@codesourcery.com>
1377 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
1378 dependency behavior in enumeration type DIE generation. Add TODO note
1379 to comments about future DW_FORM_sdata/udata re-work of related code.
1381 2013-04-23 Lawrence Crowl <crowl@google.com>
1383 * Makefile.in: Update as needed below.
1385 * hash-table.h (class hash_table):
1386 Correct many methods with parameter types compare_type to the correct
1387 value_type. (Correct code was unlikely to notice the change.)
1388 (hash_table::elements_with_deleted) New.
1389 (class hashtable::iterator): New.
1390 (hashtable::begin()): New.
1391 (hashtable::end()): New.
1392 (FOR_EACH_HASH_TABLE_ELEMENT): New.
1394 * statistics.c (statistics_hashes):
1395 Change type to hash_table. Update dependent calls and types.
1397 * tree-into-ssa.c (var_infos):
1398 Change type to hash_table. Update dependent calls and types.
1400 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
1401 Change type to hash_table. Update dependent calls and types.
1403 * tree-ssa-loop-im.c (struct mem_ref.refs):
1404 Change type to hash_table. Update dependent calls and types.
1406 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
1407 Change type to hash_table. Update dependent calls and types.
1409 * tree-ssa-sccvn.c (vn_tables_s::nary):
1410 Change type to hash_table. Update dependent calls and types.
1411 (vn_tables_s::phis): Likewise.
1412 (vn_tables_s::references): Likewise.
1414 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
1415 (vn_reference_eq): Update parameter and return types.
1417 * tree-ssa-structalias.c (pointer_equiv_class_table):
1418 Change type to hash_table. Update dependent calls and types.
1419 (location_equiv_class_table): Likewise.
1421 * tree-vect-data-refs.c: Consequential changes for making
1422 peeling a hash_table.
1424 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
1425 (destroy_loop_vec_info): Dependent hash_table update.
1427 * tree-vectorizer.h (peeling_htab):
1428 Change type to hash_table. Update dependent calls and types.
1430 2013-04-23 Shiva Chen <shiva0217@gmail.com>
1432 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
1433 to check the register content is equal or not.
1434 * lra-constraints.c (match_reload): Use lra_assign_reg_val
1435 to assign register content record.
1436 * lra-eliminations.c (update_reg_eliminate): Use
1437 lra_update_reg_val_offset to update register content offset.
1438 * lra-int.h (struct lra_reg): Add offset member.
1439 (lra_reg_val_equal_p): New static inline function.
1440 (lra_update_reg_val_offset): New static inline function.
1441 (lra_assign_reg_val): New static inline function.
1442 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
1443 to assign register content record.
1444 (initialize_lra_reg_info_element): Initial offset to zero.
1446 2013-04-23 Catherine Moore <clm@codesourcery.com>
1448 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
1449 operands. Record compression.
1451 2013-04-23 Xinliang David Li <davidxl@google.com>
1453 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
1455 2013-04-23 Richard Biener <rguenther@suse.de>
1458 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
1459 parameter, only add abnormal goto edges from the copied body
1460 if the call could perform abnormal gotos.
1461 (copy_cfg_body): Adjust.
1463 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
1465 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
1467 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
1469 * coretypes.h (gimple_stmt_iterator): Add struct to make
1472 2013-04-23 Richard Biener <rguenther@suse.de>
1474 PR tree-optimization/57026
1475 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
1476 from SSA names occuring in abnormal PHI nodes.
1478 2013-04-22 Andi Kleen <ak@linux.intel.com>
1480 * lto/lto.c (print_lto_report_1): Fix LTO report names.
1482 2013-04-22 Andi Kleen <ak@linux.intel.com>
1484 * lto/lto.c (print_lto_report_1): Declare early.
1485 (read_cgraph_and_symbols): Call print_lto_report_1 early.
1487 2013-04-22 Andi Kleen <ak@linux.intel.com>
1489 * common.opt (-flto-report-wpa): Add.
1490 * doc/invoke.texi (-flto-report-wpa): Add.
1491 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
1494 2013-04-22 Xinliang David Li <davidxl@google.com>
1496 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
1497 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
1498 * Makefile.in: New dependency
1500 David Daney <ddaney.cavm@gmail.com>
1502 * configure.ac (gcc_cv_as_micromips_support): Use the
1503 --fatal-warnings option.
1504 * configure: Regenerate.
1506 2013-04-22 Marek Polacek <polacek@redhat.com>
1509 * tsan.c (instrument_expr): Don't instrument expression
1510 in case its size is zero.
1512 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
1516 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1518 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1520 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1522 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
1523 (gimple_stmt_iterator): New typedef.
1524 * gimple.h (gimple_stmt_iterator): Rename to...
1525 (gimple_stmt_iterator_d): ... This.
1526 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
1527 trees be valid for GIMPLE and GENERIC.
1528 (TARGET_GIMPLE_FOLD_BUILTIN): New.
1529 * gimple-fold.c (gimple_fold_call): Call target hook
1530 gimple_fold_builtin.
1531 * hooks.c (hook_bool_gsiptr_false): New.
1532 * hooks.h (hook_bool_gsiptr_false): New.
1533 * target.def (fold_stmt): New.
1534 * doc/tm.texi: Regenerate.
1536 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
1539 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1540 a set sp if no stack realignment.
1542 2013-04-22 Nick Clifton <nickc@redhat.com>
1544 * config.gcc (tilegx-linux): Extend extra_objs rather than
1546 (tilepro-linux): Likewise.
1548 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1550 * config/aarch64/aarch64-builtins.c
1552 (CF0, CF1, CF2, CF3, CF4, CF10): New.
1553 (VAR<1-12>): Add MAP parameter.
1554 (BUILTIN_*): Likewise.
1555 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
1556 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
1557 (aarch64_ushl_n<mode>): Likewise.
1558 (aarch64_sshr_n<mode>): Likewise.
1559 (aarch64_ushr_n<mode>): Likewise.
1560 (aarch64_<maxmin><mode>): Likewise.
1561 (aarch64_sqrt<mode>): Likewise.
1562 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
1563 (vshr<q>_n_*): Likewise.
1565 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1567 * config/aarch64/aarch64-builtins.c
1568 (aarch64_simd_builtin_type_mode): Handle SF types.
1570 (BUILTIN_GPF): Define.
1571 (aarch64_init_simd_builtins): Handle SF types.
1572 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
1575 * config/aarch64/aarch64-simd.md
1576 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
1577 (aarch64_frecpe<mode>): New.
1578 (aarch64_frecps<mode>): Likewise.
1579 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
1580 (v8type): Add frecp<esx>.
1581 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
1582 (aarch64_frecps<mode>): Likewise.
1583 * config/aarch64/iterators.md (FRECP): New.
1584 (frecp_suffix): Likewise.
1585 * config/aarch64/arm_neon.h
1586 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
1588 2013-04-22 Christian Bruel <christian.bruel@st.com>
1591 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
1592 (REG_CLASS_NAMES): Idem.
1593 (REG_CLASS_CONTENTS): Idem.
1594 (REGCLASS_HAS_FP_REG): Idem.
1595 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
1596 (sh_conditional_register_usage): Idem.
1598 2013-04-21 Jeff Law <law@redhat.com>
1600 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
1601 (ssa_forward_propagate_and_combine): Use it.
1603 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1605 * lra.c: Update the flow chart diagram.
1607 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1609 PR rtl-optimization/56847
1610 * lra-constraints.c (process_alt_operands): Discourage alternative
1611 with non-matche doffsettable memory constraint fro memory with
1614 2013-04-19 Richard Biener <rguenther@suse.de>
1616 PR tree-optimization/56982
1617 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
1619 * gimplify.c (gimplify_call_expr): Notice special calls.
1620 (gimplify_modify_expr): Likewise.
1621 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
1622 abnormal control flow receivers.
1623 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
1624 in the same way as cfun->has_nonlocal_labels.
1625 (gimple_purge_dead_abnormal_call_edges): Likewise.
1626 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
1627 receivers start a basic-block.
1629 2013-04-19 Richard Biener <rguenther@suse.de>
1631 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
1633 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
1634 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
1635 (SLP_TREE_LOAD_PERMUTATION): Add.
1636 (vect_transform_slp_perm_load): Adjust prototype.
1637 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
1638 (vect_free_slp_instance): Likewise.
1639 (vect_create_new_slp_node): Likewise.
1640 (vect_supported_slp_permutation_p): Remove.
1641 (vect_slp_rearrange_stmts): Adjust.
1642 (vect_supported_load_permutation_p): Likewise. Inline
1643 vect_supported_slp_permutation_p here.
1644 (vect_analyze_slp_instance): Compute load permutations per
1645 slp node instead of per instance.
1646 (vect_get_slp_defs): Adjust.
1647 (vect_transform_slp_perm_load): Likewise.
1648 (vect_schedule_slp_instance): Remove redundant code.
1649 (vect_schedule_slp): Remove hack for PR56270, add it ...
1650 * tree-vect-stmts.c (vectorizable_load): ... here, do not
1651 CSE loads for SLP. Adjust.
1653 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1655 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
1656 spelling in two comments.
1658 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1661 * config/arm/arm.c (load_multiple_sequence): Require SP
1662 as base register for loads if SP is in the register list.
1664 2013-04-19 Martin Jambor <mjambor@suse.cz>
1666 PR tree-optimization/56718
1667 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
1668 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
1669 and made public. Adjusted all callers.
1670 (ipa_intraprocedural_devirtualization): New function.
1671 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
1672 (ipa_intraprocedural_devirtualization): Likewise.
1673 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
1675 2013-04-19 Richard Biener <rguenther@suse.de>
1677 PR tree-optimization/57000
1678 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
1680 2013-04-19 Terry Guo <terry.guo@arm.com>
1682 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
1684 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
1685 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
1686 (cortex_m4_fmacs): Use new reservations.
1687 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
1689 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
1691 PR rtl-optimization/56999
1692 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
1694 (lra_coalesce): Remove split_origin_bitmap and related code.
1695 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
1696 ranges if necessary.
1698 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
1700 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
1702 (ix86_expand_call): Remove clobbered_registers array and use
1703 x86_64_ms_sysv_extra_clobbered_registers instead.
1704 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
1706 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
1708 * config/i386/i386.md (*call_rex64_ms_sysv): Use
1709 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
1710 (*call_value_rex64_ms_sysv): Ditto.
1712 2013-04-18 Cary Coutant <ccoutant@google.com>
1714 * dwarf2out.c (output_pubnames): Check die_perennial_p of
1715 parent instead of die_mark.
1717 2013-04-18 Diego Novillo <dnovillo@google.com>
1719 * gimple.c (create_gimple_tmp): New.
1720 (get_expr_type): New.
1721 (build_assign): New.
1722 (build_type_cast): New.
1723 * gimple.h (enum ssa_mode): Define.
1724 (gimple_seq_set_location): New.
1725 * asan.c (build_check_stmt): Change some gimple_build_* calls
1726 to use build_assign and build_type_cast.
1728 2013-04-18 Richard Biener <rguenther@suse.de>
1730 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
1731 handle negative step. Remove redundant checks.
1732 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
1733 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
1734 for negative step and grouped loads fail to vectorize.
1736 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1738 * emit-rtl.c (reset_insn_used_flags): New function.
1739 (reset_all_used_flags): Use it.
1740 (verify_insn_sharing): New function.
1741 (verify_rtl_sharing): Fix verification for SEQUENCEs.
1743 2013-04-18 Jakub Jelinek <jakub@redhat.com>
1745 PR tree-optimization/56984
1746 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
1747 and (x >> M) >= N don't register any assertion if N << M is the
1750 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1752 * lower-subreg.c (resolve_simple_move): If called self-recursive,
1753 do not delete_insn insns that have not yet been emitted, only
1754 unlink them with remove_insn.
1755 * df-scan.c (df_insn_delete): Revert r197492.
1757 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
1759 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
1760 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
1762 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1764 * config/arm/arm.md (movsicc_insn): Convert define_insn into
1765 define_insn_and_split.
1766 (and_scc,ior_scc,negscc): Likewise.
1767 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
1769 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1771 * config/arm/arm.c (use_return_insn): Return 0 for targets that
1772 can benefit from using a sequence of LDRD instructions in epilogue
1773 instead of a single LDM instruction.
1775 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1778 * doc/extend.texi: Fix typo.
1780 2013-04-17 Richard Biener <rguenther@suse.de>
1782 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
1783 (vect_build_slp_tree): ... here.
1784 (vect_build_slp_tree_1): Compute which stmts of the SLP group
1785 match. Remove special-casing of mismatched complex loads.
1786 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
1787 re-try the match with swapped commutative operands.
1788 (vect_supported_load_permutation_p): Remove special-casing of
1789 mismatched complex loads.
1790 (vect_analyze_slp_instance): Adjust.
1792 2013-04-17 Richard Biener <rguenther@suse.de>
1794 PR rtl-optimization/56921
1795 * cfgloop.h (struct loop): Add simple_loop_desc member.
1796 (struct niter_desc): Mark with GTY(()).
1797 (simple_loop_desc): Do not use aux field but simple_loop_desc.
1798 * loop-iv.c (get_simple_loop_desc): Likewise.
1799 (free_simple_loop_desc): Likewise.
1802 2013-04-16 Richard Biener <rguenther@suse.de>
1804 PR rtl-optimization/56921
1805 * loop-init.c (pass_rtl_move_loop_invariants): Add
1806 TODO_do_not_ggc_collect to todo_flags_finish.
1807 (pass_rtl_unswitch): Same.
1808 (pass_rtl_unroll_and_peel_loops): Same.
1809 (pass_rtl_doloop): Same.
1811 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
1813 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
1814 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
1815 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
1817 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
1818 * tree-streamer.c (record_common_node): Adjust reference in comment.
1820 2013-04-17 Terry Guo <terry.guo@arm.com>
1822 * config/arm/cortex-m4.md: Add a new bypass.
1824 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1826 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
1828 (*subs_<optab><mode>_multp2): New pattern.
1829 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1830 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1832 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1834 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
1835 (*subs_mul_imm_<mode>): New pattern.
1837 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
1840 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
1841 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
1842 (vsx_movti_32bit): Change j->wa to O->wa.
1844 2013-04-16 Richard Biener <rguenther@suse.de>
1846 PR rtl-optimization/56921
1847 * loop-init.c (pass_rtl_move_loop_invariants): Add
1848 TODO_do_not_ggc_collect to todo_flags_finish.
1849 (pass_rtl_unswitch): Same.
1850 (pass_rtl_unroll_and_peel_loops): Same.
1851 (pass_rtl_doloop): Same.
1853 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
1855 * config/arm/arm.c (emit_multi_reg_push): New declaration
1856 for an existing function.
1857 (arm_emit_strd_push): New function.
1858 (arm_expand_prologue): Used here.
1859 (arm_emit_ldrd_pop): New function.
1860 (arm_expand_epilogue): Used here.
1861 (arm_get_frame_offsets): Update condition.
1862 (arm_emit_multi_reg_pop): Add a special case for load of a single
1863 register with writeback.
1865 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
1867 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
1870 2013-04-16 Richard Biener <rguenther@suse.de>
1872 PR tree-optimization/56756
1873 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
1874 (first_mem_ref_loc): New.
1875 (execute_sm): Place the load temporarily before a previous
1876 access instead of in the latch edge to ensure its SSA dependencies
1877 are defined at points dominating the load.
1879 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
1881 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
1882 correct fix by moving header and footer insn to the footer of
1883 the merged basic block. Clear BB_END of the merged-away block.
1886 * emit-rtl.c (make_note_raw): New function.
1887 (link_insn_into_chain): New static inline function.
1889 (add_insn_before, add_insn_after): Factor insn chain linking code...
1890 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
1891 using link_insn_into_chain.
1892 (note_outside_basic_block_p): New helper function for emit_note_after
1893 and emit_note_before.
1894 (emit_note_after): Use nobb variant of add_insn_after if the note
1895 should not be contained in a basic block.
1896 (emit_note_before): Use nobb variant of add_insn_before if the note
1897 should not be contained in a basic block.
1898 (emit_note_copy): Use make_note_raw.
1899 (emit_note): Likewise.
1900 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
1901 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
1902 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
1903 the moved barrier the tail of the basic block it follows.
1904 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
1906 2013-04-15 Jakub Jelinek <jakub@redhat.com>
1908 PR tree-optimization/56962
1909 * gimple-ssa-strength-reduction.c (record_increment): Only set
1910 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
1911 either rhs1 or rhs2 is equal to c->base_expr.
1913 2013-04-15 Richard Biener <rguenther@suse.de>
1915 PR tree-optimization/56933
1916 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
1918 (GROUP_READ_WRITE_DEPENDENCE): Remove.
1919 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
1920 * tree-vect-data-refs.c (vect_analyze_group_access): Move
1921 dependence check ...
1922 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
1924 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
1925 GROUP_READ_WRITE_DEPENDENCE.
1927 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1929 * emit-rtl.c (reset_all_used_flags): New function.
1930 (verify_rtl_sharing): Call reset_all_used_flags before and after
1931 performing the checks.
1933 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1935 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
1936 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
1937 * config/arm/constraints.md (De): New constraint.
1938 * config/arm/neon.md (anddi3_neon): Delete.
1939 (neon_vand<mode>): Expand to standard anddi3 pattern.
1940 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
1941 Move earlier in the file.
1942 (neon_inv_logic_op2): Likewise.
1943 (arm_anddi_operand_neon): New predicate.
1945 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1947 * configure.ac (gcc_cv_ld_as_needed): Set
1948 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
1949 Use -z ignore, -z record on *-*-solaris2*.
1950 (HAVE_LD_AS_NEEDED): Update comment.
1951 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
1952 * configure: Regenerate.
1953 * config.in: Regenerate.
1954 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
1955 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
1956 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
1957 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
1958 equivalents. Fix markup.
1959 * doc/tm.texi: Regenerate.
1961 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
1963 * config/i386/i386.opt: New option mstack-protector-guard=.
1964 * config/i386/i386-opts.h: Add enum stack_protector_guard.
1965 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
1966 TARGET_SSP_TLS_GUARD.
1967 * config/i386/i386.c (ix86_option_override_internal): Set
1968 ix86_stack_protector_guard.
1969 * config/i386/i386.md (stack_protect_set): Enable for
1970 TARGET_SSP_TLS_GUARD only.
1971 (stack_protect_set_<mode>): Ditto.
1972 (stack_protect_test): Ditto.
1973 (stack_protect_test_<mode>): Ditto.
1974 * doc/invoke.texi (i386 Option): Document.
1976 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
1979 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
1980 (S_MODES): Set H_MODE bit.
1981 (SF_MODES): Set only S_MODE and SF_MODE bits.
1982 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
1983 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
1984 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
1985 <MODE_FLOAT>: Likewise.
1987 2013-04-15 Joey Ye <joey.ye@arm.com>
1989 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
1991 2013-04-15 Joey Ye <joey.ye@arm.com>
1993 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
1995 (thumb_far_jump_used_p): Count instruction size and set
1998 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
2000 * reorg.c (fill_simple_delay_slots): Reindent block of code.
2001 * resource.c (mark_target_live_regs): Reformat conditional block.
2003 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2005 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
2006 notes, they are emitted only just before final.
2007 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
2009 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2011 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
2012 * cfgrtl.c (delete_insn): Call it here instead.
2013 * lra-spills.c (lra_final_code_change): Use delete_insn.
2014 * haifa-sched.c (sched_remove_insn): Likewise.
2015 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
2016 returning to the nop pool.
2017 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
2018 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
2020 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2022 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
2023 * doc/tm.texi: Regenerated.
2025 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
2027 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
2030 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2032 * df-core.c (df_find_def): Compare register numbers.
2033 (df_find_use): Likewise.
2035 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
2038 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
2039 lra_in_progress for return.
2041 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2043 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
2044 define_insn into define_insn_and_split and emit movsicc patterns.
2046 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2048 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
2050 2013-04-12 Richard Biener <rguenther@suse.de>
2052 * tree-pass.h (TODO_do_not_ggc_collect): New.
2053 * passes.c (execute_one_ipa_transform_pass): Honor
2054 TODO_do_not_ggc_collect.
2055 (execute_one_pass): Likewise.
2058 2013-04-10 Richard Biener <rguenther@suse.de>
2060 * passes.c (init_optimization_passes): Remove reload pass.
2061 * ira.c (do_reload): Merge into ...
2063 (rest_of_handle_reload): Remove.
2064 (pass_reload): Likewise.
2065 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2066 of reload for vzeroupper pass placement.
2068 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2070 PR tree-optimization/56918
2071 PR tree-optimization/56920
2072 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
2073 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
2074 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
2075 use wide_mul_with_sign method.
2077 2013-04-12 Richard Biener <rguenther@suse.de>
2079 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
2080 not be considered a gimple constant.
2082 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
2084 * fold-const.c (const_binop): Handle vector shifts by a scalar.
2085 (fold_binary_loc): Call const_binop also for mixed vector-scalar
2088 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
2089 Jakub Jelinek <jakub@redhat.com>
2091 * opts.c: Include diagnostic-color.h.
2092 (common_handle_option): Handle OPT_fdiagnostics_color_.
2093 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
2094 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
2095 (diagnostic-color.o): New.
2096 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
2097 (diagnostic_color_rule): New enum.
2098 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
2099 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
2100 the location string.
2101 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
2102 either NULL, or color kind.
2103 * diagnostic-color.c: New file.
2104 * diagnostic-color.h: New file.
2105 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
2107 * doc/invoke.texi (-fdiagnostics-color): Document.
2108 * pretty-print.h (pp_show_color): Define.
2109 (struct pretty_print_info): Add show_color field.
2110 * diagnostic.c: Include diagnostic-color.h.
2111 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
2112 macros. Colorize error:, warning: etc. strings and also the location
2114 (diagnostic_show_locus): Colorize the caret line.
2115 * pretty-print.c: Include diagnostic-color.h.
2116 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
2117 inside of %< %> quotes or quoted through q format modifier.
2119 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2121 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
2123 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2125 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
2127 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
2130 2013-04-11 Marek Polacek <polacek@redhat.com>
2132 PR tree-optimization/48184
2133 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
2135 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2137 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
2138 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
2139 (skip_simple_arithmetic): Tidy up.
2140 * tree.h (skip_simple_constant_arithmetic): Declare.
2142 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2144 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
2146 2013-04-11 Richard Biener <rguenther@suse.de>
2148 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2149 generate vector constants.
2151 2013-04-11 Richard Biener <rguenther@suse.de>
2153 PR tree-optimization/56878
2154 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
2155 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
2157 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2158 Prefer to align the DR with the most invariant base address.
2160 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2162 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
2165 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2167 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
2168 floating-point vector comparisons against 0.
2170 2013-04-11 Jakub Jelinek <jakub@redhat.com>
2172 PR tree-optimization/56899
2173 * fold-const.c (extract_muldiv_1): Apply distributive law
2174 only if TYPE_OVERFLOW_WRAPS (ctype).
2176 2013-04-11 Bin Cheng <bin.cheng@arm.com>
2179 * ira-costs.c (scan_one_insn): Check whether the source rtx of
2180 loading has side effect.
2182 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
2184 * config/sparc/sparc.c: Include tree-pass.h.
2185 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
2186 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
2187 head of file. Change return type. Split off gate function.
2188 (sparc_gate_work_around_errata): New function.
2189 (pass_work_around_errata): New pass definition.
2190 (insert_pass_work_around_errata) New pass insert definition to
2191 insert pass_work_around_errata just after delayed-branch scheduling.
2192 (sparc_option_override): Insert the pass.
2193 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
2195 2013-04-10 David S. Miller <davem@davemloft.net>
2197 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
2198 or -mcpu=hypersparc.
2200 * target.def (cstore_mode): New hook.
2201 * target.h: Include insn-codes.h
2202 * targhooks.c: Likewise.
2203 (default_cstore_mode): New function.
2204 * targhooks.h: Declare it.
2205 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
2206 * doc/tm.texi: Rebuild.
2207 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
2208 target hook, rather than inspecting the insn_data.
2209 * config/sparc/sparc.c (sparc_cstore_mode): New function.
2210 (TARGET_CSTORE_MODE): Redefine.
2211 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
2213 * config/sparc/predicates.md (cstore_result_operand): New special
2215 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
2216 Use it for operand 0.
2217 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
2218 (*snesi_special): Likewise.
2219 (*snesi_zero): Likewise.
2220 (*seqsi_zero): Likewise.
2221 (*sltu_insn): Likewise.
2222 (*sgeu_insn): Likewise.
2223 (*seqdi_special): Make operand 0 and comparison operation be of
2225 (*snedi_special): Likewise.
2226 (*snedi_special_vis3): Likewise.
2227 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
2228 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
2229 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
2230 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
2231 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
2232 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
2233 (*sltu_extend_sp64): Likewise.
2234 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
2235 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
2236 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
2237 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
2238 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
2240 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
2242 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
2243 (aarch64_start_file): Use the new function.
2245 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2246 Jason Merrill <jason@redhat.com>
2248 * common.opt: Add -gdwarf.
2249 * opts.c (common_handle_option): Handle it.
2250 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
2252 2013-04-10 Richard Biener <rguenther@suse.de>
2254 * passes.c (execute_todo): Do not call ggc_collect conditional here.
2255 (execute_one_ipa_transform_pass): But unconditionally here.
2256 (execute_one_pass): And here.
2257 (init_optimization_passes): Remove reload pass.
2258 * tree-pass.h (TODO_ggc_collect): Remove.
2259 (pass_reload): Likewise.
2260 * ira.c (do_reload): Merge into ...
2262 (rest_of_handle_reload): Remove.
2263 (pass_reload): Likewise.
2264 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2265 of reload for vzeroupper pass placement.
2266 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
2267 and todo_flags_finish of all passes.
2269 2013-04-10 Richard Biener <rguenther@suse.de>
2271 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
2272 first_const_oprnd field, rename first_def_type to first_op_type.
2273 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
2274 (vect_get_and_check_slp_defs): Always use the type of the
2275 operand. Allow mixed vect_external_def, vect_constant_def types.
2276 (vect_get_constant_vectors): Handle mixed vect_external_def,
2277 vect_constant_def types.
2279 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
2281 PR tree-optimization/55524
2282 * tree-ssa-math-opts.c
2283 (convert_mult_to_fma): Don't use an fms construct
2284 when we don't have an fms operation, but fnma, and it looks
2285 likely that we'll be able to use the latter.
2287 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2289 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
2291 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
2292 inline fail caused by overwritable functions.
2294 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
2296 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
2297 unnecessary bits in the constant power of two case.
2299 2013-04-10 Richard Biener <rguenther@suse.de>
2301 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
2302 broken code swapping operands.
2303 (vect_build_slp_tree): Do not compute load permutations here.
2304 (vect_analyze_slp_instance): Compute load permutations here,
2305 after building the SLP tree.
2307 2013-04-09 Christian Bruel <christian.bruel@st.com>
2309 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
2310 of next/prev_real_insn.
2312 2013-04-09 Jan Hubicka <jh@suse.cz>
2314 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2315 Drop aliased parameter.
2316 (function_and_variable_visibility): Do not handle alias pairs.
2317 * cgraph.c (varpool_externally_visible_p): Update prototype.
2318 * varpool.c (varpool_add_new_variable): Update.
2320 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2322 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
2324 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
2326 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
2328 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
2330 2013-04-09 Marek Polacek <polacek@redhat.com>
2332 PR tree-optimization/48762
2333 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
2335 2013-04-09 Richard Biener <rguenther@suse.de>
2337 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
2339 (vect_build_slp_tree): Likewise.
2340 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
2341 calculating the cost of a SLP instance.
2342 (vect_analyze_slp_instance): Use it from here, after building
2345 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2348 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
2349 expand_omp_for_static_chunk): Use simple_p = true in
2350 force_gimple_operand_gsi calls when assigning to addressable decls.
2352 2013-04-09 Jeff Law <law@redhat.com>
2354 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
2355 when the boolean was created by converting a wider object which
2356 had a boolean range.
2358 2013-04-09 Richard Biener <rguenther@suse.de>
2360 * tree-vectorizer.h (slp_void_p): Remove.
2361 (slp_tree): Typedef before _slp_tree declaration.
2362 (struct _slp_tree): Use a vector of slp_tree as children.
2363 (vect_get_place_in_interleaving_chain): Remove.
2364 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
2366 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
2368 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
2369 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2370 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2371 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
2372 Use slp_node instead of slp_void_p and adjust.
2374 2013-04-09 Richard Biener <rguenther@suse.de>
2376 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
2377 work that is not necessary.
2379 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2381 PR tree-optimization/56854
2382 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
2383 forward into clobber stmts if it would change MEM_REF lhs into
2386 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
2388 * tree.c (type_hash_lookup, type_hash_add): Make static.
2389 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
2391 2013-04-09 Richard Biener <rguenther@suse.de>
2393 * tree.h (unsave_expr_now): Remove.
2394 * tree-inline.c (mark_local_for_remap_r): Remove.
2395 (unsave_expr_1): Likewise.
2396 (unsave_r): Likewise.
2397 (unsave_expr_now): Likewise.
2398 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
2399 (propagate_tree_value): Likewise.
2401 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
2403 * doc/rtl.texi (sequence): Rewrite documentation to match the
2404 current use of SEQUENCE rtl objects.
2405 * rtl.def (SEQUENCE): Likewise.
2407 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
2408 Update documentation.
2409 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
2410 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
2412 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
2414 2013-04-08 Teresa Johnson <tejohnson@google.com>
2416 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
2417 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
2419 (estimate_edge_size_and_time): Add comment to suggest using rounding
2421 (estimate_node_size_and_time): Ditto.
2422 (remap_edge_change_prob): Use helper rounding divide methods.
2423 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
2424 (gimple_mod_pow2_value_transform): Ditto.
2425 (gimple_mod_subtract_transform): Ditto.
2426 (gimple_ic_transform): Ditto.
2427 (gimple_stringops_transform): Ditto.
2428 * stmt.c (conditional_probability): Ditto.
2429 (emit_case_dispatch_table): Ditto.
2430 * lto-cgraph.c (merge_profile_summaries): Ditto.
2431 * tree-optimize.c (execute_fixup_cfg): Ditto.
2432 * cfgcleanup.c (try_forward_edges): Ditto.
2433 * cfgloopmanip.c (scale_loop_profile): Ditto.
2435 (duplicate_loop_to_header_edge): Ditto.
2436 (lv_adjust_loop_entry_edge): Ditto.
2437 * tree-vect-loop.c (vect_transform_loop): Ditto.
2438 * profile.c (compute_branch_probabilities): Ditto.
2439 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
2440 * lto-streamer-in.c (input_cfg): Ditto.
2441 * gimple-streamer-in.c (input_bb): Ditto.
2442 * ipa-cp.c (update_profiling_info): Ditto.
2443 (update_specialized_profile): Ditto.
2444 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
2445 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
2447 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2448 (compute_trg_info): Ditto.
2449 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
2450 (purge_dead_edges): Ditto.
2451 * loop-unswitch.c (unswitch_loop): Ditto.
2452 * cgraphclones.c (cgraph_clone_edge): Ditto.
2453 (cgraph_clone_node): Ditto.
2454 * tree-inline.c (copy_bb): Ditto.
2455 (copy_edges_for_bb): Ditto.
2456 (initialize_cfun): Ditto.
2457 (copy_cfg_body): Ditto.
2458 (expand_call_inline): Ditto.
2460 2013-04-08 Kai Tietz <ktietz@redhat.com>
2462 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
2463 TARGET_CYGWIN64 by TARGET_64BIT.
2465 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2467 * config/epiphany/epiphany.md (GPR_1): New constant.
2468 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
2469 * config/epiphany/epiphany.c (gen_compare_reg):
2470 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
2471 is already in place.
2472 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
2473 Don't require being called during rtl expansion; If y operlaps r0,
2475 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
2476 (epiphany_expand_epilogue): Likewise.
2478 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
2479 Don't use CC_FPmode for ORDERED / UNORDERED.
2480 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
2482 * config/epiphany/constraints.md (CnL): New constraint.
2483 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
2484 * config/epiphany/predicates.md (add_operand): Allow 1024.
2486 * config/epiphany/epiphany.md (logical_op): New code iterator.
2487 (op_mnc): New code attribute.
2488 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
2489 (mov_f+1, mov_f+2): New peephole2 patterns.
2491 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
2492 (cstoresi4): Also allow re-use of zero result when doing a NE
2493 comparison to a non-zero operand.
2494 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2496 * config/epiphany/epiphany.md (<insn_opname>v2si3):
2497 Use gen_addsi3_i / gen_subsi3_i.
2499 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2503 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
2504 contain anything but clobbers, at most one __builtin_stack_restore,
2505 optionally debug stmts and final resx, and if it has at least one
2506 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
2507 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
2508 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
2509 which isn't defaut definition, remove them.
2510 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
2511 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
2512 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
2513 with MEM_REF LHS with SSA_NAME address.
2515 2013-04-08 Jeff Law <law@redhat.com>
2517 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
2519 2013-04-08 Richard Biener <rguenther@suse.de>
2521 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
2523 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
2524 determined vector type.
2525 (vect_analyze_data_refs): Likewise.
2526 (vect_get_new_vect_var): Adjust.
2527 (vect_create_destination_var): Preserve SSA name versions.
2528 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
2529 not dump anything here.
2531 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2533 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
2534 Add member lr_slot_known.
2535 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
2537 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
2538 Remove code that sets lr_slot_offset according to what a previous
2539 version of epiphany_emit_save_restore used to do.
2540 (epiphany_emit_save_restore): When doing an lr save or restore,
2541 set/verify lr_slot_known and lr_slot_offset.
2543 2013-04-08 Xinyu Qi <xyqi@marvell.com>
2546 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
2549 2013-04-08 Richard Biener <rguenther@suse.de>
2551 * alias.c (find_base_term): Fix thinko in previous change.
2553 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2555 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
2556 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
2557 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
2558 if possible to compute val.
2559 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
2560 For QImode integers don't require anything about precision. Use
2561 const_with_all_bytes_same to find out if the constant doesn't have
2562 repeated bytes in it.
2564 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2566 * config/s390/s390.c (s390_expand_insv): Only accept insertions
2569 2013-04-08 Marek Polacek <polacek@redhat.com>
2571 PR rtl-optimization/48182
2572 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
2575 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2578 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
2579 nuses, make sure we have a label.
2581 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2584 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
2585 (rs6000_emit_swdiv_low_precision): Remove.
2586 (rs6000_emit_swdiv): Rewrite to handle between one and four
2587 iterations of Newton-Raphson generally; modify required number of
2588 iterations for some cases.
2589 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
2591 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
2593 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
2594 set-but-unused variable.
2596 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
2597 basic blocks of released function bodies garbage-collectable.
2599 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
2600 (struct rtl_opt_pass): Add TODO_df_finish.
2602 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
2604 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2606 * config/arm/constraints.md (q): New constraint.
2607 * config/arm/ldrdstrd.md: New file.
2608 * config/arm/arm.md (ldrdstrd.md) New include.
2609 (arm_movdi): Use "q" instead of "r" constraint
2610 for double-word memory access.
2611 (movdf_soft_insn): Likewise.
2612 * config/arm/vfp.md (movdi_vfp): Likewise.
2613 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
2614 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
2615 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
2616 (mem_ok_for_ldrd_strd): Likewise.
2617 (output_move_double): Update assertion.
2619 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2621 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
2623 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2625 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
2626 define_insn_and_split.
2627 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
2629 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2631 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
2632 define_insn_and_split.
2633 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
2634 (shiftsi3_compare): New pattern.
2636 * config/arm/unspecs.md (UNSPEC_RRX): New.
2638 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2640 * config/arm/arm.md (negdi_extendsidi): New pattern.
2641 (negdi_zero_extendsidi): Likewise.
2643 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2645 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
2646 define_insn_and_split.
2647 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
2648 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
2650 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2652 * config/arm/arm.md (arm_subdi3): Convert define_insn into
2653 define_insn_and_split.
2654 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
2655 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
2657 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2659 * config/arm/arm.md (subsi3_carryin): New pattern.
2660 (subsi3_carryin_const): Likewise.
2661 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
2662 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
2664 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2666 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
2668 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2670 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
2671 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
2673 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2675 * config/arm/arm.c (arm_expand_builtin): Change fcode
2676 type to unsigned int.
2678 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2680 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
2682 2013-04-04 Ian Lance Taylor <iant@google.com>
2684 * doc/standards.texi (Standards): The Go frontend supports the Go 1
2687 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
2690 * df-scan.c (df_insn_delete): Disable failing assert.
2692 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2694 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
2695 New function prototype.
2696 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
2697 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
2698 (arm_builtin_vectorized_function): New function.
2700 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2702 * config/arm/arm_neon_builtins.def: New file.
2703 * config/arm/arm.c (neon_builtin_data): Move contents to
2704 arm_neon_builtins.def.
2705 (enum arm_builtins): Include neon builtin definitions.
2706 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
2707 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
2709 2013-04-04 Marek Polacek <polacek@redhat.com>
2711 PR tree-optimization/48186
2712 * predict.c (maybe_hot_frequency_p): Return false if
2713 HOT_BB_FREQUENCY_FRACTION is 0.
2714 (cgraph_maybe_hot_edge_p): Likewise.
2716 2013-04-04 Richard Biener <rguenther@suse.de>
2718 PR tree-optimization/56826
2719 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
2722 2013-04-04 Richard Biener <rguenther@suse.de>
2724 PR tree-optimization/56213
2725 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
2726 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
2728 2013-04-04 Richard Biener <rguenther@suse.de>
2730 PR tree-optimization/56837
2731 * tree-loop-distribution.c (classify_partition): For non-zero
2732 values require that the value has the same precision as its
2733 mode to be useful as memset value.
2735 2013-04-03 Nick Clifton <nickc@redhat.com>
2737 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
2738 (fmssf4): Use fmsf.s on E3V5 architectures.
2739 (fnmasf4): Use fnmaf.s on E3V5 architectures.
2740 (fnmssf4): Use fnmsf.s on E3V5 architectures.
2742 2013-04-03 Jeff Law <law@redhat.com>
2744 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
2745 (lra-eliminations.o): Likewise.
2747 2013-04-03 Teresa Johnson <tejohnson@google.com>
2749 * gcov-io.c (compute_working_sets): Moved most of body of old
2750 compute_working_sets here from profile.c.
2751 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
2752 (gcov_working_set_t): Moved typedef here from basic-block.h
2753 (compute_working_set): Declare.
2754 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
2755 (get_working_sets): Renamed from compute_working_set,
2756 replace most of body with call to new compute_working_sets.
2757 (get_exec_counts): Replace call to compute_working_sets
2758 to get_working_sets.
2759 * profile.h (get_working_sets): Renamed from compute_working_set.
2760 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
2761 to get_working_sets.
2762 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
2763 * gcov-dump.c (dump_working_sets): New function.
2765 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
2767 * hwint.c (sext_hwi, zext_hwi): New functions.
2768 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
2769 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
2770 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
2771 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
2772 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
2773 (sext_hwi, zext_hwi): New functions.
2775 2013-04-03 Jeff Law <law@redhat.com>
2777 PR tree-optimization/56799
2778 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
2779 back test for widening conversion erroneously dropped in prior change.
2781 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2784 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
2785 instead of next_real_insn.
2787 2013-04-03 Marek Polacek <polacek@redhat.com>
2790 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
2792 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2795 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
2797 (thumb1_output_casesi): Likewise.
2798 (thumb2_output_casesi): Likewise.
2800 2013-04-03 Richard Biener <rguenther@suse.de>
2802 PR tree-optimization/56817
2803 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2805 (tree_unroll_loops_completely_1): ... new function to manually
2806 walk the loop tree, properly defering outer loops of unrolled
2807 loops to later iterations.
2809 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2811 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
2812 (vectorizable_load): Likewise.
2813 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
2814 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
2816 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2818 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
2821 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2823 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
2825 2013-04-03 Bin Cheng <bin.cheng@arm.com>
2827 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
2829 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2831 PR tree-optimization/56790
2832 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
2835 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2837 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
2839 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
2840 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
2843 2013-04-03 Jakub Jelinek <jakub@redhat.com>
2846 * tree.h (force_folding_builtin_constant_p): New decl.
2847 * builtins.c (force_folding_builtin_constant_p): New variable.
2848 (fold_builtin_constant_p): Fold immediately also if
2849 force_folding_builtin_constant_p.
2851 2013-04-03 Richard Biener <rguenther@suse.de>
2853 PR tree-optimization/56812
2854 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2855 DRs of the same interleaving chain are independent.
2857 2013-04-02 Jason Merrill <jason@redhat.com>
2859 * gdbinit.in (pbb): Use debug fn.
2861 2013-04-02 Lawrence Crowl <crowl@google.com>
2863 * sese.h (struct ivtype_map_elt_s): Remove unused.
2864 (extern debug_ivtype_map): Remove unused.
2865 (extern eq_ivtype_map_elts): Remove unused.
2866 * sese.c (debug_ivtype_map): Removed unused.
2867 (debug_ivtype_map_1): Removed unused.
2868 (debug_ivtype_elt): Remove unused.
2869 (eq_ivtype_map_elts): Remove unused.
2872 2013-04-02 Kai Tietz <ktietz@redhat.com>
2875 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
2876 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
2877 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
2879 (legitimize_pe_coff_symbol): Likewise.
2880 (is_imported_p): New helper-function.
2881 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
2882 for Windows x64 targets.
2883 (ix86_expand_prologue): Optimize for pe-coff targets.
2884 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
2885 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
2886 medium/large code-model.
2887 (legitimize_pic_address): Likewise.
2888 (legitimize_tls_address): Likewise.
2889 (ix86_expand_call): Likewise.
2890 (x86_output_mi_thunk): Likewise.
2891 (get_dllimport_decl): Add new beimport argument.
2892 (construct_plt_address): Don't assert for x64 pe-coff targets.
2893 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
2895 (SYMBOL_FLAG_STUBVAR): New macro.
2896 (SYMBOL_REF_STUBVAR_P): Likewise.
2897 * config/i386/winnt.c (stub_list): New structure.
2898 (stub_head): New local variable.
2899 (i386_pe_record_stub): New function.
2900 (i386_pe_file_end): Emit refptr-stubs.
2902 2013-04-02 Jakub Jelinek <jakub@redhat.com>
2904 PR rtl-optimization/56745
2905 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
2906 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
2909 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
2910 and both of them are MEM_REFs, just compare first argument for
2911 equality and attempt to deal even with differing offsets.
2914 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
2915 of gimple_clobber_p to be MEM_REF.
2916 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
2917 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
2918 after gimplification.
2919 * asan.c (get_mem_ref_of_assignment): Don't instrument
2920 gimple_clobber_p stmts.
2921 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
2922 gimple_clobber_p stmt if they have MEM_REF lhs and
2923 are dead because of another gimple_clobber_p stmt.
2924 * tree-ssa-live.c (clear_unused_block_pointer): Treat
2925 gimple_clobber_p stmts like debug stmts.
2926 (remove_unused_locals): Remove clobbers with MEM_REF lhs
2927 that refer to unused VAR_DECLs or uninitialized values.
2928 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
2929 gimple_clobber_p stmts if they refer to removed parameters.
2930 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
2933 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
2935 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
2936 using SWI48 mode attribute.
2938 2013-04-02 Wei Mi <wmi@google.com>
2940 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
2941 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
2942 *<rotate_insn><mode>3_mask in i386.md.
2944 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
2946 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
2948 2013-04-02 Richard Biener <rguenther@suse.de>
2950 PR tree-optimization/56778
2951 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2952 Runtime alias tests are not supported for gather loads.
2953 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
2954 stmts referenced from SSA operands before updating SSA form.
2956 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
2957 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2959 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
2960 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
2961 * config/arm/cortex-a53.md: New file.
2962 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
2963 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
2964 * config/arm/arm.c (arm_issue_rate): Likewise.
2965 * config/arm/arm-tune.md: Regenerate
2966 * config/arm/arm-tables.opt: Regenerate.
2967 * config/arm/arm-cores.def: Add cortex-a53.
2969 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
2971 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
2974 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2976 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
2977 scalar load/store operations using B/H registers.
2978 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
2980 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2982 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
2984 * config/aarch64/aarch64.c
2985 (aarch64_simd_scalar_immediate_valid_for_move): New.
2986 * config/aarch64/aarch64-protos.h
2987 (aarch64_simd_scalar_immediate_valid_for_move): New.
2988 * config/aarch64/constraints.md (Dh, Dq): New.
2989 * config/aarch64/iterators.md (hq): New.
2991 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
2993 * reorg.c (get_branch_condition): Deal with conditional returns.
2994 (fill_simple_delay_slots): Remove dead code dealing with jumps.
2996 2013-04-01 Wei Mi <wmi@google.com>
2998 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
2999 Truncate operand 2 using %b asm operand modifier.
3000 (*<shift_insn><mode>3_mask): Ditto.
3001 (*<rotate_insn><mode>3_mask): Ditto.
3003 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
3006 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
3008 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
3010 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
3012 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
3014 2013-03-30 Lawrence Crowl <crowl@google.com>
3016 * dse.c (clear_alias_sets): Remove never set.
3017 (disqualified_clear_alias_sets): Remove never set.
3018 (clear_alias_mode_pool): Remove never set.
3019 (dse_step0): Remove condition that is never true.
3020 (canon_address): Remove condition that is never true.
3021 (dse_step7): Remove condition that is never true.
3022 (rest_of_handle_dse): Remove condition that is never true.
3023 (rest_of_handle_dse::did_global): Remove never read from above.
3024 (dse_step2_spill): Remove never called from above.
3025 (dse_step5_spill): Remove never called from above.
3027 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
3029 * doc/md.texi (Standard Names) <casesi>: Update documentation for
3030 JUMP_TABLE_DATA changes.
3031 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
3032 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
3033 (Insns) <jump_table_data>: New entry.
3034 * doc/tm.texi: Regenerate.
3036 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
3038 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
3039 for table jump at the end of a basic block using tablejump_p.
3040 * targhooks.c (default_invalid_within_doloop): Likewise.
3041 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
3042 target hook implementation that is identical to the default hook.
3043 (rs6000_invalid_within_doloop): Remove.
3045 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
3046 unused variable from tablejump_p call.
3048 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
3049 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
3050 (INSN_DELETED_P): Likewise.
3051 (emit_jump_table_data): New prototype.
3052 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
3053 after 4th as unused.
3054 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
3055 * sched-vis.c (print_insn): Likewise.
3056 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
3057 insn for compatibility with back ends that use next_active_insn to
3058 identify jump table data.
3059 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
3060 (remove_insn): Likewise.
3061 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
3063 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
3064 (emit_jump_table_data): New function.
3066 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
3067 basic block, a JUMP_TABLE_DATA never is.
3068 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
3069 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
3070 off from code handling real insns.
3071 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
3072 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
3073 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
3074 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
3075 is not a NONDEBUG_INSN_P.
3076 * ira-costs.c (scan_one_insn): Likewise.
3077 * jump.c (mark_all_labels): Likewise.
3078 (mark_jump_label_1): Likewise.
3079 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3080 * lra.c (get_insn_freq): Expect all insns reaching here to be in
3082 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
3083 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
3084 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
3085 JUMP_TABLE_DATA_P insns.
3086 (calculate_elim_costs_all_insns): Likewise.
3087 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
3088 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
3089 (delete_output_reload): Code style fixups.
3090 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
3091 insn flags on this non-insn.
3092 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
3093 as scheduling barriers, for pre-change compatibility.
3094 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
3095 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
3097 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
3098 redundant JUMP_TABLE_DATA_P test.
3099 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
3100 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3101 (frv_for_each_packet): Likewise.
3102 * config/i386/i386.c (min_insn_size): Likewise.
3103 (ix86_avoid_jump_mispredicts): Likewise.
3104 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3105 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
3106 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3107 (mips16_insn_length): Robustify.
3108 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
3109 (mips16_split_long_branches): Likewise.
3110 * config/pa/pa.c (pa_combine_instructions): Likewise.
3111 * config/rs6000/rs6000.c (get_next_active_insn): Treat
3112 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
3113 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
3114 as contributing to pool range lengths.
3115 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
3116 Remove redundant JUMP_TABLE_DATA_P test.
3117 (sh_loop_align): Likewise.
3118 (split_branches): Likewise.
3119 (sh_insn_length_adjustment): Likewise.
3120 * config/spu/spu.c (get_branch_target): Likewise.
3122 2013-03-29 Jan Hubicka <jh@suse.cz>
3124 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
3125 gcov streaming; stream hot bb threshold to ltrans.
3126 * predict.c (get_hot_bb_threshold): Break out from ....
3127 (maybe_hot_count_p): ... here.
3128 (set_hot_bb_threshold): New function.
3129 * lto-section-in.c (lto_section_name): Add profile.
3130 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
3131 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
3133 (histogram_entry): New structure.
3134 (histogram, histogram_pool): New global vars.
3135 (histogram_hash): New structure.
3136 (histogram_hash::hash): New method.
3137 (histogram_hash::equal): Likewise.
3138 (account_time_size): New function.
3139 (cmp_counts): New function.
3140 (dump_histogram): New function.
3141 (ipa_profile_generate_summary): New function.
3142 (ipa_profile_write_summary): New function.
3143 (ipa_profile_read_summary): New function.
3144 (ipa_profile): Decide on threshold.
3145 (pass_ipa_profile): Add ipa_profile_write_summary and
3146 ipa_profile_read_summary.
3147 * Makefile.in (ipa.o): Update dependencies.
3148 * lto-streamer.h (LTO_section_ipa_profile): New section.
3150 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
3152 * tree.h (VAR_P): New.
3154 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
3157 * doc/invoke.texi ([-fwhole-program]): Fix typo.
3159 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
3161 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
3162 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3163 (control_flow_insn_p): Likewise.
3164 * cfgrtl.c (duplicate_insn_chain): Likewise.
3165 * final.c (get_attr_length_1): Likewise.
3166 (shorten_branches): Likewise.
3167 (final_scan_insn): Likewise.
3168 * function.c (instantiate_virtual_regs): Likewise.
3169 * gcse.c (insert_insn_end_basic_block): Likewise.
3170 * ira-costs.c (scan_one_insn): Likewise.
3171 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3172 * lra.c (check_rtl): Likewise.
3173 * reload1.c (elimination_costs_in_insn): Likewise.
3174 * reorg.c (follow_jumps): Likewise.
3176 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
3177 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3178 (thumb_far_jump_used_p): Likewise.
3179 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
3180 (workaround_speculation): Likewise.
3181 (add_sched_insns_for_speculation): Likewise.
3182 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
3183 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3184 (frv_for_each_packet): Likewise.
3185 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
3186 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
3187 (final_emit_insn_group_barriers): Likewise.
3188 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3189 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3190 (mips16_insn_length): Likewise.
3191 * config/pa/pa.c (pa_reorg): Likewise.
3192 (pa_combine_instructions): Likewise.
3193 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
3194 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
3195 (sh_reorg): Likewise.
3196 (split_branches): Likewise.
3197 * config/spu/spu.c (get_branch_target): Likewise.
3199 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
3202 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
3204 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
3205 Fix declaration name.
3207 2013-03-28 Lawrence Crowl <crowl@google.com>
3209 * graphds.h (struct graph.indicies): Remove unused.
3210 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
3211 (SCOP_ORIGINAL_PDDRS): Remove unused.
3212 * sese.h (extern insert_loop_close_phis): Removed unused.
3213 (extern insert_guard_phis): Removed unused.
3214 (extern ivtype_map_elt_info): Removed unused.
3215 (new_ivtype_map_elt): Removed unused.
3216 * sese.c (ivtype_map_elt_info): Removed unused.
3218 2013-03-28 Lawrence Crowl <crowl@google.com>
3220 * Makefile.in: Add several missing include dependences.
3222 (test-dump.o): New. This object is not added to any executable,
3223 but is present for ad-hoc testing.
3225 (debug (const bitmap_head_def &)): New.
3226 (debug (const bitmap_head_def *)): New.
3228 (extern debug (const bitmap_head_def &)): New.
3229 (extern debug (const bitmap_head_def *)): New.
3231 (debug (edge_def &)): New.
3232 (debug (edge_def *)): New.
3234 (debug (basic_block_def &)): New.
3235 (debug (basic_block_def *)): New.
3237 (dump_node (const_tree, int, FILE *)): Correct source file.
3239 (debug (die_struct &)): New.
3240 (debug (die_struct *)): New.
3242 (extern debug (die_struct &)): New.
3243 (extern debug (die_struct *)): New.
3244 * gimple-pretty-print.c
3245 (debug (gimple_statement_d &)): New.
3246 (debug (gimple_statement_d *)): New.
3247 * gimple-pretty-print.h
3248 (extern debug (gimple_statement_d &)): New.
3249 (extern debug (gimple_statement_d *)): New.
3251 (debug (ira_allocno_copy &)): New.
3252 (debug (ira_allocno_copy *)): New.
3253 (debug (ira_allocno &)): New.
3254 (debug (ira_allocno *)): New.
3256 (extern debug (ira_allocno_copy &)): New.
3257 (extern debug (ira_allocno_copy *)): New.
3258 (extern debug (ira_allocno &)): New.
3259 (extern debug (ira_allocno *)): New.
3261 (debug (live_range &)): New.
3262 (debug (live_range *)): New.
3264 (debug (lra_live_range &)): New.
3265 (debug (lra_live_range *)): New.
3267 (debug (lra_live_range &)): New.
3268 (debug (lra_live_range *)): New.
3270 (debug (omega_pb_d &)): New.
3271 (debug (omega_pb_d *)): New.
3273 (extern debug (omega_pb_d &)): New.
3274 (extern debug (omega_pb_d *)): New.
3276 (debug (const rtx_def &)): New.
3277 (debug (const rtx_def *)): New.
3279 (debug_tree (tree): Move within file.
3280 (debug_raw (const tree_node &)): New.
3281 (debug_raw (const tree_node *)): New.
3282 (dump_tree_via_hooks (const tree_node *, int)): New.
3283 (debug (const tree_node &)): New.
3284 (debug (const tree_node *)): New.
3285 (debug_verbose (const tree_node &)): New.
3286 (debug_verbose (const tree_node *)): New.
3287 (debug_head (const tree_node &)): New.
3288 (debug_head (const tree_node *)): New.
3289 (debug_body (const tree_node &)): New.
3290 (debug_body (const tree_node *)): New.
3291 (debug_vec_tree (tree): Move and reimplement in terms of dump.
3292 (debug (vec<tree, va_gc> &)): New.
3293 (debug (vec<tree, va_gc> *)): New.
3295 (extern debug (const rtx_def &)): New.
3296 (extern debug (const rtx_def *)): New.
3298 (debug_raw (simple_bitmap_def &)): New.
3299 (debug_raw (simple_bitmap_def *)): New.
3300 (debug (simple_bitmap_def &)): New.
3301 (debug (simple_bitmap_def *)): New.
3303 (extern debug (simple_bitmap_def &)): New.
3304 (extern debug (simple_bitmap_def *)): New.
3305 (extern debug_raw (simple_bitmap_def &)): New.
3306 (extern debug_raw (simple_bitmap_def *)): New.
3308 (debug (vinsn_def &)): New.
3309 (debug (vinsn_def *)): New.
3310 (debug_verbose (vinsn_def &)): New.
3311 (debug_verbose (vinsn_def *)): New.
3312 (debug (expr_def &)): New.
3313 (debug (expr_def *)): New.
3314 (debug_verbose (expr_def &)): New.
3315 (debug_verbose (expr_def *)): New.
3316 (debug (vec<rtx> &)): New.
3317 (debug (vec<rtx> *)): New.
3319 (extern debug (vinsn_def &)): New.
3320 (extern debug (vinsn_def *)): New.
3321 (extern debug_verbose (vinsn_def &)): New.
3322 (extern debug_verbose (vinsn_def *)): New.
3323 (extern debug (expr_def &)): New.
3324 (extern debug (expr_def *)): New.
3325 (extern debug_verbose (expr_def &)): New.
3326 (extern debug_verbose (expr_def *)): New.
3327 (extern debug (vec<rtx> &)): New.
3328 (extern debug (vec<rtx> *)): New.
3330 (_list_iter_cond_expr): Make inline instead of static.
3332 (debug (sreal &)): New.
3333 (debug (sreal *)): New.
3335 (extern debug (sreal &)): New.
3336 (extern debug (sreal *)): New.
3338 (extern debug_raw (const tree_node &)): New.
3339 (extern debug_raw (const tree_node *)): New.
3340 (extern debug (const tree_node &)): New.
3341 (extern debug (const tree_node *)): New.
3342 (extern debug_verbose (const tree_node &)): New.
3343 (extern debug_verbose (const tree_node *)): New.
3344 (extern debug_head (const tree_node &)): New.
3345 (extern debug_head (const tree_node *)): New.
3346 (extern debug_body (const tree_node &)): New.
3347 (extern debug_body (const tree_node *)): New.
3348 (extern debug (vec<tree, va_gc> &)): New.
3349 (extern debug (vec<tree, va_gc> *)): New.
3351 (debug (struct loop &)): New.
3352 (debug (struct loop *)): New.
3353 (debug_verbose (struct loop &)): New.
3354 (debug_verbose (struct loop *)): New.
3355 * tree-dump.c: Add header dependence.
3357 (extern debug (struct loop &)): New.
3358 (extern debug (struct loop *)): New.
3359 (extern debug_verbose (struct loop &)): New.
3360 (extern debug_verbose (struct loop *)): New.
3362 (debug (data_reference &)): New.
3363 (debug (data_reference *)): New.
3364 (debug (vec<data_reference_p> &)): New.
3365 (debug (vec<data_reference_p> *)): New.
3366 (debug (vec<ddr_p> &)): New.
3367 (debug (vec<ddr_p> *)): New.
3369 (extern debug (data_reference &)): New.
3370 (extern debug (data_reference *)): New.
3371 (extern debug (vec<data_reference_p> &)): New.
3372 (extern debug (vec<data_reference_p> *)): New.
3373 (extern debug (vec<ddr_p> &)): New.
3374 (extern debug (vec<ddr_p> *)): New.
3376 (debug (pt_solution &)): New.
3377 (debug (pt_solution *)): New.
3379 (extern debug (pt_solution &)): New.
3380 (extern debug (pt_solution *)): New.
3382 (debug (_var_map &)): New.
3383 (debug (_var_map *)): New.
3384 (debug (tree_live_info_d &)): New.
3385 (debug (tree_live_info_d *)): New.
3387 (extern debug (_var_map &)): New.
3388 (extern debug (_var_map *)): New.
3389 (extern debug (tree_live_info_d &)): New.
3390 (extern debug (tree_live_info_d *)): New.
3392 2013-03-28 Jan Hubicka <jh@suse.cz>
3394 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
3396 2013-03-28 Ian Bolton <ian.bolton@arm.com>
3398 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
3399 record only when desired or required.
3401 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
3403 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
3404 *vec_extractv2di_1_rex64. Use x64 isa attribute.
3406 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3408 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
3409 (*andsi3_compare0_uxtw): New pattern.
3410 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
3411 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
3413 2013-03-28 Jan Hubicka <jh@suse.cz>
3415 * data-streamer-in.c (streamer_read_gcov_count): New function.
3416 * gimple-streamer-out.c: Include value-prof.h.
3417 (output_gimple_stmt): Output histogram.
3418 (output_bb): Use streamer_write_gcov_count.
3419 * value-prof.c: Include data-streamer.h
3420 (dump_histogram_value): Add HIST_TYPE_MAX.
3421 (stream_out_histogram_value): New function.
3422 (stream_in_histogram_value): New function.
3423 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
3424 (stream_out_histogram_value, stream_in_histogram_value): Declare.
3425 * data-streamer-out.c (streamer_write_gcov_count): New function.
3426 (streamer_write_gcov_count_stream): New function.
3427 * lto-cgraph.c (lto_output_edge): Update counter streaming.
3428 (lto_output_node): Likewise.
3429 (input_node, input_edge): Likewise.
3430 * lto-streamer-out.c (output_cfg): Update streaming.
3431 * lto-streamer-in.c (input_cfg): Likewise.
3432 * data-streamer.h (streamer_write_gcov_count,
3433 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
3434 * gimple-streamer-in.c: Include value-prof.h
3435 (input_gimple_stmt): Input histograms.
3436 (input_bb): Update profile streaming.
3438 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3440 * genmodes.c (emit_max_int): New function.
3441 (emit_insn_modes_h): Added call to emit_max_function.
3442 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
3444 * machmode.def: Fixed comment.
3446 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3448 * combine.c (try_combine): Removed useless assert.
3449 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
3451 2013-03-28 Marek Polacek <polacek@redhat.com>
3452 Richard Biener <rguenther@suse.de>
3454 PR tree-optimization/56695
3455 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
3456 build signed result of a vector comparison.
3457 * tree-cfg.c (verify_gimple_comparison): Check that a result
3458 of a vector comparison has signed type.
3460 2013-03-28 Richard Biener <rguenther@suse.de>
3462 PR tree-optimization/37021
3463 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
3464 do not restrict gaps between groups.
3465 * tree-vect-stmts.c (vectorizable_load): Properly account for
3466 a gap between groups.
3468 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
3470 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
3471 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
3474 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
3476 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
3477 * doc/extend.texi (Named Address Spaces): Ditto.
3478 (Variable Attributes): Ditto.
3480 2013-03-27 Kai Tietz <ktietz@redhat.com>
3482 * config.build: Add support for cygwin x64 target.
3483 * config.gcc: Likewise.
3484 * config.host: Likewise.
3485 * configure.ac: Likewise
3486 * configure: Regenerated.
3488 2013-03-27 Kai Tietz <ktietz@redhat.com>
3490 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
3491 * config/i386/t-cygwin-w64: New file.
3492 * config/i386/cygwin-w64.h: New file.
3493 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
3494 and add support for x64-cygwin target.
3495 (CPP_SPEC): Likewise.
3496 (CXX_WRAP_SPEC_LIST): Undefine before define.
3497 (LIBGCJ_SONAME): Use 15 as version.
3499 2013-03-27 Richard Biener <rguenther@suse.de>
3501 PR tree-optimization/56716
3502 * tree-ssa-structalias.c (perform_var_substitution): Adjust
3503 dumping for ref nodes.
3505 2013-03-27 Martin Jambor <mjambor@suse.cz>
3507 PR tree-optimization/55334
3508 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
3509 restricted pointers to arrays.
3511 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3513 * Makefile.in (.SUFFIXES): Add .cc.
3514 (.c.o): Apply same recipe for implicit rule .cc.o.
3516 2013-03-27 Richard Biener <rguenther@suse.de>
3518 PR tree-optimization/37021
3519 * tree-vect-data-refs.c (vect_check_strided_load): Allow
3520 REALPART/IMAGPART_EXPRs around the supported refs.
3521 * tree-ssa-structalias.c (find_func_aliases): Assume that
3522 floating-point values are not used to transfer pointers.
3524 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3526 * target.def (TARGET_HAS_IFUNC_P): New target hook.
3527 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
3528 * doc/tm.texi: Regenerate.
3529 * targhooks.h (default_has_ifunc_p): New.
3530 * targhooks.c (default_has_ifunc_p): Ditto.
3531 * config/linux-protos.h: New file.
3532 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
3533 this hook for linux which disables support of indirect functions in
3535 * config/linux-android.c: New file.
3536 * config/t-linux-android.c: Ditto.
3537 * config.gcc: Added new object file linux-android.o.
3538 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
3539 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
3540 * varasm.c (do_assemble_alias): Likewise.
3541 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
3542 doesn't support indirect functions.
3543 * configure: Regenerate.
3545 2013-03-27 Bin Cheng <bin.cheng@arm.com>
3548 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
3549 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
3552 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3554 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
3556 2013-03-27 Terry Guo <terry.guo@arm.com>
3558 * config/arm/arm-cores.def: Added core cortex-r7.
3559 * config/arm/arm-tune.md: Regenerated.
3560 * config/arm/arm-tables.opt: Regenerated.
3561 * doc/invoke.texi: Added entry for core cortex-r7.
3563 2013-03-27 Walter Lee <walt@tilera.com>
3565 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3566 double-decrement of next_scratch_regno.
3568 2013-03-27 Walter Lee <walt@tilera.com>
3570 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3572 (insn_v1mulus): Ditto.
3573 (insn_v2muls): Ditto.
3575 2013-03-27 Walter Lee <walt@tilera.com>
3577 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
3578 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
3580 2013-03-27 Walter Lee <walt@tilera.com>
3582 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
3583 (*sibcall_value): Ditto.
3585 2013-03-27 Walter Lee <walt@tilera.com>
3587 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
3588 (insn_mnz_v8qi): ... this ...
3589 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
3591 (insn_v<n>mnz): Replaced by ...
3592 (insn_v1mnz): ... this ...
3593 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
3595 (insn_mz_<mode>): Replaced by ...
3596 (insn_mz_v8qi): ... this ...
3597 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
3599 (insn_v<n>mz): Replaced by ...
3600 (insn_v1mz): ... this ...
3601 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
3604 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
3606 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
3608 2013-03-26 Roland McGrath <mcgrathr@google.com>
3610 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
3611 than fprintf with a non-constant, non-format string.
3613 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3615 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
3616 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
3617 operand 0 predicate.
3618 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
3619 attribute. Use general_x64nomem_operand as operand 1 predicate.
3620 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
3621 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3622 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
3623 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3624 (mov<mode>_insv_1): Remove expander. Merge insn with
3625 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
3626 Use general_x64nomem_operand as operand 1 predicate.
3627 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
3628 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
3629 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3630 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
3631 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
3632 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
3633 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3634 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
3635 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
3636 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
3637 (general_x64nomem_operand): Ditto.
3639 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
3641 * config/rtems.opt: Add -pthread option.
3643 2013-03-26 Richard Biener <rguenther@suse.de>
3645 * alias.c (find_base_term): Avoid redundant and not used recursion.
3646 (base_alias_check): Get the initial base term from the caller.
3647 (true_dependence_1): Compute and pass base terms to base_alias_check.
3648 (write_dependence_p): Likewise.
3649 (may_alias_p): Likewise.
3651 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
3653 * config/aarch64/aarch64.c (aarch64_classify_address): Support
3654 PC-relative load in SI modes and above only.
3656 2013-03-26 Xinyu Qi <xyqi@marvell.com>
3658 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
3659 * config/arm/iwmmxt.md (WCGR0): Update.
3660 (WCGR1, WCGR2, WCGR3): Likewise.
3662 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3664 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
3665 Use x64 and nox64 isa attributes.
3667 2013-03-26 Richard Biener <rguenther@suse.de>
3669 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3670 alignment computations and rely on get_object_alignment_1
3671 for the !TYPE_P case.
3672 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
3674 2013-03-26 Walter Lee <walt@tilera.com>
3676 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
3677 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
3679 2013-03-25 Jeff Law <law@redhat.com>
3681 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
3682 check for INTEGRAL_TYPE_P that was missing due to checking in
3683 wrong version of prior patch.
3685 2013-03-25 Walter Lee <walt@tilera.com>
3687 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
3688 TILEGX_INSN_SHUFFLEBYTES1.
3689 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
3691 (tilegx_builtins): Ditto.
3692 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
3694 2013-03-25 Walter Lee <walt@tilera.com>
3696 * config/tilegx/tilegx.md (floatsisf2): New pattern.
3697 (floatunssisf2): New pattern.
3698 (floatsidf2): New pattern.
3699 (floatunssidf2): New pattern.
3701 2013-03-25 Walter Lee <walt@tilera.com>
3703 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
3704 tests for constraint J, K, N, P.
3706 2013-03-25 Walter Lee <walt@tilera.com>
3708 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
3709 Use indirect/pcrel encoding.
3710 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
3713 2013-03-25 Steve Ellcey <sellcey@mips.com>
3715 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
3716 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
3717 * config/mips/mips.c (mips_option_override): Set IMADD default.
3718 * config/mips/mips.h (PTF_AVOID_IMADD): New.
3719 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
3720 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
3721 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
3722 * doc/invoke.texi (-mimadd/-mno-imadd): New.
3724 2013-03-25 Jeff Law <law@redhat.com>
3726 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
3727 slightly to avoid creating and folding useless trees. Simplify
3728 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
3730 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
3732 * config/i386/i386.md (*zero_extendsidi2): Merge with
3733 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
3734 * config/i386/predicates.md (x86_64_zext_operand): Rename from
3735 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
3736 targets. Clarify comment.
3738 2013-03-25 Martin Jambor <mjambor@suse.cz>
3740 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
3741 pass-through jump functions differently.
3742 (ipa_read_jump_function): Likewise. Also use setter functions to set
3745 2013-03-25 Martin Jambor <mjambor@suse.cz>
3747 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
3748 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
3750 (ipa_get_indirect_edge_target): New function.
3751 (devirtualization_time_bonus): New parameter known_aggs, pass it to
3752 ipa_get_indirect_edge_target. Update all callers.
3753 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
3754 ipa_get_indirect_edge_target_1 instead of calling
3755 ipa_get_indirect_edge_target.
3756 (create_specialized_node): Pass aggvlas to
3757 ipcp_discover_new_direct_edges.
3759 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3761 * config/arm/arm.md (f_sels, f_seld): New types.
3762 (*cmov<mode>): New pattern.
3763 * config/arm/predicates.md (arm_vsel_comparison_operator): New
3766 2013-03-25 Kai Tietz <ktietz@redhat.com>
3768 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
3769 POSIX-printf for mingw-hosted builds.
3771 2013-03-25 Richard Biener <rguenther@suse.de>
3774 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
3775 must-not-throw stmt location.
3777 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3779 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
3780 Emit load-acquire versions when acq is true.
3781 (arm_emit_store_exclusive): Add rel parameter.
3782 Emit store-release versions when rel is true.
3783 (arm_split_compare_and_swap): Use acquire-release instructions
3785 of barriers when appropriate.
3786 (arm_split_atomic_op): Likewise.
3787 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
3788 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
3789 (VUNSPEC_SLX): Likewise.
3790 (VUNSPEC_LDA): Likewise.
3791 (VUNSPEC_STL): Likewise.
3792 * config/arm/sync.md (atomic_load<mode>): New pattern.
3793 (atomic_store<mode>): Likewise.
3794 (arm_load_acquire_exclusive<mode>): Likewise.
3795 (arm_load_acquire_exclusivesi): Likewise.
3796 (arm_load_acquire_exclusivedi): Likewise.
3797 (arm_store_release_exclusive<mode>): Likewise.
3799 2013-03-25 Catherine Moore <clm@codesourcery.com>
3801 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
3802 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
3803 * config/mip/predicates.md (lwsp_swsp_operand,
3804 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
3805 sb16_operand, db4_operand, db7_operand, ib3_operand,
3806 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
3807 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
3808 andi16_operand): New predicates.
3809 * config/mips/mips.md (compression): New attribute.
3810 (enabled): New attribute.
3811 (length): Consider compression in computing length.
3812 (shift_compression): New code attribute.
3813 (*add<mode>3): New operands. Record compression.
3814 (sub<mode>3): Likewise.
3815 (one_cmpl<mode>2): Likewise.
3816 (*and<mode>3): Likewise.
3817 (*ior<mode>3): Likewise.
3818 (unnamed pattern for xor): Likewise.
3819 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
3820 (*<optab><mode>3): Likewise.
3821 (*mov<mode>_internal: Likewise.
3822 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
3823 (mips_unsigned_immediate_p): New.
3824 (umips_lwsp_swsp_address_p): New.
3825 (m16_based_address_p): New.
3826 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
3827 (mips_unsigned_immediate_p): New prototype.
3828 (lwsp_swsp_address_p): New prototype.
3829 (m16_based_address_p): New prototype.
3830 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
3831 (mips_signed_immediate_p): New function.
3832 (m16_based_address_p): New function.
3833 (lwsp_swsp_address_p): New function.
3834 (mips_print_operand_punctuation): Recognize short delay slot insns
3835 for microMIPS.add<mode>3"
3837 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3840 * config/arm/iterators.md (v_cmp_result): New mode attribute.
3841 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
3843 2013-03-25 Richard Biener <rguenther@suse.de>
3845 PR tree-optimization/56689
3846 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
3849 2013-03-25 Richard Biener <rguenther@suse.de>
3851 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
3853 (memory_references): Likewise.
3854 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
3855 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
3856 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
3857 (gather_mem_refs_in_loops): Fold into ...
3858 (analyze_memory_references): ... this. Move initialization
3859 to tree_ssa_lim_initialize.
3860 (fill_always_executed_in): Rename to ...
3861 (fill_always_executed_in_1): ... this.
3862 (fill_always_executed_in): Move contains_call computation to
3863 this new function from ...
3864 (tree_ssa_lim_initialize): ... here.
3865 (tree_ssa_lim): Call fill_always_executed_in.
3867 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3869 * postreload.c (reload_combine): Fix code detecting returns.
3871 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3873 * function.c (emit_use_return_register_into_block): On cc0 targets,
3874 do not emit the sequence between cc0 setter and user.
3876 2013-03-25 Kai Tietz <ktietz@redhat.com>
3878 * config/i386/predicates.md (local_symbolic_operand): Interpret
3879 dll-imported symbols as none-local.
3881 2013-03-25 Richard Biener <rguenther@suse.de>
3883 * tree-ssa-loop-im.c (struct depend): Remove.
3884 (struct lim_aux_data): Make depends a vec of gimples.
3885 (free_lim_aux_data): Adjust.
3886 (add_dependency): Likewise.
3887 (set_level): Likewise.
3889 2013-03-25 Richard Biener <rguenther@suse.de>
3892 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
3893 the pointer returned by calls with ECF_MALLOC set.
3895 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3897 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
3899 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3901 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
3902 using MMXMODE mode iterator.
3903 (*move<mode>_internal): Merge with *movv2sf_internal and
3904 *movv2sf_internal_rex64 using MMXMODE mode iterator.
3906 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3908 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
3909 (record_last_mem_set_info): Likewise.
3911 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
3912 of XNEWVEC followed by memset.
3913 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
3915 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3917 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
3918 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
3919 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
3920 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
3921 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
3922 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
3923 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
3924 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
3925 BARRIER_P instead of GET_CODE.
3927 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3929 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
3930 inaccuracy in the probing code.
3932 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
3933 (ctrapdi4): Likewise.
3935 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3937 * calls.c (expand_call): Add missing guard to code handling return
3938 of non-BLKmode structures in MSB.
3939 * function.c (expand_function_end): Likewise.
3941 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3943 * combine.c (try_combine): Adjust comment. Do not add the set of
3944 insn #0 if the destination indirectly is set or dies in insn #2.
3945 Tidy up code to distribute a new note.
3947 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3949 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
3950 also for alternatives 16 and 17.
3952 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3954 * config/i386/sse.md (*mov<mode>_internal): Merge with
3955 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
3956 Emit insn template depending on type attribute. Use
3957 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3958 movd instead of movq mnemonic for interunit moves. Rewrite mode
3959 attribute calculation. Remove unit attribute calculation.
3960 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
3961 Set prefix_data16 attribute for DImode ssemov types.
3962 Use Ym instead of y for SSE-MMX conversion alternatives.
3963 Reorder operand constraints.
3965 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
3967 * df.h (df_insn_delete): Adjust prototype.
3968 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
3969 and let it decide whether mark the basic block dirty.
3970 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
3971 * df-scan.c (df_insn_info_delete): New helper function, split
3972 off from df_insn_delete.
3973 (df_scan_free_bb_info): Use it.
3974 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
3976 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
3977 that the insn is actually an insn and it has a non-NULL basic block.
3978 Do not mark basic block dirty if only deleting a DEBUG_INSN.
3980 2013-03-22 Richard Biener <rguenther@suse.de>
3982 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
3984 (mem_ref_alloc): Do not allocate them.
3985 (refs_independent_p): Do not query or maintain a cache.
3987 2013-03-22 Richard Biener <rguenther@suse.de>
3989 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
3990 (gather_mem_refs_in_loops): Do not compute it.
3991 (analyze_memory_references): Do not allocate it.
3992 (tree_ssa_lim_finalize): Do not free it.
3993 (for_all_locs_in_loop): Do not query all_refs_in_loop.
3995 2013-03-22 Richard Biener <rguenther@suse.de>
3997 * is-a.h (as_a): Use gcc_checking_assert.
3999 2013-03-22 Ian Bolton <ian.bolton@arm.com>
4001 * config/aarch64/aarch64.c (aarch64_print_operand): New
4002 format specifier for printing a constant in hex.
4003 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
4004 format specifier for printing second operand.
4006 2013-03-22 Richard Biener <rguenther@suse.de>
4008 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
4010 (gather_mem_refs_in_loops): Perform store accumulation here.
4011 (create_vop_ref_mapping_loop): Remove.
4012 (create_vop_ref_mapping): Likewise.
4013 (analyze_memory_references): Initialize refs_stored_in_loop.
4014 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
4015 (record_indep_loop): Remove.
4016 (record_dep_loop): New function.
4017 (ref_indep_loop_p_1): Adjust to only walk over references
4018 in the loop, not its subloops.
4019 (ref_indep_loop_p): Rename to ...
4020 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
4021 maintaining a more fine-grained cache.
4022 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
4023 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
4025 2013-03-22 Richard Biener <rguenther@suse.de>
4027 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
4028 (struct mem_ref): Make accesses_in_loop a vec of a vec of
4029 aggregate mem_ref_loc.
4030 (free_mem_ref_locs): Inline into ...
4031 (memref_free): ... this and adjust.
4032 (mem_ref_alloc): Adjust.
4033 (mem_ref_locs_alloc): Remove.
4034 (record_mem_ref_loc): Adjust.
4035 (get_all_locs_in_loop): Rewrite into ...
4036 (for_all_locs_in_loop): ... this iterator.
4037 (rewrite_mem_ref_loc): New functor.
4038 (rewrite_mem_refs): Use for_all_locs_in_loop.
4039 (sm_set_flag_if_changed): New functor.
4040 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
4041 (ref_always_accessed): New functor.
4042 (ref_always_accessed_p): Use for_all_locs_in_loop.
4044 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4046 * tree-pass.h (PROP_gimple_lvec): New.
4047 * passes.c (dump_properties): Handle PROP_gimple_lvec.
4048 (init_optimization_passes): Move pass_lower_vector.
4049 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
4051 (pass_lower_vector): Provide PROP_gimple_lvec.
4052 (pass_lower_vector_ssa): Likewise.
4053 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
4055 2013-03-21 Mark Wielaard <mjw@redhat.com>
4057 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
4059 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4061 * config/i386/i386.md (*movdi_internal): Disparage slightly
4062 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
4063 conversion alternatives.
4065 2013-03-21 Jakub Jelinek <jakub@redhat.com>
4068 * diagnostic.def (DK_WERROR): New kind.
4069 * diagnostic.h (werrorcount): Define.
4070 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
4071 promoted to DK_ERROR, increment DK_WERROR counter instead of
4073 * toplev.c (toplev_main): Call print_ignored_options even if
4074 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
4075 even if just werrorcount is non-zero.
4078 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
4080 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
4081 (string_cst_pool_decl): New function.
4082 (optimize_one_addr_into_implicit_ptr): New function.
4083 (resolve_addr_in_expr): Optimize DWARF location expression
4084 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
4085 which doesn't live in memory, but has DW_AT_location or
4086 DW_AT_const_value, or refers to a string literal, into
4087 DW_OP_GNU_implicit_pointer.
4088 (optimize_location_into_implicit_ptr): New function.
4089 (resolve_addr): If removing DW_AT_location of a variable because
4090 it was DW_OP_addr of address of the variable, but the variable doesn't
4091 live in memory, try to emit const value attribute for the initializer.
4093 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4095 * tree.h (VECTOR_TYPE_P): New macro.
4096 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
4098 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
4099 VEC_COND_EXPR cannot be lvalues.
4100 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
4102 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4104 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
4105 Restrict the transformation to equal modes.
4107 2013-03-21 Richard Biener <rguenther@suse.de>
4109 PR tree-optimization/39326
4110 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
4111 (MEM_ANALYZABLE): Adjust.
4112 (record_mem_ref_loc): Move bitmap ops ...
4113 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
4114 unanalyzable refs, do not record locations for it.
4115 (analyze_memory_references): Allocate ref zero as shared
4117 (refs_independent_p): Do not test for unanalyzed mems here.
4118 (ref_indep_loop_p_1): Special-case disambiguation against
4120 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
4122 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
4124 * config/arm/arm-protos.h (tune_params): Add
4125 prefer_neon_for_64bits field.
4126 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
4127 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
4128 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4129 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4130 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
4131 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4132 (arm_option_override): Handle -mneon-for-64bits new option.
4133 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
4134 (prefer_neon_for_64bits): Declare new variable.
4135 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
4136 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
4137 (arch_enabled): Handle new arch types. Remove support for onlya8
4139 (one_cmpldi2): Use new arch names.
4140 (zero_extend<mode>di2, extend<mode>di2): Ditto.
4141 * config/arm/arm.opt (mneon-for-64bits): Add option.
4142 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
4143 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
4144 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
4146 * doc/invoke.texi (-mneon-for-64bits): Document.
4148 2013-03-21 Richard Biener <rguenther@suse.de>
4150 PR tree-optimization/39326
4151 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
4152 (sort_bbs_in_loop_postorder_cmp): New function.
4153 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
4155 2013-03-21 Richard Biener <rguenther@suse.de>
4157 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
4158 (vect_insert_into_interleaving_chain): Likewise.
4159 (vect_drs_dependent_in_basic_block): Inline ...
4160 (vect_slp_analyze_data_ref_dependence): ... here. New function,
4162 (vect_analyze_data_ref_dependence): ... here. Simplify.
4163 (vect_check_interleaving): Simplify.
4164 (vect_analyze_data_ref_dependences): Likewise. Split out ...
4165 (vect_slp_analyze_data_ref_dependences): ... this new function.
4166 (dr_group_sort_cmp): New function.
4167 (vect_analyze_data_ref_accesses): Compute data-reference groups
4168 here instead of in vect_analyze_data_ref_dependence. Use
4169 a more efficient algorithm.
4170 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
4171 vect_slp_analyze_data_ref_dependences. Call
4172 vect_analyze_data_ref_accesses earlier.
4173 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4174 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
4175 (vect_slp_analyze_data_ref_dependences): New prototype.
4177 2013-03-21 Richard Biener <rguenther@suse.de>
4179 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
4180 ref is stored in the loop.
4181 (find_refs_for_sm): Walk only over all stores.
4182 (store_motion_loop): Allocate from lim_bitmap_obstack.
4183 (store_motion): Likewise.
4185 2013-03-21 Richard Biener <rguenther@suse.de>
4187 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
4188 Update virtual SSA form.
4190 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4192 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
4193 * configure: Regenerate.
4194 * config.in: Regenerate.
4195 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
4196 if !HAVE_LD_EH_FRAME_CIEV3.
4198 2013-03-21 Richard Biener <rguenther@suse.de>
4200 * tree-cfg.c (verify_expr_no_block): New function.
4201 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
4202 nor DECL_VALUE_EXPR have locations with associated blocks.
4203 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
4204 (clear_unused_block_pointer): Remove code dealing with
4205 blocks in DECL_DEBUG_EXPR locations.
4207 2013-03-21 Richard Biener <rguenther@suse.de>
4209 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
4210 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
4211 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
4212 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
4213 instead of DECL_DEBUG_EXPR_IS_FROM.
4214 * gimplify.c (gimplify_modify_expr): Likewise.
4215 * tree-cfg.c (verify_expr_location_1): Likewise.
4216 * tree-complex.c (create_one_component_var): Likewise.
4217 * tree-sra.c (create_access_replacement): Likewise.
4218 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
4219 (clear_unused_block_pointer): Likewise.
4220 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4221 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4222 * var-tracking.c (var_debug_decl): Likewise.
4223 (track_expr_p): Likewise.
4224 * tree-inline.c (add_local_variables): Likewise. Set
4225 DECL_HAS_DEBUG_EXPR_P after copying it.
4226 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4227 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
4229 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4232 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
4233 * configure: Regenerate.
4234 * config.in: Regenerate.
4235 * config/i386/i386.md (*movdf_internal): Use
4236 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4237 movd instead of movq mnemonic for interunit moves.
4238 (*movdi_internal): Ditto.
4240 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4242 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
4243 (abd<mode>_3): New pattern.
4244 (aba<mode>_3): New pattern.
4245 (fabd<mode>_3): New pattern.
4247 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4249 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
4250 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
4251 occurrence of REGISTER_PREFIX as its empty string.
4253 2013-03-20 Jeff Law <law@redhat.com>
4255 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
4256 addititional equivalences for equality comparisons between an SSA_NAME
4257 and a constant where the SSA_NAME was set from a widening conversion.
4259 2013-03-20 Walter Lee <walt@tilera.com>
4261 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
4263 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4265 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
4266 depending on type attribute.
4267 (*movti_internal): Ditto.
4268 (*movtf_internal): Ditto.
4269 (*movxf_internal): Ditto.
4270 (*movdf_internal): Ditto.
4271 (*movsf_internal): Ditto.
4273 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4275 * config/i386/i386.md (*movti_internal): Set prefix attribute to
4276 maybe_vex for sselog1 and ssemov types.
4277 (*movdi_internal): Reorder operand constraints.
4278 (*movsi_internal): Ditto. Set prefix attribute to
4279 maybe_vex for sselog1 and ssemov types.
4280 (*movtf_internal): Set prefix attribute to maybe_vex
4281 for sselog1 and ssemov types.
4282 (*movdf_internal): Ditto. Set prefix_data16 attribute for
4283 DImode ssemov types. Reorder operand constraints.
4284 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
4285 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
4286 attribute for SImode ssemov types. Reorder operand constraints.
4288 2013-03-20 Martin Jambor <mjambor@suse.cz>
4290 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
4291 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
4293 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
4295 * config/rs6000/predicates.md (indexed_address, update_address_mem
4296 update_indexed_address_mem): New predicates.
4297 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
4298 attribute for load/store instructions.
4299 * config/rs6000/dfp.md (movsd_store): Likewise.
4300 (movsd_load): Likewise.
4301 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
4302 (unnamed HI->DI extend define_insn): Likewise.
4303 (unnamed SI->DI extend define_insn): Likewise.
4304 (unnamed QI->SI extend define_insn): Likewise.
4305 (unnamed QI->HI extend define_insn): Likewise.
4306 (unnamed HI->SI extend define_insn): Likewise.
4307 (unnamed HI->SI extend define_insn): Likewise.
4308 (extendsfdf2_fpr): Likewise.
4309 (movsi_internal1): Likewise.
4310 (movsi_internal1_single): Likewise.
4311 (movhi_internal): Likewise.
4312 (movqi_internal): Likewise.
4313 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
4314 attribute for load/store instructions.
4315 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
4317 (mov<mode>_softfloat): Likewise.
4318 (mov<mode>_hardfloat32): Likewise.
4319 (mov<mode>_hardfloat64): Likewise.
4320 (mov<mode>_softfloat64): Likewise.
4321 (movdi_internal32): Likewise.
4322 (movdi_internal64): Likewise.
4323 (probe_stack_<mode>): Likewise.
4325 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4327 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
4328 floating point, and decimal floating point to reload iterator.
4330 * config/rs6000/constraints.md (wl constraint): New constraints to
4331 return FLOAT_REGS if certain options are used to reduce the number
4332 of separate patterns that exist in the file.
4333 (wx constraint): Likewise.
4334 (wz constraint): Likewise.
4336 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4337 -mdebug=reg, print wg, wl, wx, and wz constraints.
4338 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4339 Initialize the reload functions for 64-bit binary/decimal floating
4341 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4342 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4343 create the buffer on the stack to overcome not having a 32-bit
4345 (rs6000_emit_move): Likewise.
4346 (rs6000_secondary_memory_needed_rtx): Likewise.
4347 (rs6000_alloc_sdmode_stack_slot): Likewise.
4348 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4349 via xxlxor, just like DFmode 0.0.
4351 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
4352 define as 1 if we are running on a power7 or newer.
4353 (enum r6000_reg_class_enum): Add new constraints.
4355 * config/rs6000/dfp.md (movsd): Delete, combine with binary
4356 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4357 with other moves by using conditional constraits (wg). Use LFIWZX
4358 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
4359 (movsd splitter): Likewise.
4360 (movsd_hardfloat): Likewise.
4361 (movsd_softfloat): Likewise.
4363 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
4364 binary and decimal floating point moves.
4365 (fmove_ok): New attributes to combine binary and decimal floating
4366 point moves, and to combine power6x (mfpgpr) moves along normal
4368 (real_value_to_target): Likewise.
4375 (movsf): Combine binary and decimal floating point moves. Combine
4376 power6x (mfpgpr) moves with other moves by using conditional
4377 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
4378 (mov<mode> for SFmode/SDmode); Likewise.
4379 (SFmode/SDmode splitters): Likewise.
4380 (movsf_hardfloat): Likewise.
4381 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
4382 (movsf_softfloat): Likewise.
4383 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
4385 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
4386 wx and wz constraints.
4388 * config/rs6000/constraints.md (wg constraint): New constraint to
4389 return FLOAT_REGS if -mmfpgpr (power6x) was used.
4391 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
4394 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4395 -mdebug=reg, print wg, wl, wx, and wz constraints.
4396 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4397 Initialize the reload functions for 64-bit binary/decimal floating
4399 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4400 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4401 create the buffer on the stack to overcome not having a 32-bit
4403 (rs6000_emit_move): Likewise.
4404 (rs6000_secondary_memory_needed_rtx): Likewise.
4405 (rs6000_alloc_sdmode_stack_slot): Likewise.
4406 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4407 via xxlxor, just like DFmode 0.0.
4409 * config/rs6000/dfp.md (movdd): Delete, combine with binary
4410 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4411 with other moves by using conditional constraits (wg). Use LFIWZX
4412 and STFIWX for loading SDmode on power7.
4413 (movdd splitters): Likewise.
4414 (movdd_hardfloat32): Likewise.
4415 (movdd_softfloat32): Likewise.
4416 (movdd_hardfloat64_mfpgpr): Likewise.
4417 (movdd_hardfloat64): Likewise.
4418 (movdd_softfloat64): Likewise.
4420 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
4421 64-bit binary and decimal floating point moves.
4422 (FMOVE64X): Likewise.
4423 (movdf): Combine 64-bit binary and decimal floating point moves.
4424 Combine power6x (mfpgpr) moves with other moves by using
4425 conditional constraits (wg).
4426 (mov<mode> for DFmode/DDmode): Likewise.
4427 (DFmode/DDmode splitters): Likewise.
4428 (movdf_hardfloat32): Likewise.
4429 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
4430 (movdf_softfloat32): Likewise.
4431 (movdf_hardfloat64_mfpgpr): Likewise.
4432 (movdf_hardfloat64): Likewise.
4433 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
4434 (movdf_softfloat64): Likewise.
4435 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
4436 (reload_<mode>_load): Move to later in the file so they aren't in
4437 the middle of the floating point move insns.
4438 (reload_<mode>_store): Likewise.
4440 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
4443 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
4444 constraint if -mdebug=reg.
4445 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
4446 Enable using dd reload support if needed.
4448 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
4449 binary and decimal floating point moves in rs6000.md.
4450 (movtd_internal): Likewise.
4452 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
4453 decimal floating point moves.
4455 (movtf_internal): Likewise.
4456 (mov<mode>_internal, TDmode/TFmode): Likewise.
4457 (movtf_softfloat): Likewise.
4458 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
4460 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
4461 movdi_internal64, using wg constraint for move direct operations.
4462 (movdi_internal64): Likewise.
4464 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
4465 MODES_TIEABLE_P for selected modes. Print the numerical value of
4466 the various virtual registers. Use GPR/FPR first/last values,
4467 instead of hard coding the register numbers. Print which modes
4468 have reload functions registered.
4469 (rs6000_option_override_internal): If -mdebug=reg, trace the options
4470 settings before/after setting cpu, target and subtarget settings.
4471 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
4472 and for secondary reload failures in rs6000_secondary_reload_inner.
4473 (rs6000_secondary_reload_fail): Likewise.
4474 (rs6000_secondary_reload_inner): Likewise.
4476 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
4477 macros for first/last GPR and FPR registers.
4478 (LAST_GPR_REGNO): Likewise.
4479 (FIRST_FPR_REGNO): Likewise.
4480 (LAST_FPR_REGNO): Likewise.
4482 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
4483 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
4484 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
4485 (vcond<mode><mode>): Likewise.
4486 (vcondu<mode><mode>): Likewise.
4487 (vector_gtu<mode>): Likewise.
4488 (vector_gte<mode>): Likewise.
4489 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
4490 to prevent the compiler from converting DImode operations to TImode.
4491 (ior<mode>3): Likewise.
4492 (and<mode>3): Likewise.
4493 (one_cmpl<mode>2): Likewise.
4494 (nor<mode>3): Likewise.
4495 (andc<mode>3): Likewise.
4497 * config/rs6000/constraints.md (wt constraint): New constraint
4498 that returns VSX_REGS if TImode is allowed in VSX registers.
4500 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
4503 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
4504 similar to TImode, but it is restricted to being in the GPRs.
4506 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
4507 TImode to occupy a single VSX register.
4509 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
4510 -mvsx-timode for power7/power8.
4511 (power7 cpu): Likewise.
4512 (power8 cpu): Likewise.
4514 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
4515 sure that TFmode/TDmode take up two registers if they are ever
4516 allowed in the upper VSX registers.
4517 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
4519 (rs6000_init_hard_regno_mode_ok): Likewise.
4520 (rs6000_debug_reg_global): Add debugging for PTImode and wt
4521 constraint. Print if LRA is turned on.
4522 (rs6000_option_override_internal): Give an error if -mvsx-timode
4523 and VSX is not enabled.
4524 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
4525 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
4526 to reg+offset addressing. Use PTImode when checking offset
4527 addresses for validity.
4528 (reg_offset_addressing_ok_p): Likewise.
4529 (rs6000_legitimate_offset_address_p): Likewise.
4530 (rs6000_legitimize_address): Likewise.
4531 (rs6000_legitimize_reload_address): Likewise.
4532 (rs6000_legitimate_address_p): Likewise.
4533 (rs6000_eliminate_indexed_memrefs): Likewise.
4534 (rs6000_emit_move): Likewise.
4535 (rs6000_secondary_reload): Likewise.
4536 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
4537 reloads to fpr registers to continue to use reg+offset addressing,
4538 but 64-bit reloads to altivec registers need reg+reg addressing.
4539 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
4540 it. Treat LO_SUM like a PLUS operation.
4541 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
4542 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
4543 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
4544 registers to share a register with a smaller sized type, since VSX
4545 puts scalars in the upper 64-bits.
4546 (print_operand): Add support for PTImode.
4547 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
4548 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
4549 registers, but don't have arithmetic support.
4550 (rs6000_memory_move_cost): Add test for VSX.
4551 (rs6000_opt_masks): Add -mvsx-timode.
4553 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
4556 (VSr): Use wt constraint for TImode.
4557 (VSv): Drop TImode support.
4558 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
4559 (vsx_movti_64bit): Likewise.
4560 (vsx_movti_32bit): Likewise.
4561 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
4562 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
4563 one '?' on the appropriate output constraint. Do not allow TImode
4564 logical operations on 32-bit systems.
4565 (vsx_ior<mode>3): Likewise.
4566 (vsx_xor<mode>3): Likewise.
4567 (vsx_one_cmpl<mode>2): Likewise.
4568 (vsx_nor<mode>3): Likewise.
4569 (vsx_andc<mode>3): Likewise.
4570 (vsx_concat_<mode>): Likewise.
4571 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
4573 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
4574 OPTION_MASK_VSX_TIMODE.
4575 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
4576 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
4578 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
4579 (TI2 iterator): New iterator for TImode, PTImode.
4580 (wd mode attribute): Add values for vector types.
4581 (movti_string): Replace TI move operations with operations for TImode
4582 and PTImode. Add support for TImode being allowed in VSX registers.
4583 (mov<mode>_string, TImode/PTImode): Likewise.
4584 (movti_ppc64): Likewise.
4585 (mov<mode>_ppc64, TImode/PTImode): Likewise.
4586 (TI mode splitters): Likewise.
4588 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
4591 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
4593 PR tree-optimization/56355
4594 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
4595 Also handle integers with undefined overflow.
4597 2013-03-20 Catherine Moore <clm@codesourcery.com>
4598 Maciej W. Rozycki <macro@codesourcery.com>
4599 Tom de Vries <tom@codesourcery.com>
4600 Nathan Sidwell <nathan@codesourcery.com>
4601 Iain Sandoe <iain@codesourcery.com>
4602 Nathan Froyd <froydnj@codesourcery.com>
4603 Chao-ying Fu <fu@mips.com>
4605 * doc/extend.texi: (micromips, nomicromips, nocompression):
4606 Document new function attributes.
4607 * doc/invoke.texi (minterlink-compressed, mmicromips,
4608 m14k, m14ke, m14kec): Document new options.
4609 (minterlink-mips16): Update documentation.
4610 * doc/md.texi (ZC, ZD): Document new constraints.
4611 * configure.ac (gcc_cv_as_micromips): Check if linker
4612 supports the .set micromips directive.
4613 * configure: Regenerate.
4614 * config.in: Regenerate.
4615 * config/mips/mips-tables.opt: Regenerate.
4616 * config/mips/micromips.md: New file.
4617 * constraints.md (ZC, ZD): New constraints.
4618 * config/mips/predicates.md (movep_src_register): New predicate.
4619 (movep_src_operand): New predicate.
4620 (non_volatile_mem_operand): New predicate.
4621 * config/mips/mips.md (multimem): New type.
4622 (length): Differentiate between 17-bit and 18-bit branch offsets.
4623 (MOVEP1, MOVEP2): New mode iterator.
4624 (mov_<load>l): Use ZC constraint.
4625 (mov_<load>r): Likewise.
4626 (mov_<store>l): Likewise.
4627 (mov_<store>r): Likewise.
4628 (*branch_equality<mode>_inverted): Add microMIPS support.
4629 (*branch_equality<mode>): Likewise.
4630 (*jump_absolute): Likewise.
4631 (indirect_jump_<mode>): Likewise.
4632 (tablejump_<mode>): Likewise.
4633 (<optab>_internal): Likewise.
4634 (sibcall_internal): Likewise.
4635 (sibcall_value_internal): Likewise.
4636 (prefetch): Use constraint ZD.
4637 * config/mips/mips.opt (minterlink-compressed): New option.
4638 (minterlink-mips16): Now an alias for minterlink-compressed.
4639 (mmicromips): New option.
4640 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4641 (compare_and_swap_12): Likewise.
4642 (sync_add<mode>): Likewise.
4643 (sync_<optab>_12): Likewise.
4644 (sync_old_<optab>_12): Likewise.
4645 (sync_new_<optab>_12): Likewise.
4646 (sync_nand_12): Likewise.
4647 (sync_old_nand_12): Likewise.
4648 (sync_new_nand_12): Likewise.
4649 (sync_sub<mode>): Likewise.
4650 (sync_old_add<mode>): Likewise.
4651 (sync_old_sub<mode>): Likewise.
4652 (sync_new_add<mode>): Likewise.
4653 (sync_new_sub<mode>): Likewise.
4654 (sync_<optab><mode>): Likewise.
4655 (sync_old_<optab><mode>): Likewise.
4656 (sync_new_<optab><mode>): Likewise.
4657 (sync_nand<mode>): Likewise.
4658 (sync_old_nand<mode>): Likewise.
4659 (sync_new_nand<mode>): Likewise.
4660 (sync_lock_test_and_set<mode>): Likewise.
4661 (test_and_set_12): Likewise.
4662 (atomic_compare_and_swap<mode>): Likewise.
4663 (atomic_exchange<mode>_llsc): Likewise.
4664 (atomic_fetch_add<mode>_llsc): Likewise.
4665 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4666 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4667 (umips_save_restore_pattern_p): Likewise.
4668 (umips_load_store_pair_p): Likewise.
4669 (umips_output_load_store_pair): Likewise.
4670 (umips_movep_target_p): Likewise.
4671 (umips_12bit_offset_address_p): Likewise.
4672 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4673 (mips_base_mips16): Rename this...
4674 (mips_base_compression_flags): ...to this. Update all uses.
4675 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4676 (mips_mips16_decl_p): Delete.
4677 (mips_nomips16_decl_p): Delete.
4678 (mips_get_compress_on_flags): New function.
4679 (mips_get_compress_off_flags): New function.
4680 (mips_get_compress_mode): New function.
4681 (mips_get_compress_on_name): New function.
4682 (mips_get_compress_off_name): New function.
4683 (mips_insert_attributes): Support multiple compression types.
4684 (mips_merge_decl_attributes): Likewise.
4685 (umips_12bit_offset_address_p): New function.
4686 (mips_start_function_definition): Emit .set micromips directive.
4687 (mips_call_may_need_jalx_p): New function.
4688 (mips_function_ok_for_sibcall): Add microMIPS support.
4689 (mips_print_operand_punctuation): Support short delay slots and
4691 (umips_swm_mask, umips_swm_encoding): New.
4692 (umips_build_save_restore): New function.
4693 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4694 (was_mips16_p): Remove.
4695 (old_compression_mode): New.
4696 (mips_set_compression_mode): New function.
4697 (mips_set_current_function): Add microMIPS support.
4698 (mips_option_override): Likewise.
4699 (umips_save_restore_pattern_p): New function.
4700 (umips_output_save_restore): New function.
4701 (umips_load_store_pair_p_1): New function.
4702 (umips_load_store_pair_p): New function.
4703 (umips_output_load_store_pair_1): New function.
4704 (umips_output_load_store_pair): New function.
4705 (umips_movep_target_p) New function.
4706 (mips_prepare_pch_save): Add microMIPS support.
4707 * config/mips/mips.h (TARGET_COMPRESSION): New.
4708 (TARGET_CPU_CPP_BUILTINS): Update macro
4709 to use new compression flags and to support microMIPS.
4710 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4711 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4712 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4713 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4714 (ASM_SPEC): Support mmicromips and mno-micromips.
4715 (M16STORE_REG_P): New macro.
4716 (MIPS_CALL): Support TARGET_MICROMIPS.
4717 (MICROMIPS_J): New macro.
4718 (mips_base_mips16): Rename this...
4719 (mips_base_compression_flags): ...to this.
4720 (UMIPS_12BIT_OFFSET_P): New macro.
4721 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4722 (MULTILIB_DIRNAMES): Likewise.
4723 2013-03-20 Richard Biener <rguenther@suse.de>
4725 PR tree-optimization/56661
4726 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
4727 the result does not have to be distinct.
4729 2013-03-20 Richard Biener <rguenther@suse.de>
4731 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
4734 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4735 Steven Bosscher <steven@gcc.gnu.org>
4737 PR rtl-optimization/56605
4738 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
4740 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4743 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
4744 that require movd instead of movq.
4746 2013-03-20 Richard Biener <rguenther@suse.de>
4748 * tree-ssa-structalias.c (struct variable_info): Add pointer
4749 to the first field of an aggregate with sub-vars. Make
4750 this and the pointer to the next subfield its ID.
4751 (vi_next): New function.
4752 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
4753 storedanything_id, integer_id): Increment by one.
4754 (new_var_info, get_call_vi, lookup_call_clobber_vi,
4755 get_call_clobber_vi): Adjust.
4756 (solution_set_expand): Simplify and speedup.
4757 (solution_set_add): Inline into ...
4758 (set_union_with_increment): ... this. Adjust accordingly.
4759 (do_sd_constraint): Likewise.
4760 (do_ds_constraint): Likewise.
4761 (do_complex_constraint): Simplify.
4762 (build_pred_graph): Adjust.
4763 (solve_graph): Likewise. Simplify and speedup.
4764 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
4765 get_constraint_for_component_ref, get_constraint_for_1,
4766 first_vi_for_offset, first_or_preceding_vi_for_offset,
4767 create_function_info_for, create_variable_info_for_1,
4768 create_variable_info_for, intra_create_variable_infos): Adjust.
4769 (init_base_vars): Push NULL for ID zero.
4770 (compute_points_to_sets): Adjust.
4772 2013-03-20 Richard Biener <rguenther@suse.de>
4774 * cfgloop.c (verify_loop_structure): Streamline and avoid
4775 ICEing on corrupt loop tree.
4776 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
4779 2013-03-20 Richard Biener <rguenther@suse.de>
4781 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
4782 check whether an SSA update is needed.
4784 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
4786 * config/mips/constraints.md (T): Rename to...
4790 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
4791 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
4793 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4795 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
4796 (*subsi3_carryin_uxtw): Likewise.
4798 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4800 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
4801 (*rorsi3_insn_uxtw): Likewise.
4803 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4805 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
4806 (*extrsi5_insn_uxtw): Likewise.
4808 2013-03-19 Richard Biener <rguenther@suse.de>
4810 PR tree-optimization/56273
4811 * passes.c (init_optimization_passes): Move second VRP after DOM.
4813 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
4815 * config/i386/i386.md (*movti_internal): Merge from
4816 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
4817 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
4818 nox64 isa attributes.
4820 2013-03-18 Richard Biener <rguenther@suse.de>
4822 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
4824 (merge_node_constraints): Likewise.
4825 (build_succ_graph): Likewise.
4826 (valid_graph_edge): Inline into single caller.
4827 (unify_nodes): Likewise. Use bitmap_set_bit return value
4829 (scc_visit): Fix formatting and variable use.
4830 (do_sd_constraint): Use gcc_checking_assert.
4831 (do_ds_constraint): Likewise.
4832 (do_complex_constraint): Likewise.
4833 (condense_visit): Likewise. Cleanup.
4834 (dump_pred_graph): New function.
4835 (perform_var_substitution): Dump the pred-graph before
4836 variable substitution.
4837 (find_equivalent_node): Use gcc_checking_assert.
4838 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
4840 2013-03-18 Richard Biener <rguenther@suse.de>
4842 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4843 Remove cond_expr_stmt_list argument and do not gimplify the
4845 (vect_loop_versioning): Adjust.
4846 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4847 Cleanup to use less temporaries.
4848 (vect_create_data_ref_ptr): Cleanup.
4850 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4852 PR tree-optimization/56635
4853 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
4854 require types_compatible_p types.
4856 2013-03-18 Nick Clifton <nickc@redhat.com>
4858 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
4861 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
4862 Add missing line to comment describing function.
4864 2013-03-18 Richard Biener <rguenther@suse.de>
4866 PR tree-optimization/56210
4867 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4868 Handle string / character search functions.
4869 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4871 2013-03-18 Richard Biener <rguenther@suse.de>
4874 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
4875 and implement properly.
4876 * gimple.h (gimple_cond_single_var_p): Remove.
4878 2013-03-18 Richard Biener <rguenther@suse.de>
4880 * tree-data-ref.h (find_data_references_in_loop): Declare.
4881 * tree-data-ref.c (get_references_in_stmt): Use a stack
4882 vector pre-allocated in the callers.
4883 (find_data_references_in_stmt): Adjust.
4884 (graphite_find_data_references_in_stmt): Likewise.
4885 (create_rdg_vertices): Likewise.
4886 (find_data_references_in_loop): Export.
4887 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
4888 Compute dependences here...
4889 (vect_analyze_data_refs): ...not here. When we encounter
4890 a non-vectorizable data reference in basic-block vectorization
4891 truncate the data reference vector. Do not bother to
4892 fixup data-dependence information for gather loads.
4893 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
4894 of data references, as reported.
4896 2013-03-18 Richard Biener <rguenther@suse.de>
4898 PR tree-optimization/3713
4899 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
4900 has_constants and expr.
4901 (stmt_has_constants): Properly valueize SSA names when deciding
4902 whether the stmt has constants.
4904 2013-03-18 Richard Biener <rguenther@suse.de>
4906 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
4907 whole function when there is nothing to do.
4908 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
4909 * tree-vectorizer.c (vectorize_loops): Update virtual and
4910 loop-closed SSA once.
4911 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
4913 2013-03-18 Richard Biener <rguenther@suse.de>
4916 * domwalk.c (bb_postorder): New global static.
4917 (cmp_bb_postorder): New function.
4918 (walk_dominator_tree): Replace scheme imposing an order for
4919 visiting dominator sons by one sorting them at the time they
4920 are pushed on the stack.
4922 2013-03-18 Richard Biener <rguenther@suse.de>
4924 PR tree-optimization/39326
4925 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
4926 (struct mem_ref): Replace mem member with ao_ref typed member.
4927 (MEM_ANALYZABLE): Adjust.
4928 (memref_eq): Likewise.
4929 (mem_ref_alloc): Likewise.
4930 (gather_mem_refs_stmt): Likewise.
4931 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
4932 (execute_sm_if_changed_flag_set): Adjust.
4933 (execute_sm): Likewise.
4934 (ref_always_accessed_p): Likewise.
4935 (refs_independent_p): Likewise.
4936 (can_sm_ref_p): Likewise.
4938 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4941 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
4942 return 1 even for !unsignedp.
4944 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4946 * config/i386/i386.md (isa): Add x64 and nox64.
4947 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
4948 (*pushtf): Enable *roF alternative for x64 isa only.
4949 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
4950 mode attribute of integer alternatives to DImode for TARGET_64BIT.
4951 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
4952 (*movtf_internal): Merge from *movtf_internal_rex64 and
4953 *movtf_internal_sse. Use x64 and nox64 isa attributes.
4954 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
4955 nox64 isa attributes.
4956 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
4957 nox64 isa attributes.
4958 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
4960 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4962 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4964 2013-03-17 Jakub Jelinek <jakub@redhat.com>
4967 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
4968 class names. Remove trailing comma after "ALL_REGS".
4970 2013-03-16 Jan Hubicka <jh@suse.cz>
4972 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
4973 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
4974 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
4975 of cgraph_get_create_node.
4976 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4978 2013-03-16 Jason Merrill <jason@redhat.com>
4981 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
4982 with DW_AT_default_value.
4984 2013-03-16 Jakub Jelinek <jakub@redhat.com>
4986 * BASE-VER: Set to 4.9.0.
4988 2013-03-14 Andi Kleen <ak@linux.intel.com>
4991 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
4992 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
4993 Document _x* TSX intrinsics.
4995 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
4996 David Holsgrove <david.holsgrove@xilinx.com>
4998 * configure.ac: Add MicroBlaze TLS support detection.
4999 * configure: Regenerate.
5000 * config/microblaze/microblaze-protos.h
5001 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
5002 symbol_mentioned_p, label_mentioned_p): Add prototypes.
5003 * config/microblaze/microblaze.c (microblaze_address_type): Add
5004 ADDRESS_TLS and tls_reloc address types.
5005 (microblaze_address_info): Add tls_reloc.
5006 (TARGET_HAVE_TLS): Define.
5007 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
5008 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
5009 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
5010 load_tls_operand, microblaze_call_tls_get_addr,
5011 microblaze_legitimize_tls_address): New functions.
5012 (microblaze_classify_unspec): Handle UNSPEC_TLS.
5013 (get_base_reg): Use microblaze_tls_symbol_p.
5014 (microblaze_classify_address): Handle TLS.
5015 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
5016 label_mentioned_p and microblaze_tls_referenced_p.
5017 (microblaze_legitimize_address): Handle TLS.
5018 (microblaze_address_insns): Handle ADDRESS_TLS.
5019 (pic_address_needs_scratch): Handle TLS.
5020 (print_operand_address): Handle TLS.
5021 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
5022 (microblaze_expand_move): Handle TLS.
5023 (microblaze_legitimate_constant_p): Check
5024 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
5025 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5026 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
5027 (PIC_OFFSET_TABLE_REGNUM): Set.
5028 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
5029 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
5030 (addsi3, movsi_internal2, movdf_internal): Update constraints
5031 * config/microblaze/predicates.md (arith_plus_operand): Define
5032 (move_operand): Redefine as move_src_operand,
5033 check microblaze_tls_referenced_p.
5035 2013-03-14 Ian Bolton <ian.bolton@arm.com>
5037 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
5038 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
5040 2013-03-14 Ian Bolton <ian.bolton@arm.com>
5042 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
5045 2013-03-14 Jakub Jelinek <jakub@redhat.com>
5047 PR tree-optimization/53265
5048 * common.opt (Waggressive-loop-optimizations): New option.
5049 * tree-ssa-loop-niter.c: Include tree-pass.h.
5050 (do_warn_aggressive_loop_optimizations): New function.
5051 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
5052 if number_of_latch_executions returned constant.
5053 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
5054 early. If number_of_latch_executions returned constant, set
5055 nb_iterations_upper_bound back to it.
5056 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
5058 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
5059 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
5061 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
5062 (MULTILIB_OSDIRNAMES): Set.
5063 * genmultilib: If defaultosdirname doesn't start with :: , set
5064 defaultosdirname2 instead, clear it and emit two . multilib_raw
5065 entries instead of just one.
5067 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
5069 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5070 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
5071 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5072 (SUBTARGET_OVERRIDE_OPTIONS): New.
5074 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
5077 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
5078 (musermode): Convert to Var(TARGET_USERMODE).
5079 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
5080 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
5081 * config/sh/sh.c (sh_option_override): Use
5082 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
5083 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
5085 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
5087 (udivsi3_i4_single, divsi3_i4_single): Use
5088 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
5090 2013-03-13 Dave Korn <dave.korn.cygwin@....>
5092 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
5095 2013-03-13 Richard Biener <rguenther@suse.de>
5097 PR tree-optimization/56608
5098 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
5099 calls when vectorizing basic-blocks.
5101 2013-03-13 Jakub Jelinek <jakub@redhat.com>
5104 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
5107 2013-03-12 Jakub Jelinek <jakub@redhat.com>
5109 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
5111 2013-03-11 Jan Hubicka <jh@suse.cz>
5114 * lto-streamer-out.c (output_symbol_p): Skip references from
5115 constructors of external variables.
5117 2013-03-11 Jan Hubicka <jh@suse.cz>
5120 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
5122 * emit-rtl.c (verify_rtx_sharing): Likewise.
5123 (copy_insn_1): Likewise.
5124 * rtl.c (copy_rtx): Likewise.
5126 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
5129 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
5130 output_operand_lossage message.
5132 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
5135 * arm.c (shift_op): Validate RTL pattern on the fly.
5136 (arm_print_operand, case 'S'): Don't use shift_operator to validate
5139 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5142 * config/pa/pa.md (call_value): Check for calls to powf and direct to
5143 new call patterns that clobber %fr12.
5144 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
5145 split and postreload patterns.
5146 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
5147 registers %fr12 and %fr12R as call used.
5149 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
5151 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
5152 (canon_address, record_store, replace_read, check_mem_read_rtx,
5153 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
5154 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
5155 rest_of_handle_dse): Likewise.
5157 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5160 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
5162 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
5163 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
5164 (save_optabs_if_changed): Replace with...
5165 (init_tree_optimization_optabs): ...this.
5166 * optabs.c (save_optabs_if_changed): Rename to...
5167 (init_tree_optimization_optabs): ...this. Take the optimization node
5168 as argument. Do nothing if the base optabs are already correct.
5169 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
5170 to recompute optabs.
5171 * function.h (function): Remove optabs field.
5172 * function.c (invoke_set_current_function_hook): Call
5173 init_tree_optimization_optabs. Use the result to initialize
5176 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
5178 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
5179 if GTMA_HAS_NO_INSTRUMENTATION.
5180 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
5181 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
5182 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
5183 * gimple-pretty-print.c (dump_gimple_transaction): Handle
5184 GTMA_HAS_NO_INSTRUMENTATION.
5186 2013-03-08 Jakub Jelinek <jakub@redhat.com>
5188 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
5191 2013-03-08 Marek Polacek <polacek@redhat.com>
5192 Jakub Jelinek <jakub@redhat.com>
5194 PR tree-optimization/56478
5195 * predict.c (is_comparison_with_loop_invariant_p): Change the
5196 type of loop_step to tree.
5197 (predict_loops): Adjust.
5198 (predict_iv_comparison): Perform the computations on double_ints.
5200 2013-03-08 Richard Biener <rguenther@suse.de>
5202 PR tree-optimization/56570
5203 * tree-cfg.c (verify_expr_location_1): Verify locations for
5205 * tree-sra.c (create_access_replacement): Strip locations
5206 from DECL_DEBUG_EXPRs.
5208 2013-03-08 Richard Biener <rguenther@suse.de>
5210 * tree-inline.c (expand_call_inline): Do not associate
5211 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
5212 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
5214 2013-03-08 Richard Biener <rguenther@suse.de>
5216 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
5217 or block changes with -Og. Fix for location / block encoding
5218 changes and PHI arguments with locations.
5220 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
5222 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
5224 (struct output_info): Likewise.
5225 (register_overhead): Remove bad gcc_assert.
5226 (bitmap_find_bit): If there is only a single bitmap element, do not
5227 count a miss as a search.
5228 (print_statistics): Update for counter type changes.
5229 (dump_bitmap_statistics): Likewise. Print headers such that they
5230 are properly lined up with the printed counters.
5232 2013-03-07 Jakub Jelinek <jakub@redhat.com>
5234 PR tree-optimization/56559
5235 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
5236 check that it has only a single use.
5238 2013-03-07 Richard Biener <rguenther@suse.de>
5240 * doc/invoke.texi (fwhole-program): Discourage use in combination
5243 2013-03-06 Jakub Jelinek <jakub@redhat.com>
5245 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
5247 PR tree-optimization/56539
5248 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
5249 instead of GSI_CONTINUE_LINKING as last argument to
5250 force_gimple_operand_gsi. Adjust function comment.
5252 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
5256 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
5257 promoted mode, convert the result back to the original mode.
5259 2013-03-06 Richard Biener <rguenther@suse.de>
5262 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
5263 (insert_updated_phi_nodes_compare_uids): New function.
5264 (update_ssa): Sort symbols_to_rename after UID before
5265 traversing it to insert PHI nodes.
5267 2013-03-06 Richard Biener <rguenther@suse.de>
5270 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
5271 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
5274 2013-02-13 Richard Biener <rguenther@suse.de>
5277 * varasm.c (output_constant_def_1): Get the decl representing
5278 the constant as argument.
5279 (output_constant_def): Wrap output_constant_def_1.
5280 (make_decl_rtl): Use output_constant_def_1 with the decl
5281 representing the constant.
5282 (build_constant_desc): Optionally re-use a decl already
5283 representing the constant.
5284 (tree_output_constant_def): Adjust.
5286 2013-03-06 Joey Ye <joey.ye@arm.com>
5289 * gcc.c (convert_white_space): New function.
5290 (main): Handles white space in function name.
5292 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
5295 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
5296 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
5297 to SH_DIV_CALL_TABLE for TARGET_SH2.
5298 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
5300 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
5303 2013-03-05 Sterling Augustine <saugustine@google.com>
5304 Cary Coutant <ccoutant@google.com>
5307 * dwarf2out.c (resolve_addr): Don't call
5308 remove_loc_list_addr_table_entries a second time for the same
5311 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5314 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
5315 (avoid_complex_debug_insns): New function.
5316 (expand_debug_locations): Call it.
5318 PR rtl-optimization/56484
5319 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
5320 lifetimes of hard registers on small register class machines.
5322 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5324 * config/microblaze/microblaze-protos.h: Rename
5325 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
5326 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
5328 (microblaze_fast_interrupt_function_p): New function.
5329 (microblaze_is_interrupt_handler): Rename to
5330 microblaze_is_interrupt_variant and add fast_interrupt check.
5331 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
5332 (save_restore_insns): Likewise.
5333 (compute_frame_size): Likewise.
5334 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
5335 (microblaze_globalize_label): Likewise.
5336 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
5337 * config/microblaze/microblaze.md: Use wrapper
5338 microblaze_is_interrupt_variant.
5340 2013-03-05 Kai Tietz <ktietz@redhat.com>
5342 * sdbout.c (sdbout_one_type): Switch to current function's section
5343 supporting cold/hot.
5345 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5347 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
5350 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5353 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
5354 if VALGRIND_GET_VBITS is defined, temporarily make object
5355 memory all defined, and restore previous valgrind addressability
5356 and definability afterwards. Free this_object at the end.
5359 * lra.c (lra): Call lra_clear_live_ranges if live_p,
5360 right before calling lra_create_live_ranges, also call it
5361 when clearing live_p. Only call lra_clear_live_ranges
5362 at the end if live_p.
5365 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
5367 2013-03-05 Richard Biener <rguenther@suse.de>
5369 PR tree-optimization/56521
5370 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
5373 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
5376 * except.h (remove_unreachable_eh_regions): New prototype.
5377 * except.c (remove_eh_handler_splicer): New function, split out
5378 of remove_eh_handler.
5379 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
5380 warning about running it on many EH regions one at a time.
5381 (remove_unreachable_eh_regions_worker): New function, walk the
5382 EH tree in depth-first order and remove non-marked regions.
5383 (remove_unreachable_eh_regions): New function.
5384 * tree-eh.c (mark_reachable_handlers): New function, split out
5385 from remove_unreachable_handlers.
5386 (remove_unreachable_handlers): Use mark_reachable_handlers and
5387 remove_unreachable_eh_regions.
5388 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
5389 and remove_unreachable_eh_regions.
5391 2013-03-05 Richard Biener <rguenther@suse.de>
5394 * loop-init.c (fix_loop_structure): Remove loops in two stages,
5395 not freeing them until the end.
5397 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5399 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
5401 2013-03-05 Richard Biener <rguenther@suse.de>
5403 PR tree-optimization/56270
5404 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
5405 of loads after scheduling an SLP instance.
5407 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5409 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
5411 (check_gcc_parallelize): Run guality.exp as a separate job from
5412 vect.exp with unsorted.exp and $(dg_target_exps) separately from
5413 struct-layout-1.exp with stackalign.exp.
5415 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
5418 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
5419 load_index sbitmap even if some bit in it isn't set.
5422 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
5423 (discover_iteration_bound_by_body_walk): Change queues to
5424 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
5425 spelling in comment. Call safe_push on queues[bound_index] directly.
5426 Release queues[queue_index] in every iteration unconditionally.
5427 Release bounds vector.
5430 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
5431 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
5432 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
5435 2013-03-05 Richard Biener <rguenther@suse.de>
5438 * tree-inline.c (remap_blocks_to_null): New function.
5439 (expand_call_inline): When expanding a call stmt without
5440 an associated block inline remap all callee blocks to NULL.
5442 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5444 PR rtl-optimization/56494
5445 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
5446 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
5447 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
5450 * sel-sched-ir.c (free_sched_pools): Release
5451 succs_info_pool.stack[succs_info_pool.max_top] vectors too
5452 if succs_info_pool.max_top isn't -1.
5455 * opts.c (opts_obstack, opts_concat): Moved to...
5456 * opts-common.c (opts_obstack, opts_concat): ... here.
5458 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5461 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
5463 2013-03-04 Martin Jambor <mjambor@suse.cz>
5465 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
5466 all appropriate places.
5468 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
5470 PR tree-optimization/56424
5471 * ipa-split.c (split_function): Do not set the RSO flag if result is
5472 not by reference and its type is a register type.
5474 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
5476 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
5477 (microblaze_legitimate_pic_operand): Likewise
5478 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
5479 new function microblaze_legitimate_pic_operand
5480 * config/microblaze/microblaze-protos.h
5481 (microblaze_legitimate_pic_operand): Declare.
5483 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5485 * config/microblaze/predicates.md (call_insn_simple_operand):
5486 New predicate for supported rtx code types.
5487 * config/microblaze/microblaze.md (call_internal1): Use
5488 call_insn_simple_operand predicate.
5490 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5493 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
5494 partitions.ordered_remove.
5497 * tree-vect-stmts.c (vectorizable_conversion): Don't call
5498 vec_oprnds0.create (1) for modifier == NONE.
5501 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
5502 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
5503 vec_oprnds1 right before pushing anything to it for
5507 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
5508 set nbbs to 0 instead of having separate code path.
5509 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
5510 instead of false as last argument if returning NULL.
5512 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
5514 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
5515 the attribute is now called "target" instead of "option".
5516 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
5517 * doc/tm.texi.in (Target Attributes): Likewise document the correct
5518 attribute/pragma name for TARGET_OPTION_VALID_P and
5519 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
5520 * doc/tm.texi: Regenerated.
5522 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
5524 * config/microblaze/microblaze.c:
5525 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
5526 * config/microblaze/microblaze.h: Add -mxl-reorder to
5528 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
5529 instructions emitted if TARGET_REORDER.
5530 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
5531 or 0 for -m/-mno case, but initialises as 2 to detect default use case
5534 2013-03-01 Xinliang David Li <davidxl@google.com>
5536 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
5539 2013-03-01 Jakub Jelinek <jakub@redhat.com>
5542 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
5543 vector even when returning true. Fix up function comment formatting.
5546 * ira-build.c (ira_loop_nodes_count): New variable.
5547 (create_loop_tree_nodes): Initialize it.
5548 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
5551 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
5552 method on dr_chain and result_chain.
5553 * tree-vect-stmts.c (vectorizable_store): Only call
5554 result_chain.create if j == 0.
5557 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
5558 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
5559 before overwriting it.
5561 2013-03-01 Tobias Burnus <burnus@net-b.de>
5563 * doc/extended.texi (C Extensions): Change order in @menu
5565 (Other MIPS Built-in Functions): Move last MIPS entry before
5566 "picoChip Built-in Functions".
5567 (SH Built-in Functions): Move after RX Built-in Functions.
5568 * doc/gcc.texi (Introduction): Change order in @menu
5570 * doc/md.texi (Constraints): Ditto.
5571 * gty.texi (Type Information): Ditto.
5572 (User-provided marking routines for template types): Make
5574 * doc/invoke.texi (AArch64 Options): Move before
5575 "Adapteva Epiphany Options".
5577 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5578 Jakub Jelinek <jakub@redhat.com>
5581 * asan.c (gate_asan): Lookup no_sanitize_address instead of
5582 no_address_safety_analysis attribute.
5583 * doc/extend.texi (no_address_safety_attribute): Rename to
5584 no_sanitize_address attribute, mention no_address_safety_analysis
5585 attribute as deprecated alias.
5587 2013-02-28 Jakub Jelinek <jakub@redhat.com>
5590 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
5591 type to vec<vec<tree> > *.
5592 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
5593 to be vec<tree> instead of vec<tree> *, set vec_defs
5594 to vNULL and call vec_defs.create (number_of_vects), adjust other
5596 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
5597 vectorizable_condition): Adjust vect_get_slp_defs callers.
5599 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5601 * config/aarch64/aarch64.c
5602 (aarch64_float_const_representable): Remove unused variable.
5604 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5606 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
5608 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5610 * config/aarch64/aarch64-builtins.c
5611 (aarch64_init_simd_builtins): Make static.
5613 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5615 * config/aarch64/aarch64.c
5616 (aarch64_simd_make_constant): Make static.
5618 2013-02-28 Martin Jambor <mjambor@suse.cz>
5620 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
5621 with no initialization to the RHS of debug statements.
5623 2013-02-28 Martin Jambor <mjambor@suse.cz>
5625 PR tree-optimization/56294
5626 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
5628 (get_access_replacement): Do not call create_access_replacement.
5629 Assert a replacement exists.
5630 (get_repl_default_def_ssa_name): Create the replacement declaration
5633 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5635 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
5638 2013-02-28 Marek Polacek <polacek@redhat.com>
5640 PR rtl-optimization/56466
5641 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
5642 if we're changing a loop.
5643 (peel_loops_completely): Likewise.
5645 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
5648 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
5650 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5653 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
5654 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
5655 INTX_FTYPE_FX, FX_FTYPE_INTX.
5656 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
5658 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5660 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
5661 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
5662 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
5663 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
5664 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
5665 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
5666 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
5667 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
5668 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
5669 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
5670 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
5671 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
5672 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
5673 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
5674 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
5675 (avrxmega6): Increase max flash segments from 5 to 6.
5676 * config/avr/t-multilib: Regenerate.
5677 * config/avr/avr-tables.opt: Regenerate.
5678 * doc/avr-mmcu.texi: Regenerate.
5680 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5682 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
5683 (avr_device_to_arch): Rename to avr_device_to_ld.
5684 (avr_device_to_as): New prototype.
5685 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
5686 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
5687 * config/avr/driver-avr.c (avr_device_to_as): New.
5688 (avr_device_to_arch): Rename to avr_device_to_ld.
5690 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5693 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
5694 method on dr_chain and result_chain.
5697 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
5698 pointer_set_destroy on not_executed_last_iteration.
5701 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
5704 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
5705 FOR_EACH_DEFINED_FUNCTION when freeing state.
5708 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
5710 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
5714 * ipa-cp.c (decide_whether_version_node): Call vec_free on
5715 known_aggs[i].items and release known_aggs vector.
5718 * ipa-reference.c (propagate): Free node_info even for alias nodes.
5720 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5722 * config/microblaze/microblaze.c (microblaze_emit_compare):
5723 Use xor for EQ/NE comparisions.
5724 * config/microblaze/microblaze.md (cstoresf4): Add constraints
5725 (cbranchsf4): Adjust operator to comparison_operator.
5727 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5730 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
5732 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
5733 vec_safe_push, always update *slot.
5734 (redirect_edge_var_map_clear): Use vec_free.
5735 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
5736 (free_var_map_entry): Use vec_free.
5737 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
5738 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
5740 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
5743 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
5744 when the may_trap_p bit of the exprs being merged differs.
5745 Reorder tests for speculativeness in the logical and operator.
5747 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5749 * incpath.c (add_standard_paths): Use reconcat instead of concat
5750 where appropriate and avoid leaking memory.
5752 * opts.h: Include obstack.h.
5753 (opts_concat): New prototype.
5754 (opts_obstack): New declaration.
5755 * opts.c (opts_concat): New function.
5756 (opts_obstack): New variable.
5757 (init_options_struct): Call gcc_init_obstack on opts_obstack.
5758 (finish_options): Use opts_concat instead of concat
5759 and XOBNEWVEC instead of XNEWVEC.
5760 * opts-common.c (generate_canonical_option, decode_cmdline_option,
5761 generate_option): Likewise.
5762 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
5763 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
5766 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
5767 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
5769 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5772 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
5774 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5776 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
5777 (arm_block_move_unaligned_straight): Likewise.
5778 (arm_adjust_block_mem): Likewise.
5780 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5783 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
5784 temp, cond and label.
5785 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
5788 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
5789 * config/c6x/c6x.h (dbx_register_map): Update declaration.
5792 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
5793 of prologue/epilogue functions.
5796 * config/tilegx/tilegx.c (tilegx_expand_prologue):
5797 Remove unused variable cfa_offset.
5798 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
5801 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
5802 type promotion to unsigned.
5805 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
5806 for HOST_WIDE_INT of 32 bit / same size as int.
5807 (arm_block_move_unaligned_straight): Likewise.
5808 (arm_adjust_block_mem): Likewise.
5811 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
5814 2013-02-26 Marek Polacek <polacek@redhat.com>
5816 PR tree-optimization/56426
5817 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
5819 2013-02-26 Richard Biener <rguenther@suse.de>
5822 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
5823 unused variable loops.
5825 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5827 PR tree-optimization/56448
5828 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
5829 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
5830 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
5831 later operands of the references, or even first operand for
5832 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
5834 PR tree-optimization/56443
5835 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
5836 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
5837 to type_for_mode langhook.
5839 2013-02-25 Matt Turner <mattst88@gmail.com>
5841 * doc/invoke.texi: Document r4700.
5843 2013-02-25 Richard Biener <rguenther@suse.de>
5845 PR tree-optimization/56175
5846 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
5848 (simplify_bitwise_binary): ... here. Also guard the conversion
5849 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
5851 2013-02-25 Catherine Moore <clm@codesourcery.com>
5854 2013-02-24 Catherine Moore <clm@codesourcery.com>
5855 Maciej W. Rozycki <macro@codesourcery.com>
5856 Tom de Vries <tom@codesourcery.com>
5857 Nathan Sidwell <nathan@codesourcery.com>
5858 Iain Sandoe <iain@codesourcery.com>
5859 Nathan Froyd <froydnj@codesourcery.com>
5860 Chao-ying Fu <fu@mips.com>
5862 * doc/extend.texi: (micromips, nomicromips, nocompression):
5863 Document new function attributes.
5864 * doc/invoke.texi (minterlink-compressed, mmicromips,
5865 m14k, m14ke, m14kec): Document new options.
5866 (minterlink-mips16): Update documentation.
5867 * doc/md.texi (ZC, ZD): Document new constraints.
5868 * configure.ac (gcc_cv_as_micromips): Check if linker
5869 supports the .set micromips directive.
5870 * configure: Regenerate.
5871 * config.in: Regenerate.
5872 * config/mips/mips-tables.opt: Regenerate.
5873 * config/mips/micromips.md: New file.
5874 * constraints.md (ZC, AD): New constraints.
5875 * config/mips/predicates.md (movep_src_register): New predicate.
5876 (movep_src_operand): New predicate.
5877 (non_volatile_mem_operand): New predicate.
5878 * config/mips/mips.md (multimem): New type.
5879 (length): Differentiate between 17-bit and 18-bit branch offsets.
5880 (MOVEP1, MOVEP2): New mode iterator.
5881 (mov_<load>l): Use ZC constraint.
5882 (mov_<load>r): Likewise.
5883 (mov_<store>l): Likewise.
5884 (mov_<store>r): Likewise.
5885 (*branch_equality<mode>_inverted): Add microMIPS support.
5886 (*branch_equality<mode>): Likewise.
5887 (*jump_absolute): Likewise.
5888 (indirect_jump_<mode>): Likewise.
5889 (tablejump_<mode>): Likewise.
5890 (<optab>_internal): Likewise.
5891 (sibcall_internal): Likewise.
5892 (sibcall_value_internal): Likewise.
5893 (prefetch): Use constraint ZD.
5894 * config/mips/mips.opt (minterlink-compressed): New option.
5895 (minterlink-mips16): Now an alias for minterlink-compressed.
5896 (mmicromips): New option.
5897 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5898 (compare_and_swap_12): Likewise.
5899 (sync_add<mode>): Likewise.
5900 (sync_<optab>_12): Likewise.
5901 (sync_old_<optab>_12): Likewise.
5902 (sync_new_<optab>_12): Likewise.
5903 (sync_nand_12): Likewise.
5904 (sync_old_nand_12): Likewise.
5905 (sync_new_nand_12): Likewise.
5906 (sync_sub<mode>): Likewise.
5907 (sync_old_add<mode>): Likewise.
5908 (sync_old_sub<mode>): Likewise.
5909 (sync_new_add<mode>): Likewise.
5910 (sync_new_sub<mode>): Likewise.
5911 (sync_<optab><mode>): Likewise.
5912 (sync_old_<optab><mode>): Likewise.
5913 (sync_new_<optab><mode>): Likewise.
5914 (sync_nand<mode>): Likewise.
5915 (sync_old_nand<mode>): Likewise.
5916 (sync_new_nand<mode>): Likewise.
5917 (sync_lock_test_and_set<mode>): Likewise.
5918 (test_and_set_12): Likewise.
5919 (atomic_compare_and_swap<mode>): Likewise.
5920 (atomic_exchange<mode>_llsc): Likewise.
5921 (atomic_fetch_add<mode>_llsc): Likewise.
5922 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5923 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5924 (umips_save_restore_pattern_p): Likewise.
5925 (umips_load_store_pair_p): Likewise.
5926 (umips_output_load_store_pair): Likewise.
5927 (umips_movep_target_p): Likewise.
5928 (umips_12bit_offset_address_p): Likewise.
5929 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5930 (mips_base_mips16): Rename this...
5931 (mips_base_compression_flags): ...to this. Update all uses.
5932 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5933 (mips_mips16_decl_p): Delete.
5934 (mips_nomips16_decl_p): Delete.
5935 (mips_get_compress_on_flags): New function.
5936 (mips_get_compress_off_flags): New function.
5937 (mips_get_compress_mode): New function.
5938 (mips_get_compress_on_name): New function.
5939 (mips_get_compress_off_name): New function.
5940 (mips_insert_attributes): Support multiple compression types.
5941 (mips_merge_decl_attributes): Likewise.
5942 (umips_12bit_offset_address_p): New function.
5943 (mips_start_function_definition): Emit .set micromips directive.
5944 (mips_call_may_need_jalx_p): New function.
5945 (mips_function_ok_for_sibcall): Add microMIPS support.
5946 (mips_print_operand_punctuation): Support short delay slots and
5948 (umips_swm_mask, umips_swm_encoding): New.
5949 (umips_build_save_restore): New function.
5950 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5951 (was_mips16_p): Remove.
5952 (old_compression_mode): New.
5953 (mips_set_compression_mode): New function.
5954 (mips_set_current_function): Add microMIPS support.
5955 (mips_option_override): Likewise.
5956 (umips_save_restore_pattern_p): New function.
5957 (umips_output_save_restore): New function.
5958 (umips_load_store_pair_p_1): New function.
5959 (umips_load_store_pair_p): New function.
5960 (umips_output_load_store_pair_1): New function.
5961 (umips_output_load_store_pair): New function.
5962 (umips_movep_target_p) New function.
5963 (mips_prepare_pch_save): Add microMIPS support.
5964 * config/mips/mips.h (TARGET_COMPRESSION): New.
5965 (TARGET_CPU_CPP_BUILTINS): Update macro
5966 to use new compression flags and to support microMIPS.
5967 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5968 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5969 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5970 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5971 (ASM_SPEC): Support mmicromips and mno-micromips.
5972 (M16STORE_REG_P): New macro.
5973 (MIPS_CALL): Support TARGET_MICROMIPS.
5974 (MICROMIPS_J): New macro.
5975 (mips_base_mips16): Rename this...
5976 (mips_base_compression_flags): ...to this.
5977 (UMIPS_12BIT_OFFSET_P): New macro.
5978 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5979 (MULTILIB_DIRNAMES): Likewise.
5981 2013-02-25 Tom de Vries <tom@codesourcery.com>
5983 PR rtl-optimization/56131
5984 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
5985 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
5986 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
5988 2013-02-25 Tobias Burnus <burnus@net-b.de>
5990 * doc/invoke.texi (-fsanitize=): Move from optimization
5991 to debugging options.
5993 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5995 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
5997 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5998 Alexander Monakov <amonakov@ispras.ru>
6001 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
6002 flush pending lists also on non-jumps. Adjust comment.
6004 2013-02-24 Catherine Moore <clm@codesourcery.com>
6005 Maciej W. Rozycki <macro@codesourcery.com>
6006 Tom de Vries <tom@codesourcery.com>
6007 Nathan Sidwell <nathan@codesourcery.com>
6008 Iain Sandoe <iain@codesourcery.com>
6009 Nathan Froyd <froydnj@codesourcery.com>
6010 Chao-ying Fu <fu@mips.com>
6012 * doc/extend.texi: (micromips, nomicromips, nocompression):
6013 Document new function attributes.
6014 * doc/invoke.texi (minterlink-compressed, mmicromips,
6015 m14k, m14ke, m14kec): Document new options.
6016 (minterlink-mips16): Update documentation.
6017 * doc/md.texi (ZC, ZD): Document new constraints.
6018 * configure.ac (gcc_cv_as_micromips): Check if linker
6019 supports the .set micromips directive.
6020 * configure: Regenerate.
6021 * config.in: Regenerate.
6022 * config/mips/mips-tables.opt: Regenerate.
6023 * config/mips/micromips.md: New file.
6024 * constraints.md (ZC, AD): New constraints.
6025 * config/mips/predicates.md (movep_src_register): New predicate.
6026 (movep_src_operand): New predicate.
6027 (non_volatile_mem_operand): New predicate.
6028 * config/mips/mips.md (multimem): New type.
6029 (length): Differentiate between 17-bit and 18-bit branch offsets.
6030 (MOVEP1, MOVEP2): New mode iterator.
6031 (mov_<load>l): Use ZC constraint.
6032 (mov_<load>r): Likewise.
6033 (mov_<store>l): Likewise.
6034 (mov_<store>r): Likewise.
6035 (*branch_equality<mode>_inverted): Add microMIPS support.
6036 (*branch_equality<mode>): Likewise.
6037 (*jump_absolute): Likewise.
6038 (indirect_jump_<mode>): Likewise.
6039 (tablejump_<mode>): Likewise.
6040 (<optab>_internal): Likewise.
6041 (sibcall_internal): Likewise.
6042 (sibcall_value_internal): Likewise.
6043 (prefetch): Use constraint ZD.
6044 * config/mips/mips.opt (minterlink-compressed): New option.
6045 (minterlink-mips16): Now an alias for minterlink-compressed.
6046 (mmicromips): New option.
6047 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6048 (compare_and_swap_12): Likewise.
6049 (sync_add<mode>): Likewise.
6050 (sync_<optab>_12): Likewise.
6051 (sync_old_<optab>_12): Likewise.
6052 (sync_new_<optab>_12): Likewise.
6053 (sync_nand_12): Likewise.
6054 (sync_old_nand_12): Likewise.
6055 (sync_new_nand_12): Likewise.
6056 (sync_sub<mode>): Likewise.
6057 (sync_old_add<mode>): Likewise.
6058 (sync_old_sub<mode>): Likewise.
6059 (sync_new_add<mode>): Likewise.
6060 (sync_new_sub<mode>): Likewise.
6061 (sync_<optab><mode>): Likewise.
6062 (sync_old_<optab><mode>): Likewise.
6063 (sync_new_<optab><mode>): Likewise.
6064 (sync_nand<mode>): Likewise.
6065 (sync_old_nand<mode>): Likewise.
6066 (sync_new_nand<mode>): Likewise.
6067 (sync_lock_test_and_set<mode>): Likewise.
6068 (test_and_set_12): Likewise.
6069 (atomic_compare_and_swap<mode>): Likewise.
6070 (atomic_exchange<mode>_llsc): Likewise.
6071 (atomic_fetch_add<mode>_llsc): Likewise.
6072 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6073 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6074 (umips_save_restore_pattern_p): Likewise.
6075 (umips_load_store_pair_p): Likewise.
6076 (umips_output_load_store_pair): Likewise.
6077 (umips_movep_target_p): Likewise.
6078 (umips_12bit_offset_address_p): Likewise.
6079 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6080 (mips_base_mips16): Rename this...
6081 (mips_base_compression_flags): ...to this. Update all uses.
6082 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6083 (mips_mips16_decl_p): Delete.
6084 (mips_nomips16_decl_p): Delete.
6085 (mips_get_compress_on_flags): New function.
6086 (mips_get_compress_off_flags): New function.
6087 (mips_get_compress_mode): New function.
6088 (mips_get_compress_on_name): New function.
6089 (mips_get_compress_off_name): New function.
6090 (mips_insert_attributes): Support multiple compression types.
6091 (mips_merge_decl_attributes): Likewise.
6092 (umips_12bit_offset_address_p): New function.
6093 (mips_start_function_definition): Emit .set micromips directive.
6094 (mips_call_may_need_jalx_p): New function.
6095 (mips_function_ok_for_sibcall): Add microMIPS support.
6096 (mips_print_operand_punctuation): Support short delay slots and
6098 (umips_swm_mask, umips_swm_encoding): New.
6099 (umips_build_save_restore): New function.
6100 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6101 (was_mips16_p): Remove.
6102 (old_compression_mode): New.
6103 (mips_set_compression_mode): New function.
6104 (mips_set_current_function): Add microMIPS support.
6105 (mips_option_override): Likewise.
6106 (umips_save_restore_pattern_p): New function.
6107 (umips_output_save_restore): New function.
6108 (umips_load_store_pair_p_1): New function.
6109 (umips_load_store_pair_p): New function.
6110 (umips_output_load_store_pair_1): New function.
6111 (umips_output_load_store_pair): New function.
6112 (umips_movep_target_p) New function.
6113 (mips_prepare_pch_save): Add microMIPS support.
6114 * config/mips/mips.h (TARGET_COMPRESSION): New.
6115 (TARGET_CPU_CPP_BUILTINS): Update macro
6116 to use new compression flags and to support microMIPS.
6117 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6118 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6119 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6120 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6121 (ASM_SPEC): Support mmicromips and mno-micromips.
6122 (M16STORE_REG_P): New macro.
6123 (MIPS_CALL): Support TARGET_MICROMIPS.
6124 (MICROMIPS_J): New macro.
6125 (mips_base_mips16): Rename this...
6126 (mips_base_compression_flags): ...to this.
6127 (UMIPS_12BIT_OFFSET_P): New macro.
6128 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6129 (MULTILIB_DIRNAMES): Likewise.
6131 2013-02-24 Jakub Jelinek <jakub@redhat.com>
6134 * target-globals.c (save_target_globals): For init_reg_sets and
6135 target_reinit remporarily set this_fn_optabs to this_target_optabs.
6137 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
6139 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
6140 * config/aarch64/t-aarch64
6141 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
6143 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
6146 * lra-constraints.c (process_alt_operands): Reload operand
6147 conflicting with earlier clobber only if no more other conflicting
6150 2013-02-22 Jakub Jelinek <jakub@redhat.com>
6153 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
6154 if not linking a shared library.
6156 2013-02-22 Seth LaForge <sethml@google.com>
6158 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
6160 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
6162 * config/arm/arm.md (split for extendsidi): Update condition.
6163 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
6164 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
6165 (qhs_zextenddi_cstr): Likewise.
6167 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6170 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
6171 avoid signed wrapping.
6172 (expand_mult): Handle properly multiplication by
6173 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
6174 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
6175 in the compiler if coeff is HOST_WIDE_INT_MIN.
6176 (expand_divmod): Don't make ext_op1 static, change it's type to
6177 uhwi. Avoid undefined behavior in -INTVAL (op1).
6179 PR rtl-optimization/50339
6180 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
6182 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
6183 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
6184 into splitting_ashiftrt field.
6185 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
6187 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
6190 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
6193 * trans-mem.c (execute_tm_mark): Do not expand transactions that
6194 are sure to go irrevocable.
6196 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
6198 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
6199 scalars are valid operands.
6201 2013-02-21 Martin Jambor <mjambor@suse.cz>
6203 PR tree-optimization/56310
6204 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
6205 only matching indices and non-negative final offsets.
6206 (intersect_aggregates_with_edge): Pass src_idx to
6207 agg_replacements_to_vector. Pass src_idx insstead of index to
6208 intersect_with_agg_replacements.
6210 2013-02-21 Martin Jambor <mjambor@suse.cz>
6212 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
6213 instead of hard-wired defaults.
6215 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
6217 * doc/invoke.texi (MIPS Options): Update documentation of the
6218 floating-point multiply-accumulate instruction restrictions.
6220 2013-02-21 Kostya Serebryany <kcc@google.com>
6222 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
6223 asan_shadow_offset on x86_64 linux.
6225 2013-02-21 Richard Biener <rguenther@suse.de>
6227 PR tree-optimization/56415
6229 2013-02-11 Richard Biener <rguenther@suse.de>
6231 PR tree-optimization/56273
6232 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6235 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6238 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
6242 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
6243 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
6245 2013-02-20 Jan Hubicka <jh@suse.cz>
6247 PR tree-optimization/56265
6248 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
6249 when target is referenced for first time.
6251 2013-02-20 Richard Biener <rguenther@suse.de>
6253 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
6254 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
6255 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6256 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
6257 not return anything.
6258 (rename_ssa_copies): Do not remove unused locals.
6259 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
6260 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
6261 * passes.c (execute_function_todo): Do not schedule unused locals
6262 removal if cleanup_tree_cfg did something.
6263 * tree-ssa-live.c (remove_unused_locals): Dump statistics
6264 about the number of removed locals.
6266 2013-02-20 Richard Biener <rguenther@suse.de>
6268 PR tree-optimization/56398
6269 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
6271 2013-02-20 Martin Jambor <mjambor@suse.cz>
6273 PR tree-optimization/55334
6274 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
6275 restricted pointers to arrays.
6277 2013-02-20 Richard Biener <rguenther@suse.de>
6278 Jakub Jelinek <jakub@redhat.com>
6280 PR tree-optimization/56396
6281 * tree-ssa-ccp.c (n_const_val): New static variable.
6282 (get_value): Return NULL for SSA names we don't have a lattice
6284 (ccp_initialize): Initialize n_const_val.
6285 * tree-ssa-copy.c (n_copy_of): New static variable.
6286 (init_copy_prop): Initialize n_copy_of.
6287 (get_value): Return NULL_TREE for SSA names we don't have a
6290 2013-02-20 Martin Jambor <mjambor@suse.cz>
6292 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
6294 2013-02-20 Richard Biener <rguenther@suse.de>
6296 * genpreds.c (write_lookup_constraint): Do not compare first
6297 letter of the constraint again.
6299 2013-02-20 Richard Biener <rguenther@suse.de>
6301 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
6303 (get_use_iv_cost): Terminate hashtable walk when coming across
6306 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
6308 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
6309 reassociation for avx2 targets.
6311 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6313 * config/microblaze/microblaze.c: microblaze_has_clz = 0
6314 Add version check for v8.10.a to enable microblaze_has_clz
6315 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
6316 version and TARGET_PATTERN_COMPARE check
6317 * config/microblaze/microblaze.md: New clzsi2 instruction
6319 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6321 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
6322 function before branching.
6324 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6326 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
6328 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
6330 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6333 * sel-sched.c: Include ira.h.
6334 (implicit_clobber_conflict_p): New function.
6335 (moveup_expr): Use it.
6336 * Makefile.in (sel-sched.o): Depend on ira.h.
6338 2013-02-19 Richard Biener <rguenther@suse.de>
6340 PR tree-optimization/56384
6341 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
6342 (vn_hash_type): Split out from ...
6343 (vn_hash_constant_with_type): ... here.
6344 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
6345 (vn_phi_eq): Compare types from vn_phi_s structure.
6346 (vn_phi_lookup): Populate vn_phi_s type.
6347 (vn_phi_insert): Likewise.
6349 2013-02-19 Jakub Jelinek <jakub@redhat.com>
6351 PR tree-optimization/56350
6352 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
6353 if haven't found reduction or nested cycle operand, rather than
6354 asserting we must find it.
6356 PR tree-optimization/56381
6357 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
6360 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
6361 Jakub Jelinek <jakub@redhat.com>
6364 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
6365 (swap_optab_enable): Same.
6366 (init_all_optabs): Use argument instead of global.
6367 * tree.h (struct tree_optimization_option): New field target_optabs.
6368 * expr.h (init_all_optabs): Add argument to prototype.
6369 (TREE_OPTIMIZATION_OPTABS): New.
6370 (save_optabs_if_changed): Protoize.
6371 * optabs.h: Declare this_fn_optabs.
6372 * optabs.c (save_optabs_if_changed): New.
6373 Declare this_fn_optabs.
6374 (init_optabs): Add argument to init_all_optabs() call.
6375 * function.c (invoke_set_current_function_hook): Handle per
6377 * function.h (struct function): New field optabs.
6378 * config/mips/mips.c (mips_set_mips16_mode): Handle when
6379 optimization_current_node has changed.
6380 * target-globals.h (save_target_globals_default_opts): Protoize.
6381 * target-globals.c (save_target_globals_default_opts): New.
6383 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6386 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
6387 registers %fr12 and %fr12R as call used.
6390 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
6391 and HImode, require all displacements to be an integer multiple of
6393 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
6394 only allow QImode and HImode when reload is in progress and strict is
6395 true. Likewise for symbolic addresses. Use base14_operand to check
6396 displacements in REG+BASE addresses.
6398 2013-02-18 Richard Biener <rguenther@suse.de>
6400 PR tree-optimization/56366
6401 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6402 handle sign-conversion of outer-loop initial induction value.
6404 2013-02-18 Richard Biener <rguenther@suse.de>
6407 * cfghooks.c (merge_blocks): If we merge a latch into another
6408 block adjust references to it.
6409 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
6410 (verify_loop_structure): Verify that a recorded latch is in fact
6413 2013-02-18 Richard Biener <rguenther@suse.de>
6415 PR tree-optimization/56321
6416 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
6417 order SSA name release and virtual operand unlinking.
6419 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6421 * config/microblaze/microblaze.md (save_stack_block): Define.
6422 (restore_stack_block): Likewise.
6424 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6426 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
6427 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
6428 * config/microblaze/microblaze.c (microblaze_option_override):
6429 Bail out early for PIC modes when target does not support PIC.
6431 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6433 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
6434 Replace with a microblaze version.
6435 (microblaze_trampoline_init): Adapt for microblaze.
6436 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
6439 2013-02-16 Jakub Jelinek <jakub@redhat.com>
6440 Dodji Seketeli <dodji@redhat.com>
6443 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
6444 (instrument_mem_region_access): Do not forget to always put
6445 instrumentation of the of 'base' and 'base + len' in a "if (len !=
6446 0) statement, even for cases where either 'base' or 'base + len'
6447 are not instrumented -- because they have been previously
6448 instrumented. Simplify the logic by putting all the statements
6449 instrument 'base + len' inside a sequence, and then insert that
6450 sequence right before the current insertion point. Then, to
6451 instrument 'base + len', just get an iterator on that statement.
6452 And do not forget to update the pointer to iterator the function
6453 received as argument.
6455 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
6457 PR rtl-optimization/56348
6458 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
6460 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
6462 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
6463 (clean_graph_dump_file): Pass base to start_graph_dump.
6465 2013-02-14 Richard Henderson <rth@redhat.com>
6468 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
6470 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
6472 * collect2-aix.h: Define F_LOADONLY.
6474 2013-02-14 Richard Biener <rguenther@suse.de>
6477 * varasm.c (output_constant_def_1): Get the decl representing
6478 the constant as argument.
6479 (output_constant_def): Wrap output_constant_def_1.
6480 (make_decl_rtl): Use output_constant_def_1 with the decl
6481 representing the constant.
6482 (build_constant_desc): Optionally re-use a decl already
6483 representing the constant.
6484 (tree_output_constant_def): Adjust.
6486 2013-02-14 Dodji Seketeli <dodji@redhat.com>
6489 * asan.c (instrument_builtin_call): Really put the length of the
6490 second source argument into src1_len.
6492 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6494 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
6495 argument. If it is false, don't create edge from then_bb to
6497 (insert_if_then_before_iter): Pass true to it.
6498 (build_check_stmt): Pass false to it.
6499 (transform_statements): Flush hash table only on extended basic
6500 block boundaries, rather than at the beginning of every bb.
6501 Don't flush hash table on nonfreeing_call_p calls.
6502 * tree-flow.h (nonfreeing_call_p): New prototype.
6503 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
6505 2013-02-13 David S. Miller <davem@davemloft.net>
6507 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
6509 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
6512 * ira.c (max_regno_before_ira): Move from ...
6514 (fix_reg_equiv_init): Use max_regno_before_ira instead of
6517 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6519 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
6521 2013-02-13 Richard Biener <rguenther@suse.de>
6524 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
6525 globals in MEM_REFs.
6527 2013-02-13 Richard Biener <rguenther@suse.de>
6529 * loop-init.c (loop_optimizer_init): Clear loop state when
6530 re-initializing preserved loops.
6531 * loop-unswitch.c (unswitch_single_loop): Return whether
6532 we unswitched the loop. Do not verify loop state here.
6533 (unswitch_loops): When we unswitched a loop discover new loops.
6535 2013-02-13 Kostya Serebryany <kcc@google.com>
6537 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
6539 * sanitizer.def: Rename __asan_init to __asan_init_v1.
6541 2013-02-12 Dodji Seketeli <dodji@redhat.com>
6543 Avoid instrumenting duplicated memory access in the same basic block
6544 * Makefile.in (asan.o): Add new dependency on hash-table.h
6545 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
6546 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
6547 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
6548 (free_mem_ref_resources, has_mem_ref_been_instrumented)
6549 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
6550 (get_mem_ref_of_assignment): New functions.
6551 (get_mem_refs_of_builtin_call): Extract from
6552 instrument_builtin_call and tweak a little bit to make it fit with
6554 (instrument_builtin_call): Use the new
6555 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
6556 of is_gimple_builtin_call.
6557 (instrument_derefs, instrument_mem_region_access): Insert the
6558 instrumented memory reference into the hash table.
6559 (maybe_instrument_assignment): Renamed instrument_assignment into
6560 this, and change it to advance the iterator when instrumentation
6561 actually happened and return true in that case. This makes it
6562 homogeneous with maybe_instrument_assignment, and thus give a
6563 chance to callers to be more 'regular'.
6564 (transform_statements): Clear the memory reference hash table
6565 whenever we enter a new BB, when we cross a function call, or when
6566 we are done transforming statements. Use
6567 maybe_instrument_assignment instead of instrumentation. No more
6568 need to special case maybe_instrument_assignment and advance the
6569 iterator after calling it; it's now handled just like
6570 maybe_instrument_call. Update comment.
6572 2013-02-13 Richard Biener <rguenther@suse.de>
6574 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6575 Fix loop discovery code.
6577 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
6580 * lra-constraints.c (process_alt_operands): Match early clobber
6581 operand with itself. Check conflicts with earlyclobber only if
6582 the operand is not reloaded. Prefer to reload conflicting operand
6583 if earlyclobber and matching operands are the same.
6585 2013-02-12 Richard Biener <rguenther@suse.de>
6588 * lto-streamer-out.c (write_symbol): Do not output symbols
6589 for hard register variables.
6591 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
6594 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
6595 (umulsidi3_insn, mulsidi3_insn): New insns.
6597 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
6599 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
6600 (struct tune_params): Add vec_costs field.
6601 * config/arm/arm.c (arm_builtin_vectorization_cost)
6602 (arm_add_stmt_cost): New functions.
6603 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
6604 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
6605 (arm_default_vec_cost): New struct of type cpu_vec_costs.
6606 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6607 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
6608 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
6609 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
6611 2013-02-12 Richard Biener <rguenther@suse.de>
6614 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
6615 decls again if possible.
6617 2013-02-12 Richard Biener <rguenther@suse.de>
6620 * tree-ssa.c (verify_ssa_name): Fix check, move
6621 SSA_NAME_IN_FREE_LIST check up.
6623 2013-02-12 Jakub Jelinek <jakub@redhat.com>
6624 Steven Bosscher <steven@gcc.gnu.org>
6626 PR rtl-optimization/56151
6627 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
6628 equal to op0 or op1, and last_insn pattern is CODE operation
6629 with MEM dest and one of the operands matches that MEM.
6631 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
6633 * doc/extend.texi: Document Function Multiversioning and "default"
6634 parameter string to target attribute.
6635 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
6636 target attribute parameter is "default".
6637 (ix86_compare_version_priority): Remove checks for target attribute.
6638 (ix86_mangle_function_version_assembler_name): Change error to sorry.
6639 Remove check for target attribute equal to NULL. Add assert.
6640 (ix86_generate_version_dispatcher_body): Change error to sorry.
6642 2013-02-11 Iain Sandoe <iain@codesourcery.com>
6643 Jack Howarth <howarth@bromo.med.uc.edu>
6644 Patrick Marlier <patrick.marlier@gmail.com>
6647 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
6648 define ENDFILE_SPEC as TM_DESTRUCTOR.
6649 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
6651 2013-02-11 Alexander Potapenko <glider@google.com>
6652 Jack Howarth <howarth@bromo.med.uc.edu>
6653 Jakub Jelinek <jakub@redhat.com>
6656 * config/darwin.c (cdtor_record): Rename ctor_record.
6657 (sort_cdtor_records): Rename sort_ctor_records.
6658 (finalize_dtors): New routine to sort destructors by
6659 priority before use in assemble_integer.
6660 (machopic_asm_out_destructor): Use finalize_dtors if needed.
6662 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
6664 PR rtl-optimization/56275
6665 * simplify-rtx.c (avoid_constant_pool_reference): Check that
6666 offset is non-negative and less than cmode size before
6667 calling simplify_subreg.
6669 2013-02-11 Richard Biener <rguenther@suse.de>
6671 PR tree-optimization/56264
6672 * cfgloop.h (fix_loop_structure): Adjust prototype.
6673 * loop-init.c (fix_loop_structure): Return the number of
6674 newly discovered loops.
6675 * tree-cfgcleanup.c (repair_loop_structures): When new loops
6676 are discovered, do a full loop-closed SSA rewrite.
6678 2013-02-11 Richard Biener <rguenther@suse.de>
6680 PR tree-optimization/56273
6681 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6683 (check_array_ref): Fix missing newline in dumps.
6684 (search_for_addr_array): Likewise.
6686 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
6688 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
6690 2013-02-09 Jakub Jelinek <jakub@redhat.com>
6693 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
6695 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
6697 PR rtl-optimization/56246
6698 * lra-constraints.c (simplify_operand_subreg): Try to reuse
6700 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
6701 constraints are satisfied.
6703 2013-02-08 Jeff Law <law@redhat.com>
6706 * emit-rtl.c (reg_is_parm_p): New function.
6707 * regs.h (reg_is_parm_p): New prototype.
6708 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
6709 callee-clobbered registers.
6711 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6714 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
6715 If there is no implicit builtin declaration, just return NULL.
6717 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6719 * config/i386/sse.md (FMAMODEM): New mode iterator.
6720 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
6721 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
6723 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6725 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
6726 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
6727 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
6729 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6731 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
6732 (microblaze*-*-elf): Likewise.
6733 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
6735 * config/microblaze/microblaze-c.c: Add builtin defines for
6736 _LITTLE_ENDIAN and _BIG_ENDIAN.
6737 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
6738 add to TARGET_DEFAULT flags.
6739 Expand ASM_SPEC and LINK_SPEC.
6740 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6741 * config/microblaze/microblaze.md: Update extendsidi2 and
6742 movdi_internal instructions to use low-order / high-order reg
6744 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
6745 options and inversemask / mask of LITTLE_ENDIAN.
6746 * config/microblaze/t-microblaze: Expand multilib options to
6747 include mlittle-endian (le) and update exceptions patterns.
6749 2013-02-08 Jakub Jelinek <jakub@redhat.com>
6751 PR rtl-optimization/56195
6752 * lra-constraints.c (get_reload_reg): Don't reuse regs
6753 if they have smaller mode than requested, if they have
6754 wider mode than requested, try to return a SUBREG.
6756 PR tree-optimization/56250
6757 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
6758 if type is unsigned and code isn't MULT_EXPR.
6760 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6762 PR tree-optimization/56064
6763 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
6764 bits according to mode.
6765 * fixed-value.h (fixed_from_double_int)
6766 (const_fixed_from_double_int): Adjust comments.
6768 2013-02-08 Richard Biener <rguenther@suse.de>
6771 * lto-streamer.h (struct data_in): Remove current_file, current_line
6772 and current_col members.
6773 * lto-streamer-out.c (lto_output_location): Stream changed bits
6774 en-block for efficiency.
6775 * lto-streamer-in.c (clear_line_info): Remove.
6776 (lto_input_location): Cache current file, line and column
6777 globally via local statics. Read changed bits en-block.
6778 (input_function): Do not call clear_line_info.
6779 (lto_read_body): Likewise.
6780 (lto_input_toplevel_asms): Likewise.
6782 2013-02-08 Michael Matz <matz@suse.de>
6784 PR tree-optimization/52448
6785 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
6786 (nt_call_phase): New static.
6787 (add_or_mark_expr): Only mark accesses with newer phase than any
6789 (nonfreeing_call_p): New.
6790 (nt_init_block): Update nt_call_phase, mark blocks as visited.
6791 (nt_fini_block): Keep blocks marked as visited.
6792 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
6794 2013-02-08 Richard Biener <rguenther@suse.de>
6796 * ira.c (ira): Free broken dominator information.
6798 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6800 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
6802 2013-02-08 Marek Polacek <polacek@redhat.com>
6804 * cfgloop.c (verify_loop_structure): Add more checking of headers.
6806 2013-02-08 Richard Biener <rguenther@suse.de>
6809 * cfgloop.h (flow_loops_find): Adjust.
6810 (bb_loop_header_p): Declare.
6811 * cfgloop.c (bb_loop_header_p): New function split out from ...
6812 (flow_loops_find): ... here. Adjust function signature,
6813 support incremental loop structure update.
6814 (verify_loop_structure): Cleanup. Verify a loop is a loop.
6815 * cfgloopmanip.c (fix_loop_structure): Move ...
6816 * loop-init.c (fix_loop_structure): ... here.
6817 (apply_loop_flags): Split out from ...
6818 (loop_optimizer_init): ... here.
6819 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
6820 in incremental mode, only remove dead loops here.
6822 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6825 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
6826 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
6827 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
6828 (*round<mode>3.libgcc): New insns for fixed-modes.
6829 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
6830 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
6831 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
6832 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
6833 implementations. Define to __builtin_avr_absFX,
6834 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
6835 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
6836 __builtin_avr_countlsFX, respectively.
6837 * config/avr/avr-c.c (target.h): Include it.
6838 (enum avr_builtin_id): New enum.
6839 (avr_resolve_overloaded_builtin): New static function.
6840 (avr_register_target_pragmas): Use it to set
6841 targetm.resolve_overloaded_builtin.
6842 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
6843 tree nodes used by DEF_BUILTIN.
6844 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
6845 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
6846 <AVR_BUILTIN_xxBITS>: Same.
6848 2013-02-08 Richard Biener <rguenther@suse.de>
6850 * cfgloop.c (verify_loop_structure): Properly handle
6851 a loop exiting to another loop header.
6852 * ira-int.h (ira_loops): Remove.
6853 * ira.c (ira_loops): Remove.
6854 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
6855 (do_reload): Use loop_optimizer_finalize.
6856 * ira-build.c (create_loop_tree_nodes): Use get_loops and
6857 number_of_loops to access the loop tree.
6858 (more_one_region_p): Likewise.
6859 (finish_loop_tree_nodes): Likewise.
6860 (rebuild_regno_allocno_maps): Likewise.
6861 (mark_loops_for_removal): Likewise.
6862 (mark_all_loops_for_removal): Likewise.
6863 (remove_unnecessary_regions): Likewise.
6864 (ira_build): Likewise.
6865 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6867 2013-02-08 Richard Biener <rguenther@suse.de>
6869 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
6870 * ipa-pure-const.c (analyze_function): Avoid calling
6871 mark_irreducible_loops twice.
6872 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
6874 2013-02-07 David S. Miller <davem@davemloft.net>
6876 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
6878 * var-tracking.c (vt_add_function_parameter): Test the presence of
6879 HAVE_window_save properly and do not remap argument registers when
6880 we have a leaf function.
6882 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
6885 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
6887 * config/i386/i386.c (ix86_print_operand): Ditto.
6889 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6891 * lra-constraints.c (process_alt_operands): Fix recently added comment.
6893 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6895 PR rtl-optimization/56225
6896 * lra-constraints.c (process_alt_operands): Check that reload hard
6897 reg can hold value for strict_low_part.
6899 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6902 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
6903 dwarf2out_end_function.
6904 (in_first_function_p, maybe_at_text_label_p,
6905 first_loclabel_num_not_at_text_label): New variables.
6906 (dwarf2out_var_location): In the first function find out
6907 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
6908 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
6911 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
6913 PR rtl-optimization/56178
6914 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
6915 SUBREG of a register. Tidy up related block of code.
6916 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
6917 note if the source is a register or a SUBREG of a register.
6919 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6922 * config/rs6000/rs6000.md (ptrm): New mode attr.
6923 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
6924 call_value_indirect_aix<pttrsize>,
6925 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
6928 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6930 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
6931 if -bnortl. Convert to strcmp and strncmp.
6933 2013-02-07 Alan Modra <amodra@gmail.com>
6936 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
6937 addresses won't wrap when offsetting.
6938 (rs6000_secondary_reload): Provide secondary reloads needed for
6939 wrapping LO_SUM addresses.
6941 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
6943 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
6944 MACH, just __MACH__.
6946 2013-02-06 Richard Biener <rguenther@suse.de>
6948 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
6949 instead of calling fix_loop_structure.
6951 2013-02-06 Jakub Jelinek <jakub@redhat.com>
6954 * omp-low.c (use_pointer_for_field): Return false if
6955 lower_send_shared_vars doesn't generate any copy-out code.
6957 2013-02-06 Tom de Vries <tom@codesourcery.com>
6959 PR rtl-optimization/56131
6960 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
6961 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
6962 of the label is NULL. Add comment.
6964 2013-02-05 Jakub Jelinek <jakub@redhat.com>
6966 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
6969 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
6970 (STATIC_LIBTSAN_LIBS): Likewise.
6971 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
6972 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
6973 is defined, don't add anything else beyond that.
6974 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
6975 (LINK_COMMAND_SPEC): Use them.
6977 PR tree-optimization/56205
6978 * tree-stdarg.c (check_all_va_list_escapes): Return true if
6979 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
6980 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
6982 2013-02-05 Richard Biener <rguenther@suse.de>
6984 PR tree-optimization/53342
6985 PR tree-optimization/53185
6986 * tree-vectorizer.h (vect_check_strided_load): Remove.
6987 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
6988 not disallow peeling for vectorized strided loads.
6989 (vect_check_strided_load): Make static and simplify.
6990 (vect_analyze_data_refs): Adjust.
6991 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
6992 correctly when vectorizing strided loads.
6994 2013-02-05 Richard Biener <rguenther@suse.de>
6996 * doc/install.texi: Refer to ISL, not PPL.
6998 2013-02-05 Jan Hubicka <jh@suse.cz>
7000 PR tree-optimization/55789
7001 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
7003 2013-02-05 Jan Hubicka <jh@suse.cz>
7005 PR tree-optimization/55789
7006 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
7007 the dead call anyway.
7009 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
7012 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
7014 2013-02-04 Alexander Potapenko <glider@google.com>
7015 Jack Howarth <howarth@bromo.med.uc.edu>
7016 Jakub Jelinek <jakub@redhat.com>
7019 * config/darwin.c (sort_ctor_records): Stabilized qsort
7020 on constructor priority by using original position.
7021 (finalize_ctors): New routine to sort constructors by
7022 priority before use in assemble_integer.
7023 (machopic_asm_out_constructor): Use finalize_ctors if needed.
7025 2013-02-04 Jakub Jelinek <jakub@redhat.com>
7028 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
7029 about visibility on artificial decls.
7030 * config/sol2.c (solaris_assemble_visibility): Likewise.
7032 2013-02-04 Kai Tietz <ktietz@redhat.com>
7035 * config/i386/i386.c (function_value_ms_64): Add additional valtype
7036 argument and improve checking of return-argument types for 16-byte
7038 (ix86_function_value_1): Add additional valtype argument on call
7039 of function_value_64.
7040 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
7041 handling infunction_value_64 function.
7043 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
7045 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
7047 2013-02-04 Richard Biener <rguenther@suse.de>
7049 PR tree-optimization/56188
7050 * tree-ssa-structalias.c (label_visit): Consider case with
7051 initially non-empty points-to set.
7052 (perform_var_substitution): Dump node mapping and clean up.
7054 2013-02-04 Richard Guenther <rguenther@suse.de>
7057 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
7058 node prevail as last resort.
7059 (lto_symtab_merge_decls): Remove guard on LTRANS here.
7060 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
7062 2013-02-04 Richard Biener <rguenther@suse.de>
7064 PR tree-optimization/56113
7065 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
7067 (equiv_class_lookup_or_add): ... this.
7068 (label_visit): Adjust and fix error in previous patch.
7069 (perform_var_substitution): Adjust.
7071 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
7073 * config/sh/divtab.c: Fix formatting and comments throughout the file.
7074 * config/sh/sh4-300.md: Likewise.
7075 * config/sh/sh4a.md: Likewise.
7076 * config/sh/constraints.md: Likewise.
7077 * config/sh/sh.md: Likewise.
7078 * config/sh/netbsd-elf.h: Likewise.
7079 * config/sh/predicates.md: Likewise.
7080 * config/sh/sh-protos.h: Likewise.
7081 * config/sh/ushmedia.h: Likewise.
7082 * config/sh/linux.h: Likewise.
7083 * config/sh/sh.c: Likewise.
7084 * config/sh/superh.h: Likewise.
7085 * config/sh/elf.h: Likewise.
7086 * config/sh/sh4.md: Likewise.
7087 * config/sh/sh.h: Likewise.
7089 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7091 * config/pa/constraints.md: Adjust unused letters. Change "T"
7092 constraint to match_test floating_point_store_memory_operand().
7093 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
7094 (base14_operand): New.
7095 (floating_point_store_memory_operand): New.
7096 (integer_store_memory_operand): Revise to use base14_operand and
7097 reg_plus_base_memory_operand.
7098 (move_dest_operand): Allow symbolic_memory_operands.
7099 (symbolic_memory_operand): Check for LO_SOM.
7100 (symbolic_operand): Change default case to break.
7101 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
7102 CONST_DOUBLE values to be reloaded by putting them into memory when
7103 the destination is a floating point register.
7104 (movdf): Remove code to handle CONST_DOUBLE.
7106 (reload_indf_r1): New.
7107 (reload_insf_r1): New.
7108 Consistently use "Q" and "T" constraints with integer and floating
7109 point move instructions, respectively.
7110 (movdi): Remove FAIL.
7111 Change predicate for source operand unamed DImode move from
7112 general_operand to move_src_operand.
7113 (umulsidi3): Change predicate for destination operand to
7115 Likewise for similar unamed patterns.
7116 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
7117 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
7118 (hppa_legitimize_address): Simplify mask calculation.
7119 (pa_emit_move_sequence): Revised handling of secondary reloads from
7120 REG+D addresses for floating point loads and stores. Directly handle
7121 loading CONST0_RTX (mode) to a floating point register.
7122 (pa_secondary_reload): Handle reloading DF and SFmode constant values
7123 to floating point registers. Don't restrict secondary reloads to
7124 floating point registers to integer modes. Revise some comments and
7126 (TARGET_LEGITIMATE_ADDRESS_P): Define.
7127 (pa_legitimate_address_p): New.
7128 (pa_legitimize_reload_address): New.
7129 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
7130 (STRICT_REG_OK_FOR_BASE_P): New.
7131 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
7132 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
7134 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
7135 Andrew Dixie <andrewd@gentrack.com>
7137 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
7140 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
7142 * expmed.c (extract_bit_field_1): Pass the full width of the
7143 structure to get_best_reg_extraction_insn.
7145 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
7148 * configure.ac (use_cxa_atexit): Add AIX.
7149 * configure: Regenerate.
7151 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
7153 2013-02-01 Jakub Jelinek <jakub@redhat.com>
7156 * final.c (need_profile_function): New variable.
7157 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
7158 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
7159 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
7160 notes, targetm.asm_out.function_prologue doesn't emit anything,
7161 HAVE_prologue and profiler should be emitted before prologue,
7162 set need_profile_function instead of emitting it.
7163 (final_scan_insn): If need_profile_function, emit
7164 profile_function on the first NOTE_INSN_BASIC_BLOCK or
7165 NOTE_INSN_FUNCTION_BEG note.
7167 2013-02-01 Richard Henderson <rth@redhat.com>
7169 * config/rs6000/rs6000.md (smulditi3): New.
7172 * config/alpha/alpha.md (umulditi3): New.
7174 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
7176 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
7177 (ASM_OUTPUT_ALIGNED_LOCAL): New.
7179 2013-02-01 Richard Biener <rguenther@suse.de>
7181 PR tree-optimization/56113
7182 * tree-ssa-structalias.c (label_visit): Reduce work for
7183 single-predecessor nodes.
7185 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
7187 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
7188 range isn't testing for zero.
7190 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
7193 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
7195 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
7196 Nick Clifton <nickc@redhat.com>
7198 * config/v850/constraints.md (Q): Define as a memory constraint.
7199 * config/v850/predicates.md (label_ref_operand): New predicate.
7200 (e3v5_shift_operand): New predicate.
7201 (ior_operator): New predicate.
7202 * config/v850/t-v850: Add e3v5 multilib.
7203 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
7204 (v850_gen_movdi): Prototype.
7205 * config/v850/v850.c: Add support for e3v5 architecture.
7206 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
7208 (construct_save_jarl): Add e3v5 long JARL support.
7209 (v850_adjust_insn_length): New function. Adjust length of call
7210 insns when using e3v5 instructions.
7211 (v850_gen_movdi): New function: Generate instructions to move a
7213 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
7214 (CPP_SPEC): Define __v850e3v5__ as appropriate.
7215 (TARGET_USE_FPU): Enable for e3v5.
7216 (CONST_OK_FOR_W): New macro.
7217 (ADJUST_INSN_LENGTH): Define.
7218 * config/v850/v850.md (UNSPEC_LOOP): Define.
7219 (attr cpu): Add v850e3v5.
7220 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
7221 (movdi): New pattern.
7222 (movdi_internal): New pattern.
7223 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
7224 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
7225 (cstoresf4): Likewise.
7226 (cstoredf4): Likewise.
7227 (insv): New pattern.
7228 (rotlso3_a): New pattern.
7229 (rotlsi3_b): New pattern
7230 (rotlsi3_v850e3v5): New pattern.
7231 (doloop_begin): New pattern.
7232 (fix_loop_counter): New pattern.
7233 (doloop_end): New pattern.
7234 (branch_normal): Add e3v5 long branch support.
7235 (branch_invert): Likewise.
7236 (branch_z_normal): Likewise.
7237 (branch_z_invert): Likewise.
7238 (branch_nz_normal): Likewise.
7239 (branch_nz_invert): Likewise.
7240 (call_internal_short): Add e3v5 register-indirect JARL support.
7241 (call_internal_long): Likewise.
7242 (call_value_internal_short): Likewise.
7243 (call_value_internal_long): Likewise.
7244 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
7245 (mloop): New option.
7246 * config.gcc: Add support for configuring v840e3v5 target.
7247 * doc/invoke.texi: Document new v850 specific command line options.
7249 2013-01-31 Paul Koning <ni1d@arrl.net>
7253 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
7254 children if parent is a class.
7255 (prune_unused_types_prune): Don't add DW_AT_declaration.
7257 2013-01-31 Richard Biener <rguenther@suse.de>
7259 PR tree-optimization/56157
7260 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
7261 match up operand with SLP child.
7263 2013-01-31 Jason Merrill <jason@redhat.com>
7266 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
7267 parameters the first time.
7268 (gen_scheduled_generic_parms_dies): Check completeness here.
7270 2013-01-31 Richard Biener <rguenther@suse.de>
7273 * common.opt (faggressive-loop-optimizations): New flag,
7275 * doc/invoke.texi (faggressive-loop-optimizations): Document.
7276 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
7277 infer_loop_bounds_from_undefined by it.
7279 2013-01-31 Richard Biener <rguenther@suse.de>
7281 PR tree-optimization/56150
7282 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
7283 visit virtual operands.
7284 (find_uses_to_rename_bb): Likewise.
7286 2013-01-31 Richard Biener <rguenther@suse.de>
7288 PR tree-optimization/56150
7289 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
7290 mixed store non-store stmts.
7292 2013-01-30 Jakub Jelinek <jakub@redhat.com>
7295 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
7296 LIBASAN_EARLY_SPEC is defined.
7297 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
7298 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
7300 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
7303 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
7304 invalid args instead of ICEing on it.
7305 (ix86_valid_target_attribute_tree): Return error_mark_node if
7306 ix86_valid_target_attribute_inner_p failed.
7307 (ix86_valid_target_attribute_p): Return false only if
7308 ix86_valid_target_attribute_tree returned error_mark_node. Allow
7309 target("default") attribute.
7310 (sorted_attr_string): Change argument from const char * to tree,
7311 merge in all target attribute arguments rather than just one.
7312 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
7313 instead of free. Avoid using strcat.
7314 (ix86_mangle_function_version_assembler_name): Mangle
7315 target("default") as if no target attribute is present. Adjust
7316 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
7317 instead of xmalloc and XDELETEVEC instead of free.
7318 (ix86_function_versions): Don't return true if one of the decls
7319 doesn't have target attribute. If they don't and one of the decls
7320 is DECL_FUNCTION_VERSIONED, report an error. Adjust
7321 sorted_attr_string caller. Use XDELETEVEC instead of free.
7322 (ix86_supports_function_versions): Remove.
7323 (make_name): Fix up formatting.
7324 (make_dispatcher_decl): Remove resolver_name and its initialization.
7325 Avoid leaking memory.
7326 (is_function_default_version): Return true if there is
7327 target("default") attribute rather than no target attribute at all.
7328 (make_resolver_func): Avoid leaking memory.
7329 (ix86_generate_version_dispatcher_body): Likewise.
7330 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
7331 * target.def (supports_function_versions): Remove.
7332 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
7333 * doc/tm.texi: Regenerated.
7335 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
7337 PR rtl-optimization/56144
7338 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
7339 for values with side effects.
7341 2013-01-30 Richard Biener <rguenther@suse.de>
7343 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
7344 (sparseset_pop): Likewise.
7345 * cfganal.c (compute_idf): Likewise. Increase work-stack size
7346 to be able to use quick_push in the worker loop.
7348 2013-01-30 Marek Polacek <polacek@redhat.com>
7350 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
7352 2013-01-30 Richard Biener <rguenther@suse.de>
7355 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
7357 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
7359 PR tree-optimization/56064
7360 * fixed-value.c (fixed_from_double_int): New function.
7361 * fixed-value.h (fixed_from_double_int): New prototype.
7362 (const_fixed_from_double_int): New static inline function.
7363 * fold-const.c (native_interpret_fixed): New static function.
7364 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
7365 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
7366 (native_encode_fixed): New static function.
7367 (native_encode_expr) <FIXED_CST>: Use it.
7368 (native_interpret_int): Move double_int worker code to...
7369 * double-int.c (double_int::from_buffer): ...this new static method.
7370 * double-int.h (double_int::from_buffer): Prototype it.
7372 2013-01-30 Richard Biener <rguenther@suse.de>
7374 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
7375 New pointer-map and obstack.
7376 (init_alias_vars): Allocate pointer-map and obstack.
7377 (delete_points_to_sets): Free them.
7378 (find_what_var_points_to): Cache result.
7379 (find_what_p_points_to): Adjust for changed interface of
7380 find_what_var_points_to.
7381 (compute_points_to_sets): Likewise.
7382 (ipa_pta_execute): Likewise.
7384 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7386 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
7387 * configure: Regenerate.
7388 * config.in: Regenerate.
7389 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
7390 #nobits/#progbits if supported.
7392 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
7395 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
7396 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
7397 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
7399 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7401 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
7402 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7404 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7406 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
7407 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
7409 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7411 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
7413 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
7414 * config/arm/cortex-a7.md: New bypasses using
7415 arm_mac_accumulator_is_result.
7417 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7419 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
7420 (cortex_a7_neon_mla): Likewise.
7421 (cortex_a7_fpfmad): New reservation.
7422 (cortex_a7_fpmacs): Use ffmas and update required units.
7423 (cortex_a7_fpmuld): Update required units and latency.
7424 (cortex_a7_fpmacd): Likewise.
7425 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
7426 (cortex_a7_neon). Likewise.
7427 (bypass) Update participating units.
7429 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7431 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
7432 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
7434 * config/arm/vfp11.md (vfp_farith): Use ffmas.
7435 (vfp_fmul): Use ffmad.
7436 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
7437 (cortex_r4_fmacd): Use ffmad.
7438 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
7439 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
7440 (cortex_a9_fmacd): Use ffmad.
7441 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
7442 (cortex_a8_vfp_macd): Use ffmad.
7443 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
7444 (cortex_a5_fpmacd): Use ffmad.
7445 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
7446 (cortex_a15_vfp_macd): Use ffmad.
7447 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
7449 2013-01-29 Jason Merrill <jason@redhat.com>
7452 * varasm.c (default_assemble_visibility): Don't warn about
7453 visibility on artificial decls.
7455 2013-01-29 Richard Biener <rguenther@suse.de>
7457 PR tree-optimization/56113
7458 * tree-ssa-structalias.c (equiv_class_lookup): Also return
7460 (label_visit): Free duplicate bitmaps and record the leader instead.
7461 (perform_var_substitution): Adjust.
7463 2013-01-29 Richard Biener <rguenther@suse.de>
7465 PR tree-optimization/55270
7466 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
7467 the CFG, schedule loops for fixup.
7469 2013-01-29 Nick Clifton <nickc@redhat.com>
7471 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
7474 2013-01-28 Leif Ekblad <leif@rdos.net>
7476 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
7477 * config/i386/i386.h (TARGET_RDOS): New macro.
7478 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
7479 * config/i386/i386.c (ix86_option_override_internal): For 64bit
7480 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
7481 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
7482 DEFAULT_LARGE_SECTION_THRESHOLD.
7483 * config/i386/i386.md (R14_REG, R15_REG): New constants.
7484 * config/i386/rdos.h: New file.
7485 * config/i386/rdos64.h: New file.
7487 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
7490 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
7493 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7495 PR rtl-optimization/56117
7496 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
7497 call cselib_lookup_from_insn on the MEM before calling
7498 add_insn_mem_dependence.
7500 2013-01-28 Richard Biener <rguenther@suse.de>
7502 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
7503 to a stmt that didn't have one.
7504 (copy_phis_for_bb): Likewise for PHI arguments.
7505 (copy_debug_stmt): Likewise for debug stmts.
7507 2013-01-28 Richard Biener <rguenther@suse.de>
7509 PR tree-optimization/56034
7510 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
7511 (partition_builtin_p): Adjust.
7512 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
7513 it is the last partition.
7514 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
7515 up the vertex for the definition.
7516 (classify_partition): Classify whether a partition is a
7517 PKIND_REDUCTION, thus has uses outside of the loop.
7518 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
7519 Merge all PKIND_REDUCTION partitions into the last partition.
7520 (tree_loop_distribution): Seed partitions from reductions as well.
7522 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7524 PR tree-optimization/56125
7525 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
7526 pow(x,c) into sqrt(x) * powi(x, n/2) or
7527 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
7528 optimizing for size.
7529 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
7530 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
7533 PR tree-optimization/56094
7534 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
7535 to UNKNOWN_LOCATION while gimplifying expr.
7537 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
7540 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
7541 operand 0 in movabs insn template for -masm=intel asm alternative.
7542 (*movabs<mode>_2): Ditto for operand 1.
7544 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
7547 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
7550 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7552 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
7555 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7557 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
7558 Undef to avoid warning.
7560 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7562 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
7563 * configure: Regenerate.
7565 2013-01-25 Jakub Jelinek <jakub@redhat.com>
7567 PR tree-optimization/56098
7568 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
7569 for stmts with volatile ops.
7570 (cond_store_replacement): Don't optimize if assign has volatile ops.
7571 (cond_if_else_store_replacement_1): Don't optimize if either
7572 then_assign or else_assign have volatile ops.
7573 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
7576 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7578 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
7580 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7582 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
7583 missing ':' in asm example.
7585 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
7587 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
7588 entries into lane and laneq entries.
7589 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
7590 Remove AdvSIMD scalar modes.
7591 (aarch64_sq<r>dmulh_laneq<mode>): New.
7592 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
7594 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
7595 builtin implementations to relfect changes in RTL in aarch64-simd.md.
7596 * config/aarch64/iterators.md (VCOND): New.
7599 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7602 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
7603 Add NULL LIBNAME argument to existing definitions.
7604 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
7605 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
7606 * config/avr/avr.c (DEF_BUILTIN): Same.
7607 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
7608 (avr_expand_builtin): Expand to a vanilla call if a libgcc
7609 implementation is available (DECL_ASSEMBLER_NAME is set).
7610 (avr_fold_absfx): New static function.
7611 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
7612 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
7613 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
7615 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
7616 (abshk, absk, abslk, absllk): Provide as static inline functions.
7618 2013-01-25 Marek Polacek <polacek@redhat.com>
7620 PR tree-optimization/56035
7621 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
7623 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
7625 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
7626 (*movtf_internal_rex64): Add (!o,C) alternative
7627 (*movxf_internal_rex64): Ditto.
7628 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
7630 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
7632 * doc/invoke.texi: fix typo.
7633 * doc/objc.texi: fix typo.
7635 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
7637 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
7638 for the first two alternatives.
7640 2013-01-24 Diego Novillo <dnovillo@google.com>
7642 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
7643 (ggc-zone.o): Remove.
7644 * configure.ac: Remove option --with-gc.
7645 * configure: Re-generate.
7646 * doc/install.texi: Remove documentation for --with-gc.
7647 * gengtype.c (write_enum_defn): Remove. Update all users.
7648 (write_Types_process_field): Remove generation of gt_e_* argument.
7649 (output_type_enum): Remove. Update all users.
7650 (write_enum_defn): Remove. Update all users.
7651 (enum alloc_zone): Remove. Update all users.
7652 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
7653 * ggc-common.c (ggc_splay_alloc): Remove first argument.
7655 (struct ptr_data): Remove field TYPE. Update all users.
7656 (gt_pch_note_object): Remove argument TYPE. Update all users.
7657 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
7659 * ggc-none.c (ggc_alloc_typed_stat): Remove.
7660 (struct alloc_zone): Remove.
7661 (ggc_internal_alloc_zone_stat): Remove.
7662 (ggc_internal_cleared_alloc_zone_stat): Remove.
7663 * ggc-page.c (ggc_alloc_typed_stat): Remove.
7664 (ggc_pch_count_object): Remove last argument. Update all users.
7665 (ggc_pch_alloc_object): Remove last argument. Update all users.
7666 (struct alloc_zone): Remove.
7667 * ggc-zone.c: Remove.
7668 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
7669 (struct alloc_zone): Remove.
7670 (ggc_alloc_typed_stat): Remove.
7671 (ggc_alloc_typed): Remove.
7672 (ggc_splay_alloc): Remove first argument.
7673 (rtl_zone): Remove. Update all users.
7674 (tree_zone): Remove. Update all users.
7675 (tree_id_zone): Remove. Update all users.
7676 (ggc_internal_zone_alloc_stat): Remove. Update all users.
7677 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
7678 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
7679 * tree-ssanames.c: Remove references to zone allocator in comments.
7681 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
7683 * config/avr/avr.c (avr_out_fract): Make register numbers that
7684 might be outside of source operand signed.
7686 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
7688 * config/i386/constraints.md (Yf): New constraint.
7689 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
7690 of f constraint to conditionaly disable x87 register preferences.
7691 (*movdf_internal): Ditto.
7692 (*movsf_internal): Ditto.
7694 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
7697 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
7698 that have operands with impossible constraints.
7699 Add a FIXME for a speed-up opportunity.
7700 * lra-constraints.c (process_alt_operands): Verify that a class
7701 selected from constraints on asms is valid for the operand mode.
7702 (curr_insn_transform): Remove incorrect comment.
7704 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
7706 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
7707 TOC operand is a valid symbol ref in the constant pool.
7709 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7711 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
7713 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
7716 * config/avr/stdfix.h: New file.
7717 * t-avr (stdfix-gcc.h): New rule to build it.
7718 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
7720 2013-01-23 Kostya Serebryany <kcc@google.com>
7722 * config/darwin.h: remove dependency on
7723 CoreFoundation (asan on Mac OS).
7725 2013-01-23 Jakub Jelinek <jakub@redhat.com>
7728 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
7729 instead of cmpdi_operand for first comparison operand.
7730 Don't assert that comparison operands aren't both constants.
7732 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7734 * doc/install.texi (Downloading the Source): Update references to
7735 downloading separate components.
7737 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7739 * doc/extend.texi (__int128): Improve grammar.
7741 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
7744 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
7745 alternative to (o,r).
7746 (*movdi_internal_rex64): Remove (!o,n) alternative.
7747 (DImode immediate->memory splitter): Remove.
7748 (DImode immediate->memory peephole2): Remove.
7749 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
7750 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
7751 alternative to (!o,*r).
7752 (*movtf_internal_sse): New pattern.
7753 (*movxf_internal_rex64): New pattern.
7754 (*movxf_internal): Disable for TARGET_64BIT.
7755 (*movdf_internal_rex64): Remove (!o,F) alternative.
7757 2013-01-22 Jakub Jelinek <jakub@redhat.com>
7760 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
7761 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
7762 * tree-vect-loop-manip.c (find_loop_location): Also ignore
7763 stmt locations where LOCATION_LOCUS of the stmt location is
7764 UNKNOWN_LOCATION or BUILTINS_LOCATION.
7767 * config/i386/i386.md (UNSPEC_STOS): New.
7768 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
7769 *strsetqi_1): Add UNSPEC_STOS.
7771 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
7774 * doc/invoke.texi: Remove left over -Wsynth example.
7776 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7778 PR tree-optimization/56051
7779 * fold-const.c (fold_binary_loc): Don't fold
7780 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
7781 a narrowing conversion, or widening conversion from signed
7784 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7786 PR rtl-optimization/56023
7787 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
7788 dependent on debug instruction.
7790 2013-01-21 Martin Jambor <mjambor@suse.cz>
7793 * function.c (allocate_struct_function): Call
7794 invoke_set_current_function_hook earlier.
7796 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7798 * reload1.c (init_reload): Only initialize reload_obstack
7799 during the first call.
7801 2013-01-21 Marek Polacek <polacek@redhat.com>
7803 * cfgloop.c (verify_loop_structure): Fix up grammar.
7805 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
7807 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
7808 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
7810 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7813 * config/arm/marvell-pj4.md: Update copyright year.
7814 Fix up use of alu to alu_reg and simple_alu_imm.
7816 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7818 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
7820 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
7823 * lra-constraints.c (curr_insn_transform): Don't reuse original
7824 insn for secondary memory move when memory mode should be different.
7826 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7828 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
7829 atomic_storedi_1): New patterns.
7831 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7833 btver2 pipeline descriptions.
7834 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
7836 * config/i386/i386.md (btver2_decode): New type attributes.
7837 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
7839 * config/i386/btver2.md: New file describing btver2 pipelines.
7841 2013-01-19 Andrew Pinski <apinski@cavium.com>
7843 PR tree-optimization/52631
7844 * tree-ssa-sccvn (visit_use): Before looking up the original
7845 statement, try looking up the simplified expression.
7847 2013-01-19 Anthony Green <green@moxielogic.com>
7849 * config/moxie/moxie.c (moxie_expand_prologue): Set
7850 current_function_static_stack_size.
7852 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7854 PR tree-optimization/56029
7855 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
7856 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
7858 2013-01-18 Sharad Singhai <singhai@google.com>
7860 PR tree-optimization/55995
7861 * dumpfile.c (dump_loc): Print location only if available.
7862 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
7864 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
7867 * lra-constraints.c (curr_insn_transform): Reuse original insn for
7868 secondary memory move.
7869 (inherit_reload_reg): Use rclass instead of cl for
7870 check_secondary_memory_needed_p.
7872 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7875 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
7876 the case where writing real complex part of target modifies op1.
7878 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
7880 * config/aarch64/aarch64-simd.md
7881 (aarch64_vcond_internal<mode>): Handle unordered cases.
7882 * config/aarch64/iterators.md (v_cmp_result): New.
7884 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
7885 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7887 * config/arm/marvell-pj4.md: New file.
7888 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
7889 * config/arm/arm.md (generic_sched): Add marvell_pj4.
7890 (generic_vfp): Likewise.
7891 * config/arm/arm-cores.def: Add marvell-pj4.
7892 * config/arm/arm-tune.md: Regenerate.
7893 * config/arm/arm-tables.opt: Regenerate.
7894 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
7895 * doc/invoke.texi: Document marvell-pj4.
7897 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
7899 * config/aarch64/arm_neon.h: Map scalar types to standard types.
7901 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7906 * var-tracking.c (negative_power_of_two_p): New.
7907 (global_get_addr_cache, local_get_addr_cache): New.
7908 (get_addr_from_global_cache, get_addr_from_local_cache): New.
7909 (vt_canonicalize_addr): Rewrite using the above. Adjust the
7911 (vt_stack_offset_p): Remove.
7912 (vt_canon_true_dep): Always canonicalize loc's address.
7913 (clobber_overlapping_mems): Make sure we have a MEM.
7914 (local_get_addr_clear_given_value): New.
7915 (val_reset): Clear local cached entries.
7916 (compute_bb_dataflow): Create and release the local cache.
7917 Disable duplicate MEMs clobbering.
7918 (emit_notes_in_bb): Clobber MEMs likewise.
7919 (vt_emit_notes): Create and release the local cache.
7920 (vt_initialize, vt_finalize): Create and release the global
7921 cache, respectively.
7922 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
7924 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7927 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
7928 not found in the symtab.
7930 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7933 PR rtl-optimization/55547
7934 PR rtl-optimization/53827
7937 * alias.c (offset_overlap_p): New, factored out of...
7938 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
7939 the conservative special case for symbolic constants. Don't
7940 adjust zero sizes on alignment.
7942 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
7944 PR rtl-optimization/52573
7945 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
7946 REG_UNUSED for the same register.
7948 2013-01-17 Richard Biener <rguenther@suse.de>
7949 Marek Polacek <polacek@redhat.com>
7951 PR rtl-optimization/55833
7952 * loop-unswitch.c (unswitch_loops): Move loop verification...
7953 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
7954 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
7955 Set it to true when we're removing a loop from hierarchy tree in
7956 an irreducible region.
7957 (fix_bb_placements): Adjust caller.
7958 (fix_loop_placements): Likewise.
7960 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
7962 * config/avr/builtins.def (DEF_BUILTIN): Factor out
7963 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
7964 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
7965 Remove ID. Adjust comments.
7966 * config/avr/avr-c.c (avr_builtin_name): Remove.
7967 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
7968 * config/avr/avr.c (avr_tolower): New static function.
7969 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
7970 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
7971 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
7974 2013-01-17 Jan Hubicka <jh@suse.cz>
7976 PR tree-optimization/55273
7977 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
7979 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
7982 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
7983 store through atomic_store<mode>_1.
7984 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
7986 2013-01-17 Martin Jambor <mjambor@suse.cz>
7988 PR tree-optimizations/55264
7989 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
7990 for virtual methods.
7991 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
7992 virtual methods before inlining is over.
7993 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
7995 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
7998 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
8000 PR rtl-optimization/56005
8001 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
8002 pending reads for prefetch.
8004 2013-01-16 Ian Bolton <ian.bolton@arm.com>
8006 * config/aarch64/aarch64.md
8007 (*cstoresi_neg_uxtw): New pattern.
8008 (*cmovsi_insn_uxtw): New pattern.
8009 (*<optab>si3_uxtw): New pattern.
8010 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
8011 (*<optab>si3_insn_uxtw): New pattern.
8012 (*bswapsi2_uxtw): New pattern.
8014 2013-01-16 Richard Biener <rguenther@suse.de>
8016 * tree-inline.c (tree_function_versioning): Remove set but
8017 never used variable.
8019 2013-01-16 Richard Biener <rguenther@suse.de>
8021 PR tree-optimization/55964
8022 * tree-flow.h (rename_variables_in_loop): Remove.
8023 (rename_variables_in_bb): Likewise.
8024 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
8025 (copy_loop_before): Adjust and delete update-ssa status.
8026 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8027 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
8028 (rename_variables_in_loop): Remove.
8029 (slpeel_update_phis_for_duplicate_loop): Likewise.
8030 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
8031 use available cfg machinery instead of duplicating it.
8032 Update PHI nodes and perform poor-mans SSA update here.
8033 (slpeel_tree_peel_loop_to_edge): Adjust.
8035 2013-01-16 Richard Biener <rguenther@suse.de>
8037 PR tree-optimization/54767
8038 PR tree-optimization/53465
8039 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
8040 (vrp_visit_phi_node): For PHI arguments coming via backedges
8041 drop all symbolical range information.
8042 (execute_vrp): Compute backedges.
8044 2013-01-16 Richard Biener <rguenther@suse.de>
8046 * doc/install.texi: Update CLooG and ISL requirements to
8049 2013-01-16 Christian Bruel <christian.bruel@st.com>
8052 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
8053 (broken_move): Handle UNSPECV_SP_SWITCH_B.
8054 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
8056 2013-01-16 DJ Delorie <dj@redhat.com>
8058 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8059 (UNSPECV_SP_SWITCH_E): New.
8060 (sp_switch_1): Change to an unspec.
8061 (sp_switch_2): Change to an unspec. Don't use post-inc when we
8064 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
8066 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
8067 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
8068 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
8069 (expand_mem_thread_fence): Ditto.
8070 (expand_mem_signal_fence): Ditto.
8071 (expand_atomic_load): Ditto.
8072 (expand_atomic_store): Ditto.
8074 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
8076 PR rtl-optimization/55547
8077 PR rtl-optimization/53827
8080 * alias.c (memrefs_conflict_p): Set sizes to negative after
8083 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8086 * function.c (thread_prologue_and_epilogue_insns): Always
8087 add crtl->drap_reg to set_up_by_prologue.set, even if
8088 stack_realign_drap is false.
8090 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8092 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
8093 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
8094 *call): Fix indention.
8096 2013-01-15 Tom de Vries <tom@codesourcery.com>
8099 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
8102 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
8104 PR rtl-optimization/55153
8105 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
8107 2013-01-15 Martin Jambor <mjambor@suse.cz>
8109 PR tree-optimization/55920
8110 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
8111 accesses as grp_to_be_debug_replaced.
8113 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8115 PR tree-optimization/55920
8116 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
8117 there is non-useless type conversion needed from debug rhs to lhs,
8118 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
8120 2013-01-15 Joseph Myers <joseph@codesourcery.com>
8121 Mikael Pettersson <mikpe@it.uu.se>
8124 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
8126 (ASM_OUTPUT_CASE_LABEL): Remove.
8127 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
8128 * final.c (shorten_branches): Update alignment of labels before
8129 jump tables if CASE_VECTOR_SHORTEN_MODE.
8131 2013-01-15 Richard Biener <rguenther@suse.de>
8134 * system.h: Do not include gmp.h for building host tools.
8136 2013-01-15 Richard Biener <rguenther@suse.de>
8139 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
8140 account for bitpos when computing alignment.
8142 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
8144 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
8145 (ix86_target_macros_internal): Likewise.
8147 * config/i386/i386.c (m_CORE2I7): Removed.
8148 (m_CORE_HASWELL): New macro.
8149 (m_CORE_ALL): Likewise.
8150 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
8151 (initial_ix86_arch_features): Likewise.
8152 (processor_target_table): Initializations for Core avx2.
8153 (cpu_names): New names "core-avx2".
8154 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
8155 PROCESSOR_CORE_HASWELL.
8156 (ix86_issue_rate): New case.
8157 (ia32_multipass_dfa_lookahead): Likewise.
8158 (ix86_sched_init_global): Likewise.
8160 * config/i386/i386.h (TARGET_HASWELL): New macro.
8161 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
8162 (processor_type): New PROCESSOR_HASWELL.
8164 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8166 PR tree-optimization/55955
8167 * tree-vect-loop.c (vectorizable_reduction): Give up early on
8168 *SHIFT_EXPR and *ROTATE_EXPR codes.
8170 PR tree-optimization/48766
8171 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
8172 -ftrapv disable -fwrapv.
8174 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8177 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
8178 etc. to 1 and not to __flash.
8179 Use LL suffix for __INT24_MAX__ with -mint8.
8180 Use ULL suffix for __UINT24_MAX__ with -mint8.
8182 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8184 * config/avr/avr-arch.h
8185 (struct base_arch_s): Use typedef avr_arch_t instead.
8186 (struct arch_info_s): Use typedef avr_arch_info_t instead.
8187 (struct mcu_type_s): Use typedef avr_mcu_t instead.
8188 * config/avr/avr.c: Same.
8189 * config/avr/avr-devices.c: Same.
8190 * config/avr/driver-avr.c: Same.
8191 * config/avr/gen-avr-mmcu-texi.c: Same.
8192 * config/avr/avr-mcus.def: Adjust comment.
8194 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
8196 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
8197 * config/aarch64/iterators.md (VALLDI): New.
8199 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
8200 Andi Kleen <ak@linux.intel.com>
8203 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
8204 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
8207 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8209 * config/avr/avr-stdint.h: Remove trailing blanks.
8210 * config/avr/avr-log.h: Same.
8211 * config/avr/avr-arch.h: Same.
8212 * config/avr/avr-devices.c: Same.
8213 * config/avr/avr-dimode.md: Same.
8214 * config/avr/predicates.md: Same.
8215 * config/avr/avr-c.c: Same. And fix typo.
8217 * config/avr/avr-protos.h: Same. And:
8218 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
8219 (init_cumulative_args): Rename to avr_init_cumulative_args.
8220 (expand_prologue): Rename to avr_expand_prologue.
8221 (expand_epilogue): Rename to avr_expand_epilogue.
8222 (adjust_insn_length): Rename to avr_adjust_insn_length.
8223 (notice_update_cc): Rename to avr_notice_update_cc.
8224 (final_prescan_insn): Rename to avr_final_prescan_insn.
8225 * config/avr/avr.c: Same.
8226 * config/avr/avr.h: Same.
8227 * config/avr/avr.md: Remove trailing blanks.
8228 (prologue): Use avr_expand_prologue.
8229 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
8231 2013-01-14 Richard Biener <rguenther@suse.de>
8233 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
8234 verify_location, collect_subblocks): New functions.
8235 (verify_gimple_in_cfg): Verify that locations only reference
8236 BLOCKs in the functions BLOCK tree.
8238 2013-01-14 Richard Biener <rguenther@suse.de>
8240 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
8242 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
8244 (insert_out_of_ssa_copy_on_edge): Likewise.
8245 (rewrite_close_phi_out_of_ssa): Likewise.
8246 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
8248 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
8249 propagated constants.
8250 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
8253 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8255 * config/avr/avr-modes.def: Add GPL copyright notice.
8257 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
8259 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
8260 MEMMODEL_MASK to determine memory model.
8261 (atomic_store<mode>): Ditto from operands[2].
8262 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
8264 2013-01-13 Jakub Jelinek <jakub@redhat.com>
8267 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
8268 (fold_gimple_assign): Don't call unshare_expr here.
8269 (fold_ctor_reference): Call unshare_expr.
8271 2013-01-13 Terry Guo <terry.guo@arm.com>
8273 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
8274 * doc/fragments.texi: Document MULTILIB_REUSE.
8275 * gcc.c (multilib_reuse): New internal spec.
8276 (set_multilib_dir): Also search multilib from multilib_reuse.
8277 * genmultilib (tmpmultilib3): Refactor code.
8278 (tmpmultilib4): Ditto.
8279 (multilib_reuse): New multilib argument.
8281 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
8283 * Makefile.in: Update copyright.
8285 2013-01-12 Tom de Vries <tom@codesourcery.com>
8288 * calls.c (expand_call): Check if arg_nr is valid.
8290 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8292 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
8293 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
8294 documentation. Add missing '__' in front of
8295 __builtin_ia32_packssdw256.
8297 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8300 * config/s390/s390.c (s390_preferred_reload_class): Do not return
8301 NO_REGS for larl operands.
8302 (s390_reload_larl_operand): Use s390_load_address instead of
8305 2013-01-11 Richard Biener <rguenther@suse.de>
8307 * tree-cfg.c (verify_node_sharing_1): Split out from ...
8308 (verify_node_sharing): ... here.
8309 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
8311 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
8313 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
8314 Substitute TREECHECKING.
8315 * configure: Regenerate.
8316 * Makefile.in (TREECHECKING): New.
8318 2013-01-11 Richard Guenther <rguenther@suse.de>
8320 PR tree-optimization/44061
8321 * tree-vrp.c (extract_range_basic): Compute zero as
8322 value-range for __builtin_constant_p of function parameters.
8324 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
8326 Update copyright years.
8328 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
8330 PR rtl-optimization/55672
8331 * lra-eliminations.c (mark_not_eliminable): Permit addition with
8332 const to be eliminable.
8334 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
8336 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
8337 * configure: Regenerate.
8339 2013-01-10 Richard Biener <rguenther@suse.de>
8341 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
8343 2013-01-10 Richard Biener <rguenther@suse.de>
8346 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
8347 locations for virtual PHI arguments.
8348 (rewrite_update_phi_arguments): Likewise.
8350 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
8352 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
8355 2013-01-10 Jakub Jelinek <jakub@redhat.com>
8357 PR tree-optimization/55921
8358 * tree-complex.c (expand_complex_asm): New function.
8359 (expand_complex_operations_1): Call it for GIMPLE_ASM.
8361 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8364 * config/s390/s390.c (s390_symref_operand_p)
8365 (s390_loadrelative_operand_p): Merge the two functions.
8366 (s390_check_qrst_address, print_operand_address): Add parameters
8367 to s390_loadrelative_operand_p invokation.
8368 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
8369 (s390_reload_larl_operand, s390_secondary_reload): Use
8370 s390_loadrelative_operand_p instead of s390_symref_operand_p.
8371 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
8373 2013-01-09 Mike Stump <mikestump@comcast.net>
8375 * dse.c (record_store): Remove unnecessary assert.
8377 2013-01-09 Jan Hubicka <jh@suse.cz>
8379 PR tree-optimization/55569
8380 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
8381 * cfgloop.h (scale_loop_profile): Likewise.
8383 2013-01-09 Jan Hubicka <jh@suse.cz>
8386 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
8388 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
8390 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
8393 * expr.h (maybe_emit_group_store): Declare.
8394 * expr.c (maybe_emit_group_store): New function.
8395 * builtins.c (expand_builtin_int_roundingfn): Call it.
8396 (expand_builtin_int_roundingfn_2): Likewise.
8398 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
8400 PR rtl-optimization/55829
8401 * lra-constraints.c (match_reload): Add code for absent output.
8402 (curr_insn_transform): Add code for reloads of matched inputs
8405 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
8407 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
8408 attribute of movddup insn to DF.
8409 (*vec_interleave_lowv2df): Ditto.
8410 (vec_dupv2df): Ditto.
8412 2013-01-09 Jan Hubicka <jh@suse.cz>
8414 PR tree-optimiation/55875
8415 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
8416 EVERY_ITERATION parameter.
8417 (number_of_iterations_exit): Check if exit is executed every iteration.
8418 (idx_infer_loop_bounds): Similarly here.
8419 (n_of_executions_at_most): Simplify
8420 to only test for cases where statement is dominated by the
8421 particular bound; handle correctly the "postdominance" test.
8422 (scev_probably_wraps_p): Use max loop iterations info
8423 as a global bound first.
8425 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
8426 Nick Clifton <nickc@redhat.com>
8428 * config/v850/v850.md (cbranchsf4): New pattern.
8429 (cstoresf4): New pattern.
8430 (cbranchdf4): New pattern.
8431 (cstoredf4): New pattern.
8432 (movsicc): Disallow floating point comparisons.
8433 (cmpsf_le_insn): Fix order of operators.
8434 (cmpsf_lt_insn): Likewise.
8435 (cmpsf_eq_insn): Likewise.
8436 (cmpdf_le_insn): Likewise.
8437 (cmpdf_lt_insn): Likewise.
8438 (cmpdf_eq_insn): Likewise.
8439 (cmpsf_ge_insn): Use LE comparison.
8440 (cmpdf_ge_insn): Likewise.
8441 (cmpsf_gt_insn): Use LT comparison.
8442 (cmpdf_gt_insn): Likewise.
8443 (cmpsf_ne_insn): Delete pattern.
8444 (cmpdf_ne_insn): Delete pattern.
8445 * config/v850/v850.c (v850_gen_float_compare): Use
8446 gen_cmpdf_eq_insn for NE comparison.
8447 (v850_float_z_comparison_operator)
8448 (v850_float_nz_comparison_operator): Move from here ...
8449 * config/v850/predicates.md: ... to here. Move GT and GE
8450 comparisons into v850_float_z_comparison_operator.
8451 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
8453 (v850_float_nz_comparison_operator): Likewise.
8455 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8457 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
8458 with calls to gen_insvsi/gen_insvdi.
8460 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8462 * config/i386/i386.c (initial_ix86_tune_features): Set up
8463 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
8465 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
8466 Jakub Jelinek <jakub@redhat.com>
8468 PR tree-optimization/48189
8469 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
8470 If nitercst is 0, don't predict the exit edge.
8472 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8474 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
8475 in asm_fprintf with reg_names.
8476 (aarch64_print_operand_address): Likewise.
8477 (aarch64_return_addr): Likewise.
8478 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
8480 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8482 * config/pa/pa.h (VAL_U6_BITS_P): Define.
8483 (INT_U6_BITS): Likewise.
8484 * config/pa/predicates.md (uint6_operand): New predicate.
8485 (shift5_operand, shift6_operand): Likewise.
8486 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
8488 (lshrdi3): Use shift6_operand.
8489 (shrpsi4, shrpdi4): New insn patterns.
8490 (extzv): Delete expander.
8491 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
8492 predicates in unamed zero extract patterns. Tighten common constraint.
8493 (extv): Delete expander.
8494 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
8495 predicates in unamed sign extract patterns. Tighten common constraint.
8496 (insv): Delete expander.
8497 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
8498 predicates in unamed insert patterns. Tighten common constraint.
8499 Change uint32_operand predicate to uint6_operand predicate in unamed
8500 DImode pattern to insert constant values of type 1...1xxxx.
8502 2013-01-04 Jan Hubicka <jh@suse.cz>
8504 PR tree-optimization/55823
8505 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
8508 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8509 Uros Bizjak <ubizjak@gmail.com>
8511 PR rtl-optimization/55845
8512 * df-problems.c (can_move_insns_across): Stop scanning at
8513 volatile_insn_p source instruction or give up if
8514 across_from .. across_to range contains any volatile_insn_p
8517 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8519 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
8520 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
8522 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
8523 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
8525 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8528 * asan.c (asan_clear_shadow): New function.
8529 (asan_emit_stack_protection): Use it.
8531 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8533 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
8534 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
8535 with tab instead of space.
8537 2013-01-08 Nick Clifton <nickc@redhat.com>
8539 * config/rl78/rl78.c (rl78_expand_prologue): Always select
8540 register bank 0 at the start of an interrupt handler.
8541 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
8544 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8546 * config/aarch64/aarch64-simd.md
8547 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
8548 (aarch64_simd_bsl): Likewise.
8549 (aarch64_vcond_internal<mode>): Likewise.
8550 (vcond<mode><mode>): Likewise.
8551 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
8552 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
8554 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8556 * config/aarch64/aarch64-builtins.c
8557 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
8559 2013-01-08 Martin Jambor <mjambor@suse.cz>
8562 * tree-sra.c (analyze_access_subtree): Return true also after
8563 potentially creating a debug-only replacement.
8565 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8568 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
8570 PR tree-optimization/54120
8571 * tree-vrp.c (range_fits_type_p): Don't allow
8572 src_precision < precision from signed vr to unsigned_p
8573 if vr->min or vr->max is negative.
8574 (simplify_float_conversion_using_ranges): Test can_float_p
8575 against CODE_FOR_nothing.
8577 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8578 Richard Biener <rguenther@suse.de>
8581 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
8582 types instead of just INTEGER_TYPE types.
8584 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
8586 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
8589 2013-01-07 Steve Ellcey <sellcey@mips.com>
8592 * config/mips/mips.opt: Change mad to mmad to match documentation.
8594 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8597 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
8600 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8603 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
8604 (avr_addrspace_t): Add .section_name field.
8605 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
8607 (avr_addrspace): Same. Initialize .section_name. Remove last
8608 NULL entry. Put __memx into .progmemx.data.
8609 (progmem_section_prefix): Remove.
8610 (avr_asm_init_sections): No need to initialize progmem_section.
8611 (avr_asm_named_section): Use avr_addrspace[].section_name to get
8612 section name prefix.
8613 (avr_asm_select_section): Ditto. And use get_unnamed_section to
8614 retrieve the progmem section.
8615 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
8616 boundary to run over avr_addrspace[].
8617 (avr_register_target_pragmas): Ditto.
8619 2013-01-06 Jakub Jelinek <jakub@redhat.com>
8621 * varasm.c (output_constant_def_contents): For asan_protect_global
8622 protected strings, adjust DECL_ALIGN if needed, before testing for
8624 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
8625 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
8627 (output_object_block): For asan protected decls, emit asan padding
8628 after their contents.
8629 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
8630 (asan_finish_file): Test it here instead.
8632 2013-01-07 Nick Clifton <nickc@redhat.com>
8633 Matthias Klose <doko@debian.org>
8634 Doug Kwan <dougkwan@google.com>
8635 H.J. Lu <hongjiu.lu@intel.com>
8638 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
8640 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
8642 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
8644 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
8646 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
8648 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8651 * doc/install.texi (Cross-Compiler-Specific Options): Document
8654 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
8656 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
8657 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
8658 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
8659 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
8660 vqmovun_high_s64): Fix source operand number and update copyright.
8662 2013-01-07 Richard Biener <rguenther@suse.de>
8665 * gimple.h (gimple_call_builtin_p): New overload.
8666 * gimple.c (validate_call): New function.
8667 (gimple_call_builtin_p): Likewise.
8668 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8669 Use gimple_call_builtin_p.
8670 (find_func_clobbers): Likewise.
8671 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
8672 (strlen_optimize_stmt): Likewise.
8674 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8676 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
8677 (vld1q_dup_*): Likewise.
8679 (vld1q_*): Likewise.
8680 (vld1_lane_*): Likewise.
8681 (vld1q_lane_*): Likewise.
8683 2013-01-07 Richard Biener <rguenther@suse.de>
8685 * lto-streamer.h (LTO_minor_version): Bump to 2.
8687 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8689 * config/aarch64/aarch64-protos.h
8690 (aarch64_const_double_zero_rtx_p): Rename to...
8691 (aarch64_float_const_zero_rtx_p): ...this.
8692 (aarch64_float_const_representable_p): New.
8693 (aarch64_output_simd_mov_immediate): Likewise.
8694 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
8695 move immediate case.
8696 * config/aarch64/aarch64.c
8697 (aarch64_const_double_zero_rtx_p): Rename to...
8698 (aarch64_float_const_zero_rtx_p): ...this.
8699 (aarch64_print_operand): Allow printing of new constants.
8700 (aarch64_valid_floating_const): New.
8701 (aarch64_legitimate_constant_p): Check for valid floating-point
8703 (aarch64_simd_valid_immediate): Likewise.
8704 (aarch64_vect_float_const_representable_p): New.
8705 (aarch64_float_const_representable_p): Likewise.
8706 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
8707 (aarch64_output_simd_mov_immediate): New.
8708 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
8709 (*movdf_aarch64): Likewise.
8710 * config/aarch64/constraints.md (Ufc): New.
8711 (Y): call aarch64_float_const_zero_rtx.
8712 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
8714 2013-01-07 Richard Biener <rguenther@suse.de>
8716 PR tree-optimization/55888
8717 PR tree-optimization/55862
8718 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
8719 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
8720 not if it is contained therein.
8722 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8724 * config/avr/t-avr: Typo.
8726 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8729 * config/avr/t-avr: Don't automatically rebuild
8730 $(srcdir)/config/avr/t-multilib
8731 $(srcdir)/config/avr/avr-tables.opt
8732 $(srcdir)/doc/avr-mmcu.texi
8733 (avr-mcus): New phony target to build them on request.
8734 (s-avr-mlib, s-avr-mmcu-texi): Remove.
8735 * avr/avr-mcus.def: Adjust comments.
8737 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
8739 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
8741 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8743 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
8745 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8747 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
8749 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
8751 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
8752 to generate profiling.
8753 * config/rs6000/aix64.h (LIB_SPEC): Same.
8755 2013-01-04 Andrew Pinski <apinski@cavium.com>
8757 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
8759 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8761 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
8763 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
8765 (ix86_expand_move): Ditto.
8766 (ix86_zero_extend_to_Pmode): Ditto.
8767 (ix86_expand_call): Ditto.
8768 (ix86_expand_special_args_builtin): Ditto.
8769 (ix86_expand_builtin): Ditto.
8771 2013-01-04 Richard Biener <rguenther@suse.de>
8773 PR tree-optimization/55862
8774 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
8775 translating them through PHI nodes.
8777 2013-01-04 Martin Jambor <mjambor@suse.cz>
8779 PR tree-optimization/55755
8780 * tree-sra.c (sra_modify_assign): Do not check that an access has no
8781 children when trying to avoid producing a VIEW_CONVERT_EXPR.
8783 2013-01-04 Marek Polacek <polacek@redhat.com>
8786 * opts.c (default_options_optimization): Clarify error message.
8788 2013-01-04 Richard Biener <rguenther@suse.de>
8791 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
8794 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8797 * config/pa/pa.md (movsi): Revert previous change.
8798 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
8801 2013-01-03 Richard Henderson <rth@redhat.com>
8803 * config/i386/i386.c (ix86_expand_move): Always assign to op1
8804 after eliminating TLS symbols.
8806 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
8809 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
8810 * graphite-poly.c (debug_gmp_value): Likewise.
8812 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
8815 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
8816 selected code model, define __code_mode_small__, __code_model_medium__,
8817 __code_model_large__, __code_model_32__ or __code_model_kernel__.
8818 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
8819 xchg temporary register with %k. Declare temporary register as
8821 [__x86_64__]: For medium and large code models, preserve %rbx register.
8823 2013-01-03 Richard Biener <rguenther@suse.de>
8825 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
8826 (dump_subscript): Adjust.
8827 (finalize_ddr_dependent): Do not dump redundant info.
8828 (analyze_siv_subscript): Adjust.
8829 (subscript_dependence_tester): Likewise.
8830 (compute_affine_dependence): Likewise.
8832 2013-01-03 Richard Biener <rguenther@suse.de>
8835 2013-01-03 Richard Biener <rguenther@suse.de>
8837 PR tree-optimization/55857
8838 * tree-vect-stmts.c (vectorizable_load): Do not setup
8839 re-alignment for invariant loads.
8841 2013-01-02 Richard Biener <rguenther@suse.de>
8843 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8844 invariant load do not generate a vector load from the scalar location.
8846 2013-01-03 Richard Biener <rguenther@suse.de>
8848 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
8849 for not vectorizing.
8850 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
8851 not build INDIRECT_REFs, call get_name once only.
8852 (vect_create_data_ref_ptr): Likewise. Dump base object kind
8853 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
8855 2013-01-03 Richard Biener <rguenther@suse.de>
8857 PR tree-optimization/55857
8858 * tree-vect-stmts.c (vectorizable_load): Do not setup
8859 re-alignment for invariant loads.
8861 2013-01-03 Richard Biener <rguenther@suse.de>
8864 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
8865 prefer a built-in decl.
8867 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8869 * gcc.c (process_command): Update copyright notice dates.
8870 * gcov.c (print_version): Likewise.
8871 * gcov-dump.c (print_version): Likewise.
8873 PR rtl-optimization/55838
8874 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
8875 iv0.step, iv1.step and step.
8877 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8878 Marc Glisse <marc.glisse@inria.fr>
8880 PR tree-optimization/55832
8881 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
8882 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
8883 integer_{one,zero}_node.
8885 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8888 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
8889 * var-tracking.c (reverse_op): Don't add reverse ops to
8890 VALUEs that have already
8891 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8893 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
8895 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
8897 2013-01-02 Teresa Johnson <tejohnson@google.com>
8899 * dumpfile.c (dump_loc): Print filename with location.
8900 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
8901 new location_t parameter to emit complete unroll message with
8903 (canonicalize_loop_induction_variables): Compute loops location
8904 and pass to try_unroll_loop_completely.
8905 * loop-unroll.c (report_unroll_peel): New function.
8906 (peel_loops_completely): Use new dump format with location
8907 for main dumpfile message, and invoke report_unroll_peel on success.
8908 (decide_unrolling_and_peeling): Ditto.
8909 (decide_peel_once_rolling): Remove old dumpfile message subsumed
8910 by report_unroll_peel.
8911 (decide_peel_completely): Ditto.
8912 (decide_unroll_constant_iterations): Ditto.
8913 (decide_unroll_runtime_iterations): Ditto.
8914 (decide_peel_simple): Ditto.
8915 (decide_unroll_stupid): Ditto.
8916 * cfgloop.c (get_loop_location): New function.
8917 * cfgloop.h (get_loop_location): Declare.
8919 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8921 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
8924 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8927 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
8928 BLKmode objects when EXPAND_MEMORY is specified.
8930 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8932 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
8934 (fold_builtin_cpu): Do not share cpu model decls across statements.
8936 2013-01-02 Jason Merrill <jason@redhat.com>
8939 * tree.c (build_array_type_1): Revert earlier change.
8941 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
8943 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
8945 * config/aarch64/aarch64-tune.md: Re-generate.
8947 2013-01-02 Richard Biener <rguenther@suse.de>
8949 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8950 invariant load do not generate a vector load from the scalar location.
8952 2013-01-02 Richard Biener <rguenther@suse.de>
8955 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
8956 * configure: Regenerate.
8958 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8960 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
8961 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
8962 (expand_builtin_int_roundingfn_2): Keep the original target around
8963 for the fallback case.
8965 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8967 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
8968 to be clear for sign changes.
8970 2013-01-01 Jan Hubicka <jh@suse.cz>
8972 * ipa-inline-analysis.c: Fix formatting.
8974 2013-01-01 Jakub Jelinek <jakub@redhat.com>
8976 PR tree-optimization/55831
8977 * tree-vect-loop.c (get_initial_def_for_induction): Use
8978 gsi_after_labels instead of gsi_start_bb.
8980 Copyright (C) 2013 Free Software Foundation, Inc.
8982 Copying and distribution of this file, with or without modification,
8983 are permitted in any medium without royalty provided the copyright
8984 notice and this notice are preserved.