1 2013-05-02 Richard Biener <rguenther@suse.de>
3 * tree-scalar-evolution.c (scev_info_hasher): Remove.
4 (struct instantiate_cache_entry): New type.
5 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6 (struct instantiate_cache_type): New type.
7 (set_instantiated_value, get_instantiated_value): Remove.
8 (get_instantiated_value_entry): New function.
9 (instantiate_scev_name): Use the new cache and adjust.
10 (instantiate_scev_poly): Adjust.
11 (instantiate_scev_binary): Likewise.
12 (instantiate_array_ref): Likewise.
13 (instantiate_scev_convert): Likewise.
14 (instantiate_scev_not): Likewise.
15 (instantiate_scev_3): Likewise.
16 (instantiate_scev_2): Likewise.
17 (instantiate_scev_r): Likewise.
18 (instantiate_scev): Likewise.
19 (resolve_mixers): Likewise.
21 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
24 * lra-constraints.c (best_small_class_operands_num): Remove.
25 (process_alt_operands): Remove small_class_operands_num. Take
26 small classes operands into losers and only if the operand is not
27 matched. Modify debugging output.
28 (curr_insn_transform): Remove best_small_class_operands_num.
31 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
33 * config/aarch64/aarch64-builtins.c
34 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
35 * config/aarch64/aarch64-simd-builtins.def
36 (reduc_splus_): Add new modes.
38 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
39 (reduc_uplus_v4sf): Likewise.
40 (reduc_splus_v4sf): Likewise.
41 (aarch64_addv<mode>): Likewise.
42 (reduc_uplus_<mode>): Likewise.
43 (reduc_splus_<mode>): Likewise.
44 (aarch64_addvv2di): Likewise.
45 (reduc_uplus_v2di): Likewise.
46 (reduc_splus_v2di): Likewise.
47 (aarch64_addvv2si): Likewise.
48 (reduc_uplus_v2si): Likewise.
49 (reduc_splus_v2si): Likewise.
50 (reduc_<sur>plus_<mode>): New.
51 (reduc_<sur>plus_v2di): Likewise.
52 (reduc_<sur>plus_v2si): Likewise.
53 (reduc_<sur>plus_v4sf): Likewise.
54 (aarch64_addpv4sf): Likewise.
55 * config/aarch64/arm_neon.h
56 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
57 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
58 add UNSPEC_SADDV, UNSPEC_UADDV.
60 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
62 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
64 * config/aarch64/arm_neon.h
65 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
67 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
69 * config/aarch64/aarch64-builtins
70 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
72 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
74 * config/aarch64/aarch64-simd-builtins.def
76 (reduc_smin_): Likewise.
77 (reduc_umax_): Likewise.
78 (reduc_umin_): Likewise.
79 (reduc_smax_nan_): Likewise.
80 (reduc_smin_nan_): Likewise.
83 (smax): Update for V2SF, V4SF and V2DF modes.
87 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
88 (<su><maxmin><mode>3): ...This, refactor.
89 (s<maxmin><mode>3): New.
90 (<maxmin_uns><mode>3): Likewise.
91 (reduc_<maxmin_uns>_<mode>): Refactor.
92 (reduc_<maxmin_uns>_v4sf): Likewise.
93 (reduc_<maxmin_uns>_v2si): Likewise.
94 (aarch64_<fmaxmin><mode>: Remove.
95 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
97 (vmin<q>_f<32,64>): Likewise.
98 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
100 (su): Add mappings for smax, smin, umax, umin.
102 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
103 (FMAXMIN): Rename as...
104 (FMAXMIN_UNS): ...This.
106 (fmaxminv): Likewise.
109 (maxmin_uns_op): Likewise.
111 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
113 * config/aarch64/arm_neon.h
114 (vac<ge, gt><sd>_f<32, 64>): Rename to...
115 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
116 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
118 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
120 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
121 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
123 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
125 * config/aarch64/aarch64-simd.md
126 (vcond<mode>_internal): Handle special cases for constant masks.
127 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
128 (vcondu<mode><mode>): Likewise.
129 (vcond<v_cmp_result><mode>): New.
131 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
133 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
134 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
135 * config/aarch64/aarch64-simd-builtins.def
136 (cmeq): Update to BUILTIN_VALLDI.
141 * config/aarch64/arm_neon.h
142 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
143 to builtins or C as appropriate.
145 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
147 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
151 * config/aarch64/aarch64-simd.md
153 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
154 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
155 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
156 (cstore<mode>_neg): ...This.
157 * config/aarch64/iterators.md
159 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
161 (UCOMPARISONS): Likewise.
162 (optab): Add missing comparisons.
170 (V_cmp_result): Add DF, SF modes.
171 (v_cmp_result): Likewise.
174 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
176 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
178 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
179 define_insn to define_insn_and_split.
180 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
181 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
182 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
183 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
184 (thumb2_negscc): Likewise.
186 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
188 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
190 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
192 * config/arm/thumb2.md: Remove trailing whitespaces.
194 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
196 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
197 Use gen_int_mode rather than GEN_INT.
199 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
201 * value-prof.c (stream_in_histogram_value): Remove the strayed
204 2013-04-30 Richard Biener <rguenther@suse.de>
207 * cfghooks.c (split_edge): Properly check for the loop
210 2013-04-30 Richard Biener <rguenther@suse.de>
213 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
215 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
217 PR rtl-optimization/56957
218 PR rtl-optimization/57105
220 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
221 variable. Use just INSN_UID for determining whether an insn
222 should be only disconnected from the insn stream.
223 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
225 2013-04-30 Jakub Jelinek <jakub@redhat.com>
227 PR tree-optimization/57104
228 * tsan.c (instrument_expr): Don't instrument accesses to
229 DECL_HARD_REGISTER VAR_DECLs.
231 2013-04-30 Richard Biener <rguenther@suse.de>
233 * function.h (loops_for_fn): New inline function.
234 (set_loops_for_fn): Likewise.
235 * cfgloop.h (place_new_loop): Add struct function parameter.
236 (get_loop): Likewise.
237 (get_loops): Likewise.
238 (number_of_loops): Likewise.
240 (fel_init): Likewise.
241 * cfg.c (get_loop_copy): Adjust.
242 * cfgloop.c (flow_loops_dump): Likewise.
243 (record_loop_exits): Likewise.
244 (verify_loop_structure): Likewise.
245 * cfgloopanal.c (mark_irreducible_loops): Likewise.
246 (estimate_reg_pressure_cost): Likewise.
247 (mark_loop_exit_edges): Likewise.
248 * cfgloopmanip.c (place_new_loop): Likewise.
249 (add_loop): Likewise.
250 (duplicate_loop): Likewise.
251 * graph.c (draw_cfg_nodes): Likewise.
252 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
253 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
254 (extract_affine_chrec): Likewise.
255 (build_scop_iteration_domain): Likewise.
256 * graphite.c (graphite_initialize): Likewise.
257 * ira-build.c (create_loop_tree_nodes): Likewise.
258 (more_one_region_p): Likewise.
259 (rebuild_regno_allocno_maps): Likewise.
260 (mark_loops_for_removal): Likewise.
261 (mark_all_loops_for_removal): Likewise.
262 (remove_unnecessary_regions): Likewise.
263 (ira_build): Likewise.
264 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
265 * loop-init.c (fix_loop_structure): Likewise.
266 (gate_rtl_move_loop_invariants): Likewise.
267 (gate_rtl_unswitch): Likewise.
268 (gate_rtl_unroll_and_peel_loops): Likewise.
269 (rtl_doloop): Likewise.
270 * lto-streamer-in.c (input_cfg): Likewise.
271 * lto-streamer-out.c (output_cfg): Likewise.
272 * modulo-sched.c (sms_schedule): Likewise.
273 * predict.c (tree_estimate_probability): Likewise.
274 (tree_estimate_probability_driver): Likewise.
275 (estimate_loops): Likewise.
276 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
277 (move_sese_region_to_fn): Likewise.
278 (debug_loop_num): Likewise.
279 * tree-chrec.c (chrec_evaluate): Likewise.
280 (hide_evolution_in_other_loops_than_loop): Likewise.
281 (chrec_component_in_loop_num): Likewise.
282 (reset_evolution_in_loop): Likewise.
283 (evolution_function_is_invariant_rec_p): Likewise.
284 * tree-if-conv.c (main_tree_if_conversion): Likewise.
285 * tree-inline.c (copy_loops): Likewise.
286 (copy_cfg_body): Likewise.
287 (tree_function_versioning): Likewise.
288 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
289 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
291 (add_to_evolution_1): Likewise.
292 (scev_const_prop): Likewise.
293 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
294 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
295 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
296 (tree_ssa_lim_initialize): Likewise.
297 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
298 (verify_loop_closed_ssa): Likewise.
299 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
300 (tree_ssa_loop_im): Likewise.
301 (tree_ssa_loop_unswitch): Likewise.
302 (tree_vectorize): Likewise.
303 (check_data_deps): Likewise.
304 (tree_ssa_loop_ivcanon): Likewise.
305 (tree_ssa_loop_bounds): Likewise.
306 (tree_complete_unroll): Likewise.
307 (tree_complete_unroll_inner): Likewise.
308 (tree_parallelize_loops): Likewise.
309 (tree_ssa_loop_prefetch): Likewise.
310 (tree_ssa_loop_ivopts): Likewise.
311 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
312 * tree-vectorizer.c (vectorize_loops): Likewise.
314 2013-04-29 Mike Frysinger <vapier@gentoo.org>
316 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
317 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
318 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
321 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
324 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
327 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
330 * lra-constraints.c (process_alt_operands): Discourage a bit more
331 using memory for pseudos. Print cost dump for alternatives.
332 Modify cost values for conflicts with early clobbers.
333 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
335 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
338 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
340 2013-04-29 Ian Bolton <ian.bolton@arm.com>
342 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
344 (movdi_aarch64): Support LDR/STR from/to D register.
346 2013-04-29 Ian Bolton <ian.bolton@arm.com>
348 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
349 or higher by default.
351 2013-04-29 Richard Biener <rguenther@suse.de>
354 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
355 even if not adding abnormal edges for calls that can make
358 2013-04-29 Richard Biener <rguenther@suse.de>
361 * tree-cfg.c (move_stmt_op): Fix condition under which to update
363 (move_stmt_r): Remove redundant checking.
365 2013-04-29 Teresa Johnson <tejohnson@google.com>
368 * basic-block.h (apply_scale): New function.
369 (apply_probability): Use apply_scale.
370 * gimple-streamer-in.c (input_bb): Ditto.
371 * lto-streamer-in.c (input_cfg): Ditto.
372 * lto-cgraph.c (merge_profile_summaries): Ditto.
373 * tree-optimize.c (execute_fixup_cfg): Ditto.
374 * tree-inline.c (copy_bb): Update comment to use apply_scale.
375 (copy_edges_for_bb): Ditto.
376 (copy_cfg_body): Ditto.
378 2013-04-29 Tom de Vries <tom@codesourcery.com>
380 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
381 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
382 (tail_merge_optimize): Handle current_loops == NULL.
384 2013-04-26 Jeff Law <law@redhat.com>
386 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
387 (simplify_cond_using_ranges): Generalize code to simplify
388 COND_EXPRs where one argument is a constant and the other
389 is an SSA_NAME created by an integral type conversion.
391 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
393 * config/arm/arm.md (store_minmaxsi): Use only when
394 optimize_insn_for_size_p.
396 2013-04-29 Christian Bruel <christian.bruel@st.com>
399 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
401 2013-04-29 Richard Biener <rguenther@suse.de>
404 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
405 loop tree make sure to schedule a fixup for the child as well.
406 (expand_omp_for_generic): Properly add loops.
407 (expand_omp_for_static_nochunk): Likewise.
408 (expand_omp_for_static_chunk): Likewise.
409 (expand_omp_for): For the degenerate case fixup loops.
410 (expand_omp_sections): Fix default bb placement in loops.
411 (expand_omp_atomic_pipeline): Properly add loops.
413 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
415 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
417 2013-04-29 Tom de Vries <tom@codesourcery.com>
419 * tree-ssa-tail-merge.c: Update header comment.
421 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
423 * config/aarch64/arm_neon.h
424 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
425 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
426 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
427 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
428 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
429 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
430 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
431 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
433 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
435 * config/aarch64/aarch64-simd.md
436 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
437 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
438 fix_trunc, fixuns_trunc.
439 (ftrunc<VDQF:mode>2): New.
440 * config/aarch64/iterators.md (optab): Add fix, fixuns.
441 (fix_trunc_optab): New.
443 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
445 * config/aarch64/aarch64-builtins.c
446 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
447 iceilf, lround, iroundf.
449 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
452 * config/i386/i386.h (enum ix86_tune_indices)
453 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
454 New, split from X86_TUNE_INTER_UNIT_MOVES.
455 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
456 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
457 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
458 (TARGET_INTER_UNIT_MOVES): Remove.
459 * config/i386/i386.c (initial_ix86_tune_features): Update.
460 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
461 (ix86_expand_convert_uns_didf_sse): Use
462 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
463 (ix86_expand_vector_init_one_nonzero): Ditto.
464 (ix86_expand_vector_init_interleave): Ditto.
465 (inline_secondary_memory_needed): Return true for moves from SSE class
466 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
467 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
468 * config/i386/constraints.md (Yi, Ym): Depend on
469 TARGET_INTER_UNIT_MOVES_TO_VEC.
470 (Yj, Yn): New constraints.
471 * config/i386/i386.md (*movdi_internal): Change constraints of
472 operand 1 from Yi to Yj and from Ym to Yn.
473 (*movsi_internal): Ditto.
474 (*movdf_internal): Ditto.
475 (*movsf_internal): Ditto.
476 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
477 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
478 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
479 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
480 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
481 * config/i386/sse.md (movdi_to_sse): Ditto.
482 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
483 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
484 TARGET_INTER_UNIT_MOVES.
485 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
486 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
487 instead of TARGET_INTER_UNIT_MOVES.
488 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
489 operand 1 from Yi to Yj and from Ym to Yn.
491 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
493 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
494 (float_truncate_hi_): Likewise.
495 (float_extend_lo_): Likewise.
496 (float_truncate_lo_): Likewise.
497 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
498 (aarch64_float_extend_lo_v2df): Likewise.
499 (vec_unpacks_hi_v4sf): Likewise.
500 (aarch64_float_truncate_lo_v2sf): Likewise.
501 (aarch64_float_truncate_hi_v4sf): Likewise.
502 (vec_pack_trunc_v2df): Likewise.
503 (vec_pack_trunc_df): Likewise.
505 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
507 * config/aarch64/aarch64-builtins.c
508 (aarch64_fold_builtin): Fold float conversions.
509 * config/aarch64/aarch64-simd-builtins.def
510 (floatv2si, floatv4si, floatv2di): New.
511 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
512 * config/aarch64/aarch64-simd.md
513 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
514 * config/aarch64/iterators.md (FLOATUORS): New.
515 (optab): Add float, floatuns.
516 (su_optab): Likewise.
518 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
520 * config/aarch64/aarch64-builtins.c
521 (aarch64_builtin_vectorized_function): Use new names for
523 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
524 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
525 (fcvtzu): Split as...
526 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
527 (fcvtas): Split as...
528 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
529 (fcvtau): Split as...
530 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
531 (fcvtps): Split as...
532 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
533 (fcvtpu): Split as...
534 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
535 (fcvtms): Split as...
536 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
537 (fcvtmu): Split as...
538 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
539 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
540 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
541 (lfrintnusf, lfrintnudf): Likewise.
542 * config/aarch64/aarch64-simd.md
543 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
545 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
546 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
547 (fcvt_pattern): Likewise.
549 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
551 * config/aarch64/aarch64-simd.md
552 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
553 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
555 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
557 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
558 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
559 (vrnd<a,m,n,p>_f32): Implement using builtins.
560 (vrnd<i,x><q>_f<32, 64>): New.
562 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
564 * config/aarch64/aarch64-builtins.c
565 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
566 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
567 (frintz): Rename to...
569 (frintp): Rename to...
571 (frintm): Rename to...
573 (frinti): Rename to...
574 (nearbyint): ...this.
575 (frintx): Rename to...
577 (frinta): Rename to...
579 * config/aarch64/aarch64-simd.md
580 (aarch64_frint<frint_suffix><mode>): Delete.
581 (<frint_pattern><mode>2): Convert to insn.
582 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
583 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
584 (frint_pattern): Likewise.
585 (frint_suffix): Likewise.
587 2013-04-29 Richard Biener <rguenther@suse.de>
589 PR tree-optimization/57081
590 * loop-init.c: Include tree-flow.h.
591 (loop_optimizer_finalize): Free number of iteration estimates.
592 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
594 2013-04-29 Jakub Jelinek <jakub@redhat.com>
596 PR tree-optimization/57083
597 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
598 non-singleton shift count range, zero extend low_bound for uns case.
600 * config/i386/predicates.md (general_vector_operand): New predicate.
601 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
602 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
603 if they aren't nonimmediate operands. If their original values
604 satisfy const_vector_equal_evenodd_p, don't shift them.
605 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
606 predicates. For the SSE4.1 case force operands[{1,2}] into registers
607 if not nonimmediate_operand.
608 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
609 instead of register_operand.
610 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
612 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
614 * stor-layout.c (finalize_size_functions): Allocate a structure and
615 reset cfun before dumping the functions.
617 2013-04-27 Jakub Jelinek <jakub@redhat.com>
619 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
622 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
623 use xop_pmacsdqh if uns_p.
624 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
625 the immediate rotate count.
627 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
629 * rtl.h (struct rtx_def): Add comment for field jump.
630 (LRA_SUBREG_P): New macro.
631 * recog.c (register_operand): Check LRA_SUBREG_P.
632 * lra.c (lra): Add note at the end of RTL code. Align non-empty
634 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
635 (lra_final_code_change): Skip subreg change for operators.
636 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
637 if there are no operand changes.
638 * lra-constraints.c (curr_insn_set): New.
639 (match_reload): Set LRA_SUBREG_P.
640 (emit_spill_move): Ditto.
641 (check_and_process_move): Use curr_insn_set. Process only single
642 set insns. Don't initialize sec_mem_p and change_p.
643 (simplify_operand_subreg): Use LRA_SUBREG_P.
644 (reg_in_class_p): New function.
645 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
646 of #ifdef. Add code to remove cycling.
647 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
648 non-null disp. Reload inner instead of disp when base and index
649 are null. Try to put lo_sum into register.
650 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
651 (check_and_process_move): Move code for move cost check to
652 simple_move_p. Remove equiv_substitution.
653 (simple_move_p): New function.
654 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
655 curr_insn_set. Call check_and_process_move only for single set
656 insns. Use the new function. Move call of check_and_process_move
657 after operand equiv substitution and address process.
659 2013-04-26 Jakub Jelinek <jakub@redhat.com>
662 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
663 with nonlocal goto receivers or returns twice calls, ignore
664 unininitialized values from abnormal edges to nl goto receiver
665 or returns twice call.
667 2013-04-26 Jakub Jelinek <jakub@redhat.com>
669 PR tree-optimization/57051
670 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
671 and VEC_RSHIFT_EXPR if shift count is a multiple of element
674 2013-04-26 Richard Biener <rguenther@suse.de>
676 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
677 (expand_omp_taskreg): Likewise. Mark loops for fixup.
678 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
679 (fixup_loop_arrays_after_move): New function.
680 (move_sese_region_to_fn): Properly outline the loop tree parts
683 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
685 * config/i386/i386.md (type, unit): Fix long lines.
687 2013-04-26 Richard Biener <rguenther@suse.de>
689 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
690 (lto-streamer-out.o): Likewise.
691 * cfgloop.c (init_loops_structure): Export, add struct function
693 (flow_loops_find): Adjust.
694 * cfgloop.h (enum loop_estimation): Add EST_LAST.
695 (init_loops_structure): Declare.
696 * lto-streamer-in.c: Include cfgloop.h.
697 (input_cfg): Input the loop tree.
698 * lto-streamer-out.c: Include cfgloop.h.
699 (output_cfg): Output the loop tree.
700 (output_struct_function_base): Do not drop PROP_loops.
702 2013-03-26 Richard Biener <rguenther@suse.de>
704 * tree-cfg.c (execute_build_cfg): Build the loop tree.
705 (pass_build_cfg): Provide PROP_loops.
706 (move_sese_region_to_fn): Remove loops that are outlined into fn
708 * tree-inline.c: Include cfgloop.h.
709 (initialize_cfun): Do not drop PROP_loops.
710 (copy_loops): New function.
711 (copy_cfg_body): Copy loop structure.
712 (tree_function_versioning): Initialize destination loop tree.
713 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
714 (pass_parallelize_loops): Do IL verification.
715 * loop-init.c (loop_optimizer_init): Fixup loops if required.
716 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
717 the CFG make sure we fixup loops as well.
718 * tree-ssa-tail-merge.c: Include cfgloop.h.
719 (replace_block_by): When merging loop latches mark loops for fixup.
720 * lto-streamer-out.c (output_struct_function_base): Drop
722 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
723 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
724 * ipa-split.c: Include cfgloop.h.
725 (split_function): Add the new return block to the loop tree root.
726 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
727 whether we have removed the forwarder block.
728 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
729 * cfgloop.h (place_new_loop): Declare.
730 * cfgloopmanip.c (place_new_loop): Export.
731 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
732 (tree-switch-conversion.o): Likewise.
733 (tree-complex.o): Likewise.
734 (tree-inline.o): Likewise.
735 (tree-ssa-tailmerge.o): Likewise.
736 (ipa-split.o): Likewise.
737 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
738 (tree-ssa-copy.o): Likewise.
739 * tree-switch-conversion.c: Include cfgloop.h
740 (process_switch): If we emit a bit-test cascade, schedule loops
742 * tree-complex.c: Include cfgloop.h.
743 (expand_complex_div_wide): Properly add new basic-blocks to loops.
744 * asan.c: Include cfgloop.h.
745 (create_cond_insert_point): Properly add new basic-blocks to
746 loops, schedule loop fixup.
747 * cfgloop.c (verify_loop_structure): Check that looks are not
749 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
751 (expand_omp_for_generic): Likewise.
752 (expand_omp_sections): Likewise.
753 (expand_omp_atomic_pipeline): Schedule loops for fixup.
754 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
755 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
756 is initialized, not when loops are present.
757 * tree-parloops.c (parallelize_loops): Remove checking here.
758 * passes.c (init_optimization_passes): Schedule a copy-propagation
759 pass before complete unrolling of inner loops.
761 2013-04-26 Jakub Jelinek <jakub@redhat.com>
763 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
764 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
765 (colorize_init): Add argument to _WIN32 version.
766 * toplev.c: Include diagnostic-color.h.
767 (process_options): Default to -fdiagnostics-color=auto if
768 GCC_COLORS env var is in the environment.
769 * common.opt (fdiagnostics-color=): Add Var and Init.
770 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
771 env var is in the environment, the default is auto rather than never.
773 * diagnostic.h (file_name_as_prefix): Add context argument.
774 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
776 * langhooks.c (lhd_print_error_function): Adjust caller.
778 2013-04-25 Lawrence Crowl <crowl@google.com>
780 * var-tracking.c (shared_hash_def::htab):
781 Change type to hash_table. Update dependent calls and types.
783 2013-04-25 Lawrence Crowl <crowl@google.com>
785 * Makefile.in: Update as needed below.
787 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
788 Move declaration to after the type's method definitons.
790 * attribs.c (htab_t scoped_attributes::attribute_hash):
791 Change type to hash_table. Update dependent calls and types.
793 * bitmap.c (htab_t bitmap_desc_hash):
794 Change type to hash_table. Update dependent calls and types.
796 * cselib.c (htab_t cselib_hash_table):
797 Change type to hash_table. Update dependent calls and types.
799 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
800 (hash_string_slot_node): Move implementation into lto-streamer.h
801 struct string_slot_hasher.
802 (eq_string_slot_node): Likewise.
804 * data-streamer-out.c: Update output_block::string_hash_table
805 dependent calls and types.
807 * dwarf2cfi.c (htab_t trace_index):
808 Change type to hash_table. Update dependent calls and types.
810 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
811 Change type to hash_table. Update dependent calls and types.
812 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
813 (htab_t optimize_external_refs::map): Likewise.
814 (htab_t output_comp_unit::extern_map): Likewise.
815 (htab_t output_comdat_type_unit::extern_map): Likewise.
816 (htab_t output_macinfo::macinfo_htab): Likewise.
817 (htab_t optimize_location_lists::htab): Likewise.
818 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
820 * except.c (htab_t ehspec_hash_type):
821 Change type to hash_table. Update dependent calls and types.
822 (assign_filter_values::ttypes): Likewise.
823 (assign_filter_values::ehspec): Likewise.
824 (sjlj_assign_call_site_values::ar_hash): Likewise.
825 (convert_to_eh_region_ranges::ar_hash): Likewise.
827 * gcse.c (htab_t pre_ldst_table):
828 Change type to hash_table. Update dependent calls and types.
830 * ggc-common.c (htab_t saving_htab):
831 Change type to hash_table. Update dependent calls and types.
832 (htab_t loc_hash): Likewise.
833 (htab_t ptr_hash): Likewise.
834 (call_count): Rename ggc_call_count.
835 (call_alloc): Rename ggc_call_alloc.
836 (loc_descriptor): Rename make_loc_descriptor.
837 (add_statistics): Rename ggc_add_statistics.
839 * ggc-common.c (saving_htab):
840 Change type to hash_table. Update dependent calls and types.
842 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
843 (push_gimplify_context): Likewise.
844 (pop_gimplify_context): Likewise.
845 (struct gimple_temp_hash_elt): Added.
846 (struct gimplify_hasher): Likewise.
847 (struct gimplify_ctx.temp_htab):
848 Change type to hash_table. Update dependent calls and types.
850 * gimple-fold.c: Include gimplify-ctx.h.
852 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
853 Change type to hash_table. Update dependent calls and types.
854 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
855 avoid potential global name collision.
857 * gimplify.c: Include gimplify-ctx.h.
858 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
859 (htab_t gimplify_ctx::temp_htab):
860 Update dependent calls and types for new type hash_table.
861 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
862 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
864 * gimplify-ctx.h: New.
865 (struct gimple_temp_hash_elt): Move from gimplify.c.
866 (class gimplify_hasher): New.
867 (struct gimplify_ctx): Move from gimple.h.
868 (htab_t gimplify_ctx::temp_htab):
869 Change type to hash_table. Update dependent calls and types.
871 * graphite-clast-to-gimple.c: Include graphite-htab.h.
872 (htab_t ivs_params::newivs_index):
873 Change type to hash_table. Update dependent calls and types.
874 (htab_t ivs_params::params_index): Likewise.
875 (htab_t print_generated_program::params_index): Likewise.
876 (htab_t gloog::newivs_index): Likewise.
877 (htab_t gloog::params_index): Likewise.
879 * graphite.c: Include graphite-htab.h.
880 4htab_t graphite_transform_loops::bb_pbb_mapping):
881 Change type to hash_table. Update dependent calls and types.
883 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
884 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
885 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
887 * graphite-dependences.c: Include graphite-htab.h.
888 (loop_is_parallel_p): Change hash table type of parameter.
890 * graphite-htab.h: New.
891 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
892 (extern find_pbb_via_hash): Move from graphite-poly.h.
893 (extern loop_is_parallel_p): Move from graphite-poly.h.
894 (extern get_loop_body_pbbs): Move from graphite-poly.h.
896 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
897 (extern loop_is_parallel_p): Move to graphite-htab.h.
898 (extern get_loop_body_pbbs): Move to graphite-htab.h.
900 * haifa-sched.c (htab_t delay_htab):
901 Change type to hash_table. Update dependent calls and types.
902 (htab_t delay_htab_i2): Likewise.
904 * ira-color.c (htab_t allocno_hard_regs_htab):
905 Change type to hash_table. Update dependent calls and types.
907 * ira-costs.c (htab_t cost_classes_htab):
908 Change type to hash_table. Update dependent calls and types.
910 * loop-invariant.c (htab_t merge_identical_invariants::eq):
911 Change type to hash_table. Update dependent calls and types.
913 * loop-iv.c (htab_t bivs):
914 Change type to hash_table. Update dependent calls and types.
916 * loop-unroll.c (htab_t opt_info::insns_to_split):
917 Change type to hash_table. Update dependent calls and types.
918 (htab_t opt_info::insns_with_var_to_expand): Likewise.
920 * lto-streamer.h (struct string_slot): Move from data-streamer.h
921 (struct string_slot_hasher): New.
922 (htab_t output_block::string_hash_table):
923 Change type to hash_table. Update dependent calls and types.
925 * lto-streamer-in.c (freeing_string_slot_hasher): New.
926 (htab_t file_name_hash_table):
927 Change type to hash_table. Update dependent calls and types.
929 * lto-streamer-out.c: Update output_block::string_hash_table dependent
932 * lto-streamer.c (htab_t tree_htab):
933 Change type to hash_table. Update dependent calls and types.
935 * omp-low.c: Include gimplify-ctx.h.
937 * passes.c (htab_t name_to_pass_map):
938 Change type to hash_table. Update dependent calls and types.
939 (pass_traverse): Rename to passes_pass_traverse.
941 * plugin.c (htab_t event_tab):
942 Change type to hash_table. Update dependent calls and types.
944 * postreload-gcse.c (htab_t expr_table):
945 Change type to hash_table. Update dependent calls and types.
946 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
948 * sese.c (debug_rename_map_1): Make extern.
949 (htab_t copy_bb_and_scalar_dependences::rename_map):
950 Change type to hash_table. Update dependent calls and types.
952 * sese.h (extern debug_rename_map): Move to .c file.
954 * store-motion.c (htab_t store_motion_mems_table):
955 Change type to hash_table. Update dependent calls and types.
957 * trans-mem.c (htab_t tm_new_mem_hash):
958 Change type to hash_table. Update dependent calls and types.
960 * tree-browser.c (htab_t TB_up_ht):
961 Change type to hash_table. Update dependent calls and types.
963 * tree-cfg.c (htab_t discriminator_per_locus):
964 Change type to hash_table. Update dependent calls and types.
966 * tree-complex.c: Include tree-hasher.h
967 (htab_t complex_variable_components):
968 Change type to hash_table. Update dependent calls and types.
970 * tree-eh.c (htab_t finally_tree):
971 Change type to hash_table. Update dependent calls and types.
973 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
974 struct int_tree_hasher.
975 (extern int_tree_map_eq): Likewise.
976 (uid_decl_map_hash): Removed.
977 (extern decl_tree_map_eq): Likewise.
979 * tree-hasher.h: New.
980 (struct int_tree_hasher): New.
981 (typedef int_tree_htab_type): New.
983 * tree-inline.c: Include gimplify-ctx.h.
985 * tree-mudflap.c: Include gimplify-ctx.h.
987 * tree-parloops.c: Include tree-hasher.h.
988 (htab_t eliminate_local_variables_stmt::decl_address):
989 Change type to hash_table. Update dependent calls and types.
990 (htab_t separate_decls_in_region::decl_copies): Likewise.
992 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
993 Change type to hash_table. Update dependent calls and types.
995 * tree-sra.c (candidates):
996 Change type to hash_table. Update dependent calls and types.
998 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
1000 (int_tree_map_hash): Likewise.
1002 * tree-ssa-dom.c (htab_t avail_exprs):
1003 Change type to hash_table. Update dependent calls and types.
1005 * tree-ssa-live.c (var_map_base_init::tree_to_index):
1006 Change type to hash_table. Update dependent calls and types.
1008 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
1009 Change type to hash_table. Update dependent calls and types.
1011 * tree-ssa-phiopt.c (seen_ssa_names):
1012 Change type to hash_table. Update dependent calls and types.
1014 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
1015 Change type to hash_table. Update dependent calls and types.
1017 * tree-ssa-uncprop.c (equiv):
1018 Change type to hash_table. Update dependent calls and types.
1020 2013-04-25 Jakub Jelinek <jakub@redhat.com>
1022 PR rtl-optimization/57003
1023 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1024 call note_stores with kill_clobbered_value callback again after
1025 killing regs_invalidated_by_call.
1027 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1029 * config/aarch64/aarch64-simd.md
1030 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
1031 (aarch64_simd_bsl<mode>): Likewise.
1032 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
1034 2013-04-25 Marek Polacek <polacek@redhat.com>
1036 PR tree-optimization/57066
1037 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
1039 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
1041 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
1043 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1045 * config/aarch64/aarch64-builtins.c
1046 (aarch64_fold_builtin): New.
1047 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
1048 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
1049 * config/aarch64/aarch64-simd-builtins.def (abs): New.
1050 * config/aarch64/arm_neon.h
1051 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
1053 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1054 Tejas Belagod <tejas.belagod@arm.com>
1056 * config/aarch64/aarch64-builtins.c
1057 (aarch64_gimple_fold_builtin): New.
1058 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
1059 * config/aarch64/aarch64-simd-builtins.def (addv): New.
1060 * config/aarch64/aarch64-simd.md (addpv4sf): New.
1062 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1064 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1066 * config/aarch64/aarch64.md
1067 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
1069 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1071 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
1072 (*ngcsi_uxtw): New pattern.
1074 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1075 Julian Brown <julian@codesourcery.com>
1077 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
1078 (TB_DREG): Add T_V4HF.
1079 (v4hf_UP): New macro.
1080 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1081 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1082 Handle initialisation of V4HF. Adjust initialisation of reinterpret
1084 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1085 (arm_vector_mode_supported_p): Handle V4HF.
1086 (arm_mangle_map): Handle V4HFmode.
1087 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
1088 * config/arm/arm_neon_builtins.def: Add entries for
1089 vcvtv4hfv4sf, vcvtv4sfv4hf.
1090 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
1091 (neon_vcvtv4hfv4sf): Likewise.
1092 * config/arm/neon-gen.ml: Handle half-precision floating point
1094 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
1095 * config/arm/arm_neon.h: Regenerate.
1096 * config/arm/neon.ml (type elts): Add F16.
1097 (type vectype): Add T_float16x4, T_floatHF.
1098 (type vecmode): Add V4HF.
1099 (type features): Add Requires_FP_bit feature.
1100 (elt_width): Handle F16.
1101 (elt_class): Likewise.
1102 (elt_of_class_width): Likewise.
1103 (mode_of_elt): Refactor.
1104 (type_for_elt): Handle F16, fix error messages.
1105 (vectype_size): Handle T_float16x4.
1106 (vcvt_sh): New function.
1107 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
1108 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
1109 (string_of_mode): Handle V4HF.
1110 * doc/arm-neon-intrinsics.texi: Regenerate.
1112 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1114 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
1115 format specifier in 'X' case.
1117 2013-04-25 Alan Modra <amodra@gmail.com>
1120 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
1121 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
1122 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
1123 Repeat for many other rotate/shift and mask patterns using subregs.
1124 Name lshiftrt insns.
1125 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
1126 on WORDS_BIG_ENDIAN.
1128 2013-04-25 Alan Modra <amodra@gmail.com>
1130 * config.gcc: Support little-endian powerpc-linux targets.
1131 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
1132 (LINK_OS_LINUX_SPEC): Define.
1133 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
1134 Preserve MASK_LITTLE_ENDIAN.
1135 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
1136 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
1137 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
1138 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
1139 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
1140 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
1141 Correct fp word order for little-endian. Don't shift toc entries
1142 smaller than a word for little-endian.
1143 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
1144 (bswapdi2 splits): Correct low-part subreg for little-endian.
1145 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
1146 low/high where such is correct only for be.
1147 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
1148 little-endian for -mcall-aixdesc.
1150 2013-04-25 Alan Modra <amodra@gmail.com>
1152 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
1153 replace_equiv_address_nv.
1155 2013-04-25 Alan Modra <amodra@gmail.com>
1157 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
1159 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1162 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1163 * rtl.h (struct rtx_def): ...
1165 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1167 PR rtl-optimizations/57046
1168 * lra-constraints (split_reg): Set up lra_risky_transformations_p
1169 for multi-reg splits.
1171 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
1173 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
1175 2013-04-24 Sterling Augustine <saugustine@google.com>
1177 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
1178 (comp_dir_string, debug_str_dwo_section): New.
1179 (DEBUG_STR_DWO_SECTION): Rename to ...
1180 (DEBUG_DWO_STR_SECTION): ... this.
1181 (DEBUG_NORM_STR_SECTION): Delete.
1182 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
1183 (DEBUG_STR_DWO_SECTION_FLAGS): New.
1184 (find_AT_string): Move most logic to ...
1185 (find_AT_string_in_table): ... here. New.
1186 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
1187 add_skeleton_AT_string. Delete logic.
1188 (output_skeleton_debug_sections): Remove call to
1189 add_top_level_skeleton_die_attrs.
1190 (add_comp_dir_attribute): Move logic to comp_dir_string.
1191 (dwarf2out_init): Initialize debug_str_dwo_section.
1192 (output_indirect_string): Call find_string_form.
1193 (output_indirect_strings): Rewrite.
1194 (prune_unused_types): Empty skeleton_debug_str_hash.
1195 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
1196 (dwarf2out_finish): Call output_indirect_strings.
1198 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1200 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
1202 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1204 * rtl.h (struct rtx_def): Add comment for field jump.
1205 (LRA_SUBREG_P): New macro.
1206 * recog.c (register_operand): Check LRA_SUBREG_P.
1207 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1209 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1210 (lra_final_code_change): Skip subreg change for operators.
1211 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1212 if there are no operand changes.
1213 * lra-constraints.c (curr_insn_set): New.
1214 (match_reload): Set LRA_SUBREG_P.
1215 (emit_spill_move): Ditto.
1216 (check_and_process_move): Use curr_insn_set. Process only single
1217 set insns. Don't initialize sec_mem_p and change_p.
1218 (simplify_operand_subreg): Use LRA_SUBREG_P.
1219 (reg_in_class_p): New function.
1220 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1221 of #ifdef. Add code to remove cycling.
1222 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1223 non-null disp. Reload inner instead of disp when base and index
1224 are null. Try to put lo_sum into register.
1225 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1226 (check_and_process_move): Move code for move cost check to
1227 simple_move_p. Remove equiv_substitution.
1228 (simple_move_p): New function.
1229 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1230 curr_insn_set. Call check_and_process_move only for single set
1231 insns. Use the new function. Move call of check_and_process_move
1232 after operand equiv substitution and address process.
1234 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
1236 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
1237 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
1238 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
1240 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1242 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
1244 2013-04-24 Marek Polacek <polacek@redhat.com>
1246 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
1247 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
1248 (select_loops_exit_conditions): Likewise.
1249 (number_of_iterations_for_all_loops): Likewise.
1250 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
1251 (scev_analysis): Likewise.
1253 2013-04-02 Catherine Moore <clm@codesourcery.com>
1254 Chao-ying Fu <fu@mips.com>
1256 * config/mips/micromips.md (jraddiusp): New pattern.
1257 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
1258 instruction if possible.
1260 2013-04-24 Alan Modra <amodra@gmail.com>
1262 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
1264 2013-04-24 Julian Brown <julian@codesourcery.com>
1265 Chung-Lin Tang <cltang@codesourcery.com>
1267 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
1268 dependency behavior in enumeration type DIE generation. Add TODO note
1269 to comments about future DW_FORM_sdata/udata re-work of related code.
1271 2013-04-23 Lawrence Crowl <crowl@google.com>
1273 * Makefile.in: Update as needed below.
1275 * hash-table.h (class hash_table):
1276 Correct many methods with parameter types compare_type to the correct
1277 value_type. (Correct code was unlikely to notice the change.)
1278 (hash_table::elements_with_deleted) New.
1279 (class hashtable::iterator): New.
1280 (hashtable::begin()): New.
1281 (hashtable::end()): New.
1282 (FOR_EACH_HASH_TABLE_ELEMENT): New.
1284 * statistics.c (statistics_hashes):
1285 Change type to hash_table. Update dependent calls and types.
1287 * tree-into-ssa.c (var_infos):
1288 Change type to hash_table. Update dependent calls and types.
1290 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
1291 Change type to hash_table. Update dependent calls and types.
1293 * tree-ssa-loop-im.c (struct mem_ref.refs):
1294 Change type to hash_table. Update dependent calls and types.
1296 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
1297 Change type to hash_table. Update dependent calls and types.
1299 * tree-ssa-sccvn.c (vn_tables_s::nary):
1300 Change type to hash_table. Update dependent calls and types.
1301 (vn_tables_s::phis): Likewise.
1302 (vn_tables_s::references): Likewise.
1304 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
1305 (vn_reference_eq): Update parameter and return types.
1307 * tree-ssa-structalias.c (pointer_equiv_class_table):
1308 Change type to hash_table. Update dependent calls and types.
1309 (location_equiv_class_table): Likewise.
1311 * tree-vect-data-refs.c: Consequential changes for making
1312 peeling a hash_table.
1314 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
1315 (destroy_loop_vec_info): Dependent hash_table update.
1317 * tree-vectorizer.h (peeling_htab):
1318 Change type to hash_table. Update dependent calls and types.
1320 2013-04-23 Shiva Chen <shiva0217@gmail.com>
1322 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
1323 to check the register content is equal or not.
1324 * lra-constraints.c (match_reload): Use lra_assign_reg_val
1325 to assign register content record.
1326 * lra-eliminations.c (update_reg_eliminate): Use
1327 lra_update_reg_val_offset to update register content offset.
1328 * lra-int.h (struct lra_reg): Add offset member.
1329 (lra_reg_val_equal_p): New static inline function.
1330 (lra_update_reg_val_offset): New static inline function.
1331 (lra_assign_reg_val): New static inline function.
1332 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
1333 to assign register content record.
1334 (initialize_lra_reg_info_element): Initial offset to zero.
1336 2013-04-23 Catherine Moore <clm@codesourcery.com>
1338 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
1339 operands. Record compression.
1341 2013-04-23 Xinliang David Li <davidxl@google.com>
1343 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
1345 2013-04-23 Richard Biener <rguenther@suse.de>
1348 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
1349 parameter, only add abnormal goto edges from the copied body
1350 if the call could perform abnormal gotos.
1351 (copy_cfg_body): Adjust.
1353 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
1355 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
1357 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
1359 * coretypes.h (gimple_stmt_iterator): Add struct to make
1362 2013-04-23 Richard Biener <rguenther@suse.de>
1364 PR tree-optimization/57026
1365 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
1366 from SSA names occuring in abnormal PHI nodes.
1368 2013-04-22 Andi Kleen <ak@linux.intel.com>
1370 * lto/lto.c (print_lto_report_1): Fix LTO report names.
1372 2013-04-22 Andi Kleen <ak@linux.intel.com>
1374 * lto/lto.c (print_lto_report_1): Declare early.
1375 (read_cgraph_and_symbols): Call print_lto_report_1 early.
1377 2013-04-22 Andi Kleen <ak@linux.intel.com>
1379 * common.opt (-flto-report-wpa): Add.
1380 * doc/invoke.texi (-flto-report-wpa): Add.
1381 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
1384 2013-04-22 Xinliang David Li <davidxl@google.com>
1386 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
1387 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
1388 * Makefile.in: New dependency
1390 David Daney <ddaney.cavm@gmail.com>
1392 * configure.ac (gcc_cv_as_micromips_support): Use the
1393 --fatal-warnings option.
1394 * configure: Regenerate.
1396 2013-04-22 Marek Polacek <polacek@redhat.com>
1399 * tsan.c (instrument_expr): Don't instrument expression
1400 in case its size is zero.
1402 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
1406 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1408 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1410 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1412 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
1413 (gimple_stmt_iterator): New typedef.
1414 * gimple.h (gimple_stmt_iterator): Rename to...
1415 (gimple_stmt_iterator_d): ... This.
1416 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
1417 trees be valid for GIMPLE and GENERIC.
1418 (TARGET_GIMPLE_FOLD_BUILTIN): New.
1419 * gimple-fold.c (gimple_fold_call): Call target hook
1420 gimple_fold_builtin.
1421 * hooks.c (hook_bool_gsiptr_false): New.
1422 * hooks.h (hook_bool_gsiptr_false): New.
1423 * target.def (fold_stmt): New.
1424 * doc/tm.texi: Regenerate.
1426 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
1429 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1430 a set sp if no stack realignment.
1432 2013-04-22 Nick Clifton <nickc@redhat.com>
1434 * config.gcc (tilegx-linux): Extend extra_objs rather than
1436 (tilepro-linux): Likewise.
1438 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1440 * config/aarch64/aarch64-builtins.c
1442 (CF0, CF1, CF2, CF3, CF4, CF10): New.
1443 (VAR<1-12>): Add MAP parameter.
1444 (BUILTIN_*): Likewise.
1445 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
1446 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
1447 (aarch64_ushl_n<mode>): Likewise.
1448 (aarch64_sshr_n<mode>): Likewise.
1449 (aarch64_ushr_n<mode>): Likewise.
1450 (aarch64_<maxmin><mode>): Likewise.
1451 (aarch64_sqrt<mode>): Likewise.
1452 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
1453 (vshr<q>_n_*): Likewise.
1455 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1457 * config/aarch64/aarch64-builtins.c
1458 (aarch64_simd_builtin_type_mode): Handle SF types.
1460 (BUILTIN_GPF): Define.
1461 (aarch64_init_simd_builtins): Handle SF types.
1462 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
1465 * config/aarch64/aarch64-simd.md
1466 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
1467 (aarch64_frecpe<mode>): New.
1468 (aarch64_frecps<mode>): Likewise.
1469 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
1470 (v8type): Add frecp<esx>.
1471 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
1472 (aarch64_frecps<mode>): Likewise.
1473 * config/aarch64/iterators.md (FRECP): New.
1474 (frecp_suffix): Likewise.
1475 * config/aarch64/arm_neon.h
1476 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
1478 2013-04-22 Christian Bruel <christian.bruel@st.com>
1481 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
1482 (REG_CLASS_NAMES): Idem.
1483 (REG_CLASS_CONTENTS): Idem.
1484 (REGCLASS_HAS_FP_REG): Idem.
1485 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
1486 (sh_conditional_register_usage): Idem.
1488 2013-04-21 Jeff Law <law@redhat.com>
1490 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
1491 (ssa_forward_propagate_and_combine): Use it.
1493 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1495 * lra.c: Update the flow chart diagram.
1497 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1499 PR rtl-optimization/56847
1500 * lra-constraints.c (process_alt_operands): Discourage alternative
1501 with non-matche doffsettable memory constraint fro memory with
1504 2013-04-19 Richard Biener <rguenther@suse.de>
1506 PR tree-optimization/56982
1507 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
1509 * gimplify.c (gimplify_call_expr): Notice special calls.
1510 (gimplify_modify_expr): Likewise.
1511 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
1512 abnormal control flow receivers.
1513 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
1514 in the same way as cfun->has_nonlocal_labels.
1515 (gimple_purge_dead_abnormal_call_edges): Likewise.
1516 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
1517 receivers start a basic-block.
1519 2013-04-19 Richard Biener <rguenther@suse.de>
1521 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
1523 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
1524 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
1525 (SLP_TREE_LOAD_PERMUTATION): Add.
1526 (vect_transform_slp_perm_load): Adjust prototype.
1527 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
1528 (vect_free_slp_instance): Likewise.
1529 (vect_create_new_slp_node): Likewise.
1530 (vect_supported_slp_permutation_p): Remove.
1531 (vect_slp_rearrange_stmts): Adjust.
1532 (vect_supported_load_permutation_p): Likewise. Inline
1533 vect_supported_slp_permutation_p here.
1534 (vect_analyze_slp_instance): Compute load permutations per
1535 slp node instead of per instance.
1536 (vect_get_slp_defs): Adjust.
1537 (vect_transform_slp_perm_load): Likewise.
1538 (vect_schedule_slp_instance): Remove redundant code.
1539 (vect_schedule_slp): Remove hack for PR56270, add it ...
1540 * tree-vect-stmts.c (vectorizable_load): ... here, do not
1541 CSE loads for SLP. Adjust.
1543 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1545 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
1546 spelling in two comments.
1548 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1551 * config/arm/arm.c (load_multiple_sequence): Require SP
1552 as base register for loads if SP is in the register list.
1554 2013-04-19 Martin Jambor <mjambor@suse.cz>
1556 PR tree-optimization/56718
1557 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
1558 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
1559 and made public. Adjusted all callers.
1560 (ipa_intraprocedural_devirtualization): New function.
1561 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
1562 (ipa_intraprocedural_devirtualization): Likewise.
1563 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
1565 2013-04-19 Richard Biener <rguenther@suse.de>
1567 PR tree-optimization/57000
1568 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
1570 2013-04-19 Terry Guo <terry.guo@arm.com>
1572 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
1574 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
1575 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
1576 (cortex_m4_fmacs): Use new reservations.
1577 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
1579 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
1581 PR rtl-optimization/56999
1582 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
1584 (lra_coalesce): Remove split_origin_bitmap and related code.
1585 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
1586 ranges if necessary.
1588 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
1590 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
1592 (ix86_expand_call): Remove clobbered_registers array and use
1593 x86_64_ms_sysv_extra_clobbered_registers instead.
1594 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
1596 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
1598 * config/i386/i386.md (*call_rex64_ms_sysv): Use
1599 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
1600 (*call_value_rex64_ms_sysv): Ditto.
1602 2013-04-18 Cary Coutant <ccoutant@google.com>
1604 * dwarf2out.c (output_pubnames): Check die_perennial_p of
1605 parent instead of die_mark.
1607 2013-04-18 Diego Novillo <dnovillo@google.com>
1609 * gimple.c (create_gimple_tmp): New.
1610 (get_expr_type): New.
1611 (build_assign): New.
1612 (build_type_cast): New.
1613 * gimple.h (enum ssa_mode): Define.
1614 (gimple_seq_set_location): New.
1615 * asan.c (build_check_stmt): Change some gimple_build_* calls
1616 to use build_assign and build_type_cast.
1618 2013-04-18 Richard Biener <rguenther@suse.de>
1620 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
1621 handle negative step. Remove redundant checks.
1622 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
1623 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
1624 for negative step and grouped loads fail to vectorize.
1626 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1628 * emit-rtl.c (reset_insn_used_flags): New function.
1629 (reset_all_used_flags): Use it.
1630 (verify_insn_sharing): New function.
1631 (verify_rtl_sharing): Fix verification for SEQUENCEs.
1633 2013-04-18 Jakub Jelinek <jakub@redhat.com>
1635 PR tree-optimization/56984
1636 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
1637 and (x >> M) >= N don't register any assertion if N << M is the
1640 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1642 * lower-subreg.c (resolve_simple_move): If called self-recursive,
1643 do not delete_insn insns that have not yet been emitted, only
1644 unlink them with remove_insn.
1645 * df-scan.c (df_insn_delete): Revert r197492.
1647 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
1649 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
1650 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
1652 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1654 * config/arm/arm.md (movsicc_insn): Convert define_insn into
1655 define_insn_and_split.
1656 (and_scc,ior_scc,negscc): Likewise.
1657 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
1659 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1661 * config/arm/arm.c (use_return_insn): Return 0 for targets that
1662 can benefit from using a sequence of LDRD instructions in epilogue
1663 instead of a single LDM instruction.
1665 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1668 * doc/extend.texi: Fix typo.
1670 2013-04-17 Richard Biener <rguenther@suse.de>
1672 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
1673 (vect_build_slp_tree): ... here.
1674 (vect_build_slp_tree_1): Compute which stmts of the SLP group
1675 match. Remove special-casing of mismatched complex loads.
1676 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
1677 re-try the match with swapped commutative operands.
1678 (vect_supported_load_permutation_p): Remove special-casing of
1679 mismatched complex loads.
1680 (vect_analyze_slp_instance): Adjust.
1682 2013-04-17 Richard Biener <rguenther@suse.de>
1684 PR rtl-optimization/56921
1685 * cfgloop.h (struct loop): Add simple_loop_desc member.
1686 (struct niter_desc): Mark with GTY(()).
1687 (simple_loop_desc): Do not use aux field but simple_loop_desc.
1688 * loop-iv.c (get_simple_loop_desc): Likewise.
1689 (free_simple_loop_desc): Likewise.
1692 2013-04-16 Richard Biener <rguenther@suse.de>
1694 PR rtl-optimization/56921
1695 * loop-init.c (pass_rtl_move_loop_invariants): Add
1696 TODO_do_not_ggc_collect to todo_flags_finish.
1697 (pass_rtl_unswitch): Same.
1698 (pass_rtl_unroll_and_peel_loops): Same.
1699 (pass_rtl_doloop): Same.
1701 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
1703 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
1704 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
1705 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
1707 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
1708 * tree-streamer.c (record_common_node): Adjust reference in comment.
1710 2013-04-17 Terry Guo <terry.guo@arm.com>
1712 * config/arm/cortex-m4.md: Add a new bypass.
1714 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1716 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
1718 (*subs_<optab><mode>_multp2): New pattern.
1719 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1720 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1722 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1724 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
1725 (*subs_mul_imm_<mode>): New pattern.
1727 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
1730 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
1731 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
1732 (vsx_movti_32bit): Change j->wa to O->wa.
1734 2013-04-16 Richard Biener <rguenther@suse.de>
1736 PR rtl-optimization/56921
1737 * loop-init.c (pass_rtl_move_loop_invariants): Add
1738 TODO_do_not_ggc_collect to todo_flags_finish.
1739 (pass_rtl_unswitch): Same.
1740 (pass_rtl_unroll_and_peel_loops): Same.
1741 (pass_rtl_doloop): Same.
1743 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
1745 * config/arm/arm.c (emit_multi_reg_push): New declaration
1746 for an existing function.
1747 (arm_emit_strd_push): New function.
1748 (arm_expand_prologue): Used here.
1749 (arm_emit_ldrd_pop): New function.
1750 (arm_expand_epilogue): Used here.
1751 (arm_get_frame_offsets): Update condition.
1752 (arm_emit_multi_reg_pop): Add a special case for load of a single
1753 register with writeback.
1755 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
1757 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
1760 2013-04-16 Richard Biener <rguenther@suse.de>
1762 PR tree-optimization/56756
1763 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
1764 (first_mem_ref_loc): New.
1765 (execute_sm): Place the load temporarily before a previous
1766 access instead of in the latch edge to ensure its SSA dependencies
1767 are defined at points dominating the load.
1769 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
1771 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
1772 correct fix by moving header and footer insn to the footer of
1773 the merged basic block. Clear BB_END of the merged-away block.
1776 * emit-rtl.c (make_note_raw): New function.
1777 (link_insn_into_chain): New static inline function.
1779 (add_insn_before, add_insn_after): Factor insn chain linking code...
1780 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
1781 using link_insn_into_chain.
1782 (note_outside_basic_block_p): New helper function for emit_note_after
1783 and emit_note_before.
1784 (emit_note_after): Use nobb variant of add_insn_after if the note
1785 should not be contained in a basic block.
1786 (emit_note_before): Use nobb variant of add_insn_before if the note
1787 should not be contained in a basic block.
1788 (emit_note_copy): Use make_note_raw.
1789 (emit_note): Likewise.
1790 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
1791 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
1792 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
1793 the moved barrier the tail of the basic block it follows.
1794 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
1796 2013-04-15 Jakub Jelinek <jakub@redhat.com>
1798 PR tree-optimization/56962
1799 * gimple-ssa-strength-reduction.c (record_increment): Only set
1800 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
1801 either rhs1 or rhs2 is equal to c->base_expr.
1803 2013-04-15 Richard Biener <rguenther@suse.de>
1805 PR tree-optimization/56933
1806 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
1808 (GROUP_READ_WRITE_DEPENDENCE): Remove.
1809 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
1810 * tree-vect-data-refs.c (vect_analyze_group_access): Move
1811 dependence check ...
1812 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
1814 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
1815 GROUP_READ_WRITE_DEPENDENCE.
1817 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1819 * emit-rtl.c (reset_all_used_flags): New function.
1820 (verify_rtl_sharing): Call reset_all_used_flags before and after
1821 performing the checks.
1823 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1825 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
1826 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
1827 * config/arm/constraints.md (De): New constraint.
1828 * config/arm/neon.md (anddi3_neon): Delete.
1829 (neon_vand<mode>): Expand to standard anddi3 pattern.
1830 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
1831 Move earlier in the file.
1832 (neon_inv_logic_op2): Likewise.
1833 (arm_anddi_operand_neon): New predicate.
1835 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1837 * configure.ac (gcc_cv_ld_as_needed): Set
1838 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
1839 Use -z ignore, -z record on *-*-solaris2*.
1840 (HAVE_LD_AS_NEEDED): Update comment.
1841 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
1842 * configure: Regenerate.
1843 * config.in: Regenerate.
1844 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
1845 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
1846 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
1847 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
1848 equivalents. Fix markup.
1849 * doc/tm.texi: Regenerate.
1851 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
1853 * config/i386/i386.opt: New option mstack-protector-guard=.
1854 * config/i386/i386-opts.h: Add enum stack_protector_guard.
1855 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
1856 TARGET_SSP_TLS_GUARD.
1857 * config/i386/i386.c (ix86_option_override_internal): Set
1858 ix86_stack_protector_guard.
1859 * config/i386/i386.md (stack_protect_set): Enable for
1860 TARGET_SSP_TLS_GUARD only.
1861 (stack_protect_set_<mode>): Ditto.
1862 (stack_protect_test): Ditto.
1863 (stack_protect_test_<mode>): Ditto.
1864 * doc/invoke.texi (i386 Option): Document.
1866 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
1869 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
1870 (S_MODES): Set H_MODE bit.
1871 (SF_MODES): Set only S_MODE and SF_MODE bits.
1872 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
1873 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
1874 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
1875 <MODE_FLOAT>: Likewise.
1877 2013-04-15 Joey Ye <joey.ye@arm.com>
1879 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
1881 2013-04-15 Joey Ye <joey.ye@arm.com>
1883 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
1885 (thumb_far_jump_used_p): Count instruction size and set
1888 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
1890 * reorg.c (fill_simple_delay_slots): Reindent block of code.
1891 * resource.c (mark_target_live_regs): Reformat conditional block.
1893 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
1895 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
1896 notes, they are emitted only just before final.
1897 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
1899 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
1901 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
1902 * cfgrtl.c (delete_insn): Call it here instead.
1903 * lra-spills.c (lra_final_code_change): Use delete_insn.
1904 * haifa-sched.c (sched_remove_insn): Likewise.
1905 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
1906 returning to the nop pool.
1907 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
1908 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
1910 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
1912 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
1913 * doc/tm.texi: Regenerated.
1915 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
1917 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
1920 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
1922 * df-core.c (df_find_def): Compare register numbers.
1923 (df_find_use): Likewise.
1925 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
1928 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
1929 lra_in_progress for return.
1931 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
1933 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
1934 define_insn into define_insn_and_split and emit movsicc patterns.
1936 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
1938 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
1940 2013-04-12 Richard Biener <rguenther@suse.de>
1942 * tree-pass.h (TODO_do_not_ggc_collect): New.
1943 * passes.c (execute_one_ipa_transform_pass): Honor
1944 TODO_do_not_ggc_collect.
1945 (execute_one_pass): Likewise.
1948 2013-04-10 Richard Biener <rguenther@suse.de>
1950 * passes.c (init_optimization_passes): Remove reload pass.
1951 * ira.c (do_reload): Merge into ...
1953 (rest_of_handle_reload): Remove.
1954 (pass_reload): Likewise.
1955 * config/i386/i386.c (ix86_option_override): Refer to ira instead
1956 of reload for vzeroupper pass placement.
1958 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1960 PR tree-optimization/56918
1961 PR tree-optimization/56920
1962 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
1963 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
1964 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
1965 use wide_mul_with_sign method.
1967 2013-04-12 Richard Biener <rguenther@suse.de>
1969 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
1970 not be considered a gimple constant.
1972 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
1974 * fold-const.c (const_binop): Handle vector shifts by a scalar.
1975 (fold_binary_loc): Call const_binop also for mixed vector-scalar
1978 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
1979 Jakub Jelinek <jakub@redhat.com>
1981 * opts.c: Include diagnostic-color.h.
1982 (common_handle_option): Handle OPT_fdiagnostics_color_.
1983 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
1984 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
1985 (diagnostic-color.o): New.
1986 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
1987 (diagnostic_color_rule): New enum.
1988 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
1989 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
1990 the location string.
1991 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
1992 either NULL, or color kind.
1993 * diagnostic-color.c: New file.
1994 * diagnostic-color.h: New file.
1995 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
1997 * doc/invoke.texi (-fdiagnostics-color): Document.
1998 * pretty-print.h (pp_show_color): Define.
1999 (struct pretty_print_info): Add show_color field.
2000 * diagnostic.c: Include diagnostic-color.h.
2001 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
2002 macros. Colorize error:, warning: etc. strings and also the location
2004 (diagnostic_show_locus): Colorize the caret line.
2005 * pretty-print.c: Include diagnostic-color.h.
2006 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
2007 inside of %< %> quotes or quoted through q format modifier.
2009 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2011 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
2013 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2015 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
2017 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
2020 2013-04-11 Marek Polacek <polacek@redhat.com>
2022 PR tree-optimization/48184
2023 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
2025 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2027 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
2028 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
2029 (skip_simple_arithmetic): Tidy up.
2030 * tree.h (skip_simple_constant_arithmetic): Declare.
2032 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2034 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
2036 2013-04-11 Richard Biener <rguenther@suse.de>
2038 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2039 generate vector constants.
2041 2013-04-11 Richard Biener <rguenther@suse.de>
2043 PR tree-optimization/56878
2044 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
2045 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
2047 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2048 Prefer to align the DR with the most invariant base address.
2050 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2052 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
2055 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2057 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
2058 floating-point vector comparisons against 0.
2060 2013-04-11 Jakub Jelinek <jakub@redhat.com>
2062 PR tree-optimization/56899
2063 * fold-const.c (extract_muldiv_1): Apply distributive law
2064 only if TYPE_OVERFLOW_WRAPS (ctype).
2066 2013-04-11 Bin Cheng <bin.cheng@arm.com>
2069 * ira-costs.c (scan_one_insn): Check whether the source rtx of
2070 loading has side effect.
2072 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
2074 * config/sparc/sparc.c: Include tree-pass.h.
2075 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
2076 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
2077 head of file. Change return type. Split off gate function.
2078 (sparc_gate_work_around_errata): New function.
2079 (pass_work_around_errata): New pass definition.
2080 (insert_pass_work_around_errata) New pass insert definition to
2081 insert pass_work_around_errata just after delayed-branch scheduling.
2082 (sparc_option_override): Insert the pass.
2083 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
2085 2013-04-10 David S. Miller <davem@davemloft.net>
2087 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
2088 or -mcpu=hypersparc.
2090 * target.def (cstore_mode): New hook.
2091 * target.h: Include insn-codes.h
2092 * targhooks.c: Likewise.
2093 (default_cstore_mode): New function.
2094 * targhooks.h: Declare it.
2095 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
2096 * doc/tm.texi: Rebuild.
2097 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
2098 target hook, rather than inspecting the insn_data.
2099 * config/sparc/sparc.c (sparc_cstore_mode): New function.
2100 (TARGET_CSTORE_MODE): Redefine.
2101 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
2103 * config/sparc/predicates.md (cstore_result_operand): New special
2105 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
2106 Use it for operand 0.
2107 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
2108 (*snesi_special): Likewise.
2109 (*snesi_zero): Likewise.
2110 (*seqsi_zero): Likewise.
2111 (*sltu_insn): Likewise.
2112 (*sgeu_insn): Likewise.
2113 (*seqdi_special): Make operand 0 and comparison operation be of
2115 (*snedi_special): Likewise.
2116 (*snedi_special_vis3): Likewise.
2117 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
2118 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
2119 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
2120 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
2121 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
2122 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
2123 (*sltu_extend_sp64): Likewise.
2124 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
2125 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
2126 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
2127 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
2128 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
2130 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
2132 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
2133 (aarch64_start_file): Use the new function.
2135 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2136 Jason Merrill <jason@redhat.com>
2138 * common.opt: Add -gdwarf.
2139 * opts.c (common_handle_option): Handle it.
2140 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
2142 2013-04-10 Richard Biener <rguenther@suse.de>
2144 * passes.c (execute_todo): Do not call ggc_collect conditional here.
2145 (execute_one_ipa_transform_pass): But unconditionally here.
2146 (execute_one_pass): And here.
2147 (init_optimization_passes): Remove reload pass.
2148 * tree-pass.h (TODO_ggc_collect): Remove.
2149 (pass_reload): Likewise.
2150 * ira.c (do_reload): Merge into ...
2152 (rest_of_handle_reload): Remove.
2153 (pass_reload): Likewise.
2154 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2155 of reload for vzeroupper pass placement.
2156 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
2157 and todo_flags_finish of all passes.
2159 2013-04-10 Richard Biener <rguenther@suse.de>
2161 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
2162 first_const_oprnd field, rename first_def_type to first_op_type.
2163 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
2164 (vect_get_and_check_slp_defs): Always use the type of the
2165 operand. Allow mixed vect_external_def, vect_constant_def types.
2166 (vect_get_constant_vectors): Handle mixed vect_external_def,
2167 vect_constant_def types.
2169 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
2171 PR tree-optimization/55524
2172 * tree-ssa-math-opts.c
2173 (convert_mult_to_fma): Don't use an fms construct
2174 when we don't have an fms operation, but fnma, and it looks
2175 likely that we'll be able to use the latter.
2177 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2179 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
2181 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
2182 inline fail caused by overwritable functions.
2184 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
2186 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
2187 unnecessary bits in the constant power of two case.
2189 2013-04-10 Richard Biener <rguenther@suse.de>
2191 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
2192 broken code swapping operands.
2193 (vect_build_slp_tree): Do not compute load permutations here.
2194 (vect_analyze_slp_instance): Compute load permutations here,
2195 after building the SLP tree.
2197 2013-04-09 Christian Bruel <christian.bruel@st.com>
2199 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
2200 of next/prev_real_insn.
2202 2013-04-09 Jan Hubicka <jh@suse.cz>
2204 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2205 Drop aliased parameter.
2206 (function_and_variable_visibility): Do not handle alias pairs.
2207 * cgraph.c (varpool_externally_visible_p): Update prototype.
2208 * varpool.c (varpool_add_new_variable): Update.
2210 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2212 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
2214 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
2216 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
2218 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
2220 2013-04-09 Marek Polacek <polacek@redhat.com>
2222 PR tree-optimization/48762
2223 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
2225 2013-04-09 Richard Biener <rguenther@suse.de>
2227 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
2229 (vect_build_slp_tree): Likewise.
2230 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
2231 calculating the cost of a SLP instance.
2232 (vect_analyze_slp_instance): Use it from here, after building
2235 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2238 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
2239 expand_omp_for_static_chunk): Use simple_p = true in
2240 force_gimple_operand_gsi calls when assigning to addressable decls.
2242 2013-04-09 Jeff Law <law@redhat.com>
2244 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
2245 when the boolean was created by converting a wider object which
2246 had a boolean range.
2248 2013-04-09 Richard Biener <rguenther@suse.de>
2250 * tree-vectorizer.h (slp_void_p): Remove.
2251 (slp_tree): Typedef before _slp_tree declaration.
2252 (struct _slp_tree): Use a vector of slp_tree as children.
2253 (vect_get_place_in_interleaving_chain): Remove.
2254 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
2256 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
2258 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
2259 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2260 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2261 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
2262 Use slp_node instead of slp_void_p and adjust.
2264 2013-04-09 Richard Biener <rguenther@suse.de>
2266 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
2267 work that is not necessary.
2269 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2271 PR tree-optimization/56854
2272 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
2273 forward into clobber stmts if it would change MEM_REF lhs into
2276 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
2278 * tree.c (type_hash_lookup, type_hash_add): Make static.
2279 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
2281 2013-04-09 Richard Biener <rguenther@suse.de>
2283 * tree.h (unsave_expr_now): Remove.
2284 * tree-inline.c (mark_local_for_remap_r): Remove.
2285 (unsave_expr_1): Likewise.
2286 (unsave_r): Likewise.
2287 (unsave_expr_now): Likewise.
2288 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
2289 (propagate_tree_value): Likewise.
2291 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
2293 * doc/rtl.texi (sequence): Rewrite documentation to match the
2294 current use of SEQUENCE rtl objects.
2295 * rtl.def (SEQUENCE): Likewise.
2297 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
2298 Update documentation.
2299 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
2300 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
2302 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
2304 2013-04-08 Teresa Johnson <tejohnson@google.com>
2306 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
2307 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
2309 (estimate_edge_size_and_time): Add comment to suggest using rounding
2311 (estimate_node_size_and_time): Ditto.
2312 (remap_edge_change_prob): Use helper rounding divide methods.
2313 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
2314 (gimple_mod_pow2_value_transform): Ditto.
2315 (gimple_mod_subtract_transform): Ditto.
2316 (gimple_ic_transform): Ditto.
2317 (gimple_stringops_transform): Ditto.
2318 * stmt.c (conditional_probability): Ditto.
2319 (emit_case_dispatch_table): Ditto.
2320 * lto-cgraph.c (merge_profile_summaries): Ditto.
2321 * tree-optimize.c (execute_fixup_cfg): Ditto.
2322 * cfgcleanup.c (try_forward_edges): Ditto.
2323 * cfgloopmanip.c (scale_loop_profile): Ditto.
2325 (duplicate_loop_to_header_edge): Ditto.
2326 (lv_adjust_loop_entry_edge): Ditto.
2327 * tree-vect-loop.c (vect_transform_loop): Ditto.
2328 * profile.c (compute_branch_probabilities): Ditto.
2329 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
2330 * lto-streamer-in.c (input_cfg): Ditto.
2331 * gimple-streamer-in.c (input_bb): Ditto.
2332 * ipa-cp.c (update_profiling_info): Ditto.
2333 (update_specialized_profile): Ditto.
2334 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
2335 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
2337 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2338 (compute_trg_info): Ditto.
2339 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
2340 (purge_dead_edges): Ditto.
2341 * loop-unswitch.c (unswitch_loop): Ditto.
2342 * cgraphclones.c (cgraph_clone_edge): Ditto.
2343 (cgraph_clone_node): Ditto.
2344 * tree-inline.c (copy_bb): Ditto.
2345 (copy_edges_for_bb): Ditto.
2346 (initialize_cfun): Ditto.
2347 (copy_cfg_body): Ditto.
2348 (expand_call_inline): Ditto.
2350 2013-04-08 Kai Tietz <ktietz@redhat.com>
2352 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
2353 TARGET_CYGWIN64 by TARGET_64BIT.
2355 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2357 * config/epiphany/epiphany.md (GPR_1): New constant.
2358 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
2359 * config/epiphany/epiphany.c (gen_compare_reg):
2360 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
2361 is already in place.
2362 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
2363 Don't require being called during rtl expansion; If y operlaps r0,
2365 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
2366 (epiphany_expand_epilogue): Likewise.
2368 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
2369 Don't use CC_FPmode for ORDERED / UNORDERED.
2370 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
2372 * config/epiphany/constraints.md (CnL): New constraint.
2373 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
2374 * config/epiphany/predicates.md (add_operand): Allow 1024.
2376 * config/epiphany/epiphany.md (logical_op): New code iterator.
2377 (op_mnc): New code attribute.
2378 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
2379 (mov_f+1, mov_f+2): New peephole2 patterns.
2381 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
2382 (cstoresi4): Also allow re-use of zero result when doing a NE
2383 comparison to a non-zero operand.
2384 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2386 * config/epiphany/epiphany.md (<insn_opname>v2si3):
2387 Use gen_addsi3_i / gen_subsi3_i.
2389 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2393 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
2394 contain anything but clobbers, at most one __builtin_stack_restore,
2395 optionally debug stmts and final resx, and if it has at least one
2396 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
2397 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
2398 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
2399 which isn't defaut definition, remove them.
2400 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
2401 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
2402 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
2403 with MEM_REF LHS with SSA_NAME address.
2405 2013-04-08 Jeff Law <law@redhat.com>
2407 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
2409 2013-04-08 Richard Biener <rguenther@suse.de>
2411 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
2413 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
2414 determined vector type.
2415 (vect_analyze_data_refs): Likewise.
2416 (vect_get_new_vect_var): Adjust.
2417 (vect_create_destination_var): Preserve SSA name versions.
2418 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
2419 not dump anything here.
2421 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2423 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
2424 Add member lr_slot_known.
2425 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
2427 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
2428 Remove code that sets lr_slot_offset according to what a previous
2429 version of epiphany_emit_save_restore used to do.
2430 (epiphany_emit_save_restore): When doing an lr save or restore,
2431 set/verify lr_slot_known and lr_slot_offset.
2433 2013-04-08 Xinyu Qi <xyqi@marvell.com>
2436 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
2439 2013-04-08 Richard Biener <rguenther@suse.de>
2441 * alias.c (find_base_term): Fix thinko in previous change.
2443 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2445 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
2446 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
2447 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
2448 if possible to compute val.
2449 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
2450 For QImode integers don't require anything about precision. Use
2451 const_with_all_bytes_same to find out if the constant doesn't have
2452 repeated bytes in it.
2454 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2456 * config/s390/s390.c (s390_expand_insv): Only accept insertions
2459 2013-04-08 Marek Polacek <polacek@redhat.com>
2461 PR rtl-optimization/48182
2462 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
2465 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2468 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
2469 nuses, make sure we have a label.
2471 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2474 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
2475 (rs6000_emit_swdiv_low_precision): Remove.
2476 (rs6000_emit_swdiv): Rewrite to handle between one and four
2477 iterations of Newton-Raphson generally; modify required number of
2478 iterations for some cases.
2479 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
2481 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
2483 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
2484 set-but-unused variable.
2486 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
2487 basic blocks of released function bodies garbage-collectable.
2489 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
2490 (struct rtl_opt_pass): Add TODO_df_finish.
2492 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
2494 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2496 * config/arm/constraints.md (q): New constraint.
2497 * config/arm/ldrdstrd.md: New file.
2498 * config/arm/arm.md (ldrdstrd.md) New include.
2499 (arm_movdi): Use "q" instead of "r" constraint
2500 for double-word memory access.
2501 (movdf_soft_insn): Likewise.
2502 * config/arm/vfp.md (movdi_vfp): Likewise.
2503 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
2504 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
2505 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
2506 (mem_ok_for_ldrd_strd): Likewise.
2507 (output_move_double): Update assertion.
2509 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2511 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
2513 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2515 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
2516 define_insn_and_split.
2517 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
2519 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2521 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
2522 define_insn_and_split.
2523 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
2524 (shiftsi3_compare): New pattern.
2526 * config/arm/unspecs.md (UNSPEC_RRX): New.
2528 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2530 * config/arm/arm.md (negdi_extendsidi): New pattern.
2531 (negdi_zero_extendsidi): Likewise.
2533 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2535 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
2536 define_insn_and_split.
2537 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
2538 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
2540 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2542 * config/arm/arm.md (arm_subdi3): Convert define_insn into
2543 define_insn_and_split.
2544 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
2545 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
2547 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2549 * config/arm/arm.md (subsi3_carryin): New pattern.
2550 (subsi3_carryin_const): Likewise.
2551 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
2552 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
2554 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2556 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
2558 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2560 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
2561 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
2563 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2565 * config/arm/arm.c (arm_expand_builtin): Change fcode
2566 type to unsigned int.
2568 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2570 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
2572 2013-04-04 Ian Lance Taylor <iant@google.com>
2574 * doc/standards.texi (Standards): The Go frontend supports the Go 1
2577 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
2580 * df-scan.c (df_insn_delete): Disable failing assert.
2582 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2584 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
2585 New function prototype.
2586 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
2587 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
2588 (arm_builtin_vectorized_function): New function.
2590 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2592 * config/arm/arm_neon_builtins.def: New file.
2593 * config/arm/arm.c (neon_builtin_data): Move contents to
2594 arm_neon_builtins.def.
2595 (enum arm_builtins): Include neon builtin definitions.
2596 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
2597 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
2599 2013-04-04 Marek Polacek <polacek@redhat.com>
2601 PR tree-optimization/48186
2602 * predict.c (maybe_hot_frequency_p): Return false if
2603 HOT_BB_FREQUENCY_FRACTION is 0.
2604 (cgraph_maybe_hot_edge_p): Likewise.
2606 2013-04-04 Richard Biener <rguenther@suse.de>
2608 PR tree-optimization/56826
2609 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
2612 2013-04-04 Richard Biener <rguenther@suse.de>
2614 PR tree-optimization/56213
2615 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
2616 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
2618 2013-04-04 Richard Biener <rguenther@suse.de>
2620 PR tree-optimization/56837
2621 * tree-loop-distribution.c (classify_partition): For non-zero
2622 values require that the value has the same precision as its
2623 mode to be useful as memset value.
2625 2013-04-03 Nick Clifton <nickc@redhat.com>
2627 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
2628 (fmssf4): Use fmsf.s on E3V5 architectures.
2629 (fnmasf4): Use fnmaf.s on E3V5 architectures.
2630 (fnmssf4): Use fnmsf.s on E3V5 architectures.
2632 2013-04-03 Jeff Law <law@redhat.com>
2634 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
2635 (lra-eliminations.o): Likewise.
2637 2013-04-03 Teresa Johnson <tejohnson@google.com>
2639 * gcov-io.c (compute_working_sets): Moved most of body of old
2640 compute_working_sets here from profile.c.
2641 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
2642 (gcov_working_set_t): Moved typedef here from basic-block.h
2643 (compute_working_set): Declare.
2644 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
2645 (get_working_sets): Renamed from compute_working_set,
2646 replace most of body with call to new compute_working_sets.
2647 (get_exec_counts): Replace call to compute_working_sets
2648 to get_working_sets.
2649 * profile.h (get_working_sets): Renamed from compute_working_set.
2650 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
2651 to get_working_sets.
2652 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
2653 * gcov-dump.c (dump_working_sets): New function.
2655 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
2657 * hwint.c (sext_hwi, zext_hwi): New functions.
2658 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
2659 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
2660 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
2661 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
2662 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
2663 (sext_hwi, zext_hwi): New functions.
2665 2013-04-03 Jeff Law <law@redhat.com>
2667 PR tree-optimization/56799
2668 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
2669 back test for widening conversion erroneously dropped in prior change.
2671 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2674 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
2675 instead of next_real_insn.
2677 2013-04-03 Marek Polacek <polacek@redhat.com>
2680 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
2682 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2685 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
2687 (thumb1_output_casesi): Likewise.
2688 (thumb2_output_casesi): Likewise.
2690 2013-04-03 Richard Biener <rguenther@suse.de>
2692 PR tree-optimization/56817
2693 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2695 (tree_unroll_loops_completely_1): ... new function to manually
2696 walk the loop tree, properly defering outer loops of unrolled
2697 loops to later iterations.
2699 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2701 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
2702 (vectorizable_load): Likewise.
2703 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
2704 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
2706 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2708 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
2711 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2713 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
2715 2013-04-03 Bin Cheng <bin.cheng@arm.com>
2717 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
2719 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2721 PR tree-optimization/56790
2722 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
2725 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2727 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
2729 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
2730 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
2733 2013-04-03 Jakub Jelinek <jakub@redhat.com>
2736 * tree.h (force_folding_builtin_constant_p): New decl.
2737 * builtins.c (force_folding_builtin_constant_p): New variable.
2738 (fold_builtin_constant_p): Fold immediately also if
2739 force_folding_builtin_constant_p.
2741 2013-04-03 Richard Biener <rguenther@suse.de>
2743 PR tree-optimization/56812
2744 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2745 DRs of the same interleaving chain are independent.
2747 2013-04-02 Jason Merrill <jason@redhat.com>
2749 * gdbinit.in (pbb): Use debug fn.
2751 2013-04-02 Lawrence Crowl <crowl@google.com>
2753 * sese.h (struct ivtype_map_elt_s): Remove unused.
2754 (extern debug_ivtype_map): Remove unused.
2755 (extern eq_ivtype_map_elts): Remove unused.
2756 * sese.c (debug_ivtype_map): Removed unused.
2757 (debug_ivtype_map_1): Removed unused.
2758 (debug_ivtype_elt): Remove unused.
2759 (eq_ivtype_map_elts): Remove unused.
2762 2013-04-02 Kai Tietz <ktietz@redhat.com>
2765 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
2766 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
2767 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
2769 (legitimize_pe_coff_symbol): Likewise.
2770 (is_imported_p): New helper-function.
2771 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
2772 for Windows x64 targets.
2773 (ix86_expand_prologue): Optimize for pe-coff targets.
2774 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
2775 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
2776 medium/large code-model.
2777 (legitimize_pic_address): Likewise.
2778 (legitimize_tls_address): Likewise.
2779 (ix86_expand_call): Likewise.
2780 (x86_output_mi_thunk): Likewise.
2781 (get_dllimport_decl): Add new beimport argument.
2782 (construct_plt_address): Don't assert for x64 pe-coff targets.
2783 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
2785 (SYMBOL_FLAG_STUBVAR): New macro.
2786 (SYMBOL_REF_STUBVAR_P): Likewise.
2787 * config/i386/winnt.c (stub_list): New structure.
2788 (stub_head): New local variable.
2789 (i386_pe_record_stub): New function.
2790 (i386_pe_file_end): Emit refptr-stubs.
2792 2013-04-02 Jakub Jelinek <jakub@redhat.com>
2794 PR rtl-optimization/56745
2795 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
2796 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
2799 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
2800 and both of them are MEM_REFs, just compare first argument for
2801 equality and attempt to deal even with differing offsets.
2804 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
2805 of gimple_clobber_p to be MEM_REF.
2806 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
2807 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
2808 after gimplification.
2809 * asan.c (get_mem_ref_of_assignment): Don't instrument
2810 gimple_clobber_p stmts.
2811 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
2812 gimple_clobber_p stmt if they have MEM_REF lhs and
2813 are dead because of another gimple_clobber_p stmt.
2814 * tree-ssa-live.c (clear_unused_block_pointer): Treat
2815 gimple_clobber_p stmts like debug stmts.
2816 (remove_unused_locals): Remove clobbers with MEM_REF lhs
2817 that refer to unused VAR_DECLs or uninitialized values.
2818 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
2819 gimple_clobber_p stmts if they refer to removed parameters.
2820 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
2823 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
2825 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
2826 using SWI48 mode attribute.
2828 2013-04-02 Wei Mi <wmi@google.com>
2830 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
2831 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
2832 *<rotate_insn><mode>3_mask in i386.md.
2834 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
2836 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
2838 2013-04-02 Richard Biener <rguenther@suse.de>
2840 PR tree-optimization/56778
2841 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2842 Runtime alias tests are not supported for gather loads.
2843 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
2844 stmts referenced from SSA operands before updating SSA form.
2846 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
2847 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2849 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
2850 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
2851 * config/arm/cortex-a53.md: New file.
2852 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
2853 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
2854 * config/arm/arm.c (arm_issue_rate): Likewise.
2855 * config/arm/arm-tune.md: Regenerate
2856 * config/arm/arm-tables.opt: Regenerate.
2857 * config/arm/arm-cores.def: Add cortex-a53.
2859 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
2861 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
2864 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2866 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
2867 scalar load/store operations using B/H registers.
2868 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
2870 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2872 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
2874 * config/aarch64/aarch64.c
2875 (aarch64_simd_scalar_immediate_valid_for_move): New.
2876 * config/aarch64/aarch64-protos.h
2877 (aarch64_simd_scalar_immediate_valid_for_move): New.
2878 * config/aarch64/constraints.md (Dh, Dq): New.
2879 * config/aarch64/iterators.md (hq): New.
2881 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
2883 * reorg.c (get_branch_condition): Deal with conditional returns.
2884 (fill_simple_delay_slots): Remove dead code dealing with jumps.
2886 2013-04-01 Wei Mi <wmi@google.com>
2888 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
2889 Truncate operand 2 using %b asm operand modifier.
2890 (*<shift_insn><mode>3_mask): Ditto.
2891 (*<rotate_insn><mode>3_mask): Ditto.
2893 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
2896 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
2898 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
2900 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
2902 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
2904 2013-03-30 Lawrence Crowl <crowl@google.com>
2906 * dse.c (clear_alias_sets): Remove never set.
2907 (disqualified_clear_alias_sets): Remove never set.
2908 (clear_alias_mode_pool): Remove never set.
2909 (dse_step0): Remove condition that is never true.
2910 (canon_address): Remove condition that is never true.
2911 (dse_step7): Remove condition that is never true.
2912 (rest_of_handle_dse): Remove condition that is never true.
2913 (rest_of_handle_dse::did_global): Remove never read from above.
2914 (dse_step2_spill): Remove never called from above.
2915 (dse_step5_spill): Remove never called from above.
2917 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
2919 * doc/md.texi (Standard Names) <casesi>: Update documentation for
2920 JUMP_TABLE_DATA changes.
2921 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
2922 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
2923 (Insns) <jump_table_data>: New entry.
2924 * doc/tm.texi: Regenerate.
2926 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
2928 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
2929 for table jump at the end of a basic block using tablejump_p.
2930 * targhooks.c (default_invalid_within_doloop): Likewise.
2931 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
2932 target hook implementation that is identical to the default hook.
2933 (rs6000_invalid_within_doloop): Remove.
2935 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
2936 unused variable from tablejump_p call.
2938 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
2939 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
2940 (INSN_DELETED_P): Likewise.
2941 (emit_jump_table_data): New prototype.
2942 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
2943 after 4th as unused.
2944 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
2945 * sched-vis.c (print_insn): Likewise.
2946 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
2947 insn for compatibility with back ends that use next_active_insn to
2948 identify jump table data.
2949 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
2950 (remove_insn): Likewise.
2951 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
2953 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
2954 (emit_jump_table_data): New function.
2956 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
2957 basic block, a JUMP_TABLE_DATA never is.
2958 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
2959 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
2960 off from code handling real insns.
2961 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
2962 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
2963 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
2964 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
2965 is not a NONDEBUG_INSN_P.
2966 * ira-costs.c (scan_one_insn): Likewise.
2967 * jump.c (mark_all_labels): Likewise.
2968 (mark_jump_label_1): Likewise.
2969 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2970 * lra.c (get_insn_freq): Expect all insns reaching here to be in
2972 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
2973 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
2974 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
2975 JUMP_TABLE_DATA_P insns.
2976 (calculate_elim_costs_all_insns): Likewise.
2977 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
2978 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
2979 (delete_output_reload): Code style fixups.
2980 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
2981 insn flags on this non-insn.
2982 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
2983 as scheduling barriers, for pre-change compatibility.
2984 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
2985 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
2987 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
2988 redundant JUMP_TABLE_DATA_P test.
2989 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
2990 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2991 (frv_for_each_packet): Likewise.
2992 * config/i386/i386.c (min_insn_size): Likewise.
2993 (ix86_avoid_jump_mispredicts): Likewise.
2994 * config/m32r/m32r.c (m32r_is_insn): Likewise.
2995 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
2996 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2997 (mips16_insn_length): Robustify.
2998 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
2999 (mips16_split_long_branches): Likewise.
3000 * config/pa/pa.c (pa_combine_instructions): Likewise.
3001 * config/rs6000/rs6000.c (get_next_active_insn): Treat
3002 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
3003 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
3004 as contributing to pool range lengths.
3005 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
3006 Remove redundant JUMP_TABLE_DATA_P test.
3007 (sh_loop_align): Likewise.
3008 (split_branches): Likewise.
3009 (sh_insn_length_adjustment): Likewise.
3010 * config/spu/spu.c (get_branch_target): Likewise.
3012 2013-03-29 Jan Hubicka <jh@suse.cz>
3014 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
3015 gcov streaming; stream hot bb threshold to ltrans.
3016 * predict.c (get_hot_bb_threshold): Break out from ....
3017 (maybe_hot_count_p): ... here.
3018 (set_hot_bb_threshold): New function.
3019 * lto-section-in.c (lto_section_name): Add profile.
3020 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
3021 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
3023 (histogram_entry): New structure.
3024 (histogram, histogram_pool): New global vars.
3025 (histogram_hash): New structure.
3026 (histogram_hash::hash): New method.
3027 (histogram_hash::equal): Likewise.
3028 (account_time_size): New function.
3029 (cmp_counts): New function.
3030 (dump_histogram): New function.
3031 (ipa_profile_generate_summary): New function.
3032 (ipa_profile_write_summary): New function.
3033 (ipa_profile_read_summary): New function.
3034 (ipa_profile): Decide on threshold.
3035 (pass_ipa_profile): Add ipa_profile_write_summary and
3036 ipa_profile_read_summary.
3037 * Makefile.in (ipa.o): Update dependencies.
3038 * lto-streamer.h (LTO_section_ipa_profile): New section.
3040 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
3042 * tree.h (VAR_P): New.
3044 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
3047 * doc/invoke.texi ([-fwhole-program]): Fix typo.
3049 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
3051 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
3052 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3053 (control_flow_insn_p): Likewise.
3054 * cfgrtl.c (duplicate_insn_chain): Likewise.
3055 * final.c (get_attr_length_1): Likewise.
3056 (shorten_branches): Likewise.
3057 (final_scan_insn): Likewise.
3058 * function.c (instantiate_virtual_regs): Likewise.
3059 * gcse.c (insert_insn_end_basic_block): Likewise.
3060 * ira-costs.c (scan_one_insn): Likewise.
3061 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3062 * lra.c (check_rtl): Likewise.
3063 * reload1.c (elimination_costs_in_insn): Likewise.
3064 * reorg.c (follow_jumps): Likewise.
3066 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
3067 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3068 (thumb_far_jump_used_p): Likewise.
3069 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
3070 (workaround_speculation): Likewise.
3071 (add_sched_insns_for_speculation): Likewise.
3072 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
3073 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3074 (frv_for_each_packet): Likewise.
3075 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
3076 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
3077 (final_emit_insn_group_barriers): Likewise.
3078 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3079 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3080 (mips16_insn_length): Likewise.
3081 * config/pa/pa.c (pa_reorg): Likewise.
3082 (pa_combine_instructions): Likewise.
3083 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
3084 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
3085 (sh_reorg): Likewise.
3086 (split_branches): Likewise.
3087 * config/spu/spu.c (get_branch_target): Likewise.
3089 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
3092 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
3094 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
3095 Fix declaration name.
3097 2013-03-28 Lawrence Crowl <crowl@google.com>
3099 * graphds.h (struct graph.indicies): Remove unused.
3100 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
3101 (SCOP_ORIGINAL_PDDRS): Remove unused.
3102 * sese.h (extern insert_loop_close_phis): Removed unused.
3103 (extern insert_guard_phis): Removed unused.
3104 (extern ivtype_map_elt_info): Removed unused.
3105 (new_ivtype_map_elt): Removed unused.
3106 * sese.c (ivtype_map_elt_info): Removed unused.
3108 2013-03-28 Lawrence Crowl <crowl@google.com>
3110 * Makefile.in: Add several missing include dependences.
3112 (test-dump.o): New. This object is not added to any executable,
3113 but is present for ad-hoc testing.
3115 (debug (const bitmap_head_def &)): New.
3116 (debug (const bitmap_head_def *)): New.
3118 (extern debug (const bitmap_head_def &)): New.
3119 (extern debug (const bitmap_head_def *)): New.
3121 (debug (edge_def &)): New.
3122 (debug (edge_def *)): New.
3124 (debug (basic_block_def &)): New.
3125 (debug (basic_block_def *)): New.
3127 (dump_node (const_tree, int, FILE *)): Correct source file.
3129 (debug (die_struct &)): New.
3130 (debug (die_struct *)): New.
3132 (extern debug (die_struct &)): New.
3133 (extern debug (die_struct *)): New.
3134 * gimple-pretty-print.c
3135 (debug (gimple_statement_d &)): New.
3136 (debug (gimple_statement_d *)): New.
3137 * gimple-pretty-print.h
3138 (extern debug (gimple_statement_d &)): New.
3139 (extern debug (gimple_statement_d *)): New.
3141 (debug (ira_allocno_copy &)): New.
3142 (debug (ira_allocno_copy *)): New.
3143 (debug (ira_allocno &)): New.
3144 (debug (ira_allocno *)): New.
3146 (extern debug (ira_allocno_copy &)): New.
3147 (extern debug (ira_allocno_copy *)): New.
3148 (extern debug (ira_allocno &)): New.
3149 (extern debug (ira_allocno *)): New.
3151 (debug (live_range &)): New.
3152 (debug (live_range *)): New.
3154 (debug (lra_live_range &)): New.
3155 (debug (lra_live_range *)): New.
3157 (debug (lra_live_range &)): New.
3158 (debug (lra_live_range *)): New.
3160 (debug (omega_pb_d &)): New.
3161 (debug (omega_pb_d *)): New.
3163 (extern debug (omega_pb_d &)): New.
3164 (extern debug (omega_pb_d *)): New.
3166 (debug (const rtx_def &)): New.
3167 (debug (const rtx_def *)): New.
3169 (debug_tree (tree): Move within file.
3170 (debug_raw (const tree_node &)): New.
3171 (debug_raw (const tree_node *)): New.
3172 (dump_tree_via_hooks (const tree_node *, int)): New.
3173 (debug (const tree_node &)): New.
3174 (debug (const tree_node *)): New.
3175 (debug_verbose (const tree_node &)): New.
3176 (debug_verbose (const tree_node *)): New.
3177 (debug_head (const tree_node &)): New.
3178 (debug_head (const tree_node *)): New.
3179 (debug_body (const tree_node &)): New.
3180 (debug_body (const tree_node *)): New.
3181 (debug_vec_tree (tree): Move and reimplement in terms of dump.
3182 (debug (vec<tree, va_gc> &)): New.
3183 (debug (vec<tree, va_gc> *)): New.
3185 (extern debug (const rtx_def &)): New.
3186 (extern debug (const rtx_def *)): New.
3188 (debug_raw (simple_bitmap_def &)): New.
3189 (debug_raw (simple_bitmap_def *)): New.
3190 (debug (simple_bitmap_def &)): New.
3191 (debug (simple_bitmap_def *)): New.
3193 (extern debug (simple_bitmap_def &)): New.
3194 (extern debug (simple_bitmap_def *)): New.
3195 (extern debug_raw (simple_bitmap_def &)): New.
3196 (extern debug_raw (simple_bitmap_def *)): New.
3198 (debug (vinsn_def &)): New.
3199 (debug (vinsn_def *)): New.
3200 (debug_verbose (vinsn_def &)): New.
3201 (debug_verbose (vinsn_def *)): New.
3202 (debug (expr_def &)): New.
3203 (debug (expr_def *)): New.
3204 (debug_verbose (expr_def &)): New.
3205 (debug_verbose (expr_def *)): New.
3206 (debug (vec<rtx> &)): New.
3207 (debug (vec<rtx> *)): New.
3209 (extern debug (vinsn_def &)): New.
3210 (extern debug (vinsn_def *)): New.
3211 (extern debug_verbose (vinsn_def &)): New.
3212 (extern debug_verbose (vinsn_def *)): New.
3213 (extern debug (expr_def &)): New.
3214 (extern debug (expr_def *)): New.
3215 (extern debug_verbose (expr_def &)): New.
3216 (extern debug_verbose (expr_def *)): New.
3217 (extern debug (vec<rtx> &)): New.
3218 (extern debug (vec<rtx> *)): New.
3220 (_list_iter_cond_expr): Make inline instead of static.
3222 (debug (sreal &)): New.
3223 (debug (sreal *)): New.
3225 (extern debug (sreal &)): New.
3226 (extern debug (sreal *)): New.
3228 (extern debug_raw (const tree_node &)): New.
3229 (extern debug_raw (const tree_node *)): New.
3230 (extern debug (const tree_node &)): New.
3231 (extern debug (const tree_node *)): New.
3232 (extern debug_verbose (const tree_node &)): New.
3233 (extern debug_verbose (const tree_node *)): New.
3234 (extern debug_head (const tree_node &)): New.
3235 (extern debug_head (const tree_node *)): New.
3236 (extern debug_body (const tree_node &)): New.
3237 (extern debug_body (const tree_node *)): New.
3238 (extern debug (vec<tree, va_gc> &)): New.
3239 (extern debug (vec<tree, va_gc> *)): New.
3241 (debug (struct loop &)): New.
3242 (debug (struct loop *)): New.
3243 (debug_verbose (struct loop &)): New.
3244 (debug_verbose (struct loop *)): New.
3245 * tree-dump.c: Add header dependence.
3247 (extern debug (struct loop &)): New.
3248 (extern debug (struct loop *)): New.
3249 (extern debug_verbose (struct loop &)): New.
3250 (extern debug_verbose (struct loop *)): New.
3252 (debug (data_reference &)): New.
3253 (debug (data_reference *)): New.
3254 (debug (vec<data_reference_p> &)): New.
3255 (debug (vec<data_reference_p> *)): New.
3256 (debug (vec<ddr_p> &)): New.
3257 (debug (vec<ddr_p> *)): New.
3259 (extern debug (data_reference &)): New.
3260 (extern debug (data_reference *)): New.
3261 (extern debug (vec<data_reference_p> &)): New.
3262 (extern debug (vec<data_reference_p> *)): New.
3263 (extern debug (vec<ddr_p> &)): New.
3264 (extern debug (vec<ddr_p> *)): New.
3266 (debug (pt_solution &)): New.
3267 (debug (pt_solution *)): New.
3269 (extern debug (pt_solution &)): New.
3270 (extern debug (pt_solution *)): New.
3272 (debug (_var_map &)): New.
3273 (debug (_var_map *)): New.
3274 (debug (tree_live_info_d &)): New.
3275 (debug (tree_live_info_d *)): New.
3277 (extern debug (_var_map &)): New.
3278 (extern debug (_var_map *)): New.
3279 (extern debug (tree_live_info_d &)): New.
3280 (extern debug (tree_live_info_d *)): New.
3282 2013-03-28 Jan Hubicka <jh@suse.cz>
3284 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
3286 2013-03-28 Ian Bolton <ian.bolton@arm.com>
3288 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
3289 record only when desired or required.
3291 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
3293 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
3294 *vec_extractv2di_1_rex64. Use x64 isa attribute.
3296 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3298 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
3299 (*andsi3_compare0_uxtw): New pattern.
3300 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
3301 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
3303 2013-03-28 Jan Hubicka <jh@suse.cz>
3305 * data-streamer-in.c (streamer_read_gcov_count): New function.
3306 * gimple-streamer-out.c: Include value-prof.h.
3307 (output_gimple_stmt): Output histogram.
3308 (output_bb): Use streamer_write_gcov_count.
3309 * value-prof.c: Include data-streamer.h
3310 (dump_histogram_value): Add HIST_TYPE_MAX.
3311 (stream_out_histogram_value): New function.
3312 (stream_in_histogram_value): New function.
3313 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
3314 (stream_out_histogram_value, stream_in_histogram_value): Declare.
3315 * data-streamer-out.c (streamer_write_gcov_count): New function.
3316 (streamer_write_gcov_count_stream): New function.
3317 * lto-cgraph.c (lto_output_edge): Update counter streaming.
3318 (lto_output_node): Likewise.
3319 (input_node, input_edge): Likewise.
3320 * lto-streamer-out.c (output_cfg): Update streaming.
3321 * lto-streamer-in.c (input_cfg): Likewise.
3322 * data-streamer.h (streamer_write_gcov_count,
3323 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
3324 * gimple-streamer-in.c: Include value-prof.h
3325 (input_gimple_stmt): Input histograms.
3326 (input_bb): Update profile streaming.
3328 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3330 * genmodes.c (emit_max_int): New function.
3331 (emit_insn_modes_h): Added call to emit_max_function.
3332 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
3334 * machmode.def: Fixed comment.
3336 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3338 * combine.c (try_combine): Removed useless assert.
3339 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
3341 2013-03-28 Marek Polacek <polacek@redhat.com>
3342 Richard Biener <rguenther@suse.de>
3344 PR tree-optimization/56695
3345 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
3346 build signed result of a vector comparison.
3347 * tree-cfg.c (verify_gimple_comparison): Check that a result
3348 of a vector comparison has signed type.
3350 2013-03-28 Richard Biener <rguenther@suse.de>
3352 PR tree-optimization/37021
3353 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
3354 do not restrict gaps between groups.
3355 * tree-vect-stmts.c (vectorizable_load): Properly account for
3356 a gap between groups.
3358 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
3360 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
3361 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
3364 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
3366 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
3367 * doc/extend.texi (Named Address Spaces): Ditto.
3368 (Variable Attributes): Ditto.
3370 2013-03-27 Kai Tietz <ktietz@redhat.com>
3372 * config.build: Add support for cygwin x64 target.
3373 * config.gcc: Likewise.
3374 * config.host: Likewise.
3375 * configure.ac: Likewise
3376 * configure: Regenerated.
3378 2013-03-27 Kai Tietz <ktietz@redhat.com>
3380 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
3381 * config/i386/t-cygwin-w64: New file.
3382 * config/i386/cygwin-w64.h: New file.
3383 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
3384 and add support for x64-cygwin target.
3385 (CPP_SPEC): Likewise.
3386 (CXX_WRAP_SPEC_LIST): Undefine before define.
3387 (LIBGCJ_SONAME): Use 15 as version.
3389 2013-03-27 Richard Biener <rguenther@suse.de>
3391 PR tree-optimization/56716
3392 * tree-ssa-structalias.c (perform_var_substitution): Adjust
3393 dumping for ref nodes.
3395 2013-03-27 Martin Jambor <mjambor@suse.cz>
3397 PR tree-optimization/55334
3398 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
3399 restricted pointers to arrays.
3401 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3403 * Makefile.in (.SUFFIXES): Add .cc.
3404 (.c.o): Apply same recipe for implicit rule .cc.o.
3406 2013-03-27 Richard Biener <rguenther@suse.de>
3408 PR tree-optimization/37021
3409 * tree-vect-data-refs.c (vect_check_strided_load): Allow
3410 REALPART/IMAGPART_EXPRs around the supported refs.
3411 * tree-ssa-structalias.c (find_func_aliases): Assume that
3412 floating-point values are not used to transfer pointers.
3414 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3416 * target.def (TARGET_HAS_IFUNC_P): New target hook.
3417 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
3418 * doc/tm.texi: Regenerate.
3419 * targhooks.h (default_has_ifunc_p): New.
3420 * targhooks.c (default_has_ifunc_p): Ditto.
3421 * config/linux-protos.h: New file.
3422 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
3423 this hook for linux which disables support of indirect functions in
3425 * config/linux-android.c: New file.
3426 * config/t-linux-android.c: Ditto.
3427 * config.gcc: Added new object file linux-android.o.
3428 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
3429 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
3430 * varasm.c (do_assemble_alias): Likewise.
3431 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
3432 doesn't support indirect functions.
3433 * configure: Regenerate.
3435 2013-03-27 Bin Cheng <bin.cheng@arm.com>
3438 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
3439 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
3442 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3444 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
3446 2013-03-27 Terry Guo <terry.guo@arm.com>
3448 * config/arm/arm-cores.def: Added core cortex-r7.
3449 * config/arm/arm-tune.md: Regenerated.
3450 * config/arm/arm-tables.opt: Regenerated.
3451 * doc/invoke.texi: Added entry for core cortex-r7.
3453 2013-03-27 Walter Lee <walt@tilera.com>
3455 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3456 double-decrement of next_scratch_regno.
3458 2013-03-27 Walter Lee <walt@tilera.com>
3460 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3462 (insn_v1mulus): Ditto.
3463 (insn_v2muls): Ditto.
3465 2013-03-27 Walter Lee <walt@tilera.com>
3467 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
3468 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
3470 2013-03-27 Walter Lee <walt@tilera.com>
3472 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
3473 (*sibcall_value): Ditto.
3475 2013-03-27 Walter Lee <walt@tilera.com>
3477 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
3478 (insn_mnz_v8qi): ... this ...
3479 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
3481 (insn_v<n>mnz): Replaced by ...
3482 (insn_v1mnz): ... this ...
3483 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
3485 (insn_mz_<mode>): Replaced by ...
3486 (insn_mz_v8qi): ... this ...
3487 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
3489 (insn_v<n>mz): Replaced by ...
3490 (insn_v1mz): ... this ...
3491 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
3494 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
3496 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
3498 2013-03-26 Roland McGrath <mcgrathr@google.com>
3500 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
3501 than fprintf with a non-constant, non-format string.
3503 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3505 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
3506 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
3507 operand 0 predicate.
3508 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
3509 attribute. Use general_x64nomem_operand as operand 1 predicate.
3510 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
3511 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3512 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
3513 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3514 (mov<mode>_insv_1): Remove expander. Merge insn with
3515 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
3516 Use general_x64nomem_operand as operand 1 predicate.
3517 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
3518 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
3519 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3520 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
3521 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
3522 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
3523 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3524 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
3525 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
3526 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
3527 (general_x64nomem_operand): Ditto.
3529 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
3531 * config/rtems.opt: Add -pthread option.
3533 2013-03-26 Richard Biener <rguenther@suse.de>
3535 * alias.c (find_base_term): Avoid redundant and not used recursion.
3536 (base_alias_check): Get the initial base term from the caller.
3537 (true_dependence_1): Compute and pass base terms to base_alias_check.
3538 (write_dependence_p): Likewise.
3539 (may_alias_p): Likewise.
3541 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
3543 * config/aarch64/aarch64.c (aarch64_classify_address): Support
3544 PC-relative load in SI modes and above only.
3546 2013-03-26 Xinyu Qi <xyqi@marvell.com>
3548 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
3549 * config/arm/iwmmxt.md (WCGR0): Update.
3550 (WCGR1, WCGR2, WCGR3): Likewise.
3552 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3554 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
3555 Use x64 and nox64 isa attributes.
3557 2013-03-26 Richard Biener <rguenther@suse.de>
3559 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3560 alignment computations and rely on get_object_alignment_1
3561 for the !TYPE_P case.
3562 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
3564 2013-03-26 Walter Lee <walt@tilera.com>
3566 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
3567 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
3569 2013-03-25 Jeff Law <law@redhat.com>
3571 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
3572 check for INTEGRAL_TYPE_P that was missing due to checking in
3573 wrong version of prior patch.
3575 2013-03-25 Walter Lee <walt@tilera.com>
3577 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
3578 TILEGX_INSN_SHUFFLEBYTES1.
3579 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
3581 (tilegx_builtins): Ditto.
3582 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
3584 2013-03-25 Walter Lee <walt@tilera.com>
3586 * config/tilegx/tilegx.md (floatsisf2): New pattern.
3587 (floatunssisf2): New pattern.
3588 (floatsidf2): New pattern.
3589 (floatunssidf2): New pattern.
3591 2013-03-25 Walter Lee <walt@tilera.com>
3593 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
3594 tests for constraint J, K, N, P.
3596 2013-03-25 Walter Lee <walt@tilera.com>
3598 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
3599 Use indirect/pcrel encoding.
3600 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
3603 2013-03-25 Steve Ellcey <sellcey@mips.com>
3605 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
3606 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
3607 * config/mips/mips.c (mips_option_override): Set IMADD default.
3608 * config/mips/mips.h (PTF_AVOID_IMADD): New.
3609 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
3610 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
3611 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
3612 * doc/invoke.texi (-mimadd/-mno-imadd): New.
3614 2013-03-25 Jeff Law <law@redhat.com>
3616 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
3617 slightly to avoid creating and folding useless trees. Simplify
3618 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
3620 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
3622 * config/i386/i386.md (*zero_extendsidi2): Merge with
3623 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
3624 * config/i386/predicates.md (x86_64_zext_operand): Rename from
3625 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
3626 targets. Clarify comment.
3628 2013-03-25 Martin Jambor <mjambor@suse.cz>
3630 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
3631 pass-through jump functions differently.
3632 (ipa_read_jump_function): Likewise. Also use setter functions to set
3635 2013-03-25 Martin Jambor <mjambor@suse.cz>
3637 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
3638 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
3640 (ipa_get_indirect_edge_target): New function.
3641 (devirtualization_time_bonus): New parameter known_aggs, pass it to
3642 ipa_get_indirect_edge_target. Update all callers.
3643 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
3644 ipa_get_indirect_edge_target_1 instead of calling
3645 ipa_get_indirect_edge_target.
3646 (create_specialized_node): Pass aggvlas to
3647 ipcp_discover_new_direct_edges.
3649 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3651 * config/arm/arm.md (f_sels, f_seld): New types.
3652 (*cmov<mode>): New pattern.
3653 * config/arm/predicates.md (arm_vsel_comparison_operator): New
3656 2013-03-25 Kai Tietz <ktietz@redhat.com>
3658 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
3659 POSIX-printf for mingw-hosted builds.
3661 2013-03-25 Richard Biener <rguenther@suse.de>
3664 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
3665 must-not-throw stmt location.
3667 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3669 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
3670 Emit load-acquire versions when acq is true.
3671 (arm_emit_store_exclusive): Add rel parameter.
3672 Emit store-release versions when rel is true.
3673 (arm_split_compare_and_swap): Use acquire-release instructions
3675 of barriers when appropriate.
3676 (arm_split_atomic_op): Likewise.
3677 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
3678 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
3679 (VUNSPEC_SLX): Likewise.
3680 (VUNSPEC_LDA): Likewise.
3681 (VUNSPEC_STL): Likewise.
3682 * config/arm/sync.md (atomic_load<mode>): New pattern.
3683 (atomic_store<mode>): Likewise.
3684 (arm_load_acquire_exclusive<mode>): Likewise.
3685 (arm_load_acquire_exclusivesi): Likewise.
3686 (arm_load_acquire_exclusivedi): Likewise.
3687 (arm_store_release_exclusive<mode>): Likewise.
3689 2013-03-25 Catherine Moore <clm@codesourcery.com>
3691 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
3692 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
3693 * config/mip/predicates.md (lwsp_swsp_operand,
3694 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
3695 sb16_operand, db4_operand, db7_operand, ib3_operand,
3696 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
3697 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
3698 andi16_operand): New predicates.
3699 * config/mips/mips.md (compression): New attribute.
3700 (enabled): New attribute.
3701 (length): Consider compression in computing length.
3702 (shift_compression): New code attribute.
3703 (*add<mode>3): New operands. Record compression.
3704 (sub<mode>3): Likewise.
3705 (one_cmpl<mode>2): Likewise.
3706 (*and<mode>3): Likewise.
3707 (*ior<mode>3): Likewise.
3708 (unnamed pattern for xor): Likewise.
3709 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
3710 (*<optab><mode>3): Likewise.
3711 (*mov<mode>_internal: Likewise.
3712 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
3713 (mips_unsigned_immediate_p): New.
3714 (umips_lwsp_swsp_address_p): New.
3715 (m16_based_address_p): New.
3716 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
3717 (mips_unsigned_immediate_p): New prototype.
3718 (lwsp_swsp_address_p): New prototype.
3719 (m16_based_address_p): New prototype.
3720 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
3721 (mips_signed_immediate_p): New function.
3722 (m16_based_address_p): New function.
3723 (lwsp_swsp_address_p): New function.
3724 (mips_print_operand_punctuation): Recognize short delay slot insns
3725 for microMIPS.add<mode>3"
3727 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3730 * config/arm/iterators.md (v_cmp_result): New mode attribute.
3731 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
3733 2013-03-25 Richard Biener <rguenther@suse.de>
3735 PR tree-optimization/56689
3736 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
3739 2013-03-25 Richard Biener <rguenther@suse.de>
3741 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
3743 (memory_references): Likewise.
3744 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
3745 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
3746 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
3747 (gather_mem_refs_in_loops): Fold into ...
3748 (analyze_memory_references): ... this. Move initialization
3749 to tree_ssa_lim_initialize.
3750 (fill_always_executed_in): Rename to ...
3751 (fill_always_executed_in_1): ... this.
3752 (fill_always_executed_in): Move contains_call computation to
3753 this new function from ...
3754 (tree_ssa_lim_initialize): ... here.
3755 (tree_ssa_lim): Call fill_always_executed_in.
3757 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3759 * postreload.c (reload_combine): Fix code detecting returns.
3761 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3763 * function.c (emit_use_return_register_into_block): On cc0 targets,
3764 do not emit the sequence between cc0 setter and user.
3766 2013-03-25 Kai Tietz <ktietz@redhat.com>
3768 * config/i386/predicates.md (local_symbolic_operand): Interpret
3769 dll-imported symbols as none-local.
3771 2013-03-25 Richard Biener <rguenther@suse.de>
3773 * tree-ssa-loop-im.c (struct depend): Remove.
3774 (struct lim_aux_data): Make depends a vec of gimples.
3775 (free_lim_aux_data): Adjust.
3776 (add_dependency): Likewise.
3777 (set_level): Likewise.
3779 2013-03-25 Richard Biener <rguenther@suse.de>
3782 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
3783 the pointer returned by calls with ECF_MALLOC set.
3785 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3787 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
3789 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3791 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
3792 using MMXMODE mode iterator.
3793 (*move<mode>_internal): Merge with *movv2sf_internal and
3794 *movv2sf_internal_rex64 using MMXMODE mode iterator.
3796 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3798 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
3799 (record_last_mem_set_info): Likewise.
3801 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
3802 of XNEWVEC followed by memset.
3803 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
3805 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3807 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
3808 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
3809 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
3810 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
3811 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
3812 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
3813 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
3814 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
3815 BARRIER_P instead of GET_CODE.
3817 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3819 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
3820 inaccuracy in the probing code.
3822 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
3823 (ctrapdi4): Likewise.
3825 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3827 * calls.c (expand_call): Add missing guard to code handling return
3828 of non-BLKmode structures in MSB.
3829 * function.c (expand_function_end): Likewise.
3831 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3833 * combine.c (try_combine): Adjust comment. Do not add the set of
3834 insn #0 if the destination indirectly is set or dies in insn #2.
3835 Tidy up code to distribute a new note.
3837 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3839 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
3840 also for alternatives 16 and 17.
3842 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3844 * config/i386/sse.md (*mov<mode>_internal): Merge with
3845 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
3846 Emit insn template depending on type attribute. Use
3847 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3848 movd instead of movq mnemonic for interunit moves. Rewrite mode
3849 attribute calculation. Remove unit attribute calculation.
3850 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
3851 Set prefix_data16 attribute for DImode ssemov types.
3852 Use Ym instead of y for SSE-MMX conversion alternatives.
3853 Reorder operand constraints.
3855 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
3857 * df.h (df_insn_delete): Adjust prototype.
3858 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
3859 and let it decide whether mark the basic block dirty.
3860 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
3861 * df-scan.c (df_insn_info_delete): New helper function, split
3862 off from df_insn_delete.
3863 (df_scan_free_bb_info): Use it.
3864 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
3866 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
3867 that the insn is actually an insn and it has a non-NULL basic block.
3868 Do not mark basic block dirty if only deleting a DEBUG_INSN.
3870 2013-03-22 Richard Biener <rguenther@suse.de>
3872 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
3874 (mem_ref_alloc): Do not allocate them.
3875 (refs_independent_p): Do not query or maintain a cache.
3877 2013-03-22 Richard Biener <rguenther@suse.de>
3879 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
3880 (gather_mem_refs_in_loops): Do not compute it.
3881 (analyze_memory_references): Do not allocate it.
3882 (tree_ssa_lim_finalize): Do not free it.
3883 (for_all_locs_in_loop): Do not query all_refs_in_loop.
3885 2013-03-22 Richard Biener <rguenther@suse.de>
3887 * is-a.h (as_a): Use gcc_checking_assert.
3889 2013-03-22 Ian Bolton <ian.bolton@arm.com>
3891 * config/aarch64/aarch64.c (aarch64_print_operand): New
3892 format specifier for printing a constant in hex.
3893 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
3894 format specifier for printing second operand.
3896 2013-03-22 Richard Biener <rguenther@suse.de>
3898 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
3900 (gather_mem_refs_in_loops): Perform store accumulation here.
3901 (create_vop_ref_mapping_loop): Remove.
3902 (create_vop_ref_mapping): Likewise.
3903 (analyze_memory_references): Initialize refs_stored_in_loop.
3904 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
3905 (record_indep_loop): Remove.
3906 (record_dep_loop): New function.
3907 (ref_indep_loop_p_1): Adjust to only walk over references
3908 in the loop, not its subloops.
3909 (ref_indep_loop_p): Rename to ...
3910 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
3911 maintaining a more fine-grained cache.
3912 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
3913 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
3915 2013-03-22 Richard Biener <rguenther@suse.de>
3917 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
3918 (struct mem_ref): Make accesses_in_loop a vec of a vec of
3919 aggregate mem_ref_loc.
3920 (free_mem_ref_locs): Inline into ...
3921 (memref_free): ... this and adjust.
3922 (mem_ref_alloc): Adjust.
3923 (mem_ref_locs_alloc): Remove.
3924 (record_mem_ref_loc): Adjust.
3925 (get_all_locs_in_loop): Rewrite into ...
3926 (for_all_locs_in_loop): ... this iterator.
3927 (rewrite_mem_ref_loc): New functor.
3928 (rewrite_mem_refs): Use for_all_locs_in_loop.
3929 (sm_set_flag_if_changed): New functor.
3930 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
3931 (ref_always_accessed): New functor.
3932 (ref_always_accessed_p): Use for_all_locs_in_loop.
3934 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3936 * tree-pass.h (PROP_gimple_lvec): New.
3937 * passes.c (dump_properties): Handle PROP_gimple_lvec.
3938 (init_optimization_passes): Move pass_lower_vector.
3939 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
3941 (pass_lower_vector): Provide PROP_gimple_lvec.
3942 (pass_lower_vector_ssa): Likewise.
3943 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
3945 2013-03-21 Mark Wielaard <mjw@redhat.com>
3947 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
3949 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
3951 * config/i386/i386.md (*movdi_internal): Disparage slightly
3952 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
3953 conversion alternatives.
3955 2013-03-21 Jakub Jelinek <jakub@redhat.com>
3958 * diagnostic.def (DK_WERROR): New kind.
3959 * diagnostic.h (werrorcount): Define.
3960 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
3961 promoted to DK_ERROR, increment DK_WERROR counter instead of
3963 * toplev.c (toplev_main): Call print_ignored_options even if
3964 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
3965 even if just werrorcount is non-zero.
3968 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
3970 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
3971 (string_cst_pool_decl): New function.
3972 (optimize_one_addr_into_implicit_ptr): New function.
3973 (resolve_addr_in_expr): Optimize DWARF location expression
3974 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
3975 which doesn't live in memory, but has DW_AT_location or
3976 DW_AT_const_value, or refers to a string literal, into
3977 DW_OP_GNU_implicit_pointer.
3978 (optimize_location_into_implicit_ptr): New function.
3979 (resolve_addr): If removing DW_AT_location of a variable because
3980 it was DW_OP_addr of address of the variable, but the variable doesn't
3981 live in memory, try to emit const value attribute for the initializer.
3983 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3985 * tree.h (VECTOR_TYPE_P): New macro.
3986 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
3988 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
3989 VEC_COND_EXPR cannot be lvalues.
3990 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
3992 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3994 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
3995 Restrict the transformation to equal modes.
3997 2013-03-21 Richard Biener <rguenther@suse.de>
3999 PR tree-optimization/39326
4000 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
4001 (MEM_ANALYZABLE): Adjust.
4002 (record_mem_ref_loc): Move bitmap ops ...
4003 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
4004 unanalyzable refs, do not record locations for it.
4005 (analyze_memory_references): Allocate ref zero as shared
4007 (refs_independent_p): Do not test for unanalyzed mems here.
4008 (ref_indep_loop_p_1): Special-case disambiguation against
4010 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
4012 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
4014 * config/arm/arm-protos.h (tune_params): Add
4015 prefer_neon_for_64bits field.
4016 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
4017 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
4018 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4019 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4020 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
4021 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4022 (arm_option_override): Handle -mneon-for-64bits new option.
4023 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
4024 (prefer_neon_for_64bits): Declare new variable.
4025 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
4026 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
4027 (arch_enabled): Handle new arch types. Remove support for onlya8
4029 (one_cmpldi2): Use new arch names.
4030 (zero_extend<mode>di2, extend<mode>di2): Ditto.
4031 * config/arm/arm.opt (mneon-for-64bits): Add option.
4032 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
4033 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
4034 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
4036 * doc/invoke.texi (-mneon-for-64bits): Document.
4038 2013-03-21 Richard Biener <rguenther@suse.de>
4040 PR tree-optimization/39326
4041 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
4042 (sort_bbs_in_loop_postorder_cmp): New function.
4043 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
4045 2013-03-21 Richard Biener <rguenther@suse.de>
4047 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
4048 (vect_insert_into_interleaving_chain): Likewise.
4049 (vect_drs_dependent_in_basic_block): Inline ...
4050 (vect_slp_analyze_data_ref_dependence): ... here. New function,
4052 (vect_analyze_data_ref_dependence): ... here. Simplify.
4053 (vect_check_interleaving): Simplify.
4054 (vect_analyze_data_ref_dependences): Likewise. Split out ...
4055 (vect_slp_analyze_data_ref_dependences): ... this new function.
4056 (dr_group_sort_cmp): New function.
4057 (vect_analyze_data_ref_accesses): Compute data-reference groups
4058 here instead of in vect_analyze_data_ref_dependence. Use
4059 a more efficient algorithm.
4060 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
4061 vect_slp_analyze_data_ref_dependences. Call
4062 vect_analyze_data_ref_accesses earlier.
4063 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4064 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
4065 (vect_slp_analyze_data_ref_dependences): New prototype.
4067 2013-03-21 Richard Biener <rguenther@suse.de>
4069 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
4070 ref is stored in the loop.
4071 (find_refs_for_sm): Walk only over all stores.
4072 (store_motion_loop): Allocate from lim_bitmap_obstack.
4073 (store_motion): Likewise.
4075 2013-03-21 Richard Biener <rguenther@suse.de>
4077 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
4078 Update virtual SSA form.
4080 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4082 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
4083 * configure: Regenerate.
4084 * config.in: Regenerate.
4085 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
4086 if !HAVE_LD_EH_FRAME_CIEV3.
4088 2013-03-21 Richard Biener <rguenther@suse.de>
4090 * tree-cfg.c (verify_expr_no_block): New function.
4091 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
4092 nor DECL_VALUE_EXPR have locations with associated blocks.
4093 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
4094 (clear_unused_block_pointer): Remove code dealing with
4095 blocks in DECL_DEBUG_EXPR locations.
4097 2013-03-21 Richard Biener <rguenther@suse.de>
4099 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
4100 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
4101 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
4102 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
4103 instead of DECL_DEBUG_EXPR_IS_FROM.
4104 * gimplify.c (gimplify_modify_expr): Likewise.
4105 * tree-cfg.c (verify_expr_location_1): Likewise.
4106 * tree-complex.c (create_one_component_var): Likewise.
4107 * tree-sra.c (create_access_replacement): Likewise.
4108 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
4109 (clear_unused_block_pointer): Likewise.
4110 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4111 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4112 * var-tracking.c (var_debug_decl): Likewise.
4113 (track_expr_p): Likewise.
4114 * tree-inline.c (add_local_variables): Likewise. Set
4115 DECL_HAS_DEBUG_EXPR_P after copying it.
4116 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4117 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
4119 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4122 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
4123 * configure: Regenerate.
4124 * config.in: Regenerate.
4125 * config/i386/i386.md (*movdf_internal): Use
4126 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4127 movd instead of movq mnemonic for interunit moves.
4128 (*movdi_internal): Ditto.
4130 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4132 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
4133 (abd<mode>_3): New pattern.
4134 (aba<mode>_3): New pattern.
4135 (fabd<mode>_3): New pattern.
4137 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4139 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
4140 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
4141 occurrence of REGISTER_PREFIX as its empty string.
4143 2013-03-20 Jeff Law <law@redhat.com>
4145 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
4146 addititional equivalences for equality comparisons between an SSA_NAME
4147 and a constant where the SSA_NAME was set from a widening conversion.
4149 2013-03-20 Walter Lee <walt@tilera.com>
4151 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
4153 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4155 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
4156 depending on type attribute.
4157 (*movti_internal): Ditto.
4158 (*movtf_internal): Ditto.
4159 (*movxf_internal): Ditto.
4160 (*movdf_internal): Ditto.
4161 (*movsf_internal): Ditto.
4163 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4165 * config/i386/i386.md (*movti_internal): Set prefix attribute to
4166 maybe_vex for sselog1 and ssemov types.
4167 (*movdi_internal): Reorder operand constraints.
4168 (*movsi_internal): Ditto. Set prefix attribute to
4169 maybe_vex for sselog1 and ssemov types.
4170 (*movtf_internal): Set prefix attribute to maybe_vex
4171 for sselog1 and ssemov types.
4172 (*movdf_internal): Ditto. Set prefix_data16 attribute for
4173 DImode ssemov types. Reorder operand constraints.
4174 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
4175 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
4176 attribute for SImode ssemov types. Reorder operand constraints.
4178 2013-03-20 Martin Jambor <mjambor@suse.cz>
4180 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
4181 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
4183 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
4185 * config/rs6000/predicates.md (indexed_address, update_address_mem
4186 update_indexed_address_mem): New predicates.
4187 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
4188 attribute for load/store instructions.
4189 * config/rs6000/dfp.md (movsd_store): Likewise.
4190 (movsd_load): Likewise.
4191 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
4192 (unnamed HI->DI extend define_insn): Likewise.
4193 (unnamed SI->DI extend define_insn): Likewise.
4194 (unnamed QI->SI extend define_insn): Likewise.
4195 (unnamed QI->HI extend define_insn): Likewise.
4196 (unnamed HI->SI extend define_insn): Likewise.
4197 (unnamed HI->SI extend define_insn): Likewise.
4198 (extendsfdf2_fpr): Likewise.
4199 (movsi_internal1): Likewise.
4200 (movsi_internal1_single): Likewise.
4201 (movhi_internal): Likewise.
4202 (movqi_internal): Likewise.
4203 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
4204 attribute for load/store instructions.
4205 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
4207 (mov<mode>_softfloat): Likewise.
4208 (mov<mode>_hardfloat32): Likewise.
4209 (mov<mode>_hardfloat64): Likewise.
4210 (mov<mode>_softfloat64): Likewise.
4211 (movdi_internal32): Likewise.
4212 (movdi_internal64): Likewise.
4213 (probe_stack_<mode>): Likewise.
4215 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4217 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
4218 floating point, and decimal floating point to reload iterator.
4220 * config/rs6000/constraints.md (wl constraint): New constraints to
4221 return FLOAT_REGS if certain options are used to reduce the number
4222 of separate patterns that exist in the file.
4223 (wx constraint): Likewise.
4224 (wz constraint): Likewise.
4226 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4227 -mdebug=reg, print wg, wl, wx, and wz constraints.
4228 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4229 Initialize the reload functions for 64-bit binary/decimal floating
4231 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4232 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4233 create the buffer on the stack to overcome not having a 32-bit
4235 (rs6000_emit_move): Likewise.
4236 (rs6000_secondary_memory_needed_rtx): Likewise.
4237 (rs6000_alloc_sdmode_stack_slot): Likewise.
4238 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4239 via xxlxor, just like DFmode 0.0.
4241 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
4242 define as 1 if we are running on a power7 or newer.
4243 (enum r6000_reg_class_enum): Add new constraints.
4245 * config/rs6000/dfp.md (movsd): Delete, combine with binary
4246 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4247 with other moves by using conditional constraits (wg). Use LFIWZX
4248 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
4249 (movsd splitter): Likewise.
4250 (movsd_hardfloat): Likewise.
4251 (movsd_softfloat): Likewise.
4253 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
4254 binary and decimal floating point moves.
4255 (fmove_ok): New attributes to combine binary and decimal floating
4256 point moves, and to combine power6x (mfpgpr) moves along normal
4258 (real_value_to_target): Likewise.
4265 (movsf): Combine binary and decimal floating point moves. Combine
4266 power6x (mfpgpr) moves with other moves by using conditional
4267 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
4268 (mov<mode> for SFmode/SDmode); Likewise.
4269 (SFmode/SDmode splitters): Likewise.
4270 (movsf_hardfloat): Likewise.
4271 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
4272 (movsf_softfloat): Likewise.
4273 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
4275 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
4276 wx and wz constraints.
4278 * config/rs6000/constraints.md (wg constraint): New constraint to
4279 return FLOAT_REGS if -mmfpgpr (power6x) was used.
4281 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
4284 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4285 -mdebug=reg, print wg, wl, wx, and wz constraints.
4286 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4287 Initialize the reload functions for 64-bit binary/decimal floating
4289 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4290 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4291 create the buffer on the stack to overcome not having a 32-bit
4293 (rs6000_emit_move): Likewise.
4294 (rs6000_secondary_memory_needed_rtx): Likewise.
4295 (rs6000_alloc_sdmode_stack_slot): Likewise.
4296 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4297 via xxlxor, just like DFmode 0.0.
4299 * config/rs6000/dfp.md (movdd): Delete, combine with binary
4300 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4301 with other moves by using conditional constraits (wg). Use LFIWZX
4302 and STFIWX for loading SDmode on power7.
4303 (movdd splitters): Likewise.
4304 (movdd_hardfloat32): Likewise.
4305 (movdd_softfloat32): Likewise.
4306 (movdd_hardfloat64_mfpgpr): Likewise.
4307 (movdd_hardfloat64): Likewise.
4308 (movdd_softfloat64): Likewise.
4310 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
4311 64-bit binary and decimal floating point moves.
4312 (FMOVE64X): Likewise.
4313 (movdf): Combine 64-bit binary and decimal floating point moves.
4314 Combine power6x (mfpgpr) moves with other moves by using
4315 conditional constraits (wg).
4316 (mov<mode> for DFmode/DDmode): Likewise.
4317 (DFmode/DDmode splitters): Likewise.
4318 (movdf_hardfloat32): Likewise.
4319 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
4320 (movdf_softfloat32): Likewise.
4321 (movdf_hardfloat64_mfpgpr): Likewise.
4322 (movdf_hardfloat64): Likewise.
4323 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
4324 (movdf_softfloat64): Likewise.
4325 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
4326 (reload_<mode>_load): Move to later in the file so they aren't in
4327 the middle of the floating point move insns.
4328 (reload_<mode>_store): Likewise.
4330 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
4333 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
4334 constraint if -mdebug=reg.
4335 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
4336 Enable using dd reload support if needed.
4338 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
4339 binary and decimal floating point moves in rs6000.md.
4340 (movtd_internal): Likewise.
4342 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
4343 decimal floating point moves.
4345 (movtf_internal): Likewise.
4346 (mov<mode>_internal, TDmode/TFmode): Likewise.
4347 (movtf_softfloat): Likewise.
4348 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
4350 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
4351 movdi_internal64, using wg constraint for move direct operations.
4352 (movdi_internal64): Likewise.
4354 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
4355 MODES_TIEABLE_P for selected modes. Print the numerical value of
4356 the various virtual registers. Use GPR/FPR first/last values,
4357 instead of hard coding the register numbers. Print which modes
4358 have reload functions registered.
4359 (rs6000_option_override_internal): If -mdebug=reg, trace the options
4360 settings before/after setting cpu, target and subtarget settings.
4361 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
4362 and for secondary reload failures in rs6000_secondary_reload_inner.
4363 (rs6000_secondary_reload_fail): Likewise.
4364 (rs6000_secondary_reload_inner): Likewise.
4366 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
4367 macros for first/last GPR and FPR registers.
4368 (LAST_GPR_REGNO): Likewise.
4369 (FIRST_FPR_REGNO): Likewise.
4370 (LAST_FPR_REGNO): Likewise.
4372 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
4373 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
4374 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
4375 (vcond<mode><mode>): Likewise.
4376 (vcondu<mode><mode>): Likewise.
4377 (vector_gtu<mode>): Likewise.
4378 (vector_gte<mode>): Likewise.
4379 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
4380 to prevent the compiler from converting DImode operations to TImode.
4381 (ior<mode>3): Likewise.
4382 (and<mode>3): Likewise.
4383 (one_cmpl<mode>2): Likewise.
4384 (nor<mode>3): Likewise.
4385 (andc<mode>3): Likewise.
4387 * config/rs6000/constraints.md (wt constraint): New constraint
4388 that returns VSX_REGS if TImode is allowed in VSX registers.
4390 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
4393 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
4394 similar to TImode, but it is restricted to being in the GPRs.
4396 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
4397 TImode to occupy a single VSX register.
4399 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
4400 -mvsx-timode for power7/power8.
4401 (power7 cpu): Likewise.
4402 (power8 cpu): Likewise.
4404 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
4405 sure that TFmode/TDmode take up two registers if they are ever
4406 allowed in the upper VSX registers.
4407 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
4409 (rs6000_init_hard_regno_mode_ok): Likewise.
4410 (rs6000_debug_reg_global): Add debugging for PTImode and wt
4411 constraint. Print if LRA is turned on.
4412 (rs6000_option_override_internal): Give an error if -mvsx-timode
4413 and VSX is not enabled.
4414 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
4415 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
4416 to reg+offset addressing. Use PTImode when checking offset
4417 addresses for validity.
4418 (reg_offset_addressing_ok_p): Likewise.
4419 (rs6000_legitimate_offset_address_p): Likewise.
4420 (rs6000_legitimize_address): Likewise.
4421 (rs6000_legitimize_reload_address): Likewise.
4422 (rs6000_legitimate_address_p): Likewise.
4423 (rs6000_eliminate_indexed_memrefs): Likewise.
4424 (rs6000_emit_move): Likewise.
4425 (rs6000_secondary_reload): Likewise.
4426 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
4427 reloads to fpr registers to continue to use reg+offset addressing,
4428 but 64-bit reloads to altivec registers need reg+reg addressing.
4429 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
4430 it. Treat LO_SUM like a PLUS operation.
4431 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
4432 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
4433 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
4434 registers to share a register with a smaller sized type, since VSX
4435 puts scalars in the upper 64-bits.
4436 (print_operand): Add support for PTImode.
4437 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
4438 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
4439 registers, but don't have arithmetic support.
4440 (rs6000_memory_move_cost): Add test for VSX.
4441 (rs6000_opt_masks): Add -mvsx-timode.
4443 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
4446 (VSr): Use wt constraint for TImode.
4447 (VSv): Drop TImode support.
4448 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
4449 (vsx_movti_64bit): Likewise.
4450 (vsx_movti_32bit): Likewise.
4451 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
4452 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
4453 one '?' on the appropriate output constraint. Do not allow TImode
4454 logical operations on 32-bit systems.
4455 (vsx_ior<mode>3): Likewise.
4456 (vsx_xor<mode>3): Likewise.
4457 (vsx_one_cmpl<mode>2): Likewise.
4458 (vsx_nor<mode>3): Likewise.
4459 (vsx_andc<mode>3): Likewise.
4460 (vsx_concat_<mode>): Likewise.
4461 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
4463 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
4464 OPTION_MASK_VSX_TIMODE.
4465 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
4466 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
4468 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
4469 (TI2 iterator): New iterator for TImode, PTImode.
4470 (wd mode attribute): Add values for vector types.
4471 (movti_string): Replace TI move operations with operations for TImode
4472 and PTImode. Add support for TImode being allowed in VSX registers.
4473 (mov<mode>_string, TImode/PTImode): Likewise.
4474 (movti_ppc64): Likewise.
4475 (mov<mode>_ppc64, TImode/PTImode): Likewise.
4476 (TI mode splitters): Likewise.
4478 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
4481 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
4483 PR tree-optimization/56355
4484 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
4485 Also handle integers with undefined overflow.
4487 2013-03-20 Catherine Moore <clm@codesourcery.com>
4488 Maciej W. Rozycki <macro@codesourcery.com>
4489 Tom de Vries <tom@codesourcery.com>
4490 Nathan Sidwell <nathan@codesourcery.com>
4491 Iain Sandoe <iain@codesourcery.com>
4492 Nathan Froyd <froydnj@codesourcery.com>
4493 Chao-ying Fu <fu@mips.com>
4495 * doc/extend.texi: (micromips, nomicromips, nocompression):
4496 Document new function attributes.
4497 * doc/invoke.texi (minterlink-compressed, mmicromips,
4498 m14k, m14ke, m14kec): Document new options.
4499 (minterlink-mips16): Update documentation.
4500 * doc/md.texi (ZC, ZD): Document new constraints.
4501 * configure.ac (gcc_cv_as_micromips): Check if linker
4502 supports the .set micromips directive.
4503 * configure: Regenerate.
4504 * config.in: Regenerate.
4505 * config/mips/mips-tables.opt: Regenerate.
4506 * config/mips/micromips.md: New file.
4507 * constraints.md (ZC, ZD): New constraints.
4508 * config/mips/predicates.md (movep_src_register): New predicate.
4509 (movep_src_operand): New predicate.
4510 (non_volatile_mem_operand): New predicate.
4511 * config/mips/mips.md (multimem): New type.
4512 (length): Differentiate between 17-bit and 18-bit branch offsets.
4513 (MOVEP1, MOVEP2): New mode iterator.
4514 (mov_<load>l): Use ZC constraint.
4515 (mov_<load>r): Likewise.
4516 (mov_<store>l): Likewise.
4517 (mov_<store>r): Likewise.
4518 (*branch_equality<mode>_inverted): Add microMIPS support.
4519 (*branch_equality<mode>): Likewise.
4520 (*jump_absolute): Likewise.
4521 (indirect_jump_<mode>): Likewise.
4522 (tablejump_<mode>): Likewise.
4523 (<optab>_internal): Likewise.
4524 (sibcall_internal): Likewise.
4525 (sibcall_value_internal): Likewise.
4526 (prefetch): Use constraint ZD.
4527 * config/mips/mips.opt (minterlink-compressed): New option.
4528 (minterlink-mips16): Now an alias for minterlink-compressed.
4529 (mmicromips): New option.
4530 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4531 (compare_and_swap_12): Likewise.
4532 (sync_add<mode>): Likewise.
4533 (sync_<optab>_12): Likewise.
4534 (sync_old_<optab>_12): Likewise.
4535 (sync_new_<optab>_12): Likewise.
4536 (sync_nand_12): Likewise.
4537 (sync_old_nand_12): Likewise.
4538 (sync_new_nand_12): Likewise.
4539 (sync_sub<mode>): Likewise.
4540 (sync_old_add<mode>): Likewise.
4541 (sync_old_sub<mode>): Likewise.
4542 (sync_new_add<mode>): Likewise.
4543 (sync_new_sub<mode>): Likewise.
4544 (sync_<optab><mode>): Likewise.
4545 (sync_old_<optab><mode>): Likewise.
4546 (sync_new_<optab><mode>): Likewise.
4547 (sync_nand<mode>): Likewise.
4548 (sync_old_nand<mode>): Likewise.
4549 (sync_new_nand<mode>): Likewise.
4550 (sync_lock_test_and_set<mode>): Likewise.
4551 (test_and_set_12): Likewise.
4552 (atomic_compare_and_swap<mode>): Likewise.
4553 (atomic_exchange<mode>_llsc): Likewise.
4554 (atomic_fetch_add<mode>_llsc): Likewise.
4555 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4556 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4557 (umips_save_restore_pattern_p): Likewise.
4558 (umips_load_store_pair_p): Likewise.
4559 (umips_output_load_store_pair): Likewise.
4560 (umips_movep_target_p): Likewise.
4561 (umips_12bit_offset_address_p): Likewise.
4562 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4563 (mips_base_mips16): Rename this...
4564 (mips_base_compression_flags): ...to this. Update all uses.
4565 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4566 (mips_mips16_decl_p): Delete.
4567 (mips_nomips16_decl_p): Delete.
4568 (mips_get_compress_on_flags): New function.
4569 (mips_get_compress_off_flags): New function.
4570 (mips_get_compress_mode): New function.
4571 (mips_get_compress_on_name): New function.
4572 (mips_get_compress_off_name): New function.
4573 (mips_insert_attributes): Support multiple compression types.
4574 (mips_merge_decl_attributes): Likewise.
4575 (umips_12bit_offset_address_p): New function.
4576 (mips_start_function_definition): Emit .set micromips directive.
4577 (mips_call_may_need_jalx_p): New function.
4578 (mips_function_ok_for_sibcall): Add microMIPS support.
4579 (mips_print_operand_punctuation): Support short delay slots and
4581 (umips_swm_mask, umips_swm_encoding): New.
4582 (umips_build_save_restore): New function.
4583 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4584 (was_mips16_p): Remove.
4585 (old_compression_mode): New.
4586 (mips_set_compression_mode): New function.
4587 (mips_set_current_function): Add microMIPS support.
4588 (mips_option_override): Likewise.
4589 (umips_save_restore_pattern_p): New function.
4590 (umips_output_save_restore): New function.
4591 (umips_load_store_pair_p_1): New function.
4592 (umips_load_store_pair_p): New function.
4593 (umips_output_load_store_pair_1): New function.
4594 (umips_output_load_store_pair): New function.
4595 (umips_movep_target_p) New function.
4596 (mips_prepare_pch_save): Add microMIPS support.
4597 * config/mips/mips.h (TARGET_COMPRESSION): New.
4598 (TARGET_CPU_CPP_BUILTINS): Update macro
4599 to use new compression flags and to support microMIPS.
4600 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4601 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4602 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4603 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4604 (ASM_SPEC): Support mmicromips and mno-micromips.
4605 (M16STORE_REG_P): New macro.
4606 (MIPS_CALL): Support TARGET_MICROMIPS.
4607 (MICROMIPS_J): New macro.
4608 (mips_base_mips16): Rename this...
4609 (mips_base_compression_flags): ...to this.
4610 (UMIPS_12BIT_OFFSET_P): New macro.
4611 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4612 (MULTILIB_DIRNAMES): Likewise.
4613 2013-03-20 Richard Biener <rguenther@suse.de>
4615 PR tree-optimization/56661
4616 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
4617 the result does not have to be distinct.
4619 2013-03-20 Richard Biener <rguenther@suse.de>
4621 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
4624 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4625 Steven Bosscher <steven@gcc.gnu.org>
4627 PR rtl-optimization/56605
4628 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
4630 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4633 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
4634 that require movd instead of movq.
4636 2013-03-20 Richard Biener <rguenther@suse.de>
4638 * tree-ssa-structalias.c (struct variable_info): Add pointer
4639 to the first field of an aggregate with sub-vars. Make
4640 this and the pointer to the next subfield its ID.
4641 (vi_next): New function.
4642 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
4643 storedanything_id, integer_id): Increment by one.
4644 (new_var_info, get_call_vi, lookup_call_clobber_vi,
4645 get_call_clobber_vi): Adjust.
4646 (solution_set_expand): Simplify and speedup.
4647 (solution_set_add): Inline into ...
4648 (set_union_with_increment): ... this. Adjust accordingly.
4649 (do_sd_constraint): Likewise.
4650 (do_ds_constraint): Likewise.
4651 (do_complex_constraint): Simplify.
4652 (build_pred_graph): Adjust.
4653 (solve_graph): Likewise. Simplify and speedup.
4654 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
4655 get_constraint_for_component_ref, get_constraint_for_1,
4656 first_vi_for_offset, first_or_preceding_vi_for_offset,
4657 create_function_info_for, create_variable_info_for_1,
4658 create_variable_info_for, intra_create_variable_infos): Adjust.
4659 (init_base_vars): Push NULL for ID zero.
4660 (compute_points_to_sets): Adjust.
4662 2013-03-20 Richard Biener <rguenther@suse.de>
4664 * cfgloop.c (verify_loop_structure): Streamline and avoid
4665 ICEing on corrupt loop tree.
4666 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
4669 2013-03-20 Richard Biener <rguenther@suse.de>
4671 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
4672 check whether an SSA update is needed.
4674 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
4676 * config/mips/constraints.md (T): Rename to...
4680 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
4681 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
4683 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4685 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
4686 (*subsi3_carryin_uxtw): Likewise.
4688 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4690 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
4691 (*rorsi3_insn_uxtw): Likewise.
4693 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4695 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
4696 (*extrsi5_insn_uxtw): Likewise.
4698 2013-03-19 Richard Biener <rguenther@suse.de>
4700 PR tree-optimization/56273
4701 * passes.c (init_optimization_passes): Move second VRP after DOM.
4703 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
4705 * config/i386/i386.md (*movti_internal): Merge from
4706 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
4707 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
4708 nox64 isa attributes.
4710 2013-03-18 Richard Biener <rguenther@suse.de>
4712 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
4714 (merge_node_constraints): Likewise.
4715 (build_succ_graph): Likewise.
4716 (valid_graph_edge): Inline into single caller.
4717 (unify_nodes): Likewise. Use bitmap_set_bit return value
4719 (scc_visit): Fix formatting and variable use.
4720 (do_sd_constraint): Use gcc_checking_assert.
4721 (do_ds_constraint): Likewise.
4722 (do_complex_constraint): Likewise.
4723 (condense_visit): Likewise. Cleanup.
4724 (dump_pred_graph): New function.
4725 (perform_var_substitution): Dump the pred-graph before
4726 variable substitution.
4727 (find_equivalent_node): Use gcc_checking_assert.
4728 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
4730 2013-03-18 Richard Biener <rguenther@suse.de>
4732 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4733 Remove cond_expr_stmt_list argument and do not gimplify the
4735 (vect_loop_versioning): Adjust.
4736 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4737 Cleanup to use less temporaries.
4738 (vect_create_data_ref_ptr): Cleanup.
4740 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4742 PR tree-optimization/56635
4743 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
4744 require types_compatible_p types.
4746 2013-03-18 Nick Clifton <nickc@redhat.com>
4748 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
4751 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
4752 Add missing line to comment describing function.
4754 2013-03-18 Richard Biener <rguenther@suse.de>
4756 PR tree-optimization/56210
4757 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4758 Handle string / character search functions.
4759 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4761 2013-03-18 Richard Biener <rguenther@suse.de>
4764 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
4765 and implement properly.
4766 * gimple.h (gimple_cond_single_var_p): Remove.
4768 2013-03-18 Richard Biener <rguenther@suse.de>
4770 * tree-data-ref.h (find_data_references_in_loop): Declare.
4771 * tree-data-ref.c (get_references_in_stmt): Use a stack
4772 vector pre-allocated in the callers.
4773 (find_data_references_in_stmt): Adjust.
4774 (graphite_find_data_references_in_stmt): Likewise.
4775 (create_rdg_vertices): Likewise.
4776 (find_data_references_in_loop): Export.
4777 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
4778 Compute dependences here...
4779 (vect_analyze_data_refs): ...not here. When we encounter
4780 a non-vectorizable data reference in basic-block vectorization
4781 truncate the data reference vector. Do not bother to
4782 fixup data-dependence information for gather loads.
4783 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
4784 of data references, as reported.
4786 2013-03-18 Richard Biener <rguenther@suse.de>
4788 PR tree-optimization/3713
4789 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
4790 has_constants and expr.
4791 (stmt_has_constants): Properly valueize SSA names when deciding
4792 whether the stmt has constants.
4794 2013-03-18 Richard Biener <rguenther@suse.de>
4796 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
4797 whole function when there is nothing to do.
4798 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
4799 * tree-vectorizer.c (vectorize_loops): Update virtual and
4800 loop-closed SSA once.
4801 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
4803 2013-03-18 Richard Biener <rguenther@suse.de>
4806 * domwalk.c (bb_postorder): New global static.
4807 (cmp_bb_postorder): New function.
4808 (walk_dominator_tree): Replace scheme imposing an order for
4809 visiting dominator sons by one sorting them at the time they
4810 are pushed on the stack.
4812 2013-03-18 Richard Biener <rguenther@suse.de>
4814 PR tree-optimization/39326
4815 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
4816 (struct mem_ref): Replace mem member with ao_ref typed member.
4817 (MEM_ANALYZABLE): Adjust.
4818 (memref_eq): Likewise.
4819 (mem_ref_alloc): Likewise.
4820 (gather_mem_refs_stmt): Likewise.
4821 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
4822 (execute_sm_if_changed_flag_set): Adjust.
4823 (execute_sm): Likewise.
4824 (ref_always_accessed_p): Likewise.
4825 (refs_independent_p): Likewise.
4826 (can_sm_ref_p): Likewise.
4828 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4831 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
4832 return 1 even for !unsignedp.
4834 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4836 * config/i386/i386.md (isa): Add x64 and nox64.
4837 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
4838 (*pushtf): Enable *roF alternative for x64 isa only.
4839 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
4840 mode attribute of integer alternatives to DImode for TARGET_64BIT.
4841 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
4842 (*movtf_internal): Merge from *movtf_internal_rex64 and
4843 *movtf_internal_sse. Use x64 and nox64 isa attributes.
4844 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
4845 nox64 isa attributes.
4846 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
4847 nox64 isa attributes.
4848 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
4850 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4852 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4854 2013-03-17 Jakub Jelinek <jakub@redhat.com>
4857 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
4858 class names. Remove trailing comma after "ALL_REGS".
4860 2013-03-16 Jan Hubicka <jh@suse.cz>
4862 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
4863 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
4864 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
4865 of cgraph_get_create_node.
4866 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4868 2013-03-16 Jason Merrill <jason@redhat.com>
4871 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
4872 with DW_AT_default_value.
4874 2013-03-16 Jakub Jelinek <jakub@redhat.com>
4876 * BASE-VER: Set to 4.9.0.
4878 2013-03-14 Andi Kleen <ak@linux.intel.com>
4881 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
4882 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
4883 Document _x* TSX intrinsics.
4885 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
4886 David Holsgrove <david.holsgrove@xilinx.com>
4888 * configure.ac: Add MicroBlaze TLS support detection.
4889 * configure: Regenerate.
4890 * config/microblaze/microblaze-protos.h
4891 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
4892 symbol_mentioned_p, label_mentioned_p): Add prototypes.
4893 * config/microblaze/microblaze.c (microblaze_address_type): Add
4894 ADDRESS_TLS and tls_reloc address types.
4895 (microblaze_address_info): Add tls_reloc.
4896 (TARGET_HAVE_TLS): Define.
4897 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
4898 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
4899 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
4900 load_tls_operand, microblaze_call_tls_get_addr,
4901 microblaze_legitimize_tls_address): New functions.
4902 (microblaze_classify_unspec): Handle UNSPEC_TLS.
4903 (get_base_reg): Use microblaze_tls_symbol_p.
4904 (microblaze_classify_address): Handle TLS.
4905 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
4906 label_mentioned_p and microblaze_tls_referenced_p.
4907 (microblaze_legitimize_address): Handle TLS.
4908 (microblaze_address_insns): Handle ADDRESS_TLS.
4909 (pic_address_needs_scratch): Handle TLS.
4910 (print_operand_address): Handle TLS.
4911 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
4912 (microblaze_expand_move): Handle TLS.
4913 (microblaze_legitimate_constant_p): Check
4914 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
4915 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4916 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
4917 (PIC_OFFSET_TABLE_REGNUM): Set.
4918 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
4919 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
4920 (addsi3, movsi_internal2, movdf_internal): Update constraints
4921 * config/microblaze/predicates.md (arith_plus_operand): Define
4922 (move_operand): Redefine as move_src_operand,
4923 check microblaze_tls_referenced_p.
4925 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4927 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
4928 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
4930 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4932 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
4935 2013-03-14 Jakub Jelinek <jakub@redhat.com>
4937 PR tree-optimization/53265
4938 * common.opt (Waggressive-loop-optimizations): New option.
4939 * tree-ssa-loop-niter.c: Include tree-pass.h.
4940 (do_warn_aggressive_loop_optimizations): New function.
4941 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
4942 if number_of_latch_executions returned constant.
4943 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
4944 early. If number_of_latch_executions returned constant, set
4945 nb_iterations_upper_bound back to it.
4946 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
4948 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
4949 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
4951 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
4952 (MULTILIB_OSDIRNAMES): Set.
4953 * genmultilib: If defaultosdirname doesn't start with :: , set
4954 defaultosdirname2 instead, clear it and emit two . multilib_raw
4955 entries instead of just one.
4957 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
4959 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4960 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
4961 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4962 (SUBTARGET_OVERRIDE_OPTIONS): New.
4964 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
4967 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
4968 (musermode): Convert to Var(TARGET_USERMODE).
4969 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
4970 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
4971 * config/sh/sh.c (sh_option_override): Use
4972 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
4973 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
4975 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
4977 (udivsi3_i4_single, divsi3_i4_single): Use
4978 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
4980 2013-03-13 Dave Korn <dave.korn.cygwin@....>
4982 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
4985 2013-03-13 Richard Biener <rguenther@suse.de>
4987 PR tree-optimization/56608
4988 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
4989 calls when vectorizing basic-blocks.
4991 2013-03-13 Jakub Jelinek <jakub@redhat.com>
4994 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
4997 2013-03-12 Jakub Jelinek <jakub@redhat.com>
4999 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
5001 2013-03-11 Jan Hubicka <jh@suse.cz>
5004 * lto-streamer-out.c (output_symbol_p): Skip references from
5005 constructors of external variables.
5007 2013-03-11 Jan Hubicka <jh@suse.cz>
5010 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
5012 * emit-rtl.c (verify_rtx_sharing): Likewise.
5013 (copy_insn_1): Likewise.
5014 * rtl.c (copy_rtx): Likewise.
5016 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
5019 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
5020 output_operand_lossage message.
5022 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
5025 * arm.c (shift_op): Validate RTL pattern on the fly.
5026 (arm_print_operand, case 'S'): Don't use shift_operator to validate
5029 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5032 * config/pa/pa.md (call_value): Check for calls to powf and direct to
5033 new call patterns that clobber %fr12.
5034 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
5035 split and postreload patterns.
5036 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
5037 registers %fr12 and %fr12R as call used.
5039 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
5041 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
5042 (canon_address, record_store, replace_read, check_mem_read_rtx,
5043 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
5044 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
5045 rest_of_handle_dse): Likewise.
5047 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5050 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
5052 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
5053 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
5054 (save_optabs_if_changed): Replace with...
5055 (init_tree_optimization_optabs): ...this.
5056 * optabs.c (save_optabs_if_changed): Rename to...
5057 (init_tree_optimization_optabs): ...this. Take the optimization node
5058 as argument. Do nothing if the base optabs are already correct.
5059 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
5060 to recompute optabs.
5061 * function.h (function): Remove optabs field.
5062 * function.c (invoke_set_current_function_hook): Call
5063 init_tree_optimization_optabs. Use the result to initialize
5066 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
5068 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
5069 if GTMA_HAS_NO_INSTRUMENTATION.
5070 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
5071 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
5072 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
5073 * gimple-pretty-print.c (dump_gimple_transaction): Handle
5074 GTMA_HAS_NO_INSTRUMENTATION.
5076 2013-03-08 Jakub Jelinek <jakub@redhat.com>
5078 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
5081 2013-03-08 Marek Polacek <polacek@redhat.com>
5082 Jakub Jelinek <jakub@redhat.com>
5084 PR tree-optimization/56478
5085 * predict.c (is_comparison_with_loop_invariant_p): Change the
5086 type of loop_step to tree.
5087 (predict_loops): Adjust.
5088 (predict_iv_comparison): Perform the computations on double_ints.
5090 2013-03-08 Richard Biener <rguenther@suse.de>
5092 PR tree-optimization/56570
5093 * tree-cfg.c (verify_expr_location_1): Verify locations for
5095 * tree-sra.c (create_access_replacement): Strip locations
5096 from DECL_DEBUG_EXPRs.
5098 2013-03-08 Richard Biener <rguenther@suse.de>
5100 * tree-inline.c (expand_call_inline): Do not associate
5101 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
5102 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
5104 2013-03-08 Richard Biener <rguenther@suse.de>
5106 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
5107 or block changes with -Og. Fix for location / block encoding
5108 changes and PHI arguments with locations.
5110 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
5112 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
5114 (struct output_info): Likewise.
5115 (register_overhead): Remove bad gcc_assert.
5116 (bitmap_find_bit): If there is only a single bitmap element, do not
5117 count a miss as a search.
5118 (print_statistics): Update for counter type changes.
5119 (dump_bitmap_statistics): Likewise. Print headers such that they
5120 are properly lined up with the printed counters.
5122 2013-03-07 Jakub Jelinek <jakub@redhat.com>
5124 PR tree-optimization/56559
5125 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
5126 check that it has only a single use.
5128 2013-03-07 Richard Biener <rguenther@suse.de>
5130 * doc/invoke.texi (fwhole-program): Discourage use in combination
5133 2013-03-06 Jakub Jelinek <jakub@redhat.com>
5135 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
5137 PR tree-optimization/56539
5138 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
5139 instead of GSI_CONTINUE_LINKING as last argument to
5140 force_gimple_operand_gsi. Adjust function comment.
5142 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
5146 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
5147 promoted mode, convert the result back to the original mode.
5149 2013-03-06 Richard Biener <rguenther@suse.de>
5152 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
5153 (insert_updated_phi_nodes_compare_uids): New function.
5154 (update_ssa): Sort symbols_to_rename after UID before
5155 traversing it to insert PHI nodes.
5157 2013-03-06 Richard Biener <rguenther@suse.de>
5160 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
5161 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
5164 2013-02-13 Richard Biener <rguenther@suse.de>
5167 * varasm.c (output_constant_def_1): Get the decl representing
5168 the constant as argument.
5169 (output_constant_def): Wrap output_constant_def_1.
5170 (make_decl_rtl): Use output_constant_def_1 with the decl
5171 representing the constant.
5172 (build_constant_desc): Optionally re-use a decl already
5173 representing the constant.
5174 (tree_output_constant_def): Adjust.
5176 2013-03-06 Joey Ye <joey.ye@arm.com>
5179 * gcc.c (convert_white_space): New function.
5180 (main): Handles white space in function name.
5182 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
5185 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
5186 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
5187 to SH_DIV_CALL_TABLE for TARGET_SH2.
5188 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
5190 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
5193 2013-03-05 Sterling Augustine <saugustine@google.com>
5194 Cary Coutant <ccoutant@google.com>
5197 * dwarf2out.c (resolve_addr): Don't call
5198 remove_loc_list_addr_table_entries a second time for the same
5201 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5204 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
5205 (avoid_complex_debug_insns): New function.
5206 (expand_debug_locations): Call it.
5208 PR rtl-optimization/56484
5209 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
5210 lifetimes of hard registers on small register class machines.
5212 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5214 * config/microblaze/microblaze-protos.h: Rename
5215 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
5216 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
5218 (microblaze_fast_interrupt_function_p): New function.
5219 (microblaze_is_interrupt_handler): Rename to
5220 microblaze_is_interrupt_variant and add fast_interrupt check.
5221 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
5222 (save_restore_insns): Likewise.
5223 (compute_frame_size): Likewise.
5224 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
5225 (microblaze_globalize_label): Likewise.
5226 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
5227 * config/microblaze/microblaze.md: Use wrapper
5228 microblaze_is_interrupt_variant.
5230 2013-03-05 Kai Tietz <ktietz@redhat.com>
5232 * sdbout.c (sdbout_one_type): Switch to current function's section
5233 supporting cold/hot.
5235 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5237 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
5240 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5243 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
5244 if VALGRIND_GET_VBITS is defined, temporarily make object
5245 memory all defined, and restore previous valgrind addressability
5246 and definability afterwards. Free this_object at the end.
5249 * lra.c (lra): Call lra_clear_live_ranges if live_p,
5250 right before calling lra_create_live_ranges, also call it
5251 when clearing live_p. Only call lra_clear_live_ranges
5252 at the end if live_p.
5255 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
5257 2013-03-05 Richard Biener <rguenther@suse.de>
5259 PR tree-optimization/56521
5260 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
5263 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
5266 * except.h (remove_unreachable_eh_regions): New prototype.
5267 * except.c (remove_eh_handler_splicer): New function, split out
5268 of remove_eh_handler.
5269 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
5270 warning about running it on many EH regions one at a time.
5271 (remove_unreachable_eh_regions_worker): New function, walk the
5272 EH tree in depth-first order and remove non-marked regions.
5273 (remove_unreachable_eh_regions): New function.
5274 * tree-eh.c (mark_reachable_handlers): New function, split out
5275 from remove_unreachable_handlers.
5276 (remove_unreachable_handlers): Use mark_reachable_handlers and
5277 remove_unreachable_eh_regions.
5278 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
5279 and remove_unreachable_eh_regions.
5281 2013-03-05 Richard Biener <rguenther@suse.de>
5284 * loop-init.c (fix_loop_structure): Remove loops in two stages,
5285 not freeing them until the end.
5287 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5289 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
5291 2013-03-05 Richard Biener <rguenther@suse.de>
5293 PR tree-optimization/56270
5294 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
5295 of loads after scheduling an SLP instance.
5297 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5299 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
5301 (check_gcc_parallelize): Run guality.exp as a separate job from
5302 vect.exp with unsorted.exp and $(dg_target_exps) separately from
5303 struct-layout-1.exp with stackalign.exp.
5305 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
5308 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
5309 load_index sbitmap even if some bit in it isn't set.
5312 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
5313 (discover_iteration_bound_by_body_walk): Change queues to
5314 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
5315 spelling in comment. Call safe_push on queues[bound_index] directly.
5316 Release queues[queue_index] in every iteration unconditionally.
5317 Release bounds vector.
5320 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
5321 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
5322 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
5325 2013-03-05 Richard Biener <rguenther@suse.de>
5328 * tree-inline.c (remap_blocks_to_null): New function.
5329 (expand_call_inline): When expanding a call stmt without
5330 an associated block inline remap all callee blocks to NULL.
5332 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5334 PR rtl-optimization/56494
5335 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
5336 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
5337 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
5340 * sel-sched-ir.c (free_sched_pools): Release
5341 succs_info_pool.stack[succs_info_pool.max_top] vectors too
5342 if succs_info_pool.max_top isn't -1.
5345 * opts.c (opts_obstack, opts_concat): Moved to...
5346 * opts-common.c (opts_obstack, opts_concat): ... here.
5348 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5351 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
5353 2013-03-04 Martin Jambor <mjambor@suse.cz>
5355 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
5356 all appropriate places.
5358 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
5360 PR tree-optimization/56424
5361 * ipa-split.c (split_function): Do not set the RSO flag if result is
5362 not by reference and its type is a register type.
5364 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
5366 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
5367 (microblaze_legitimate_pic_operand): Likewise
5368 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
5369 new function microblaze_legitimate_pic_operand
5370 * config/microblaze/microblaze-protos.h
5371 (microblaze_legitimate_pic_operand): Declare.
5373 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5375 * config/microblaze/predicates.md (call_insn_simple_operand):
5376 New predicate for supported rtx code types.
5377 * config/microblaze/microblaze.md (call_internal1): Use
5378 call_insn_simple_operand predicate.
5380 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5383 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
5384 partitions.ordered_remove.
5387 * tree-vect-stmts.c (vectorizable_conversion): Don't call
5388 vec_oprnds0.create (1) for modifier == NONE.
5391 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
5392 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
5393 vec_oprnds1 right before pushing anything to it for
5397 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
5398 set nbbs to 0 instead of having separate code path.
5399 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
5400 instead of false as last argument if returning NULL.
5402 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
5404 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
5405 the attribute is now called "target" instead of "option".
5406 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
5407 * doc/tm.texi.in (Target Attributes): Likewise document the correct
5408 attribute/pragma name for TARGET_OPTION_VALID_P and
5409 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
5410 * doc/tm.texi: Regenerated.
5412 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
5414 * config/microblaze/microblaze.c:
5415 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
5416 * config/microblaze/microblaze.h: Add -mxl-reorder to
5418 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
5419 instructions emitted if TARGET_REORDER.
5420 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
5421 or 0 for -m/-mno case, but initialises as 2 to detect default use case
5424 2013-03-01 Xinliang David Li <davidxl@google.com>
5426 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
5429 2013-03-01 Jakub Jelinek <jakub@redhat.com>
5432 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
5433 vector even when returning true. Fix up function comment formatting.
5436 * ira-build.c (ira_loop_nodes_count): New variable.
5437 (create_loop_tree_nodes): Initialize it.
5438 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
5441 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
5442 method on dr_chain and result_chain.
5443 * tree-vect-stmts.c (vectorizable_store): Only call
5444 result_chain.create if j == 0.
5447 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
5448 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
5449 before overwriting it.
5451 2013-03-01 Tobias Burnus <burnus@net-b.de>
5453 * doc/extended.texi (C Extensions): Change order in @menu
5455 (Other MIPS Built-in Functions): Move last MIPS entry before
5456 "picoChip Built-in Functions".
5457 (SH Built-in Functions): Move after RX Built-in Functions.
5458 * doc/gcc.texi (Introduction): Change order in @menu
5460 * doc/md.texi (Constraints): Ditto.
5461 * gty.texi (Type Information): Ditto.
5462 (User-provided marking routines for template types): Make
5464 * doc/invoke.texi (AArch64 Options): Move before
5465 "Adapteva Epiphany Options".
5467 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5468 Jakub Jelinek <jakub@redhat.com>
5471 * asan.c (gate_asan): Lookup no_sanitize_address instead of
5472 no_address_safety_analysis attribute.
5473 * doc/extend.texi (no_address_safety_attribute): Rename to
5474 no_sanitize_address attribute, mention no_address_safety_analysis
5475 attribute as deprecated alias.
5477 2013-02-28 Jakub Jelinek <jakub@redhat.com>
5480 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
5481 type to vec<vec<tree> > *.
5482 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
5483 to be vec<tree> instead of vec<tree> *, set vec_defs
5484 to vNULL and call vec_defs.create (number_of_vects), adjust other
5486 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
5487 vectorizable_condition): Adjust vect_get_slp_defs callers.
5489 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5491 * config/aarch64/aarch64.c
5492 (aarch64_float_const_representable): Remove unused variable.
5494 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5496 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
5498 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5500 * config/aarch64/aarch64-builtins.c
5501 (aarch64_init_simd_builtins): Make static.
5503 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5505 * config/aarch64/aarch64.c
5506 (aarch64_simd_make_constant): Make static.
5508 2013-02-28 Martin Jambor <mjambor@suse.cz>
5510 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
5511 with no initialization to the RHS of debug statements.
5513 2013-02-28 Martin Jambor <mjambor@suse.cz>
5515 PR tree-optimization/56294
5516 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
5518 (get_access_replacement): Do not call create_access_replacement.
5519 Assert a replacement exists.
5520 (get_repl_default_def_ssa_name): Create the replacement declaration
5523 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5525 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
5528 2013-02-28 Marek Polacek <polacek@redhat.com>
5530 PR rtl-optimization/56466
5531 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
5532 if we're changing a loop.
5533 (peel_loops_completely): Likewise.
5535 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
5538 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
5540 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5543 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
5544 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
5545 INTX_FTYPE_FX, FX_FTYPE_INTX.
5546 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
5548 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5550 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
5551 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
5552 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
5553 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
5554 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
5555 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
5556 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
5557 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
5558 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
5559 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
5560 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
5561 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
5562 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
5563 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
5564 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
5565 (avrxmega6): Increase max flash segments from 5 to 6.
5566 * config/avr/t-multilib: Regenerate.
5567 * config/avr/avr-tables.opt: Regenerate.
5568 * doc/avr-mmcu.texi: Regenerate.
5570 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5572 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
5573 (avr_device_to_arch): Rename to avr_device_to_ld.
5574 (avr_device_to_as): New prototype.
5575 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
5576 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
5577 * config/avr/driver-avr.c (avr_device_to_as): New.
5578 (avr_device_to_arch): Rename to avr_device_to_ld.
5580 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5583 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
5584 method on dr_chain and result_chain.
5587 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
5588 pointer_set_destroy on not_executed_last_iteration.
5591 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
5594 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
5595 FOR_EACH_DEFINED_FUNCTION when freeing state.
5598 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
5600 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
5604 * ipa-cp.c (decide_whether_version_node): Call vec_free on
5605 known_aggs[i].items and release known_aggs vector.
5608 * ipa-reference.c (propagate): Free node_info even for alias nodes.
5610 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5612 * config/microblaze/microblaze.c (microblaze_emit_compare):
5613 Use xor for EQ/NE comparisions.
5614 * config/microblaze/microblaze.md (cstoresf4): Add constraints
5615 (cbranchsf4): Adjust operator to comparison_operator.
5617 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5620 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
5622 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
5623 vec_safe_push, always update *slot.
5624 (redirect_edge_var_map_clear): Use vec_free.
5625 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
5626 (free_var_map_entry): Use vec_free.
5627 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
5628 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
5630 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
5633 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
5634 when the may_trap_p bit of the exprs being merged differs.
5635 Reorder tests for speculativeness in the logical and operator.
5637 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5639 * incpath.c (add_standard_paths): Use reconcat instead of concat
5640 where appropriate and avoid leaking memory.
5642 * opts.h: Include obstack.h.
5643 (opts_concat): New prototype.
5644 (opts_obstack): New declaration.
5645 * opts.c (opts_concat): New function.
5646 (opts_obstack): New variable.
5647 (init_options_struct): Call gcc_init_obstack on opts_obstack.
5648 (finish_options): Use opts_concat instead of concat
5649 and XOBNEWVEC instead of XNEWVEC.
5650 * opts-common.c (generate_canonical_option, decode_cmdline_option,
5651 generate_option): Likewise.
5652 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
5653 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
5656 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
5657 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
5659 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5662 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
5664 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5666 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
5667 (arm_block_move_unaligned_straight): Likewise.
5668 (arm_adjust_block_mem): Likewise.
5670 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5673 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
5674 temp, cond and label.
5675 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
5678 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
5679 * config/c6x/c6x.h (dbx_register_map): Update declaration.
5682 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
5683 of prologue/epilogue functions.
5686 * config/tilegx/tilegx.c (tilegx_expand_prologue):
5687 Remove unused variable cfa_offset.
5688 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
5691 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
5692 type promotion to unsigned.
5695 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
5696 for HOST_WIDE_INT of 32 bit / same size as int.
5697 (arm_block_move_unaligned_straight): Likewise.
5698 (arm_adjust_block_mem): Likewise.
5701 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
5704 2013-02-26 Marek Polacek <polacek@redhat.com>
5706 PR tree-optimization/56426
5707 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
5709 2013-02-26 Richard Biener <rguenther@suse.de>
5712 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
5713 unused variable loops.
5715 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5717 PR tree-optimization/56448
5718 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
5719 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
5720 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
5721 later operands of the references, or even first operand for
5722 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
5724 PR tree-optimization/56443
5725 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
5726 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
5727 to type_for_mode langhook.
5729 2013-02-25 Matt Turner <mattst88@gmail.com>
5731 * doc/invoke.texi: Document r4700.
5733 2013-02-25 Richard Biener <rguenther@suse.de>
5735 PR tree-optimization/56175
5736 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
5738 (simplify_bitwise_binary): ... here. Also guard the conversion
5739 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
5741 2013-02-25 Catherine Moore <clm@codesourcery.com>
5744 2013-02-24 Catherine Moore <clm@codesourcery.com>
5745 Maciej W. Rozycki <macro@codesourcery.com>
5746 Tom de Vries <tom@codesourcery.com>
5747 Nathan Sidwell <nathan@codesourcery.com>
5748 Iain Sandoe <iain@codesourcery.com>
5749 Nathan Froyd <froydnj@codesourcery.com>
5750 Chao-ying Fu <fu@mips.com>
5752 * doc/extend.texi: (micromips, nomicromips, nocompression):
5753 Document new function attributes.
5754 * doc/invoke.texi (minterlink-compressed, mmicromips,
5755 m14k, m14ke, m14kec): Document new options.
5756 (minterlink-mips16): Update documentation.
5757 * doc/md.texi (ZC, ZD): Document new constraints.
5758 * configure.ac (gcc_cv_as_micromips): Check if linker
5759 supports the .set micromips directive.
5760 * configure: Regenerate.
5761 * config.in: Regenerate.
5762 * config/mips/mips-tables.opt: Regenerate.
5763 * config/mips/micromips.md: New file.
5764 * constraints.md (ZC, AD): New constraints.
5765 * config/mips/predicates.md (movep_src_register): New predicate.
5766 (movep_src_operand): New predicate.
5767 (non_volatile_mem_operand): New predicate.
5768 * config/mips/mips.md (multimem): New type.
5769 (length): Differentiate between 17-bit and 18-bit branch offsets.
5770 (MOVEP1, MOVEP2): New mode iterator.
5771 (mov_<load>l): Use ZC constraint.
5772 (mov_<load>r): Likewise.
5773 (mov_<store>l): Likewise.
5774 (mov_<store>r): Likewise.
5775 (*branch_equality<mode>_inverted): Add microMIPS support.
5776 (*branch_equality<mode>): Likewise.
5777 (*jump_absolute): Likewise.
5778 (indirect_jump_<mode>): Likewise.
5779 (tablejump_<mode>): Likewise.
5780 (<optab>_internal): Likewise.
5781 (sibcall_internal): Likewise.
5782 (sibcall_value_internal): Likewise.
5783 (prefetch): Use constraint ZD.
5784 * config/mips/mips.opt (minterlink-compressed): New option.
5785 (minterlink-mips16): Now an alias for minterlink-compressed.
5786 (mmicromips): New option.
5787 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5788 (compare_and_swap_12): Likewise.
5789 (sync_add<mode>): Likewise.
5790 (sync_<optab>_12): Likewise.
5791 (sync_old_<optab>_12): Likewise.
5792 (sync_new_<optab>_12): Likewise.
5793 (sync_nand_12): Likewise.
5794 (sync_old_nand_12): Likewise.
5795 (sync_new_nand_12): Likewise.
5796 (sync_sub<mode>): Likewise.
5797 (sync_old_add<mode>): Likewise.
5798 (sync_old_sub<mode>): Likewise.
5799 (sync_new_add<mode>): Likewise.
5800 (sync_new_sub<mode>): Likewise.
5801 (sync_<optab><mode>): Likewise.
5802 (sync_old_<optab><mode>): Likewise.
5803 (sync_new_<optab><mode>): Likewise.
5804 (sync_nand<mode>): Likewise.
5805 (sync_old_nand<mode>): Likewise.
5806 (sync_new_nand<mode>): Likewise.
5807 (sync_lock_test_and_set<mode>): Likewise.
5808 (test_and_set_12): Likewise.
5809 (atomic_compare_and_swap<mode>): Likewise.
5810 (atomic_exchange<mode>_llsc): Likewise.
5811 (atomic_fetch_add<mode>_llsc): Likewise.
5812 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5813 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5814 (umips_save_restore_pattern_p): Likewise.
5815 (umips_load_store_pair_p): Likewise.
5816 (umips_output_load_store_pair): Likewise.
5817 (umips_movep_target_p): Likewise.
5818 (umips_12bit_offset_address_p): Likewise.
5819 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5820 (mips_base_mips16): Rename this...
5821 (mips_base_compression_flags): ...to this. Update all uses.
5822 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5823 (mips_mips16_decl_p): Delete.
5824 (mips_nomips16_decl_p): Delete.
5825 (mips_get_compress_on_flags): New function.
5826 (mips_get_compress_off_flags): New function.
5827 (mips_get_compress_mode): New function.
5828 (mips_get_compress_on_name): New function.
5829 (mips_get_compress_off_name): New function.
5830 (mips_insert_attributes): Support multiple compression types.
5831 (mips_merge_decl_attributes): Likewise.
5832 (umips_12bit_offset_address_p): New function.
5833 (mips_start_function_definition): Emit .set micromips directive.
5834 (mips_call_may_need_jalx_p): New function.
5835 (mips_function_ok_for_sibcall): Add microMIPS support.
5836 (mips_print_operand_punctuation): Support short delay slots and
5838 (umips_swm_mask, umips_swm_encoding): New.
5839 (umips_build_save_restore): New function.
5840 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5841 (was_mips16_p): Remove.
5842 (old_compression_mode): New.
5843 (mips_set_compression_mode): New function.
5844 (mips_set_current_function): Add microMIPS support.
5845 (mips_option_override): Likewise.
5846 (umips_save_restore_pattern_p): New function.
5847 (umips_output_save_restore): New function.
5848 (umips_load_store_pair_p_1): New function.
5849 (umips_load_store_pair_p): New function.
5850 (umips_output_load_store_pair_1): New function.
5851 (umips_output_load_store_pair): New function.
5852 (umips_movep_target_p) New function.
5853 (mips_prepare_pch_save): Add microMIPS support.
5854 * config/mips/mips.h (TARGET_COMPRESSION): New.
5855 (TARGET_CPU_CPP_BUILTINS): Update macro
5856 to use new compression flags and to support microMIPS.
5857 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5858 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5859 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5860 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5861 (ASM_SPEC): Support mmicromips and mno-micromips.
5862 (M16STORE_REG_P): New macro.
5863 (MIPS_CALL): Support TARGET_MICROMIPS.
5864 (MICROMIPS_J): New macro.
5865 (mips_base_mips16): Rename this...
5866 (mips_base_compression_flags): ...to this.
5867 (UMIPS_12BIT_OFFSET_P): New macro.
5868 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5869 (MULTILIB_DIRNAMES): Likewise.
5871 2013-02-25 Tom de Vries <tom@codesourcery.com>
5873 PR rtl-optimization/56131
5874 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
5875 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
5876 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
5878 2013-02-25 Tobias Burnus <burnus@net-b.de>
5880 * doc/invoke.texi (-fsanitize=): Move from optimization
5881 to debugging options.
5883 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5885 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
5887 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5888 Alexander Monakov <amonakov@ispras.ru>
5891 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
5892 flush pending lists also on non-jumps. Adjust comment.
5894 2013-02-24 Catherine Moore <clm@codesourcery.com>
5895 Maciej W. Rozycki <macro@codesourcery.com>
5896 Tom de Vries <tom@codesourcery.com>
5897 Nathan Sidwell <nathan@codesourcery.com>
5898 Iain Sandoe <iain@codesourcery.com>
5899 Nathan Froyd <froydnj@codesourcery.com>
5900 Chao-ying Fu <fu@mips.com>
5902 * doc/extend.texi: (micromips, nomicromips, nocompression):
5903 Document new function attributes.
5904 * doc/invoke.texi (minterlink-compressed, mmicromips,
5905 m14k, m14ke, m14kec): Document new options.
5906 (minterlink-mips16): Update documentation.
5907 * doc/md.texi (ZC, ZD): Document new constraints.
5908 * configure.ac (gcc_cv_as_micromips): Check if linker
5909 supports the .set micromips directive.
5910 * configure: Regenerate.
5911 * config.in: Regenerate.
5912 * config/mips/mips-tables.opt: Regenerate.
5913 * config/mips/micromips.md: New file.
5914 * constraints.md (ZC, AD): New constraints.
5915 * config/mips/predicates.md (movep_src_register): New predicate.
5916 (movep_src_operand): New predicate.
5917 (non_volatile_mem_operand): New predicate.
5918 * config/mips/mips.md (multimem): New type.
5919 (length): Differentiate between 17-bit and 18-bit branch offsets.
5920 (MOVEP1, MOVEP2): New mode iterator.
5921 (mov_<load>l): Use ZC constraint.
5922 (mov_<load>r): Likewise.
5923 (mov_<store>l): Likewise.
5924 (mov_<store>r): Likewise.
5925 (*branch_equality<mode>_inverted): Add microMIPS support.
5926 (*branch_equality<mode>): Likewise.
5927 (*jump_absolute): Likewise.
5928 (indirect_jump_<mode>): Likewise.
5929 (tablejump_<mode>): Likewise.
5930 (<optab>_internal): Likewise.
5931 (sibcall_internal): Likewise.
5932 (sibcall_value_internal): Likewise.
5933 (prefetch): Use constraint ZD.
5934 * config/mips/mips.opt (minterlink-compressed): New option.
5935 (minterlink-mips16): Now an alias for minterlink-compressed.
5936 (mmicromips): New option.
5937 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5938 (compare_and_swap_12): Likewise.
5939 (sync_add<mode>): Likewise.
5940 (sync_<optab>_12): Likewise.
5941 (sync_old_<optab>_12): Likewise.
5942 (sync_new_<optab>_12): Likewise.
5943 (sync_nand_12): Likewise.
5944 (sync_old_nand_12): Likewise.
5945 (sync_new_nand_12): Likewise.
5946 (sync_sub<mode>): Likewise.
5947 (sync_old_add<mode>): Likewise.
5948 (sync_old_sub<mode>): Likewise.
5949 (sync_new_add<mode>): Likewise.
5950 (sync_new_sub<mode>): Likewise.
5951 (sync_<optab><mode>): Likewise.
5952 (sync_old_<optab><mode>): Likewise.
5953 (sync_new_<optab><mode>): Likewise.
5954 (sync_nand<mode>): Likewise.
5955 (sync_old_nand<mode>): Likewise.
5956 (sync_new_nand<mode>): Likewise.
5957 (sync_lock_test_and_set<mode>): Likewise.
5958 (test_and_set_12): Likewise.
5959 (atomic_compare_and_swap<mode>): Likewise.
5960 (atomic_exchange<mode>_llsc): Likewise.
5961 (atomic_fetch_add<mode>_llsc): Likewise.
5962 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5963 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5964 (umips_save_restore_pattern_p): Likewise.
5965 (umips_load_store_pair_p): Likewise.
5966 (umips_output_load_store_pair): Likewise.
5967 (umips_movep_target_p): Likewise.
5968 (umips_12bit_offset_address_p): Likewise.
5969 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5970 (mips_base_mips16): Rename this...
5971 (mips_base_compression_flags): ...to this. Update all uses.
5972 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5973 (mips_mips16_decl_p): Delete.
5974 (mips_nomips16_decl_p): Delete.
5975 (mips_get_compress_on_flags): New function.
5976 (mips_get_compress_off_flags): New function.
5977 (mips_get_compress_mode): New function.
5978 (mips_get_compress_on_name): New function.
5979 (mips_get_compress_off_name): New function.
5980 (mips_insert_attributes): Support multiple compression types.
5981 (mips_merge_decl_attributes): Likewise.
5982 (umips_12bit_offset_address_p): New function.
5983 (mips_start_function_definition): Emit .set micromips directive.
5984 (mips_call_may_need_jalx_p): New function.
5985 (mips_function_ok_for_sibcall): Add microMIPS support.
5986 (mips_print_operand_punctuation): Support short delay slots and
5988 (umips_swm_mask, umips_swm_encoding): New.
5989 (umips_build_save_restore): New function.
5990 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5991 (was_mips16_p): Remove.
5992 (old_compression_mode): New.
5993 (mips_set_compression_mode): New function.
5994 (mips_set_current_function): Add microMIPS support.
5995 (mips_option_override): Likewise.
5996 (umips_save_restore_pattern_p): New function.
5997 (umips_output_save_restore): New function.
5998 (umips_load_store_pair_p_1): New function.
5999 (umips_load_store_pair_p): New function.
6000 (umips_output_load_store_pair_1): New function.
6001 (umips_output_load_store_pair): New function.
6002 (umips_movep_target_p) New function.
6003 (mips_prepare_pch_save): Add microMIPS support.
6004 * config/mips/mips.h (TARGET_COMPRESSION): New.
6005 (TARGET_CPU_CPP_BUILTINS): Update macro
6006 to use new compression flags and to support microMIPS.
6007 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6008 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6009 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6010 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6011 (ASM_SPEC): Support mmicromips and mno-micromips.
6012 (M16STORE_REG_P): New macro.
6013 (MIPS_CALL): Support TARGET_MICROMIPS.
6014 (MICROMIPS_J): New macro.
6015 (mips_base_mips16): Rename this...
6016 (mips_base_compression_flags): ...to this.
6017 (UMIPS_12BIT_OFFSET_P): New macro.
6018 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6019 (MULTILIB_DIRNAMES): Likewise.
6021 2013-02-24 Jakub Jelinek <jakub@redhat.com>
6024 * target-globals.c (save_target_globals): For init_reg_sets and
6025 target_reinit remporarily set this_fn_optabs to this_target_optabs.
6027 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
6029 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
6030 * config/aarch64/t-aarch64
6031 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
6033 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
6036 * lra-constraints.c (process_alt_operands): Reload operand
6037 conflicting with earlier clobber only if no more other conflicting
6040 2013-02-22 Jakub Jelinek <jakub@redhat.com>
6043 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
6044 if not linking a shared library.
6046 2013-02-22 Seth LaForge <sethml@google.com>
6048 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
6050 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
6052 * config/arm/arm.md (split for extendsidi): Update condition.
6053 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
6054 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
6055 (qhs_zextenddi_cstr): Likewise.
6057 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6060 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
6061 avoid signed wrapping.
6062 (expand_mult): Handle properly multiplication by
6063 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
6064 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
6065 in the compiler if coeff is HOST_WIDE_INT_MIN.
6066 (expand_divmod): Don't make ext_op1 static, change it's type to
6067 uhwi. Avoid undefined behavior in -INTVAL (op1).
6069 PR rtl-optimization/50339
6070 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
6072 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
6073 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
6074 into splitting_ashiftrt field.
6075 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
6077 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
6080 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
6083 * trans-mem.c (execute_tm_mark): Do not expand transactions that
6084 are sure to go irrevocable.
6086 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
6088 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
6089 scalars are valid operands.
6091 2013-02-21 Martin Jambor <mjambor@suse.cz>
6093 PR tree-optimization/56310
6094 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
6095 only matching indices and non-negative final offsets.
6096 (intersect_aggregates_with_edge): Pass src_idx to
6097 agg_replacements_to_vector. Pass src_idx insstead of index to
6098 intersect_with_agg_replacements.
6100 2013-02-21 Martin Jambor <mjambor@suse.cz>
6102 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
6103 instead of hard-wired defaults.
6105 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
6107 * doc/invoke.texi (MIPS Options): Update documentation of the
6108 floating-point multiply-accumulate instruction restrictions.
6110 2013-02-21 Kostya Serebryany <kcc@google.com>
6112 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
6113 asan_shadow_offset on x86_64 linux.
6115 2013-02-21 Richard Biener <rguenther@suse.de>
6117 PR tree-optimization/56415
6119 2013-02-11 Richard Biener <rguenther@suse.de>
6121 PR tree-optimization/56273
6122 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6125 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6128 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
6132 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
6133 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
6135 2013-02-20 Jan Hubicka <jh@suse.cz>
6137 PR tree-optimization/56265
6138 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
6139 when target is referenced for first time.
6141 2013-02-20 Richard Biener <rguenther@suse.de>
6143 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
6144 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
6145 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6146 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
6147 not return anything.
6148 (rename_ssa_copies): Do not remove unused locals.
6149 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
6150 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
6151 * passes.c (execute_function_todo): Do not schedule unused locals
6152 removal if cleanup_tree_cfg did something.
6153 * tree-ssa-live.c (remove_unused_locals): Dump statistics
6154 about the number of removed locals.
6156 2013-02-20 Richard Biener <rguenther@suse.de>
6158 PR tree-optimization/56398
6159 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
6161 2013-02-20 Martin Jambor <mjambor@suse.cz>
6163 PR tree-optimization/55334
6164 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
6165 restricted pointers to arrays.
6167 2013-02-20 Richard Biener <rguenther@suse.de>
6168 Jakub Jelinek <jakub@redhat.com>
6170 PR tree-optimization/56396
6171 * tree-ssa-ccp.c (n_const_val): New static variable.
6172 (get_value): Return NULL for SSA names we don't have a lattice
6174 (ccp_initialize): Initialize n_const_val.
6175 * tree-ssa-copy.c (n_copy_of): New static variable.
6176 (init_copy_prop): Initialize n_copy_of.
6177 (get_value): Return NULL_TREE for SSA names we don't have a
6180 2013-02-20 Martin Jambor <mjambor@suse.cz>
6182 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
6184 2013-02-20 Richard Biener <rguenther@suse.de>
6186 * genpreds.c (write_lookup_constraint): Do not compare first
6187 letter of the constraint again.
6189 2013-02-20 Richard Biener <rguenther@suse.de>
6191 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
6193 (get_use_iv_cost): Terminate hashtable walk when coming across
6196 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
6198 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
6199 reassociation for avx2 targets.
6201 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6203 * config/microblaze/microblaze.c: microblaze_has_clz = 0
6204 Add version check for v8.10.a to enable microblaze_has_clz
6205 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
6206 version and TARGET_PATTERN_COMPARE check
6207 * config/microblaze/microblaze.md: New clzsi2 instruction
6209 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6211 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
6212 function before branching.
6214 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6216 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
6218 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
6220 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6223 * sel-sched.c: Include ira.h.
6224 (implicit_clobber_conflict_p): New function.
6225 (moveup_expr): Use it.
6226 * Makefile.in (sel-sched.o): Depend on ira.h.
6228 2013-02-19 Richard Biener <rguenther@suse.de>
6230 PR tree-optimization/56384
6231 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
6232 (vn_hash_type): Split out from ...
6233 (vn_hash_constant_with_type): ... here.
6234 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
6235 (vn_phi_eq): Compare types from vn_phi_s structure.
6236 (vn_phi_lookup): Populate vn_phi_s type.
6237 (vn_phi_insert): Likewise.
6239 2013-02-19 Jakub Jelinek <jakub@redhat.com>
6241 PR tree-optimization/56350
6242 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
6243 if haven't found reduction or nested cycle operand, rather than
6244 asserting we must find it.
6246 PR tree-optimization/56381
6247 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
6250 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
6251 Jakub Jelinek <jakub@redhat.com>
6254 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
6255 (swap_optab_enable): Same.
6256 (init_all_optabs): Use argument instead of global.
6257 * tree.h (struct tree_optimization_option): New field target_optabs.
6258 * expr.h (init_all_optabs): Add argument to prototype.
6259 (TREE_OPTIMIZATION_OPTABS): New.
6260 (save_optabs_if_changed): Protoize.
6261 * optabs.h: Declare this_fn_optabs.
6262 * optabs.c (save_optabs_if_changed): New.
6263 Declare this_fn_optabs.
6264 (init_optabs): Add argument to init_all_optabs() call.
6265 * function.c (invoke_set_current_function_hook): Handle per
6267 * function.h (struct function): New field optabs.
6268 * config/mips/mips.c (mips_set_mips16_mode): Handle when
6269 optimization_current_node has changed.
6270 * target-globals.h (save_target_globals_default_opts): Protoize.
6271 * target-globals.c (save_target_globals_default_opts): New.
6273 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6276 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
6277 registers %fr12 and %fr12R as call used.
6280 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
6281 and HImode, require all displacements to be an integer multiple of
6283 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
6284 only allow QImode and HImode when reload is in progress and strict is
6285 true. Likewise for symbolic addresses. Use base14_operand to check
6286 displacements in REG+BASE addresses.
6288 2013-02-18 Richard Biener <rguenther@suse.de>
6290 PR tree-optimization/56366
6291 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6292 handle sign-conversion of outer-loop initial induction value.
6294 2013-02-18 Richard Biener <rguenther@suse.de>
6297 * cfghooks.c (merge_blocks): If we merge a latch into another
6298 block adjust references to it.
6299 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
6300 (verify_loop_structure): Verify that a recorded latch is in fact
6303 2013-02-18 Richard Biener <rguenther@suse.de>
6305 PR tree-optimization/56321
6306 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
6307 order SSA name release and virtual operand unlinking.
6309 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6311 * config/microblaze/microblaze.md (save_stack_block): Define.
6312 (restore_stack_block): Likewise.
6314 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6316 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
6317 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
6318 * config/microblaze/microblaze.c (microblaze_option_override):
6319 Bail out early for PIC modes when target does not support PIC.
6321 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6323 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
6324 Replace with a microblaze version.
6325 (microblaze_trampoline_init): Adapt for microblaze.
6326 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
6329 2013-02-16 Jakub Jelinek <jakub@redhat.com>
6330 Dodji Seketeli <dodji@redhat.com>
6333 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
6334 (instrument_mem_region_access): Do not forget to always put
6335 instrumentation of the of 'base' and 'base + len' in a "if (len !=
6336 0) statement, even for cases where either 'base' or 'base + len'
6337 are not instrumented -- because they have been previously
6338 instrumented. Simplify the logic by putting all the statements
6339 instrument 'base + len' inside a sequence, and then insert that
6340 sequence right before the current insertion point. Then, to
6341 instrument 'base + len', just get an iterator on that statement.
6342 And do not forget to update the pointer to iterator the function
6343 received as argument.
6345 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
6347 PR rtl-optimization/56348
6348 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
6350 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
6352 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
6353 (clean_graph_dump_file): Pass base to start_graph_dump.
6355 2013-02-14 Richard Henderson <rth@redhat.com>
6358 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
6360 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
6362 * collect2-aix.h: Define F_LOADONLY.
6364 2013-02-14 Richard Biener <rguenther@suse.de>
6367 * varasm.c (output_constant_def_1): Get the decl representing
6368 the constant as argument.
6369 (output_constant_def): Wrap output_constant_def_1.
6370 (make_decl_rtl): Use output_constant_def_1 with the decl
6371 representing the constant.
6372 (build_constant_desc): Optionally re-use a decl already
6373 representing the constant.
6374 (tree_output_constant_def): Adjust.
6376 2013-02-14 Dodji Seketeli <dodji@redhat.com>
6379 * asan.c (instrument_builtin_call): Really put the length of the
6380 second source argument into src1_len.
6382 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6384 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
6385 argument. If it is false, don't create edge from then_bb to
6387 (insert_if_then_before_iter): Pass true to it.
6388 (build_check_stmt): Pass false to it.
6389 (transform_statements): Flush hash table only on extended basic
6390 block boundaries, rather than at the beginning of every bb.
6391 Don't flush hash table on nonfreeing_call_p calls.
6392 * tree-flow.h (nonfreeing_call_p): New prototype.
6393 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
6395 2013-02-13 David S. Miller <davem@davemloft.net>
6397 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
6399 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
6402 * ira.c (max_regno_before_ira): Move from ...
6404 (fix_reg_equiv_init): Use max_regno_before_ira instead of
6407 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6409 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
6411 2013-02-13 Richard Biener <rguenther@suse.de>
6414 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
6415 globals in MEM_REFs.
6417 2013-02-13 Richard Biener <rguenther@suse.de>
6419 * loop-init.c (loop_optimizer_init): Clear loop state when
6420 re-initializing preserved loops.
6421 * loop-unswitch.c (unswitch_single_loop): Return whether
6422 we unswitched the loop. Do not verify loop state here.
6423 (unswitch_loops): When we unswitched a loop discover new loops.
6425 2013-02-13 Kostya Serebryany <kcc@google.com>
6427 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
6429 * sanitizer.def: Rename __asan_init to __asan_init_v1.
6431 2013-02-12 Dodji Seketeli <dodji@redhat.com>
6433 Avoid instrumenting duplicated memory access in the same basic block
6434 * Makefile.in (asan.o): Add new dependency on hash-table.h
6435 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
6436 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
6437 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
6438 (free_mem_ref_resources, has_mem_ref_been_instrumented)
6439 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
6440 (get_mem_ref_of_assignment): New functions.
6441 (get_mem_refs_of_builtin_call): Extract from
6442 instrument_builtin_call and tweak a little bit to make it fit with
6444 (instrument_builtin_call): Use the new
6445 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
6446 of is_gimple_builtin_call.
6447 (instrument_derefs, instrument_mem_region_access): Insert the
6448 instrumented memory reference into the hash table.
6449 (maybe_instrument_assignment): Renamed instrument_assignment into
6450 this, and change it to advance the iterator when instrumentation
6451 actually happened and return true in that case. This makes it
6452 homogeneous with maybe_instrument_assignment, and thus give a
6453 chance to callers to be more 'regular'.
6454 (transform_statements): Clear the memory reference hash table
6455 whenever we enter a new BB, when we cross a function call, or when
6456 we are done transforming statements. Use
6457 maybe_instrument_assignment instead of instrumentation. No more
6458 need to special case maybe_instrument_assignment and advance the
6459 iterator after calling it; it's now handled just like
6460 maybe_instrument_call. Update comment.
6462 2013-02-13 Richard Biener <rguenther@suse.de>
6464 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6465 Fix loop discovery code.
6467 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
6470 * lra-constraints.c (process_alt_operands): Match early clobber
6471 operand with itself. Check conflicts with earlyclobber only if
6472 the operand is not reloaded. Prefer to reload conflicting operand
6473 if earlyclobber and matching operands are the same.
6475 2013-02-12 Richard Biener <rguenther@suse.de>
6478 * lto-streamer-out.c (write_symbol): Do not output symbols
6479 for hard register variables.
6481 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
6484 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
6485 (umulsidi3_insn, mulsidi3_insn): New insns.
6487 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
6489 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
6490 (struct tune_params): Add vec_costs field.
6491 * config/arm/arm.c (arm_builtin_vectorization_cost)
6492 (arm_add_stmt_cost): New functions.
6493 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
6494 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
6495 (arm_default_vec_cost): New struct of type cpu_vec_costs.
6496 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6497 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
6498 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
6499 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
6501 2013-02-12 Richard Biener <rguenther@suse.de>
6504 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
6505 decls again if possible.
6507 2013-02-12 Richard Biener <rguenther@suse.de>
6510 * tree-ssa.c (verify_ssa_name): Fix check, move
6511 SSA_NAME_IN_FREE_LIST check up.
6513 2013-02-12 Jakub Jelinek <jakub@redhat.com>
6514 Steven Bosscher <steven@gcc.gnu.org>
6516 PR rtl-optimization/56151
6517 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
6518 equal to op0 or op1, and last_insn pattern is CODE operation
6519 with MEM dest and one of the operands matches that MEM.
6521 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
6523 * doc/extend.texi: Document Function Multiversioning and "default"
6524 parameter string to target attribute.
6525 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
6526 target attribute parameter is "default".
6527 (ix86_compare_version_priority): Remove checks for target attribute.
6528 (ix86_mangle_function_version_assembler_name): Change error to sorry.
6529 Remove check for target attribute equal to NULL. Add assert.
6530 (ix86_generate_version_dispatcher_body): Change error to sorry.
6532 2013-02-11 Iain Sandoe <iain@codesourcery.com>
6533 Jack Howarth <howarth@bromo.med.uc.edu>
6534 Patrick Marlier <patrick.marlier@gmail.com>
6537 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
6538 define ENDFILE_SPEC as TM_DESTRUCTOR.
6539 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
6541 2013-02-11 Alexander Potapenko <glider@google.com>
6542 Jack Howarth <howarth@bromo.med.uc.edu>
6543 Jakub Jelinek <jakub@redhat.com>
6546 * config/darwin.c (cdtor_record): Rename ctor_record.
6547 (sort_cdtor_records): Rename sort_ctor_records.
6548 (finalize_dtors): New routine to sort destructors by
6549 priority before use in assemble_integer.
6550 (machopic_asm_out_destructor): Use finalize_dtors if needed.
6552 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
6554 PR rtl-optimization/56275
6555 * simplify-rtx.c (avoid_constant_pool_reference): Check that
6556 offset is non-negative and less than cmode size before
6557 calling simplify_subreg.
6559 2013-02-11 Richard Biener <rguenther@suse.de>
6561 PR tree-optimization/56264
6562 * cfgloop.h (fix_loop_structure): Adjust prototype.
6563 * loop-init.c (fix_loop_structure): Return the number of
6564 newly discovered loops.
6565 * tree-cfgcleanup.c (repair_loop_structures): When new loops
6566 are discovered, do a full loop-closed SSA rewrite.
6568 2013-02-11 Richard Biener <rguenther@suse.de>
6570 PR tree-optimization/56273
6571 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6573 (check_array_ref): Fix missing newline in dumps.
6574 (search_for_addr_array): Likewise.
6576 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
6578 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
6580 2013-02-09 Jakub Jelinek <jakub@redhat.com>
6583 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
6585 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
6587 PR rtl-optimization/56246
6588 * lra-constraints.c (simplify_operand_subreg): Try to reuse
6590 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
6591 constraints are satisfied.
6593 2013-02-08 Jeff Law <law@redhat.com>
6596 * emit-rtl.c (reg_is_parm_p): New function.
6597 * regs.h (reg_is_parm_p): New prototype.
6598 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
6599 callee-clobbered registers.
6601 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6604 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
6605 If there is no implicit builtin declaration, just return NULL.
6607 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6609 * config/i386/sse.md (FMAMODEM): New mode iterator.
6610 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
6611 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
6613 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6615 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
6616 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
6617 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
6619 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6621 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
6622 (microblaze*-*-elf): Likewise.
6623 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
6625 * config/microblaze/microblaze-c.c: Add builtin defines for
6626 _LITTLE_ENDIAN and _BIG_ENDIAN.
6627 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
6628 add to TARGET_DEFAULT flags.
6629 Expand ASM_SPEC and LINK_SPEC.
6630 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6631 * config/microblaze/microblaze.md: Update extendsidi2 and
6632 movdi_internal instructions to use low-order / high-order reg
6634 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
6635 options and inversemask / mask of LITTLE_ENDIAN.
6636 * config/microblaze/t-microblaze: Expand multilib options to
6637 include mlittle-endian (le) and update exceptions patterns.
6639 2013-02-08 Jakub Jelinek <jakub@redhat.com>
6641 PR rtl-optimization/56195
6642 * lra-constraints.c (get_reload_reg): Don't reuse regs
6643 if they have smaller mode than requested, if they have
6644 wider mode than requested, try to return a SUBREG.
6646 PR tree-optimization/56250
6647 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
6648 if type is unsigned and code isn't MULT_EXPR.
6650 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6652 PR tree-optimization/56064
6653 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
6654 bits according to mode.
6655 * fixed-value.h (fixed_from_double_int)
6656 (const_fixed_from_double_int): Adjust comments.
6658 2013-02-08 Richard Biener <rguenther@suse.de>
6661 * lto-streamer.h (struct data_in): Remove current_file, current_line
6662 and current_col members.
6663 * lto-streamer-out.c (lto_output_location): Stream changed bits
6664 en-block for efficiency.
6665 * lto-streamer-in.c (clear_line_info): Remove.
6666 (lto_input_location): Cache current file, line and column
6667 globally via local statics. Read changed bits en-block.
6668 (input_function): Do not call clear_line_info.
6669 (lto_read_body): Likewise.
6670 (lto_input_toplevel_asms): Likewise.
6672 2013-02-08 Michael Matz <matz@suse.de>
6674 PR tree-optimization/52448
6675 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
6676 (nt_call_phase): New static.
6677 (add_or_mark_expr): Only mark accesses with newer phase than any
6679 (nonfreeing_call_p): New.
6680 (nt_init_block): Update nt_call_phase, mark blocks as visited.
6681 (nt_fini_block): Keep blocks marked as visited.
6682 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
6684 2013-02-08 Richard Biener <rguenther@suse.de>
6686 * ira.c (ira): Free broken dominator information.
6688 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6690 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
6692 2013-02-08 Marek Polacek <polacek@redhat.com>
6694 * cfgloop.c (verify_loop_structure): Add more checking of headers.
6696 2013-02-08 Richard Biener <rguenther@suse.de>
6699 * cfgloop.h (flow_loops_find): Adjust.
6700 (bb_loop_header_p): Declare.
6701 * cfgloop.c (bb_loop_header_p): New function split out from ...
6702 (flow_loops_find): ... here. Adjust function signature,
6703 support incremental loop structure update.
6704 (verify_loop_structure): Cleanup. Verify a loop is a loop.
6705 * cfgloopmanip.c (fix_loop_structure): Move ...
6706 * loop-init.c (fix_loop_structure): ... here.
6707 (apply_loop_flags): Split out from ...
6708 (loop_optimizer_init): ... here.
6709 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
6710 in incremental mode, only remove dead loops here.
6712 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6715 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
6716 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
6717 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
6718 (*round<mode>3.libgcc): New insns for fixed-modes.
6719 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
6720 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
6721 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
6722 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
6723 implementations. Define to __builtin_avr_absFX,
6724 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
6725 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
6726 __builtin_avr_countlsFX, respectively.
6727 * config/avr/avr-c.c (target.h): Include it.
6728 (enum avr_builtin_id): New enum.
6729 (avr_resolve_overloaded_builtin): New static function.
6730 (avr_register_target_pragmas): Use it to set
6731 targetm.resolve_overloaded_builtin.
6732 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
6733 tree nodes used by DEF_BUILTIN.
6734 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
6735 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
6736 <AVR_BUILTIN_xxBITS>: Same.
6738 2013-02-08 Richard Biener <rguenther@suse.de>
6740 * cfgloop.c (verify_loop_structure): Properly handle
6741 a loop exiting to another loop header.
6742 * ira-int.h (ira_loops): Remove.
6743 * ira.c (ira_loops): Remove.
6744 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
6745 (do_reload): Use loop_optimizer_finalize.
6746 * ira-build.c (create_loop_tree_nodes): Use get_loops and
6747 number_of_loops to access the loop tree.
6748 (more_one_region_p): Likewise.
6749 (finish_loop_tree_nodes): Likewise.
6750 (rebuild_regno_allocno_maps): Likewise.
6751 (mark_loops_for_removal): Likewise.
6752 (mark_all_loops_for_removal): Likewise.
6753 (remove_unnecessary_regions): Likewise.
6754 (ira_build): Likewise.
6755 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6757 2013-02-08 Richard Biener <rguenther@suse.de>
6759 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
6760 * ipa-pure-const.c (analyze_function): Avoid calling
6761 mark_irreducible_loops twice.
6762 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
6764 2013-02-07 David S. Miller <davem@davemloft.net>
6766 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
6768 * var-tracking.c (vt_add_function_parameter): Test the presence of
6769 HAVE_window_save properly and do not remap argument registers when
6770 we have a leaf function.
6772 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
6775 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
6777 * config/i386/i386.c (ix86_print_operand): Ditto.
6779 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6781 * lra-constraints.c (process_alt_operands): Fix recently added comment.
6783 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6785 PR rtl-optimization/56225
6786 * lra-constraints.c (process_alt_operands): Check that reload hard
6787 reg can hold value for strict_low_part.
6789 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6792 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
6793 dwarf2out_end_function.
6794 (in_first_function_p, maybe_at_text_label_p,
6795 first_loclabel_num_not_at_text_label): New variables.
6796 (dwarf2out_var_location): In the first function find out
6797 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
6798 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
6801 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
6803 PR rtl-optimization/56178
6804 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
6805 SUBREG of a register. Tidy up related block of code.
6806 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
6807 note if the source is a register or a SUBREG of a register.
6809 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6812 * config/rs6000/rs6000.md (ptrm): New mode attr.
6813 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
6814 call_value_indirect_aix<pttrsize>,
6815 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
6818 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6820 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
6821 if -bnortl. Convert to strcmp and strncmp.
6823 2013-02-07 Alan Modra <amodra@gmail.com>
6826 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
6827 addresses won't wrap when offsetting.
6828 (rs6000_secondary_reload): Provide secondary reloads needed for
6829 wrapping LO_SUM addresses.
6831 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
6833 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
6834 MACH, just __MACH__.
6836 2013-02-06 Richard Biener <rguenther@suse.de>
6838 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
6839 instead of calling fix_loop_structure.
6841 2013-02-06 Jakub Jelinek <jakub@redhat.com>
6844 * omp-low.c (use_pointer_for_field): Return false if
6845 lower_send_shared_vars doesn't generate any copy-out code.
6847 2013-02-06 Tom de Vries <tom@codesourcery.com>
6849 PR rtl-optimization/56131
6850 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
6851 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
6852 of the label is NULL. Add comment.
6854 2013-02-05 Jakub Jelinek <jakub@redhat.com>
6856 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
6859 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
6860 (STATIC_LIBTSAN_LIBS): Likewise.
6861 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
6862 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
6863 is defined, don't add anything else beyond that.
6864 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
6865 (LINK_COMMAND_SPEC): Use them.
6867 PR tree-optimization/56205
6868 * tree-stdarg.c (check_all_va_list_escapes): Return true if
6869 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
6870 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
6872 2013-02-05 Richard Biener <rguenther@suse.de>
6874 PR tree-optimization/53342
6875 PR tree-optimization/53185
6876 * tree-vectorizer.h (vect_check_strided_load): Remove.
6877 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
6878 not disallow peeling for vectorized strided loads.
6879 (vect_check_strided_load): Make static and simplify.
6880 (vect_analyze_data_refs): Adjust.
6881 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
6882 correctly when vectorizing strided loads.
6884 2013-02-05 Richard Biener <rguenther@suse.de>
6886 * doc/install.texi: Refer to ISL, not PPL.
6888 2013-02-05 Jan Hubicka <jh@suse.cz>
6890 PR tree-optimization/55789
6891 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
6893 2013-02-05 Jan Hubicka <jh@suse.cz>
6895 PR tree-optimization/55789
6896 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
6897 the dead call anyway.
6899 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
6902 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
6904 2013-02-04 Alexander Potapenko <glider@google.com>
6905 Jack Howarth <howarth@bromo.med.uc.edu>
6906 Jakub Jelinek <jakub@redhat.com>
6909 * config/darwin.c (sort_ctor_records): Stabilized qsort
6910 on constructor priority by using original position.
6911 (finalize_ctors): New routine to sort constructors by
6912 priority before use in assemble_integer.
6913 (machopic_asm_out_constructor): Use finalize_ctors if needed.
6915 2013-02-04 Jakub Jelinek <jakub@redhat.com>
6918 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
6919 about visibility on artificial decls.
6920 * config/sol2.c (solaris_assemble_visibility): Likewise.
6922 2013-02-04 Kai Tietz <ktietz@redhat.com>
6925 * config/i386/i386.c (function_value_ms_64): Add additional valtype
6926 argument and improve checking of return-argument types for 16-byte
6928 (ix86_function_value_1): Add additional valtype argument on call
6929 of function_value_64.
6930 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
6931 handling infunction_value_64 function.
6933 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
6935 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
6937 2013-02-04 Richard Biener <rguenther@suse.de>
6939 PR tree-optimization/56188
6940 * tree-ssa-structalias.c (label_visit): Consider case with
6941 initially non-empty points-to set.
6942 (perform_var_substitution): Dump node mapping and clean up.
6944 2013-02-04 Richard Guenther <rguenther@suse.de>
6947 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
6948 node prevail as last resort.
6949 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6950 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
6952 2013-02-04 Richard Biener <rguenther@suse.de>
6954 PR tree-optimization/56113
6955 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
6957 (equiv_class_lookup_or_add): ... this.
6958 (label_visit): Adjust and fix error in previous patch.
6959 (perform_var_substitution): Adjust.
6961 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
6963 * config/sh/divtab.c: Fix formatting and comments throughout the file.
6964 * config/sh/sh4-300.md: Likewise.
6965 * config/sh/sh4a.md: Likewise.
6966 * config/sh/constraints.md: Likewise.
6967 * config/sh/sh.md: Likewise.
6968 * config/sh/netbsd-elf.h: Likewise.
6969 * config/sh/predicates.md: Likewise.
6970 * config/sh/sh-protos.h: Likewise.
6971 * config/sh/ushmedia.h: Likewise.
6972 * config/sh/linux.h: Likewise.
6973 * config/sh/sh.c: Likewise.
6974 * config/sh/superh.h: Likewise.
6975 * config/sh/elf.h: Likewise.
6976 * config/sh/sh4.md: Likewise.
6977 * config/sh/sh.h: Likewise.
6979 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6981 * config/pa/constraints.md: Adjust unused letters. Change "T"
6982 constraint to match_test floating_point_store_memory_operand().
6983 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
6984 (base14_operand): New.
6985 (floating_point_store_memory_operand): New.
6986 (integer_store_memory_operand): Revise to use base14_operand and
6987 reg_plus_base_memory_operand.
6988 (move_dest_operand): Allow symbolic_memory_operands.
6989 (symbolic_memory_operand): Check for LO_SOM.
6990 (symbolic_operand): Change default case to break.
6991 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
6992 CONST_DOUBLE values to be reloaded by putting them into memory when
6993 the destination is a floating point register.
6994 (movdf): Remove code to handle CONST_DOUBLE.
6996 (reload_indf_r1): New.
6997 (reload_insf_r1): New.
6998 Consistently use "Q" and "T" constraints with integer and floating
6999 point move instructions, respectively.
7000 (movdi): Remove FAIL.
7001 Change predicate for source operand unamed DImode move from
7002 general_operand to move_src_operand.
7003 (umulsidi3): Change predicate for destination operand to
7005 Likewise for similar unamed patterns.
7006 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
7007 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
7008 (hppa_legitimize_address): Simplify mask calculation.
7009 (pa_emit_move_sequence): Revised handling of secondary reloads from
7010 REG+D addresses for floating point loads and stores. Directly handle
7011 loading CONST0_RTX (mode) to a floating point register.
7012 (pa_secondary_reload): Handle reloading DF and SFmode constant values
7013 to floating point registers. Don't restrict secondary reloads to
7014 floating point registers to integer modes. Revise some comments and
7016 (TARGET_LEGITIMATE_ADDRESS_P): Define.
7017 (pa_legitimate_address_p): New.
7018 (pa_legitimize_reload_address): New.
7019 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
7020 (STRICT_REG_OK_FOR_BASE_P): New.
7021 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
7022 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
7024 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
7025 Andrew Dixie <andrewd@gentrack.com>
7027 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
7030 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
7032 * expmed.c (extract_bit_field_1): Pass the full width of the
7033 structure to get_best_reg_extraction_insn.
7035 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
7038 * configure.ac (use_cxa_atexit): Add AIX.
7039 * configure: Regenerate.
7041 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
7043 2013-02-01 Jakub Jelinek <jakub@redhat.com>
7046 * final.c (need_profile_function): New variable.
7047 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
7048 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
7049 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
7050 notes, targetm.asm_out.function_prologue doesn't emit anything,
7051 HAVE_prologue and profiler should be emitted before prologue,
7052 set need_profile_function instead of emitting it.
7053 (final_scan_insn): If need_profile_function, emit
7054 profile_function on the first NOTE_INSN_BASIC_BLOCK or
7055 NOTE_INSN_FUNCTION_BEG note.
7057 2013-02-01 Richard Henderson <rth@redhat.com>
7059 * config/rs6000/rs6000.md (smulditi3): New.
7062 * config/alpha/alpha.md (umulditi3): New.
7064 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
7066 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
7067 (ASM_OUTPUT_ALIGNED_LOCAL): New.
7069 2013-02-01 Richard Biener <rguenther@suse.de>
7071 PR tree-optimization/56113
7072 * tree-ssa-structalias.c (label_visit): Reduce work for
7073 single-predecessor nodes.
7075 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
7077 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
7078 range isn't testing for zero.
7080 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
7083 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
7085 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
7086 Nick Clifton <nickc@redhat.com>
7088 * config/v850/constraints.md (Q): Define as a memory constraint.
7089 * config/v850/predicates.md (label_ref_operand): New predicate.
7090 (e3v5_shift_operand): New predicate.
7091 (ior_operator): New predicate.
7092 * config/v850/t-v850: Add e3v5 multilib.
7093 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
7094 (v850_gen_movdi): Prototype.
7095 * config/v850/v850.c: Add support for e3v5 architecture.
7096 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
7098 (construct_save_jarl): Add e3v5 long JARL support.
7099 (v850_adjust_insn_length): New function. Adjust length of call
7100 insns when using e3v5 instructions.
7101 (v850_gen_movdi): New function: Generate instructions to move a
7103 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
7104 (CPP_SPEC): Define __v850e3v5__ as appropriate.
7105 (TARGET_USE_FPU): Enable for e3v5.
7106 (CONST_OK_FOR_W): New macro.
7107 (ADJUST_INSN_LENGTH): Define.
7108 * config/v850/v850.md (UNSPEC_LOOP): Define.
7109 (attr cpu): Add v850e3v5.
7110 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
7111 (movdi): New pattern.
7112 (movdi_internal): New pattern.
7113 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
7114 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
7115 (cstoresf4): Likewise.
7116 (cstoredf4): Likewise.
7117 (insv): New pattern.
7118 (rotlso3_a): New pattern.
7119 (rotlsi3_b): New pattern
7120 (rotlsi3_v850e3v5): New pattern.
7121 (doloop_begin): New pattern.
7122 (fix_loop_counter): New pattern.
7123 (doloop_end): New pattern.
7124 (branch_normal): Add e3v5 long branch support.
7125 (branch_invert): Likewise.
7126 (branch_z_normal): Likewise.
7127 (branch_z_invert): Likewise.
7128 (branch_nz_normal): Likewise.
7129 (branch_nz_invert): Likewise.
7130 (call_internal_short): Add e3v5 register-indirect JARL support.
7131 (call_internal_long): Likewise.
7132 (call_value_internal_short): Likewise.
7133 (call_value_internal_long): Likewise.
7134 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
7135 (mloop): New option.
7136 * config.gcc: Add support for configuring v840e3v5 target.
7137 * doc/invoke.texi: Document new v850 specific command line options.
7139 2013-01-31 Paul Koning <ni1d@arrl.net>
7143 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
7144 children if parent is a class.
7145 (prune_unused_types_prune): Don't add DW_AT_declaration.
7147 2013-01-31 Richard Biener <rguenther@suse.de>
7149 PR tree-optimization/56157
7150 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
7151 match up operand with SLP child.
7153 2013-01-31 Jason Merrill <jason@redhat.com>
7156 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
7157 parameters the first time.
7158 (gen_scheduled_generic_parms_dies): Check completeness here.
7160 2013-01-31 Richard Biener <rguenther@suse.de>
7163 * common.opt (faggressive-loop-optimizations): New flag,
7165 * doc/invoke.texi (faggressive-loop-optimizations): Document.
7166 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
7167 infer_loop_bounds_from_undefined by it.
7169 2013-01-31 Richard Biener <rguenther@suse.de>
7171 PR tree-optimization/56150
7172 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
7173 visit virtual operands.
7174 (find_uses_to_rename_bb): Likewise.
7176 2013-01-31 Richard Biener <rguenther@suse.de>
7178 PR tree-optimization/56150
7179 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
7180 mixed store non-store stmts.
7182 2013-01-30 Jakub Jelinek <jakub@redhat.com>
7185 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
7186 LIBASAN_EARLY_SPEC is defined.
7187 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
7188 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
7190 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
7193 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
7194 invalid args instead of ICEing on it.
7195 (ix86_valid_target_attribute_tree): Return error_mark_node if
7196 ix86_valid_target_attribute_inner_p failed.
7197 (ix86_valid_target_attribute_p): Return false only if
7198 ix86_valid_target_attribute_tree returned error_mark_node. Allow
7199 target("default") attribute.
7200 (sorted_attr_string): Change argument from const char * to tree,
7201 merge in all target attribute arguments rather than just one.
7202 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
7203 instead of free. Avoid using strcat.
7204 (ix86_mangle_function_version_assembler_name): Mangle
7205 target("default") as if no target attribute is present. Adjust
7206 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
7207 instead of xmalloc and XDELETEVEC instead of free.
7208 (ix86_function_versions): Don't return true if one of the decls
7209 doesn't have target attribute. If they don't and one of the decls
7210 is DECL_FUNCTION_VERSIONED, report an error. Adjust
7211 sorted_attr_string caller. Use XDELETEVEC instead of free.
7212 (ix86_supports_function_versions): Remove.
7213 (make_name): Fix up formatting.
7214 (make_dispatcher_decl): Remove resolver_name and its initialization.
7215 Avoid leaking memory.
7216 (is_function_default_version): Return true if there is
7217 target("default") attribute rather than no target attribute at all.
7218 (make_resolver_func): Avoid leaking memory.
7219 (ix86_generate_version_dispatcher_body): Likewise.
7220 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
7221 * target.def (supports_function_versions): Remove.
7222 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
7223 * doc/tm.texi: Regenerated.
7225 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
7227 PR rtl-optimization/56144
7228 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
7229 for values with side effects.
7231 2013-01-30 Richard Biener <rguenther@suse.de>
7233 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
7234 (sparseset_pop): Likewise.
7235 * cfganal.c (compute_idf): Likewise. Increase work-stack size
7236 to be able to use quick_push in the worker loop.
7238 2013-01-30 Marek Polacek <polacek@redhat.com>
7240 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
7242 2013-01-30 Richard Biener <rguenther@suse.de>
7245 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
7247 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
7249 PR tree-optimization/56064
7250 * fixed-value.c (fixed_from_double_int): New function.
7251 * fixed-value.h (fixed_from_double_int): New prototype.
7252 (const_fixed_from_double_int): New static inline function.
7253 * fold-const.c (native_interpret_fixed): New static function.
7254 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
7255 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
7256 (native_encode_fixed): New static function.
7257 (native_encode_expr) <FIXED_CST>: Use it.
7258 (native_interpret_int): Move double_int worker code to...
7259 * double-int.c (double_int::from_buffer): ...this new static method.
7260 * double-int.h (double_int::from_buffer): Prototype it.
7262 2013-01-30 Richard Biener <rguenther@suse.de>
7264 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
7265 New pointer-map and obstack.
7266 (init_alias_vars): Allocate pointer-map and obstack.
7267 (delete_points_to_sets): Free them.
7268 (find_what_var_points_to): Cache result.
7269 (find_what_p_points_to): Adjust for changed interface of
7270 find_what_var_points_to.
7271 (compute_points_to_sets): Likewise.
7272 (ipa_pta_execute): Likewise.
7274 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7276 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
7277 * configure: Regenerate.
7278 * config.in: Regenerate.
7279 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
7280 #nobits/#progbits if supported.
7282 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
7285 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
7286 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
7287 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
7289 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7291 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
7292 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7294 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7296 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
7297 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
7299 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7301 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
7303 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
7304 * config/arm/cortex-a7.md: New bypasses using
7305 arm_mac_accumulator_is_result.
7307 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7309 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
7310 (cortex_a7_neon_mla): Likewise.
7311 (cortex_a7_fpfmad): New reservation.
7312 (cortex_a7_fpmacs): Use ffmas and update required units.
7313 (cortex_a7_fpmuld): Update required units and latency.
7314 (cortex_a7_fpmacd): Likewise.
7315 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
7316 (cortex_a7_neon). Likewise.
7317 (bypass) Update participating units.
7319 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7321 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
7322 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
7324 * config/arm/vfp11.md (vfp_farith): Use ffmas.
7325 (vfp_fmul): Use ffmad.
7326 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
7327 (cortex_r4_fmacd): Use ffmad.
7328 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
7329 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
7330 (cortex_a9_fmacd): Use ffmad.
7331 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
7332 (cortex_a8_vfp_macd): Use ffmad.
7333 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
7334 (cortex_a5_fpmacd): Use ffmad.
7335 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
7336 (cortex_a15_vfp_macd): Use ffmad.
7337 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
7339 2013-01-29 Jason Merrill <jason@redhat.com>
7342 * varasm.c (default_assemble_visibility): Don't warn about
7343 visibility on artificial decls.
7345 2013-01-29 Richard Biener <rguenther@suse.de>
7347 PR tree-optimization/56113
7348 * tree-ssa-structalias.c (equiv_class_lookup): Also return
7350 (label_visit): Free duplicate bitmaps and record the leader instead.
7351 (perform_var_substitution): Adjust.
7353 2013-01-29 Richard Biener <rguenther@suse.de>
7355 PR tree-optimization/55270
7356 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
7357 the CFG, schedule loops for fixup.
7359 2013-01-29 Nick Clifton <nickc@redhat.com>
7361 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
7364 2013-01-28 Leif Ekblad <leif@rdos.net>
7366 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
7367 * config/i386/i386.h (TARGET_RDOS): New macro.
7368 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
7369 * config/i386/i386.c (ix86_option_override_internal): For 64bit
7370 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
7371 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
7372 DEFAULT_LARGE_SECTION_THRESHOLD.
7373 * config/i386/i386.md (R14_REG, R15_REG): New constants.
7374 * config/i386/rdos.h: New file.
7375 * config/i386/rdos64.h: New file.
7377 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
7380 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
7383 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7385 PR rtl-optimization/56117
7386 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
7387 call cselib_lookup_from_insn on the MEM before calling
7388 add_insn_mem_dependence.
7390 2013-01-28 Richard Biener <rguenther@suse.de>
7392 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
7393 to a stmt that didn't have one.
7394 (copy_phis_for_bb): Likewise for PHI arguments.
7395 (copy_debug_stmt): Likewise for debug stmts.
7397 2013-01-28 Richard Biener <rguenther@suse.de>
7399 PR tree-optimization/56034
7400 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
7401 (partition_builtin_p): Adjust.
7402 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
7403 it is the last partition.
7404 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
7405 up the vertex for the definition.
7406 (classify_partition): Classify whether a partition is a
7407 PKIND_REDUCTION, thus has uses outside of the loop.
7408 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
7409 Merge all PKIND_REDUCTION partitions into the last partition.
7410 (tree_loop_distribution): Seed partitions from reductions as well.
7412 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7414 PR tree-optimization/56125
7415 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
7416 pow(x,c) into sqrt(x) * powi(x, n/2) or
7417 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
7418 optimizing for size.
7419 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
7420 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
7423 PR tree-optimization/56094
7424 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
7425 to UNKNOWN_LOCATION while gimplifying expr.
7427 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
7430 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
7431 operand 0 in movabs insn template for -masm=intel asm alternative.
7432 (*movabs<mode>_2): Ditto for operand 1.
7434 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
7437 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
7440 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7442 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
7445 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7447 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
7448 Undef to avoid warning.
7450 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7452 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
7453 * configure: Regenerate.
7455 2013-01-25 Jakub Jelinek <jakub@redhat.com>
7457 PR tree-optimization/56098
7458 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
7459 for stmts with volatile ops.
7460 (cond_store_replacement): Don't optimize if assign has volatile ops.
7461 (cond_if_else_store_replacement_1): Don't optimize if either
7462 then_assign or else_assign have volatile ops.
7463 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
7466 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7468 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
7470 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7472 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
7473 missing ':' in asm example.
7475 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
7477 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
7478 entries into lane and laneq entries.
7479 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
7480 Remove AdvSIMD scalar modes.
7481 (aarch64_sq<r>dmulh_laneq<mode>): New.
7482 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
7484 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
7485 builtin implementations to relfect changes in RTL in aarch64-simd.md.
7486 * config/aarch64/iterators.md (VCOND): New.
7489 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7492 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
7493 Add NULL LIBNAME argument to existing definitions.
7494 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
7495 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
7496 * config/avr/avr.c (DEF_BUILTIN): Same.
7497 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
7498 (avr_expand_builtin): Expand to a vanilla call if a libgcc
7499 implementation is available (DECL_ASSEMBLER_NAME is set).
7500 (avr_fold_absfx): New static function.
7501 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
7502 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
7503 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
7505 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
7506 (abshk, absk, abslk, absllk): Provide as static inline functions.
7508 2013-01-25 Marek Polacek <polacek@redhat.com>
7510 PR tree-optimization/56035
7511 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
7513 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
7515 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
7516 (*movtf_internal_rex64): Add (!o,C) alternative
7517 (*movxf_internal_rex64): Ditto.
7518 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
7520 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
7522 * doc/invoke.texi: fix typo.
7523 * doc/objc.texi: fix typo.
7525 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
7527 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
7528 for the first two alternatives.
7530 2013-01-24 Diego Novillo <dnovillo@google.com>
7532 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
7533 (ggc-zone.o): Remove.
7534 * configure.ac: Remove option --with-gc.
7535 * configure: Re-generate.
7536 * doc/install.texi: Remove documentation for --with-gc.
7537 * gengtype.c (write_enum_defn): Remove. Update all users.
7538 (write_Types_process_field): Remove generation of gt_e_* argument.
7539 (output_type_enum): Remove. Update all users.
7540 (write_enum_defn): Remove. Update all users.
7541 (enum alloc_zone): Remove. Update all users.
7542 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
7543 * ggc-common.c (ggc_splay_alloc): Remove first argument.
7545 (struct ptr_data): Remove field TYPE. Update all users.
7546 (gt_pch_note_object): Remove argument TYPE. Update all users.
7547 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
7549 * ggc-none.c (ggc_alloc_typed_stat): Remove.
7550 (struct alloc_zone): Remove.
7551 (ggc_internal_alloc_zone_stat): Remove.
7552 (ggc_internal_cleared_alloc_zone_stat): Remove.
7553 * ggc-page.c (ggc_alloc_typed_stat): Remove.
7554 (ggc_pch_count_object): Remove last argument. Update all users.
7555 (ggc_pch_alloc_object): Remove last argument. Update all users.
7556 (struct alloc_zone): Remove.
7557 * ggc-zone.c: Remove.
7558 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
7559 (struct alloc_zone): Remove.
7560 (ggc_alloc_typed_stat): Remove.
7561 (ggc_alloc_typed): Remove.
7562 (ggc_splay_alloc): Remove first argument.
7563 (rtl_zone): Remove. Update all users.
7564 (tree_zone): Remove. Update all users.
7565 (tree_id_zone): Remove. Update all users.
7566 (ggc_internal_zone_alloc_stat): Remove. Update all users.
7567 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
7568 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
7569 * tree-ssanames.c: Remove references to zone allocator in comments.
7571 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
7573 * config/avr/avr.c (avr_out_fract): Make register numbers that
7574 might be outside of source operand signed.
7576 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
7578 * config/i386/constraints.md (Yf): New constraint.
7579 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
7580 of f constraint to conditionaly disable x87 register preferences.
7581 (*movdf_internal): Ditto.
7582 (*movsf_internal): Ditto.
7584 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
7587 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
7588 that have operands with impossible constraints.
7589 Add a FIXME for a speed-up opportunity.
7590 * lra-constraints.c (process_alt_operands): Verify that a class
7591 selected from constraints on asms is valid for the operand mode.
7592 (curr_insn_transform): Remove incorrect comment.
7594 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
7596 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
7597 TOC operand is a valid symbol ref in the constant pool.
7599 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7601 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
7603 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
7606 * config/avr/stdfix.h: New file.
7607 * t-avr (stdfix-gcc.h): New rule to build it.
7608 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
7610 2013-01-23 Kostya Serebryany <kcc@google.com>
7612 * config/darwin.h: remove dependency on
7613 CoreFoundation (asan on Mac OS).
7615 2013-01-23 Jakub Jelinek <jakub@redhat.com>
7618 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
7619 instead of cmpdi_operand for first comparison operand.
7620 Don't assert that comparison operands aren't both constants.
7622 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7624 * doc/install.texi (Downloading the Source): Update references to
7625 downloading separate components.
7627 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7629 * doc/extend.texi (__int128): Improve grammar.
7631 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
7634 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
7635 alternative to (o,r).
7636 (*movdi_internal_rex64): Remove (!o,n) alternative.
7637 (DImode immediate->memory splitter): Remove.
7638 (DImode immediate->memory peephole2): Remove.
7639 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
7640 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
7641 alternative to (!o,*r).
7642 (*movtf_internal_sse): New pattern.
7643 (*movxf_internal_rex64): New pattern.
7644 (*movxf_internal): Disable for TARGET_64BIT.
7645 (*movdf_internal_rex64): Remove (!o,F) alternative.
7647 2013-01-22 Jakub Jelinek <jakub@redhat.com>
7650 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
7651 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
7652 * tree-vect-loop-manip.c (find_loop_location): Also ignore
7653 stmt locations where LOCATION_LOCUS of the stmt location is
7654 UNKNOWN_LOCATION or BUILTINS_LOCATION.
7657 * config/i386/i386.md (UNSPEC_STOS): New.
7658 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
7659 *strsetqi_1): Add UNSPEC_STOS.
7661 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
7664 * doc/invoke.texi: Remove left over -Wsynth example.
7666 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7668 PR tree-optimization/56051
7669 * fold-const.c (fold_binary_loc): Don't fold
7670 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
7671 a narrowing conversion, or widening conversion from signed
7674 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7676 PR rtl-optimization/56023
7677 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
7678 dependent on debug instruction.
7680 2013-01-21 Martin Jambor <mjambor@suse.cz>
7683 * function.c (allocate_struct_function): Call
7684 invoke_set_current_function_hook earlier.
7686 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7688 * reload1.c (init_reload): Only initialize reload_obstack
7689 during the first call.
7691 2013-01-21 Marek Polacek <polacek@redhat.com>
7693 * cfgloop.c (verify_loop_structure): Fix up grammar.
7695 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
7697 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
7698 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
7700 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7703 * config/arm/marvell-pj4.md: Update copyright year.
7704 Fix up use of alu to alu_reg and simple_alu_imm.
7706 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7708 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
7710 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
7713 * lra-constraints.c (curr_insn_transform): Don't reuse original
7714 insn for secondary memory move when memory mode should be different.
7716 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7718 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
7719 atomic_storedi_1): New patterns.
7721 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7723 btver2 pipeline descriptions.
7724 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
7726 * config/i386/i386.md (btver2_decode): New type attributes.
7727 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
7729 * config/i386/btver2.md: New file describing btver2 pipelines.
7731 2013-01-19 Andrew Pinski <apinski@cavium.com>
7733 PR tree-optimization/52631
7734 * tree-ssa-sccvn (visit_use): Before looking up the original
7735 statement, try looking up the simplified expression.
7737 2013-01-19 Anthony Green <green@moxielogic.com>
7739 * config/moxie/moxie.c (moxie_expand_prologue): Set
7740 current_function_static_stack_size.
7742 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7744 PR tree-optimization/56029
7745 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
7746 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
7748 2013-01-18 Sharad Singhai <singhai@google.com>
7750 PR tree-optimization/55995
7751 * dumpfile.c (dump_loc): Print location only if available.
7752 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
7754 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
7757 * lra-constraints.c (curr_insn_transform): Reuse original insn for
7758 secondary memory move.
7759 (inherit_reload_reg): Use rclass instead of cl for
7760 check_secondary_memory_needed_p.
7762 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7765 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
7766 the case where writing real complex part of target modifies op1.
7768 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
7770 * config/aarch64/aarch64-simd.md
7771 (aarch64_vcond_internal<mode>): Handle unordered cases.
7772 * config/aarch64/iterators.md (v_cmp_result): New.
7774 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
7775 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7777 * config/arm/marvell-pj4.md: New file.
7778 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
7779 * config/arm/arm.md (generic_sched): Add marvell_pj4.
7780 (generic_vfp): Likewise.
7781 * config/arm/arm-cores.def: Add marvell-pj4.
7782 * config/arm/arm-tune.md: Regenerate.
7783 * config/arm/arm-tables.opt: Regenerate.
7784 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
7785 * doc/invoke.texi: Document marvell-pj4.
7787 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
7789 * config/aarch64/arm_neon.h: Map scalar types to standard types.
7791 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7796 * var-tracking.c (negative_power_of_two_p): New.
7797 (global_get_addr_cache, local_get_addr_cache): New.
7798 (get_addr_from_global_cache, get_addr_from_local_cache): New.
7799 (vt_canonicalize_addr): Rewrite using the above. Adjust the
7801 (vt_stack_offset_p): Remove.
7802 (vt_canon_true_dep): Always canonicalize loc's address.
7803 (clobber_overlapping_mems): Make sure we have a MEM.
7804 (local_get_addr_clear_given_value): New.
7805 (val_reset): Clear local cached entries.
7806 (compute_bb_dataflow): Create and release the local cache.
7807 Disable duplicate MEMs clobbering.
7808 (emit_notes_in_bb): Clobber MEMs likewise.
7809 (vt_emit_notes): Create and release the local cache.
7810 (vt_initialize, vt_finalize): Create and release the global
7811 cache, respectively.
7812 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
7814 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7817 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
7818 not found in the symtab.
7820 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7823 PR rtl-optimization/55547
7824 PR rtl-optimization/53827
7827 * alias.c (offset_overlap_p): New, factored out of...
7828 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
7829 the conservative special case for symbolic constants. Don't
7830 adjust zero sizes on alignment.
7832 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
7834 PR rtl-optimization/52573
7835 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
7836 REG_UNUSED for the same register.
7838 2013-01-17 Richard Biener <rguenther@suse.de>
7839 Marek Polacek <polacek@redhat.com>
7841 PR rtl-optimization/55833
7842 * loop-unswitch.c (unswitch_loops): Move loop verification...
7843 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
7844 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
7845 Set it to true when we're removing a loop from hierarchy tree in
7846 an irreducible region.
7847 (fix_bb_placements): Adjust caller.
7848 (fix_loop_placements): Likewise.
7850 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
7852 * config/avr/builtins.def (DEF_BUILTIN): Factor out
7853 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
7854 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
7855 Remove ID. Adjust comments.
7856 * config/avr/avr-c.c (avr_builtin_name): Remove.
7857 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
7858 * config/avr/avr.c (avr_tolower): New static function.
7859 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
7860 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
7861 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
7864 2013-01-17 Jan Hubicka <jh@suse.cz>
7866 PR tree-optimization/55273
7867 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
7869 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
7872 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
7873 store through atomic_store<mode>_1.
7874 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
7876 2013-01-17 Martin Jambor <mjambor@suse.cz>
7878 PR tree-optimizations/55264
7879 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
7880 for virtual methods.
7881 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
7882 virtual methods before inlining is over.
7883 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
7885 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
7888 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
7890 PR rtl-optimization/56005
7891 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
7892 pending reads for prefetch.
7894 2013-01-16 Ian Bolton <ian.bolton@arm.com>
7896 * config/aarch64/aarch64.md
7897 (*cstoresi_neg_uxtw): New pattern.
7898 (*cmovsi_insn_uxtw): New pattern.
7899 (*<optab>si3_uxtw): New pattern.
7900 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
7901 (*<optab>si3_insn_uxtw): New pattern.
7902 (*bswapsi2_uxtw): New pattern.
7904 2013-01-16 Richard Biener <rguenther@suse.de>
7906 * tree-inline.c (tree_function_versioning): Remove set but
7907 never used variable.
7909 2013-01-16 Richard Biener <rguenther@suse.de>
7911 PR tree-optimization/55964
7912 * tree-flow.h (rename_variables_in_loop): Remove.
7913 (rename_variables_in_bb): Likewise.
7914 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
7915 (copy_loop_before): Adjust and delete update-ssa status.
7916 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
7917 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
7918 (rename_variables_in_loop): Remove.
7919 (slpeel_update_phis_for_duplicate_loop): Likewise.
7920 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
7921 use available cfg machinery instead of duplicating it.
7922 Update PHI nodes and perform poor-mans SSA update here.
7923 (slpeel_tree_peel_loop_to_edge): Adjust.
7925 2013-01-16 Richard Biener <rguenther@suse.de>
7927 PR tree-optimization/54767
7928 PR tree-optimization/53465
7929 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
7930 (vrp_visit_phi_node): For PHI arguments coming via backedges
7931 drop all symbolical range information.
7932 (execute_vrp): Compute backedges.
7934 2013-01-16 Richard Biener <rguenther@suse.de>
7936 * doc/install.texi: Update CLooG and ISL requirements to
7939 2013-01-16 Christian Bruel <christian.bruel@st.com>
7942 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
7943 (broken_move): Handle UNSPECV_SP_SWITCH_B.
7944 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
7946 2013-01-16 DJ Delorie <dj@redhat.com>
7948 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
7949 (UNSPECV_SP_SWITCH_E): New.
7950 (sp_switch_1): Change to an unspec.
7951 (sp_switch_2): Change to an unspec. Don't use post-inc when we
7954 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
7956 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
7957 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
7958 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
7959 (expand_mem_thread_fence): Ditto.
7960 (expand_mem_signal_fence): Ditto.
7961 (expand_atomic_load): Ditto.
7962 (expand_atomic_store): Ditto.
7964 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
7966 PR rtl-optimization/55547
7967 PR rtl-optimization/53827
7970 * alias.c (memrefs_conflict_p): Set sizes to negative after
7973 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7976 * function.c (thread_prologue_and_epilogue_insns): Always
7977 add crtl->drap_reg to set_up_by_prologue.set, even if
7978 stack_realign_drap is false.
7980 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7982 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
7983 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
7984 *call): Fix indention.
7986 2013-01-15 Tom de Vries <tom@codesourcery.com>
7989 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
7992 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
7994 PR rtl-optimization/55153
7995 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
7997 2013-01-15 Martin Jambor <mjambor@suse.cz>
7999 PR tree-optimization/55920
8000 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
8001 accesses as grp_to_be_debug_replaced.
8003 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8005 PR tree-optimization/55920
8006 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
8007 there is non-useless type conversion needed from debug rhs to lhs,
8008 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
8010 2013-01-15 Joseph Myers <joseph@codesourcery.com>
8011 Mikael Pettersson <mikpe@it.uu.se>
8014 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
8016 (ASM_OUTPUT_CASE_LABEL): Remove.
8017 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
8018 * final.c (shorten_branches): Update alignment of labels before
8019 jump tables if CASE_VECTOR_SHORTEN_MODE.
8021 2013-01-15 Richard Biener <rguenther@suse.de>
8024 * system.h: Do not include gmp.h for building host tools.
8026 2013-01-15 Richard Biener <rguenther@suse.de>
8029 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
8030 account for bitpos when computing alignment.
8032 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
8034 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
8035 (ix86_target_macros_internal): Likewise.
8037 * config/i386/i386.c (m_CORE2I7): Removed.
8038 (m_CORE_HASWELL): New macro.
8039 (m_CORE_ALL): Likewise.
8040 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
8041 (initial_ix86_arch_features): Likewise.
8042 (processor_target_table): Initializations for Core avx2.
8043 (cpu_names): New names "core-avx2".
8044 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
8045 PROCESSOR_CORE_HASWELL.
8046 (ix86_issue_rate): New case.
8047 (ia32_multipass_dfa_lookahead): Likewise.
8048 (ix86_sched_init_global): Likewise.
8050 * config/i386/i386.h (TARGET_HASWELL): New macro.
8051 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
8052 (processor_type): New PROCESSOR_HASWELL.
8054 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8056 PR tree-optimization/55955
8057 * tree-vect-loop.c (vectorizable_reduction): Give up early on
8058 *SHIFT_EXPR and *ROTATE_EXPR codes.
8060 PR tree-optimization/48766
8061 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
8062 -ftrapv disable -fwrapv.
8064 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8067 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
8068 etc. to 1 and not to __flash.
8069 Use LL suffix for __INT24_MAX__ with -mint8.
8070 Use ULL suffix for __UINT24_MAX__ with -mint8.
8072 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8074 * config/avr/avr-arch.h
8075 (struct base_arch_s): Use typedef avr_arch_t instead.
8076 (struct arch_info_s): Use typedef avr_arch_info_t instead.
8077 (struct mcu_type_s): Use typedef avr_mcu_t instead.
8078 * config/avr/avr.c: Same.
8079 * config/avr/avr-devices.c: Same.
8080 * config/avr/driver-avr.c: Same.
8081 * config/avr/gen-avr-mmcu-texi.c: Same.
8082 * config/avr/avr-mcus.def: Adjust comment.
8084 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
8086 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
8087 * config/aarch64/iterators.md (VALLDI): New.
8089 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
8090 Andi Kleen <ak@linux.intel.com>
8093 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
8094 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
8097 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8099 * config/avr/avr-stdint.h: Remove trailing blanks.
8100 * config/avr/avr-log.h: Same.
8101 * config/avr/avr-arch.h: Same.
8102 * config/avr/avr-devices.c: Same.
8103 * config/avr/avr-dimode.md: Same.
8104 * config/avr/predicates.md: Same.
8105 * config/avr/avr-c.c: Same. And fix typo.
8107 * config/avr/avr-protos.h: Same. And:
8108 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
8109 (init_cumulative_args): Rename to avr_init_cumulative_args.
8110 (expand_prologue): Rename to avr_expand_prologue.
8111 (expand_epilogue): Rename to avr_expand_epilogue.
8112 (adjust_insn_length): Rename to avr_adjust_insn_length.
8113 (notice_update_cc): Rename to avr_notice_update_cc.
8114 (final_prescan_insn): Rename to avr_final_prescan_insn.
8115 * config/avr/avr.c: Same.
8116 * config/avr/avr.h: Same.
8117 * config/avr/avr.md: Remove trailing blanks.
8118 (prologue): Use avr_expand_prologue.
8119 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
8121 2013-01-14 Richard Biener <rguenther@suse.de>
8123 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
8124 verify_location, collect_subblocks): New functions.
8125 (verify_gimple_in_cfg): Verify that locations only reference
8126 BLOCKs in the functions BLOCK tree.
8128 2013-01-14 Richard Biener <rguenther@suse.de>
8130 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
8132 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
8134 (insert_out_of_ssa_copy_on_edge): Likewise.
8135 (rewrite_close_phi_out_of_ssa): Likewise.
8136 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
8138 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
8139 propagated constants.
8140 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
8143 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8145 * config/avr/avr-modes.def: Add GPL copyright notice.
8147 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
8149 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
8150 MEMMODEL_MASK to determine memory model.
8151 (atomic_store<mode>): Ditto from operands[2].
8152 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
8154 2013-01-13 Jakub Jelinek <jakub@redhat.com>
8157 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
8158 (fold_gimple_assign): Don't call unshare_expr here.
8159 (fold_ctor_reference): Call unshare_expr.
8161 2013-01-13 Terry Guo <terry.guo@arm.com>
8163 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
8164 * doc/fragments.texi: Document MULTILIB_REUSE.
8165 * gcc.c (multilib_reuse): New internal spec.
8166 (set_multilib_dir): Also search multilib from multilib_reuse.
8167 * genmultilib (tmpmultilib3): Refactor code.
8168 (tmpmultilib4): Ditto.
8169 (multilib_reuse): New multilib argument.
8171 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
8173 * Makefile.in: Update copyright.
8175 2013-01-12 Tom de Vries <tom@codesourcery.com>
8178 * calls.c (expand_call): Check if arg_nr is valid.
8180 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8182 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
8183 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
8184 documentation. Add missing '__' in front of
8185 __builtin_ia32_packssdw256.
8187 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8190 * config/s390/s390.c (s390_preferred_reload_class): Do not return
8191 NO_REGS for larl operands.
8192 (s390_reload_larl_operand): Use s390_load_address instead of
8195 2013-01-11 Richard Biener <rguenther@suse.de>
8197 * tree-cfg.c (verify_node_sharing_1): Split out from ...
8198 (verify_node_sharing): ... here.
8199 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
8201 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
8203 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
8204 Substitute TREECHECKING.
8205 * configure: Regenerate.
8206 * Makefile.in (TREECHECKING): New.
8208 2013-01-11 Richard Guenther <rguenther@suse.de>
8210 PR tree-optimization/44061
8211 * tree-vrp.c (extract_range_basic): Compute zero as
8212 value-range for __builtin_constant_p of function parameters.
8214 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
8216 Update copyright years.
8218 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
8220 PR rtl-optimization/55672
8221 * lra-eliminations.c (mark_not_eliminable): Permit addition with
8222 const to be eliminable.
8224 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
8226 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
8227 * configure: Regenerate.
8229 2013-01-10 Richard Biener <rguenther@suse.de>
8231 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
8233 2013-01-10 Richard Biener <rguenther@suse.de>
8236 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
8237 locations for virtual PHI arguments.
8238 (rewrite_update_phi_arguments): Likewise.
8240 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
8242 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
8245 2013-01-10 Jakub Jelinek <jakub@redhat.com>
8247 PR tree-optimization/55921
8248 * tree-complex.c (expand_complex_asm): New function.
8249 (expand_complex_operations_1): Call it for GIMPLE_ASM.
8251 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8254 * config/s390/s390.c (s390_symref_operand_p)
8255 (s390_loadrelative_operand_p): Merge the two functions.
8256 (s390_check_qrst_address, print_operand_address): Add parameters
8257 to s390_loadrelative_operand_p invokation.
8258 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
8259 (s390_reload_larl_operand, s390_secondary_reload): Use
8260 s390_loadrelative_operand_p instead of s390_symref_operand_p.
8261 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
8263 2013-01-09 Mike Stump <mikestump@comcast.net>
8265 * dse.c (record_store): Remove unnecessary assert.
8267 2013-01-09 Jan Hubicka <jh@suse.cz>
8269 PR tree-optimization/55569
8270 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
8271 * cfgloop.h (scale_loop_profile): Likewise.
8273 2013-01-09 Jan Hubicka <jh@suse.cz>
8276 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
8278 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
8280 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
8283 * expr.h (maybe_emit_group_store): Declare.
8284 * expr.c (maybe_emit_group_store): New function.
8285 * builtins.c (expand_builtin_int_roundingfn): Call it.
8286 (expand_builtin_int_roundingfn_2): Likewise.
8288 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
8290 PR rtl-optimization/55829
8291 * lra-constraints.c (match_reload): Add code for absent output.
8292 (curr_insn_transform): Add code for reloads of matched inputs
8295 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
8297 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
8298 attribute of movddup insn to DF.
8299 (*vec_interleave_lowv2df): Ditto.
8300 (vec_dupv2df): Ditto.
8302 2013-01-09 Jan Hubicka <jh@suse.cz>
8304 PR tree-optimiation/55875
8305 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
8306 EVERY_ITERATION parameter.
8307 (number_of_iterations_exit): Check if exit is executed every iteration.
8308 (idx_infer_loop_bounds): Similarly here.
8309 (n_of_executions_at_most): Simplify
8310 to only test for cases where statement is dominated by the
8311 particular bound; handle correctly the "postdominance" test.
8312 (scev_probably_wraps_p): Use max loop iterations info
8313 as a global bound first.
8315 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
8316 Nick Clifton <nickc@redhat.com>
8318 * config/v850/v850.md (cbranchsf4): New pattern.
8319 (cstoresf4): New pattern.
8320 (cbranchdf4): New pattern.
8321 (cstoredf4): New pattern.
8322 (movsicc): Disallow floating point comparisons.
8323 (cmpsf_le_insn): Fix order of operators.
8324 (cmpsf_lt_insn): Likewise.
8325 (cmpsf_eq_insn): Likewise.
8326 (cmpdf_le_insn): Likewise.
8327 (cmpdf_lt_insn): Likewise.
8328 (cmpdf_eq_insn): Likewise.
8329 (cmpsf_ge_insn): Use LE comparison.
8330 (cmpdf_ge_insn): Likewise.
8331 (cmpsf_gt_insn): Use LT comparison.
8332 (cmpdf_gt_insn): Likewise.
8333 (cmpsf_ne_insn): Delete pattern.
8334 (cmpdf_ne_insn): Delete pattern.
8335 * config/v850/v850.c (v850_gen_float_compare): Use
8336 gen_cmpdf_eq_insn for NE comparison.
8337 (v850_float_z_comparison_operator)
8338 (v850_float_nz_comparison_operator): Move from here ...
8339 * config/v850/predicates.md: ... to here. Move GT and GE
8340 comparisons into v850_float_z_comparison_operator.
8341 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
8343 (v850_float_nz_comparison_operator): Likewise.
8345 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8347 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
8348 with calls to gen_insvsi/gen_insvdi.
8350 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8352 * config/i386/i386.c (initial_ix86_tune_features): Set up
8353 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
8355 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
8356 Jakub Jelinek <jakub@redhat.com>
8358 PR tree-optimization/48189
8359 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
8360 If nitercst is 0, don't predict the exit edge.
8362 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8364 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
8365 in asm_fprintf with reg_names.
8366 (aarch64_print_operand_address): Likewise.
8367 (aarch64_return_addr): Likewise.
8368 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
8370 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8372 * config/pa/pa.h (VAL_U6_BITS_P): Define.
8373 (INT_U6_BITS): Likewise.
8374 * config/pa/predicates.md (uint6_operand): New predicate.
8375 (shift5_operand, shift6_operand): Likewise.
8376 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
8378 (lshrdi3): Use shift6_operand.
8379 (shrpsi4, shrpdi4): New insn patterns.
8380 (extzv): Delete expander.
8381 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
8382 predicates in unamed zero extract patterns. Tighten common constraint.
8383 (extv): Delete expander.
8384 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
8385 predicates in unamed sign extract patterns. Tighten common constraint.
8386 (insv): Delete expander.
8387 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
8388 predicates in unamed insert patterns. Tighten common constraint.
8389 Change uint32_operand predicate to uint6_operand predicate in unamed
8390 DImode pattern to insert constant values of type 1...1xxxx.
8392 2013-01-04 Jan Hubicka <jh@suse.cz>
8394 PR tree-optimization/55823
8395 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
8398 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8399 Uros Bizjak <ubizjak@gmail.com>
8401 PR rtl-optimization/55845
8402 * df-problems.c (can_move_insns_across): Stop scanning at
8403 volatile_insn_p source instruction or give up if
8404 across_from .. across_to range contains any volatile_insn_p
8407 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8409 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
8410 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
8412 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
8413 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
8415 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8418 * asan.c (asan_clear_shadow): New function.
8419 (asan_emit_stack_protection): Use it.
8421 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8423 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
8424 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
8425 with tab instead of space.
8427 2013-01-08 Nick Clifton <nickc@redhat.com>
8429 * config/rl78/rl78.c (rl78_expand_prologue): Always select
8430 register bank 0 at the start of an interrupt handler.
8431 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
8434 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8436 * config/aarch64/aarch64-simd.md
8437 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
8438 (aarch64_simd_bsl): Likewise.
8439 (aarch64_vcond_internal<mode>): Likewise.
8440 (vcond<mode><mode>): Likewise.
8441 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
8442 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
8444 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8446 * config/aarch64/aarch64-builtins.c
8447 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
8449 2013-01-08 Martin Jambor <mjambor@suse.cz>
8452 * tree-sra.c (analyze_access_subtree): Return true also after
8453 potentially creating a debug-only replacement.
8455 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8458 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
8460 PR tree-optimization/54120
8461 * tree-vrp.c (range_fits_type_p): Don't allow
8462 src_precision < precision from signed vr to unsigned_p
8463 if vr->min or vr->max is negative.
8464 (simplify_float_conversion_using_ranges): Test can_float_p
8465 against CODE_FOR_nothing.
8467 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8468 Richard Biener <rguenther@suse.de>
8471 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
8472 types instead of just INTEGER_TYPE types.
8474 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
8476 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
8479 2013-01-07 Steve Ellcey <sellcey@mips.com>
8482 * config/mips/mips.opt: Change mad to mmad to match documentation.
8484 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8487 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
8490 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8493 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
8494 (avr_addrspace_t): Add .section_name field.
8495 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
8497 (avr_addrspace): Same. Initialize .section_name. Remove last
8498 NULL entry. Put __memx into .progmemx.data.
8499 (progmem_section_prefix): Remove.
8500 (avr_asm_init_sections): No need to initialize progmem_section.
8501 (avr_asm_named_section): Use avr_addrspace[].section_name to get
8502 section name prefix.
8503 (avr_asm_select_section): Ditto. And use get_unnamed_section to
8504 retrieve the progmem section.
8505 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
8506 boundary to run over avr_addrspace[].
8507 (avr_register_target_pragmas): Ditto.
8509 2013-01-06 Jakub Jelinek <jakub@redhat.com>
8511 * varasm.c (output_constant_def_contents): For asan_protect_global
8512 protected strings, adjust DECL_ALIGN if needed, before testing for
8514 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
8515 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
8517 (output_object_block): For asan protected decls, emit asan padding
8518 after their contents.
8519 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
8520 (asan_finish_file): Test it here instead.
8522 2013-01-07 Nick Clifton <nickc@redhat.com>
8523 Matthias Klose <doko@debian.org>
8524 Doug Kwan <dougkwan@google.com>
8525 H.J. Lu <hongjiu.lu@intel.com>
8528 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
8530 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
8532 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
8534 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
8536 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
8538 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8541 * doc/install.texi (Cross-Compiler-Specific Options): Document
8544 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
8546 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
8547 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
8548 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
8549 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
8550 vqmovun_high_s64): Fix source operand number and update copyright.
8552 2013-01-07 Richard Biener <rguenther@suse.de>
8555 * gimple.h (gimple_call_builtin_p): New overload.
8556 * gimple.c (validate_call): New function.
8557 (gimple_call_builtin_p): Likewise.
8558 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8559 Use gimple_call_builtin_p.
8560 (find_func_clobbers): Likewise.
8561 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
8562 (strlen_optimize_stmt): Likewise.
8564 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8566 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
8567 (vld1q_dup_*): Likewise.
8569 (vld1q_*): Likewise.
8570 (vld1_lane_*): Likewise.
8571 (vld1q_lane_*): Likewise.
8573 2013-01-07 Richard Biener <rguenther@suse.de>
8575 * lto-streamer.h (LTO_minor_version): Bump to 2.
8577 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8579 * config/aarch64/aarch64-protos.h
8580 (aarch64_const_double_zero_rtx_p): Rename to...
8581 (aarch64_float_const_zero_rtx_p): ...this.
8582 (aarch64_float_const_representable_p): New.
8583 (aarch64_output_simd_mov_immediate): Likewise.
8584 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
8585 move immediate case.
8586 * config/aarch64/aarch64.c
8587 (aarch64_const_double_zero_rtx_p): Rename to...
8588 (aarch64_float_const_zero_rtx_p): ...this.
8589 (aarch64_print_operand): Allow printing of new constants.
8590 (aarch64_valid_floating_const): New.
8591 (aarch64_legitimate_constant_p): Check for valid floating-point
8593 (aarch64_simd_valid_immediate): Likewise.
8594 (aarch64_vect_float_const_representable_p): New.
8595 (aarch64_float_const_representable_p): Likewise.
8596 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
8597 (aarch64_output_simd_mov_immediate): New.
8598 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
8599 (*movdf_aarch64): Likewise.
8600 * config/aarch64/constraints.md (Ufc): New.
8601 (Y): call aarch64_float_const_zero_rtx.
8602 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
8604 2013-01-07 Richard Biener <rguenther@suse.de>
8606 PR tree-optimization/55888
8607 PR tree-optimization/55862
8608 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
8609 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
8610 not if it is contained therein.
8612 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8614 * config/avr/t-avr: Typo.
8616 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8619 * config/avr/t-avr: Don't automatically rebuild
8620 $(srcdir)/config/avr/t-multilib
8621 $(srcdir)/config/avr/avr-tables.opt
8622 $(srcdir)/doc/avr-mmcu.texi
8623 (avr-mcus): New phony target to build them on request.
8624 (s-avr-mlib, s-avr-mmcu-texi): Remove.
8625 * avr/avr-mcus.def: Adjust comments.
8627 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
8629 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
8631 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8633 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
8635 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8637 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
8639 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
8641 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
8642 to generate profiling.
8643 * config/rs6000/aix64.h (LIB_SPEC): Same.
8645 2013-01-04 Andrew Pinski <apinski@cavium.com>
8647 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
8649 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8651 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
8653 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
8655 (ix86_expand_move): Ditto.
8656 (ix86_zero_extend_to_Pmode): Ditto.
8657 (ix86_expand_call): Ditto.
8658 (ix86_expand_special_args_builtin): Ditto.
8659 (ix86_expand_builtin): Ditto.
8661 2013-01-04 Richard Biener <rguenther@suse.de>
8663 PR tree-optimization/55862
8664 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
8665 translating them through PHI nodes.
8667 2013-01-04 Martin Jambor <mjambor@suse.cz>
8669 PR tree-optimization/55755
8670 * tree-sra.c (sra_modify_assign): Do not check that an access has no
8671 children when trying to avoid producing a VIEW_CONVERT_EXPR.
8673 2013-01-04 Marek Polacek <polacek@redhat.com>
8676 * opts.c (default_options_optimization): Clarify error message.
8678 2013-01-04 Richard Biener <rguenther@suse.de>
8681 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
8684 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8687 * config/pa/pa.md (movsi): Revert previous change.
8688 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
8691 2013-01-03 Richard Henderson <rth@redhat.com>
8693 * config/i386/i386.c (ix86_expand_move): Always assign to op1
8694 after eliminating TLS symbols.
8696 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
8699 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
8700 * graphite-poly.c (debug_gmp_value): Likewise.
8702 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
8705 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
8706 selected code model, define __code_mode_small__, __code_model_medium__,
8707 __code_model_large__, __code_model_32__ or __code_model_kernel__.
8708 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
8709 xchg temporary register with %k. Declare temporary register as
8711 [__x86_64__]: For medium and large code models, preserve %rbx register.
8713 2013-01-03 Richard Biener <rguenther@suse.de>
8715 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
8716 (dump_subscript): Adjust.
8717 (finalize_ddr_dependent): Do not dump redundant info.
8718 (analyze_siv_subscript): Adjust.
8719 (subscript_dependence_tester): Likewise.
8720 (compute_affine_dependence): Likewise.
8722 2013-01-03 Richard Biener <rguenther@suse.de>
8725 2013-01-03 Richard Biener <rguenther@suse.de>
8727 PR tree-optimization/55857
8728 * tree-vect-stmts.c (vectorizable_load): Do not setup
8729 re-alignment for invariant loads.
8731 2013-01-02 Richard Biener <rguenther@suse.de>
8733 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8734 invariant load do not generate a vector load from the scalar location.
8736 2013-01-03 Richard Biener <rguenther@suse.de>
8738 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
8739 for not vectorizing.
8740 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
8741 not build INDIRECT_REFs, call get_name once only.
8742 (vect_create_data_ref_ptr): Likewise. Dump base object kind
8743 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
8745 2013-01-03 Richard Biener <rguenther@suse.de>
8747 PR tree-optimization/55857
8748 * tree-vect-stmts.c (vectorizable_load): Do not setup
8749 re-alignment for invariant loads.
8751 2013-01-03 Richard Biener <rguenther@suse.de>
8754 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
8755 prefer a built-in decl.
8757 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8759 * gcc.c (process_command): Update copyright notice dates.
8760 * gcov.c (print_version): Likewise.
8761 * gcov-dump.c (print_version): Likewise.
8763 PR rtl-optimization/55838
8764 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
8765 iv0.step, iv1.step and step.
8767 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8768 Marc Glisse <marc.glisse@inria.fr>
8770 PR tree-optimization/55832
8771 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
8772 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
8773 integer_{one,zero}_node.
8775 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8778 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
8779 * var-tracking.c (reverse_op): Don't add reverse ops to
8780 VALUEs that have already
8781 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8783 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
8785 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
8787 2013-01-02 Teresa Johnson <tejohnson@google.com>
8789 * dumpfile.c (dump_loc): Print filename with location.
8790 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
8791 new location_t parameter to emit complete unroll message with
8793 (canonicalize_loop_induction_variables): Compute loops location
8794 and pass to try_unroll_loop_completely.
8795 * loop-unroll.c (report_unroll_peel): New function.
8796 (peel_loops_completely): Use new dump format with location
8797 for main dumpfile message, and invoke report_unroll_peel on success.
8798 (decide_unrolling_and_peeling): Ditto.
8799 (decide_peel_once_rolling): Remove old dumpfile message subsumed
8800 by report_unroll_peel.
8801 (decide_peel_completely): Ditto.
8802 (decide_unroll_constant_iterations): Ditto.
8803 (decide_unroll_runtime_iterations): Ditto.
8804 (decide_peel_simple): Ditto.
8805 (decide_unroll_stupid): Ditto.
8806 * cfgloop.c (get_loop_location): New function.
8807 * cfgloop.h (get_loop_location): Declare.
8809 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8811 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
8814 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8817 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
8818 BLKmode objects when EXPAND_MEMORY is specified.
8820 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8822 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
8824 (fold_builtin_cpu): Do not share cpu model decls across statements.
8826 2013-01-02 Jason Merrill <jason@redhat.com>
8829 * tree.c (build_array_type_1): Revert earlier change.
8831 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
8833 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
8835 * config/aarch64/aarch64-tune.md: Re-generate.
8837 2013-01-02 Richard Biener <rguenther@suse.de>
8839 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8840 invariant load do not generate a vector load from the scalar location.
8842 2013-01-02 Richard Biener <rguenther@suse.de>
8845 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
8846 * configure: Regenerate.
8848 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8850 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
8851 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
8852 (expand_builtin_int_roundingfn_2): Keep the original target around
8853 for the fallback case.
8855 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8857 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
8858 to be clear for sign changes.
8860 2013-01-01 Jan Hubicka <jh@suse.cz>
8862 * ipa-inline-analysis.c: Fix formatting.
8864 2013-01-01 Jakub Jelinek <jakub@redhat.com>
8866 PR tree-optimization/55831
8867 * tree-vect-loop.c (get_initial_def_for_induction): Use
8868 gsi_after_labels instead of gsi_start_bb.
8870 Copyright (C) 2013 Free Software Foundation, Inc.
8872 Copying and distribution of this file, with or without modification,
8873 are permitted in any medium without royalty provided the copyright
8874 notice and this notice are preserved.