1 2013-04-30 Richard Biener <rguenther@suse.de>
4 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
8 PR rtl-optimization/56957
9 PR rtl-optimization/57105
11 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
12 variable. Use just INSN_UID for determining whether an insn
13 should be only disconnected from the insn stream.
14 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
16 2013-04-30 Jakub Jelinek <jakub@redhat.com>
18 PR tree-optimization/57104
19 * tsan.c (instrument_expr): Don't instrument accesses to
20 DECL_HARD_REGISTER VAR_DECLs.
22 2013-04-30 Richard Biener <rguenther@suse.de>
24 * function.h (loops_for_fn): New inline function.
25 (set_loops_for_fn): Likewise.
26 * cfgloop.h (place_new_loop): Add struct function parameter.
28 (get_loops): Likewise.
29 (number_of_loops): Likewise.
32 * cfg.c (get_loop_copy): Adjust.
33 * cfgloop.c (flow_loops_dump): Likewise.
34 (record_loop_exits): Likewise.
35 (verify_loop_structure): Likewise.
36 * cfgloopanal.c (mark_irreducible_loops): Likewise.
37 (estimate_reg_pressure_cost): Likewise.
38 (mark_loop_exit_edges): Likewise.
39 * cfgloopmanip.c (place_new_loop): Likewise.
41 (duplicate_loop): Likewise.
42 * graph.c (draw_cfg_nodes): Likewise.
43 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
44 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
45 (extract_affine_chrec): Likewise.
46 (build_scop_iteration_domain): Likewise.
47 * graphite.c (graphite_initialize): Likewise.
48 * ira-build.c (create_loop_tree_nodes): Likewise.
49 (more_one_region_p): Likewise.
50 (rebuild_regno_allocno_maps): Likewise.
51 (mark_loops_for_removal): Likewise.
52 (mark_all_loops_for_removal): Likewise.
53 (remove_unnecessary_regions): Likewise.
54 (ira_build): Likewise.
55 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
56 * loop-init.c (fix_loop_structure): Likewise.
57 (gate_rtl_move_loop_invariants): Likewise.
58 (gate_rtl_unswitch): Likewise.
59 (gate_rtl_unroll_and_peel_loops): Likewise.
60 (rtl_doloop): Likewise.
61 * lto-streamer-in.c (input_cfg): Likewise.
62 * lto-streamer-out.c (output_cfg): Likewise.
63 * modulo-sched.c (sms_schedule): Likewise.
64 * predict.c (tree_estimate_probability): Likewise.
65 (tree_estimate_probability_driver): Likewise.
66 (estimate_loops): Likewise.
67 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
68 (move_sese_region_to_fn): Likewise.
69 (debug_loop_num): Likewise.
70 * tree-chrec.c (chrec_evaluate): Likewise.
71 (hide_evolution_in_other_loops_than_loop): Likewise.
72 (chrec_component_in_loop_num): Likewise.
73 (reset_evolution_in_loop): Likewise.
74 (evolution_function_is_invariant_rec_p): Likewise.
75 * tree-if-conv.c (main_tree_if_conversion): Likewise.
76 * tree-inline.c (copy_loops): Likewise.
77 (copy_cfg_body): Likewise.
78 (tree_function_versioning): Likewise.
79 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
80 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
82 (add_to_evolution_1): Likewise.
83 (scev_const_prop): Likewise.
84 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
85 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
86 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
87 (tree_ssa_lim_initialize): Likewise.
88 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
89 (verify_loop_closed_ssa): Likewise.
90 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
91 (tree_ssa_loop_im): Likewise.
92 (tree_ssa_loop_unswitch): Likewise.
93 (tree_vectorize): Likewise.
94 (check_data_deps): Likewise.
95 (tree_ssa_loop_ivcanon): Likewise.
96 (tree_ssa_loop_bounds): Likewise.
97 (tree_complete_unroll): Likewise.
98 (tree_complete_unroll_inner): Likewise.
99 (tree_parallelize_loops): Likewise.
100 (tree_ssa_loop_prefetch): Likewise.
101 (tree_ssa_loop_ivopts): Likewise.
102 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
103 * tree-vectorizer.c (vectorize_loops): Likewise.
105 2013-04-29 Mike Frysinger <vapier@gentoo.org>
107 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
108 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
109 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
112 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
115 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
118 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
121 * lra-constraints.c (process_alt_operands): Discourage a bit more
122 using memory for pseudos. Print cost dump for alternatives.
123 Modify cost values for conflicts with early clobbers.
124 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
126 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
129 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
131 2013-04-29 Ian Bolton <ian.bolton@arm.com>
133 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
135 (movdi_aarch64): Support LDR/STR from/to D register.
137 2013-04-29 Ian Bolton <ian.bolton@arm.com>
139 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
140 or higher by default.
142 2013-04-29 Richard Biener <rguenther@suse.de>
145 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
146 even if not adding abnormal edges for calls that can make
149 2013-04-29 Richard Biener <rguenther@suse.de>
152 * tree-cfg.c (move_stmt_op): Fix condition under which to update
154 (move_stmt_r): Remove redundant checking.
156 2013-04-29 Teresa Johnson <tejohnson@google.com>
159 * basic-block.h (apply_scale): New function.
160 (apply_probability): Use apply_scale.
161 * gimple-streamer-in.c (input_bb): Ditto.
162 * lto-streamer-in.c (input_cfg): Ditto.
163 * lto-cgraph.c (merge_profile_summaries): Ditto.
164 * tree-optimize.c (execute_fixup_cfg): Ditto.
165 * tree-inline.c (copy_bb): Update comment to use apply_scale.
166 (copy_edges_for_bb): Ditto.
167 (copy_cfg_body): Ditto.
169 2013-04-29 Tom de Vries <tom@codesourcery.com>
171 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
172 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
173 (tail_merge_optimize): Handle current_loops == NULL.
175 2013-04-26 Jeff Law <law@redhat.com>
177 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
178 (simplify_cond_using_ranges): Generalize code to simplify
179 COND_EXPRs where one argument is a constant and the other
180 is an SSA_NAME created by an integral type conversion.
182 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
184 * config/arm/arm.md (store_minmaxsi): Use only when
185 optimize_insn_for_size_p.
187 2013-04-29 Christian Bruel <christian.bruel@st.com>
190 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
192 2013-04-29 Richard Biener <rguenther@suse.de>
195 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
196 loop tree make sure to schedule a fixup for the child as well.
197 (expand_omp_for_generic): Properly add loops.
198 (expand_omp_for_static_nochunk): Likewise.
199 (expand_omp_for_static_chunk): Likewise.
200 (expand_omp_for): For the degenerate case fixup loops.
201 (expand_omp_sections): Fix default bb placement in loops.
202 (expand_omp_atomic_pipeline): Properly add loops.
204 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
206 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
208 2013-04-29 Tom de Vries <tom@codesourcery.com>
210 * tree-ssa-tail-merge.c: Update header comment.
212 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
214 * config/aarch64/arm_neon.h
215 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
216 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
217 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
218 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
219 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
220 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
221 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
222 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
224 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
226 * config/aarch64/aarch64-simd.md
227 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
228 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
229 fix_trunc, fixuns_trunc.
230 (ftrunc<VDQF:mode>2): New.
231 * config/aarch64/iterators.md (optab): Add fix, fixuns.
232 (fix_trunc_optab): New.
234 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
236 * config/aarch64/aarch64-builtins.c
237 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
238 iceilf, lround, iroundf.
240 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
243 * config/i386/i386.h (enum ix86_tune_indices)
244 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
245 New, split from X86_TUNE_INTER_UNIT_MOVES.
246 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
247 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
248 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
249 (TARGET_INTER_UNIT_MOVES): Remove.
250 * config/i386/i386.c (initial_ix86_tune_features): Update.
251 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
252 (ix86_expand_convert_uns_didf_sse): Use
253 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
254 (ix86_expand_vector_init_one_nonzero): Ditto.
255 (ix86_expand_vector_init_interleave): Ditto.
256 (inline_secondary_memory_needed): Return true for moves from SSE class
257 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
258 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
259 * config/i386/constraints.md (Yi, Ym): Depend on
260 TARGET_INTER_UNIT_MOVES_TO_VEC.
261 (Yj, Yn): New constraints.
262 * config/i386/i386.md (*movdi_internal): Change constraints of
263 operand 1 from Yi to Yj and from Ym to Yn.
264 (*movsi_internal): Ditto.
265 (*movdf_internal): Ditto.
266 (*movsf_internal): Ditto.
267 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
268 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
269 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
270 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
271 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
272 * config/i386/sse.md (movdi_to_sse): Ditto.
273 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
274 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
275 TARGET_INTER_UNIT_MOVES.
276 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
277 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
278 instead of TARGET_INTER_UNIT_MOVES.
279 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
280 operand 1 from Yi to Yj and from Ym to Yn.
282 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
284 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
285 (float_truncate_hi_): Likewise.
286 (float_extend_lo_): Likewise.
287 (float_truncate_lo_): Likewise.
288 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
289 (aarch64_float_extend_lo_v2df): Likewise.
290 (vec_unpacks_hi_v4sf): Likewise.
291 (aarch64_float_truncate_lo_v2sf): Likewise.
292 (aarch64_float_truncate_hi_v4sf): Likewise.
293 (vec_pack_trunc_v2df): Likewise.
294 (vec_pack_trunc_df): Likewise.
296 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
298 * config/aarch64/aarch64-builtins.c
299 (aarch64_fold_builtin): Fold float conversions.
300 * config/aarch64/aarch64-simd-builtins.def
301 (floatv2si, floatv4si, floatv2di): New.
302 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
303 * config/aarch64/aarch64-simd.md
304 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
305 * config/aarch64/iterators.md (FLOATUORS): New.
306 (optab): Add float, floatuns.
307 (su_optab): Likewise.
309 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
311 * config/aarch64/aarch64-builtins.c
312 (aarch64_builtin_vectorized_function): Use new names for
314 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
315 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
316 (fcvtzu): Split as...
317 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
318 (fcvtas): Split as...
319 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
320 (fcvtau): Split as...
321 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
322 (fcvtps): Split as...
323 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
324 (fcvtpu): Split as...
325 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
326 (fcvtms): Split as...
327 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
328 (fcvtmu): Split as...
329 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
330 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
331 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
332 (lfrintnusf, lfrintnudf): Likewise.
333 * config/aarch64/aarch64-simd.md
334 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
336 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
337 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
338 (fcvt_pattern): Likewise.
340 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
342 * config/aarch64/aarch64-simd.md
343 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
344 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
346 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
348 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
349 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
350 (vrnd<a,m,n,p>_f32): Implement using builtins.
351 (vrnd<i,x><q>_f<32, 64>): New.
353 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
355 * config/aarch64/aarch64-builtins.c
356 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
357 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
358 (frintz): Rename to...
360 (frintp): Rename to...
362 (frintm): Rename to...
364 (frinti): Rename to...
365 (nearbyint): ...this.
366 (frintx): Rename to...
368 (frinta): Rename to...
370 * config/aarch64/aarch64-simd.md
371 (aarch64_frint<frint_suffix><mode>): Delete.
372 (<frint_pattern><mode>2): Convert to insn.
373 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
374 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
375 (frint_pattern): Likewise.
376 (frint_suffix): Likewise.
378 2013-04-29 Richard Biener <rguenther@suse.de>
380 PR tree-optimization/57081
381 * loop-init.c: Include tree-flow.h.
382 (loop_optimizer_finalize): Free number of iteration estimates.
383 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
385 2013-04-29 Jakub Jelinek <jakub@redhat.com>
387 PR tree-optimization/57083
388 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
389 non-singleton shift count range, zero extend low_bound for uns case.
391 * config/i386/predicates.md (general_vector_operand): New predicate.
392 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
393 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
394 if they aren't nonimmediate operands. If their original values
395 satisfy const_vector_equal_evenodd_p, don't shift them.
396 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
397 predicates. For the SSE4.1 case force operands[{1,2}] into registers
398 if not nonimmediate_operand.
399 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
400 instead of register_operand.
401 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
403 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
405 * stor-layout.c (finalize_size_functions): Allocate a structure and
406 reset cfun before dumping the functions.
408 2013-04-27 Jakub Jelinek <jakub@redhat.com>
410 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
413 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
414 use xop_pmacsdqh if uns_p.
415 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
416 the immediate rotate count.
418 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
420 * rtl.h (struct rtx_def): Add comment for field jump.
421 (LRA_SUBREG_P): New macro.
422 * recog.c (register_operand): Check LRA_SUBREG_P.
423 * lra.c (lra): Add note at the end of RTL code. Align non-empty
425 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
426 (lra_final_code_change): Skip subreg change for operators.
427 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
428 if there are no operand changes.
429 * lra-constraints.c (curr_insn_set): New.
430 (match_reload): Set LRA_SUBREG_P.
431 (emit_spill_move): Ditto.
432 (check_and_process_move): Use curr_insn_set. Process only single
433 set insns. Don't initialize sec_mem_p and change_p.
434 (simplify_operand_subreg): Use LRA_SUBREG_P.
435 (reg_in_class_p): New function.
436 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
437 of #ifdef. Add code to remove cycling.
438 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
439 non-null disp. Reload inner instead of disp when base and index
440 are null. Try to put lo_sum into register.
441 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
442 (check_and_process_move): Move code for move cost check to
443 simple_move_p. Remove equiv_substitution.
444 (simple_move_p): New function.
445 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
446 curr_insn_set. Call check_and_process_move only for single set
447 insns. Use the new function. Move call of check_and_process_move
448 after operand equiv substitution and address process.
450 2013-04-26 Jakub Jelinek <jakub@redhat.com>
453 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
454 with nonlocal goto receivers or returns twice calls, ignore
455 unininitialized values from abnormal edges to nl goto receiver
456 or returns twice call.
458 2013-04-26 Jakub Jelinek <jakub@redhat.com>
460 PR tree-optimization/57051
461 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
462 and VEC_RSHIFT_EXPR if shift count is a multiple of element
465 2013-04-26 Richard Biener <rguenther@suse.de>
467 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
468 (expand_omp_taskreg): Likewise. Mark loops for fixup.
469 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
470 (fixup_loop_arrays_after_move): New function.
471 (move_sese_region_to_fn): Properly outline the loop tree parts
474 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
476 * config/i386/i386.md (type, unit): Fix long lines.
478 2013-04-26 Richard Biener <rguenther@suse.de>
480 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
481 (lto-streamer-out.o): Likewise.
482 * cfgloop.c (init_loops_structure): Export, add struct function
484 (flow_loops_find): Adjust.
485 * cfgloop.h (enum loop_estimation): Add EST_LAST.
486 (init_loops_structure): Declare.
487 * lto-streamer-in.c: Include cfgloop.h.
488 (input_cfg): Input the loop tree.
489 * lto-streamer-out.c: Include cfgloop.h.
490 (output_cfg): Output the loop tree.
491 (output_struct_function_base): Do not drop PROP_loops.
493 2013-03-26 Richard Biener <rguenther@suse.de>
495 * tree-cfg.c (execute_build_cfg): Build the loop tree.
496 (pass_build_cfg): Provide PROP_loops.
497 (move_sese_region_to_fn): Remove loops that are outlined into fn
499 * tree-inline.c: Include cfgloop.h.
500 (initialize_cfun): Do not drop PROP_loops.
501 (copy_loops): New function.
502 (copy_cfg_body): Copy loop structure.
503 (tree_function_versioning): Initialize destination loop tree.
504 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
505 (pass_parallelize_loops): Do IL verification.
506 * loop-init.c (loop_optimizer_init): Fixup loops if required.
507 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
508 the CFG make sure we fixup loops as well.
509 * tree-ssa-tail-merge.c: Include cfgloop.h.
510 (replace_block_by): When merging loop latches mark loops for fixup.
511 * lto-streamer-out.c (output_struct_function_base): Drop
513 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
514 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
515 * ipa-split.c: Include cfgloop.h.
516 (split_function): Add the new return block to the loop tree root.
517 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
518 whether we have removed the forwarder block.
519 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
520 * cfgloop.h (place_new_loop): Declare.
521 * cfgloopmanip.c (place_new_loop): Export.
522 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
523 (tree-switch-conversion.o): Likewise.
524 (tree-complex.o): Likewise.
525 (tree-inline.o): Likewise.
526 (tree-ssa-tailmerge.o): Likewise.
527 (ipa-split.o): Likewise.
528 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
529 (tree-ssa-copy.o): Likewise.
530 * tree-switch-conversion.c: Include cfgloop.h
531 (process_switch): If we emit a bit-test cascade, schedule loops
533 * tree-complex.c: Include cfgloop.h.
534 (expand_complex_div_wide): Properly add new basic-blocks to loops.
535 * asan.c: Include cfgloop.h.
536 (create_cond_insert_point): Properly add new basic-blocks to
537 loops, schedule loop fixup.
538 * cfgloop.c (verify_loop_structure): Check that looks are not
540 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
542 (expand_omp_for_generic): Likewise.
543 (expand_omp_sections): Likewise.
544 (expand_omp_atomic_pipeline): Schedule loops for fixup.
545 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
546 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
547 is initialized, not when loops are present.
548 * tree-parloops.c (parallelize_loops): Remove checking here.
549 * passes.c (init_optimization_passes): Schedule a copy-propagation
550 pass before complete unrolling of inner loops.
552 2013-04-26 Jakub Jelinek <jakub@redhat.com>
554 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
555 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
556 (colorize_init): Add argument to _WIN32 version.
557 * toplev.c: Include diagnostic-color.h.
558 (process_options): Default to -fdiagnostics-color=auto if
559 GCC_COLORS env var is in the environment.
560 * common.opt (fdiagnostics-color=): Add Var and Init.
561 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
562 env var is in the environment, the default is auto rather than never.
564 * diagnostic.h (file_name_as_prefix): Add context argument.
565 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
567 * langhooks.c (lhd_print_error_function): Adjust caller.
569 2013-04-25 Lawrence Crowl <crowl@google.com>
571 * var-tracking.c (shared_hash_def::htab):
572 Change type to hash_table. Update dependent calls and types.
574 2013-04-25 Lawrence Crowl <crowl@google.com>
576 * Makefile.in: Update as needed below.
578 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
579 Move declaration to after the type's method definitons.
581 * attribs.c (htab_t scoped_attributes::attribute_hash):
582 Change type to hash_table. Update dependent calls and types.
584 * bitmap.c (htab_t bitmap_desc_hash):
585 Change type to hash_table. Update dependent calls and types.
587 * cselib.c (htab_t cselib_hash_table):
588 Change type to hash_table. Update dependent calls and types.
590 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
591 (hash_string_slot_node): Move implementation into lto-streamer.h
592 struct string_slot_hasher.
593 (eq_string_slot_node): Likewise.
595 * data-streamer-out.c: Update output_block::string_hash_table
596 dependent calls and types.
598 * dwarf2cfi.c (htab_t trace_index):
599 Change type to hash_table. Update dependent calls and types.
601 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
602 Change type to hash_table. Update dependent calls and types.
603 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
604 (htab_t optimize_external_refs::map): Likewise.
605 (htab_t output_comp_unit::extern_map): Likewise.
606 (htab_t output_comdat_type_unit::extern_map): Likewise.
607 (htab_t output_macinfo::macinfo_htab): Likewise.
608 (htab_t optimize_location_lists::htab): Likewise.
609 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
611 * except.c (htab_t ehspec_hash_type):
612 Change type to hash_table. Update dependent calls and types.
613 (assign_filter_values::ttypes): Likewise.
614 (assign_filter_values::ehspec): Likewise.
615 (sjlj_assign_call_site_values::ar_hash): Likewise.
616 (convert_to_eh_region_ranges::ar_hash): Likewise.
618 * gcse.c (htab_t pre_ldst_table):
619 Change type to hash_table. Update dependent calls and types.
621 * ggc-common.c (htab_t saving_htab):
622 Change type to hash_table. Update dependent calls and types.
623 (htab_t loc_hash): Likewise.
624 (htab_t ptr_hash): Likewise.
625 (call_count): Rename ggc_call_count.
626 (call_alloc): Rename ggc_call_alloc.
627 (loc_descriptor): Rename make_loc_descriptor.
628 (add_statistics): Rename ggc_add_statistics.
630 * ggc-common.c (saving_htab):
631 Change type to hash_table. Update dependent calls and types.
633 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
634 (push_gimplify_context): Likewise.
635 (pop_gimplify_context): Likewise.
636 (struct gimple_temp_hash_elt): Added.
637 (struct gimplify_hasher): Likewise.
638 (struct gimplify_ctx.temp_htab):
639 Change type to hash_table. Update dependent calls and types.
641 * gimple-fold.c: Include gimplify-ctx.h.
643 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
644 Change type to hash_table. Update dependent calls and types.
645 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
646 avoid potential global name collision.
648 * gimplify.c: Include gimplify-ctx.h.
649 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
650 (htab_t gimplify_ctx::temp_htab):
651 Update dependent calls and types for new type hash_table.
652 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
653 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
655 * gimplify-ctx.h: New.
656 (struct gimple_temp_hash_elt): Move from gimplify.c.
657 (class gimplify_hasher): New.
658 (struct gimplify_ctx): Move from gimple.h.
659 (htab_t gimplify_ctx::temp_htab):
660 Change type to hash_table. Update dependent calls and types.
662 * graphite-clast-to-gimple.c: Include graphite-htab.h.
663 (htab_t ivs_params::newivs_index):
664 Change type to hash_table. Update dependent calls and types.
665 (htab_t ivs_params::params_index): Likewise.
666 (htab_t print_generated_program::params_index): Likewise.
667 (htab_t gloog::newivs_index): Likewise.
668 (htab_t gloog::params_index): Likewise.
670 * graphite.c: Include graphite-htab.h.
671 4htab_t graphite_transform_loops::bb_pbb_mapping):
672 Change type to hash_table. Update dependent calls and types.
674 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
675 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
676 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
678 * graphite-dependences.c: Include graphite-htab.h.
679 (loop_is_parallel_p): Change hash table type of parameter.
681 * graphite-htab.h: New.
682 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
683 (extern find_pbb_via_hash): Move from graphite-poly.h.
684 (extern loop_is_parallel_p): Move from graphite-poly.h.
685 (extern get_loop_body_pbbs): Move from graphite-poly.h.
687 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
688 (extern loop_is_parallel_p): Move to graphite-htab.h.
689 (extern get_loop_body_pbbs): Move to graphite-htab.h.
691 * haifa-sched.c (htab_t delay_htab):
692 Change type to hash_table. Update dependent calls and types.
693 (htab_t delay_htab_i2): Likewise.
695 * ira-color.c (htab_t allocno_hard_regs_htab):
696 Change type to hash_table. Update dependent calls and types.
698 * ira-costs.c (htab_t cost_classes_htab):
699 Change type to hash_table. Update dependent calls and types.
701 * loop-invariant.c (htab_t merge_identical_invariants::eq):
702 Change type to hash_table. Update dependent calls and types.
704 * loop-iv.c (htab_t bivs):
705 Change type to hash_table. Update dependent calls and types.
707 * loop-unroll.c (htab_t opt_info::insns_to_split):
708 Change type to hash_table. Update dependent calls and types.
709 (htab_t opt_info::insns_with_var_to_expand): Likewise.
711 * lto-streamer.h (struct string_slot): Move from data-streamer.h
712 (struct string_slot_hasher): New.
713 (htab_t output_block::string_hash_table):
714 Change type to hash_table. Update dependent calls and types.
716 * lto-streamer-in.c (freeing_string_slot_hasher): New.
717 (htab_t file_name_hash_table):
718 Change type to hash_table. Update dependent calls and types.
720 * lto-streamer-out.c: Update output_block::string_hash_table dependent
723 * lto-streamer.c (htab_t tree_htab):
724 Change type to hash_table. Update dependent calls and types.
726 * omp-low.c: Include gimplify-ctx.h.
728 * passes.c (htab_t name_to_pass_map):
729 Change type to hash_table. Update dependent calls and types.
730 (pass_traverse): Rename to passes_pass_traverse.
732 * plugin.c (htab_t event_tab):
733 Change type to hash_table. Update dependent calls and types.
735 * postreload-gcse.c (htab_t expr_table):
736 Change type to hash_table. Update dependent calls and types.
737 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
739 * sese.c (debug_rename_map_1): Make extern.
740 (htab_t copy_bb_and_scalar_dependences::rename_map):
741 Change type to hash_table. Update dependent calls and types.
743 * sese.h (extern debug_rename_map): Move to .c file.
745 * store-motion.c (htab_t store_motion_mems_table):
746 Change type to hash_table. Update dependent calls and types.
748 * trans-mem.c (htab_t tm_new_mem_hash):
749 Change type to hash_table. Update dependent calls and types.
751 * tree-browser.c (htab_t TB_up_ht):
752 Change type to hash_table. Update dependent calls and types.
754 * tree-cfg.c (htab_t discriminator_per_locus):
755 Change type to hash_table. Update dependent calls and types.
757 * tree-complex.c: Include tree-hasher.h
758 (htab_t complex_variable_components):
759 Change type to hash_table. Update dependent calls and types.
761 * tree-eh.c (htab_t finally_tree):
762 Change type to hash_table. Update dependent calls and types.
764 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
765 struct int_tree_hasher.
766 (extern int_tree_map_eq): Likewise.
767 (uid_decl_map_hash): Removed.
768 (extern decl_tree_map_eq): Likewise.
770 * tree-hasher.h: New.
771 (struct int_tree_hasher): New.
772 (typedef int_tree_htab_type): New.
774 * tree-inline.c: Include gimplify-ctx.h.
776 * tree-mudflap.c: Include gimplify-ctx.h.
778 * tree-parloops.c: Include tree-hasher.h.
779 (htab_t eliminate_local_variables_stmt::decl_address):
780 Change type to hash_table. Update dependent calls and types.
781 (htab_t separate_decls_in_region::decl_copies): Likewise.
783 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
784 Change type to hash_table. Update dependent calls and types.
786 * tree-sra.c (candidates):
787 Change type to hash_table. Update dependent calls and types.
789 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
791 (int_tree_map_hash): Likewise.
793 * tree-ssa-dom.c (htab_t avail_exprs):
794 Change type to hash_table. Update dependent calls and types.
796 * tree-ssa-live.c (var_map_base_init::tree_to_index):
797 Change type to hash_table. Update dependent calls and types.
799 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
800 Change type to hash_table. Update dependent calls and types.
802 * tree-ssa-phiopt.c (seen_ssa_names):
803 Change type to hash_table. Update dependent calls and types.
805 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
806 Change type to hash_table. Update dependent calls and types.
808 * tree-ssa-uncprop.c (equiv):
809 Change type to hash_table. Update dependent calls and types.
811 2013-04-25 Jakub Jelinek <jakub@redhat.com>
813 PR rtl-optimization/57003
814 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
815 call note_stores with kill_clobbered_value callback again after
816 killing regs_invalidated_by_call.
818 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
820 * config/aarch64/aarch64-simd.md
821 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
822 (aarch64_simd_bsl<mode>): Likewise.
823 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
825 2013-04-25 Marek Polacek <polacek@redhat.com>
827 PR tree-optimization/57066
828 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
830 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
832 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
834 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
836 * config/aarch64/aarch64-builtins.c
837 (aarch64_fold_builtin): New.
838 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
839 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
840 * config/aarch64/aarch64-simd-builtins.def (abs): New.
841 * config/aarch64/arm_neon.h
842 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
844 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
845 Tejas Belagod <tejas.belagod@arm.com>
847 * config/aarch64/aarch64-builtins.c
848 (aarch64_gimple_fold_builtin): New.
849 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
850 * config/aarch64/aarch64-simd-builtins.def (addv): New.
851 * config/aarch64/aarch64-simd.md (addpv4sf): New.
853 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
855 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
857 * config/aarch64/aarch64.md
858 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
860 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
862 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
863 (*ngcsi_uxtw): New pattern.
865 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
866 Julian Brown <julian@codesourcery.com>
868 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
869 (TB_DREG): Add T_V4HF.
870 (v4hf_UP): New macro.
871 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
872 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
873 Handle initialisation of V4HF. Adjust initialisation of reinterpret
875 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
876 (arm_vector_mode_supported_p): Handle V4HF.
877 (arm_mangle_map): Handle V4HFmode.
878 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
879 * config/arm/arm_neon_builtins.def: Add entries for
880 vcvtv4hfv4sf, vcvtv4sfv4hf.
881 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
882 (neon_vcvtv4hfv4sf): Likewise.
883 * config/arm/neon-gen.ml: Handle half-precision floating point
885 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
886 * config/arm/arm_neon.h: Regenerate.
887 * config/arm/neon.ml (type elts): Add F16.
888 (type vectype): Add T_float16x4, T_floatHF.
889 (type vecmode): Add V4HF.
890 (type features): Add Requires_FP_bit feature.
891 (elt_width): Handle F16.
892 (elt_class): Likewise.
893 (elt_of_class_width): Likewise.
894 (mode_of_elt): Refactor.
895 (type_for_elt): Handle F16, fix error messages.
896 (vectype_size): Handle T_float16x4.
897 (vcvt_sh): New function.
898 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
899 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
900 (string_of_mode): Handle V4HF.
901 * doc/arm-neon-intrinsics.texi: Regenerate.
903 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
905 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
906 format specifier in 'X' case.
908 2013-04-25 Alan Modra <amodra@gmail.com>
911 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
912 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
913 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
914 Repeat for many other rotate/shift and mask patterns using subregs.
916 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
919 2013-04-25 Alan Modra <amodra@gmail.com>
921 * config.gcc: Support little-endian powerpc-linux targets.
922 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
923 (LINK_OS_LINUX_SPEC): Define.
924 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
925 Preserve MASK_LITTLE_ENDIAN.
926 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
927 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
928 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
929 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
930 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
931 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
932 Correct fp word order for little-endian. Don't shift toc entries
933 smaller than a word for little-endian.
934 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
935 (bswapdi2 splits): Correct low-part subreg for little-endian.
936 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
937 low/high where such is correct only for be.
938 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
939 little-endian for -mcall-aixdesc.
941 2013-04-25 Alan Modra <amodra@gmail.com>
943 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
944 replace_equiv_address_nv.
946 2013-04-25 Alan Modra <amodra@gmail.com>
948 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
950 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
953 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
954 * rtl.h (struct rtx_def): ...
956 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
958 PR rtl-optimizations/57046
959 * lra-constraints (split_reg): Set up lra_risky_transformations_p
960 for multi-reg splits.
962 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
964 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
966 2013-04-24 Sterling Augustine <saugustine@google.com>
968 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
969 (comp_dir_string, debug_str_dwo_section): New.
970 (DEBUG_STR_DWO_SECTION): Rename to ...
971 (DEBUG_DWO_STR_SECTION): ... this.
972 (DEBUG_NORM_STR_SECTION): Delete.
973 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
974 (DEBUG_STR_DWO_SECTION_FLAGS): New.
975 (find_AT_string): Move most logic to ...
976 (find_AT_string_in_table): ... here. New.
977 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
978 add_skeleton_AT_string. Delete logic.
979 (output_skeleton_debug_sections): Remove call to
980 add_top_level_skeleton_die_attrs.
981 (add_comp_dir_attribute): Move logic to comp_dir_string.
982 (dwarf2out_init): Initialize debug_str_dwo_section.
983 (output_indirect_string): Call find_string_form.
984 (output_indirect_strings): Rewrite.
985 (prune_unused_types): Empty skeleton_debug_str_hash.
986 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
987 (dwarf2out_finish): Call output_indirect_strings.
989 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
991 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
993 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
995 * rtl.h (struct rtx_def): Add comment for field jump.
996 (LRA_SUBREG_P): New macro.
997 * recog.c (register_operand): Check LRA_SUBREG_P.
998 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1000 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1001 (lra_final_code_change): Skip subreg change for operators.
1002 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1003 if there are no operand changes.
1004 * lra-constraints.c (curr_insn_set): New.
1005 (match_reload): Set LRA_SUBREG_P.
1006 (emit_spill_move): Ditto.
1007 (check_and_process_move): Use curr_insn_set. Process only single
1008 set insns. Don't initialize sec_mem_p and change_p.
1009 (simplify_operand_subreg): Use LRA_SUBREG_P.
1010 (reg_in_class_p): New function.
1011 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1012 of #ifdef. Add code to remove cycling.
1013 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1014 non-null disp. Reload inner instead of disp when base and index
1015 are null. Try to put lo_sum into register.
1016 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1017 (check_and_process_move): Move code for move cost check to
1018 simple_move_p. Remove equiv_substitution.
1019 (simple_move_p): New function.
1020 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1021 curr_insn_set. Call check_and_process_move only for single set
1022 insns. Use the new function. Move call of check_and_process_move
1023 after operand equiv substitution and address process.
1025 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
1027 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
1028 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
1029 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
1031 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1033 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
1035 2013-04-24 Marek Polacek <polacek@redhat.com>
1037 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
1038 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
1039 (select_loops_exit_conditions): Likewise.
1040 (number_of_iterations_for_all_loops): Likewise.
1041 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
1042 (scev_analysis): Likewise.
1044 2013-04-02 Catherine Moore <clm@codesourcery.com>
1045 Chao-ying Fu <fu@mips.com>
1047 * config/mips/micromips.md (jraddiusp): New pattern.
1048 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
1049 instruction if possible.
1051 2013-04-24 Alan Modra <amodra@gmail.com>
1053 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
1055 2013-04-24 Julian Brown <julian@codesourcery.com>
1056 Chung-Lin Tang <cltang@codesourcery.com>
1058 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
1059 dependency behavior in enumeration type DIE generation. Add TODO note
1060 to comments about future DW_FORM_sdata/udata re-work of related code.
1062 2013-04-23 Lawrence Crowl <crowl@google.com>
1064 * Makefile.in: Update as needed below.
1066 * hash-table.h (class hash_table):
1067 Correct many methods with parameter types compare_type to the correct
1068 value_type. (Correct code was unlikely to notice the change.)
1069 (hash_table::elements_with_deleted) New.
1070 (class hashtable::iterator): New.
1071 (hashtable::begin()): New.
1072 (hashtable::end()): New.
1073 (FOR_EACH_HASH_TABLE_ELEMENT): New.
1075 * statistics.c (statistics_hashes):
1076 Change type to hash_table. Update dependent calls and types.
1078 * tree-into-ssa.c (var_infos):
1079 Change type to hash_table. Update dependent calls and types.
1081 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
1082 Change type to hash_table. Update dependent calls and types.
1084 * tree-ssa-loop-im.c (struct mem_ref.refs):
1085 Change type to hash_table. Update dependent calls and types.
1087 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
1088 Change type to hash_table. Update dependent calls and types.
1090 * tree-ssa-sccvn.c (vn_tables_s::nary):
1091 Change type to hash_table. Update dependent calls and types.
1092 (vn_tables_s::phis): Likewise.
1093 (vn_tables_s::references): Likewise.
1095 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
1096 (vn_reference_eq): Update parameter and return types.
1098 * tree-ssa-structalias.c (pointer_equiv_class_table):
1099 Change type to hash_table. Update dependent calls and types.
1100 (location_equiv_class_table): Likewise.
1102 * tree-vect-data-refs.c: Consequential changes for making
1103 peeling a hash_table.
1105 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
1106 (destroy_loop_vec_info): Dependent hash_table update.
1108 * tree-vectorizer.h (peeling_htab):
1109 Change type to hash_table. Update dependent calls and types.
1111 2013-04-23 Shiva Chen <shiva0217@gmail.com>
1113 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
1114 to check the register content is equal or not.
1115 * lra-constraints.c (match_reload): Use lra_assign_reg_val
1116 to assign register content record.
1117 * lra-eliminations.c (update_reg_eliminate): Use
1118 lra_update_reg_val_offset to update register content offset.
1119 * lra-int.h (struct lra_reg): Add offset member.
1120 (lra_reg_val_equal_p): New static inline function.
1121 (lra_update_reg_val_offset): New static inline function.
1122 (lra_assign_reg_val): New static inline function.
1123 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
1124 to assign register content record.
1125 (initialize_lra_reg_info_element): Initial offset to zero.
1127 2013-04-23 Catherine Moore <clm@codesourcery.com>
1129 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
1130 operands. Record compression.
1132 2013-04-23 Xinliang David Li <davidxl@google.com>
1134 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
1136 2013-04-23 Richard Biener <rguenther@suse.de>
1139 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
1140 parameter, only add abnormal goto edges from the copied body
1141 if the call could perform abnormal gotos.
1142 (copy_cfg_body): Adjust.
1144 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
1146 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
1148 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1150 * config/s390/sjlj.S: New file.
1151 * config/s390/target.h: New file.
1152 * configure.tgt: Set options for S/390.
1154 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
1156 * coretypes.h (gimple_stmt_iterator): Add struct to make
1159 2013-04-23 Richard Biener <rguenther@suse.de>
1161 PR tree-optimization/57026
1162 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
1163 from SSA names occuring in abnormal PHI nodes.
1165 2013-04-22 Andi Kleen <ak@linux.intel.com>
1167 * lto/lto.c (print_lto_report_1): Fix LTO report names.
1169 2013-04-22 Andi Kleen <ak@linux.intel.com>
1171 * lto/lto.c (print_lto_report_1): Declare early.
1172 (read_cgraph_and_symbols): Call print_lto_report_1 early.
1174 2013-04-22 Andi Kleen <ak@linux.intel.com>
1176 * common.opt (-flto-report-wpa): Add.
1177 * doc/invoke.texi (-flto-report-wpa): Add.
1178 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
1181 2013-04-22 Xinliang David Li <davidxl@google.com>
1183 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
1184 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
1185 * Makefile.in: New dependency
1187 David Daney <ddaney.cavm@gmail.com>
1189 * configure.ac (gcc_cv_as_micromips_support): Use the
1190 --fatal-warnings option.
1191 * configure: Regenerate.
1193 2013-04-22 Marek Polacek <polacek@redhat.com>
1196 * tsan.c (instrument_expr): Don't instrument expression
1197 in case its size is zero.
1199 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
1203 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1205 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1207 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1209 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
1210 (gimple_stmt_iterator): New typedef.
1211 * gimple.h (gimple_stmt_iterator): Rename to...
1212 (gimple_stmt_iterator_d): ... This.
1213 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
1214 trees be valid for GIMPLE and GENERIC.
1215 (TARGET_GIMPLE_FOLD_BUILTIN): New.
1216 * gimple-fold.c (gimple_fold_call): Call target hook
1217 gimple_fold_builtin.
1218 * hooks.c (hook_bool_gsiptr_false): New.
1219 * hooks.h (hook_bool_gsiptr_false): New.
1220 * target.def (fold_stmt): New.
1221 * doc/tm.texi: Regenerate.
1223 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
1226 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1227 a set sp if no stack realignment.
1229 2013-04-22 Nick Clifton <nickc@redhat.com>
1231 * config.gcc (tilegx-linux): Extend extra_objs rather than
1233 (tilepro-linux): Likewise.
1235 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1237 * config/aarch64/aarch64-builtins.c
1239 (CF0, CF1, CF2, CF3, CF4, CF10): New.
1240 (VAR<1-12>): Add MAP parameter.
1241 (BUILTIN_*): Likewise.
1242 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
1243 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
1244 (aarch64_ushl_n<mode>): Likewise.
1245 (aarch64_sshr_n<mode>): Likewise.
1246 (aarch64_ushr_n<mode>): Likewise.
1247 (aarch64_<maxmin><mode>): Likewise.
1248 (aarch64_sqrt<mode>): Likewise.
1249 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
1250 (vshr<q>_n_*): Likewise.
1252 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1254 * config/aarch64/aarch64-builtins.c
1255 (aarch64_simd_builtin_type_mode): Handle SF types.
1257 (BUILTIN_GPF): Define.
1258 (aarch64_init_simd_builtins): Handle SF types.
1259 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
1262 * config/aarch64/aarch64-simd.md
1263 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
1264 (aarch64_frecpe<mode>): New.
1265 (aarch64_frecps<mode>): Likewise.
1266 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
1267 (v8type): Add frecp<esx>.
1268 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
1269 (aarch64_frecps<mode>): Likewise.
1270 * config/aarch64/iterators.md (FRECP): New.
1271 (frecp_suffix): Likewise.
1272 * config/aarch64/arm_neon.h
1273 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
1275 2013-04-22 Christian Bruel <christian.bruel@st.com>
1278 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
1279 (REG_CLASS_NAMES): Idem.
1280 (REG_CLASS_CONTENTS): Idem.
1281 (REGCLASS_HAS_FP_REG): Idem.
1282 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
1283 (sh_conditional_register_usage): Idem.
1285 2013-04-21 Jeff Law <law@redhat.com>
1287 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
1288 (ssa_forward_propagate_and_combine): Use it.
1290 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1292 * lra.c: Update the flow chart diagram.
1294 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1296 PR rtl-optimization/56847
1297 * lra-constraints.c (process_alt_operands): Discourage alternative
1298 with non-matche doffsettable memory constraint fro memory with
1301 2013-04-19 Richard Biener <rguenther@suse.de>
1303 PR tree-optimization/56982
1304 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
1306 * gimplify.c (gimplify_call_expr): Notice special calls.
1307 (gimplify_modify_expr): Likewise.
1308 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
1309 abnormal control flow receivers.
1310 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
1311 in the same way as cfun->has_nonlocal_labels.
1312 (gimple_purge_dead_abnormal_call_edges): Likewise.
1313 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
1314 receivers start a basic-block.
1316 2013-04-19 Richard Biener <rguenther@suse.de>
1318 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
1320 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
1321 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
1322 (SLP_TREE_LOAD_PERMUTATION): Add.
1323 (vect_transform_slp_perm_load): Adjust prototype.
1324 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
1325 (vect_free_slp_instance): Likewise.
1326 (vect_create_new_slp_node): Likewise.
1327 (vect_supported_slp_permutation_p): Remove.
1328 (vect_slp_rearrange_stmts): Adjust.
1329 (vect_supported_load_permutation_p): Likewise. Inline
1330 vect_supported_slp_permutation_p here.
1331 (vect_analyze_slp_instance): Compute load permutations per
1332 slp node instead of per instance.
1333 (vect_get_slp_defs): Adjust.
1334 (vect_transform_slp_perm_load): Likewise.
1335 (vect_schedule_slp_instance): Remove redundant code.
1336 (vect_schedule_slp): Remove hack for PR56270, add it ...
1337 * tree-vect-stmts.c (vectorizable_load): ... here, do not
1338 CSE loads for SLP. Adjust.
1340 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1342 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
1343 spelling in two comments.
1345 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1348 * config/arm/arm.c (load_multiple_sequence): Require SP
1349 as base register for loads if SP is in the register list.
1351 2013-04-19 Martin Jambor <mjambor@suse.cz>
1353 PR tree-optimization/56718
1354 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
1355 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
1356 and made public. Adjusted all callers.
1357 (ipa_intraprocedural_devirtualization): New function.
1358 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
1359 (ipa_intraprocedural_devirtualization): Likewise.
1360 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
1362 2013-04-19 Richard Biener <rguenther@suse.de>
1364 PR tree-optimization/57000
1365 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
1367 2013-04-19 Terry Guo <terry.guo@arm.com>
1369 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
1371 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
1372 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
1373 (cortex_m4_fmacs): Use new reservations.
1374 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
1376 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
1378 PR rtl-optimization/56999
1379 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
1381 (lra_coalesce): Remove split_origin_bitmap and related code.
1382 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
1383 ranges if necessary.
1385 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
1387 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
1389 (ix86_expand_call): Remove clobbered_registers array and use
1390 x86_64_ms_sysv_extra_clobbered_registers instead.
1391 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
1393 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
1395 * config/i386/i386.md (*call_rex64_ms_sysv): Use
1396 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
1397 (*call_value_rex64_ms_sysv): Ditto.
1399 2013-04-18 Cary Coutant <ccoutant@google.com>
1401 * dwarf2out.c (output_pubnames): Check die_perennial_p of
1402 parent instead of die_mark.
1404 2013-04-18 Diego Novillo <dnovillo@google.com>
1406 * gimple.c (create_gimple_tmp): New.
1407 (get_expr_type): New.
1408 (build_assign): New.
1409 (build_type_cast): New.
1410 * gimple.h (enum ssa_mode): Define.
1411 (gimple_seq_set_location): New.
1412 * asan.c (build_check_stmt): Change some gimple_build_* calls
1413 to use build_assign and build_type_cast.
1415 2013-04-18 Richard Biener <rguenther@suse.de>
1417 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
1418 handle negative step. Remove redundant checks.
1419 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
1420 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
1421 for negative step and grouped loads fail to vectorize.
1423 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1425 * emit-rtl.c (reset_insn_used_flags): New function.
1426 (reset_all_used_flags): Use it.
1427 (verify_insn_sharing): New function.
1428 (verify_rtl_sharing): Fix verification for SEQUENCEs.
1430 2013-04-18 Jakub Jelinek <jakub@redhat.com>
1432 PR tree-optimization/56984
1433 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
1434 and (x >> M) >= N don't register any assertion if N << M is the
1437 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1439 * lower-subreg.c (resolve_simple_move): If called self-recursive,
1440 do not delete_insn insns that have not yet been emitted, only
1441 unlink them with remove_insn.
1442 * df-scan.c (df_insn_delete): Revert r197492.
1444 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
1446 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
1447 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
1449 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1451 * config/arm/arm.md (movsicc_insn): Convert define_insn into
1452 define_insn_and_split.
1453 (and_scc,ior_scc,negscc): Likewise.
1454 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
1456 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1458 * config/arm/arm.c (use_return_insn): Return 0 for targets that
1459 can benefit from using a sequence of LDRD instructions in epilogue
1460 instead of a single LDM instruction.
1462 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1465 * doc/extend.texi: Fix typo.
1467 2013-04-17 Richard Biener <rguenther@suse.de>
1469 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
1470 (vect_build_slp_tree): ... here.
1471 (vect_build_slp_tree_1): Compute which stmts of the SLP group
1472 match. Remove special-casing of mismatched complex loads.
1473 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
1474 re-try the match with swapped commutative operands.
1475 (vect_supported_load_permutation_p): Remove special-casing of
1476 mismatched complex loads.
1477 (vect_analyze_slp_instance): Adjust.
1479 2013-04-17 Richard Biener <rguenther@suse.de>
1481 PR rtl-optimization/56921
1482 * cfgloop.h (struct loop): Add simple_loop_desc member.
1483 (struct niter_desc): Mark with GTY(()).
1484 (simple_loop_desc): Do not use aux field but simple_loop_desc.
1485 * loop-iv.c (get_simple_loop_desc): Likewise.
1486 (free_simple_loop_desc): Likewise.
1489 2013-04-16 Richard Biener <rguenther@suse.de>
1491 PR rtl-optimization/56921
1492 * loop-init.c (pass_rtl_move_loop_invariants): Add
1493 TODO_do_not_ggc_collect to todo_flags_finish.
1494 (pass_rtl_unswitch): Same.
1495 (pass_rtl_unroll_and_peel_loops): Same.
1496 (pass_rtl_doloop): Same.
1498 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
1500 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
1501 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
1502 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
1504 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
1505 * tree-streamer.c (record_common_node): Adjust reference in comment.
1507 2013-04-17 Terry Guo <terry.guo@arm.com>
1509 * config/arm/cortex-m4.md: Add a new bypass.
1511 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1513 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
1515 (*subs_<optab><mode>_multp2): New pattern.
1516 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1517 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1519 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1521 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
1522 (*subs_mul_imm_<mode>): New pattern.
1524 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
1527 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
1528 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
1529 (vsx_movti_32bit): Change j->wa to O->wa.
1531 2013-04-16 Richard Biener <rguenther@suse.de>
1533 PR rtl-optimization/56921
1534 * loop-init.c (pass_rtl_move_loop_invariants): Add
1535 TODO_do_not_ggc_collect to todo_flags_finish.
1536 (pass_rtl_unswitch): Same.
1537 (pass_rtl_unroll_and_peel_loops): Same.
1538 (pass_rtl_doloop): Same.
1540 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
1542 * config/arm/arm.c (emit_multi_reg_push): New declaration
1543 for an existing function.
1544 (arm_emit_strd_push): New function.
1545 (arm_expand_prologue): Used here.
1546 (arm_emit_ldrd_pop): New function.
1547 (arm_expand_epilogue): Used here.
1548 (arm_get_frame_offsets): Update condition.
1549 (arm_emit_multi_reg_pop): Add a special case for load of a single
1550 register with writeback.
1552 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
1554 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
1557 2013-04-16 Richard Biener <rguenther@suse.de>
1559 PR tree-optimization/56756
1560 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
1561 (first_mem_ref_loc): New.
1562 (execute_sm): Place the load temporarily before a previous
1563 access instead of in the latch edge to ensure its SSA dependencies
1564 are defined at points dominating the load.
1566 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
1568 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
1569 correct fix by moving header and footer insn to the footer of
1570 the merged basic block. Clear BB_END of the merged-away block.
1573 * emit-rtl.c (make_note_raw): New function.
1574 (link_insn_into_chain): New static inline function.
1576 (add_insn_before, add_insn_after): Factor insn chain linking code...
1577 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
1578 using link_insn_into_chain.
1579 (note_outside_basic_block_p): New helper function for emit_note_after
1580 and emit_note_before.
1581 (emit_note_after): Use nobb variant of add_insn_after if the note
1582 should not be contained in a basic block.
1583 (emit_note_before): Use nobb variant of add_insn_before if the note
1584 should not be contained in a basic block.
1585 (emit_note_copy): Use make_note_raw.
1586 (emit_note): Likewise.
1587 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
1588 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
1589 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
1590 the moved barrier the tail of the basic block it follows.
1591 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
1593 2013-04-15 Jakub Jelinek <jakub@redhat.com>
1595 PR tree-optimization/56962
1596 * gimple-ssa-strength-reduction.c (record_increment): Only set
1597 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
1598 either rhs1 or rhs2 is equal to c->base_expr.
1600 2013-04-15 Richard Biener <rguenther@suse.de>
1602 PR tree-optimization/56933
1603 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
1605 (GROUP_READ_WRITE_DEPENDENCE): Remove.
1606 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
1607 * tree-vect-data-refs.c (vect_analyze_group_access): Move
1608 dependence check ...
1609 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
1611 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
1612 GROUP_READ_WRITE_DEPENDENCE.
1614 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1616 * emit-rtl.c (reset_all_used_flags): New function.
1617 (verify_rtl_sharing): Call reset_all_used_flags before and after
1618 performing the checks.
1620 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1622 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
1623 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
1624 * config/arm/constraints.md (De): New constraint.
1625 * config/arm/neon.md (anddi3_neon): Delete.
1626 (neon_vand<mode>): Expand to standard anddi3 pattern.
1627 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
1628 Move earlier in the file.
1629 (neon_inv_logic_op2): Likewise.
1630 (arm_anddi_operand_neon): New predicate.
1632 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1634 * configure.ac (gcc_cv_ld_as_needed): Set
1635 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
1636 Use -z ignore, -z record on *-*-solaris2*.
1637 (HAVE_LD_AS_NEEDED): Update comment.
1638 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
1639 * configure: Regenerate.
1640 * config.in: Regenerate.
1641 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
1642 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
1643 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
1644 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
1645 equivalents. Fix markup.
1646 * doc/tm.texi: Regenerate.
1648 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
1650 * config/i386/i386.opt: New option mstack-protector-guard=.
1651 * config/i386/i386-opts.h: Add enum stack_protector_guard.
1652 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
1653 TARGET_SSP_TLS_GUARD.
1654 * config/i386/i386.c (ix86_option_override_internal): Set
1655 ix86_stack_protector_guard.
1656 * config/i386/i386.md (stack_protect_set): Enable for
1657 TARGET_SSP_TLS_GUARD only.
1658 (stack_protect_set_<mode>): Ditto.
1659 (stack_protect_test): Ditto.
1660 (stack_protect_test_<mode>): Ditto.
1661 * doc/invoke.texi (i386 Option): Document.
1663 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
1666 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
1667 (S_MODES): Set H_MODE bit.
1668 (SF_MODES): Set only S_MODE and SF_MODE bits.
1669 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
1670 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
1671 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
1672 <MODE_FLOAT>: Likewise.
1674 2013-04-15 Joey Ye <joey.ye@arm.com>
1676 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
1678 2013-04-15 Joey Ye <joey.ye@arm.com>
1680 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
1682 (thumb_far_jump_used_p): Count instruction size and set
1685 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
1687 * reorg.c (fill_simple_delay_slots): Reindent block of code.
1688 * resource.c (mark_target_live_regs): Reformat conditional block.
1690 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
1692 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
1693 notes, they are emitted only just before final.
1694 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
1696 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
1698 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
1699 * cfgrtl.c (delete_insn): Call it here instead.
1700 * lra-spills.c (lra_final_code_change): Use delete_insn.
1701 * haifa-sched.c (sched_remove_insn): Likewise.
1702 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
1703 returning to the nop pool.
1704 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
1705 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
1707 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
1709 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
1710 * doc/tm.texi: Regenerated.
1712 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
1714 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
1717 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
1719 * df-core.c (df_find_def): Compare register numbers.
1720 (df_find_use): Likewise.
1722 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
1725 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
1726 lra_in_progress for return.
1728 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
1730 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
1731 define_insn into define_insn_and_split and emit movsicc patterns.
1733 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
1735 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
1737 2013-04-12 Richard Biener <rguenther@suse.de>
1739 * tree-pass.h (TODO_do_not_ggc_collect): New.
1740 * passes.c (execute_one_ipa_transform_pass): Honor
1741 TODO_do_not_ggc_collect.
1742 (execute_one_pass): Likewise.
1745 2013-04-10 Richard Biener <rguenther@suse.de>
1747 * passes.c (init_optimization_passes): Remove reload pass.
1748 * ira.c (do_reload): Merge into ...
1750 (rest_of_handle_reload): Remove.
1751 (pass_reload): Likewise.
1752 * config/i386/i386.c (ix86_option_override): Refer to ira instead
1753 of reload for vzeroupper pass placement.
1755 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1757 PR tree-optimization/56918
1758 PR tree-optimization/56920
1759 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
1760 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
1761 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
1762 use wide_mul_with_sign method.
1764 2013-04-12 Richard Biener <rguenther@suse.de>
1766 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
1767 not be considered a gimple constant.
1769 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
1771 * fold-const.c (const_binop): Handle vector shifts by a scalar.
1772 (fold_binary_loc): Call const_binop also for mixed vector-scalar
1775 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
1776 Jakub Jelinek <jakub@redhat.com>
1778 * opts.c: Include diagnostic-color.h.
1779 (common_handle_option): Handle OPT_fdiagnostics_color_.
1780 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
1781 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
1782 (diagnostic-color.o): New.
1783 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
1784 (diagnostic_color_rule): New enum.
1785 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
1786 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
1787 the location string.
1788 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
1789 either NULL, or color kind.
1790 * diagnostic-color.c: New file.
1791 * diagnostic-color.h: New file.
1792 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
1794 * doc/invoke.texi (-fdiagnostics-color): Document.
1795 * pretty-print.h (pp_show_color): Define.
1796 (struct pretty_print_info): Add show_color field.
1797 * diagnostic.c: Include diagnostic-color.h.
1798 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
1799 macros. Colorize error:, warning: etc. strings and also the location
1801 (diagnostic_show_locus): Colorize the caret line.
1802 * pretty-print.c: Include diagnostic-color.h.
1803 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
1804 inside of %< %> quotes or quoted through q format modifier.
1806 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1808 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
1810 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1812 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
1814 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
1817 2013-04-11 Marek Polacek <polacek@redhat.com>
1819 PR tree-optimization/48184
1820 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
1822 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
1824 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
1825 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
1826 (skip_simple_arithmetic): Tidy up.
1827 * tree.h (skip_simple_constant_arithmetic): Declare.
1829 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1831 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
1833 2013-04-11 Richard Biener <rguenther@suse.de>
1835 * tree-vect-loop.c (get_initial_def_for_induction): Properly
1836 generate vector constants.
1838 2013-04-11 Richard Biener <rguenther@suse.de>
1840 PR tree-optimization/56878
1841 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
1842 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
1844 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1845 Prefer to align the DR with the most invariant base address.
1847 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1849 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
1852 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1854 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
1855 floating-point vector comparisons against 0.
1857 2013-04-11 Jakub Jelinek <jakub@redhat.com>
1859 PR tree-optimization/56899
1860 * fold-const.c (extract_muldiv_1): Apply distributive law
1861 only if TYPE_OVERFLOW_WRAPS (ctype).
1863 2013-04-11 Bin Cheng <bin.cheng@arm.com>
1866 * ira-costs.c (scan_one_insn): Check whether the source rtx of
1867 loading has side effect.
1869 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
1871 * config/sparc/sparc.c: Include tree-pass.h.
1872 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
1873 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
1874 head of file. Change return type. Split off gate function.
1875 (sparc_gate_work_around_errata): New function.
1876 (pass_work_around_errata): New pass definition.
1877 (insert_pass_work_around_errata) New pass insert definition to
1878 insert pass_work_around_errata just after delayed-branch scheduling.
1879 (sparc_option_override): Insert the pass.
1880 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
1882 2013-04-10 David S. Miller <davem@davemloft.net>
1884 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
1885 or -mcpu=hypersparc.
1887 * target.def (cstore_mode): New hook.
1888 * target.h: Include insn-codes.h
1889 * targhooks.c: Likewise.
1890 (default_cstore_mode): New function.
1891 * targhooks.h: Declare it.
1892 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
1893 * doc/tm.texi: Rebuild.
1894 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
1895 target hook, rather than inspecting the insn_data.
1896 * config/sparc/sparc.c (sparc_cstore_mode): New function.
1897 (TARGET_CSTORE_MODE): Redefine.
1898 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
1900 * config/sparc/predicates.md (cstore_result_operand): New special
1902 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
1903 Use it for operand 0.
1904 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
1905 (*snesi_special): Likewise.
1906 (*snesi_zero): Likewise.
1907 (*seqsi_zero): Likewise.
1908 (*sltu_insn): Likewise.
1909 (*sgeu_insn): Likewise.
1910 (*seqdi_special): Make operand 0 and comparison operation be of
1912 (*snedi_special): Likewise.
1913 (*snedi_special_vis3): Likewise.
1914 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
1915 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
1916 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
1917 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
1918 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
1919 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
1920 (*sltu_extend_sp64): Likewise.
1921 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
1922 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
1923 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
1924 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
1925 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
1927 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
1929 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
1930 (aarch64_start_file): Use the new function.
1932 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1933 Jason Merrill <jason@redhat.com>
1935 * common.opt: Add -gdwarf.
1936 * opts.c (common_handle_option): Handle it.
1937 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
1939 2013-04-10 Richard Biener <rguenther@suse.de>
1941 * passes.c (execute_todo): Do not call ggc_collect conditional here.
1942 (execute_one_ipa_transform_pass): But unconditionally here.
1943 (execute_one_pass): And here.
1944 (init_optimization_passes): Remove reload pass.
1945 * tree-pass.h (TODO_ggc_collect): Remove.
1946 (pass_reload): Likewise.
1947 * ira.c (do_reload): Merge into ...
1949 (rest_of_handle_reload): Remove.
1950 (pass_reload): Likewise.
1951 * config/i386/i386.c (ix86_option_override): Refer to ira instead
1952 of reload for vzeroupper pass placement.
1953 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
1954 and todo_flags_finish of all passes.
1956 2013-04-10 Richard Biener <rguenther@suse.de>
1958 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
1959 first_const_oprnd field, rename first_def_type to first_op_type.
1960 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
1961 (vect_get_and_check_slp_defs): Always use the type of the
1962 operand. Allow mixed vect_external_def, vect_constant_def types.
1963 (vect_get_constant_vectors): Handle mixed vect_external_def,
1964 vect_constant_def types.
1966 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
1968 PR tree-optimization/55524
1969 * tree-ssa-math-opts.c
1970 (convert_mult_to_fma): Don't use an fms construct
1971 when we don't have an fms operation, but fnma, and it looks
1972 likely that we'll be able to use the latter.
1974 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1976 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
1978 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
1979 inline fail caused by overwritable functions.
1981 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
1983 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
1984 unnecessary bits in the constant power of two case.
1986 2013-04-10 Richard Biener <rguenther@suse.de>
1988 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
1989 broken code swapping operands.
1990 (vect_build_slp_tree): Do not compute load permutations here.
1991 (vect_analyze_slp_instance): Compute load permutations here,
1992 after building the SLP tree.
1994 2013-04-09 Christian Bruel <christian.bruel@st.com>
1996 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
1997 of next/prev_real_insn.
1999 2013-04-09 Jan Hubicka <jh@suse.cz>
2001 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2002 Drop aliased parameter.
2003 (function_and_variable_visibility): Do not handle alias pairs.
2004 * cgraph.c (varpool_externally_visible_p): Update prototype.
2005 * varpool.c (varpool_add_new_variable): Update.
2007 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2009 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
2011 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
2013 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
2015 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
2017 2013-04-09 Marek Polacek <polacek@redhat.com>
2019 PR tree-optimization/48762
2020 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
2022 2013-04-09 Richard Biener <rguenther@suse.de>
2024 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
2026 (vect_build_slp_tree): Likewise.
2027 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
2028 calculating the cost of a SLP instance.
2029 (vect_analyze_slp_instance): Use it from here, after building
2032 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2035 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
2036 expand_omp_for_static_chunk): Use simple_p = true in
2037 force_gimple_operand_gsi calls when assigning to addressable decls.
2039 2013-04-09 Jeff Law <law@redhat.com>
2041 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
2042 when the boolean was created by converting a wider object which
2043 had a boolean range.
2045 2013-04-09 Richard Biener <rguenther@suse.de>
2047 * tree-vectorizer.h (slp_void_p): Remove.
2048 (slp_tree): Typedef before _slp_tree declaration.
2049 (struct _slp_tree): Use a vector of slp_tree as children.
2050 (vect_get_place_in_interleaving_chain): Remove.
2051 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
2053 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
2055 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
2056 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2057 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2058 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
2059 Use slp_node instead of slp_void_p and adjust.
2061 2013-04-09 Richard Biener <rguenther@suse.de>
2063 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
2064 work that is not necessary.
2066 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2068 PR tree-optimization/56854
2069 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
2070 forward into clobber stmts if it would change MEM_REF lhs into
2073 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
2075 * tree.c (type_hash_lookup, type_hash_add): Make static.
2076 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
2078 2013-04-09 Richard Biener <rguenther@suse.de>
2080 * tree.h (unsave_expr_now): Remove.
2081 * tree-inline.c (mark_local_for_remap_r): Remove.
2082 (unsave_expr_1): Likewise.
2083 (unsave_r): Likewise.
2084 (unsave_expr_now): Likewise.
2085 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
2086 (propagate_tree_value): Likewise.
2088 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
2090 * doc/rtl.texi (sequence): Rewrite documentation to match the
2091 current use of SEQUENCE rtl objects.
2092 * rtl.def (SEQUENCE): Likewise.
2094 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
2095 Update documentation.
2096 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
2097 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
2099 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
2101 2013-04-08 Teresa Johnson <tejohnson@google.com>
2103 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
2104 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
2106 (estimate_edge_size_and_time): Add comment to suggest using rounding
2108 (estimate_node_size_and_time): Ditto.
2109 (remap_edge_change_prob): Use helper rounding divide methods.
2110 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
2111 (gimple_mod_pow2_value_transform): Ditto.
2112 (gimple_mod_subtract_transform): Ditto.
2113 (gimple_ic_transform): Ditto.
2114 (gimple_stringops_transform): Ditto.
2115 * stmt.c (conditional_probability): Ditto.
2116 (emit_case_dispatch_table): Ditto.
2117 * lto-cgraph.c (merge_profile_summaries): Ditto.
2118 * tree-optimize.c (execute_fixup_cfg): Ditto.
2119 * cfgcleanup.c (try_forward_edges): Ditto.
2120 * cfgloopmanip.c (scale_loop_profile): Ditto.
2122 (duplicate_loop_to_header_edge): Ditto.
2123 (lv_adjust_loop_entry_edge): Ditto.
2124 * tree-vect-loop.c (vect_transform_loop): Ditto.
2125 * profile.c (compute_branch_probabilities): Ditto.
2126 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
2127 * lto-streamer-in.c (input_cfg): Ditto.
2128 * gimple-streamer-in.c (input_bb): Ditto.
2129 * ipa-cp.c (update_profiling_info): Ditto.
2130 (update_specialized_profile): Ditto.
2131 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
2132 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
2134 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2135 (compute_trg_info): Ditto.
2136 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
2137 (purge_dead_edges): Ditto.
2138 * loop-unswitch.c (unswitch_loop): Ditto.
2139 * cgraphclones.c (cgraph_clone_edge): Ditto.
2140 (cgraph_clone_node): Ditto.
2141 * tree-inline.c (copy_bb): Ditto.
2142 (copy_edges_for_bb): Ditto.
2143 (initialize_cfun): Ditto.
2144 (copy_cfg_body): Ditto.
2145 (expand_call_inline): Ditto.
2147 2013-04-08 Kai Tietz <ktietz@redhat.com>
2149 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
2150 TARGET_CYGWIN64 by TARGET_64BIT.
2152 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2154 * config/epiphany/epiphany.md (GPR_1): New constant.
2155 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
2156 * config/epiphany/epiphany.c (gen_compare_reg):
2157 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
2158 is already in place.
2159 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
2160 Don't require being called during rtl expansion; If y operlaps r0,
2162 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
2163 (epiphany_expand_epilogue): Likewise.
2165 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
2166 Don't use CC_FPmode for ORDERED / UNORDERED.
2167 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
2169 * config/epiphany/constraints.md (CnL): New constraint.
2170 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
2171 * config/epiphany/predicates.md (add_operand): Allow 1024.
2173 * config/epiphany/epiphany.md (logical_op): New code iterator.
2174 (op_mnc): New code attribute.
2175 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
2176 (mov_f+1, mov_f+2): New peephole2 patterns.
2178 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
2179 (cstoresi4): Also allow re-use of zero result when doing a NE
2180 comparison to a non-zero operand.
2181 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2183 * config/epiphany/epiphany.md (<insn_opname>v2si3):
2184 Use gen_addsi3_i / gen_subsi3_i.
2186 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2190 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
2191 contain anything but clobbers, at most one __builtin_stack_restore,
2192 optionally debug stmts and final resx, and if it has at least one
2193 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
2194 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
2195 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
2196 which isn't defaut definition, remove them.
2197 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
2198 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
2199 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
2200 with MEM_REF LHS with SSA_NAME address.
2202 2013-04-08 Jeff Law <law@redhat.com>
2204 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
2206 2013-04-08 Richard Biener <rguenther@suse.de>
2208 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
2210 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
2211 determined vector type.
2212 (vect_analyze_data_refs): Likewise.
2213 (vect_get_new_vect_var): Adjust.
2214 (vect_create_destination_var): Preserve SSA name versions.
2215 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
2216 not dump anything here.
2218 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2220 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
2221 Add member lr_slot_known.
2222 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
2224 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
2225 Remove code that sets lr_slot_offset according to what a previous
2226 version of epiphany_emit_save_restore used to do.
2227 (epiphany_emit_save_restore): When doing an lr save or restore,
2228 set/verify lr_slot_known and lr_slot_offset.
2230 2013-04-08 Xinyu Qi <xyqi@marvell.com>
2233 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
2236 2013-04-08 Richard Biener <rguenther@suse.de>
2238 * alias.c (find_base_term): Fix thinko in previous change.
2240 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2242 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
2243 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
2244 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
2245 if possible to compute val.
2246 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
2247 For QImode integers don't require anything about precision. Use
2248 const_with_all_bytes_same to find out if the constant doesn't have
2249 repeated bytes in it.
2251 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2253 * config/s390/s390.c (s390_expand_insv): Only accept insertions
2256 2013-04-08 Marek Polacek <polacek@redhat.com>
2258 PR rtl-optimization/48182
2259 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
2262 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2265 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
2266 nuses, make sure we have a label.
2268 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2271 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
2272 (rs6000_emit_swdiv_low_precision): Remove.
2273 (rs6000_emit_swdiv): Rewrite to handle between one and four
2274 iterations of Newton-Raphson generally; modify required number of
2275 iterations for some cases.
2276 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
2278 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
2280 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
2281 set-but-unused variable.
2283 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
2284 basic blocks of released function bodies garbage-collectable.
2286 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
2287 (struct rtl_opt_pass): Add TODO_df_finish.
2289 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
2291 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2293 * config/arm/constraints.md (q): New constraint.
2294 * config/arm/ldrdstrd.md: New file.
2295 * config/arm/arm.md (ldrdstrd.md) New include.
2296 (arm_movdi): Use "q" instead of "r" constraint
2297 for double-word memory access.
2298 (movdf_soft_insn): Likewise.
2299 * config/arm/vfp.md (movdi_vfp): Likewise.
2300 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
2301 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
2302 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
2303 (mem_ok_for_ldrd_strd): Likewise.
2304 (output_move_double): Update assertion.
2306 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2308 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
2310 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2312 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
2313 define_insn_and_split.
2314 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
2316 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2318 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
2319 define_insn_and_split.
2320 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
2321 (shiftsi3_compare): New pattern.
2323 * config/arm/unspecs.md (UNSPEC_RRX): New.
2325 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2327 * config/arm/arm.md (negdi_extendsidi): New pattern.
2328 (negdi_zero_extendsidi): Likewise.
2330 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2332 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
2333 define_insn_and_split.
2334 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
2335 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
2337 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2339 * config/arm/arm.md (arm_subdi3): Convert define_insn into
2340 define_insn_and_split.
2341 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
2342 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
2344 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2346 * config/arm/arm.md (subsi3_carryin): New pattern.
2347 (subsi3_carryin_const): Likewise.
2348 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
2349 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
2351 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2353 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
2355 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2357 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
2358 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
2360 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2362 * config/arm/arm.c (arm_expand_builtin): Change fcode
2363 type to unsigned int.
2365 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2367 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
2369 2013-04-04 Ian Lance Taylor <iant@google.com>
2371 * doc/standards.texi (Standards): The Go frontend supports the Go 1
2374 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
2377 * df-scan.c (df_insn_delete): Disable failing assert.
2379 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2381 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
2382 New function prototype.
2383 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
2384 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
2385 (arm_builtin_vectorized_function): New function.
2387 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2389 * config/arm/arm_neon_builtins.def: New file.
2390 * config/arm/arm.c (neon_builtin_data): Move contents to
2391 arm_neon_builtins.def.
2392 (enum arm_builtins): Include neon builtin definitions.
2393 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
2394 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
2396 2013-04-04 Marek Polacek <polacek@redhat.com>
2398 PR tree-optimization/48186
2399 * predict.c (maybe_hot_frequency_p): Return false if
2400 HOT_BB_FREQUENCY_FRACTION is 0.
2401 (cgraph_maybe_hot_edge_p): Likewise.
2403 2013-04-04 Richard Biener <rguenther@suse.de>
2405 PR tree-optimization/56826
2406 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
2409 2013-04-04 Richard Biener <rguenther@suse.de>
2411 PR tree-optimization/56213
2412 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
2413 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
2415 2013-04-04 Richard Biener <rguenther@suse.de>
2417 PR tree-optimization/56837
2418 * tree-loop-distribution.c (classify_partition): For non-zero
2419 values require that the value has the same precision as its
2420 mode to be useful as memset value.
2422 2013-04-03 Nick Clifton <nickc@redhat.com>
2424 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
2425 (fmssf4): Use fmsf.s on E3V5 architectures.
2426 (fnmasf4): Use fnmaf.s on E3V5 architectures.
2427 (fnmssf4): Use fnmsf.s on E3V5 architectures.
2429 2013-04-03 Jeff Law <law@redhat.com>
2431 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
2432 (lra-eliminations.o): Likewise.
2434 2013-04-03 Teresa Johnson <tejohnson@google.com>
2436 * gcov-io.c (compute_working_sets): Moved most of body of old
2437 compute_working_sets here from profile.c.
2438 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
2439 (gcov_working_set_t): Moved typedef here from basic-block.h
2440 (compute_working_set): Declare.
2441 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
2442 (get_working_sets): Renamed from compute_working_set,
2443 replace most of body with call to new compute_working_sets.
2444 (get_exec_counts): Replace call to compute_working_sets
2445 to get_working_sets.
2446 * profile.h (get_working_sets): Renamed from compute_working_set.
2447 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
2448 to get_working_sets.
2449 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
2450 * gcov-dump.c (dump_working_sets): New function.
2452 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
2454 * hwint.c (sext_hwi, zext_hwi): New functions.
2455 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
2456 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
2457 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
2458 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
2459 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
2460 (sext_hwi, zext_hwi): New functions.
2462 2013-04-03 Jeff Law <law@redhat.com>
2464 PR tree-optimization/56799
2465 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
2466 back test for widening conversion erroneously dropped in prior change.
2468 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2471 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
2472 instead of next_real_insn.
2474 2013-04-03 Marek Polacek <polacek@redhat.com>
2477 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
2479 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2482 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
2484 (thumb1_output_casesi): Likewise.
2485 (thumb2_output_casesi): Likewise.
2487 2013-04-03 Richard Biener <rguenther@suse.de>
2489 PR tree-optimization/56817
2490 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2492 (tree_unroll_loops_completely_1): ... new function to manually
2493 walk the loop tree, properly defering outer loops of unrolled
2494 loops to later iterations.
2496 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2498 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
2499 (vectorizable_load): Likewise.
2500 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
2501 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
2503 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2505 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
2508 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2510 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
2512 2013-04-03 Bin Cheng <bin.cheng@arm.com>
2514 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
2516 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2518 PR tree-optimization/56790
2519 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
2522 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2524 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
2526 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
2527 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
2530 2013-04-03 Jakub Jelinek <jakub@redhat.com>
2533 * tree.h (force_folding_builtin_constant_p): New decl.
2534 * builtins.c (force_folding_builtin_constant_p): New variable.
2535 (fold_builtin_constant_p): Fold immediately also if
2536 force_folding_builtin_constant_p.
2538 2013-04-03 Richard Biener <rguenther@suse.de>
2540 PR tree-optimization/56812
2541 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2542 DRs of the same interleaving chain are independent.
2544 2013-04-02 Jason Merrill <jason@redhat.com>
2546 * gdbinit.in (pbb): Use debug fn.
2548 2013-04-02 Lawrence Crowl <crowl@google.com>
2550 * sese.h (struct ivtype_map_elt_s): Remove unused.
2551 (extern debug_ivtype_map): Remove unused.
2552 (extern eq_ivtype_map_elts): Remove unused.
2553 * sese.c (debug_ivtype_map): Removed unused.
2554 (debug_ivtype_map_1): Removed unused.
2555 (debug_ivtype_elt): Remove unused.
2556 (eq_ivtype_map_elts): Remove unused.
2559 2013-04-02 Kai Tietz <ktietz@redhat.com>
2562 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
2563 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
2564 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
2566 (legitimize_pe_coff_symbol): Likewise.
2567 (is_imported_p): New helper-function.
2568 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
2569 for Windows x64 targets.
2570 (ix86_expand_prologue): Optimize for pe-coff targets.
2571 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
2572 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
2573 medium/large code-model.
2574 (legitimize_pic_address): Likewise.
2575 (legitimize_tls_address): Likewise.
2576 (ix86_expand_call): Likewise.
2577 (x86_output_mi_thunk): Likewise.
2578 (get_dllimport_decl): Add new beimport argument.
2579 (construct_plt_address): Don't assert for x64 pe-coff targets.
2580 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
2582 (SYMBOL_FLAG_STUBVAR): New macro.
2583 (SYMBOL_REF_STUBVAR_P): Likewise.
2584 * config/i386/winnt.c (stub_list): New structure.
2585 (stub_head): New local variable.
2586 (i386_pe_record_stub): New function.
2587 (i386_pe_file_end): Emit refptr-stubs.
2589 2013-04-02 Jakub Jelinek <jakub@redhat.com>
2591 PR rtl-optimization/56745
2592 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
2593 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
2596 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
2597 and both of them are MEM_REFs, just compare first argument for
2598 equality and attempt to deal even with differing offsets.
2601 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
2602 of gimple_clobber_p to be MEM_REF.
2603 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
2604 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
2605 after gimplification.
2606 * asan.c (get_mem_ref_of_assignment): Don't instrument
2607 gimple_clobber_p stmts.
2608 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
2609 gimple_clobber_p stmt if they have MEM_REF lhs and
2610 are dead because of another gimple_clobber_p stmt.
2611 * tree-ssa-live.c (clear_unused_block_pointer): Treat
2612 gimple_clobber_p stmts like debug stmts.
2613 (remove_unused_locals): Remove clobbers with MEM_REF lhs
2614 that refer to unused VAR_DECLs or uninitialized values.
2615 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
2616 gimple_clobber_p stmts if they refer to removed parameters.
2617 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
2620 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
2622 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
2623 using SWI48 mode attribute.
2625 2013-04-02 Wei Mi <wmi@google.com>
2627 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
2628 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
2629 *<rotate_insn><mode>3_mask in i386.md.
2631 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
2633 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
2635 2013-04-02 Richard Biener <rguenther@suse.de>
2637 PR tree-optimization/56778
2638 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2639 Runtime alias tests are not supported for gather loads.
2640 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
2641 stmts referenced from SSA operands before updating SSA form.
2643 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
2644 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2646 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
2647 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
2648 * config/arm/cortex-a53.md: New file.
2649 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
2650 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
2651 * config/arm/arm.c (arm_issue_rate): Likewise.
2652 * config/arm/arm-tune.md: Regenerate
2653 * config/arm/arm-tables.opt: Regenerate.
2654 * config/arm/arm-cores.def: Add cortex-a53.
2656 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
2658 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
2661 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2663 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
2664 scalar load/store operations using B/H registers.
2665 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
2667 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2669 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
2671 * config/aarch64/aarch64.c
2672 (aarch64_simd_scalar_immediate_valid_for_move): New.
2673 * config/aarch64/aarch64-protos.h
2674 (aarch64_simd_scalar_immediate_valid_for_move): New.
2675 * config/aarch64/constraints.md (Dh, Dq): New.
2676 * config/aarch64/iterators.md (hq): New.
2678 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
2680 * reorg.c (get_branch_condition): Deal with conditional returns.
2681 (fill_simple_delay_slots): Remove dead code dealing with jumps.
2683 2013-04-01 Wei Mi <wmi@google.com>
2685 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
2686 Truncate operand 2 using %b asm operand modifier.
2687 (*<shift_insn><mode>3_mask): Ditto.
2688 (*<rotate_insn><mode>3_mask): Ditto.
2690 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
2693 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
2695 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
2697 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
2699 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
2701 2013-03-30 Lawrence Crowl <crowl@google.com>
2703 * dse.c (clear_alias_sets): Remove never set.
2704 (disqualified_clear_alias_sets): Remove never set.
2705 (clear_alias_mode_pool): Remove never set.
2706 (dse_step0): Remove condition that is never true.
2707 (canon_address): Remove condition that is never true.
2708 (dse_step7): Remove condition that is never true.
2709 (rest_of_handle_dse): Remove condition that is never true.
2710 (rest_of_handle_dse::did_global): Remove never read from above.
2711 (dse_step2_spill): Remove never called from above.
2712 (dse_step5_spill): Remove never called from above.
2714 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
2716 * doc/md.texi (Standard Names) <casesi>: Update documentation for
2717 JUMP_TABLE_DATA changes.
2718 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
2719 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
2720 (Insns) <jump_table_data>: New entry.
2721 * doc/tm.texi: Regenerate.
2723 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
2725 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
2726 for table jump at the end of a basic block using tablejump_p.
2727 * targhooks.c (default_invalid_within_doloop): Likewise.
2728 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
2729 target hook implementation that is identical to the default hook.
2730 (rs6000_invalid_within_doloop): Remove.
2732 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
2733 unused variable from tablejump_p call.
2735 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
2736 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
2737 (INSN_DELETED_P): Likewise.
2738 (emit_jump_table_data): New prototype.
2739 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
2740 after 4th as unused.
2741 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
2742 * sched-vis.c (print_insn): Likewise.
2743 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
2744 insn for compatibility with back ends that use next_active_insn to
2745 identify jump table data.
2746 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
2747 (remove_insn): Likewise.
2748 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
2750 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
2751 (emit_jump_table_data): New function.
2753 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
2754 basic block, a JUMP_TABLE_DATA never is.
2755 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
2756 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
2757 off from code handling real insns.
2758 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
2759 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
2760 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
2761 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
2762 is not a NONDEBUG_INSN_P.
2763 * ira-costs.c (scan_one_insn): Likewise.
2764 * jump.c (mark_all_labels): Likewise.
2765 (mark_jump_label_1): Likewise.
2766 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2767 * lra.c (get_insn_freq): Expect all insns reaching here to be in
2769 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
2770 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
2771 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
2772 JUMP_TABLE_DATA_P insns.
2773 (calculate_elim_costs_all_insns): Likewise.
2774 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
2775 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
2776 (delete_output_reload): Code style fixups.
2777 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
2778 insn flags on this non-insn.
2779 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
2780 as scheduling barriers, for pre-change compatibility.
2781 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
2782 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
2784 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
2785 redundant JUMP_TABLE_DATA_P test.
2786 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
2787 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2788 (frv_for_each_packet): Likewise.
2789 * config/i386/i386.c (min_insn_size): Likewise.
2790 (ix86_avoid_jump_mispredicts): Likewise.
2791 * config/m32r/m32r.c (m32r_is_insn): Likewise.
2792 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
2793 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2794 (mips16_insn_length): Robustify.
2795 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
2796 (mips16_split_long_branches): Likewise.
2797 * config/pa/pa.c (pa_combine_instructions): Likewise.
2798 * config/rs6000/rs6000.c (get_next_active_insn): Treat
2799 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
2800 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
2801 as contributing to pool range lengths.
2802 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
2803 Remove redundant JUMP_TABLE_DATA_P test.
2804 (sh_loop_align): Likewise.
2805 (split_branches): Likewise.
2806 (sh_insn_length_adjustment): Likewise.
2807 * config/spu/spu.c (get_branch_target): Likewise.
2809 2013-03-29 Jan Hubicka <jh@suse.cz>
2811 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
2812 gcov streaming; stream hot bb threshold to ltrans.
2813 * predict.c (get_hot_bb_threshold): Break out from ....
2814 (maybe_hot_count_p): ... here.
2815 (set_hot_bb_threshold): New function.
2816 * lto-section-in.c (lto_section_name): Add profile.
2817 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
2818 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
2820 (histogram_entry): New structure.
2821 (histogram, histogram_pool): New global vars.
2822 (histogram_hash): New structure.
2823 (histogram_hash::hash): New method.
2824 (histogram_hash::equal): Likewise.
2825 (account_time_size): New function.
2826 (cmp_counts): New function.
2827 (dump_histogram): New function.
2828 (ipa_profile_generate_summary): New function.
2829 (ipa_profile_write_summary): New function.
2830 (ipa_profile_read_summary): New function.
2831 (ipa_profile): Decide on threshold.
2832 (pass_ipa_profile): Add ipa_profile_write_summary and
2833 ipa_profile_read_summary.
2834 * Makefile.in (ipa.o): Update dependencies.
2835 * lto-streamer.h (LTO_section_ipa_profile): New section.
2837 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
2839 * tree.h (VAR_P): New.
2841 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
2844 * doc/invoke.texi ([-fwhole-program]): Fix typo.
2846 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
2848 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
2849 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2850 (control_flow_insn_p): Likewise.
2851 * cfgrtl.c (duplicate_insn_chain): Likewise.
2852 * final.c (get_attr_length_1): Likewise.
2853 (shorten_branches): Likewise.
2854 (final_scan_insn): Likewise.
2855 * function.c (instantiate_virtual_regs): Likewise.
2856 * gcse.c (insert_insn_end_basic_block): Likewise.
2857 * ira-costs.c (scan_one_insn): Likewise.
2858 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2859 * lra.c (check_rtl): Likewise.
2860 * reload1.c (elimination_costs_in_insn): Likewise.
2861 * reorg.c (follow_jumps): Likewise.
2863 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
2864 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2865 (thumb_far_jump_used_p): Likewise.
2866 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
2867 (workaround_speculation): Likewise.
2868 (add_sched_insns_for_speculation): Likewise.
2869 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
2870 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2871 (frv_for_each_packet): Likewise.
2872 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
2873 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
2874 (final_emit_insn_group_barriers): Likewise.
2875 * config/m32r/m32r.c (m32r_is_insn): Likewise.
2876 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2877 (mips16_insn_length): Likewise.
2878 * config/pa/pa.c (pa_reorg): Likewise.
2879 (pa_combine_instructions): Likewise.
2880 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
2881 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
2882 (sh_reorg): Likewise.
2883 (split_branches): Likewise.
2884 * config/spu/spu.c (get_branch_target): Likewise.
2886 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
2889 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
2891 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
2892 Fix declaration name.
2894 2013-03-28 Lawrence Crowl <crowl@google.com>
2896 * graphds.h (struct graph.indicies): Remove unused.
2897 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
2898 (SCOP_ORIGINAL_PDDRS): Remove unused.
2899 * sese.h (extern insert_loop_close_phis): Removed unused.
2900 (extern insert_guard_phis): Removed unused.
2901 (extern ivtype_map_elt_info): Removed unused.
2902 (new_ivtype_map_elt): Removed unused.
2903 * sese.c (ivtype_map_elt_info): Removed unused.
2905 2013-03-28 Lawrence Crowl <crowl@google.com>
2907 * Makefile.in: Add several missing include dependences.
2909 (test-dump.o): New. This object is not added to any executable,
2910 but is present for ad-hoc testing.
2912 (debug (const bitmap_head_def &)): New.
2913 (debug (const bitmap_head_def *)): New.
2915 (extern debug (const bitmap_head_def &)): New.
2916 (extern debug (const bitmap_head_def *)): New.
2918 (debug (edge_def &)): New.
2919 (debug (edge_def *)): New.
2921 (debug (basic_block_def &)): New.
2922 (debug (basic_block_def *)): New.
2924 (dump_node (const_tree, int, FILE *)): Correct source file.
2926 (debug (die_struct &)): New.
2927 (debug (die_struct *)): New.
2929 (extern debug (die_struct &)): New.
2930 (extern debug (die_struct *)): New.
2931 * gimple-pretty-print.c
2932 (debug (gimple_statement_d &)): New.
2933 (debug (gimple_statement_d *)): New.
2934 * gimple-pretty-print.h
2935 (extern debug (gimple_statement_d &)): New.
2936 (extern debug (gimple_statement_d *)): New.
2938 (debug (ira_allocno_copy &)): New.
2939 (debug (ira_allocno_copy *)): New.
2940 (debug (ira_allocno &)): New.
2941 (debug (ira_allocno *)): New.
2943 (extern debug (ira_allocno_copy &)): New.
2944 (extern debug (ira_allocno_copy *)): New.
2945 (extern debug (ira_allocno &)): New.
2946 (extern debug (ira_allocno *)): New.
2948 (debug (live_range &)): New.
2949 (debug (live_range *)): New.
2951 (debug (lra_live_range &)): New.
2952 (debug (lra_live_range *)): New.
2954 (debug (lra_live_range &)): New.
2955 (debug (lra_live_range *)): New.
2957 (debug (omega_pb_d &)): New.
2958 (debug (omega_pb_d *)): New.
2960 (extern debug (omega_pb_d &)): New.
2961 (extern debug (omega_pb_d *)): New.
2963 (debug (const rtx_def &)): New.
2964 (debug (const rtx_def *)): New.
2966 (debug_tree (tree): Move within file.
2967 (debug_raw (const tree_node &)): New.
2968 (debug_raw (const tree_node *)): New.
2969 (dump_tree_via_hooks (const tree_node *, int)): New.
2970 (debug (const tree_node &)): New.
2971 (debug (const tree_node *)): New.
2972 (debug_verbose (const tree_node &)): New.
2973 (debug_verbose (const tree_node *)): New.
2974 (debug_head (const tree_node &)): New.
2975 (debug_head (const tree_node *)): New.
2976 (debug_body (const tree_node &)): New.
2977 (debug_body (const tree_node *)): New.
2978 (debug_vec_tree (tree): Move and reimplement in terms of dump.
2979 (debug (vec<tree, va_gc> &)): New.
2980 (debug (vec<tree, va_gc> *)): New.
2982 (extern debug (const rtx_def &)): New.
2983 (extern debug (const rtx_def *)): New.
2985 (debug_raw (simple_bitmap_def &)): New.
2986 (debug_raw (simple_bitmap_def *)): New.
2987 (debug (simple_bitmap_def &)): New.
2988 (debug (simple_bitmap_def *)): New.
2990 (extern debug (simple_bitmap_def &)): New.
2991 (extern debug (simple_bitmap_def *)): New.
2992 (extern debug_raw (simple_bitmap_def &)): New.
2993 (extern debug_raw (simple_bitmap_def *)): New.
2995 (debug (vinsn_def &)): New.
2996 (debug (vinsn_def *)): New.
2997 (debug_verbose (vinsn_def &)): New.
2998 (debug_verbose (vinsn_def *)): New.
2999 (debug (expr_def &)): New.
3000 (debug (expr_def *)): New.
3001 (debug_verbose (expr_def &)): New.
3002 (debug_verbose (expr_def *)): New.
3003 (debug (vec<rtx> &)): New.
3004 (debug (vec<rtx> *)): New.
3006 (extern debug (vinsn_def &)): New.
3007 (extern debug (vinsn_def *)): New.
3008 (extern debug_verbose (vinsn_def &)): New.
3009 (extern debug_verbose (vinsn_def *)): New.
3010 (extern debug (expr_def &)): New.
3011 (extern debug (expr_def *)): New.
3012 (extern debug_verbose (expr_def &)): New.
3013 (extern debug_verbose (expr_def *)): New.
3014 (extern debug (vec<rtx> &)): New.
3015 (extern debug (vec<rtx> *)): New.
3017 (_list_iter_cond_expr): Make inline instead of static.
3019 (debug (sreal &)): New.
3020 (debug (sreal *)): New.
3022 (extern debug (sreal &)): New.
3023 (extern debug (sreal *)): New.
3025 (extern debug_raw (const tree_node &)): New.
3026 (extern debug_raw (const tree_node *)): New.
3027 (extern debug (const tree_node &)): New.
3028 (extern debug (const tree_node *)): New.
3029 (extern debug_verbose (const tree_node &)): New.
3030 (extern debug_verbose (const tree_node *)): New.
3031 (extern debug_head (const tree_node &)): New.
3032 (extern debug_head (const tree_node *)): New.
3033 (extern debug_body (const tree_node &)): New.
3034 (extern debug_body (const tree_node *)): New.
3035 (extern debug (vec<tree, va_gc> &)): New.
3036 (extern debug (vec<tree, va_gc> *)): New.
3038 (debug (struct loop &)): New.
3039 (debug (struct loop *)): New.
3040 (debug_verbose (struct loop &)): New.
3041 (debug_verbose (struct loop *)): New.
3042 * tree-dump.c: Add header dependence.
3044 (extern debug (struct loop &)): New.
3045 (extern debug (struct loop *)): New.
3046 (extern debug_verbose (struct loop &)): New.
3047 (extern debug_verbose (struct loop *)): New.
3049 (debug (data_reference &)): New.
3050 (debug (data_reference *)): New.
3051 (debug (vec<data_reference_p> &)): New.
3052 (debug (vec<data_reference_p> *)): New.
3053 (debug (vec<ddr_p> &)): New.
3054 (debug (vec<ddr_p> *)): New.
3056 (extern debug (data_reference &)): New.
3057 (extern debug (data_reference *)): New.
3058 (extern debug (vec<data_reference_p> &)): New.
3059 (extern debug (vec<data_reference_p> *)): New.
3060 (extern debug (vec<ddr_p> &)): New.
3061 (extern debug (vec<ddr_p> *)): New.
3063 (debug (pt_solution &)): New.
3064 (debug (pt_solution *)): New.
3066 (extern debug (pt_solution &)): New.
3067 (extern debug (pt_solution *)): New.
3069 (debug (_var_map &)): New.
3070 (debug (_var_map *)): New.
3071 (debug (tree_live_info_d &)): New.
3072 (debug (tree_live_info_d *)): New.
3074 (extern debug (_var_map &)): New.
3075 (extern debug (_var_map *)): New.
3076 (extern debug (tree_live_info_d &)): New.
3077 (extern debug (tree_live_info_d *)): New.
3079 2013-03-28 Jan Hubicka <jh@suse.cz>
3081 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
3083 2013-03-28 Ian Bolton <ian.bolton@arm.com>
3085 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
3086 record only when desired or required.
3088 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
3090 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
3091 *vec_extractv2di_1_rex64. Use x64 isa attribute.
3093 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3095 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
3096 (*andsi3_compare0_uxtw): New pattern.
3097 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
3098 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
3100 2013-03-28 Jan Hubicka <jh@suse.cz>
3102 * data-streamer-in.c (streamer_read_gcov_count): New function.
3103 * gimple-streamer-out.c: Include value-prof.h.
3104 (output_gimple_stmt): Output histogram.
3105 (output_bb): Use streamer_write_gcov_count.
3106 * value-prof.c: Include data-streamer.h
3107 (dump_histogram_value): Add HIST_TYPE_MAX.
3108 (stream_out_histogram_value): New function.
3109 (stream_in_histogram_value): New function.
3110 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
3111 (stream_out_histogram_value, stream_in_histogram_value): Declare.
3112 * data-streamer-out.c (streamer_write_gcov_count): New function.
3113 (streamer_write_gcov_count_stream): New function.
3114 * lto-cgraph.c (lto_output_edge): Update counter streaming.
3115 (lto_output_node): Likewise.
3116 (input_node, input_edge): Likewise.
3117 * lto-streamer-out.c (output_cfg): Update streaming.
3118 * lto-streamer-in.c (input_cfg): Likewise.
3119 * data-streamer.h (streamer_write_gcov_count,
3120 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
3121 * gimple-streamer-in.c: Include value-prof.h
3122 (input_gimple_stmt): Input histograms.
3123 (input_bb): Update profile streaming.
3125 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3127 * genmodes.c (emit_max_int): New function.
3128 (emit_insn_modes_h): Added call to emit_max_function.
3129 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
3131 * machmode.def: Fixed comment.
3133 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3135 * combine.c (try_combine): Removed useless assert.
3136 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
3138 2013-03-28 Marek Polacek <polacek@redhat.com>
3139 Richard Biener <rguenther@suse.de>
3141 PR tree-optimization/56695
3142 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
3143 build signed result of a vector comparison.
3144 * tree-cfg.c (verify_gimple_comparison): Check that a result
3145 of a vector comparison has signed type.
3147 2013-03-28 Richard Biener <rguenther@suse.de>
3149 PR tree-optimization/37021
3150 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
3151 do not restrict gaps between groups.
3152 * tree-vect-stmts.c (vectorizable_load): Properly account for
3153 a gap between groups.
3155 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
3157 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
3158 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
3161 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
3163 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
3164 * doc/extend.texi (Named Address Spaces): Ditto.
3165 (Variable Attributes): Ditto.
3167 2013-03-27 Kai Tietz <ktietz@redhat.com>
3169 * config.build: Add support for cygwin x64 target.
3170 * config.gcc: Likewise.
3171 * config.host: Likewise.
3172 * configure.ac: Likewise
3173 * configure: Regenerated.
3175 2013-03-27 Kai Tietz <ktietz@redhat.com>
3177 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
3178 * config/i386/t-cygwin-w64: New file.
3179 * config/i386/cygwin-w64.h: New file.
3180 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
3181 and add support for x64-cygwin target.
3182 (CPP_SPEC): Likewise.
3183 (CXX_WRAP_SPEC_LIST): Undefine before define.
3184 (LIBGCJ_SONAME): Use 15 as version.
3186 2013-03-27 Richard Biener <rguenther@suse.de>
3188 PR tree-optimization/56716
3189 * tree-ssa-structalias.c (perform_var_substitution): Adjust
3190 dumping for ref nodes.
3192 2013-03-27 Martin Jambor <mjambor@suse.cz>
3194 PR tree-optimization/55334
3195 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
3196 restricted pointers to arrays.
3198 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3200 * Makefile.in (.SUFFIXES): Add .cc.
3201 (.c.o): Apply same recipe for implicit rule .cc.o.
3203 2013-03-27 Richard Biener <rguenther@suse.de>
3205 PR tree-optimization/37021
3206 * tree-vect-data-refs.c (vect_check_strided_load): Allow
3207 REALPART/IMAGPART_EXPRs around the supported refs.
3208 * tree-ssa-structalias.c (find_func_aliases): Assume that
3209 floating-point values are not used to transfer pointers.
3211 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3213 * target.def (TARGET_HAS_IFUNC_P): New target hook.
3214 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
3215 * doc/tm.texi: Regenerate.
3216 * targhooks.h (default_has_ifunc_p): New.
3217 * targhooks.c (default_has_ifunc_p): Ditto.
3218 * config/linux-protos.h: New file.
3219 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
3220 this hook for linux which disables support of indirect functions in
3222 * config/linux-android.c: New file.
3223 * config/t-linux-android.c: Ditto.
3224 * config.gcc: Added new object file linux-android.o.
3225 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
3226 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
3227 * varasm.c (do_assemble_alias): Likewise.
3228 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
3229 doesn't support indirect functions.
3230 * configure: Regenerate.
3232 2013-03-27 Bin Cheng <bin.cheng@arm.com>
3235 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
3236 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
3239 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3241 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
3243 2013-03-27 Terry Guo <terry.guo@arm.com>
3245 * config/arm/arm-cores.def: Added core cortex-r7.
3246 * config/arm/arm-tune.md: Regenerated.
3247 * config/arm/arm-tables.opt: Regenerated.
3248 * doc/invoke.texi: Added entry for core cortex-r7.
3250 2013-03-27 Walter Lee <walt@tilera.com>
3252 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3253 double-decrement of next_scratch_regno.
3255 2013-03-27 Walter Lee <walt@tilera.com>
3257 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3259 (insn_v1mulus): Ditto.
3260 (insn_v2muls): Ditto.
3262 2013-03-27 Walter Lee <walt@tilera.com>
3264 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
3265 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
3267 2013-03-27 Walter Lee <walt@tilera.com>
3269 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
3270 (*sibcall_value): Ditto.
3272 2013-03-27 Walter Lee <walt@tilera.com>
3274 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
3275 (insn_mnz_v8qi): ... this ...
3276 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
3278 (insn_v<n>mnz): Replaced by ...
3279 (insn_v1mnz): ... this ...
3280 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
3282 (insn_mz_<mode>): Replaced by ...
3283 (insn_mz_v8qi): ... this ...
3284 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
3286 (insn_v<n>mz): Replaced by ...
3287 (insn_v1mz): ... this ...
3288 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
3291 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
3293 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
3295 2013-03-26 Roland McGrath <mcgrathr@google.com>
3297 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
3298 than fprintf with a non-constant, non-format string.
3300 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3302 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
3303 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
3304 operand 0 predicate.
3305 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
3306 attribute. Use general_x64nomem_operand as operand 1 predicate.
3307 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
3308 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3309 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
3310 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3311 (mov<mode>_insv_1): Remove expander. Merge insn with
3312 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
3313 Use general_x64nomem_operand as operand 1 predicate.
3314 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
3315 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
3316 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3317 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
3318 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
3319 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
3320 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3321 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
3322 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
3323 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
3324 (general_x64nomem_operand): Ditto.
3326 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
3328 * config/rtems.opt: Add -pthread option.
3330 2013-03-26 Richard Biener <rguenther@suse.de>
3332 * alias.c (find_base_term): Avoid redundant and not used recursion.
3333 (base_alias_check): Get the initial base term from the caller.
3334 (true_dependence_1): Compute and pass base terms to base_alias_check.
3335 (write_dependence_p): Likewise.
3336 (may_alias_p): Likewise.
3338 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
3340 * config/aarch64/aarch64.c (aarch64_classify_address): Support
3341 PC-relative load in SI modes and above only.
3343 2013-03-26 Xinyu Qi <xyqi@marvell.com>
3345 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
3346 * config/arm/iwmmxt.md (WCGR0): Update.
3347 (WCGR1, WCGR2, WCGR3): Likewise.
3349 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3351 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
3352 Use x64 and nox64 isa attributes.
3354 2013-03-26 Richard Biener <rguenther@suse.de>
3356 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3357 alignment computations and rely on get_object_alignment_1
3358 for the !TYPE_P case.
3359 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
3361 2013-03-26 Walter Lee <walt@tilera.com>
3363 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
3364 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
3366 2013-03-25 Jeff Law <law@redhat.com>
3368 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
3369 check for INTEGRAL_TYPE_P that was missing due to checking in
3370 wrong version of prior patch.
3372 2013-03-25 Walter Lee <walt@tilera.com>
3374 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
3375 TILEGX_INSN_SHUFFLEBYTES1.
3376 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
3378 (tilegx_builtins): Ditto.
3379 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
3381 2013-03-25 Walter Lee <walt@tilera.com>
3383 * config/tilegx/tilegx.md (floatsisf2): New pattern.
3384 (floatunssisf2): New pattern.
3385 (floatsidf2): New pattern.
3386 (floatunssidf2): New pattern.
3388 2013-03-25 Walter Lee <walt@tilera.com>
3390 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
3391 tests for constraint J, K, N, P.
3393 2013-03-25 Walter Lee <walt@tilera.com>
3395 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
3396 Use indirect/pcrel encoding.
3397 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
3400 2013-03-25 Steve Ellcey <sellcey@mips.com>
3402 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
3403 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
3404 * config/mips/mips.c (mips_option_override): Set IMADD default.
3405 * config/mips/mips.h (PTF_AVOID_IMADD): New.
3406 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
3407 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
3408 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
3409 * doc/invoke.texi (-mimadd/-mno-imadd): New.
3411 2013-03-25 Jeff Law <law@redhat.com>
3413 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
3414 slightly to avoid creating and folding useless trees. Simplify
3415 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
3417 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
3419 * config/i386/i386.md (*zero_extendsidi2): Merge with
3420 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
3421 * config/i386/predicates.md (x86_64_zext_operand): Rename from
3422 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
3423 targets. Clarify comment.
3425 2013-03-25 Martin Jambor <mjambor@suse.cz>
3427 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
3428 pass-through jump functions differently.
3429 (ipa_read_jump_function): Likewise. Also use setter functions to set
3432 2013-03-25 Martin Jambor <mjambor@suse.cz>
3434 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
3435 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
3437 (ipa_get_indirect_edge_target): New function.
3438 (devirtualization_time_bonus): New parameter known_aggs, pass it to
3439 ipa_get_indirect_edge_target. Update all callers.
3440 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
3441 ipa_get_indirect_edge_target_1 instead of calling
3442 ipa_get_indirect_edge_target.
3443 (create_specialized_node): Pass aggvlas to
3444 ipcp_discover_new_direct_edges.
3446 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3448 * config/arm/arm.md (f_sels, f_seld): New types.
3449 (*cmov<mode>): New pattern.
3450 * config/arm/predicates.md (arm_vsel_comparison_operator): New
3453 2013-03-25 Kai Tietz <ktietz@redhat.com>
3455 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
3456 POSIX-printf for mingw-hosted builds.
3458 2013-03-25 Richard Biener <rguenther@suse.de>
3461 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
3462 must-not-throw stmt location.
3464 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3466 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
3467 Emit load-acquire versions when acq is true.
3468 (arm_emit_store_exclusive): Add rel parameter.
3469 Emit store-release versions when rel is true.
3470 (arm_split_compare_and_swap): Use acquire-release instructions
3472 of barriers when appropriate.
3473 (arm_split_atomic_op): Likewise.
3474 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
3475 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
3476 (VUNSPEC_SLX): Likewise.
3477 (VUNSPEC_LDA): Likewise.
3478 (VUNSPEC_STL): Likewise.
3479 * config/arm/sync.md (atomic_load<mode>): New pattern.
3480 (atomic_store<mode>): Likewise.
3481 (arm_load_acquire_exclusive<mode>): Likewise.
3482 (arm_load_acquire_exclusivesi): Likewise.
3483 (arm_load_acquire_exclusivedi): Likewise.
3484 (arm_store_release_exclusive<mode>): Likewise.
3486 2013-03-25 Catherine Moore <clm@codesourcery.com>
3488 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
3489 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
3490 * config/mip/predicates.md (lwsp_swsp_operand,
3491 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
3492 sb16_operand, db4_operand, db7_operand, ib3_operand,
3493 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
3494 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
3495 andi16_operand): New predicates.
3496 * config/mips/mips.md (compression): New attribute.
3497 (enabled): New attribute.
3498 (length): Consider compression in computing length.
3499 (shift_compression): New code attribute.
3500 (*add<mode>3): New operands. Record compression.
3501 (sub<mode>3): Likewise.
3502 (one_cmpl<mode>2): Likewise.
3503 (*and<mode>3): Likewise.
3504 (*ior<mode>3): Likewise.
3505 (unnamed pattern for xor): Likewise.
3506 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
3507 (*<optab><mode>3): Likewise.
3508 (*mov<mode>_internal: Likewise.
3509 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
3510 (mips_unsigned_immediate_p): New.
3511 (umips_lwsp_swsp_address_p): New.
3512 (m16_based_address_p): New.
3513 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
3514 (mips_unsigned_immediate_p): New prototype.
3515 (lwsp_swsp_address_p): New prototype.
3516 (m16_based_address_p): New prototype.
3517 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
3518 (mips_signed_immediate_p): New function.
3519 (m16_based_address_p): New function.
3520 (lwsp_swsp_address_p): New function.
3521 (mips_print_operand_punctuation): Recognize short delay slot insns
3522 for microMIPS.add<mode>3"
3524 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3527 * config/arm/iterators.md (v_cmp_result): New mode attribute.
3528 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
3530 2013-03-25 Richard Biener <rguenther@suse.de>
3532 PR tree-optimization/56689
3533 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
3536 2013-03-25 Richard Biener <rguenther@suse.de>
3538 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
3540 (memory_references): Likewise.
3541 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
3542 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
3543 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
3544 (gather_mem_refs_in_loops): Fold into ...
3545 (analyze_memory_references): ... this. Move initialization
3546 to tree_ssa_lim_initialize.
3547 (fill_always_executed_in): Rename to ...
3548 (fill_always_executed_in_1): ... this.
3549 (fill_always_executed_in): Move contains_call computation to
3550 this new function from ...
3551 (tree_ssa_lim_initialize): ... here.
3552 (tree_ssa_lim): Call fill_always_executed_in.
3554 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3556 * postreload.c (reload_combine): Fix code detecting returns.
3558 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3560 * function.c (emit_use_return_register_into_block): On cc0 targets,
3561 do not emit the sequence between cc0 setter and user.
3563 2013-03-25 Kai Tietz <ktietz@redhat.com>
3565 * config/i386/predicates.md (local_symbolic_operand): Interpret
3566 dll-imported symbols as none-local.
3568 2013-03-25 Richard Biener <rguenther@suse.de>
3570 * tree-ssa-loop-im.c (struct depend): Remove.
3571 (struct lim_aux_data): Make depends a vec of gimples.
3572 (free_lim_aux_data): Adjust.
3573 (add_dependency): Likewise.
3574 (set_level): Likewise.
3576 2013-03-25 Richard Biener <rguenther@suse.de>
3579 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
3580 the pointer returned by calls with ECF_MALLOC set.
3582 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3584 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
3586 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3588 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
3589 using MMXMODE mode iterator.
3590 (*move<mode>_internal): Merge with *movv2sf_internal and
3591 *movv2sf_internal_rex64 using MMXMODE mode iterator.
3593 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3595 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
3596 (record_last_mem_set_info): Likewise.
3598 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
3599 of XNEWVEC followed by memset.
3600 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
3602 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3604 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
3605 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
3606 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
3607 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
3608 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
3609 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
3610 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
3611 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
3612 BARRIER_P instead of GET_CODE.
3614 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3616 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
3617 inaccuracy in the probing code.
3619 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
3620 (ctrapdi4): Likewise.
3622 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3624 * calls.c (expand_call): Add missing guard to code handling return
3625 of non-BLKmode structures in MSB.
3626 * function.c (expand_function_end): Likewise.
3628 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3630 * combine.c (try_combine): Adjust comment. Do not add the set of
3631 insn #0 if the destination indirectly is set or dies in insn #2.
3632 Tidy up code to distribute a new note.
3634 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3636 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
3637 also for alternatives 16 and 17.
3639 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3641 * config/i386/sse.md (*mov<mode>_internal): Merge with
3642 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
3643 Emit insn template depending on type attribute. Use
3644 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3645 movd instead of movq mnemonic for interunit moves. Rewrite mode
3646 attribute calculation. Remove unit attribute calculation.
3647 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
3648 Set prefix_data16 attribute for DImode ssemov types.
3649 Use Ym instead of y for SSE-MMX conversion alternatives.
3650 Reorder operand constraints.
3652 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
3654 * df.h (df_insn_delete): Adjust prototype.
3655 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
3656 and let it decide whether mark the basic block dirty.
3657 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
3658 * df-scan.c (df_insn_info_delete): New helper function, split
3659 off from df_insn_delete.
3660 (df_scan_free_bb_info): Use it.
3661 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
3663 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
3664 that the insn is actually an insn and it has a non-NULL basic block.
3665 Do not mark basic block dirty if only deleting a DEBUG_INSN.
3667 2013-03-22 Richard Biener <rguenther@suse.de>
3669 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
3671 (mem_ref_alloc): Do not allocate them.
3672 (refs_independent_p): Do not query or maintain a cache.
3674 2013-03-22 Richard Biener <rguenther@suse.de>
3676 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
3677 (gather_mem_refs_in_loops): Do not compute it.
3678 (analyze_memory_references): Do not allocate it.
3679 (tree_ssa_lim_finalize): Do not free it.
3680 (for_all_locs_in_loop): Do not query all_refs_in_loop.
3682 2013-03-22 Richard Biener <rguenther@suse.de>
3684 * is-a.h (as_a): Use gcc_checking_assert.
3686 2013-03-22 Ian Bolton <ian.bolton@arm.com>
3688 * config/aarch64/aarch64.c (aarch64_print_operand): New
3689 format specifier for printing a constant in hex.
3690 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
3691 format specifier for printing second operand.
3693 2013-03-22 Richard Biener <rguenther@suse.de>
3695 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
3697 (gather_mem_refs_in_loops): Perform store accumulation here.
3698 (create_vop_ref_mapping_loop): Remove.
3699 (create_vop_ref_mapping): Likewise.
3700 (analyze_memory_references): Initialize refs_stored_in_loop.
3701 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
3702 (record_indep_loop): Remove.
3703 (record_dep_loop): New function.
3704 (ref_indep_loop_p_1): Adjust to only walk over references
3705 in the loop, not its subloops.
3706 (ref_indep_loop_p): Rename to ...
3707 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
3708 maintaining a more fine-grained cache.
3709 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
3710 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
3712 2013-03-22 Richard Biener <rguenther@suse.de>
3714 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
3715 (struct mem_ref): Make accesses_in_loop a vec of a vec of
3716 aggregate mem_ref_loc.
3717 (free_mem_ref_locs): Inline into ...
3718 (memref_free): ... this and adjust.
3719 (mem_ref_alloc): Adjust.
3720 (mem_ref_locs_alloc): Remove.
3721 (record_mem_ref_loc): Adjust.
3722 (get_all_locs_in_loop): Rewrite into ...
3723 (for_all_locs_in_loop): ... this iterator.
3724 (rewrite_mem_ref_loc): New functor.
3725 (rewrite_mem_refs): Use for_all_locs_in_loop.
3726 (sm_set_flag_if_changed): New functor.
3727 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
3728 (ref_always_accessed): New functor.
3729 (ref_always_accessed_p): Use for_all_locs_in_loop.
3731 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3733 * tree-pass.h (PROP_gimple_lvec): New.
3734 * passes.c (dump_properties): Handle PROP_gimple_lvec.
3735 (init_optimization_passes): Move pass_lower_vector.
3736 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
3738 (pass_lower_vector): Provide PROP_gimple_lvec.
3739 (pass_lower_vector_ssa): Likewise.
3740 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
3742 2013-03-21 Mark Wielaard <mjw@redhat.com>
3744 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
3746 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
3748 * config/i386/i386.md (*movdi_internal): Disparage slightly
3749 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
3750 conversion alternatives.
3752 2013-03-21 Jakub Jelinek <jakub@redhat.com>
3755 * diagnostic.def (DK_WERROR): New kind.
3756 * diagnostic.h (werrorcount): Define.
3757 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
3758 promoted to DK_ERROR, increment DK_WERROR counter instead of
3760 * toplev.c (toplev_main): Call print_ignored_options even if
3761 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
3762 even if just werrorcount is non-zero.
3765 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
3767 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
3768 (string_cst_pool_decl): New function.
3769 (optimize_one_addr_into_implicit_ptr): New function.
3770 (resolve_addr_in_expr): Optimize DWARF location expression
3771 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
3772 which doesn't live in memory, but has DW_AT_location or
3773 DW_AT_const_value, or refers to a string literal, into
3774 DW_OP_GNU_implicit_pointer.
3775 (optimize_location_into_implicit_ptr): New function.
3776 (resolve_addr): If removing DW_AT_location of a variable because
3777 it was DW_OP_addr of address of the variable, but the variable doesn't
3778 live in memory, try to emit const value attribute for the initializer.
3780 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3782 * tree.h (VECTOR_TYPE_P): New macro.
3783 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
3785 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
3786 VEC_COND_EXPR cannot be lvalues.
3787 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
3789 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3791 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
3792 Restrict the transformation to equal modes.
3794 2013-03-21 Richard Biener <rguenther@suse.de>
3796 PR tree-optimization/39326
3797 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
3798 (MEM_ANALYZABLE): Adjust.
3799 (record_mem_ref_loc): Move bitmap ops ...
3800 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
3801 unanalyzable refs, do not record locations for it.
3802 (analyze_memory_references): Allocate ref zero as shared
3804 (refs_independent_p): Do not test for unanalyzed mems here.
3805 (ref_indep_loop_p_1): Special-case disambiguation against
3807 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
3809 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
3811 * config/arm/arm-protos.h (tune_params): Add
3812 prefer_neon_for_64bits field.
3813 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
3814 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
3815 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3816 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3817 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
3818 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3819 (arm_option_override): Handle -mneon-for-64bits new option.
3820 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
3821 (prefer_neon_for_64bits): Declare new variable.
3822 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
3823 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
3824 (arch_enabled): Handle new arch types. Remove support for onlya8
3826 (one_cmpldi2): Use new arch names.
3827 (zero_extend<mode>di2, extend<mode>di2): Ditto.
3828 * config/arm/arm.opt (mneon-for-64bits): Add option.
3829 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
3830 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
3831 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
3833 * doc/invoke.texi (-mneon-for-64bits): Document.
3835 2013-03-21 Richard Biener <rguenther@suse.de>
3837 PR tree-optimization/39326
3838 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
3839 (sort_bbs_in_loop_postorder_cmp): New function.
3840 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
3842 2013-03-21 Richard Biener <rguenther@suse.de>
3844 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
3845 (vect_insert_into_interleaving_chain): Likewise.
3846 (vect_drs_dependent_in_basic_block): Inline ...
3847 (vect_slp_analyze_data_ref_dependence): ... here. New function,
3849 (vect_analyze_data_ref_dependence): ... here. Simplify.
3850 (vect_check_interleaving): Simplify.
3851 (vect_analyze_data_ref_dependences): Likewise. Split out ...
3852 (vect_slp_analyze_data_ref_dependences): ... this new function.
3853 (dr_group_sort_cmp): New function.
3854 (vect_analyze_data_ref_accesses): Compute data-reference groups
3855 here instead of in vect_analyze_data_ref_dependence. Use
3856 a more efficient algorithm.
3857 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
3858 vect_slp_analyze_data_ref_dependences. Call
3859 vect_analyze_data_ref_accesses earlier.
3860 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3861 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
3862 (vect_slp_analyze_data_ref_dependences): New prototype.
3864 2013-03-21 Richard Biener <rguenther@suse.de>
3866 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
3867 ref is stored in the loop.
3868 (find_refs_for_sm): Walk only over all stores.
3869 (store_motion_loop): Allocate from lim_bitmap_obstack.
3870 (store_motion): Likewise.
3872 2013-03-21 Richard Biener <rguenther@suse.de>
3874 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
3875 Update virtual SSA form.
3877 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3879 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
3880 * configure: Regenerate.
3881 * config.in: Regenerate.
3882 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
3883 if !HAVE_LD_EH_FRAME_CIEV3.
3885 2013-03-21 Richard Biener <rguenther@suse.de>
3887 * tree-cfg.c (verify_expr_no_block): New function.
3888 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
3889 nor DECL_VALUE_EXPR have locations with associated blocks.
3890 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
3891 (clear_unused_block_pointer): Remove code dealing with
3892 blocks in DECL_DEBUG_EXPR locations.
3894 2013-03-21 Richard Biener <rguenther@suse.de>
3896 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
3897 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
3898 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
3899 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
3900 instead of DECL_DEBUG_EXPR_IS_FROM.
3901 * gimplify.c (gimplify_modify_expr): Likewise.
3902 * tree-cfg.c (verify_expr_location_1): Likewise.
3903 * tree-complex.c (create_one_component_var): Likewise.
3904 * tree-sra.c (create_access_replacement): Likewise.
3905 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
3906 (clear_unused_block_pointer): Likewise.
3907 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3908 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3909 * var-tracking.c (var_debug_decl): Likewise.
3910 (track_expr_p): Likewise.
3911 * tree-inline.c (add_local_variables): Likewise. Set
3912 DECL_HAS_DEBUG_EXPR_P after copying it.
3913 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
3914 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
3916 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
3919 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
3920 * configure: Regenerate.
3921 * config.in: Regenerate.
3922 * config/i386/i386.md (*movdf_internal): Use
3923 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3924 movd instead of movq mnemonic for interunit moves.
3925 (*movdi_internal): Ditto.
3927 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3929 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
3930 (abd<mode>_3): New pattern.
3931 (aba<mode>_3): New pattern.
3932 (fabd<mode>_3): New pattern.
3934 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3936 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
3937 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
3938 occurrence of REGISTER_PREFIX as its empty string.
3940 2013-03-20 Jeff Law <law@redhat.com>
3942 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
3943 addititional equivalences for equality comparisons between an SSA_NAME
3944 and a constant where the SSA_NAME was set from a widening conversion.
3946 2013-03-20 Walter Lee <walt@tilera.com>
3948 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
3950 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
3952 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
3953 depending on type attribute.
3954 (*movti_internal): Ditto.
3955 (*movtf_internal): Ditto.
3956 (*movxf_internal): Ditto.
3957 (*movdf_internal): Ditto.
3958 (*movsf_internal): Ditto.
3960 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
3962 * config/i386/i386.md (*movti_internal): Set prefix attribute to
3963 maybe_vex for sselog1 and ssemov types.
3964 (*movdi_internal): Reorder operand constraints.
3965 (*movsi_internal): Ditto. Set prefix attribute to
3966 maybe_vex for sselog1 and ssemov types.
3967 (*movtf_internal): Set prefix attribute to maybe_vex
3968 for sselog1 and ssemov types.
3969 (*movdf_internal): Ditto. Set prefix_data16 attribute for
3970 DImode ssemov types. Reorder operand constraints.
3971 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
3972 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
3973 attribute for SImode ssemov types. Reorder operand constraints.
3975 2013-03-20 Martin Jambor <mjambor@suse.cz>
3977 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
3978 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
3980 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
3982 * config/rs6000/predicates.md (indexed_address, update_address_mem
3983 update_indexed_address_mem): New predicates.
3984 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
3985 attribute for load/store instructions.
3986 * config/rs6000/dfp.md (movsd_store): Likewise.
3987 (movsd_load): Likewise.
3988 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
3989 (unnamed HI->DI extend define_insn): Likewise.
3990 (unnamed SI->DI extend define_insn): Likewise.
3991 (unnamed QI->SI extend define_insn): Likewise.
3992 (unnamed QI->HI extend define_insn): Likewise.
3993 (unnamed HI->SI extend define_insn): Likewise.
3994 (unnamed HI->SI extend define_insn): Likewise.
3995 (extendsfdf2_fpr): Likewise.
3996 (movsi_internal1): Likewise.
3997 (movsi_internal1_single): Likewise.
3998 (movhi_internal): Likewise.
3999 (movqi_internal): Likewise.
4000 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
4001 attribute for load/store instructions.
4002 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
4004 (mov<mode>_softfloat): Likewise.
4005 (mov<mode>_hardfloat32): Likewise.
4006 (mov<mode>_hardfloat64): Likewise.
4007 (mov<mode>_softfloat64): Likewise.
4008 (movdi_internal32): Likewise.
4009 (movdi_internal64): Likewise.
4010 (probe_stack_<mode>): Likewise.
4012 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4014 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
4015 floating point, and decimal floating point to reload iterator.
4017 * config/rs6000/constraints.md (wl constraint): New constraints to
4018 return FLOAT_REGS if certain options are used to reduce the number
4019 of separate patterns that exist in the file.
4020 (wx constraint): Likewise.
4021 (wz constraint): Likewise.
4023 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4024 -mdebug=reg, print wg, wl, wx, and wz constraints.
4025 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4026 Initialize the reload functions for 64-bit binary/decimal floating
4028 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4029 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4030 create the buffer on the stack to overcome not having a 32-bit
4032 (rs6000_emit_move): Likewise.
4033 (rs6000_secondary_memory_needed_rtx): Likewise.
4034 (rs6000_alloc_sdmode_stack_slot): Likewise.
4035 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4036 via xxlxor, just like DFmode 0.0.
4038 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
4039 define as 1 if we are running on a power7 or newer.
4040 (enum r6000_reg_class_enum): Add new constraints.
4042 * config/rs6000/dfp.md (movsd): Delete, combine with binary
4043 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4044 with other moves by using conditional constraits (wg). Use LFIWZX
4045 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
4046 (movsd splitter): Likewise.
4047 (movsd_hardfloat): Likewise.
4048 (movsd_softfloat): Likewise.
4050 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
4051 binary and decimal floating point moves.
4052 (fmove_ok): New attributes to combine binary and decimal floating
4053 point moves, and to combine power6x (mfpgpr) moves along normal
4055 (real_value_to_target): Likewise.
4062 (movsf): Combine binary and decimal floating point moves. Combine
4063 power6x (mfpgpr) moves with other moves by using conditional
4064 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
4065 (mov<mode> for SFmode/SDmode); Likewise.
4066 (SFmode/SDmode splitters): Likewise.
4067 (movsf_hardfloat): Likewise.
4068 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
4069 (movsf_softfloat): Likewise.
4070 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
4072 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
4073 wx and wz constraints.
4075 * config/rs6000/constraints.md (wg constraint): New constraint to
4076 return FLOAT_REGS if -mmfpgpr (power6x) was used.
4078 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
4081 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4082 -mdebug=reg, print wg, wl, wx, and wz constraints.
4083 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4084 Initialize the reload functions for 64-bit binary/decimal floating
4086 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4087 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4088 create the buffer on the stack to overcome not having a 32-bit
4090 (rs6000_emit_move): Likewise.
4091 (rs6000_secondary_memory_needed_rtx): Likewise.
4092 (rs6000_alloc_sdmode_stack_slot): Likewise.
4093 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4094 via xxlxor, just like DFmode 0.0.
4096 * config/rs6000/dfp.md (movdd): Delete, combine with binary
4097 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4098 with other moves by using conditional constraits (wg). Use LFIWZX
4099 and STFIWX for loading SDmode on power7.
4100 (movdd splitters): Likewise.
4101 (movdd_hardfloat32): Likewise.
4102 (movdd_softfloat32): Likewise.
4103 (movdd_hardfloat64_mfpgpr): Likewise.
4104 (movdd_hardfloat64): Likewise.
4105 (movdd_softfloat64): Likewise.
4107 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
4108 64-bit binary and decimal floating point moves.
4109 (FMOVE64X): Likewise.
4110 (movdf): Combine 64-bit binary and decimal floating point moves.
4111 Combine power6x (mfpgpr) moves with other moves by using
4112 conditional constraits (wg).
4113 (mov<mode> for DFmode/DDmode): Likewise.
4114 (DFmode/DDmode splitters): Likewise.
4115 (movdf_hardfloat32): Likewise.
4116 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
4117 (movdf_softfloat32): Likewise.
4118 (movdf_hardfloat64_mfpgpr): Likewise.
4119 (movdf_hardfloat64): Likewise.
4120 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
4121 (movdf_softfloat64): Likewise.
4122 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
4123 (reload_<mode>_load): Move to later in the file so they aren't in
4124 the middle of the floating point move insns.
4125 (reload_<mode>_store): Likewise.
4127 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
4130 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
4131 constraint if -mdebug=reg.
4132 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
4133 Enable using dd reload support if needed.
4135 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
4136 binary and decimal floating point moves in rs6000.md.
4137 (movtd_internal): Likewise.
4139 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
4140 decimal floating point moves.
4142 (movtf_internal): Likewise.
4143 (mov<mode>_internal, TDmode/TFmode): Likewise.
4144 (movtf_softfloat): Likewise.
4145 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
4147 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
4148 movdi_internal64, using wg constraint for move direct operations.
4149 (movdi_internal64): Likewise.
4151 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
4152 MODES_TIEABLE_P for selected modes. Print the numerical value of
4153 the various virtual registers. Use GPR/FPR first/last values,
4154 instead of hard coding the register numbers. Print which modes
4155 have reload functions registered.
4156 (rs6000_option_override_internal): If -mdebug=reg, trace the options
4157 settings before/after setting cpu, target and subtarget settings.
4158 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
4159 and for secondary reload failures in rs6000_secondary_reload_inner.
4160 (rs6000_secondary_reload_fail): Likewise.
4161 (rs6000_secondary_reload_inner): Likewise.
4163 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
4164 macros for first/last GPR and FPR registers.
4165 (LAST_GPR_REGNO): Likewise.
4166 (FIRST_FPR_REGNO): Likewise.
4167 (LAST_FPR_REGNO): Likewise.
4169 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
4170 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
4171 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
4172 (vcond<mode><mode>): Likewise.
4173 (vcondu<mode><mode>): Likewise.
4174 (vector_gtu<mode>): Likewise.
4175 (vector_gte<mode>): Likewise.
4176 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
4177 to prevent the compiler from converting DImode operations to TImode.
4178 (ior<mode>3): Likewise.
4179 (and<mode>3): Likewise.
4180 (one_cmpl<mode>2): Likewise.
4181 (nor<mode>3): Likewise.
4182 (andc<mode>3): Likewise.
4184 * config/rs6000/constraints.md (wt constraint): New constraint
4185 that returns VSX_REGS if TImode is allowed in VSX registers.
4187 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
4190 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
4191 similar to TImode, but it is restricted to being in the GPRs.
4193 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
4194 TImode to occupy a single VSX register.
4196 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
4197 -mvsx-timode for power7/power8.
4198 (power7 cpu): Likewise.
4199 (power8 cpu): Likewise.
4201 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
4202 sure that TFmode/TDmode take up two registers if they are ever
4203 allowed in the upper VSX registers.
4204 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
4206 (rs6000_init_hard_regno_mode_ok): Likewise.
4207 (rs6000_debug_reg_global): Add debugging for PTImode and wt
4208 constraint. Print if LRA is turned on.
4209 (rs6000_option_override_internal): Give an error if -mvsx-timode
4210 and VSX is not enabled.
4211 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
4212 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
4213 to reg+offset addressing. Use PTImode when checking offset
4214 addresses for validity.
4215 (reg_offset_addressing_ok_p): Likewise.
4216 (rs6000_legitimate_offset_address_p): Likewise.
4217 (rs6000_legitimize_address): Likewise.
4218 (rs6000_legitimize_reload_address): Likewise.
4219 (rs6000_legitimate_address_p): Likewise.
4220 (rs6000_eliminate_indexed_memrefs): Likewise.
4221 (rs6000_emit_move): Likewise.
4222 (rs6000_secondary_reload): Likewise.
4223 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
4224 reloads to fpr registers to continue to use reg+offset addressing,
4225 but 64-bit reloads to altivec registers need reg+reg addressing.
4226 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
4227 it. Treat LO_SUM like a PLUS operation.
4228 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
4229 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
4230 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
4231 registers to share a register with a smaller sized type, since VSX
4232 puts scalars in the upper 64-bits.
4233 (print_operand): Add support for PTImode.
4234 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
4235 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
4236 registers, but don't have arithmetic support.
4237 (rs6000_memory_move_cost): Add test for VSX.
4238 (rs6000_opt_masks): Add -mvsx-timode.
4240 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
4243 (VSr): Use wt constraint for TImode.
4244 (VSv): Drop TImode support.
4245 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
4246 (vsx_movti_64bit): Likewise.
4247 (vsx_movti_32bit): Likewise.
4248 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
4249 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
4250 one '?' on the appropriate output constraint. Do not allow TImode
4251 logical operations on 32-bit systems.
4252 (vsx_ior<mode>3): Likewise.
4253 (vsx_xor<mode>3): Likewise.
4254 (vsx_one_cmpl<mode>2): Likewise.
4255 (vsx_nor<mode>3): Likewise.
4256 (vsx_andc<mode>3): Likewise.
4257 (vsx_concat_<mode>): Likewise.
4258 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
4260 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
4261 OPTION_MASK_VSX_TIMODE.
4262 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
4263 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
4265 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
4266 (TI2 iterator): New iterator for TImode, PTImode.
4267 (wd mode attribute): Add values for vector types.
4268 (movti_string): Replace TI move operations with operations for TImode
4269 and PTImode. Add support for TImode being allowed in VSX registers.
4270 (mov<mode>_string, TImode/PTImode): Likewise.
4271 (movti_ppc64): Likewise.
4272 (mov<mode>_ppc64, TImode/PTImode): Likewise.
4273 (TI mode splitters): Likewise.
4275 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
4278 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
4280 PR tree-optimization/56355
4281 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
4282 Also handle integers with undefined overflow.
4284 2013-03-20 Catherine Moore <clm@codesourcery.com>
4285 Maciej W. Rozycki <macro@codesourcery.com>
4286 Tom de Vries <tom@codesourcery.com>
4287 Nathan Sidwell <nathan@codesourcery.com>
4288 Iain Sandoe <iain@codesourcery.com>
4289 Nathan Froyd <froydnj@codesourcery.com>
4290 Chao-ying Fu <fu@mips.com>
4292 * doc/extend.texi: (micromips, nomicromips, nocompression):
4293 Document new function attributes.
4294 * doc/invoke.texi (minterlink-compressed, mmicromips,
4295 m14k, m14ke, m14kec): Document new options.
4296 (minterlink-mips16): Update documentation.
4297 * doc/md.texi (ZC, ZD): Document new constraints.
4298 * configure.ac (gcc_cv_as_micromips): Check if linker
4299 supports the .set micromips directive.
4300 * configure: Regenerate.
4301 * config.in: Regenerate.
4302 * config/mips/mips-tables.opt: Regenerate.
4303 * config/mips/micromips.md: New file.
4304 * constraints.md (ZC, ZD): New constraints.
4305 * config/mips/predicates.md (movep_src_register): New predicate.
4306 (movep_src_operand): New predicate.
4307 (non_volatile_mem_operand): New predicate.
4308 * config/mips/mips.md (multimem): New type.
4309 (length): Differentiate between 17-bit and 18-bit branch offsets.
4310 (MOVEP1, MOVEP2): New mode iterator.
4311 (mov_<load>l): Use ZC constraint.
4312 (mov_<load>r): Likewise.
4313 (mov_<store>l): Likewise.
4314 (mov_<store>r): Likewise.
4315 (*branch_equality<mode>_inverted): Add microMIPS support.
4316 (*branch_equality<mode>): Likewise.
4317 (*jump_absolute): Likewise.
4318 (indirect_jump_<mode>): Likewise.
4319 (tablejump_<mode>): Likewise.
4320 (<optab>_internal): Likewise.
4321 (sibcall_internal): Likewise.
4322 (sibcall_value_internal): Likewise.
4323 (prefetch): Use constraint ZD.
4324 * config/mips/mips.opt (minterlink-compressed): New option.
4325 (minterlink-mips16): Now an alias for minterlink-compressed.
4326 (mmicromips): New option.
4327 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4328 (compare_and_swap_12): Likewise.
4329 (sync_add<mode>): Likewise.
4330 (sync_<optab>_12): Likewise.
4331 (sync_old_<optab>_12): Likewise.
4332 (sync_new_<optab>_12): Likewise.
4333 (sync_nand_12): Likewise.
4334 (sync_old_nand_12): Likewise.
4335 (sync_new_nand_12): Likewise.
4336 (sync_sub<mode>): Likewise.
4337 (sync_old_add<mode>): Likewise.
4338 (sync_old_sub<mode>): Likewise.
4339 (sync_new_add<mode>): Likewise.
4340 (sync_new_sub<mode>): Likewise.
4341 (sync_<optab><mode>): Likewise.
4342 (sync_old_<optab><mode>): Likewise.
4343 (sync_new_<optab><mode>): Likewise.
4344 (sync_nand<mode>): Likewise.
4345 (sync_old_nand<mode>): Likewise.
4346 (sync_new_nand<mode>): Likewise.
4347 (sync_lock_test_and_set<mode>): Likewise.
4348 (test_and_set_12): Likewise.
4349 (atomic_compare_and_swap<mode>): Likewise.
4350 (atomic_exchange<mode>_llsc): Likewise.
4351 (atomic_fetch_add<mode>_llsc): Likewise.
4352 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4353 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4354 (umips_save_restore_pattern_p): Likewise.
4355 (umips_load_store_pair_p): Likewise.
4356 (umips_output_load_store_pair): Likewise.
4357 (umips_movep_target_p): Likewise.
4358 (umips_12bit_offset_address_p): Likewise.
4359 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4360 (mips_base_mips16): Rename this...
4361 (mips_base_compression_flags): ...to this. Update all uses.
4362 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4363 (mips_mips16_decl_p): Delete.
4364 (mips_nomips16_decl_p): Delete.
4365 (mips_get_compress_on_flags): New function.
4366 (mips_get_compress_off_flags): New function.
4367 (mips_get_compress_mode): New function.
4368 (mips_get_compress_on_name): New function.
4369 (mips_get_compress_off_name): New function.
4370 (mips_insert_attributes): Support multiple compression types.
4371 (mips_merge_decl_attributes): Likewise.
4372 (umips_12bit_offset_address_p): New function.
4373 (mips_start_function_definition): Emit .set micromips directive.
4374 (mips_call_may_need_jalx_p): New function.
4375 (mips_function_ok_for_sibcall): Add microMIPS support.
4376 (mips_print_operand_punctuation): Support short delay slots and
4378 (umips_swm_mask, umips_swm_encoding): New.
4379 (umips_build_save_restore): New function.
4380 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4381 (was_mips16_p): Remove.
4382 (old_compression_mode): New.
4383 (mips_set_compression_mode): New function.
4384 (mips_set_current_function): Add microMIPS support.
4385 (mips_option_override): Likewise.
4386 (umips_save_restore_pattern_p): New function.
4387 (umips_output_save_restore): New function.
4388 (umips_load_store_pair_p_1): New function.
4389 (umips_load_store_pair_p): New function.
4390 (umips_output_load_store_pair_1): New function.
4391 (umips_output_load_store_pair): New function.
4392 (umips_movep_target_p) New function.
4393 (mips_prepare_pch_save): Add microMIPS support.
4394 * config/mips/mips.h (TARGET_COMPRESSION): New.
4395 (TARGET_CPU_CPP_BUILTINS): Update macro
4396 to use new compression flags and to support microMIPS.
4397 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4398 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4399 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4400 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4401 (ASM_SPEC): Support mmicromips and mno-micromips.
4402 (M16STORE_REG_P): New macro.
4403 (MIPS_CALL): Support TARGET_MICROMIPS.
4404 (MICROMIPS_J): New macro.
4405 (mips_base_mips16): Rename this...
4406 (mips_base_compression_flags): ...to this.
4407 (UMIPS_12BIT_OFFSET_P): New macro.
4408 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4409 (MULTILIB_DIRNAMES): Likewise.
4410 2013-03-20 Richard Biener <rguenther@suse.de>
4412 PR tree-optimization/56661
4413 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
4414 the result does not have to be distinct.
4416 2013-03-20 Richard Biener <rguenther@suse.de>
4418 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
4421 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4422 Steven Bosscher <steven@gcc.gnu.org>
4424 PR rtl-optimization/56605
4425 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
4427 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4430 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
4431 that require movd instead of movq.
4433 2013-03-20 Richard Biener <rguenther@suse.de>
4435 * tree-ssa-structalias.c (struct variable_info): Add pointer
4436 to the first field of an aggregate with sub-vars. Make
4437 this and the pointer to the next subfield its ID.
4438 (vi_next): New function.
4439 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
4440 storedanything_id, integer_id): Increment by one.
4441 (new_var_info, get_call_vi, lookup_call_clobber_vi,
4442 get_call_clobber_vi): Adjust.
4443 (solution_set_expand): Simplify and speedup.
4444 (solution_set_add): Inline into ...
4445 (set_union_with_increment): ... this. Adjust accordingly.
4446 (do_sd_constraint): Likewise.
4447 (do_ds_constraint): Likewise.
4448 (do_complex_constraint): Simplify.
4449 (build_pred_graph): Adjust.
4450 (solve_graph): Likewise. Simplify and speedup.
4451 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
4452 get_constraint_for_component_ref, get_constraint_for_1,
4453 first_vi_for_offset, first_or_preceding_vi_for_offset,
4454 create_function_info_for, create_variable_info_for_1,
4455 create_variable_info_for, intra_create_variable_infos): Adjust.
4456 (init_base_vars): Push NULL for ID zero.
4457 (compute_points_to_sets): Adjust.
4459 2013-03-20 Richard Biener <rguenther@suse.de>
4461 * cfgloop.c (verify_loop_structure): Streamline and avoid
4462 ICEing on corrupt loop tree.
4463 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
4466 2013-03-20 Richard Biener <rguenther@suse.de>
4468 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
4469 check whether an SSA update is needed.
4471 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
4473 * config/mips/constraints.md (T): Rename to...
4477 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
4478 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
4480 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4482 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
4483 (*subsi3_carryin_uxtw): Likewise.
4485 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4487 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
4488 (*rorsi3_insn_uxtw): Likewise.
4490 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4492 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
4493 (*extrsi5_insn_uxtw): Likewise.
4495 2013-03-19 Richard Biener <rguenther@suse.de>
4497 PR tree-optimization/56273
4498 * passes.c (init_optimization_passes): Move second VRP after DOM.
4500 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
4502 * config/i386/i386.md (*movti_internal): Merge from
4503 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
4504 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
4505 nox64 isa attributes.
4507 2013-03-18 Richard Biener <rguenther@suse.de>
4509 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
4511 (merge_node_constraints): Likewise.
4512 (build_succ_graph): Likewise.
4513 (valid_graph_edge): Inline into single caller.
4514 (unify_nodes): Likewise. Use bitmap_set_bit return value
4516 (scc_visit): Fix formatting and variable use.
4517 (do_sd_constraint): Use gcc_checking_assert.
4518 (do_ds_constraint): Likewise.
4519 (do_complex_constraint): Likewise.
4520 (condense_visit): Likewise. Cleanup.
4521 (dump_pred_graph): New function.
4522 (perform_var_substitution): Dump the pred-graph before
4523 variable substitution.
4524 (find_equivalent_node): Use gcc_checking_assert.
4525 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
4527 2013-03-18 Richard Biener <rguenther@suse.de>
4529 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4530 Remove cond_expr_stmt_list argument and do not gimplify the
4532 (vect_loop_versioning): Adjust.
4533 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4534 Cleanup to use less temporaries.
4535 (vect_create_data_ref_ptr): Cleanup.
4537 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4539 PR tree-optimization/56635
4540 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
4541 require types_compatible_p types.
4543 2013-03-18 Nick Clifton <nickc@redhat.com>
4545 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
4548 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
4549 Add missing line to comment describing function.
4551 2013-03-18 Richard Biener <rguenther@suse.de>
4553 PR tree-optimization/56210
4554 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4555 Handle string / character search functions.
4556 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4558 2013-03-18 Richard Biener <rguenther@suse.de>
4561 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
4562 and implement properly.
4563 * gimple.h (gimple_cond_single_var_p): Remove.
4565 2013-03-18 Richard Biener <rguenther@suse.de>
4567 * tree-data-ref.h (find_data_references_in_loop): Declare.
4568 * tree-data-ref.c (get_references_in_stmt): Use a stack
4569 vector pre-allocated in the callers.
4570 (find_data_references_in_stmt): Adjust.
4571 (graphite_find_data_references_in_stmt): Likewise.
4572 (create_rdg_vertices): Likewise.
4573 (find_data_references_in_loop): Export.
4574 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
4575 Compute dependences here...
4576 (vect_analyze_data_refs): ...not here. When we encounter
4577 a non-vectorizable data reference in basic-block vectorization
4578 truncate the data reference vector. Do not bother to
4579 fixup data-dependence information for gather loads.
4580 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
4581 of data references, as reported.
4583 2013-03-18 Richard Biener <rguenther@suse.de>
4585 PR tree-optimization/3713
4586 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
4587 has_constants and expr.
4588 (stmt_has_constants): Properly valueize SSA names when deciding
4589 whether the stmt has constants.
4591 2013-03-18 Richard Biener <rguenther@suse.de>
4593 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
4594 whole function when there is nothing to do.
4595 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
4596 * tree-vectorizer.c (vectorize_loops): Update virtual and
4597 loop-closed SSA once.
4598 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
4600 2013-03-18 Richard Biener <rguenther@suse.de>
4603 * domwalk.c (bb_postorder): New global static.
4604 (cmp_bb_postorder): New function.
4605 (walk_dominator_tree): Replace scheme imposing an order for
4606 visiting dominator sons by one sorting them at the time they
4607 are pushed on the stack.
4609 2013-03-18 Richard Biener <rguenther@suse.de>
4611 PR tree-optimization/39326
4612 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
4613 (struct mem_ref): Replace mem member with ao_ref typed member.
4614 (MEM_ANALYZABLE): Adjust.
4615 (memref_eq): Likewise.
4616 (mem_ref_alloc): Likewise.
4617 (gather_mem_refs_stmt): Likewise.
4618 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
4619 (execute_sm_if_changed_flag_set): Adjust.
4620 (execute_sm): Likewise.
4621 (ref_always_accessed_p): Likewise.
4622 (refs_independent_p): Likewise.
4623 (can_sm_ref_p): Likewise.
4625 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4628 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
4629 return 1 even for !unsignedp.
4631 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4633 * config/i386/i386.md (isa): Add x64 and nox64.
4634 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
4635 (*pushtf): Enable *roF alternative for x64 isa only.
4636 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
4637 mode attribute of integer alternatives to DImode for TARGET_64BIT.
4638 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
4639 (*movtf_internal): Merge from *movtf_internal_rex64 and
4640 *movtf_internal_sse. Use x64 and nox64 isa attributes.
4641 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
4642 nox64 isa attributes.
4643 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
4644 nox64 isa attributes.
4645 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
4647 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4649 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4651 2013-03-17 Jakub Jelinek <jakub@redhat.com>
4654 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
4655 class names. Remove trailing comma after "ALL_REGS".
4657 2013-03-16 Jan Hubicka <jh@suse.cz>
4659 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
4660 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
4661 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
4662 of cgraph_get_create_node.
4663 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4665 2013-03-16 Jason Merrill <jason@redhat.com>
4668 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
4669 with DW_AT_default_value.
4671 2013-03-16 Jakub Jelinek <jakub@redhat.com>
4673 * BASE-VER: Set to 4.9.0.
4675 2013-03-14 Andi Kleen <ak@linux.intel.com>
4678 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
4679 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
4680 Document _x* TSX intrinsics.
4682 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
4683 David Holsgrove <david.holsgrove@xilinx.com>
4685 * configure.ac: Add MicroBlaze TLS support detection.
4686 * configure: Regenerate.
4687 * config/microblaze/microblaze-protos.h
4688 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
4689 symbol_mentioned_p, label_mentioned_p): Add prototypes.
4690 * config/microblaze/microblaze.c (microblaze_address_type): Add
4691 ADDRESS_TLS and tls_reloc address types.
4692 (microblaze_address_info): Add tls_reloc.
4693 (TARGET_HAVE_TLS): Define.
4694 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
4695 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
4696 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
4697 load_tls_operand, microblaze_call_tls_get_addr,
4698 microblaze_legitimize_tls_address): New functions.
4699 (microblaze_classify_unspec): Handle UNSPEC_TLS.
4700 (get_base_reg): Use microblaze_tls_symbol_p.
4701 (microblaze_classify_address): Handle TLS.
4702 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
4703 label_mentioned_p and microblaze_tls_referenced_p.
4704 (microblaze_legitimize_address): Handle TLS.
4705 (microblaze_address_insns): Handle ADDRESS_TLS.
4706 (pic_address_needs_scratch): Handle TLS.
4707 (print_operand_address): Handle TLS.
4708 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
4709 (microblaze_expand_move): Handle TLS.
4710 (microblaze_legitimate_constant_p): Check
4711 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
4712 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4713 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
4714 (PIC_OFFSET_TABLE_REGNUM): Set.
4715 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
4716 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
4717 (addsi3, movsi_internal2, movdf_internal): Update constraints
4718 * config/microblaze/predicates.md (arith_plus_operand): Define
4719 (move_operand): Redefine as move_src_operand,
4720 check microblaze_tls_referenced_p.
4722 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4724 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
4725 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
4727 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4729 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
4732 2013-03-14 Jakub Jelinek <jakub@redhat.com>
4734 PR tree-optimization/53265
4735 * common.opt (Waggressive-loop-optimizations): New option.
4736 * tree-ssa-loop-niter.c: Include tree-pass.h.
4737 (do_warn_aggressive_loop_optimizations): New function.
4738 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
4739 if number_of_latch_executions returned constant.
4740 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
4741 early. If number_of_latch_executions returned constant, set
4742 nb_iterations_upper_bound back to it.
4743 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
4745 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
4746 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
4748 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
4749 (MULTILIB_OSDIRNAMES): Set.
4750 * genmultilib: If defaultosdirname doesn't start with :: , set
4751 defaultosdirname2 instead, clear it and emit two . multilib_raw
4752 entries instead of just one.
4754 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
4756 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4757 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
4758 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4759 (SUBTARGET_OVERRIDE_OPTIONS): New.
4761 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
4764 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
4765 (musermode): Convert to Var(TARGET_USERMODE).
4766 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
4767 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
4768 * config/sh/sh.c (sh_option_override): Use
4769 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
4770 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
4772 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
4774 (udivsi3_i4_single, divsi3_i4_single): Use
4775 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
4777 2013-03-13 Dave Korn <dave.korn.cygwin@....>
4779 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
4782 2013-03-13 Richard Biener <rguenther@suse.de>
4784 PR tree-optimization/56608
4785 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
4786 calls when vectorizing basic-blocks.
4788 2013-03-13 Jakub Jelinek <jakub@redhat.com>
4791 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
4794 2013-03-12 Jakub Jelinek <jakub@redhat.com>
4796 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
4798 2013-03-11 Jan Hubicka <jh@suse.cz>
4801 * lto-streamer-out.c (output_symbol_p): Skip references from
4802 constructors of external variables.
4804 2013-03-11 Jan Hubicka <jh@suse.cz>
4807 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
4809 * emit-rtl.c (verify_rtx_sharing): Likewise.
4810 (copy_insn_1): Likewise.
4811 * rtl.c (copy_rtx): Likewise.
4813 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
4816 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
4817 output_operand_lossage message.
4819 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
4822 * arm.c (shift_op): Validate RTL pattern on the fly.
4823 (arm_print_operand, case 'S'): Don't use shift_operator to validate
4826 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4829 * config/pa/pa.md (call_value): Check for calls to powf and direct to
4830 new call patterns that clobber %fr12.
4831 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
4832 split and postreload patterns.
4833 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
4834 registers %fr12 and %fr12R as call used.
4836 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
4838 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
4839 (canon_address, record_store, replace_read, check_mem_read_rtx,
4840 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
4841 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
4842 rest_of_handle_dse): Likewise.
4844 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4847 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
4849 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
4850 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
4851 (save_optabs_if_changed): Replace with...
4852 (init_tree_optimization_optabs): ...this.
4853 * optabs.c (save_optabs_if_changed): Rename to...
4854 (init_tree_optimization_optabs): ...this. Take the optimization node
4855 as argument. Do nothing if the base optabs are already correct.
4856 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
4857 to recompute optabs.
4858 * function.h (function): Remove optabs field.
4859 * function.c (invoke_set_current_function_hook): Call
4860 init_tree_optimization_optabs. Use the result to initialize
4863 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
4865 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
4866 if GTMA_HAS_NO_INSTRUMENTATION.
4867 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
4868 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
4869 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
4870 * gimple-pretty-print.c (dump_gimple_transaction): Handle
4871 GTMA_HAS_NO_INSTRUMENTATION.
4873 2013-03-08 Jakub Jelinek <jakub@redhat.com>
4875 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
4878 2013-03-08 Marek Polacek <polacek@redhat.com>
4879 Jakub Jelinek <jakub@redhat.com>
4881 PR tree-optimization/56478
4882 * predict.c (is_comparison_with_loop_invariant_p): Change the
4883 type of loop_step to tree.
4884 (predict_loops): Adjust.
4885 (predict_iv_comparison): Perform the computations on double_ints.
4887 2013-03-08 Richard Biener <rguenther@suse.de>
4889 PR tree-optimization/56570
4890 * tree-cfg.c (verify_expr_location_1): Verify locations for
4892 * tree-sra.c (create_access_replacement): Strip locations
4893 from DECL_DEBUG_EXPRs.
4895 2013-03-08 Richard Biener <rguenther@suse.de>
4897 * tree-inline.c (expand_call_inline): Do not associate
4898 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
4899 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
4901 2013-03-08 Richard Biener <rguenther@suse.de>
4903 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
4904 or block changes with -Og. Fix for location / block encoding
4905 changes and PHI arguments with locations.
4907 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
4909 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
4911 (struct output_info): Likewise.
4912 (register_overhead): Remove bad gcc_assert.
4913 (bitmap_find_bit): If there is only a single bitmap element, do not
4914 count a miss as a search.
4915 (print_statistics): Update for counter type changes.
4916 (dump_bitmap_statistics): Likewise. Print headers such that they
4917 are properly lined up with the printed counters.
4919 2013-03-07 Jakub Jelinek <jakub@redhat.com>
4921 PR tree-optimization/56559
4922 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
4923 check that it has only a single use.
4925 2013-03-07 Richard Biener <rguenther@suse.de>
4927 * doc/invoke.texi (fwhole-program): Discourage use in combination
4930 2013-03-06 Jakub Jelinek <jakub@redhat.com>
4932 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
4934 PR tree-optimization/56539
4935 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
4936 instead of GSI_CONTINUE_LINKING as last argument to
4937 force_gimple_operand_gsi. Adjust function comment.
4939 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
4943 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
4944 promoted mode, convert the result back to the original mode.
4946 2013-03-06 Richard Biener <rguenther@suse.de>
4949 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
4950 (insert_updated_phi_nodes_compare_uids): New function.
4951 (update_ssa): Sort symbols_to_rename after UID before
4952 traversing it to insert PHI nodes.
4954 2013-03-06 Richard Biener <rguenther@suse.de>
4957 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
4958 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
4961 2013-02-13 Richard Biener <rguenther@suse.de>
4964 * varasm.c (output_constant_def_1): Get the decl representing
4965 the constant as argument.
4966 (output_constant_def): Wrap output_constant_def_1.
4967 (make_decl_rtl): Use output_constant_def_1 with the decl
4968 representing the constant.
4969 (build_constant_desc): Optionally re-use a decl already
4970 representing the constant.
4971 (tree_output_constant_def): Adjust.
4973 2013-03-06 Joey Ye <joey.ye@arm.com>
4976 * gcc.c (convert_white_space): New function.
4977 (main): Handles white space in function name.
4979 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
4982 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
4983 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
4984 to SH_DIV_CALL_TABLE for TARGET_SH2.
4985 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
4987 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
4990 2013-03-05 Sterling Augustine <saugustine@google.com>
4991 Cary Coutant <ccoutant@google.com>
4994 * dwarf2out.c (resolve_addr): Don't call
4995 remove_loc_list_addr_table_entries a second time for the same
4998 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5001 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
5002 (avoid_complex_debug_insns): New function.
5003 (expand_debug_locations): Call it.
5005 PR rtl-optimization/56484
5006 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
5007 lifetimes of hard registers on small register class machines.
5009 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5011 * config/microblaze/microblaze-protos.h: Rename
5012 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
5013 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
5015 (microblaze_fast_interrupt_function_p): New function.
5016 (microblaze_is_interrupt_handler): Rename to
5017 microblaze_is_interrupt_variant and add fast_interrupt check.
5018 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
5019 (save_restore_insns): Likewise.
5020 (compute_frame_size): Likewise.
5021 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
5022 (microblaze_globalize_label): Likewise.
5023 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
5024 * config/microblaze/microblaze.md: Use wrapper
5025 microblaze_is_interrupt_variant.
5027 2013-03-05 Kai Tietz <ktietz@redhat.com>
5029 * sdbout.c (sdbout_one_type): Switch to current function's section
5030 supporting cold/hot.
5032 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5034 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
5037 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5040 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
5041 if VALGRIND_GET_VBITS is defined, temporarily make object
5042 memory all defined, and restore previous valgrind addressability
5043 and definability afterwards. Free this_object at the end.
5046 * lra.c (lra): Call lra_clear_live_ranges if live_p,
5047 right before calling lra_create_live_ranges, also call it
5048 when clearing live_p. Only call lra_clear_live_ranges
5049 at the end if live_p.
5052 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
5054 2013-03-05 Richard Biener <rguenther@suse.de>
5056 PR tree-optimization/56521
5057 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
5060 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
5063 * except.h (remove_unreachable_eh_regions): New prototype.
5064 * except.c (remove_eh_handler_splicer): New function, split out
5065 of remove_eh_handler.
5066 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
5067 warning about running it on many EH regions one at a time.
5068 (remove_unreachable_eh_regions_worker): New function, walk the
5069 EH tree in depth-first order and remove non-marked regions.
5070 (remove_unreachable_eh_regions): New function.
5071 * tree-eh.c (mark_reachable_handlers): New function, split out
5072 from remove_unreachable_handlers.
5073 (remove_unreachable_handlers): Use mark_reachable_handlers and
5074 remove_unreachable_eh_regions.
5075 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
5076 and remove_unreachable_eh_regions.
5078 2013-03-05 Richard Biener <rguenther@suse.de>
5081 * loop-init.c (fix_loop_structure): Remove loops in two stages,
5082 not freeing them until the end.
5084 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5086 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
5088 2013-03-05 Richard Biener <rguenther@suse.de>
5090 PR tree-optimization/56270
5091 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
5092 of loads after scheduling an SLP instance.
5094 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5096 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
5098 (check_gcc_parallelize): Run guality.exp as a separate job from
5099 vect.exp with unsorted.exp and $(dg_target_exps) separately from
5100 struct-layout-1.exp with stackalign.exp.
5102 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
5105 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
5106 load_index sbitmap even if some bit in it isn't set.
5109 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
5110 (discover_iteration_bound_by_body_walk): Change queues to
5111 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
5112 spelling in comment. Call safe_push on queues[bound_index] directly.
5113 Release queues[queue_index] in every iteration unconditionally.
5114 Release bounds vector.
5117 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
5118 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
5119 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
5122 2013-03-05 Richard Biener <rguenther@suse.de>
5125 * tree-inline.c (remap_blocks_to_null): New function.
5126 (expand_call_inline): When expanding a call stmt without
5127 an associated block inline remap all callee blocks to NULL.
5129 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5131 PR rtl-optimization/56494
5132 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
5133 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
5134 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
5137 * sel-sched-ir.c (free_sched_pools): Release
5138 succs_info_pool.stack[succs_info_pool.max_top] vectors too
5139 if succs_info_pool.max_top isn't -1.
5142 * opts.c (opts_obstack, opts_concat): Moved to...
5143 * opts-common.c (opts_obstack, opts_concat): ... here.
5145 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5148 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
5150 2013-03-04 Martin Jambor <mjambor@suse.cz>
5152 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
5153 all appropriate places.
5155 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
5157 PR tree-optimization/56424
5158 * ipa-split.c (split_function): Do not set the RSO flag if result is
5159 not by reference and its type is a register type.
5161 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
5163 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
5164 (microblaze_legitimate_pic_operand): Likewise
5165 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
5166 new function microblaze_legitimate_pic_operand
5167 * config/microblaze/microblaze-protos.h
5168 (microblaze_legitimate_pic_operand): Declare.
5170 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5172 * config/microblaze/predicates.md (call_insn_simple_operand):
5173 New predicate for supported rtx code types.
5174 * config/microblaze/microblaze.md (call_internal1): Use
5175 call_insn_simple_operand predicate.
5177 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5180 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
5181 partitions.ordered_remove.
5184 * tree-vect-stmts.c (vectorizable_conversion): Don't call
5185 vec_oprnds0.create (1) for modifier == NONE.
5188 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
5189 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
5190 vec_oprnds1 right before pushing anything to it for
5194 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
5195 set nbbs to 0 instead of having separate code path.
5196 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
5197 instead of false as last argument if returning NULL.
5199 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
5201 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
5202 the attribute is now called "target" instead of "option".
5203 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
5204 * doc/tm.texi.in (Target Attributes): Likewise document the correct
5205 attribute/pragma name for TARGET_OPTION_VALID_P and
5206 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
5207 * doc/tm.texi: Regenerated.
5209 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
5211 * config/microblaze/microblaze.c:
5212 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
5213 * config/microblaze/microblaze.h: Add -mxl-reorder to
5215 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
5216 instructions emitted if TARGET_REORDER.
5217 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
5218 or 0 for -m/-mno case, but initialises as 2 to detect default use case
5221 2013-03-01 Xinliang David Li <davidxl@google.com>
5223 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
5226 2013-03-01 Jakub Jelinek <jakub@redhat.com>
5229 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
5230 vector even when returning true. Fix up function comment formatting.
5233 * ira-build.c (ira_loop_nodes_count): New variable.
5234 (create_loop_tree_nodes): Initialize it.
5235 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
5238 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
5239 method on dr_chain and result_chain.
5240 * tree-vect-stmts.c (vectorizable_store): Only call
5241 result_chain.create if j == 0.
5244 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
5245 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
5246 before overwriting it.
5248 2013-03-01 Tobias Burnus <burnus@net-b.de>
5250 * doc/extended.texi (C Extensions): Change order in @menu
5252 (Other MIPS Built-in Functions): Move last MIPS entry before
5253 "picoChip Built-in Functions".
5254 (SH Built-in Functions): Move after RX Built-in Functions.
5255 * doc/gcc.texi (Introduction): Change order in @menu
5257 * doc/md.texi (Constraints): Ditto.
5258 * gty.texi (Type Information): Ditto.
5259 (User-provided marking routines for template types): Make
5261 * doc/invoke.texi (AArch64 Options): Move before
5262 "Adapteva Epiphany Options".
5264 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5265 Jakub Jelinek <jakub@redhat.com>
5268 * asan.c (gate_asan): Lookup no_sanitize_address instead of
5269 no_address_safety_analysis attribute.
5270 * doc/extend.texi (no_address_safety_attribute): Rename to
5271 no_sanitize_address attribute, mention no_address_safety_analysis
5272 attribute as deprecated alias.
5274 2013-02-28 Jakub Jelinek <jakub@redhat.com>
5277 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
5278 type to vec<vec<tree> > *.
5279 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
5280 to be vec<tree> instead of vec<tree> *, set vec_defs
5281 to vNULL and call vec_defs.create (number_of_vects), adjust other
5283 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
5284 vectorizable_condition): Adjust vect_get_slp_defs callers.
5286 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5288 * config/aarch64/aarch64.c
5289 (aarch64_float_const_representable): Remove unused variable.
5291 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5293 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
5295 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5297 * config/aarch64/aarch64-builtins.c
5298 (aarch64_init_simd_builtins): Make static.
5300 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5302 * config/aarch64/aarch64.c
5303 (aarch64_simd_make_constant): Make static.
5305 2013-02-28 Martin Jambor <mjambor@suse.cz>
5307 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
5308 with no initialization to the RHS of debug statements.
5310 2013-02-28 Martin Jambor <mjambor@suse.cz>
5312 PR tree-optimization/56294
5313 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
5315 (get_access_replacement): Do not call create_access_replacement.
5316 Assert a replacement exists.
5317 (get_repl_default_def_ssa_name): Create the replacement declaration
5320 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5322 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
5325 2013-02-28 Marek Polacek <polacek@redhat.com>
5327 PR rtl-optimization/56466
5328 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
5329 if we're changing a loop.
5330 (peel_loops_completely): Likewise.
5332 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
5335 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
5337 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5340 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
5341 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
5342 INTX_FTYPE_FX, FX_FTYPE_INTX.
5343 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
5345 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5347 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
5348 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
5349 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
5350 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
5351 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
5352 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
5353 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
5354 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
5355 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
5356 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
5357 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
5358 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
5359 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
5360 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
5361 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
5362 (avrxmega6): Increase max flash segments from 5 to 6.
5363 * config/avr/t-multilib: Regenerate.
5364 * config/avr/avr-tables.opt: Regenerate.
5365 * doc/avr-mmcu.texi: Regenerate.
5367 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5369 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
5370 (avr_device_to_arch): Rename to avr_device_to_ld.
5371 (avr_device_to_as): New prototype.
5372 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
5373 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
5374 * config/avr/driver-avr.c (avr_device_to_as): New.
5375 (avr_device_to_arch): Rename to avr_device_to_ld.
5377 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5380 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
5381 method on dr_chain and result_chain.
5384 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
5385 pointer_set_destroy on not_executed_last_iteration.
5388 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
5391 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
5392 FOR_EACH_DEFINED_FUNCTION when freeing state.
5395 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
5397 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
5401 * ipa-cp.c (decide_whether_version_node): Call vec_free on
5402 known_aggs[i].items and release known_aggs vector.
5405 * ipa-reference.c (propagate): Free node_info even for alias nodes.
5407 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5409 * config/microblaze/microblaze.c (microblaze_emit_compare):
5410 Use xor for EQ/NE comparisions.
5411 * config/microblaze/microblaze.md (cstoresf4): Add constraints
5412 (cbranchsf4): Adjust operator to comparison_operator.
5414 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5417 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
5419 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
5420 vec_safe_push, always update *slot.
5421 (redirect_edge_var_map_clear): Use vec_free.
5422 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
5423 (free_var_map_entry): Use vec_free.
5424 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
5425 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
5427 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
5430 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
5431 when the may_trap_p bit of the exprs being merged differs.
5432 Reorder tests for speculativeness in the logical and operator.
5434 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5436 * incpath.c (add_standard_paths): Use reconcat instead of concat
5437 where appropriate and avoid leaking memory.
5439 * opts.h: Include obstack.h.
5440 (opts_concat): New prototype.
5441 (opts_obstack): New declaration.
5442 * opts.c (opts_concat): New function.
5443 (opts_obstack): New variable.
5444 (init_options_struct): Call gcc_init_obstack on opts_obstack.
5445 (finish_options): Use opts_concat instead of concat
5446 and XOBNEWVEC instead of XNEWVEC.
5447 * opts-common.c (generate_canonical_option, decode_cmdline_option,
5448 generate_option): Likewise.
5449 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
5450 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
5453 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
5454 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
5456 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5459 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
5461 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5463 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
5464 (arm_block_move_unaligned_straight): Likewise.
5465 (arm_adjust_block_mem): Likewise.
5467 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5470 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
5471 temp, cond and label.
5472 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
5475 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
5476 * config/c6x/c6x.h (dbx_register_map): Update declaration.
5479 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
5480 of prologue/epilogue functions.
5483 * config/tilegx/tilegx.c (tilegx_expand_prologue):
5484 Remove unused variable cfa_offset.
5485 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
5488 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
5489 type promotion to unsigned.
5492 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
5493 for HOST_WIDE_INT of 32 bit / same size as int.
5494 (arm_block_move_unaligned_straight): Likewise.
5495 (arm_adjust_block_mem): Likewise.
5498 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
5501 2013-02-26 Marek Polacek <polacek@redhat.com>
5503 PR tree-optimization/56426
5504 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
5506 2013-02-26 Richard Biener <rguenther@suse.de>
5509 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
5510 unused variable loops.
5512 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5514 PR tree-optimization/56448
5515 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
5516 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
5517 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
5518 later operands of the references, or even first operand for
5519 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
5521 PR tree-optimization/56443
5522 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
5523 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
5524 to type_for_mode langhook.
5526 2013-02-25 Matt Turner <mattst88@gmail.com>
5528 * doc/invoke.texi: Document r4700.
5530 2013-02-25 Richard Biener <rguenther@suse.de>
5532 PR tree-optimization/56175
5533 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
5535 (simplify_bitwise_binary): ... here. Also guard the conversion
5536 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
5538 2013-02-25 Catherine Moore <clm@codesourcery.com>
5541 2013-02-24 Catherine Moore <clm@codesourcery.com>
5542 Maciej W. Rozycki <macro@codesourcery.com>
5543 Tom de Vries <tom@codesourcery.com>
5544 Nathan Sidwell <nathan@codesourcery.com>
5545 Iain Sandoe <iain@codesourcery.com>
5546 Nathan Froyd <froydnj@codesourcery.com>
5547 Chao-ying Fu <fu@mips.com>
5549 * doc/extend.texi: (micromips, nomicromips, nocompression):
5550 Document new function attributes.
5551 * doc/invoke.texi (minterlink-compressed, mmicromips,
5552 m14k, m14ke, m14kec): Document new options.
5553 (minterlink-mips16): Update documentation.
5554 * doc/md.texi (ZC, ZD): Document new constraints.
5555 * configure.ac (gcc_cv_as_micromips): Check if linker
5556 supports the .set micromips directive.
5557 * configure: Regenerate.
5558 * config.in: Regenerate.
5559 * config/mips/mips-tables.opt: Regenerate.
5560 * config/mips/micromips.md: New file.
5561 * constraints.md (ZC, AD): New constraints.
5562 * config/mips/predicates.md (movep_src_register): New predicate.
5563 (movep_src_operand): New predicate.
5564 (non_volatile_mem_operand): New predicate.
5565 * config/mips/mips.md (multimem): New type.
5566 (length): Differentiate between 17-bit and 18-bit branch offsets.
5567 (MOVEP1, MOVEP2): New mode iterator.
5568 (mov_<load>l): Use ZC constraint.
5569 (mov_<load>r): Likewise.
5570 (mov_<store>l): Likewise.
5571 (mov_<store>r): Likewise.
5572 (*branch_equality<mode>_inverted): Add microMIPS support.
5573 (*branch_equality<mode>): Likewise.
5574 (*jump_absolute): Likewise.
5575 (indirect_jump_<mode>): Likewise.
5576 (tablejump_<mode>): Likewise.
5577 (<optab>_internal): Likewise.
5578 (sibcall_internal): Likewise.
5579 (sibcall_value_internal): Likewise.
5580 (prefetch): Use constraint ZD.
5581 * config/mips/mips.opt (minterlink-compressed): New option.
5582 (minterlink-mips16): Now an alias for minterlink-compressed.
5583 (mmicromips): New option.
5584 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5585 (compare_and_swap_12): Likewise.
5586 (sync_add<mode>): Likewise.
5587 (sync_<optab>_12): Likewise.
5588 (sync_old_<optab>_12): Likewise.
5589 (sync_new_<optab>_12): Likewise.
5590 (sync_nand_12): Likewise.
5591 (sync_old_nand_12): Likewise.
5592 (sync_new_nand_12): Likewise.
5593 (sync_sub<mode>): Likewise.
5594 (sync_old_add<mode>): Likewise.
5595 (sync_old_sub<mode>): Likewise.
5596 (sync_new_add<mode>): Likewise.
5597 (sync_new_sub<mode>): Likewise.
5598 (sync_<optab><mode>): Likewise.
5599 (sync_old_<optab><mode>): Likewise.
5600 (sync_new_<optab><mode>): Likewise.
5601 (sync_nand<mode>): Likewise.
5602 (sync_old_nand<mode>): Likewise.
5603 (sync_new_nand<mode>): Likewise.
5604 (sync_lock_test_and_set<mode>): Likewise.
5605 (test_and_set_12): Likewise.
5606 (atomic_compare_and_swap<mode>): Likewise.
5607 (atomic_exchange<mode>_llsc): Likewise.
5608 (atomic_fetch_add<mode>_llsc): Likewise.
5609 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5610 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5611 (umips_save_restore_pattern_p): Likewise.
5612 (umips_load_store_pair_p): Likewise.
5613 (umips_output_load_store_pair): Likewise.
5614 (umips_movep_target_p): Likewise.
5615 (umips_12bit_offset_address_p): Likewise.
5616 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5617 (mips_base_mips16): Rename this...
5618 (mips_base_compression_flags): ...to this. Update all uses.
5619 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5620 (mips_mips16_decl_p): Delete.
5621 (mips_nomips16_decl_p): Delete.
5622 (mips_get_compress_on_flags): New function.
5623 (mips_get_compress_off_flags): New function.
5624 (mips_get_compress_mode): New function.
5625 (mips_get_compress_on_name): New function.
5626 (mips_get_compress_off_name): New function.
5627 (mips_insert_attributes): Support multiple compression types.
5628 (mips_merge_decl_attributes): Likewise.
5629 (umips_12bit_offset_address_p): New function.
5630 (mips_start_function_definition): Emit .set micromips directive.
5631 (mips_call_may_need_jalx_p): New function.
5632 (mips_function_ok_for_sibcall): Add microMIPS support.
5633 (mips_print_operand_punctuation): Support short delay slots and
5635 (umips_swm_mask, umips_swm_encoding): New.
5636 (umips_build_save_restore): New function.
5637 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5638 (was_mips16_p): Remove.
5639 (old_compression_mode): New.
5640 (mips_set_compression_mode): New function.
5641 (mips_set_current_function): Add microMIPS support.
5642 (mips_option_override): Likewise.
5643 (umips_save_restore_pattern_p): New function.
5644 (umips_output_save_restore): New function.
5645 (umips_load_store_pair_p_1): New function.
5646 (umips_load_store_pair_p): New function.
5647 (umips_output_load_store_pair_1): New function.
5648 (umips_output_load_store_pair): New function.
5649 (umips_movep_target_p) New function.
5650 (mips_prepare_pch_save): Add microMIPS support.
5651 * config/mips/mips.h (TARGET_COMPRESSION): New.
5652 (TARGET_CPU_CPP_BUILTINS): Update macro
5653 to use new compression flags and to support microMIPS.
5654 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5655 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5656 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5657 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5658 (ASM_SPEC): Support mmicromips and mno-micromips.
5659 (M16STORE_REG_P): New macro.
5660 (MIPS_CALL): Support TARGET_MICROMIPS.
5661 (MICROMIPS_J): New macro.
5662 (mips_base_mips16): Rename this...
5663 (mips_base_compression_flags): ...to this.
5664 (UMIPS_12BIT_OFFSET_P): New macro.
5665 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5666 (MULTILIB_DIRNAMES): Likewise.
5668 2013-02-25 Tom de Vries <tom@codesourcery.com>
5670 PR rtl-optimization/56131
5671 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
5672 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
5673 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
5675 2013-02-25 Tobias Burnus <burnus@net-b.de>
5677 * doc/invoke.texi (-fsanitize=): Move from optimization
5678 to debugging options.
5680 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5682 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
5684 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5685 Alexander Monakov <amonakov@ispras.ru>
5688 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
5689 flush pending lists also on non-jumps. Adjust comment.
5691 2013-02-24 Catherine Moore <clm@codesourcery.com>
5692 Maciej W. Rozycki <macro@codesourcery.com>
5693 Tom de Vries <tom@codesourcery.com>
5694 Nathan Sidwell <nathan@codesourcery.com>
5695 Iain Sandoe <iain@codesourcery.com>
5696 Nathan Froyd <froydnj@codesourcery.com>
5697 Chao-ying Fu <fu@mips.com>
5699 * doc/extend.texi: (micromips, nomicromips, nocompression):
5700 Document new function attributes.
5701 * doc/invoke.texi (minterlink-compressed, mmicromips,
5702 m14k, m14ke, m14kec): Document new options.
5703 (minterlink-mips16): Update documentation.
5704 * doc/md.texi (ZC, ZD): Document new constraints.
5705 * configure.ac (gcc_cv_as_micromips): Check if linker
5706 supports the .set micromips directive.
5707 * configure: Regenerate.
5708 * config.in: Regenerate.
5709 * config/mips/mips-tables.opt: Regenerate.
5710 * config/mips/micromips.md: New file.
5711 * constraints.md (ZC, AD): New constraints.
5712 * config/mips/predicates.md (movep_src_register): New predicate.
5713 (movep_src_operand): New predicate.
5714 (non_volatile_mem_operand): New predicate.
5715 * config/mips/mips.md (multimem): New type.
5716 (length): Differentiate between 17-bit and 18-bit branch offsets.
5717 (MOVEP1, MOVEP2): New mode iterator.
5718 (mov_<load>l): Use ZC constraint.
5719 (mov_<load>r): Likewise.
5720 (mov_<store>l): Likewise.
5721 (mov_<store>r): Likewise.
5722 (*branch_equality<mode>_inverted): Add microMIPS support.
5723 (*branch_equality<mode>): Likewise.
5724 (*jump_absolute): Likewise.
5725 (indirect_jump_<mode>): Likewise.
5726 (tablejump_<mode>): Likewise.
5727 (<optab>_internal): Likewise.
5728 (sibcall_internal): Likewise.
5729 (sibcall_value_internal): Likewise.
5730 (prefetch): Use constraint ZD.
5731 * config/mips/mips.opt (minterlink-compressed): New option.
5732 (minterlink-mips16): Now an alias for minterlink-compressed.
5733 (mmicromips): New option.
5734 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5735 (compare_and_swap_12): Likewise.
5736 (sync_add<mode>): Likewise.
5737 (sync_<optab>_12): Likewise.
5738 (sync_old_<optab>_12): Likewise.
5739 (sync_new_<optab>_12): Likewise.
5740 (sync_nand_12): Likewise.
5741 (sync_old_nand_12): Likewise.
5742 (sync_new_nand_12): Likewise.
5743 (sync_sub<mode>): Likewise.
5744 (sync_old_add<mode>): Likewise.
5745 (sync_old_sub<mode>): Likewise.
5746 (sync_new_add<mode>): Likewise.
5747 (sync_new_sub<mode>): Likewise.
5748 (sync_<optab><mode>): Likewise.
5749 (sync_old_<optab><mode>): Likewise.
5750 (sync_new_<optab><mode>): Likewise.
5751 (sync_nand<mode>): Likewise.
5752 (sync_old_nand<mode>): Likewise.
5753 (sync_new_nand<mode>): Likewise.
5754 (sync_lock_test_and_set<mode>): Likewise.
5755 (test_and_set_12): Likewise.
5756 (atomic_compare_and_swap<mode>): Likewise.
5757 (atomic_exchange<mode>_llsc): Likewise.
5758 (atomic_fetch_add<mode>_llsc): Likewise.
5759 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5760 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5761 (umips_save_restore_pattern_p): Likewise.
5762 (umips_load_store_pair_p): Likewise.
5763 (umips_output_load_store_pair): Likewise.
5764 (umips_movep_target_p): Likewise.
5765 (umips_12bit_offset_address_p): Likewise.
5766 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5767 (mips_base_mips16): Rename this...
5768 (mips_base_compression_flags): ...to this. Update all uses.
5769 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5770 (mips_mips16_decl_p): Delete.
5771 (mips_nomips16_decl_p): Delete.
5772 (mips_get_compress_on_flags): New function.
5773 (mips_get_compress_off_flags): New function.
5774 (mips_get_compress_mode): New function.
5775 (mips_get_compress_on_name): New function.
5776 (mips_get_compress_off_name): New function.
5777 (mips_insert_attributes): Support multiple compression types.
5778 (mips_merge_decl_attributes): Likewise.
5779 (umips_12bit_offset_address_p): New function.
5780 (mips_start_function_definition): Emit .set micromips directive.
5781 (mips_call_may_need_jalx_p): New function.
5782 (mips_function_ok_for_sibcall): Add microMIPS support.
5783 (mips_print_operand_punctuation): Support short delay slots and
5785 (umips_swm_mask, umips_swm_encoding): New.
5786 (umips_build_save_restore): New function.
5787 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5788 (was_mips16_p): Remove.
5789 (old_compression_mode): New.
5790 (mips_set_compression_mode): New function.
5791 (mips_set_current_function): Add microMIPS support.
5792 (mips_option_override): Likewise.
5793 (umips_save_restore_pattern_p): New function.
5794 (umips_output_save_restore): New function.
5795 (umips_load_store_pair_p_1): New function.
5796 (umips_load_store_pair_p): New function.
5797 (umips_output_load_store_pair_1): New function.
5798 (umips_output_load_store_pair): New function.
5799 (umips_movep_target_p) New function.
5800 (mips_prepare_pch_save): Add microMIPS support.
5801 * config/mips/mips.h (TARGET_COMPRESSION): New.
5802 (TARGET_CPU_CPP_BUILTINS): Update macro
5803 to use new compression flags and to support microMIPS.
5804 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5805 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5806 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5807 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5808 (ASM_SPEC): Support mmicromips and mno-micromips.
5809 (M16STORE_REG_P): New macro.
5810 (MIPS_CALL): Support TARGET_MICROMIPS.
5811 (MICROMIPS_J): New macro.
5812 (mips_base_mips16): Rename this...
5813 (mips_base_compression_flags): ...to this.
5814 (UMIPS_12BIT_OFFSET_P): New macro.
5815 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5816 (MULTILIB_DIRNAMES): Likewise.
5818 2013-02-24 Jakub Jelinek <jakub@redhat.com>
5821 * target-globals.c (save_target_globals): For init_reg_sets and
5822 target_reinit remporarily set this_fn_optabs to this_target_optabs.
5824 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
5826 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
5827 * config/aarch64/t-aarch64
5828 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
5830 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
5833 * lra-constraints.c (process_alt_operands): Reload operand
5834 conflicting with earlier clobber only if no more other conflicting
5837 2013-02-22 Jakub Jelinek <jakub@redhat.com>
5840 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
5841 if not linking a shared library.
5843 2013-02-22 Seth LaForge <sethml@google.com>
5845 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
5847 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
5849 * config/arm/arm.md (split for extendsidi): Update condition.
5850 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
5851 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
5852 (qhs_zextenddi_cstr): Likewise.
5854 2013-02-21 Jakub Jelinek <jakub@redhat.com>
5857 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
5858 avoid signed wrapping.
5859 (expand_mult): Handle properly multiplication by
5860 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
5861 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
5862 in the compiler if coeff is HOST_WIDE_INT_MIN.
5863 (expand_divmod): Don't make ext_op1 static, change it's type to
5864 uhwi. Avoid undefined behavior in -INTVAL (op1).
5866 PR rtl-optimization/50339
5867 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
5869 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
5870 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
5871 into splitting_ashiftrt field.
5872 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
5874 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
5877 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
5880 * trans-mem.c (execute_tm_mark): Do not expand transactions that
5881 are sure to go irrevocable.
5883 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
5885 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
5886 scalars are valid operands.
5888 2013-02-21 Martin Jambor <mjambor@suse.cz>
5890 PR tree-optimization/56310
5891 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
5892 only matching indices and non-negative final offsets.
5893 (intersect_aggregates_with_edge): Pass src_idx to
5894 agg_replacements_to_vector. Pass src_idx insstead of index to
5895 intersect_with_agg_replacements.
5897 2013-02-21 Martin Jambor <mjambor@suse.cz>
5899 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
5900 instead of hard-wired defaults.
5902 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
5904 * doc/invoke.texi (MIPS Options): Update documentation of the
5905 floating-point multiply-accumulate instruction restrictions.
5907 2013-02-21 Kostya Serebryany <kcc@google.com>
5909 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
5910 asan_shadow_offset on x86_64 linux.
5912 2013-02-21 Richard Biener <rguenther@suse.de>
5914 PR tree-optimization/56415
5916 2013-02-11 Richard Biener <rguenther@suse.de>
5918 PR tree-optimization/56273
5919 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5922 2013-02-21 Jakub Jelinek <jakub@redhat.com>
5925 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
5929 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
5930 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
5932 2013-02-20 Jan Hubicka <jh@suse.cz>
5934 PR tree-optimization/56265
5935 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
5936 when target is referenced for first time.
5938 2013-02-20 Richard Biener <rguenther@suse.de>
5940 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
5941 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
5942 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5943 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
5944 not return anything.
5945 (rename_ssa_copies): Do not remove unused locals.
5946 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
5947 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
5948 * passes.c (execute_function_todo): Do not schedule unused locals
5949 removal if cleanup_tree_cfg did something.
5950 * tree-ssa-live.c (remove_unused_locals): Dump statistics
5951 about the number of removed locals.
5953 2013-02-20 Richard Biener <rguenther@suse.de>
5955 PR tree-optimization/56398
5956 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
5958 2013-02-20 Martin Jambor <mjambor@suse.cz>
5960 PR tree-optimization/55334
5961 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
5962 restricted pointers to arrays.
5964 2013-02-20 Richard Biener <rguenther@suse.de>
5965 Jakub Jelinek <jakub@redhat.com>
5967 PR tree-optimization/56396
5968 * tree-ssa-ccp.c (n_const_val): New static variable.
5969 (get_value): Return NULL for SSA names we don't have a lattice
5971 (ccp_initialize): Initialize n_const_val.
5972 * tree-ssa-copy.c (n_copy_of): New static variable.
5973 (init_copy_prop): Initialize n_copy_of.
5974 (get_value): Return NULL_TREE for SSA names we don't have a
5977 2013-02-20 Martin Jambor <mjambor@suse.cz>
5979 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
5981 2013-02-20 Richard Biener <rguenther@suse.de>
5983 * genpreds.c (write_lookup_constraint): Do not compare first
5984 letter of the constraint again.
5986 2013-02-20 Richard Biener <rguenther@suse.de>
5988 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
5990 (get_use_iv_cost): Terminate hashtable walk when coming across
5993 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
5995 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
5996 reassociation for avx2 targets.
5998 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6000 * config/microblaze/microblaze.c: microblaze_has_clz = 0
6001 Add version check for v8.10.a to enable microblaze_has_clz
6002 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
6003 version and TARGET_PATTERN_COMPARE check
6004 * config/microblaze/microblaze.md: New clzsi2 instruction
6006 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6008 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
6009 function before branching.
6011 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6013 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
6015 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
6017 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6020 * sel-sched.c: Include ira.h.
6021 (implicit_clobber_conflict_p): New function.
6022 (moveup_expr): Use it.
6023 * Makefile.in (sel-sched.o): Depend on ira.h.
6025 2013-02-19 Richard Biener <rguenther@suse.de>
6027 PR tree-optimization/56384
6028 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
6029 (vn_hash_type): Split out from ...
6030 (vn_hash_constant_with_type): ... here.
6031 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
6032 (vn_phi_eq): Compare types from vn_phi_s structure.
6033 (vn_phi_lookup): Populate vn_phi_s type.
6034 (vn_phi_insert): Likewise.
6036 2013-02-19 Jakub Jelinek <jakub@redhat.com>
6038 PR tree-optimization/56350
6039 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
6040 if haven't found reduction or nested cycle operand, rather than
6041 asserting we must find it.
6043 PR tree-optimization/56381
6044 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
6047 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
6048 Jakub Jelinek <jakub@redhat.com>
6051 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
6052 (swap_optab_enable): Same.
6053 (init_all_optabs): Use argument instead of global.
6054 * tree.h (struct tree_optimization_option): New field target_optabs.
6055 * expr.h (init_all_optabs): Add argument to prototype.
6056 (TREE_OPTIMIZATION_OPTABS): New.
6057 (save_optabs_if_changed): Protoize.
6058 * optabs.h: Declare this_fn_optabs.
6059 * optabs.c (save_optabs_if_changed): New.
6060 Declare this_fn_optabs.
6061 (init_optabs): Add argument to init_all_optabs() call.
6062 * function.c (invoke_set_current_function_hook): Handle per
6064 * function.h (struct function): New field optabs.
6065 * config/mips/mips.c (mips_set_mips16_mode): Handle when
6066 optimization_current_node has changed.
6067 * target-globals.h (save_target_globals_default_opts): Protoize.
6068 * target-globals.c (save_target_globals_default_opts): New.
6070 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6073 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
6074 registers %fr12 and %fr12R as call used.
6077 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
6078 and HImode, require all displacements to be an integer multiple of
6080 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
6081 only allow QImode and HImode when reload is in progress and strict is
6082 true. Likewise for symbolic addresses. Use base14_operand to check
6083 displacements in REG+BASE addresses.
6085 2013-02-18 Richard Biener <rguenther@suse.de>
6087 PR tree-optimization/56366
6088 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6089 handle sign-conversion of outer-loop initial induction value.
6091 2013-02-18 Richard Biener <rguenther@suse.de>
6094 * cfghooks.c (merge_blocks): If we merge a latch into another
6095 block adjust references to it.
6096 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
6097 (verify_loop_structure): Verify that a recorded latch is in fact
6100 2013-02-18 Richard Biener <rguenther@suse.de>
6102 PR tree-optimization/56321
6103 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
6104 order SSA name release and virtual operand unlinking.
6106 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6108 * config/microblaze/microblaze.md (save_stack_block): Define.
6109 (restore_stack_block): Likewise.
6111 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6113 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
6114 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
6115 * config/microblaze/microblaze.c (microblaze_option_override):
6116 Bail out early for PIC modes when target does not support PIC.
6118 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6120 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
6121 Replace with a microblaze version.
6122 (microblaze_trampoline_init): Adapt for microblaze.
6123 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
6126 2013-02-16 Jakub Jelinek <jakub@redhat.com>
6127 Dodji Seketeli <dodji@redhat.com>
6130 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
6131 (instrument_mem_region_access): Do not forget to always put
6132 instrumentation of the of 'base' and 'base + len' in a "if (len !=
6133 0) statement, even for cases where either 'base' or 'base + len'
6134 are not instrumented -- because they have been previously
6135 instrumented. Simplify the logic by putting all the statements
6136 instrument 'base + len' inside a sequence, and then insert that
6137 sequence right before the current insertion point. Then, to
6138 instrument 'base + len', just get an iterator on that statement.
6139 And do not forget to update the pointer to iterator the function
6140 received as argument.
6142 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
6144 PR rtl-optimization/56348
6145 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
6147 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
6149 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
6150 (clean_graph_dump_file): Pass base to start_graph_dump.
6152 2013-02-14 Richard Henderson <rth@redhat.com>
6155 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
6157 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
6159 * collect2-aix.h: Define F_LOADONLY.
6161 2013-02-14 Richard Biener <rguenther@suse.de>
6164 * varasm.c (output_constant_def_1): Get the decl representing
6165 the constant as argument.
6166 (output_constant_def): Wrap output_constant_def_1.
6167 (make_decl_rtl): Use output_constant_def_1 with the decl
6168 representing the constant.
6169 (build_constant_desc): Optionally re-use a decl already
6170 representing the constant.
6171 (tree_output_constant_def): Adjust.
6173 2013-02-14 Dodji Seketeli <dodji@redhat.com>
6176 * asan.c (instrument_builtin_call): Really put the length of the
6177 second source argument into src1_len.
6179 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6181 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
6182 argument. If it is false, don't create edge from then_bb to
6184 (insert_if_then_before_iter): Pass true to it.
6185 (build_check_stmt): Pass false to it.
6186 (transform_statements): Flush hash table only on extended basic
6187 block boundaries, rather than at the beginning of every bb.
6188 Don't flush hash table on nonfreeing_call_p calls.
6189 * tree-flow.h (nonfreeing_call_p): New prototype.
6190 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
6192 2013-02-13 David S. Miller <davem@davemloft.net>
6194 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
6196 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
6199 * ira.c (max_regno_before_ira): Move from ...
6201 (fix_reg_equiv_init): Use max_regno_before_ira instead of
6204 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6206 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
6208 2013-02-13 Richard Biener <rguenther@suse.de>
6211 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
6212 globals in MEM_REFs.
6214 2013-02-13 Richard Biener <rguenther@suse.de>
6216 * loop-init.c (loop_optimizer_init): Clear loop state when
6217 re-initializing preserved loops.
6218 * loop-unswitch.c (unswitch_single_loop): Return whether
6219 we unswitched the loop. Do not verify loop state here.
6220 (unswitch_loops): When we unswitched a loop discover new loops.
6222 2013-02-13 Kostya Serebryany <kcc@google.com>
6224 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
6226 * sanitizer.def: Rename __asan_init to __asan_init_v1.
6228 2013-02-12 Dodji Seketeli <dodji@redhat.com>
6230 Avoid instrumenting duplicated memory access in the same basic block
6231 * Makefile.in (asan.o): Add new dependency on hash-table.h
6232 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
6233 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
6234 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
6235 (free_mem_ref_resources, has_mem_ref_been_instrumented)
6236 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
6237 (get_mem_ref_of_assignment): New functions.
6238 (get_mem_refs_of_builtin_call): Extract from
6239 instrument_builtin_call and tweak a little bit to make it fit with
6241 (instrument_builtin_call): Use the new
6242 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
6243 of is_gimple_builtin_call.
6244 (instrument_derefs, instrument_mem_region_access): Insert the
6245 instrumented memory reference into the hash table.
6246 (maybe_instrument_assignment): Renamed instrument_assignment into
6247 this, and change it to advance the iterator when instrumentation
6248 actually happened and return true in that case. This makes it
6249 homogeneous with maybe_instrument_assignment, and thus give a
6250 chance to callers to be more 'regular'.
6251 (transform_statements): Clear the memory reference hash table
6252 whenever we enter a new BB, when we cross a function call, or when
6253 we are done transforming statements. Use
6254 maybe_instrument_assignment instead of instrumentation. No more
6255 need to special case maybe_instrument_assignment and advance the
6256 iterator after calling it; it's now handled just like
6257 maybe_instrument_call. Update comment.
6259 2013-02-13 Richard Biener <rguenther@suse.de>
6261 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6262 Fix loop discovery code.
6264 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
6267 * lra-constraints.c (process_alt_operands): Match early clobber
6268 operand with itself. Check conflicts with earlyclobber only if
6269 the operand is not reloaded. Prefer to reload conflicting operand
6270 if earlyclobber and matching operands are the same.
6272 2013-02-12 Richard Biener <rguenther@suse.de>
6275 * lto-streamer-out.c (write_symbol): Do not output symbols
6276 for hard register variables.
6278 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
6281 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
6282 (umulsidi3_insn, mulsidi3_insn): New insns.
6284 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
6286 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
6287 (struct tune_params): Add vec_costs field.
6288 * config/arm/arm.c (arm_builtin_vectorization_cost)
6289 (arm_add_stmt_cost): New functions.
6290 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
6291 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
6292 (arm_default_vec_cost): New struct of type cpu_vec_costs.
6293 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6294 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
6295 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
6296 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
6298 2013-02-12 Richard Biener <rguenther@suse.de>
6301 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
6302 decls again if possible.
6304 2013-02-12 Richard Biener <rguenther@suse.de>
6307 * tree-ssa.c (verify_ssa_name): Fix check, move
6308 SSA_NAME_IN_FREE_LIST check up.
6310 2013-02-12 Jakub Jelinek <jakub@redhat.com>
6311 Steven Bosscher <steven@gcc.gnu.org>
6313 PR rtl-optimization/56151
6314 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
6315 equal to op0 or op1, and last_insn pattern is CODE operation
6316 with MEM dest and one of the operands matches that MEM.
6318 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
6320 * doc/extend.texi: Document Function Multiversioning and "default"
6321 parameter string to target attribute.
6322 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
6323 target attribute parameter is "default".
6324 (ix86_compare_version_priority): Remove checks for target attribute.
6325 (ix86_mangle_function_version_assembler_name): Change error to sorry.
6326 Remove check for target attribute equal to NULL. Add assert.
6327 (ix86_generate_version_dispatcher_body): Change error to sorry.
6329 2013-02-11 Iain Sandoe <iain@codesourcery.com>
6330 Jack Howarth <howarth@bromo.med.uc.edu>
6331 Patrick Marlier <patrick.marlier@gmail.com>
6334 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
6335 define ENDFILE_SPEC as TM_DESTRUCTOR.
6336 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
6338 2013-02-11 Alexander Potapenko <glider@google.com>
6339 Jack Howarth <howarth@bromo.med.uc.edu>
6340 Jakub Jelinek <jakub@redhat.com>
6343 * config/darwin.c (cdtor_record): Rename ctor_record.
6344 (sort_cdtor_records): Rename sort_ctor_records.
6345 (finalize_dtors): New routine to sort destructors by
6346 priority before use in assemble_integer.
6347 (machopic_asm_out_destructor): Use finalize_dtors if needed.
6349 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
6351 PR rtl-optimization/56275
6352 * simplify-rtx.c (avoid_constant_pool_reference): Check that
6353 offset is non-negative and less than cmode size before
6354 calling simplify_subreg.
6356 2013-02-11 Richard Biener <rguenther@suse.de>
6358 PR tree-optimization/56264
6359 * cfgloop.h (fix_loop_structure): Adjust prototype.
6360 * loop-init.c (fix_loop_structure): Return the number of
6361 newly discovered loops.
6362 * tree-cfgcleanup.c (repair_loop_structures): When new loops
6363 are discovered, do a full loop-closed SSA rewrite.
6365 2013-02-11 Richard Biener <rguenther@suse.de>
6367 PR tree-optimization/56273
6368 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6370 (check_array_ref): Fix missing newline in dumps.
6371 (search_for_addr_array): Likewise.
6373 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
6375 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
6377 2013-02-09 Jakub Jelinek <jakub@redhat.com>
6380 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
6382 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
6384 PR rtl-optimization/56246
6385 * lra-constraints.c (simplify_operand_subreg): Try to reuse
6387 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
6388 constraints are satisfied.
6390 2013-02-08 Jeff Law <law@redhat.com>
6393 * emit-rtl.c (reg_is_parm_p): New function.
6394 * regs.h (reg_is_parm_p): New prototype.
6395 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
6396 callee-clobbered registers.
6398 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6401 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
6402 If there is no implicit builtin declaration, just return NULL.
6404 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6406 * config/i386/sse.md (FMAMODEM): New mode iterator.
6407 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
6408 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
6410 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6412 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
6413 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
6414 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
6416 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6418 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
6419 (microblaze*-*-elf): Likewise.
6420 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
6422 * config/microblaze/microblaze-c.c: Add builtin defines for
6423 _LITTLE_ENDIAN and _BIG_ENDIAN.
6424 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
6425 add to TARGET_DEFAULT flags.
6426 Expand ASM_SPEC and LINK_SPEC.
6427 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6428 * config/microblaze/microblaze.md: Update extendsidi2 and
6429 movdi_internal instructions to use low-order / high-order reg
6431 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
6432 options and inversemask / mask of LITTLE_ENDIAN.
6433 * config/microblaze/t-microblaze: Expand multilib options to
6434 include mlittle-endian (le) and update exceptions patterns.
6436 2013-02-08 Jakub Jelinek <jakub@redhat.com>
6438 PR rtl-optimization/56195
6439 * lra-constraints.c (get_reload_reg): Don't reuse regs
6440 if they have smaller mode than requested, if they have
6441 wider mode than requested, try to return a SUBREG.
6443 PR tree-optimization/56250
6444 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
6445 if type is unsigned and code isn't MULT_EXPR.
6447 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6449 PR tree-optimization/56064
6450 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
6451 bits according to mode.
6452 * fixed-value.h (fixed_from_double_int)
6453 (const_fixed_from_double_int): Adjust comments.
6455 2013-02-08 Richard Biener <rguenther@suse.de>
6458 * lto-streamer.h (struct data_in): Remove current_file, current_line
6459 and current_col members.
6460 * lto-streamer-out.c (lto_output_location): Stream changed bits
6461 en-block for efficiency.
6462 * lto-streamer-in.c (clear_line_info): Remove.
6463 (lto_input_location): Cache current file, line and column
6464 globally via local statics. Read changed bits en-block.
6465 (input_function): Do not call clear_line_info.
6466 (lto_read_body): Likewise.
6467 (lto_input_toplevel_asms): Likewise.
6469 2013-02-08 Michael Matz <matz@suse.de>
6471 PR tree-optimization/52448
6472 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
6473 (nt_call_phase): New static.
6474 (add_or_mark_expr): Only mark accesses with newer phase than any
6476 (nonfreeing_call_p): New.
6477 (nt_init_block): Update nt_call_phase, mark blocks as visited.
6478 (nt_fini_block): Keep blocks marked as visited.
6479 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
6481 2013-02-08 Richard Biener <rguenther@suse.de>
6483 * ira.c (ira): Free broken dominator information.
6485 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6487 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
6489 2013-02-08 Marek Polacek <polacek@redhat.com>
6491 * cfgloop.c (verify_loop_structure): Add more checking of headers.
6493 2013-02-08 Richard Biener <rguenther@suse.de>
6496 * cfgloop.h (flow_loops_find): Adjust.
6497 (bb_loop_header_p): Declare.
6498 * cfgloop.c (bb_loop_header_p): New function split out from ...
6499 (flow_loops_find): ... here. Adjust function signature,
6500 support incremental loop structure update.
6501 (verify_loop_structure): Cleanup. Verify a loop is a loop.
6502 * cfgloopmanip.c (fix_loop_structure): Move ...
6503 * loop-init.c (fix_loop_structure): ... here.
6504 (apply_loop_flags): Split out from ...
6505 (loop_optimizer_init): ... here.
6506 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
6507 in incremental mode, only remove dead loops here.
6509 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6512 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
6513 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
6514 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
6515 (*round<mode>3.libgcc): New insns for fixed-modes.
6516 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
6517 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
6518 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
6519 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
6520 implementations. Define to __builtin_avr_absFX,
6521 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
6522 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
6523 __builtin_avr_countlsFX, respectively.
6524 * config/avr/avr-c.c (target.h): Include it.
6525 (enum avr_builtin_id): New enum.
6526 (avr_resolve_overloaded_builtin): New static function.
6527 (avr_register_target_pragmas): Use it to set
6528 targetm.resolve_overloaded_builtin.
6529 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
6530 tree nodes used by DEF_BUILTIN.
6531 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
6532 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
6533 <AVR_BUILTIN_xxBITS>: Same.
6535 2013-02-08 Richard Biener <rguenther@suse.de>
6537 * cfgloop.c (verify_loop_structure): Properly handle
6538 a loop exiting to another loop header.
6539 * ira-int.h (ira_loops): Remove.
6540 * ira.c (ira_loops): Remove.
6541 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
6542 (do_reload): Use loop_optimizer_finalize.
6543 * ira-build.c (create_loop_tree_nodes): Use get_loops and
6544 number_of_loops to access the loop tree.
6545 (more_one_region_p): Likewise.
6546 (finish_loop_tree_nodes): Likewise.
6547 (rebuild_regno_allocno_maps): Likewise.
6548 (mark_loops_for_removal): Likewise.
6549 (mark_all_loops_for_removal): Likewise.
6550 (remove_unnecessary_regions): Likewise.
6551 (ira_build): Likewise.
6552 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6554 2013-02-08 Richard Biener <rguenther@suse.de>
6556 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
6557 * ipa-pure-const.c (analyze_function): Avoid calling
6558 mark_irreducible_loops twice.
6559 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
6561 2013-02-07 David S. Miller <davem@davemloft.net>
6563 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
6565 * var-tracking.c (vt_add_function_parameter): Test the presence of
6566 HAVE_window_save properly and do not remap argument registers when
6567 we have a leaf function.
6569 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
6572 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
6574 * config/i386/i386.c (ix86_print_operand): Ditto.
6576 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6578 * lra-constraints.c (process_alt_operands): Fix recently added comment.
6580 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6582 PR rtl-optimization/56225
6583 * lra-constraints.c (process_alt_operands): Check that reload hard
6584 reg can hold value for strict_low_part.
6586 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6589 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
6590 dwarf2out_end_function.
6591 (in_first_function_p, maybe_at_text_label_p,
6592 first_loclabel_num_not_at_text_label): New variables.
6593 (dwarf2out_var_location): In the first function find out
6594 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
6595 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
6598 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
6600 PR rtl-optimization/56178
6601 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
6602 SUBREG of a register. Tidy up related block of code.
6603 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
6604 note if the source is a register or a SUBREG of a register.
6606 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6609 * config/rs6000/rs6000.md (ptrm): New mode attr.
6610 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
6611 call_value_indirect_aix<pttrsize>,
6612 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
6615 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6617 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
6618 if -bnortl. Convert to strcmp and strncmp.
6620 2013-02-07 Alan Modra <amodra@gmail.com>
6623 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
6624 addresses won't wrap when offsetting.
6625 (rs6000_secondary_reload): Provide secondary reloads needed for
6626 wrapping LO_SUM addresses.
6628 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
6630 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
6631 MACH, just __MACH__.
6633 2013-02-06 Richard Biener <rguenther@suse.de>
6635 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
6636 instead of calling fix_loop_structure.
6638 2013-02-06 Jakub Jelinek <jakub@redhat.com>
6641 * omp-low.c (use_pointer_for_field): Return false if
6642 lower_send_shared_vars doesn't generate any copy-out code.
6644 2013-02-06 Tom de Vries <tom@codesourcery.com>
6646 PR rtl-optimization/56131
6647 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
6648 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
6649 of the label is NULL. Add comment.
6651 2013-02-05 Jakub Jelinek <jakub@redhat.com>
6653 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
6656 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
6657 (STATIC_LIBTSAN_LIBS): Likewise.
6658 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
6659 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
6660 is defined, don't add anything else beyond that.
6661 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
6662 (LINK_COMMAND_SPEC): Use them.
6664 PR tree-optimization/56205
6665 * tree-stdarg.c (check_all_va_list_escapes): Return true if
6666 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
6667 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
6669 2013-02-05 Richard Biener <rguenther@suse.de>
6671 PR tree-optimization/53342
6672 PR tree-optimization/53185
6673 * tree-vectorizer.h (vect_check_strided_load): Remove.
6674 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
6675 not disallow peeling for vectorized strided loads.
6676 (vect_check_strided_load): Make static and simplify.
6677 (vect_analyze_data_refs): Adjust.
6678 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
6679 correctly when vectorizing strided loads.
6681 2013-02-05 Richard Biener <rguenther@suse.de>
6683 * doc/install.texi: Refer to ISL, not PPL.
6685 2013-02-05 Jan Hubicka <jh@suse.cz>
6687 PR tree-optimization/55789
6688 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
6690 2013-02-05 Jan Hubicka <jh@suse.cz>
6692 PR tree-optimization/55789
6693 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
6694 the dead call anyway.
6696 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
6699 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
6701 2013-02-04 Alexander Potapenko <glider@google.com>
6702 Jack Howarth <howarth@bromo.med.uc.edu>
6703 Jakub Jelinek <jakub@redhat.com>
6706 * config/darwin.c (sort_ctor_records): Stabilized qsort
6707 on constructor priority by using original position.
6708 (finalize_ctors): New routine to sort constructors by
6709 priority before use in assemble_integer.
6710 (machopic_asm_out_constructor): Use finalize_ctors if needed.
6712 2013-02-04 Jakub Jelinek <jakub@redhat.com>
6715 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
6716 about visibility on artificial decls.
6717 * config/sol2.c (solaris_assemble_visibility): Likewise.
6719 2013-02-04 Kai Tietz <ktietz@redhat.com>
6722 * config/i386/i386.c (function_value_ms_64): Add additional valtype
6723 argument and improve checking of return-argument types for 16-byte
6725 (ix86_function_value_1): Add additional valtype argument on call
6726 of function_value_64.
6727 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
6728 handling infunction_value_64 function.
6730 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
6732 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
6734 2013-02-04 Richard Biener <rguenther@suse.de>
6736 PR tree-optimization/56188
6737 * tree-ssa-structalias.c (label_visit): Consider case with
6738 initially non-empty points-to set.
6739 (perform_var_substitution): Dump node mapping and clean up.
6741 2013-02-04 Richard Guenther <rguenther@suse.de>
6744 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
6745 node prevail as last resort.
6746 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6747 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
6749 2013-02-04 Richard Biener <rguenther@suse.de>
6751 PR tree-optimization/56113
6752 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
6754 (equiv_class_lookup_or_add): ... this.
6755 (label_visit): Adjust and fix error in previous patch.
6756 (perform_var_substitution): Adjust.
6758 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
6760 * config/sh/divtab.c: Fix formatting and comments throughout the file.
6761 * config/sh/sh4-300.md: Likewise.
6762 * config/sh/sh4a.md: Likewise.
6763 * config/sh/constraints.md: Likewise.
6764 * config/sh/sh.md: Likewise.
6765 * config/sh/netbsd-elf.h: Likewise.
6766 * config/sh/predicates.md: Likewise.
6767 * config/sh/sh-protos.h: Likewise.
6768 * config/sh/ushmedia.h: Likewise.
6769 * config/sh/linux.h: Likewise.
6770 * config/sh/sh.c: Likewise.
6771 * config/sh/superh.h: Likewise.
6772 * config/sh/elf.h: Likewise.
6773 * config/sh/sh4.md: Likewise.
6774 * config/sh/sh.h: Likewise.
6776 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6778 * config/pa/constraints.md: Adjust unused letters. Change "T"
6779 constraint to match_test floating_point_store_memory_operand().
6780 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
6781 (base14_operand): New.
6782 (floating_point_store_memory_operand): New.
6783 (integer_store_memory_operand): Revise to use base14_operand and
6784 reg_plus_base_memory_operand.
6785 (move_dest_operand): Allow symbolic_memory_operands.
6786 (symbolic_memory_operand): Check for LO_SOM.
6787 (symbolic_operand): Change default case to break.
6788 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
6789 CONST_DOUBLE values to be reloaded by putting them into memory when
6790 the destination is a floating point register.
6791 (movdf): Remove code to handle CONST_DOUBLE.
6793 (reload_indf_r1): New.
6794 (reload_insf_r1): New.
6795 Consistently use "Q" and "T" constraints with integer and floating
6796 point move instructions, respectively.
6797 (movdi): Remove FAIL.
6798 Change predicate for source operand unamed DImode move from
6799 general_operand to move_src_operand.
6800 (umulsidi3): Change predicate for destination operand to
6802 Likewise for similar unamed patterns.
6803 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
6804 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
6805 (hppa_legitimize_address): Simplify mask calculation.
6806 (pa_emit_move_sequence): Revised handling of secondary reloads from
6807 REG+D addresses for floating point loads and stores. Directly handle
6808 loading CONST0_RTX (mode) to a floating point register.
6809 (pa_secondary_reload): Handle reloading DF and SFmode constant values
6810 to floating point registers. Don't restrict secondary reloads to
6811 floating point registers to integer modes. Revise some comments and
6813 (TARGET_LEGITIMATE_ADDRESS_P): Define.
6814 (pa_legitimate_address_p): New.
6815 (pa_legitimize_reload_address): New.
6816 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
6817 (STRICT_REG_OK_FOR_BASE_P): New.
6818 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
6819 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
6821 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
6822 Andrew Dixie <andrewd@gentrack.com>
6824 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
6827 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
6829 * expmed.c (extract_bit_field_1): Pass the full width of the
6830 structure to get_best_reg_extraction_insn.
6832 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
6835 * configure.ac (use_cxa_atexit): Add AIX.
6836 * configure: Regenerate.
6838 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
6840 2013-02-01 Jakub Jelinek <jakub@redhat.com>
6843 * final.c (need_profile_function): New variable.
6844 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
6845 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
6846 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
6847 notes, targetm.asm_out.function_prologue doesn't emit anything,
6848 HAVE_prologue and profiler should be emitted before prologue,
6849 set need_profile_function instead of emitting it.
6850 (final_scan_insn): If need_profile_function, emit
6851 profile_function on the first NOTE_INSN_BASIC_BLOCK or
6852 NOTE_INSN_FUNCTION_BEG note.
6854 2013-02-01 Richard Henderson <rth@redhat.com>
6856 * config/rs6000/rs6000.md (smulditi3): New.
6859 * config/alpha/alpha.md (umulditi3): New.
6861 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
6863 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
6864 (ASM_OUTPUT_ALIGNED_LOCAL): New.
6866 2013-02-01 Richard Biener <rguenther@suse.de>
6868 PR tree-optimization/56113
6869 * tree-ssa-structalias.c (label_visit): Reduce work for
6870 single-predecessor nodes.
6872 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
6874 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
6875 range isn't testing for zero.
6877 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
6880 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
6882 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
6883 Nick Clifton <nickc@redhat.com>
6885 * config/v850/constraints.md (Q): Define as a memory constraint.
6886 * config/v850/predicates.md (label_ref_operand): New predicate.
6887 (e3v5_shift_operand): New predicate.
6888 (ior_operator): New predicate.
6889 * config/v850/t-v850: Add e3v5 multilib.
6890 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
6891 (v850_gen_movdi): Prototype.
6892 * config/v850/v850.c: Add support for e3v5 architecture.
6893 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
6895 (construct_save_jarl): Add e3v5 long JARL support.
6896 (v850_adjust_insn_length): New function. Adjust length of call
6897 insns when using e3v5 instructions.
6898 (v850_gen_movdi): New function: Generate instructions to move a
6900 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
6901 (CPP_SPEC): Define __v850e3v5__ as appropriate.
6902 (TARGET_USE_FPU): Enable for e3v5.
6903 (CONST_OK_FOR_W): New macro.
6904 (ADJUST_INSN_LENGTH): Define.
6905 * config/v850/v850.md (UNSPEC_LOOP): Define.
6906 (attr cpu): Add v850e3v5.
6907 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
6908 (movdi): New pattern.
6909 (movdi_internal): New pattern.
6910 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
6911 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
6912 (cstoresf4): Likewise.
6913 (cstoredf4): Likewise.
6914 (insv): New pattern.
6915 (rotlso3_a): New pattern.
6916 (rotlsi3_b): New pattern
6917 (rotlsi3_v850e3v5): New pattern.
6918 (doloop_begin): New pattern.
6919 (fix_loop_counter): New pattern.
6920 (doloop_end): New pattern.
6921 (branch_normal): Add e3v5 long branch support.
6922 (branch_invert): Likewise.
6923 (branch_z_normal): Likewise.
6924 (branch_z_invert): Likewise.
6925 (branch_nz_normal): Likewise.
6926 (branch_nz_invert): Likewise.
6927 (call_internal_short): Add e3v5 register-indirect JARL support.
6928 (call_internal_long): Likewise.
6929 (call_value_internal_short): Likewise.
6930 (call_value_internal_long): Likewise.
6931 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
6932 (mloop): New option.
6933 * config.gcc: Add support for configuring v840e3v5 target.
6934 * doc/invoke.texi: Document new v850 specific command line options.
6936 2013-01-31 Paul Koning <ni1d@arrl.net>
6940 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
6941 children if parent is a class.
6942 (prune_unused_types_prune): Don't add DW_AT_declaration.
6944 2013-01-31 Richard Biener <rguenther@suse.de>
6946 PR tree-optimization/56157
6947 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
6948 match up operand with SLP child.
6950 2013-01-31 Jason Merrill <jason@redhat.com>
6953 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
6954 parameters the first time.
6955 (gen_scheduled_generic_parms_dies): Check completeness here.
6957 2013-01-31 Richard Biener <rguenther@suse.de>
6960 * common.opt (faggressive-loop-optimizations): New flag,
6962 * doc/invoke.texi (faggressive-loop-optimizations): Document.
6963 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
6964 infer_loop_bounds_from_undefined by it.
6966 2013-01-31 Richard Biener <rguenther@suse.de>
6968 PR tree-optimization/56150
6969 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
6970 visit virtual operands.
6971 (find_uses_to_rename_bb): Likewise.
6973 2013-01-31 Richard Biener <rguenther@suse.de>
6975 PR tree-optimization/56150
6976 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
6977 mixed store non-store stmts.
6979 2013-01-30 Jakub Jelinek <jakub@redhat.com>
6982 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
6983 LIBASAN_EARLY_SPEC is defined.
6984 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
6985 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
6987 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
6990 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
6991 invalid args instead of ICEing on it.
6992 (ix86_valid_target_attribute_tree): Return error_mark_node if
6993 ix86_valid_target_attribute_inner_p failed.
6994 (ix86_valid_target_attribute_p): Return false only if
6995 ix86_valid_target_attribute_tree returned error_mark_node. Allow
6996 target("default") attribute.
6997 (sorted_attr_string): Change argument from const char * to tree,
6998 merge in all target attribute arguments rather than just one.
6999 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
7000 instead of free. Avoid using strcat.
7001 (ix86_mangle_function_version_assembler_name): Mangle
7002 target("default") as if no target attribute is present. Adjust
7003 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
7004 instead of xmalloc and XDELETEVEC instead of free.
7005 (ix86_function_versions): Don't return true if one of the decls
7006 doesn't have target attribute. If they don't and one of the decls
7007 is DECL_FUNCTION_VERSIONED, report an error. Adjust
7008 sorted_attr_string caller. Use XDELETEVEC instead of free.
7009 (ix86_supports_function_versions): Remove.
7010 (make_name): Fix up formatting.
7011 (make_dispatcher_decl): Remove resolver_name and its initialization.
7012 Avoid leaking memory.
7013 (is_function_default_version): Return true if there is
7014 target("default") attribute rather than no target attribute at all.
7015 (make_resolver_func): Avoid leaking memory.
7016 (ix86_generate_version_dispatcher_body): Likewise.
7017 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
7018 * target.def (supports_function_versions): Remove.
7019 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
7020 * doc/tm.texi: Regenerated.
7022 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
7024 PR rtl-optimization/56144
7025 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
7026 for values with side effects.
7028 2013-01-30 Richard Biener <rguenther@suse.de>
7030 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
7031 (sparseset_pop): Likewise.
7032 * cfganal.c (compute_idf): Likewise. Increase work-stack size
7033 to be able to use quick_push in the worker loop.
7035 2013-01-30 Marek Polacek <polacek@redhat.com>
7037 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
7039 2013-01-30 Richard Biener <rguenther@suse.de>
7042 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
7044 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
7046 PR tree-optimization/56064
7047 * fixed-value.c (fixed_from_double_int): New function.
7048 * fixed-value.h (fixed_from_double_int): New prototype.
7049 (const_fixed_from_double_int): New static inline function.
7050 * fold-const.c (native_interpret_fixed): New static function.
7051 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
7052 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
7053 (native_encode_fixed): New static function.
7054 (native_encode_expr) <FIXED_CST>: Use it.
7055 (native_interpret_int): Move double_int worker code to...
7056 * double-int.c (double_int::from_buffer): ...this new static method.
7057 * double-int.h (double_int::from_buffer): Prototype it.
7059 2013-01-30 Richard Biener <rguenther@suse.de>
7061 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
7062 New pointer-map and obstack.
7063 (init_alias_vars): Allocate pointer-map and obstack.
7064 (delete_points_to_sets): Free them.
7065 (find_what_var_points_to): Cache result.
7066 (find_what_p_points_to): Adjust for changed interface of
7067 find_what_var_points_to.
7068 (compute_points_to_sets): Likewise.
7069 (ipa_pta_execute): Likewise.
7071 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7073 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
7074 * configure: Regenerate.
7075 * config.in: Regenerate.
7076 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
7077 #nobits/#progbits if supported.
7079 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
7082 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
7083 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
7084 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
7086 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7088 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
7089 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7091 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7093 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
7094 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
7096 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7098 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
7100 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
7101 * config/arm/cortex-a7.md: New bypasses using
7102 arm_mac_accumulator_is_result.
7104 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7106 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
7107 (cortex_a7_neon_mla): Likewise.
7108 (cortex_a7_fpfmad): New reservation.
7109 (cortex_a7_fpmacs): Use ffmas and update required units.
7110 (cortex_a7_fpmuld): Update required units and latency.
7111 (cortex_a7_fpmacd): Likewise.
7112 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
7113 (cortex_a7_neon). Likewise.
7114 (bypass) Update participating units.
7116 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7118 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
7119 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
7121 * config/arm/vfp11.md (vfp_farith): Use ffmas.
7122 (vfp_fmul): Use ffmad.
7123 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
7124 (cortex_r4_fmacd): Use ffmad.
7125 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
7126 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
7127 (cortex_a9_fmacd): Use ffmad.
7128 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
7129 (cortex_a8_vfp_macd): Use ffmad.
7130 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
7131 (cortex_a5_fpmacd): Use ffmad.
7132 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
7133 (cortex_a15_vfp_macd): Use ffmad.
7134 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
7136 2013-01-29 Jason Merrill <jason@redhat.com>
7139 * varasm.c (default_assemble_visibility): Don't warn about
7140 visibility on artificial decls.
7142 2013-01-29 Richard Biener <rguenther@suse.de>
7144 PR tree-optimization/56113
7145 * tree-ssa-structalias.c (equiv_class_lookup): Also return
7147 (label_visit): Free duplicate bitmaps and record the leader instead.
7148 (perform_var_substitution): Adjust.
7150 2013-01-29 Richard Biener <rguenther@suse.de>
7152 PR tree-optimization/55270
7153 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
7154 the CFG, schedule loops for fixup.
7156 2013-01-29 Nick Clifton <nickc@redhat.com>
7158 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
7161 2013-01-28 Leif Ekblad <leif@rdos.net>
7163 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
7164 * config/i386/i386.h (TARGET_RDOS): New macro.
7165 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
7166 * config/i386/i386.c (ix86_option_override_internal): For 64bit
7167 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
7168 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
7169 DEFAULT_LARGE_SECTION_THRESHOLD.
7170 * config/i386/i386.md (R14_REG, R15_REG): New constants.
7171 * config/i386/rdos.h: New file.
7172 * config/i386/rdos64.h: New file.
7174 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
7177 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
7180 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7182 PR rtl-optimization/56117
7183 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
7184 call cselib_lookup_from_insn on the MEM before calling
7185 add_insn_mem_dependence.
7187 2013-01-28 Richard Biener <rguenther@suse.de>
7189 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
7190 to a stmt that didn't have one.
7191 (copy_phis_for_bb): Likewise for PHI arguments.
7192 (copy_debug_stmt): Likewise for debug stmts.
7194 2013-01-28 Richard Biener <rguenther@suse.de>
7196 PR tree-optimization/56034
7197 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
7198 (partition_builtin_p): Adjust.
7199 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
7200 it is the last partition.
7201 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
7202 up the vertex for the definition.
7203 (classify_partition): Classify whether a partition is a
7204 PKIND_REDUCTION, thus has uses outside of the loop.
7205 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
7206 Merge all PKIND_REDUCTION partitions into the last partition.
7207 (tree_loop_distribution): Seed partitions from reductions as well.
7209 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7211 PR tree-optimization/56125
7212 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
7213 pow(x,c) into sqrt(x) * powi(x, n/2) or
7214 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
7215 optimizing for size.
7216 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
7217 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
7220 PR tree-optimization/56094
7221 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
7222 to UNKNOWN_LOCATION while gimplifying expr.
7224 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
7227 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
7228 operand 0 in movabs insn template for -masm=intel asm alternative.
7229 (*movabs<mode>_2): Ditto for operand 1.
7231 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
7234 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
7237 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7239 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
7242 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7244 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
7245 Undef to avoid warning.
7247 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7249 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
7250 * configure: Regenerate.
7252 2013-01-25 Jakub Jelinek <jakub@redhat.com>
7254 PR tree-optimization/56098
7255 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
7256 for stmts with volatile ops.
7257 (cond_store_replacement): Don't optimize if assign has volatile ops.
7258 (cond_if_else_store_replacement_1): Don't optimize if either
7259 then_assign or else_assign have volatile ops.
7260 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
7263 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7265 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
7267 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7269 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
7270 missing ':' in asm example.
7272 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
7274 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
7275 entries into lane and laneq entries.
7276 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
7277 Remove AdvSIMD scalar modes.
7278 (aarch64_sq<r>dmulh_laneq<mode>): New.
7279 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
7281 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
7282 builtin implementations to relfect changes in RTL in aarch64-simd.md.
7283 * config/aarch64/iterators.md (VCOND): New.
7286 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7289 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
7290 Add NULL LIBNAME argument to existing definitions.
7291 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
7292 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
7293 * config/avr/avr.c (DEF_BUILTIN): Same.
7294 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
7295 (avr_expand_builtin): Expand to a vanilla call if a libgcc
7296 implementation is available (DECL_ASSEMBLER_NAME is set).
7297 (avr_fold_absfx): New static function.
7298 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
7299 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
7300 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
7302 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
7303 (abshk, absk, abslk, absllk): Provide as static inline functions.
7305 2013-01-25 Marek Polacek <polacek@redhat.com>
7307 PR tree-optimization/56035
7308 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
7310 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
7312 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
7313 (*movtf_internal_rex64): Add (!o,C) alternative
7314 (*movxf_internal_rex64): Ditto.
7315 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
7317 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
7319 * doc/invoke.texi: fix typo.
7320 * doc/objc.texi: fix typo.
7322 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
7324 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
7325 for the first two alternatives.
7327 2013-01-24 Diego Novillo <dnovillo@google.com>
7329 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
7330 (ggc-zone.o): Remove.
7331 * configure.ac: Remove option --with-gc.
7332 * configure: Re-generate.
7333 * doc/install.texi: Remove documentation for --with-gc.
7334 * gengtype.c (write_enum_defn): Remove. Update all users.
7335 (write_Types_process_field): Remove generation of gt_e_* argument.
7336 (output_type_enum): Remove. Update all users.
7337 (write_enum_defn): Remove. Update all users.
7338 (enum alloc_zone): Remove. Update all users.
7339 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
7340 * ggc-common.c (ggc_splay_alloc): Remove first argument.
7342 (struct ptr_data): Remove field TYPE. Update all users.
7343 (gt_pch_note_object): Remove argument TYPE. Update all users.
7344 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
7346 * ggc-none.c (ggc_alloc_typed_stat): Remove.
7347 (struct alloc_zone): Remove.
7348 (ggc_internal_alloc_zone_stat): Remove.
7349 (ggc_internal_cleared_alloc_zone_stat): Remove.
7350 * ggc-page.c (ggc_alloc_typed_stat): Remove.
7351 (ggc_pch_count_object): Remove last argument. Update all users.
7352 (ggc_pch_alloc_object): Remove last argument. Update all users.
7353 (struct alloc_zone): Remove.
7354 * ggc-zone.c: Remove.
7355 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
7356 (struct alloc_zone): Remove.
7357 (ggc_alloc_typed_stat): Remove.
7358 (ggc_alloc_typed): Remove.
7359 (ggc_splay_alloc): Remove first argument.
7360 (rtl_zone): Remove. Update all users.
7361 (tree_zone): Remove. Update all users.
7362 (tree_id_zone): Remove. Update all users.
7363 (ggc_internal_zone_alloc_stat): Remove. Update all users.
7364 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
7365 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
7366 * tree-ssanames.c: Remove references to zone allocator in comments.
7368 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
7370 * config/avr/avr.c (avr_out_fract): Make register numbers that
7371 might be outside of source operand signed.
7373 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
7375 * config/i386/constraints.md (Yf): New constraint.
7376 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
7377 of f constraint to conditionaly disable x87 register preferences.
7378 (*movdf_internal): Ditto.
7379 (*movsf_internal): Ditto.
7381 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
7384 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
7385 that have operands with impossible constraints.
7386 Add a FIXME for a speed-up opportunity.
7387 * lra-constraints.c (process_alt_operands): Verify that a class
7388 selected from constraints on asms is valid for the operand mode.
7389 (curr_insn_transform): Remove incorrect comment.
7391 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
7393 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
7394 TOC operand is a valid symbol ref in the constant pool.
7396 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7398 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
7400 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
7403 * config/avr/stdfix.h: New file.
7404 * t-avr (stdfix-gcc.h): New rule to build it.
7405 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
7407 2013-01-23 Kostya Serebryany <kcc@google.com>
7409 * config/darwin.h: remove dependency on
7410 CoreFoundation (asan on Mac OS).
7412 2013-01-23 Jakub Jelinek <jakub@redhat.com>
7415 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
7416 instead of cmpdi_operand for first comparison operand.
7417 Don't assert that comparison operands aren't both constants.
7419 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7421 * doc/install.texi (Downloading the Source): Update references to
7422 downloading separate components.
7424 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7426 * doc/extend.texi (__int128): Improve grammar.
7428 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
7431 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
7432 alternative to (o,r).
7433 (*movdi_internal_rex64): Remove (!o,n) alternative.
7434 (DImode immediate->memory splitter): Remove.
7435 (DImode immediate->memory peephole2): Remove.
7436 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
7437 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
7438 alternative to (!o,*r).
7439 (*movtf_internal_sse): New pattern.
7440 (*movxf_internal_rex64): New pattern.
7441 (*movxf_internal): Disable for TARGET_64BIT.
7442 (*movdf_internal_rex64): Remove (!o,F) alternative.
7444 2013-01-22 Jakub Jelinek <jakub@redhat.com>
7447 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
7448 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
7449 * tree-vect-loop-manip.c (find_loop_location): Also ignore
7450 stmt locations where LOCATION_LOCUS of the stmt location is
7451 UNKNOWN_LOCATION or BUILTINS_LOCATION.
7454 * config/i386/i386.md (UNSPEC_STOS): New.
7455 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
7456 *strsetqi_1): Add UNSPEC_STOS.
7458 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
7461 * doc/invoke.texi: Remove left over -Wsynth example.
7463 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7465 PR tree-optimization/56051
7466 * fold-const.c (fold_binary_loc): Don't fold
7467 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
7468 a narrowing conversion, or widening conversion from signed
7471 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7473 PR rtl-optimization/56023
7474 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
7475 dependent on debug instruction.
7477 2013-01-21 Martin Jambor <mjambor@suse.cz>
7480 * function.c (allocate_struct_function): Call
7481 invoke_set_current_function_hook earlier.
7483 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7485 * reload1.c (init_reload): Only initialize reload_obstack
7486 during the first call.
7488 2013-01-21 Marek Polacek <polacek@redhat.com>
7490 * cfgloop.c (verify_loop_structure): Fix up grammar.
7492 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
7494 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
7495 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
7497 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7500 * config/arm/marvell-pj4.md: Update copyright year.
7501 Fix up use of alu to alu_reg and simple_alu_imm.
7503 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7505 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
7507 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
7510 * lra-constraints.c (curr_insn_transform): Don't reuse original
7511 insn for secondary memory move when memory mode should be different.
7513 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7515 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
7516 atomic_storedi_1): New patterns.
7518 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7520 btver2 pipeline descriptions.
7521 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
7523 * config/i386/i386.md (btver2_decode): New type attributes.
7524 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
7526 * config/i386/btver2.md: New file describing btver2 pipelines.
7528 2013-01-19 Andrew Pinski <apinski@cavium.com>
7530 PR tree-optimization/52631
7531 * tree-ssa-sccvn (visit_use): Before looking up the original
7532 statement, try looking up the simplified expression.
7534 2013-01-19 Anthony Green <green@moxielogic.com>
7536 * config/moxie/moxie.c (moxie_expand_prologue): Set
7537 current_function_static_stack_size.
7539 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7541 PR tree-optimization/56029
7542 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
7543 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
7545 2013-01-18 Sharad Singhai <singhai@google.com>
7547 PR tree-optimization/55995
7548 * dumpfile.c (dump_loc): Print location only if available.
7549 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
7551 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
7554 * lra-constraints.c (curr_insn_transform): Reuse original insn for
7555 secondary memory move.
7556 (inherit_reload_reg): Use rclass instead of cl for
7557 check_secondary_memory_needed_p.
7559 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7562 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
7563 the case where writing real complex part of target modifies op1.
7565 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
7567 * config/aarch64/aarch64-simd.md
7568 (aarch64_vcond_internal<mode>): Handle unordered cases.
7569 * config/aarch64/iterators.md (v_cmp_result): New.
7571 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
7572 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7574 * config/arm/marvell-pj4.md: New file.
7575 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
7576 * config/arm/arm.md (generic_sched): Add marvell_pj4.
7577 (generic_vfp): Likewise.
7578 * config/arm/arm-cores.def: Add marvell-pj4.
7579 * config/arm/arm-tune.md: Regenerate.
7580 * config/arm/arm-tables.opt: Regenerate.
7581 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
7582 * doc/invoke.texi: Document marvell-pj4.
7584 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
7586 * config/aarch64/arm_neon.h: Map scalar types to standard types.
7588 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7593 * var-tracking.c (negative_power_of_two_p): New.
7594 (global_get_addr_cache, local_get_addr_cache): New.
7595 (get_addr_from_global_cache, get_addr_from_local_cache): New.
7596 (vt_canonicalize_addr): Rewrite using the above. Adjust the
7598 (vt_stack_offset_p): Remove.
7599 (vt_canon_true_dep): Always canonicalize loc's address.
7600 (clobber_overlapping_mems): Make sure we have a MEM.
7601 (local_get_addr_clear_given_value): New.
7602 (val_reset): Clear local cached entries.
7603 (compute_bb_dataflow): Create and release the local cache.
7604 Disable duplicate MEMs clobbering.
7605 (emit_notes_in_bb): Clobber MEMs likewise.
7606 (vt_emit_notes): Create and release the local cache.
7607 (vt_initialize, vt_finalize): Create and release the global
7608 cache, respectively.
7609 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
7611 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7614 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
7615 not found in the symtab.
7617 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7620 PR rtl-optimization/55547
7621 PR rtl-optimization/53827
7624 * alias.c (offset_overlap_p): New, factored out of...
7625 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
7626 the conservative special case for symbolic constants. Don't
7627 adjust zero sizes on alignment.
7629 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
7631 PR rtl-optimization/52573
7632 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
7633 REG_UNUSED for the same register.
7635 2013-01-17 Richard Biener <rguenther@suse.de>
7636 Marek Polacek <polacek@redhat.com>
7638 PR rtl-optimization/55833
7639 * loop-unswitch.c (unswitch_loops): Move loop verification...
7640 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
7641 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
7642 Set it to true when we're removing a loop from hierarchy tree in
7643 an irreducible region.
7644 (fix_bb_placements): Adjust caller.
7645 (fix_loop_placements): Likewise.
7647 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
7649 * config/avr/builtins.def (DEF_BUILTIN): Factor out
7650 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
7651 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
7652 Remove ID. Adjust comments.
7653 * config/avr/avr-c.c (avr_builtin_name): Remove.
7654 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
7655 * config/avr/avr.c (avr_tolower): New static function.
7656 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
7657 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
7658 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
7661 2013-01-17 Jan Hubicka <jh@suse.cz>
7663 PR tree-optimization/55273
7664 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
7666 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
7669 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
7670 store through atomic_store<mode>_1.
7671 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
7673 2013-01-17 Martin Jambor <mjambor@suse.cz>
7675 PR tree-optimizations/55264
7676 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
7677 for virtual methods.
7678 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
7679 virtual methods before inlining is over.
7680 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
7682 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
7685 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
7687 PR rtl-optimization/56005
7688 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
7689 pending reads for prefetch.
7691 2013-01-16 Ian Bolton <ian.bolton@arm.com>
7693 * config/aarch64/aarch64.md
7694 (*cstoresi_neg_uxtw): New pattern.
7695 (*cmovsi_insn_uxtw): New pattern.
7696 (*<optab>si3_uxtw): New pattern.
7697 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
7698 (*<optab>si3_insn_uxtw): New pattern.
7699 (*bswapsi2_uxtw): New pattern.
7701 2013-01-16 Richard Biener <rguenther@suse.de>
7703 * tree-inline.c (tree_function_versioning): Remove set but
7704 never used variable.
7706 2013-01-16 Richard Biener <rguenther@suse.de>
7708 PR tree-optimization/55964
7709 * tree-flow.h (rename_variables_in_loop): Remove.
7710 (rename_variables_in_bb): Likewise.
7711 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
7712 (copy_loop_before): Adjust and delete update-ssa status.
7713 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
7714 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
7715 (rename_variables_in_loop): Remove.
7716 (slpeel_update_phis_for_duplicate_loop): Likewise.
7717 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
7718 use available cfg machinery instead of duplicating it.
7719 Update PHI nodes and perform poor-mans SSA update here.
7720 (slpeel_tree_peel_loop_to_edge): Adjust.
7722 2013-01-16 Richard Biener <rguenther@suse.de>
7724 PR tree-optimization/54767
7725 PR tree-optimization/53465
7726 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
7727 (vrp_visit_phi_node): For PHI arguments coming via backedges
7728 drop all symbolical range information.
7729 (execute_vrp): Compute backedges.
7731 2013-01-16 Richard Biener <rguenther@suse.de>
7733 * doc/install.texi: Update CLooG and ISL requirements to
7736 2013-01-16 Christian Bruel <christian.bruel@st.com>
7739 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
7740 (broken_move): Handle UNSPECV_SP_SWITCH_B.
7741 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
7743 2013-01-16 DJ Delorie <dj@redhat.com>
7745 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
7746 (UNSPECV_SP_SWITCH_E): New.
7747 (sp_switch_1): Change to an unspec.
7748 (sp_switch_2): Change to an unspec. Don't use post-inc when we
7751 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
7753 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
7754 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
7755 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
7756 (expand_mem_thread_fence): Ditto.
7757 (expand_mem_signal_fence): Ditto.
7758 (expand_atomic_load): Ditto.
7759 (expand_atomic_store): Ditto.
7761 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
7763 PR rtl-optimization/55547
7764 PR rtl-optimization/53827
7767 * alias.c (memrefs_conflict_p): Set sizes to negative after
7770 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7773 * function.c (thread_prologue_and_epilogue_insns): Always
7774 add crtl->drap_reg to set_up_by_prologue.set, even if
7775 stack_realign_drap is false.
7777 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7779 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
7780 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
7781 *call): Fix indention.
7783 2013-01-15 Tom de Vries <tom@codesourcery.com>
7786 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
7789 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
7791 PR rtl-optimization/55153
7792 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
7794 2013-01-15 Martin Jambor <mjambor@suse.cz>
7796 PR tree-optimization/55920
7797 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
7798 accesses as grp_to_be_debug_replaced.
7800 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7802 PR tree-optimization/55920
7803 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
7804 there is non-useless type conversion needed from debug rhs to lhs,
7805 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
7807 2013-01-15 Joseph Myers <joseph@codesourcery.com>
7808 Mikael Pettersson <mikpe@it.uu.se>
7811 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
7813 (ASM_OUTPUT_CASE_LABEL): Remove.
7814 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
7815 * final.c (shorten_branches): Update alignment of labels before
7816 jump tables if CASE_VECTOR_SHORTEN_MODE.
7818 2013-01-15 Richard Biener <rguenther@suse.de>
7821 * system.h: Do not include gmp.h for building host tools.
7823 2013-01-15 Richard Biener <rguenther@suse.de>
7826 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
7827 account for bitpos when computing alignment.
7829 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
7831 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
7832 (ix86_target_macros_internal): Likewise.
7834 * config/i386/i386.c (m_CORE2I7): Removed.
7835 (m_CORE_HASWELL): New macro.
7836 (m_CORE_ALL): Likewise.
7837 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
7838 (initial_ix86_arch_features): Likewise.
7839 (processor_target_table): Initializations for Core avx2.
7840 (cpu_names): New names "core-avx2".
7841 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
7842 PROCESSOR_CORE_HASWELL.
7843 (ix86_issue_rate): New case.
7844 (ia32_multipass_dfa_lookahead): Likewise.
7845 (ix86_sched_init_global): Likewise.
7847 * config/i386/i386.h (TARGET_HASWELL): New macro.
7848 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
7849 (processor_type): New PROCESSOR_HASWELL.
7851 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7853 PR tree-optimization/55955
7854 * tree-vect-loop.c (vectorizable_reduction): Give up early on
7855 *SHIFT_EXPR and *ROTATE_EXPR codes.
7857 PR tree-optimization/48766
7858 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
7859 -ftrapv disable -fwrapv.
7861 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7864 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
7865 etc. to 1 and not to __flash.
7866 Use LL suffix for __INT24_MAX__ with -mint8.
7867 Use ULL suffix for __UINT24_MAX__ with -mint8.
7869 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7871 * config/avr/avr-arch.h
7872 (struct base_arch_s): Use typedef avr_arch_t instead.
7873 (struct arch_info_s): Use typedef avr_arch_info_t instead.
7874 (struct mcu_type_s): Use typedef avr_mcu_t instead.
7875 * config/avr/avr.c: Same.
7876 * config/avr/avr-devices.c: Same.
7877 * config/avr/driver-avr.c: Same.
7878 * config/avr/gen-avr-mmcu-texi.c: Same.
7879 * config/avr/avr-mcus.def: Adjust comment.
7881 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
7883 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
7884 * config/aarch64/iterators.md (VALLDI): New.
7886 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
7887 Andi Kleen <ak@linux.intel.com>
7890 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
7891 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
7894 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7896 * config/avr/avr-stdint.h: Remove trailing blanks.
7897 * config/avr/avr-log.h: Same.
7898 * config/avr/avr-arch.h: Same.
7899 * config/avr/avr-devices.c: Same.
7900 * config/avr/avr-dimode.md: Same.
7901 * config/avr/predicates.md: Same.
7902 * config/avr/avr-c.c: Same. And fix typo.
7904 * config/avr/avr-protos.h: Same. And:
7905 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
7906 (init_cumulative_args): Rename to avr_init_cumulative_args.
7907 (expand_prologue): Rename to avr_expand_prologue.
7908 (expand_epilogue): Rename to avr_expand_epilogue.
7909 (adjust_insn_length): Rename to avr_adjust_insn_length.
7910 (notice_update_cc): Rename to avr_notice_update_cc.
7911 (final_prescan_insn): Rename to avr_final_prescan_insn.
7912 * config/avr/avr.c: Same.
7913 * config/avr/avr.h: Same.
7914 * config/avr/avr.md: Remove trailing blanks.
7915 (prologue): Use avr_expand_prologue.
7916 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
7918 2013-01-14 Richard Biener <rguenther@suse.de>
7920 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
7921 verify_location, collect_subblocks): New functions.
7922 (verify_gimple_in_cfg): Verify that locations only reference
7923 BLOCKs in the functions BLOCK tree.
7925 2013-01-14 Richard Biener <rguenther@suse.de>
7927 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
7929 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
7931 (insert_out_of_ssa_copy_on_edge): Likewise.
7932 (rewrite_close_phi_out_of_ssa): Likewise.
7933 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
7935 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
7936 propagated constants.
7937 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
7940 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7942 * config/avr/avr-modes.def: Add GPL copyright notice.
7944 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
7946 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
7947 MEMMODEL_MASK to determine memory model.
7948 (atomic_store<mode>): Ditto from operands[2].
7949 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
7951 2013-01-13 Jakub Jelinek <jakub@redhat.com>
7954 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
7955 (fold_gimple_assign): Don't call unshare_expr here.
7956 (fold_ctor_reference): Call unshare_expr.
7958 2013-01-13 Terry Guo <terry.guo@arm.com>
7960 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
7961 * doc/fragments.texi: Document MULTILIB_REUSE.
7962 * gcc.c (multilib_reuse): New internal spec.
7963 (set_multilib_dir): Also search multilib from multilib_reuse.
7964 * genmultilib (tmpmultilib3): Refactor code.
7965 (tmpmultilib4): Ditto.
7966 (multilib_reuse): New multilib argument.
7968 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
7970 * Makefile.in: Update copyright.
7972 2013-01-12 Tom de Vries <tom@codesourcery.com>
7975 * calls.c (expand_call): Check if arg_nr is valid.
7977 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7979 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
7980 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
7981 documentation. Add missing '__' in front of
7982 __builtin_ia32_packssdw256.
7984 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7987 * config/s390/s390.c (s390_preferred_reload_class): Do not return
7988 NO_REGS for larl operands.
7989 (s390_reload_larl_operand): Use s390_load_address instead of
7992 2013-01-11 Richard Biener <rguenther@suse.de>
7994 * tree-cfg.c (verify_node_sharing_1): Split out from ...
7995 (verify_node_sharing): ... here.
7996 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
7998 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
8000 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
8001 Substitute TREECHECKING.
8002 * configure: Regenerate.
8003 * Makefile.in (TREECHECKING): New.
8005 2013-01-11 Richard Guenther <rguenther@suse.de>
8007 PR tree-optimization/44061
8008 * tree-vrp.c (extract_range_basic): Compute zero as
8009 value-range for __builtin_constant_p of function parameters.
8011 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
8013 Update copyright years.
8015 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
8017 PR rtl-optimization/55672
8018 * lra-eliminations.c (mark_not_eliminable): Permit addition with
8019 const to be eliminable.
8021 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
8023 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
8024 * configure: Regenerate.
8026 2013-01-10 Richard Biener <rguenther@suse.de>
8028 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
8030 2013-01-10 Richard Biener <rguenther@suse.de>
8033 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
8034 locations for virtual PHI arguments.
8035 (rewrite_update_phi_arguments): Likewise.
8037 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
8039 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
8042 2013-01-10 Jakub Jelinek <jakub@redhat.com>
8044 PR tree-optimization/55921
8045 * tree-complex.c (expand_complex_asm): New function.
8046 (expand_complex_operations_1): Call it for GIMPLE_ASM.
8048 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8051 * config/s390/s390.c (s390_symref_operand_p)
8052 (s390_loadrelative_operand_p): Merge the two functions.
8053 (s390_check_qrst_address, print_operand_address): Add parameters
8054 to s390_loadrelative_operand_p invokation.
8055 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
8056 (s390_reload_larl_operand, s390_secondary_reload): Use
8057 s390_loadrelative_operand_p instead of s390_symref_operand_p.
8058 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
8060 2013-01-09 Mike Stump <mikestump@comcast.net>
8062 * dse.c (record_store): Remove unnecessary assert.
8064 2013-01-09 Jan Hubicka <jh@suse.cz>
8066 PR tree-optimization/55569
8067 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
8068 * cfgloop.h (scale_loop_profile): Likewise.
8070 2013-01-09 Jan Hubicka <jh@suse.cz>
8073 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
8075 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
8077 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
8080 * expr.h (maybe_emit_group_store): Declare.
8081 * expr.c (maybe_emit_group_store): New function.
8082 * builtins.c (expand_builtin_int_roundingfn): Call it.
8083 (expand_builtin_int_roundingfn_2): Likewise.
8085 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
8087 PR rtl-optimization/55829
8088 * lra-constraints.c (match_reload): Add code for absent output.
8089 (curr_insn_transform): Add code for reloads of matched inputs
8092 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
8094 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
8095 attribute of movddup insn to DF.
8096 (*vec_interleave_lowv2df): Ditto.
8097 (vec_dupv2df): Ditto.
8099 2013-01-09 Jan Hubicka <jh@suse.cz>
8101 PR tree-optimiation/55875
8102 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
8103 EVERY_ITERATION parameter.
8104 (number_of_iterations_exit): Check if exit is executed every iteration.
8105 (idx_infer_loop_bounds): Similarly here.
8106 (n_of_executions_at_most): Simplify
8107 to only test for cases where statement is dominated by the
8108 particular bound; handle correctly the "postdominance" test.
8109 (scev_probably_wraps_p): Use max loop iterations info
8110 as a global bound first.
8112 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
8113 Nick Clifton <nickc@redhat.com>
8115 * config/v850/v850.md (cbranchsf4): New pattern.
8116 (cstoresf4): New pattern.
8117 (cbranchdf4): New pattern.
8118 (cstoredf4): New pattern.
8119 (movsicc): Disallow floating point comparisons.
8120 (cmpsf_le_insn): Fix order of operators.
8121 (cmpsf_lt_insn): Likewise.
8122 (cmpsf_eq_insn): Likewise.
8123 (cmpdf_le_insn): Likewise.
8124 (cmpdf_lt_insn): Likewise.
8125 (cmpdf_eq_insn): Likewise.
8126 (cmpsf_ge_insn): Use LE comparison.
8127 (cmpdf_ge_insn): Likewise.
8128 (cmpsf_gt_insn): Use LT comparison.
8129 (cmpdf_gt_insn): Likewise.
8130 (cmpsf_ne_insn): Delete pattern.
8131 (cmpdf_ne_insn): Delete pattern.
8132 * config/v850/v850.c (v850_gen_float_compare): Use
8133 gen_cmpdf_eq_insn for NE comparison.
8134 (v850_float_z_comparison_operator)
8135 (v850_float_nz_comparison_operator): Move from here ...
8136 * config/v850/predicates.md: ... to here. Move GT and GE
8137 comparisons into v850_float_z_comparison_operator.
8138 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
8140 (v850_float_nz_comparison_operator): Likewise.
8142 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8144 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
8145 with calls to gen_insvsi/gen_insvdi.
8147 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8149 * config/i386/i386.c (initial_ix86_tune_features): Set up
8150 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
8152 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
8153 Jakub Jelinek <jakub@redhat.com>
8155 PR tree-optimization/48189
8156 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
8157 If nitercst is 0, don't predict the exit edge.
8159 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8161 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
8162 in asm_fprintf with reg_names.
8163 (aarch64_print_operand_address): Likewise.
8164 (aarch64_return_addr): Likewise.
8165 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
8167 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8169 * config/pa/pa.h (VAL_U6_BITS_P): Define.
8170 (INT_U6_BITS): Likewise.
8171 * config/pa/predicates.md (uint6_operand): New predicate.
8172 (shift5_operand, shift6_operand): Likewise.
8173 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
8175 (lshrdi3): Use shift6_operand.
8176 (shrpsi4, shrpdi4): New insn patterns.
8177 (extzv): Delete expander.
8178 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
8179 predicates in unamed zero extract patterns. Tighten common constraint.
8180 (extv): Delete expander.
8181 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
8182 predicates in unamed sign extract patterns. Tighten common constraint.
8183 (insv): Delete expander.
8184 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
8185 predicates in unamed insert patterns. Tighten common constraint.
8186 Change uint32_operand predicate to uint6_operand predicate in unamed
8187 DImode pattern to insert constant values of type 1...1xxxx.
8189 2013-01-04 Jan Hubicka <jh@suse.cz>
8191 PR tree-optimization/55823
8192 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
8195 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8196 Uros Bizjak <ubizjak@gmail.com>
8198 PR rtl-optimization/55845
8199 * df-problems.c (can_move_insns_across): Stop scanning at
8200 volatile_insn_p source instruction or give up if
8201 across_from .. across_to range contains any volatile_insn_p
8204 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8206 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
8207 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
8209 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
8210 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
8212 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8215 * asan.c (asan_clear_shadow): New function.
8216 (asan_emit_stack_protection): Use it.
8218 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8220 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
8221 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
8222 with tab instead of space.
8224 2013-01-08 Nick Clifton <nickc@redhat.com>
8226 * config/rl78/rl78.c (rl78_expand_prologue): Always select
8227 register bank 0 at the start of an interrupt handler.
8228 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
8231 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8233 * config/aarch64/aarch64-simd.md
8234 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
8235 (aarch64_simd_bsl): Likewise.
8236 (aarch64_vcond_internal<mode>): Likewise.
8237 (vcond<mode><mode>): Likewise.
8238 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
8239 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
8241 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8243 * config/aarch64/aarch64-builtins.c
8244 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
8246 2013-01-08 Martin Jambor <mjambor@suse.cz>
8249 * tree-sra.c (analyze_access_subtree): Return true also after
8250 potentially creating a debug-only replacement.
8252 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8255 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
8257 PR tree-optimization/54120
8258 * tree-vrp.c (range_fits_type_p): Don't allow
8259 src_precision < precision from signed vr to unsigned_p
8260 if vr->min or vr->max is negative.
8261 (simplify_float_conversion_using_ranges): Test can_float_p
8262 against CODE_FOR_nothing.
8264 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8265 Richard Biener <rguenther@suse.de>
8268 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
8269 types instead of just INTEGER_TYPE types.
8271 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
8273 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
8276 2013-01-07 Steve Ellcey <sellcey@mips.com>
8279 * config/mips/mips.opt: Change mad to mmad to match documentation.
8281 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8284 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
8287 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8290 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
8291 (avr_addrspace_t): Add .section_name field.
8292 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
8294 (avr_addrspace): Same. Initialize .section_name. Remove last
8295 NULL entry. Put __memx into .progmemx.data.
8296 (progmem_section_prefix): Remove.
8297 (avr_asm_init_sections): No need to initialize progmem_section.
8298 (avr_asm_named_section): Use avr_addrspace[].section_name to get
8299 section name prefix.
8300 (avr_asm_select_section): Ditto. And use get_unnamed_section to
8301 retrieve the progmem section.
8302 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
8303 boundary to run over avr_addrspace[].
8304 (avr_register_target_pragmas): Ditto.
8306 2013-01-06 Jakub Jelinek <jakub@redhat.com>
8308 * varasm.c (output_constant_def_contents): For asan_protect_global
8309 protected strings, adjust DECL_ALIGN if needed, before testing for
8311 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
8312 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
8314 (output_object_block): For asan protected decls, emit asan padding
8315 after their contents.
8316 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
8317 (asan_finish_file): Test it here instead.
8319 2013-01-07 Nick Clifton <nickc@redhat.com>
8320 Matthias Klose <doko@debian.org>
8321 Doug Kwan <dougkwan@google.com>
8322 H.J. Lu <hongjiu.lu@intel.com>
8325 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
8327 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
8329 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
8331 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
8333 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
8335 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8338 * doc/install.texi (Cross-Compiler-Specific Options): Document
8341 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
8343 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
8344 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
8345 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
8346 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
8347 vqmovun_high_s64): Fix source operand number and update copyright.
8349 2013-01-07 Richard Biener <rguenther@suse.de>
8352 * gimple.h (gimple_call_builtin_p): New overload.
8353 * gimple.c (validate_call): New function.
8354 (gimple_call_builtin_p): Likewise.
8355 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8356 Use gimple_call_builtin_p.
8357 (find_func_clobbers): Likewise.
8358 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
8359 (strlen_optimize_stmt): Likewise.
8361 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8363 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
8364 (vld1q_dup_*): Likewise.
8366 (vld1q_*): Likewise.
8367 (vld1_lane_*): Likewise.
8368 (vld1q_lane_*): Likewise.
8370 2013-01-07 Richard Biener <rguenther@suse.de>
8372 * lto-streamer.h (LTO_minor_version): Bump to 2.
8374 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8376 * config/aarch64/aarch64-protos.h
8377 (aarch64_const_double_zero_rtx_p): Rename to...
8378 (aarch64_float_const_zero_rtx_p): ...this.
8379 (aarch64_float_const_representable_p): New.
8380 (aarch64_output_simd_mov_immediate): Likewise.
8381 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
8382 move immediate case.
8383 * config/aarch64/aarch64.c
8384 (aarch64_const_double_zero_rtx_p): Rename to...
8385 (aarch64_float_const_zero_rtx_p): ...this.
8386 (aarch64_print_operand): Allow printing of new constants.
8387 (aarch64_valid_floating_const): New.
8388 (aarch64_legitimate_constant_p): Check for valid floating-point
8390 (aarch64_simd_valid_immediate): Likewise.
8391 (aarch64_vect_float_const_representable_p): New.
8392 (aarch64_float_const_representable_p): Likewise.
8393 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
8394 (aarch64_output_simd_mov_immediate): New.
8395 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
8396 (*movdf_aarch64): Likewise.
8397 * config/aarch64/constraints.md (Ufc): New.
8398 (Y): call aarch64_float_const_zero_rtx.
8399 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
8401 2013-01-07 Richard Biener <rguenther@suse.de>
8403 PR tree-optimization/55888
8404 PR tree-optimization/55862
8405 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
8406 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
8407 not if it is contained therein.
8409 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8411 * config/avr/t-avr: Typo.
8413 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8416 * config/avr/t-avr: Don't automatically rebuild
8417 $(srcdir)/config/avr/t-multilib
8418 $(srcdir)/config/avr/avr-tables.opt
8419 $(srcdir)/doc/avr-mmcu.texi
8420 (avr-mcus): New phony target to build them on request.
8421 (s-avr-mlib, s-avr-mmcu-texi): Remove.
8422 * avr/avr-mcus.def: Adjust comments.
8424 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
8426 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
8428 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8430 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
8432 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8434 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
8436 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
8438 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
8439 to generate profiling.
8440 * config/rs6000/aix64.h (LIB_SPEC): Same.
8442 2013-01-04 Andrew Pinski <apinski@cavium.com>
8444 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
8446 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8448 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
8450 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
8452 (ix86_expand_move): Ditto.
8453 (ix86_zero_extend_to_Pmode): Ditto.
8454 (ix86_expand_call): Ditto.
8455 (ix86_expand_special_args_builtin): Ditto.
8456 (ix86_expand_builtin): Ditto.
8458 2013-01-04 Richard Biener <rguenther@suse.de>
8460 PR tree-optimization/55862
8461 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
8462 translating them through PHI nodes.
8464 2013-01-04 Martin Jambor <mjambor@suse.cz>
8466 PR tree-optimization/55755
8467 * tree-sra.c (sra_modify_assign): Do not check that an access has no
8468 children when trying to avoid producing a VIEW_CONVERT_EXPR.
8470 2013-01-04 Marek Polacek <polacek@redhat.com>
8473 * opts.c (default_options_optimization): Clarify error message.
8475 2013-01-04 Richard Biener <rguenther@suse.de>
8478 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
8481 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8484 * config/pa/pa.md (movsi): Revert previous change.
8485 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
8488 2013-01-03 Richard Henderson <rth@redhat.com>
8490 * config/i386/i386.c (ix86_expand_move): Always assign to op1
8491 after eliminating TLS symbols.
8493 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
8496 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
8497 * graphite-poly.c (debug_gmp_value): Likewise.
8499 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
8502 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
8503 selected code model, define __code_mode_small__, __code_model_medium__,
8504 __code_model_large__, __code_model_32__ or __code_model_kernel__.
8505 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
8506 xchg temporary register with %k. Declare temporary register as
8508 [__x86_64__]: For medium and large code models, preserve %rbx register.
8510 2013-01-03 Richard Biener <rguenther@suse.de>
8512 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
8513 (dump_subscript): Adjust.
8514 (finalize_ddr_dependent): Do not dump redundant info.
8515 (analyze_siv_subscript): Adjust.
8516 (subscript_dependence_tester): Likewise.
8517 (compute_affine_dependence): Likewise.
8519 2013-01-03 Richard Biener <rguenther@suse.de>
8522 2013-01-03 Richard Biener <rguenther@suse.de>
8524 PR tree-optimization/55857
8525 * tree-vect-stmts.c (vectorizable_load): Do not setup
8526 re-alignment for invariant loads.
8528 2013-01-02 Richard Biener <rguenther@suse.de>
8530 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8531 invariant load do not generate a vector load from the scalar location.
8533 2013-01-03 Richard Biener <rguenther@suse.de>
8535 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
8536 for not vectorizing.
8537 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
8538 not build INDIRECT_REFs, call get_name once only.
8539 (vect_create_data_ref_ptr): Likewise. Dump base object kind
8540 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
8542 2013-01-03 Richard Biener <rguenther@suse.de>
8544 PR tree-optimization/55857
8545 * tree-vect-stmts.c (vectorizable_load): Do not setup
8546 re-alignment for invariant loads.
8548 2013-01-03 Richard Biener <rguenther@suse.de>
8551 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
8552 prefer a built-in decl.
8554 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8556 * gcc.c (process_command): Update copyright notice dates.
8557 * gcov.c (print_version): Likewise.
8558 * gcov-dump.c (print_version): Likewise.
8560 PR rtl-optimization/55838
8561 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
8562 iv0.step, iv1.step and step.
8564 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8565 Marc Glisse <marc.glisse@inria.fr>
8567 PR tree-optimization/55832
8568 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
8569 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
8570 integer_{one,zero}_node.
8572 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8575 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
8576 * var-tracking.c (reverse_op): Don't add reverse ops to
8577 VALUEs that have already
8578 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8580 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
8582 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
8584 2013-01-02 Teresa Johnson <tejohnson@google.com>
8586 * dumpfile.c (dump_loc): Print filename with location.
8587 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
8588 new location_t parameter to emit complete unroll message with
8590 (canonicalize_loop_induction_variables): Compute loops location
8591 and pass to try_unroll_loop_completely.
8592 * loop-unroll.c (report_unroll_peel): New function.
8593 (peel_loops_completely): Use new dump format with location
8594 for main dumpfile message, and invoke report_unroll_peel on success.
8595 (decide_unrolling_and_peeling): Ditto.
8596 (decide_peel_once_rolling): Remove old dumpfile message subsumed
8597 by report_unroll_peel.
8598 (decide_peel_completely): Ditto.
8599 (decide_unroll_constant_iterations): Ditto.
8600 (decide_unroll_runtime_iterations): Ditto.
8601 (decide_peel_simple): Ditto.
8602 (decide_unroll_stupid): Ditto.
8603 * cfgloop.c (get_loop_location): New function.
8604 * cfgloop.h (get_loop_location): Declare.
8606 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8608 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
8611 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8614 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
8615 BLKmode objects when EXPAND_MEMORY is specified.
8617 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8619 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
8621 (fold_builtin_cpu): Do not share cpu model decls across statements.
8623 2013-01-02 Jason Merrill <jason@redhat.com>
8626 * tree.c (build_array_type_1): Revert earlier change.
8628 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
8630 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
8632 * config/aarch64/aarch64-tune.md: Re-generate.
8634 2013-01-02 Richard Biener <rguenther@suse.de>
8636 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8637 invariant load do not generate a vector load from the scalar location.
8639 2013-01-02 Richard Biener <rguenther@suse.de>
8642 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
8643 * configure: Regenerate.
8645 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8647 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
8648 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
8649 (expand_builtin_int_roundingfn_2): Keep the original target around
8650 for the fallback case.
8652 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8654 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
8655 to be clear for sign changes.
8657 2013-01-01 Jan Hubicka <jh@suse.cz>
8659 * ipa-inline-analysis.c: Fix formatting.
8661 2013-01-01 Jakub Jelinek <jakub@redhat.com>
8663 PR tree-optimization/55831
8664 * tree-vect-loop.c (get_initial_def_for_induction): Use
8665 gsi_after_labels instead of gsi_start_bb.
8667 Copyright (C) 2013 Free Software Foundation, Inc.
8669 Copying and distribution of this file, with or without modification,
8670 are permitted in any medium without royalty provided the copyright
8671 notice and this notice are preserved.