1 2013-05-06 Alan Modra <amodra@gmail.com>
3 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
6 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
7 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
8 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
10 2013-05-06 Alan Modra <amodra@gmail.com>
12 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
13 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
14 (DEFAULT_ASM_ENDIAN): Define.
15 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
16 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
17 Update -K PIC clause from sysv4.h.
18 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
19 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
21 2013-05-06 Alan Modra <amodra@gmail.com>
23 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
24 twice for little-endian.
25 (ashrdi3_no_power, ashrdi3): Support little-endian.
27 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
31 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
33 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
34 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
35 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
38 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
39 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
41 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
42 * config/pa/pa.opt: Make mbig-switch a no-op.
43 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
44 (CASE_VECTOR_MODE): Always return SImode.
45 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
46 for the !TARGET_BIG_SWITCH case.
47 * config/pa/pa-linux.h: Likewise.
48 * config/pa/pa-openbsd.h: Likewise.
49 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
50 * config/pa/pa.md (short_jump): Remove define_insn.
51 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
52 (casesi0): Remove define_insn.
53 (type): Remove btable_branch.
54 (pa_combine_type): Likewise.
55 (in_nullified_branch_delay): Likewise.
56 (in_call_delay): Likewise.
57 (define_delay): Likewise.
58 (define_insn_reservation "Z3"): Likewise.
59 (define_insn_reservation "Z4"): Likewise.
60 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
61 (pa_adjust_insn_length): Remove adjustment for btable branches.
62 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
65 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
67 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
68 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
69 Add m->r,x alternatives.
70 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
71 splitters using SWI48x mode iterator.
72 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
73 TARGET_64BIT. Add m->x alternative.
74 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
75 Add o->x alternative. Enable for TARGET_SSE.
76 (sse_storeq): Remove expander.
77 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
78 with memory input operand.
79 (*vec_extractv2di_1 splitter): New.
80 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
81 * config/i386/i386.md (ssevecmodelower): New mode attribute.
83 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
85 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
86 (INT_LOWPART): Delete.
89 (print_operand): Adjust.
91 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
93 * config/rs6000/predicates.md (reg_or_add_cint_operand,
94 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
95 (reg_or_logical_cint_operand, easy_fp_constant,
96 logical_const_operand): Delete "CONST_DOUBLE" case.
97 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
98 "HOST_BITS_PER_WIDE_INT == 64" test.
99 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
100 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
101 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
102 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
104 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
105 CONST_DOUBLE DImode/VOIDmode case.
106 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
107 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
108 CONST_DOUBLE VOIDmode case.
109 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
110 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
111 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
112 Delete CONST_DOUBLE case.
113 (splitters for mov FMOVE64 const_double): Delete
114 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
115 "HOST_BITS_PER_WIDE_INT >= 64" test.
116 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
118 (mov DI const_double): Delete.
120 2013-05-04 Jakub Jelinek <jakub@redhat.com>
122 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
123 on op shows all bits zero in mode of a lowpart subreg, return zero.
125 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
128 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
129 to save TFmode registers and DImode to save TImode registers for
130 caller save operations.
131 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
132 mark being partially clobbered since they only use the first
135 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
136 and TDmode only use the upper 64-bits of each VSX register.
138 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
140 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
141 (find_candidates_in_block): Disable slsr_process_phi.
143 2013-05-03 Guozhi Wei <carrot@google.com>
145 * coverage.c (coverage_obj_init): Move the construction of gcov
147 (build_init_ctor): ... here.
149 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
151 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
152 (slsr_cand_d): Redefine def_phi.
153 (stride_status, phi_adjust_status, count_phis_status): New enums.
155 (find_basis_for_base_expr): New.
156 (find_basis_for_candidate): Handle hidden bases.
157 (alloc_cand_and_find_basis): Handle phi candidates.
158 (slsr_process_phi): New.
159 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
160 (create_mul_imm_cand): Likewise.
161 (create_add_ssa_cand): Exclude phi base candidates.
162 (create_add_imm_cand): Likewise.
163 (slsr_process_cast): Likewise.
164 (slsr_process_copy): Likewise.
165 (find_candidates_in_block): Handle phi candidates.
166 (dump_candidate): Likewise.
167 (unconditional_cands): Delete.
168 (unconditional_cands_with_known_stride_p): Delete.
169 (phi_dependent_cand_p): New.
170 (cand_increment): Handle phi-dependent candidates.
171 (replace_dependent): Delete.
172 (replace_mult_candidate): New.
173 (replace_unconditional_candidate): New.
174 (incr_vec_index): Move to avoid forward reference.
175 (create_add_on_incoming_edge): New.
176 (create_phi_basis): New.
177 (replace_dependents): Delete.
178 (replace_conditional_candidate): New.
179 (phi_add_costs): New.
180 (replace_uncond_cands_and_profitable_phis): New.
181 (record_increment): Handle phi adjustments.
182 (record_phi_increments): New.
183 (record_increments): Handle phi adjustments.
184 (phi_incr_cost): New.
185 (lowest_cost_path): Handle phis.
186 (total_savings): Likewise.
187 (analyze_increments): Likewise.
189 (ncd_of_cand_and_phis): New.
190 (nearest_common_dominator_for_cands): Handle phi increments.
191 (all_phi_incrs_profitable): New.
192 (replace_profitable_candidates): Handle phi-dependent candidates.
193 (analyze_candidates_and_replace): Likewise.
195 2013-05-03 Teresa Johnson <tejohnson@google.com>
198 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
199 do not exceed REG_BR_PROB_BASE.
201 2013-05-03 Jeff Law <law@redhat.com>
203 PR tree-optimization/57144
204 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
205 operand of the condition will bit into the new type when eliminating
206 a cast feeding a condition.
208 2013-05-03 Jakub Jelinek <jakub@redhat.com>
210 PR rtl-optimization/57130
211 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
212 of COMPARE as in_code to the recursive call if needed.
214 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
216 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
217 (enabled): Handle new members.
218 * config/i386/sse.md (*vec_concatv2si): Merge from
219 *vec_concatv2si_sse2 and vec_concatv2si_sse.
220 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
222 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
224 PR tree-optimization/57027
225 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
226 for fnms opportunity, check we got the prerequisite kind
227 of tree / gimple before using accessor functions.
229 2013-05-03 Richard Biener <rguenther@suse.de>
231 * double-int.h (lshift): New overload without precision
233 (operator *=, operator +=, operator -=): Move ...
234 * double-int.c (operator *=, operator +=, operator -=): ... here
235 and implement more efficiently.
236 (mul_double_with_sign): Remove.
237 (lshift_double): Adjust to take unsinged shift argument, push
238 dispatching code to callers.
239 (mul_double_wide_with_sign): Add early out for callers that
240 are not interested in high parts or overflow.
241 (lshift): New function.
242 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
244 (lrotate, rrotate): Use logical shifts.
245 * expr.c (get_inner_reference): Use lshift.
246 * fixed-value.c (do_fixed_divide): Likewise.
247 * tree-dfa.c (get_ref_base_and_extent): Likewise.
248 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
249 (indirect_refs_may_alias_p): Likewise.
250 (stmt_kills_ref_p_1): Likewise.
252 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
254 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
256 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
258 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
259 scalar form of FABD instruction.
261 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
263 * lra-constraints.c (process_alt_operands): Add checking alt
264 number to choose the best alternative.
266 2013-05-02 Richard Biener <rguenther@suse.de>
268 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
269 bitmap and its handling.
270 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
272 2013-05-02 Richard Biener <rguenther@suse.de>
275 * tree-inline.c (copy_loops): Properly handle removed loops.
276 (copy_cfg_body): Mark destination loops for fixup if source
279 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
282 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
283 generating simple_return for naked functions.
285 2013-05-02 Martin Jambor <mjambor@suse.cz>
288 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
289 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
291 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
292 ipa_agg_replacement_value structures.
293 (known_aggs_to_agg_replacement_list): Likewise.
294 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
295 (read_agg_replacement_chain): Likewise.
296 (ipcp_transform_function): Also check that by_ref flags match.
298 2013-05-02 Richard Biener <rguenther@suse.de>
300 * graphds.h (struct graph): Add obstack member.
301 * graphds.c (new_graph): Initialize obstack and allocate
303 (add_edge): Allocate edge from the obstack.
304 (free_graph): Free the obstack instead of all edges and vertices.
306 2013-05-02 Teresa Johnson <tejohnson@google.com>
308 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
310 * cfg.c (update_bb_profile_for_threading): Ditto.
311 * tree-inline.c (copy_bb): Ditto.
312 (copy_edges_for_bb): Ditto.
313 (initialize_cfun): Ditto.
314 (copy_cfg_body): Ditto.
315 (expand_call_inline): Ditto.
316 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
317 (estimate_node_size_and_time): Ditto.
318 (inline_merge_summary): Ditto.
319 * cgraphclones.c (cgraph_clone_edge): Ditto.
320 (cgraph_clone_node): Ditto.
321 * sched-rgn.c (compute_dom_prob_ps): Ditto.
322 (compute_trg_info): Ditto.
324 2013-05-02 Ian Bolton <ian.bolton@arm.com>
326 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
327 S reg when fp attribute set.
328 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
330 2013-05-02 Ian Bolton <ian.bolton@arm.com>
332 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
334 (*and_one_cmplsi3_compare0_uxtw): Likewise.
335 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
336 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
338 2013-05-02 Richard Biener <rguenther@suse.de>
340 * tree-scalar-evolution.c (scev_info_hasher): Remove.
341 (struct instantiate_cache_entry): New type.
342 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
343 (struct instantiate_cache_type): New type.
344 (set_instantiated_value, get_instantiated_value): Remove.
345 (get_instantiated_value_entry): New function.
346 (instantiate_scev_name): Use the new cache and adjust.
347 (instantiate_scev_poly): Adjust.
348 (instantiate_scev_binary): Likewise.
349 (instantiate_array_ref): Likewise.
350 (instantiate_scev_convert): Likewise.
351 (instantiate_scev_not): Likewise.
352 (instantiate_scev_3): Likewise.
353 (instantiate_scev_2): Likewise.
354 (instantiate_scev_r): Likewise.
355 (instantiate_scev): Likewise.
356 (resolve_mixers): Likewise.
358 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
361 * lra-constraints.c (best_small_class_operands_num): Remove.
362 (process_alt_operands): Remove small_class_operands_num. Take
363 small classes operands into losers and only if the operand is not
364 matched. Modify debugging output.
365 (curr_insn_transform): Remove best_small_class_operands_num.
368 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
370 * config/aarch64/aarch64-builtins.c
371 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
372 * config/aarch64/aarch64-simd-builtins.def
373 (reduc_splus_): Add new modes.
375 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
376 (reduc_uplus_v4sf): Likewise.
377 (reduc_splus_v4sf): Likewise.
378 (aarch64_addv<mode>): Likewise.
379 (reduc_uplus_<mode>): Likewise.
380 (reduc_splus_<mode>): Likewise.
381 (aarch64_addvv2di): Likewise.
382 (reduc_uplus_v2di): Likewise.
383 (reduc_splus_v2di): Likewise.
384 (aarch64_addvv2si): Likewise.
385 (reduc_uplus_v2si): Likewise.
386 (reduc_splus_v2si): Likewise.
387 (reduc_<sur>plus_<mode>): New.
388 (reduc_<sur>plus_v2di): Likewise.
389 (reduc_<sur>plus_v2si): Likewise.
390 (reduc_<sur>plus_v4sf): Likewise.
391 (aarch64_addpv4sf): Likewise.
392 * config/aarch64/arm_neon.h
393 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
394 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
395 add UNSPEC_SADDV, UNSPEC_UADDV.
397 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
399 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
401 * config/aarch64/arm_neon.h
402 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
404 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
406 * config/aarch64/aarch64-builtins
407 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
409 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
411 * config/aarch64/aarch64-simd-builtins.def
413 (reduc_smin_): Likewise.
414 (reduc_umax_): Likewise.
415 (reduc_umin_): Likewise.
416 (reduc_smax_nan_): Likewise.
417 (reduc_smin_nan_): Likewise.
420 (smax): Update for V2SF, V4SF and V2DF modes.
423 (smin_nan): Likewise.
424 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
425 (<su><maxmin><mode>3): ...This, refactor.
426 (s<maxmin><mode>3): New.
427 (<maxmin_uns><mode>3): Likewise.
428 (reduc_<maxmin_uns>_<mode>): Refactor.
429 (reduc_<maxmin_uns>_v4sf): Likewise.
430 (reduc_<maxmin_uns>_v2si): Likewise.
431 (aarch64_<fmaxmin><mode>: Remove.
432 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
434 (vmin<q>_f<32,64>): Likewise.
435 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
437 (su): Add mappings for smax, smin, umax, umin.
439 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
440 (FMAXMIN): Rename as...
441 (FMAXMIN_UNS): ...This.
443 (fmaxminv): Likewise.
446 (maxmin_uns_op): Likewise.
448 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
450 * config/aarch64/arm_neon.h
451 (vac<ge, gt><sd>_f<32, 64>): Rename to...
452 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
453 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
455 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
457 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
458 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
460 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
462 * config/aarch64/aarch64-simd.md
463 (vcond<mode>_internal): Handle special cases for constant masks.
464 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
465 (vcondu<mode><mode>): Likewise.
466 (vcond<v_cmp_result><mode>): New.
468 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
470 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
471 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
472 * config/aarch64/aarch64-simd-builtins.def
473 (cmeq): Update to BUILTIN_VALLDI.
478 * config/aarch64/arm_neon.h
479 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
480 to builtins or C as appropriate.
482 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
484 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
488 * config/aarch64/aarch64-simd.md
490 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
491 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
492 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
493 (cstore<mode>_neg): ...This.
494 * config/aarch64/iterators.md
496 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
498 (UCOMPARISONS): Likewise.
499 (optab): Add missing comparisons.
507 (V_cmp_result): Add DF, SF modes.
508 (v_cmp_result): Likewise.
511 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
513 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
515 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
516 define_insn to define_insn_and_split.
517 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
518 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
519 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
520 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
521 (thumb2_negscc): Likewise.
523 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
525 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
527 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
529 * config/arm/thumb2.md: Remove trailing whitespaces.
531 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
533 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
534 Use gen_int_mode rather than GEN_INT.
536 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
538 * value-prof.c (stream_in_histogram_value): Remove the strayed
541 2013-04-30 Richard Biener <rguenther@suse.de>
544 * cfghooks.c (split_edge): Properly check for the loop latch edge.
546 2013-04-30 Richard Biener <rguenther@suse.de>
549 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
551 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
553 PR rtl-optimization/56957
554 PR rtl-optimization/57105
555 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
556 variable. Use just INSN_UID for determining whether an insn
557 should be only disconnected from the insn stream.
558 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
560 2013-04-30 Jakub Jelinek <jakub@redhat.com>
562 PR tree-optimization/57104
563 * tsan.c (instrument_expr): Don't instrument accesses to
564 DECL_HARD_REGISTER VAR_DECLs.
566 2013-04-30 Richard Biener <rguenther@suse.de>
568 * function.h (loops_for_fn): New inline function.
569 (set_loops_for_fn): Likewise.
570 * cfgloop.h (place_new_loop): Add struct function parameter.
571 (get_loop): Likewise.
572 (get_loops): Likewise.
573 (number_of_loops): Likewise.
575 (fel_init): Likewise.
576 * cfg.c (get_loop_copy): Adjust.
577 * cfgloop.c (flow_loops_dump): Likewise.
578 (record_loop_exits): Likewise.
579 (verify_loop_structure): Likewise.
580 * cfgloopanal.c (mark_irreducible_loops): Likewise.
581 (estimate_reg_pressure_cost): Likewise.
582 (mark_loop_exit_edges): Likewise.
583 * cfgloopmanip.c (place_new_loop): Likewise.
584 (add_loop): Likewise.
585 (duplicate_loop): Likewise.
586 * graph.c (draw_cfg_nodes): Likewise.
587 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
588 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
589 (extract_affine_chrec): Likewise.
590 (build_scop_iteration_domain): Likewise.
591 * graphite.c (graphite_initialize): Likewise.
592 * ira-build.c (create_loop_tree_nodes): Likewise.
593 (more_one_region_p): Likewise.
594 (rebuild_regno_allocno_maps): Likewise.
595 (mark_loops_for_removal): Likewise.
596 (mark_all_loops_for_removal): Likewise.
597 (remove_unnecessary_regions): Likewise.
598 (ira_build): Likewise.
599 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
600 * loop-init.c (fix_loop_structure): Likewise.
601 (gate_rtl_move_loop_invariants): Likewise.
602 (gate_rtl_unswitch): Likewise.
603 (gate_rtl_unroll_and_peel_loops): Likewise.
604 (rtl_doloop): Likewise.
605 * lto-streamer-in.c (input_cfg): Likewise.
606 * lto-streamer-out.c (output_cfg): Likewise.
607 * modulo-sched.c (sms_schedule): Likewise.
608 * predict.c (tree_estimate_probability): Likewise.
609 (tree_estimate_probability_driver): Likewise.
610 (estimate_loops): Likewise.
611 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
612 (move_sese_region_to_fn): Likewise.
613 (debug_loop_num): Likewise.
614 * tree-chrec.c (chrec_evaluate): Likewise.
615 (hide_evolution_in_other_loops_than_loop): Likewise.
616 (chrec_component_in_loop_num): Likewise.
617 (reset_evolution_in_loop): Likewise.
618 (evolution_function_is_invariant_rec_p): Likewise.
619 * tree-if-conv.c (main_tree_if_conversion): Likewise.
620 * tree-inline.c (copy_loops): Likewise.
621 (copy_cfg_body): Likewise.
622 (tree_function_versioning): Likewise.
623 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
624 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
626 (add_to_evolution_1): Likewise.
627 (scev_const_prop): Likewise.
628 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
629 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
630 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
631 (tree_ssa_lim_initialize): Likewise.
632 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
633 (verify_loop_closed_ssa): Likewise.
634 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
635 (tree_ssa_loop_im): Likewise.
636 (tree_ssa_loop_unswitch): Likewise.
637 (tree_vectorize): Likewise.
638 (check_data_deps): Likewise.
639 (tree_ssa_loop_ivcanon): Likewise.
640 (tree_ssa_loop_bounds): Likewise.
641 (tree_complete_unroll): Likewise.
642 (tree_complete_unroll_inner): Likewise.
643 (tree_parallelize_loops): Likewise.
644 (tree_ssa_loop_prefetch): Likewise.
645 (tree_ssa_loop_ivopts): Likewise.
646 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
647 * tree-vectorizer.c (vectorize_loops): Likewise.
649 2013-04-29 Mike Frysinger <vapier@gentoo.org>
651 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
652 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
653 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
656 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
659 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
662 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
665 * lra-constraints.c (process_alt_operands): Discourage a bit more
666 using memory for pseudos. Print cost dump for alternatives.
667 Modify cost values for conflicts with early clobbers.
668 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
670 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
673 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
675 2013-04-29 Ian Bolton <ian.bolton@arm.com>
677 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
679 (movdi_aarch64): Support LDR/STR from/to D register.
681 2013-04-29 Ian Bolton <ian.bolton@arm.com>
683 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
684 or higher by default.
686 2013-04-29 Richard Biener <rguenther@suse.de>
689 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
690 even if not adding abnormal edges for calls that can make
693 2013-04-29 Richard Biener <rguenther@suse.de>
696 * tree-cfg.c (move_stmt_op): Fix condition under which to update
698 (move_stmt_r): Remove redundant checking.
700 2013-04-29 Teresa Johnson <tejohnson@google.com>
703 * basic-block.h (apply_scale): New function.
704 (apply_probability): Use apply_scale.
705 * gimple-streamer-in.c (input_bb): Ditto.
706 * lto-streamer-in.c (input_cfg): Ditto.
707 * lto-cgraph.c (merge_profile_summaries): Ditto.
708 * tree-optimize.c (execute_fixup_cfg): Ditto.
709 * tree-inline.c (copy_bb): Update comment to use apply_scale.
710 (copy_edges_for_bb): Ditto.
711 (copy_cfg_body): Ditto.
713 2013-04-29 Tom de Vries <tom@codesourcery.com>
715 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
716 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
717 (tail_merge_optimize): Handle current_loops == NULL.
719 2013-04-26 Jeff Law <law@redhat.com>
721 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
722 (simplify_cond_using_ranges): Generalize code to simplify
723 COND_EXPRs where one argument is a constant and the other
724 is an SSA_NAME created by an integral type conversion.
726 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
728 * config/arm/arm.md (store_minmaxsi): Use only when
729 optimize_insn_for_size_p.
731 2013-04-29 Christian Bruel <christian.bruel@st.com>
734 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
736 2013-04-29 Richard Biener <rguenther@suse.de>
739 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
740 loop tree make sure to schedule a fixup for the child as well.
741 (expand_omp_for_generic): Properly add loops.
742 (expand_omp_for_static_nochunk): Likewise.
743 (expand_omp_for_static_chunk): Likewise.
744 (expand_omp_for): For the degenerate case fixup loops.
745 (expand_omp_sections): Fix default bb placement in loops.
746 (expand_omp_atomic_pipeline): Properly add loops.
748 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
750 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
752 2013-04-29 Tom de Vries <tom@codesourcery.com>
754 * tree-ssa-tail-merge.c: Update header comment.
756 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
758 * config/aarch64/arm_neon.h
759 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
760 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
761 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
762 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
763 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
764 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
765 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
766 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
768 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
770 * config/aarch64/aarch64-simd.md
771 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
772 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
773 fix_trunc, fixuns_trunc.
774 (ftrunc<VDQF:mode>2): New.
775 * config/aarch64/iterators.md (optab): Add fix, fixuns.
776 (fix_trunc_optab): New.
778 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
780 * config/aarch64/aarch64-builtins.c
781 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
782 iceilf, lround, iroundf.
784 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
787 * config/i386/i386.h (enum ix86_tune_indices)
788 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
789 New, split from X86_TUNE_INTER_UNIT_MOVES.
790 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
791 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
792 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
793 (TARGET_INTER_UNIT_MOVES): Remove.
794 * config/i386/i386.c (initial_ix86_tune_features): Update.
795 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
796 (ix86_expand_convert_uns_didf_sse): Use
797 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
798 (ix86_expand_vector_init_one_nonzero): Ditto.
799 (ix86_expand_vector_init_interleave): Ditto.
800 (inline_secondary_memory_needed): Return true for moves from SSE class
801 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
802 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
803 * config/i386/constraints.md (Yi, Ym): Depend on
804 TARGET_INTER_UNIT_MOVES_TO_VEC.
805 (Yj, Yn): New constraints.
806 * config/i386/i386.md (*movdi_internal): Change constraints of
807 operand 1 from Yi to Yj and from Ym to Yn.
808 (*movsi_internal): Ditto.
809 (*movdf_internal): Ditto.
810 (*movsf_internal): Ditto.
811 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
812 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
813 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
814 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
815 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
816 * config/i386/sse.md (movdi_to_sse): Ditto.
817 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
818 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
819 TARGET_INTER_UNIT_MOVES.
820 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
821 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
822 instead of TARGET_INTER_UNIT_MOVES.
823 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
824 operand 1 from Yi to Yj and from Ym to Yn.
826 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
828 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
829 (float_truncate_hi_): Likewise.
830 (float_extend_lo_): Likewise.
831 (float_truncate_lo_): Likewise.
832 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
833 (aarch64_float_extend_lo_v2df): Likewise.
834 (vec_unpacks_hi_v4sf): Likewise.
835 (aarch64_float_truncate_lo_v2sf): Likewise.
836 (aarch64_float_truncate_hi_v4sf): Likewise.
837 (vec_pack_trunc_v2df): Likewise.
838 (vec_pack_trunc_df): Likewise.
840 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
842 * config/aarch64/aarch64-builtins.c
843 (aarch64_fold_builtin): Fold float conversions.
844 * config/aarch64/aarch64-simd-builtins.def
845 (floatv2si, floatv4si, floatv2di): New.
846 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
847 * config/aarch64/aarch64-simd.md
848 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
849 * config/aarch64/iterators.md (FLOATUORS): New.
850 (optab): Add float, floatuns.
851 (su_optab): Likewise.
853 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
855 * config/aarch64/aarch64-builtins.c
856 (aarch64_builtin_vectorized_function): Use new names for
858 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
859 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
860 (fcvtzu): Split as...
861 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
862 (fcvtas): Split as...
863 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
864 (fcvtau): Split as...
865 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
866 (fcvtps): Split as...
867 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
868 (fcvtpu): Split as...
869 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
870 (fcvtms): Split as...
871 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
872 (fcvtmu): Split as...
873 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
874 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
875 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
876 (lfrintnusf, lfrintnudf): Likewise.
877 * config/aarch64/aarch64-simd.md
878 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
880 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
881 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
882 (fcvt_pattern): Likewise.
884 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
886 * config/aarch64/aarch64-simd.md
887 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
888 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
890 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
892 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
893 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
894 (vrnd<a,m,n,p>_f32): Implement using builtins.
895 (vrnd<i,x><q>_f<32, 64>): New.
897 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
899 * config/aarch64/aarch64-builtins.c
900 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
901 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
902 (frintz): Rename to...
904 (frintp): Rename to...
906 (frintm): Rename to...
908 (frinti): Rename to...
909 (nearbyint): ...this.
910 (frintx): Rename to...
912 (frinta): Rename to...
914 * config/aarch64/aarch64-simd.md
915 (aarch64_frint<frint_suffix><mode>): Delete.
916 (<frint_pattern><mode>2): Convert to insn.
917 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
918 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
919 (frint_pattern): Likewise.
920 (frint_suffix): Likewise.
922 2013-04-29 Richard Biener <rguenther@suse.de>
924 PR tree-optimization/57081
925 * loop-init.c: Include tree-flow.h.
926 (loop_optimizer_finalize): Free number of iteration estimates.
927 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
929 2013-04-29 Jakub Jelinek <jakub@redhat.com>
931 PR tree-optimization/57083
932 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
933 non-singleton shift count range, zero extend low_bound for uns case.
935 * config/i386/predicates.md (general_vector_operand): New predicate.
936 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
937 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
938 if they aren't nonimmediate operands. If their original values
939 satisfy const_vector_equal_evenodd_p, don't shift them.
940 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
941 predicates. For the SSE4.1 case force operands[{1,2}] into registers
942 if not nonimmediate_operand.
943 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
944 instead of register_operand.
945 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
947 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
949 * stor-layout.c (finalize_size_functions): Allocate a structure and
950 reset cfun before dumping the functions.
952 2013-04-27 Jakub Jelinek <jakub@redhat.com>
954 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
957 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
958 use xop_pmacsdqh if uns_p.
959 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
960 the immediate rotate count.
962 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
964 * rtl.h (struct rtx_def): Add comment for field jump.
965 (LRA_SUBREG_P): New macro.
966 * recog.c (register_operand): Check LRA_SUBREG_P.
967 * lra.c (lra): Add note at the end of RTL code. Align non-empty
969 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
970 (lra_final_code_change): Skip subreg change for operators.
971 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
972 if there are no operand changes.
973 * lra-constraints.c (curr_insn_set): New.
974 (match_reload): Set LRA_SUBREG_P.
975 (emit_spill_move): Ditto.
976 (check_and_process_move): Use curr_insn_set. Process only single
977 set insns. Don't initialize sec_mem_p and change_p.
978 (simplify_operand_subreg): Use LRA_SUBREG_P.
979 (reg_in_class_p): New function.
980 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
981 of #ifdef. Add code to remove cycling.
982 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
983 non-null disp. Reload inner instead of disp when base and index
984 are null. Try to put lo_sum into register.
985 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
986 (check_and_process_move): Move code for move cost check to
987 simple_move_p. Remove equiv_substitution.
988 (simple_move_p): New function.
989 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
990 curr_insn_set. Call check_and_process_move only for single set
991 insns. Use the new function. Move call of check_and_process_move
992 after operand equiv substitution and address process.
994 2013-04-26 Jakub Jelinek <jakub@redhat.com>
997 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
998 with nonlocal goto receivers or returns twice calls, ignore
999 unininitialized values from abnormal edges to nl goto receiver
1000 or returns twice call.
1002 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1004 PR tree-optimization/57051
1005 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1006 and VEC_RSHIFT_EXPR if shift count is a multiple of element
1009 2013-04-26 Richard Biener <rguenther@suse.de>
1011 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
1012 (expand_omp_taskreg): Likewise. Mark loops for fixup.
1013 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
1014 (fixup_loop_arrays_after_move): New function.
1015 (move_sese_region_to_fn): Properly outline the loop tree parts
1018 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
1020 * config/i386/i386.md (type, unit): Fix long lines.
1022 2013-04-26 Richard Biener <rguenther@suse.de>
1024 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
1025 (lto-streamer-out.o): Likewise.
1026 * cfgloop.c (init_loops_structure): Export, add struct function
1027 argument and adjust.
1028 (flow_loops_find): Adjust.
1029 * cfgloop.h (enum loop_estimation): Add EST_LAST.
1030 (init_loops_structure): Declare.
1031 * lto-streamer-in.c: Include cfgloop.h.
1032 (input_cfg): Input the loop tree.
1033 * lto-streamer-out.c: Include cfgloop.h.
1034 (output_cfg): Output the loop tree.
1035 (output_struct_function_base): Do not drop PROP_loops.
1037 2013-03-26 Richard Biener <rguenther@suse.de>
1039 * tree-cfg.c (execute_build_cfg): Build the loop tree.
1040 (pass_build_cfg): Provide PROP_loops.
1041 (move_sese_region_to_fn): Remove loops that are outlined into fn
1043 * tree-inline.c: Include cfgloop.h.
1044 (initialize_cfun): Do not drop PROP_loops.
1045 (copy_loops): New function.
1046 (copy_cfg_body): Copy loop structure.
1047 (tree_function_versioning): Initialize destination loop tree.
1048 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
1049 (pass_parallelize_loops): Do IL verification.
1050 * loop-init.c (loop_optimizer_init): Fixup loops if required.
1051 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
1052 the CFG make sure we fixup loops as well.
1053 * tree-ssa-tail-merge.c: Include cfgloop.h.
1054 (replace_block_by): When merging loop latches mark loops for fixup.
1055 * lto-streamer-out.c (output_struct_function_base): Drop
1057 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
1058 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
1059 * ipa-split.c: Include cfgloop.h.
1060 (split_function): Add the new return block to the loop tree root.
1061 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
1062 whether we have removed the forwarder block.
1063 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
1064 * cfgloop.h (place_new_loop): Declare.
1065 * cfgloopmanip.c (place_new_loop): Export.
1066 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
1067 (tree-switch-conversion.o): Likewise.
1068 (tree-complex.o): Likewise.
1069 (tree-inline.o): Likewise.
1070 (tree-ssa-tailmerge.o): Likewise.
1071 (ipa-split.o): Likewise.
1072 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
1073 (tree-ssa-copy.o): Likewise.
1074 * tree-switch-conversion.c: Include cfgloop.h
1075 (process_switch): If we emit a bit-test cascade, schedule loops
1077 * tree-complex.c: Include cfgloop.h.
1078 (expand_complex_div_wide): Properly add new basic-blocks to loops.
1079 * asan.c: Include cfgloop.h.
1080 (create_cond_insert_point): Properly add new basic-blocks to
1081 loops, schedule loop fixup.
1082 * cfgloop.c (verify_loop_structure): Check that looks are not
1084 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
1086 (expand_omp_for_generic): Likewise.
1087 (expand_omp_sections): Likewise.
1088 (expand_omp_atomic_pipeline): Schedule loops for fixup.
1089 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
1090 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
1091 is initialized, not when loops are present.
1092 * tree-parloops.c (parallelize_loops): Remove checking here.
1093 * passes.c (init_optimization_passes): Schedule a copy-propagation
1094 pass before complete unrolling of inner loops.
1096 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1098 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
1099 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
1100 (colorize_init): Add argument to _WIN32 version.
1101 * toplev.c: Include diagnostic-color.h.
1102 (process_options): Default to -fdiagnostics-color=auto if
1103 GCC_COLORS env var is in the environment.
1104 * common.opt (fdiagnostics-color=): Add Var and Init.
1105 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
1106 env var is in the environment, the default is auto rather than never.
1108 * diagnostic.h (file_name_as_prefix): Add context argument.
1109 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
1110 the string as locus.
1111 * langhooks.c (lhd_print_error_function): Adjust caller.
1113 2013-04-25 Lawrence Crowl <crowl@google.com>
1115 * var-tracking.c (shared_hash_def::htab):
1116 Change type to hash_table. Update dependent calls and types.
1118 2013-04-25 Lawrence Crowl <crowl@google.com>
1120 * Makefile.in: Update as needed below.
1122 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
1123 Move declaration to after the type's method definitons.
1125 * attribs.c (htab_t scoped_attributes::attribute_hash):
1126 Change type to hash_table. Update dependent calls and types.
1128 * bitmap.c (htab_t bitmap_desc_hash):
1129 Change type to hash_table. Update dependent calls and types.
1131 * cselib.c (htab_t cselib_hash_table):
1132 Change type to hash_table. Update dependent calls and types.
1134 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
1135 (hash_string_slot_node): Move implementation into lto-streamer.h
1136 struct string_slot_hasher.
1137 (eq_string_slot_node): Likewise.
1139 * data-streamer-out.c: Update output_block::string_hash_table
1140 dependent calls and types.
1142 * dwarf2cfi.c (htab_t trace_index):
1143 Change type to hash_table. Update dependent calls and types.
1145 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
1146 Change type to hash_table. Update dependent calls and types.
1147 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
1148 (htab_t optimize_external_refs::map): Likewise.
1149 (htab_t output_comp_unit::extern_map): Likewise.
1150 (htab_t output_comdat_type_unit::extern_map): Likewise.
1151 (htab_t output_macinfo::macinfo_htab): Likewise.
1152 (htab_t optimize_location_lists::htab): Likewise.
1153 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
1155 * except.c (htab_t ehspec_hash_type):
1156 Change type to hash_table. Update dependent calls and types.
1157 (assign_filter_values::ttypes): Likewise.
1158 (assign_filter_values::ehspec): Likewise.
1159 (sjlj_assign_call_site_values::ar_hash): Likewise.
1160 (convert_to_eh_region_ranges::ar_hash): Likewise.
1162 * gcse.c (htab_t pre_ldst_table):
1163 Change type to hash_table. Update dependent calls and types.
1165 * ggc-common.c (htab_t saving_htab):
1166 Change type to hash_table. Update dependent calls and types.
1167 (htab_t loc_hash): Likewise.
1168 (htab_t ptr_hash): Likewise.
1169 (call_count): Rename ggc_call_count.
1170 (call_alloc): Rename ggc_call_alloc.
1171 (loc_descriptor): Rename make_loc_descriptor.
1172 (add_statistics): Rename ggc_add_statistics.
1174 * ggc-common.c (saving_htab):
1175 Change type to hash_table. Update dependent calls and types.
1177 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
1178 (push_gimplify_context): Likewise.
1179 (pop_gimplify_context): Likewise.
1180 (struct gimple_temp_hash_elt): Added.
1181 (struct gimplify_hasher): Likewise.
1182 (struct gimplify_ctx.temp_htab):
1183 Change type to hash_table. Update dependent calls and types.
1185 * gimple-fold.c: Include gimplify-ctx.h.
1187 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
1188 Change type to hash_table. Update dependent calls and types.
1189 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
1190 avoid potential global name collision.
1192 * gimplify.c: Include gimplify-ctx.h.
1193 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
1194 (htab_t gimplify_ctx::temp_htab):
1195 Update dependent calls and types for new type hash_table.
1196 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
1197 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
1199 * gimplify-ctx.h: New.
1200 (struct gimple_temp_hash_elt): Move from gimplify.c.
1201 (class gimplify_hasher): New.
1202 (struct gimplify_ctx): Move from gimple.h.
1203 (htab_t gimplify_ctx::temp_htab):
1204 Change type to hash_table. Update dependent calls and types.
1206 * graphite-clast-to-gimple.c: Include graphite-htab.h.
1207 (htab_t ivs_params::newivs_index):
1208 Change type to hash_table. Update dependent calls and types.
1209 (htab_t ivs_params::params_index): Likewise.
1210 (htab_t print_generated_program::params_index): Likewise.
1211 (htab_t gloog::newivs_index): Likewise.
1212 (htab_t gloog::params_index): Likewise.
1214 * graphite.c: Include graphite-htab.h.
1215 4htab_t graphite_transform_loops::bb_pbb_mapping):
1216 Change type to hash_table. Update dependent calls and types.
1218 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
1219 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
1220 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
1222 * graphite-dependences.c: Include graphite-htab.h.
1223 (loop_is_parallel_p): Change hash table type of parameter.
1225 * graphite-htab.h: New.
1226 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
1227 (extern find_pbb_via_hash): Move from graphite-poly.h.
1228 (extern loop_is_parallel_p): Move from graphite-poly.h.
1229 (extern get_loop_body_pbbs): Move from graphite-poly.h.
1231 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
1232 (extern loop_is_parallel_p): Move to graphite-htab.h.
1233 (extern get_loop_body_pbbs): Move to graphite-htab.h.
1235 * haifa-sched.c (htab_t delay_htab):
1236 Change type to hash_table. Update dependent calls and types.
1237 (htab_t delay_htab_i2): Likewise.
1239 * ira-color.c (htab_t allocno_hard_regs_htab):
1240 Change type to hash_table. Update dependent calls and types.
1242 * ira-costs.c (htab_t cost_classes_htab):
1243 Change type to hash_table. Update dependent calls and types.
1245 * loop-invariant.c (htab_t merge_identical_invariants::eq):
1246 Change type to hash_table. Update dependent calls and types.
1248 * loop-iv.c (htab_t bivs):
1249 Change type to hash_table. Update dependent calls and types.
1251 * loop-unroll.c (htab_t opt_info::insns_to_split):
1252 Change type to hash_table. Update dependent calls and types.
1253 (htab_t opt_info::insns_with_var_to_expand): Likewise.
1255 * lto-streamer.h (struct string_slot): Move from data-streamer.h
1256 (struct string_slot_hasher): New.
1257 (htab_t output_block::string_hash_table):
1258 Change type to hash_table. Update dependent calls and types.
1260 * lto-streamer-in.c (freeing_string_slot_hasher): New.
1261 (htab_t file_name_hash_table):
1262 Change type to hash_table. Update dependent calls and types.
1264 * lto-streamer-out.c: Update output_block::string_hash_table dependent
1267 * lto-streamer.c (htab_t tree_htab):
1268 Change type to hash_table. Update dependent calls and types.
1270 * omp-low.c: Include gimplify-ctx.h.
1272 * passes.c (htab_t name_to_pass_map):
1273 Change type to hash_table. Update dependent calls and types.
1274 (pass_traverse): Rename to passes_pass_traverse.
1276 * plugin.c (htab_t event_tab):
1277 Change type to hash_table. Update dependent calls and types.
1279 * postreload-gcse.c (htab_t expr_table):
1280 Change type to hash_table. Update dependent calls and types.
1281 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
1283 * sese.c (debug_rename_map_1): Make extern.
1284 (htab_t copy_bb_and_scalar_dependences::rename_map):
1285 Change type to hash_table. Update dependent calls and types.
1287 * sese.h (extern debug_rename_map): Move to .c file.
1289 * store-motion.c (htab_t store_motion_mems_table):
1290 Change type to hash_table. Update dependent calls and types.
1292 * trans-mem.c (htab_t tm_new_mem_hash):
1293 Change type to hash_table. Update dependent calls and types.
1295 * tree-browser.c (htab_t TB_up_ht):
1296 Change type to hash_table. Update dependent calls and types.
1298 * tree-cfg.c (htab_t discriminator_per_locus):
1299 Change type to hash_table. Update dependent calls and types.
1301 * tree-complex.c: Include tree-hasher.h
1302 (htab_t complex_variable_components):
1303 Change type to hash_table. Update dependent calls and types.
1305 * tree-eh.c (htab_t finally_tree):
1306 Change type to hash_table. Update dependent calls and types.
1308 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
1309 struct int_tree_hasher.
1310 (extern int_tree_map_eq): Likewise.
1311 (uid_decl_map_hash): Removed.
1312 (extern decl_tree_map_eq): Likewise.
1314 * tree-hasher.h: New.
1315 (struct int_tree_hasher): New.
1316 (typedef int_tree_htab_type): New.
1318 * tree-inline.c: Include gimplify-ctx.h.
1320 * tree-mudflap.c: Include gimplify-ctx.h.
1322 * tree-parloops.c: Include tree-hasher.h.
1323 (htab_t eliminate_local_variables_stmt::decl_address):
1324 Change type to hash_table. Update dependent calls and types.
1325 (htab_t separate_decls_in_region::decl_copies): Likewise.
1327 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
1328 Change type to hash_table. Update dependent calls and types.
1330 * tree-sra.c (candidates):
1331 Change type to hash_table. Update dependent calls and types.
1333 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
1335 (int_tree_map_hash): Likewise.
1337 * tree-ssa-dom.c (htab_t avail_exprs):
1338 Change type to hash_table. Update dependent calls and types.
1340 * tree-ssa-live.c (var_map_base_init::tree_to_index):
1341 Change type to hash_table. Update dependent calls and types.
1343 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
1344 Change type to hash_table. Update dependent calls and types.
1346 * tree-ssa-phiopt.c (seen_ssa_names):
1347 Change type to hash_table. Update dependent calls and types.
1349 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
1350 Change type to hash_table. Update dependent calls and types.
1352 * tree-ssa-uncprop.c (equiv):
1353 Change type to hash_table. Update dependent calls and types.
1355 2013-04-25 Jakub Jelinek <jakub@redhat.com>
1357 PR rtl-optimization/57003
1358 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1359 call note_stores with kill_clobbered_value callback again after
1360 killing regs_invalidated_by_call.
1362 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1364 * config/aarch64/aarch64-simd.md
1365 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
1366 (aarch64_simd_bsl<mode>): Likewise.
1367 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
1369 2013-04-25 Marek Polacek <polacek@redhat.com>
1371 PR tree-optimization/57066
1372 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
1374 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
1376 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
1378 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1380 * config/aarch64/aarch64-builtins.c
1381 (aarch64_fold_builtin): New.
1382 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
1383 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
1384 * config/aarch64/aarch64-simd-builtins.def (abs): New.
1385 * config/aarch64/arm_neon.h
1386 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
1388 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1389 Tejas Belagod <tejas.belagod@arm.com>
1391 * config/aarch64/aarch64-builtins.c
1392 (aarch64_gimple_fold_builtin): New.
1393 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
1394 * config/aarch64/aarch64-simd-builtins.def (addv): New.
1395 * config/aarch64/aarch64-simd.md (addpv4sf): New.
1397 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1399 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1401 * config/aarch64/aarch64.md
1402 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
1404 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1406 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
1407 (*ngcsi_uxtw): New pattern.
1409 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1410 Julian Brown <julian@codesourcery.com>
1412 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
1413 (TB_DREG): Add T_V4HF.
1414 (v4hf_UP): New macro.
1415 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1416 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1417 Handle initialisation of V4HF. Adjust initialisation of reinterpret
1419 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1420 (arm_vector_mode_supported_p): Handle V4HF.
1421 (arm_mangle_map): Handle V4HFmode.
1422 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
1423 * config/arm/arm_neon_builtins.def: Add entries for
1424 vcvtv4hfv4sf, vcvtv4sfv4hf.
1425 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
1426 (neon_vcvtv4hfv4sf): Likewise.
1427 * config/arm/neon-gen.ml: Handle half-precision floating point
1429 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
1430 * config/arm/arm_neon.h: Regenerate.
1431 * config/arm/neon.ml (type elts): Add F16.
1432 (type vectype): Add T_float16x4, T_floatHF.
1433 (type vecmode): Add V4HF.
1434 (type features): Add Requires_FP_bit feature.
1435 (elt_width): Handle F16.
1436 (elt_class): Likewise.
1437 (elt_of_class_width): Likewise.
1438 (mode_of_elt): Refactor.
1439 (type_for_elt): Handle F16, fix error messages.
1440 (vectype_size): Handle T_float16x4.
1441 (vcvt_sh): New function.
1442 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
1443 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
1444 (string_of_mode): Handle V4HF.
1445 * doc/arm-neon-intrinsics.texi: Regenerate.
1447 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1449 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
1450 format specifier in 'X' case.
1452 2013-04-25 Alan Modra <amodra@gmail.com>
1455 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
1456 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
1457 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
1458 Repeat for many other rotate/shift and mask patterns using subregs.
1459 Name lshiftrt insns.
1460 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
1461 on WORDS_BIG_ENDIAN.
1463 2013-04-25 Alan Modra <amodra@gmail.com>
1465 * config.gcc: Support little-endian powerpc-linux targets.
1466 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
1467 (LINK_OS_LINUX_SPEC): Define.
1468 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
1469 Preserve MASK_LITTLE_ENDIAN.
1470 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
1471 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
1472 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
1473 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
1474 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
1475 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
1476 Correct fp word order for little-endian. Don't shift toc entries
1477 smaller than a word for little-endian.
1478 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
1479 (bswapdi2 splits): Correct low-part subreg for little-endian.
1480 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
1481 low/high where such is correct only for be.
1482 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
1483 little-endian for -mcall-aixdesc.
1485 2013-04-25 Alan Modra <amodra@gmail.com>
1487 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
1488 replace_equiv_address_nv.
1490 2013-04-25 Alan Modra <amodra@gmail.com>
1492 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
1494 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1497 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1498 * rtl.h (struct rtx_def): ...
1500 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1502 PR rtl-optimizations/57046
1503 * lra-constraints (split_reg): Set up lra_risky_transformations_p
1504 for multi-reg splits.
1506 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
1508 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
1510 2013-04-24 Sterling Augustine <saugustine@google.com>
1512 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
1513 (comp_dir_string, debug_str_dwo_section): New.
1514 (DEBUG_STR_DWO_SECTION): Rename to ...
1515 (DEBUG_DWO_STR_SECTION): ... this.
1516 (DEBUG_NORM_STR_SECTION): Delete.
1517 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
1518 (DEBUG_STR_DWO_SECTION_FLAGS): New.
1519 (find_AT_string): Move most logic to ...
1520 (find_AT_string_in_table): ... here. New.
1521 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
1522 add_skeleton_AT_string. Delete logic.
1523 (output_skeleton_debug_sections): Remove call to
1524 add_top_level_skeleton_die_attrs.
1525 (add_comp_dir_attribute): Move logic to comp_dir_string.
1526 (dwarf2out_init): Initialize debug_str_dwo_section.
1527 (output_indirect_string): Call find_string_form.
1528 (output_indirect_strings): Rewrite.
1529 (prune_unused_types): Empty skeleton_debug_str_hash.
1530 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
1531 (dwarf2out_finish): Call output_indirect_strings.
1533 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1535 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
1537 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1539 * rtl.h (struct rtx_def): Add comment for field jump.
1540 (LRA_SUBREG_P): New macro.
1541 * recog.c (register_operand): Check LRA_SUBREG_P.
1542 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1544 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1545 (lra_final_code_change): Skip subreg change for operators.
1546 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1547 if there are no operand changes.
1548 * lra-constraints.c (curr_insn_set): New.
1549 (match_reload): Set LRA_SUBREG_P.
1550 (emit_spill_move): Ditto.
1551 (check_and_process_move): Use curr_insn_set. Process only single
1552 set insns. Don't initialize sec_mem_p and change_p.
1553 (simplify_operand_subreg): Use LRA_SUBREG_P.
1554 (reg_in_class_p): New function.
1555 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1556 of #ifdef. Add code to remove cycling.
1557 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1558 non-null disp. Reload inner instead of disp when base and index
1559 are null. Try to put lo_sum into register.
1560 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1561 (check_and_process_move): Move code for move cost check to
1562 simple_move_p. Remove equiv_substitution.
1563 (simple_move_p): New function.
1564 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1565 curr_insn_set. Call check_and_process_move only for single set
1566 insns. Use the new function. Move call of check_and_process_move
1567 after operand equiv substitution and address process.
1569 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
1571 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
1572 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
1573 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
1575 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1577 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
1579 2013-04-24 Marek Polacek <polacek@redhat.com>
1581 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
1582 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
1583 (select_loops_exit_conditions): Likewise.
1584 (number_of_iterations_for_all_loops): Likewise.
1585 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
1586 (scev_analysis): Likewise.
1588 2013-04-02 Catherine Moore <clm@codesourcery.com>
1589 Chao-ying Fu <fu@mips.com>
1591 * config/mips/micromips.md (jraddiusp): New pattern.
1592 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
1593 instruction if possible.
1595 2013-04-24 Alan Modra <amodra@gmail.com>
1597 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
1599 2013-04-24 Julian Brown <julian@codesourcery.com>
1600 Chung-Lin Tang <cltang@codesourcery.com>
1602 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
1603 dependency behavior in enumeration type DIE generation. Add TODO note
1604 to comments about future DW_FORM_sdata/udata re-work of related code.
1606 2013-04-23 Lawrence Crowl <crowl@google.com>
1608 * Makefile.in: Update as needed below.
1610 * hash-table.h (class hash_table):
1611 Correct many methods with parameter types compare_type to the correct
1612 value_type. (Correct code was unlikely to notice the change.)
1613 (hash_table::elements_with_deleted) New.
1614 (class hashtable::iterator): New.
1615 (hashtable::begin()): New.
1616 (hashtable::end()): New.
1617 (FOR_EACH_HASH_TABLE_ELEMENT): New.
1619 * statistics.c (statistics_hashes):
1620 Change type to hash_table. Update dependent calls and types.
1622 * tree-into-ssa.c (var_infos):
1623 Change type to hash_table. Update dependent calls and types.
1625 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
1626 Change type to hash_table. Update dependent calls and types.
1628 * tree-ssa-loop-im.c (struct mem_ref.refs):
1629 Change type to hash_table. Update dependent calls and types.
1631 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
1632 Change type to hash_table. Update dependent calls and types.
1634 * tree-ssa-sccvn.c (vn_tables_s::nary):
1635 Change type to hash_table. Update dependent calls and types.
1636 (vn_tables_s::phis): Likewise.
1637 (vn_tables_s::references): Likewise.
1639 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
1640 (vn_reference_eq): Update parameter and return types.
1642 * tree-ssa-structalias.c (pointer_equiv_class_table):
1643 Change type to hash_table. Update dependent calls and types.
1644 (location_equiv_class_table): Likewise.
1646 * tree-vect-data-refs.c: Consequential changes for making
1647 peeling a hash_table.
1649 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
1650 (destroy_loop_vec_info): Dependent hash_table update.
1652 * tree-vectorizer.h (peeling_htab):
1653 Change type to hash_table. Update dependent calls and types.
1655 2013-04-23 Shiva Chen <shiva0217@gmail.com>
1657 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
1658 to check the register content is equal or not.
1659 * lra-constraints.c (match_reload): Use lra_assign_reg_val
1660 to assign register content record.
1661 * lra-eliminations.c (update_reg_eliminate): Use
1662 lra_update_reg_val_offset to update register content offset.
1663 * lra-int.h (struct lra_reg): Add offset member.
1664 (lra_reg_val_equal_p): New static inline function.
1665 (lra_update_reg_val_offset): New static inline function.
1666 (lra_assign_reg_val): New static inline function.
1667 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
1668 to assign register content record.
1669 (initialize_lra_reg_info_element): Initial offset to zero.
1671 2013-04-23 Catherine Moore <clm@codesourcery.com>
1673 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
1674 operands. Record compression.
1676 2013-04-23 Xinliang David Li <davidxl@google.com>
1678 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
1680 2013-04-23 Richard Biener <rguenther@suse.de>
1683 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
1684 parameter, only add abnormal goto edges from the copied body
1685 if the call could perform abnormal gotos.
1686 (copy_cfg_body): Adjust.
1688 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
1690 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
1692 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
1694 * coretypes.h (gimple_stmt_iterator): Add struct to make
1697 2013-04-23 Richard Biener <rguenther@suse.de>
1699 PR tree-optimization/57026
1700 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
1701 from SSA names occuring in abnormal PHI nodes.
1703 2013-04-22 Andi Kleen <ak@linux.intel.com>
1705 * lto/lto.c (print_lto_report_1): Fix LTO report names.
1707 2013-04-22 Andi Kleen <ak@linux.intel.com>
1709 * lto/lto.c (print_lto_report_1): Declare early.
1710 (read_cgraph_and_symbols): Call print_lto_report_1 early.
1712 2013-04-22 Andi Kleen <ak@linux.intel.com>
1714 * common.opt (-flto-report-wpa): Add.
1715 * doc/invoke.texi (-flto-report-wpa): Add.
1716 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
1719 2013-04-22 Xinliang David Li <davidxl@google.com>
1721 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
1722 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
1723 * Makefile.in: New dependency
1725 David Daney <ddaney.cavm@gmail.com>
1727 * configure.ac (gcc_cv_as_micromips_support): Use the
1728 --fatal-warnings option.
1729 * configure: Regenerate.
1731 2013-04-22 Marek Polacek <polacek@redhat.com>
1734 * tsan.c (instrument_expr): Don't instrument expression
1735 in case its size is zero.
1737 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
1741 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1743 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1745 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1747 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
1748 (gimple_stmt_iterator): New typedef.
1749 * gimple.h (gimple_stmt_iterator): Rename to...
1750 (gimple_stmt_iterator_d): ... This.
1751 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
1752 trees be valid for GIMPLE and GENERIC.
1753 (TARGET_GIMPLE_FOLD_BUILTIN): New.
1754 * gimple-fold.c (gimple_fold_call): Call target hook
1755 gimple_fold_builtin.
1756 * hooks.c (hook_bool_gsiptr_false): New.
1757 * hooks.h (hook_bool_gsiptr_false): New.
1758 * target.def (fold_stmt): New.
1759 * doc/tm.texi: Regenerate.
1761 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
1764 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1765 a set sp if no stack realignment.
1767 2013-04-22 Nick Clifton <nickc@redhat.com>
1769 * config.gcc (tilegx-linux): Extend extra_objs rather than
1771 (tilepro-linux): Likewise.
1773 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1775 * config/aarch64/aarch64-builtins.c
1777 (CF0, CF1, CF2, CF3, CF4, CF10): New.
1778 (VAR<1-12>): Add MAP parameter.
1779 (BUILTIN_*): Likewise.
1780 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
1781 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
1782 (aarch64_ushl_n<mode>): Likewise.
1783 (aarch64_sshr_n<mode>): Likewise.
1784 (aarch64_ushr_n<mode>): Likewise.
1785 (aarch64_<maxmin><mode>): Likewise.
1786 (aarch64_sqrt<mode>): Likewise.
1787 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
1788 (vshr<q>_n_*): Likewise.
1790 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1792 * config/aarch64/aarch64-builtins.c
1793 (aarch64_simd_builtin_type_mode): Handle SF types.
1795 (BUILTIN_GPF): Define.
1796 (aarch64_init_simd_builtins): Handle SF types.
1797 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
1800 * config/aarch64/aarch64-simd.md
1801 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
1802 (aarch64_frecpe<mode>): New.
1803 (aarch64_frecps<mode>): Likewise.
1804 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
1805 (v8type): Add frecp<esx>.
1806 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
1807 (aarch64_frecps<mode>): Likewise.
1808 * config/aarch64/iterators.md (FRECP): New.
1809 (frecp_suffix): Likewise.
1810 * config/aarch64/arm_neon.h
1811 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
1813 2013-04-22 Christian Bruel <christian.bruel@st.com>
1816 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
1817 (REG_CLASS_NAMES): Idem.
1818 (REG_CLASS_CONTENTS): Idem.
1819 (REGCLASS_HAS_FP_REG): Idem.
1820 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
1821 (sh_conditional_register_usage): Idem.
1823 2013-04-21 Jeff Law <law@redhat.com>
1825 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
1826 (ssa_forward_propagate_and_combine): Use it.
1828 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1830 * lra.c: Update the flow chart diagram.
1832 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1834 PR rtl-optimization/56847
1835 * lra-constraints.c (process_alt_operands): Discourage alternative
1836 with non-matche doffsettable memory constraint fro memory with
1839 2013-04-19 Richard Biener <rguenther@suse.de>
1841 PR tree-optimization/56982
1842 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
1844 * gimplify.c (gimplify_call_expr): Notice special calls.
1845 (gimplify_modify_expr): Likewise.
1846 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
1847 abnormal control flow receivers.
1848 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
1849 in the same way as cfun->has_nonlocal_labels.
1850 (gimple_purge_dead_abnormal_call_edges): Likewise.
1851 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
1852 receivers start a basic-block.
1854 2013-04-19 Richard Biener <rguenther@suse.de>
1856 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
1858 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
1859 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
1860 (SLP_TREE_LOAD_PERMUTATION): Add.
1861 (vect_transform_slp_perm_load): Adjust prototype.
1862 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
1863 (vect_free_slp_instance): Likewise.
1864 (vect_create_new_slp_node): Likewise.
1865 (vect_supported_slp_permutation_p): Remove.
1866 (vect_slp_rearrange_stmts): Adjust.
1867 (vect_supported_load_permutation_p): Likewise. Inline
1868 vect_supported_slp_permutation_p here.
1869 (vect_analyze_slp_instance): Compute load permutations per
1870 slp node instead of per instance.
1871 (vect_get_slp_defs): Adjust.
1872 (vect_transform_slp_perm_load): Likewise.
1873 (vect_schedule_slp_instance): Remove redundant code.
1874 (vect_schedule_slp): Remove hack for PR56270, add it ...
1875 * tree-vect-stmts.c (vectorizable_load): ... here, do not
1876 CSE loads for SLP. Adjust.
1878 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1880 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
1881 spelling in two comments.
1883 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1886 * config/arm/arm.c (load_multiple_sequence): Require SP
1887 as base register for loads if SP is in the register list.
1889 2013-04-19 Martin Jambor <mjambor@suse.cz>
1891 PR tree-optimization/56718
1892 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
1893 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
1894 and made public. Adjusted all callers.
1895 (ipa_intraprocedural_devirtualization): New function.
1896 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
1897 (ipa_intraprocedural_devirtualization): Likewise.
1898 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
1900 2013-04-19 Richard Biener <rguenther@suse.de>
1902 PR tree-optimization/57000
1903 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
1905 2013-04-19 Terry Guo <terry.guo@arm.com>
1907 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
1909 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
1910 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
1911 (cortex_m4_fmacs): Use new reservations.
1912 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
1914 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
1916 PR rtl-optimization/56999
1917 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
1919 (lra_coalesce): Remove split_origin_bitmap and related code.
1920 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
1921 ranges if necessary.
1923 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
1925 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
1927 (ix86_expand_call): Remove clobbered_registers array and use
1928 x86_64_ms_sysv_extra_clobbered_registers instead.
1929 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
1931 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
1933 * config/i386/i386.md (*call_rex64_ms_sysv): Use
1934 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
1935 (*call_value_rex64_ms_sysv): Ditto.
1937 2013-04-18 Cary Coutant <ccoutant@google.com>
1939 * dwarf2out.c (output_pubnames): Check die_perennial_p of
1940 parent instead of die_mark.
1942 2013-04-18 Diego Novillo <dnovillo@google.com>
1944 * gimple.c (create_gimple_tmp): New.
1945 (get_expr_type): New.
1946 (build_assign): New.
1947 (build_type_cast): New.
1948 * gimple.h (enum ssa_mode): Define.
1949 (gimple_seq_set_location): New.
1950 * asan.c (build_check_stmt): Change some gimple_build_* calls
1951 to use build_assign and build_type_cast.
1953 2013-04-18 Richard Biener <rguenther@suse.de>
1955 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
1956 handle negative step. Remove redundant checks.
1957 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
1958 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
1959 for negative step and grouped loads fail to vectorize.
1961 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1963 * emit-rtl.c (reset_insn_used_flags): New function.
1964 (reset_all_used_flags): Use it.
1965 (verify_insn_sharing): New function.
1966 (verify_rtl_sharing): Fix verification for SEQUENCEs.
1968 2013-04-18 Jakub Jelinek <jakub@redhat.com>
1970 PR tree-optimization/56984
1971 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
1972 and (x >> M) >= N don't register any assertion if N << M is the
1975 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1977 * lower-subreg.c (resolve_simple_move): If called self-recursive,
1978 do not delete_insn insns that have not yet been emitted, only
1979 unlink them with remove_insn.
1980 * df-scan.c (df_insn_delete): Revert r197492.
1982 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
1984 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
1985 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
1987 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1989 * config/arm/arm.md (movsicc_insn): Convert define_insn into
1990 define_insn_and_split.
1991 (and_scc,ior_scc,negscc): Likewise.
1992 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
1994 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1996 * config/arm/arm.c (use_return_insn): Return 0 for targets that
1997 can benefit from using a sequence of LDRD instructions in epilogue
1998 instead of a single LDM instruction.
2000 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2003 * doc/extend.texi: Fix typo.
2005 2013-04-17 Richard Biener <rguenther@suse.de>
2007 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
2008 (vect_build_slp_tree): ... here.
2009 (vect_build_slp_tree_1): Compute which stmts of the SLP group
2010 match. Remove special-casing of mismatched complex loads.
2011 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
2012 re-try the match with swapped commutative operands.
2013 (vect_supported_load_permutation_p): Remove special-casing of
2014 mismatched complex loads.
2015 (vect_analyze_slp_instance): Adjust.
2017 2013-04-17 Richard Biener <rguenther@suse.de>
2019 PR rtl-optimization/56921
2020 * cfgloop.h (struct loop): Add simple_loop_desc member.
2021 (struct niter_desc): Mark with GTY(()).
2022 (simple_loop_desc): Do not use aux field but simple_loop_desc.
2023 * loop-iv.c (get_simple_loop_desc): Likewise.
2024 (free_simple_loop_desc): Likewise.
2027 2013-04-16 Richard Biener <rguenther@suse.de>
2029 PR rtl-optimization/56921
2030 * loop-init.c (pass_rtl_move_loop_invariants): Add
2031 TODO_do_not_ggc_collect to todo_flags_finish.
2032 (pass_rtl_unswitch): Same.
2033 (pass_rtl_unroll_and_peel_loops): Same.
2034 (pass_rtl_doloop): Same.
2036 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
2038 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
2039 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
2040 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
2042 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
2043 * tree-streamer.c (record_common_node): Adjust reference in comment.
2045 2013-04-17 Terry Guo <terry.guo@arm.com>
2047 * config/arm/cortex-m4.md: Add a new bypass.
2049 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2051 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
2053 (*subs_<optab><mode>_multp2): New pattern.
2054 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2055 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2057 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2059 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
2060 (*subs_mul_imm_<mode>): New pattern.
2062 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
2065 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2066 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
2067 (vsx_movti_32bit): Change j->wa to O->wa.
2069 2013-04-16 Richard Biener <rguenther@suse.de>
2071 PR rtl-optimization/56921
2072 * loop-init.c (pass_rtl_move_loop_invariants): Add
2073 TODO_do_not_ggc_collect to todo_flags_finish.
2074 (pass_rtl_unswitch): Same.
2075 (pass_rtl_unroll_and_peel_loops): Same.
2076 (pass_rtl_doloop): Same.
2078 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
2080 * config/arm/arm.c (emit_multi_reg_push): New declaration
2081 for an existing function.
2082 (arm_emit_strd_push): New function.
2083 (arm_expand_prologue): Used here.
2084 (arm_emit_ldrd_pop): New function.
2085 (arm_expand_epilogue): Used here.
2086 (arm_get_frame_offsets): Update condition.
2087 (arm_emit_multi_reg_pop): Add a special case for load of a single
2088 register with writeback.
2090 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
2092 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
2095 2013-04-16 Richard Biener <rguenther@suse.de>
2097 PR tree-optimization/56756
2098 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
2099 (first_mem_ref_loc): New.
2100 (execute_sm): Place the load temporarily before a previous
2101 access instead of in the latch edge to ensure its SSA dependencies
2102 are defined at points dominating the load.
2104 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
2106 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
2107 correct fix by moving header and footer insn to the footer of
2108 the merged basic block. Clear BB_END of the merged-away block.
2111 * emit-rtl.c (make_note_raw): New function.
2112 (link_insn_into_chain): New static inline function.
2114 (add_insn_before, add_insn_after): Factor insn chain linking code...
2115 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
2116 using link_insn_into_chain.
2117 (note_outside_basic_block_p): New helper function for emit_note_after
2118 and emit_note_before.
2119 (emit_note_after): Use nobb variant of add_insn_after if the note
2120 should not be contained in a basic block.
2121 (emit_note_before): Use nobb variant of add_insn_before if the note
2122 should not be contained in a basic block.
2123 (emit_note_copy): Use make_note_raw.
2124 (emit_note): Likewise.
2125 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
2126 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
2127 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
2128 the moved barrier the tail of the basic block it follows.
2129 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
2131 2013-04-15 Jakub Jelinek <jakub@redhat.com>
2133 PR tree-optimization/56962
2134 * gimple-ssa-strength-reduction.c (record_increment): Only set
2135 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
2136 either rhs1 or rhs2 is equal to c->base_expr.
2138 2013-04-15 Richard Biener <rguenther@suse.de>
2140 PR tree-optimization/56933
2141 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
2143 (GROUP_READ_WRITE_DEPENDENCE): Remove.
2144 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
2145 * tree-vect-data-refs.c (vect_analyze_group_access): Move
2146 dependence check ...
2147 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
2149 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
2150 GROUP_READ_WRITE_DEPENDENCE.
2152 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2154 * emit-rtl.c (reset_all_used_flags): New function.
2155 (verify_rtl_sharing): Call reset_all_used_flags before and after
2156 performing the checks.
2158 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2160 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
2161 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
2162 * config/arm/constraints.md (De): New constraint.
2163 * config/arm/neon.md (anddi3_neon): Delete.
2164 (neon_vand<mode>): Expand to standard anddi3 pattern.
2165 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
2166 Move earlier in the file.
2167 (neon_inv_logic_op2): Likewise.
2168 (arm_anddi_operand_neon): New predicate.
2170 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2172 * configure.ac (gcc_cv_ld_as_needed): Set
2173 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
2174 Use -z ignore, -z record on *-*-solaris2*.
2175 (HAVE_LD_AS_NEEDED): Update comment.
2176 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
2177 * configure: Regenerate.
2178 * config.in: Regenerate.
2179 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
2180 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
2181 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
2182 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
2183 equivalents. Fix markup.
2184 * doc/tm.texi: Regenerate.
2186 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
2188 * config/i386/i386.opt: New option mstack-protector-guard=.
2189 * config/i386/i386-opts.h: Add enum stack_protector_guard.
2190 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
2191 TARGET_SSP_TLS_GUARD.
2192 * config/i386/i386.c (ix86_option_override_internal): Set
2193 ix86_stack_protector_guard.
2194 * config/i386/i386.md (stack_protect_set): Enable for
2195 TARGET_SSP_TLS_GUARD only.
2196 (stack_protect_set_<mode>): Ditto.
2197 (stack_protect_test): Ditto.
2198 (stack_protect_test_<mode>): Ditto.
2199 * doc/invoke.texi (i386 Option): Document.
2201 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
2204 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
2205 (S_MODES): Set H_MODE bit.
2206 (SF_MODES): Set only S_MODE and SF_MODE bits.
2207 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
2208 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
2209 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
2210 <MODE_FLOAT>: Likewise.
2212 2013-04-15 Joey Ye <joey.ye@arm.com>
2214 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
2216 2013-04-15 Joey Ye <joey.ye@arm.com>
2218 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
2220 (thumb_far_jump_used_p): Count instruction size and set
2223 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
2225 * reorg.c (fill_simple_delay_slots): Reindent block of code.
2226 * resource.c (mark_target_live_regs): Reformat conditional block.
2228 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2230 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
2231 notes, they are emitted only just before final.
2232 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
2234 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2236 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
2237 * cfgrtl.c (delete_insn): Call it here instead.
2238 * lra-spills.c (lra_final_code_change): Use delete_insn.
2239 * haifa-sched.c (sched_remove_insn): Likewise.
2240 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
2241 returning to the nop pool.
2242 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
2243 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
2245 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2247 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
2248 * doc/tm.texi: Regenerated.
2250 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
2252 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
2255 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2257 * df-core.c (df_find_def): Compare register numbers.
2258 (df_find_use): Likewise.
2260 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
2263 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
2264 lra_in_progress for return.
2266 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2268 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
2269 define_insn into define_insn_and_split and emit movsicc patterns.
2271 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2273 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
2275 2013-04-12 Richard Biener <rguenther@suse.de>
2277 * tree-pass.h (TODO_do_not_ggc_collect): New.
2278 * passes.c (execute_one_ipa_transform_pass): Honor
2279 TODO_do_not_ggc_collect.
2280 (execute_one_pass): Likewise.
2283 2013-04-10 Richard Biener <rguenther@suse.de>
2285 * passes.c (init_optimization_passes): Remove reload pass.
2286 * ira.c (do_reload): Merge into ...
2288 (rest_of_handle_reload): Remove.
2289 (pass_reload): Likewise.
2290 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2291 of reload for vzeroupper pass placement.
2293 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2295 PR tree-optimization/56918
2296 PR tree-optimization/56920
2297 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
2298 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
2299 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
2300 use wide_mul_with_sign method.
2302 2013-04-12 Richard Biener <rguenther@suse.de>
2304 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
2305 not be considered a gimple constant.
2307 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
2309 * fold-const.c (const_binop): Handle vector shifts by a scalar.
2310 (fold_binary_loc): Call const_binop also for mixed vector-scalar
2313 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
2314 Jakub Jelinek <jakub@redhat.com>
2316 * opts.c: Include diagnostic-color.h.
2317 (common_handle_option): Handle OPT_fdiagnostics_color_.
2318 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
2319 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
2320 (diagnostic-color.o): New.
2321 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
2322 (diagnostic_color_rule): New enum.
2323 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
2324 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
2325 the location string.
2326 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
2327 either NULL, or color kind.
2328 * diagnostic-color.c: New file.
2329 * diagnostic-color.h: New file.
2330 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
2332 * doc/invoke.texi (-fdiagnostics-color): Document.
2333 * pretty-print.h (pp_show_color): Define.
2334 (struct pretty_print_info): Add show_color field.
2335 * diagnostic.c: Include diagnostic-color.h.
2336 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
2337 macros. Colorize error:, warning: etc. strings and also the location
2339 (diagnostic_show_locus): Colorize the caret line.
2340 * pretty-print.c: Include diagnostic-color.h.
2341 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
2342 inside of %< %> quotes or quoted through q format modifier.
2344 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2346 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
2348 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2350 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
2352 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
2355 2013-04-11 Marek Polacek <polacek@redhat.com>
2357 PR tree-optimization/48184
2358 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
2360 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2362 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
2363 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
2364 (skip_simple_arithmetic): Tidy up.
2365 * tree.h (skip_simple_constant_arithmetic): Declare.
2367 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2369 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
2371 2013-04-11 Richard Biener <rguenther@suse.de>
2373 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2374 generate vector constants.
2376 2013-04-11 Richard Biener <rguenther@suse.de>
2378 PR tree-optimization/56878
2379 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
2380 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
2382 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2383 Prefer to align the DR with the most invariant base address.
2385 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2387 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
2390 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2392 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
2393 floating-point vector comparisons against 0.
2395 2013-04-11 Jakub Jelinek <jakub@redhat.com>
2397 PR tree-optimization/56899
2398 * fold-const.c (extract_muldiv_1): Apply distributive law
2399 only if TYPE_OVERFLOW_WRAPS (ctype).
2401 2013-04-11 Bin Cheng <bin.cheng@arm.com>
2404 * ira-costs.c (scan_one_insn): Check whether the source rtx of
2405 loading has side effect.
2407 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
2409 * config/sparc/sparc.c: Include tree-pass.h.
2410 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
2411 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
2412 head of file. Change return type. Split off gate function.
2413 (sparc_gate_work_around_errata): New function.
2414 (pass_work_around_errata): New pass definition.
2415 (insert_pass_work_around_errata) New pass insert definition to
2416 insert pass_work_around_errata just after delayed-branch scheduling.
2417 (sparc_option_override): Insert the pass.
2418 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
2420 2013-04-10 David S. Miller <davem@davemloft.net>
2422 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
2423 or -mcpu=hypersparc.
2425 * target.def (cstore_mode): New hook.
2426 * target.h: Include insn-codes.h
2427 * targhooks.c: Likewise.
2428 (default_cstore_mode): New function.
2429 * targhooks.h: Declare it.
2430 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
2431 * doc/tm.texi: Rebuild.
2432 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
2433 target hook, rather than inspecting the insn_data.
2434 * config/sparc/sparc.c (sparc_cstore_mode): New function.
2435 (TARGET_CSTORE_MODE): Redefine.
2436 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
2438 * config/sparc/predicates.md (cstore_result_operand): New special
2440 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
2441 Use it for operand 0.
2442 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
2443 (*snesi_special): Likewise.
2444 (*snesi_zero): Likewise.
2445 (*seqsi_zero): Likewise.
2446 (*sltu_insn): Likewise.
2447 (*sgeu_insn): Likewise.
2448 (*seqdi_special): Make operand 0 and comparison operation be of
2450 (*snedi_special): Likewise.
2451 (*snedi_special_vis3): Likewise.
2452 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
2453 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
2454 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
2455 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
2456 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
2457 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
2458 (*sltu_extend_sp64): Likewise.
2459 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
2460 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
2461 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
2462 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
2463 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
2465 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
2467 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
2468 (aarch64_start_file): Use the new function.
2470 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2471 Jason Merrill <jason@redhat.com>
2473 * common.opt: Add -gdwarf.
2474 * opts.c (common_handle_option): Handle it.
2475 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
2477 2013-04-10 Richard Biener <rguenther@suse.de>
2479 * passes.c (execute_todo): Do not call ggc_collect conditional here.
2480 (execute_one_ipa_transform_pass): But unconditionally here.
2481 (execute_one_pass): And here.
2482 (init_optimization_passes): Remove reload pass.
2483 * tree-pass.h (TODO_ggc_collect): Remove.
2484 (pass_reload): Likewise.
2485 * ira.c (do_reload): Merge into ...
2487 (rest_of_handle_reload): Remove.
2488 (pass_reload): Likewise.
2489 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2490 of reload for vzeroupper pass placement.
2491 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
2492 and todo_flags_finish of all passes.
2494 2013-04-10 Richard Biener <rguenther@suse.de>
2496 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
2497 first_const_oprnd field, rename first_def_type to first_op_type.
2498 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
2499 (vect_get_and_check_slp_defs): Always use the type of the
2500 operand. Allow mixed vect_external_def, vect_constant_def types.
2501 (vect_get_constant_vectors): Handle mixed vect_external_def,
2502 vect_constant_def types.
2504 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
2506 PR tree-optimization/55524
2507 * tree-ssa-math-opts.c
2508 (convert_mult_to_fma): Don't use an fms construct
2509 when we don't have an fms operation, but fnma, and it looks
2510 likely that we'll be able to use the latter.
2512 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2514 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
2516 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
2517 inline fail caused by overwritable functions.
2519 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
2521 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
2522 unnecessary bits in the constant power of two case.
2524 2013-04-10 Richard Biener <rguenther@suse.de>
2526 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
2527 broken code swapping operands.
2528 (vect_build_slp_tree): Do not compute load permutations here.
2529 (vect_analyze_slp_instance): Compute load permutations here,
2530 after building the SLP tree.
2532 2013-04-09 Christian Bruel <christian.bruel@st.com>
2534 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
2535 of next/prev_real_insn.
2537 2013-04-09 Jan Hubicka <jh@suse.cz>
2539 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2540 Drop aliased parameter.
2541 (function_and_variable_visibility): Do not handle alias pairs.
2542 * cgraph.c (varpool_externally_visible_p): Update prototype.
2543 * varpool.c (varpool_add_new_variable): Update.
2545 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2547 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
2549 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
2551 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
2553 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
2555 2013-04-09 Marek Polacek <polacek@redhat.com>
2557 PR tree-optimization/48762
2558 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
2560 2013-04-09 Richard Biener <rguenther@suse.de>
2562 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
2564 (vect_build_slp_tree): Likewise.
2565 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
2566 calculating the cost of a SLP instance.
2567 (vect_analyze_slp_instance): Use it from here, after building
2570 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2573 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
2574 expand_omp_for_static_chunk): Use simple_p = true in
2575 force_gimple_operand_gsi calls when assigning to addressable decls.
2577 2013-04-09 Jeff Law <law@redhat.com>
2579 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
2580 when the boolean was created by converting a wider object which
2581 had a boolean range.
2583 2013-04-09 Richard Biener <rguenther@suse.de>
2585 * tree-vectorizer.h (slp_void_p): Remove.
2586 (slp_tree): Typedef before _slp_tree declaration.
2587 (struct _slp_tree): Use a vector of slp_tree as children.
2588 (vect_get_place_in_interleaving_chain): Remove.
2589 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
2591 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
2593 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
2594 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2595 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2596 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
2597 Use slp_node instead of slp_void_p and adjust.
2599 2013-04-09 Richard Biener <rguenther@suse.de>
2601 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
2602 work that is not necessary.
2604 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2606 PR tree-optimization/56854
2607 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
2608 forward into clobber stmts if it would change MEM_REF lhs into
2611 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
2613 * tree.c (type_hash_lookup, type_hash_add): Make static.
2614 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
2616 2013-04-09 Richard Biener <rguenther@suse.de>
2618 * tree.h (unsave_expr_now): Remove.
2619 * tree-inline.c (mark_local_for_remap_r): Remove.
2620 (unsave_expr_1): Likewise.
2621 (unsave_r): Likewise.
2622 (unsave_expr_now): Likewise.
2623 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
2624 (propagate_tree_value): Likewise.
2626 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
2628 * doc/rtl.texi (sequence): Rewrite documentation to match the
2629 current use of SEQUENCE rtl objects.
2630 * rtl.def (SEQUENCE): Likewise.
2632 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
2633 Update documentation.
2634 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
2635 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
2637 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
2639 2013-04-08 Teresa Johnson <tejohnson@google.com>
2641 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
2642 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
2644 (estimate_edge_size_and_time): Add comment to suggest using rounding
2646 (estimate_node_size_and_time): Ditto.
2647 (remap_edge_change_prob): Use helper rounding divide methods.
2648 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
2649 (gimple_mod_pow2_value_transform): Ditto.
2650 (gimple_mod_subtract_transform): Ditto.
2651 (gimple_ic_transform): Ditto.
2652 (gimple_stringops_transform): Ditto.
2653 * stmt.c (conditional_probability): Ditto.
2654 (emit_case_dispatch_table): Ditto.
2655 * lto-cgraph.c (merge_profile_summaries): Ditto.
2656 * tree-optimize.c (execute_fixup_cfg): Ditto.
2657 * cfgcleanup.c (try_forward_edges): Ditto.
2658 * cfgloopmanip.c (scale_loop_profile): Ditto.
2660 (duplicate_loop_to_header_edge): Ditto.
2661 (lv_adjust_loop_entry_edge): Ditto.
2662 * tree-vect-loop.c (vect_transform_loop): Ditto.
2663 * profile.c (compute_branch_probabilities): Ditto.
2664 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
2665 * lto-streamer-in.c (input_cfg): Ditto.
2666 * gimple-streamer-in.c (input_bb): Ditto.
2667 * ipa-cp.c (update_profiling_info): Ditto.
2668 (update_specialized_profile): Ditto.
2669 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
2670 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
2672 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2673 (compute_trg_info): Ditto.
2674 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
2675 (purge_dead_edges): Ditto.
2676 * loop-unswitch.c (unswitch_loop): Ditto.
2677 * cgraphclones.c (cgraph_clone_edge): Ditto.
2678 (cgraph_clone_node): Ditto.
2679 * tree-inline.c (copy_bb): Ditto.
2680 (copy_edges_for_bb): Ditto.
2681 (initialize_cfun): Ditto.
2682 (copy_cfg_body): Ditto.
2683 (expand_call_inline): Ditto.
2685 2013-04-08 Kai Tietz <ktietz@redhat.com>
2687 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
2688 TARGET_CYGWIN64 by TARGET_64BIT.
2690 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2692 * config/epiphany/epiphany.md (GPR_1): New constant.
2693 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
2694 * config/epiphany/epiphany.c (gen_compare_reg):
2695 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
2696 is already in place.
2697 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
2698 Don't require being called during rtl expansion; If y operlaps r0,
2700 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
2701 (epiphany_expand_epilogue): Likewise.
2703 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
2704 Don't use CC_FPmode for ORDERED / UNORDERED.
2705 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
2707 * config/epiphany/constraints.md (CnL): New constraint.
2708 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
2709 * config/epiphany/predicates.md (add_operand): Allow 1024.
2711 * config/epiphany/epiphany.md (logical_op): New code iterator.
2712 (op_mnc): New code attribute.
2713 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
2714 (mov_f+1, mov_f+2): New peephole2 patterns.
2716 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
2717 (cstoresi4): Also allow re-use of zero result when doing a NE
2718 comparison to a non-zero operand.
2719 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2721 * config/epiphany/epiphany.md (<insn_opname>v2si3):
2722 Use gen_addsi3_i / gen_subsi3_i.
2724 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2728 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
2729 contain anything but clobbers, at most one __builtin_stack_restore,
2730 optionally debug stmts and final resx, and if it has at least one
2731 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
2732 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
2733 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
2734 which isn't defaut definition, remove them.
2735 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
2736 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
2737 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
2738 with MEM_REF LHS with SSA_NAME address.
2740 2013-04-08 Jeff Law <law@redhat.com>
2742 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
2744 2013-04-08 Richard Biener <rguenther@suse.de>
2746 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
2748 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
2749 determined vector type.
2750 (vect_analyze_data_refs): Likewise.
2751 (vect_get_new_vect_var): Adjust.
2752 (vect_create_destination_var): Preserve SSA name versions.
2753 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
2754 not dump anything here.
2756 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2758 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
2759 Add member lr_slot_known.
2760 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
2762 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
2763 Remove code that sets lr_slot_offset according to what a previous
2764 version of epiphany_emit_save_restore used to do.
2765 (epiphany_emit_save_restore): When doing an lr save or restore,
2766 set/verify lr_slot_known and lr_slot_offset.
2768 2013-04-08 Xinyu Qi <xyqi@marvell.com>
2771 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
2774 2013-04-08 Richard Biener <rguenther@suse.de>
2776 * alias.c (find_base_term): Fix thinko in previous change.
2778 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2780 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
2781 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
2782 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
2783 if possible to compute val.
2784 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
2785 For QImode integers don't require anything about precision. Use
2786 const_with_all_bytes_same to find out if the constant doesn't have
2787 repeated bytes in it.
2789 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2791 * config/s390/s390.c (s390_expand_insv): Only accept insertions
2794 2013-04-08 Marek Polacek <polacek@redhat.com>
2796 PR rtl-optimization/48182
2797 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
2800 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2803 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
2804 nuses, make sure we have a label.
2806 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2809 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
2810 (rs6000_emit_swdiv_low_precision): Remove.
2811 (rs6000_emit_swdiv): Rewrite to handle between one and four
2812 iterations of Newton-Raphson generally; modify required number of
2813 iterations for some cases.
2814 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
2816 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
2818 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
2819 set-but-unused variable.
2821 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
2822 basic blocks of released function bodies garbage-collectable.
2824 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
2825 (struct rtl_opt_pass): Add TODO_df_finish.
2827 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
2829 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2831 * config/arm/constraints.md (q): New constraint.
2832 * config/arm/ldrdstrd.md: New file.
2833 * config/arm/arm.md (ldrdstrd.md) New include.
2834 (arm_movdi): Use "q" instead of "r" constraint
2835 for double-word memory access.
2836 (movdf_soft_insn): Likewise.
2837 * config/arm/vfp.md (movdi_vfp): Likewise.
2838 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
2839 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
2840 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
2841 (mem_ok_for_ldrd_strd): Likewise.
2842 (output_move_double): Update assertion.
2844 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2846 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
2848 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2850 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
2851 define_insn_and_split.
2852 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
2854 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2856 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
2857 define_insn_and_split.
2858 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
2859 (shiftsi3_compare): New pattern.
2861 * config/arm/unspecs.md (UNSPEC_RRX): New.
2863 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2865 * config/arm/arm.md (negdi_extendsidi): New pattern.
2866 (negdi_zero_extendsidi): Likewise.
2868 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2870 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
2871 define_insn_and_split.
2872 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
2873 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
2875 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2877 * config/arm/arm.md (arm_subdi3): Convert define_insn into
2878 define_insn_and_split.
2879 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
2880 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
2882 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2884 * config/arm/arm.md (subsi3_carryin): New pattern.
2885 (subsi3_carryin_const): Likewise.
2886 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
2887 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
2889 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2891 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
2893 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2895 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
2896 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
2898 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2900 * config/arm/arm.c (arm_expand_builtin): Change fcode
2901 type to unsigned int.
2903 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2905 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
2907 2013-04-04 Ian Lance Taylor <iant@google.com>
2909 * doc/standards.texi (Standards): The Go frontend supports the Go 1
2912 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
2915 * df-scan.c (df_insn_delete): Disable failing assert.
2917 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2919 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
2920 New function prototype.
2921 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
2922 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
2923 (arm_builtin_vectorized_function): New function.
2925 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2927 * config/arm/arm_neon_builtins.def: New file.
2928 * config/arm/arm.c (neon_builtin_data): Move contents to
2929 arm_neon_builtins.def.
2930 (enum arm_builtins): Include neon builtin definitions.
2931 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
2932 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
2934 2013-04-04 Marek Polacek <polacek@redhat.com>
2936 PR tree-optimization/48186
2937 * predict.c (maybe_hot_frequency_p): Return false if
2938 HOT_BB_FREQUENCY_FRACTION is 0.
2939 (cgraph_maybe_hot_edge_p): Likewise.
2941 2013-04-04 Richard Biener <rguenther@suse.de>
2943 PR tree-optimization/56826
2944 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
2947 2013-04-04 Richard Biener <rguenther@suse.de>
2949 PR tree-optimization/56213
2950 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
2951 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
2953 2013-04-04 Richard Biener <rguenther@suse.de>
2955 PR tree-optimization/56837
2956 * tree-loop-distribution.c (classify_partition): For non-zero
2957 values require that the value has the same precision as its
2958 mode to be useful as memset value.
2960 2013-04-03 Nick Clifton <nickc@redhat.com>
2962 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
2963 (fmssf4): Use fmsf.s on E3V5 architectures.
2964 (fnmasf4): Use fnmaf.s on E3V5 architectures.
2965 (fnmssf4): Use fnmsf.s on E3V5 architectures.
2967 2013-04-03 Jeff Law <law@redhat.com>
2969 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
2970 (lra-eliminations.o): Likewise.
2972 2013-04-03 Teresa Johnson <tejohnson@google.com>
2974 * gcov-io.c (compute_working_sets): Moved most of body of old
2975 compute_working_sets here from profile.c.
2976 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
2977 (gcov_working_set_t): Moved typedef here from basic-block.h
2978 (compute_working_set): Declare.
2979 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
2980 (get_working_sets): Renamed from compute_working_set,
2981 replace most of body with call to new compute_working_sets.
2982 (get_exec_counts): Replace call to compute_working_sets
2983 to get_working_sets.
2984 * profile.h (get_working_sets): Renamed from compute_working_set.
2985 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
2986 to get_working_sets.
2987 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
2988 * gcov-dump.c (dump_working_sets): New function.
2990 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
2992 * hwint.c (sext_hwi, zext_hwi): New functions.
2993 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
2994 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
2995 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
2996 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
2997 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
2998 (sext_hwi, zext_hwi): New functions.
3000 2013-04-03 Jeff Law <law@redhat.com>
3002 PR tree-optimization/56799
3003 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
3004 back test for widening conversion erroneously dropped in prior change.
3006 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3009 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
3010 instead of next_real_insn.
3012 2013-04-03 Marek Polacek <polacek@redhat.com>
3015 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
3017 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3020 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
3022 (thumb1_output_casesi): Likewise.
3023 (thumb2_output_casesi): Likewise.
3025 2013-04-03 Richard Biener <rguenther@suse.de>
3027 PR tree-optimization/56817
3028 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3030 (tree_unroll_loops_completely_1): ... new function to manually
3031 walk the loop tree, properly defering outer loops of unrolled
3032 loops to later iterations.
3034 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3036 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
3037 (vectorizable_load): Likewise.
3038 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3039 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
3041 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3043 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
3046 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3048 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
3050 2013-04-03 Bin Cheng <bin.cheng@arm.com>
3052 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
3054 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3056 PR tree-optimization/56790
3057 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
3060 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3062 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3064 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
3065 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
3068 2013-04-03 Jakub Jelinek <jakub@redhat.com>
3071 * tree.h (force_folding_builtin_constant_p): New decl.
3072 * builtins.c (force_folding_builtin_constant_p): New variable.
3073 (fold_builtin_constant_p): Fold immediately also if
3074 force_folding_builtin_constant_p.
3076 2013-04-03 Richard Biener <rguenther@suse.de>
3078 PR tree-optimization/56812
3079 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3080 DRs of the same interleaving chain are independent.
3082 2013-04-02 Jason Merrill <jason@redhat.com>
3084 * gdbinit.in (pbb): Use debug fn.
3086 2013-04-02 Lawrence Crowl <crowl@google.com>
3088 * sese.h (struct ivtype_map_elt_s): Remove unused.
3089 (extern debug_ivtype_map): Remove unused.
3090 (extern eq_ivtype_map_elts): Remove unused.
3091 * sese.c (debug_ivtype_map): Removed unused.
3092 (debug_ivtype_map_1): Removed unused.
3093 (debug_ivtype_elt): Remove unused.
3094 (eq_ivtype_map_elts): Remove unused.
3097 2013-04-02 Kai Tietz <ktietz@redhat.com>
3100 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
3101 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
3102 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
3104 (legitimize_pe_coff_symbol): Likewise.
3105 (is_imported_p): New helper-function.
3106 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
3107 for Windows x64 targets.
3108 (ix86_expand_prologue): Optimize for pe-coff targets.
3109 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
3110 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
3111 medium/large code-model.
3112 (legitimize_pic_address): Likewise.
3113 (legitimize_tls_address): Likewise.
3114 (ix86_expand_call): Likewise.
3115 (x86_output_mi_thunk): Likewise.
3116 (get_dllimport_decl): Add new beimport argument.
3117 (construct_plt_address): Don't assert for x64 pe-coff targets.
3118 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
3120 (SYMBOL_FLAG_STUBVAR): New macro.
3121 (SYMBOL_REF_STUBVAR_P): Likewise.
3122 * config/i386/winnt.c (stub_list): New structure.
3123 (stub_head): New local variable.
3124 (i386_pe_record_stub): New function.
3125 (i386_pe_file_end): Emit refptr-stubs.
3127 2013-04-02 Jakub Jelinek <jakub@redhat.com>
3129 PR rtl-optimization/56745
3130 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
3131 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
3134 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
3135 and both of them are MEM_REFs, just compare first argument for
3136 equality and attempt to deal even with differing offsets.
3139 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
3140 of gimple_clobber_p to be MEM_REF.
3141 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
3142 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
3143 after gimplification.
3144 * asan.c (get_mem_ref_of_assignment): Don't instrument
3145 gimple_clobber_p stmts.
3146 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
3147 gimple_clobber_p stmt if they have MEM_REF lhs and
3148 are dead because of another gimple_clobber_p stmt.
3149 * tree-ssa-live.c (clear_unused_block_pointer): Treat
3150 gimple_clobber_p stmts like debug stmts.
3151 (remove_unused_locals): Remove clobbers with MEM_REF lhs
3152 that refer to unused VAR_DECLs or uninitialized values.
3153 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
3154 gimple_clobber_p stmts if they refer to removed parameters.
3155 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
3158 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
3160 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
3161 using SWI48 mode attribute.
3163 2013-04-02 Wei Mi <wmi@google.com>
3165 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
3166 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
3167 *<rotate_insn><mode>3_mask in i386.md.
3169 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
3171 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
3173 2013-04-02 Richard Biener <rguenther@suse.de>
3175 PR tree-optimization/56778
3176 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3177 Runtime alias tests are not supported for gather loads.
3178 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
3179 stmts referenced from SSA operands before updating SSA form.
3181 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
3182 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3184 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
3185 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
3186 * config/arm/cortex-a53.md: New file.
3187 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
3188 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
3189 * config/arm/arm.c (arm_issue_rate): Likewise.
3190 * config/arm/arm-tune.md: Regenerate
3191 * config/arm/arm-tables.opt: Regenerate.
3192 * config/arm/arm-cores.def: Add cortex-a53.
3194 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
3196 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
3199 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
3201 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
3202 scalar load/store operations using B/H registers.
3203 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
3205 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
3207 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
3209 * config/aarch64/aarch64.c
3210 (aarch64_simd_scalar_immediate_valid_for_move): New.
3211 * config/aarch64/aarch64-protos.h
3212 (aarch64_simd_scalar_immediate_valid_for_move): New.
3213 * config/aarch64/constraints.md (Dh, Dq): New.
3214 * config/aarch64/iterators.md (hq): New.
3216 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
3218 * reorg.c (get_branch_condition): Deal with conditional returns.
3219 (fill_simple_delay_slots): Remove dead code dealing with jumps.
3221 2013-04-01 Wei Mi <wmi@google.com>
3223 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
3224 Truncate operand 2 using %b asm operand modifier.
3225 (*<shift_insn><mode>3_mask): Ditto.
3226 (*<rotate_insn><mode>3_mask): Ditto.
3228 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
3231 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
3233 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
3235 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
3237 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
3239 2013-03-30 Lawrence Crowl <crowl@google.com>
3241 * dse.c (clear_alias_sets): Remove never set.
3242 (disqualified_clear_alias_sets): Remove never set.
3243 (clear_alias_mode_pool): Remove never set.
3244 (dse_step0): Remove condition that is never true.
3245 (canon_address): Remove condition that is never true.
3246 (dse_step7): Remove condition that is never true.
3247 (rest_of_handle_dse): Remove condition that is never true.
3248 (rest_of_handle_dse::did_global): Remove never read from above.
3249 (dse_step2_spill): Remove never called from above.
3250 (dse_step5_spill): Remove never called from above.
3252 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
3254 * doc/md.texi (Standard Names) <casesi>: Update documentation for
3255 JUMP_TABLE_DATA changes.
3256 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
3257 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
3258 (Insns) <jump_table_data>: New entry.
3259 * doc/tm.texi: Regenerate.
3261 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
3263 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
3264 for table jump at the end of a basic block using tablejump_p.
3265 * targhooks.c (default_invalid_within_doloop): Likewise.
3266 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
3267 target hook implementation that is identical to the default hook.
3268 (rs6000_invalid_within_doloop): Remove.
3270 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
3271 unused variable from tablejump_p call.
3273 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
3274 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
3275 (INSN_DELETED_P): Likewise.
3276 (emit_jump_table_data): New prototype.
3277 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
3278 after 4th as unused.
3279 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
3280 * sched-vis.c (print_insn): Likewise.
3281 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
3282 insn for compatibility with back ends that use next_active_insn to
3283 identify jump table data.
3284 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
3285 (remove_insn): Likewise.
3286 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
3288 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
3289 (emit_jump_table_data): New function.
3291 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
3292 basic block, a JUMP_TABLE_DATA never is.
3293 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
3294 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
3295 off from code handling real insns.
3296 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
3297 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
3298 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
3299 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
3300 is not a NONDEBUG_INSN_P.
3301 * ira-costs.c (scan_one_insn): Likewise.
3302 * jump.c (mark_all_labels): Likewise.
3303 (mark_jump_label_1): Likewise.
3304 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3305 * lra.c (get_insn_freq): Expect all insns reaching here to be in
3307 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
3308 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
3309 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
3310 JUMP_TABLE_DATA_P insns.
3311 (calculate_elim_costs_all_insns): Likewise.
3312 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
3313 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
3314 (delete_output_reload): Code style fixups.
3315 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
3316 insn flags on this non-insn.
3317 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
3318 as scheduling barriers, for pre-change compatibility.
3319 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
3320 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
3322 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
3323 redundant JUMP_TABLE_DATA_P test.
3324 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
3325 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3326 (frv_for_each_packet): Likewise.
3327 * config/i386/i386.c (min_insn_size): Likewise.
3328 (ix86_avoid_jump_mispredicts): Likewise.
3329 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3330 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
3331 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3332 (mips16_insn_length): Robustify.
3333 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
3334 (mips16_split_long_branches): Likewise.
3335 * config/pa/pa.c (pa_combine_instructions): Likewise.
3336 * config/rs6000/rs6000.c (get_next_active_insn): Treat
3337 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
3338 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
3339 as contributing to pool range lengths.
3340 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
3341 Remove redundant JUMP_TABLE_DATA_P test.
3342 (sh_loop_align): Likewise.
3343 (split_branches): Likewise.
3344 (sh_insn_length_adjustment): Likewise.
3345 * config/spu/spu.c (get_branch_target): Likewise.
3347 2013-03-29 Jan Hubicka <jh@suse.cz>
3349 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
3350 gcov streaming; stream hot bb threshold to ltrans.
3351 * predict.c (get_hot_bb_threshold): Break out from ....
3352 (maybe_hot_count_p): ... here.
3353 (set_hot_bb_threshold): New function.
3354 * lto-section-in.c (lto_section_name): Add profile.
3355 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
3356 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
3358 (histogram_entry): New structure.
3359 (histogram, histogram_pool): New global vars.
3360 (histogram_hash): New structure.
3361 (histogram_hash::hash): New method.
3362 (histogram_hash::equal): Likewise.
3363 (account_time_size): New function.
3364 (cmp_counts): New function.
3365 (dump_histogram): New function.
3366 (ipa_profile_generate_summary): New function.
3367 (ipa_profile_write_summary): New function.
3368 (ipa_profile_read_summary): New function.
3369 (ipa_profile): Decide on threshold.
3370 (pass_ipa_profile): Add ipa_profile_write_summary and
3371 ipa_profile_read_summary.
3372 * Makefile.in (ipa.o): Update dependencies.
3373 * lto-streamer.h (LTO_section_ipa_profile): New section.
3375 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
3377 * tree.h (VAR_P): New.
3379 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
3382 * doc/invoke.texi ([-fwhole-program]): Fix typo.
3384 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
3386 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
3387 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3388 (control_flow_insn_p): Likewise.
3389 * cfgrtl.c (duplicate_insn_chain): Likewise.
3390 * final.c (get_attr_length_1): Likewise.
3391 (shorten_branches): Likewise.
3392 (final_scan_insn): Likewise.
3393 * function.c (instantiate_virtual_regs): Likewise.
3394 * gcse.c (insert_insn_end_basic_block): Likewise.
3395 * ira-costs.c (scan_one_insn): Likewise.
3396 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3397 * lra.c (check_rtl): Likewise.
3398 * reload1.c (elimination_costs_in_insn): Likewise.
3399 * reorg.c (follow_jumps): Likewise.
3401 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
3402 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3403 (thumb_far_jump_used_p): Likewise.
3404 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
3405 (workaround_speculation): Likewise.
3406 (add_sched_insns_for_speculation): Likewise.
3407 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
3408 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3409 (frv_for_each_packet): Likewise.
3410 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
3411 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
3412 (final_emit_insn_group_barriers): Likewise.
3413 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3414 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3415 (mips16_insn_length): Likewise.
3416 * config/pa/pa.c (pa_reorg): Likewise.
3417 (pa_combine_instructions): Likewise.
3418 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
3419 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
3420 (sh_reorg): Likewise.
3421 (split_branches): Likewise.
3422 * config/spu/spu.c (get_branch_target): Likewise.
3424 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
3427 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
3429 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
3430 Fix declaration name.
3432 2013-03-28 Lawrence Crowl <crowl@google.com>
3434 * graphds.h (struct graph.indicies): Remove unused.
3435 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
3436 (SCOP_ORIGINAL_PDDRS): Remove unused.
3437 * sese.h (extern insert_loop_close_phis): Removed unused.
3438 (extern insert_guard_phis): Removed unused.
3439 (extern ivtype_map_elt_info): Removed unused.
3440 (new_ivtype_map_elt): Removed unused.
3441 * sese.c (ivtype_map_elt_info): Removed unused.
3443 2013-03-28 Lawrence Crowl <crowl@google.com>
3445 * Makefile.in: Add several missing include dependences.
3447 (test-dump.o): New. This object is not added to any executable,
3448 but is present for ad-hoc testing.
3450 (debug (const bitmap_head_def &)): New.
3451 (debug (const bitmap_head_def *)): New.
3453 (extern debug (const bitmap_head_def &)): New.
3454 (extern debug (const bitmap_head_def *)): New.
3456 (debug (edge_def &)): New.
3457 (debug (edge_def *)): New.
3459 (debug (basic_block_def &)): New.
3460 (debug (basic_block_def *)): New.
3462 (dump_node (const_tree, int, FILE *)): Correct source file.
3464 (debug (die_struct &)): New.
3465 (debug (die_struct *)): New.
3467 (extern debug (die_struct &)): New.
3468 (extern debug (die_struct *)): New.
3469 * gimple-pretty-print.c
3470 (debug (gimple_statement_d &)): New.
3471 (debug (gimple_statement_d *)): New.
3472 * gimple-pretty-print.h
3473 (extern debug (gimple_statement_d &)): New.
3474 (extern debug (gimple_statement_d *)): New.
3476 (debug (ira_allocno_copy &)): New.
3477 (debug (ira_allocno_copy *)): New.
3478 (debug (ira_allocno &)): New.
3479 (debug (ira_allocno *)): New.
3481 (extern debug (ira_allocno_copy &)): New.
3482 (extern debug (ira_allocno_copy *)): New.
3483 (extern debug (ira_allocno &)): New.
3484 (extern debug (ira_allocno *)): New.
3486 (debug (live_range &)): New.
3487 (debug (live_range *)): New.
3489 (debug (lra_live_range &)): New.
3490 (debug (lra_live_range *)): New.
3492 (debug (lra_live_range &)): New.
3493 (debug (lra_live_range *)): New.
3495 (debug (omega_pb_d &)): New.
3496 (debug (omega_pb_d *)): New.
3498 (extern debug (omega_pb_d &)): New.
3499 (extern debug (omega_pb_d *)): New.
3501 (debug (const rtx_def &)): New.
3502 (debug (const rtx_def *)): New.
3504 (debug_tree (tree): Move within file.
3505 (debug_raw (const tree_node &)): New.
3506 (debug_raw (const tree_node *)): New.
3507 (dump_tree_via_hooks (const tree_node *, int)): New.
3508 (debug (const tree_node &)): New.
3509 (debug (const tree_node *)): New.
3510 (debug_verbose (const tree_node &)): New.
3511 (debug_verbose (const tree_node *)): New.
3512 (debug_head (const tree_node &)): New.
3513 (debug_head (const tree_node *)): New.
3514 (debug_body (const tree_node &)): New.
3515 (debug_body (const tree_node *)): New.
3516 (debug_vec_tree (tree): Move and reimplement in terms of dump.
3517 (debug (vec<tree, va_gc> &)): New.
3518 (debug (vec<tree, va_gc> *)): New.
3520 (extern debug (const rtx_def &)): New.
3521 (extern debug (const rtx_def *)): New.
3523 (debug_raw (simple_bitmap_def &)): New.
3524 (debug_raw (simple_bitmap_def *)): New.
3525 (debug (simple_bitmap_def &)): New.
3526 (debug (simple_bitmap_def *)): New.
3528 (extern debug (simple_bitmap_def &)): New.
3529 (extern debug (simple_bitmap_def *)): New.
3530 (extern debug_raw (simple_bitmap_def &)): New.
3531 (extern debug_raw (simple_bitmap_def *)): New.
3533 (debug (vinsn_def &)): New.
3534 (debug (vinsn_def *)): New.
3535 (debug_verbose (vinsn_def &)): New.
3536 (debug_verbose (vinsn_def *)): New.
3537 (debug (expr_def &)): New.
3538 (debug (expr_def *)): New.
3539 (debug_verbose (expr_def &)): New.
3540 (debug_verbose (expr_def *)): New.
3541 (debug (vec<rtx> &)): New.
3542 (debug (vec<rtx> *)): New.
3544 (extern debug (vinsn_def &)): New.
3545 (extern debug (vinsn_def *)): New.
3546 (extern debug_verbose (vinsn_def &)): New.
3547 (extern debug_verbose (vinsn_def *)): New.
3548 (extern debug (expr_def &)): New.
3549 (extern debug (expr_def *)): New.
3550 (extern debug_verbose (expr_def &)): New.
3551 (extern debug_verbose (expr_def *)): New.
3552 (extern debug (vec<rtx> &)): New.
3553 (extern debug (vec<rtx> *)): New.
3555 (_list_iter_cond_expr): Make inline instead of static.
3557 (debug (sreal &)): New.
3558 (debug (sreal *)): New.
3560 (extern debug (sreal &)): New.
3561 (extern debug (sreal *)): New.
3563 (extern debug_raw (const tree_node &)): New.
3564 (extern debug_raw (const tree_node *)): New.
3565 (extern debug (const tree_node &)): New.
3566 (extern debug (const tree_node *)): New.
3567 (extern debug_verbose (const tree_node &)): New.
3568 (extern debug_verbose (const tree_node *)): New.
3569 (extern debug_head (const tree_node &)): New.
3570 (extern debug_head (const tree_node *)): New.
3571 (extern debug_body (const tree_node &)): New.
3572 (extern debug_body (const tree_node *)): New.
3573 (extern debug (vec<tree, va_gc> &)): New.
3574 (extern debug (vec<tree, va_gc> *)): New.
3576 (debug (struct loop &)): New.
3577 (debug (struct loop *)): New.
3578 (debug_verbose (struct loop &)): New.
3579 (debug_verbose (struct loop *)): New.
3580 * tree-dump.c: Add header dependence.
3582 (extern debug (struct loop &)): New.
3583 (extern debug (struct loop *)): New.
3584 (extern debug_verbose (struct loop &)): New.
3585 (extern debug_verbose (struct loop *)): New.
3587 (debug (data_reference &)): New.
3588 (debug (data_reference *)): New.
3589 (debug (vec<data_reference_p> &)): New.
3590 (debug (vec<data_reference_p> *)): New.
3591 (debug (vec<ddr_p> &)): New.
3592 (debug (vec<ddr_p> *)): New.
3594 (extern debug (data_reference &)): New.
3595 (extern debug (data_reference *)): New.
3596 (extern debug (vec<data_reference_p> &)): New.
3597 (extern debug (vec<data_reference_p> *)): New.
3598 (extern debug (vec<ddr_p> &)): New.
3599 (extern debug (vec<ddr_p> *)): New.
3601 (debug (pt_solution &)): New.
3602 (debug (pt_solution *)): New.
3604 (extern debug (pt_solution &)): New.
3605 (extern debug (pt_solution *)): New.
3607 (debug (_var_map &)): New.
3608 (debug (_var_map *)): New.
3609 (debug (tree_live_info_d &)): New.
3610 (debug (tree_live_info_d *)): New.
3612 (extern debug (_var_map &)): New.
3613 (extern debug (_var_map *)): New.
3614 (extern debug (tree_live_info_d &)): New.
3615 (extern debug (tree_live_info_d *)): New.
3617 2013-03-28 Jan Hubicka <jh@suse.cz>
3619 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
3621 2013-03-28 Ian Bolton <ian.bolton@arm.com>
3623 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
3624 record only when desired or required.
3626 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
3628 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
3629 *vec_extractv2di_1_rex64. Use x64 isa attribute.
3631 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3633 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
3634 (*andsi3_compare0_uxtw): New pattern.
3635 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
3636 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
3638 2013-03-28 Jan Hubicka <jh@suse.cz>
3640 * data-streamer-in.c (streamer_read_gcov_count): New function.
3641 * gimple-streamer-out.c: Include value-prof.h.
3642 (output_gimple_stmt): Output histogram.
3643 (output_bb): Use streamer_write_gcov_count.
3644 * value-prof.c: Include data-streamer.h
3645 (dump_histogram_value): Add HIST_TYPE_MAX.
3646 (stream_out_histogram_value): New function.
3647 (stream_in_histogram_value): New function.
3648 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
3649 (stream_out_histogram_value, stream_in_histogram_value): Declare.
3650 * data-streamer-out.c (streamer_write_gcov_count): New function.
3651 (streamer_write_gcov_count_stream): New function.
3652 * lto-cgraph.c (lto_output_edge): Update counter streaming.
3653 (lto_output_node): Likewise.
3654 (input_node, input_edge): Likewise.
3655 * lto-streamer-out.c (output_cfg): Update streaming.
3656 * lto-streamer-in.c (input_cfg): Likewise.
3657 * data-streamer.h (streamer_write_gcov_count,
3658 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
3659 * gimple-streamer-in.c: Include value-prof.h
3660 (input_gimple_stmt): Input histograms.
3661 (input_bb): Update profile streaming.
3663 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3665 * genmodes.c (emit_max_int): New function.
3666 (emit_insn_modes_h): Added call to emit_max_function.
3667 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
3669 * machmode.def: Fixed comment.
3671 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3673 * combine.c (try_combine): Removed useless assert.
3674 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
3676 2013-03-28 Marek Polacek <polacek@redhat.com>
3677 Richard Biener <rguenther@suse.de>
3679 PR tree-optimization/56695
3680 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
3681 build signed result of a vector comparison.
3682 * tree-cfg.c (verify_gimple_comparison): Check that a result
3683 of a vector comparison has signed type.
3685 2013-03-28 Richard Biener <rguenther@suse.de>
3687 PR tree-optimization/37021
3688 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
3689 do not restrict gaps between groups.
3690 * tree-vect-stmts.c (vectorizable_load): Properly account for
3691 a gap between groups.
3693 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
3695 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
3696 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
3699 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
3701 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
3702 * doc/extend.texi (Named Address Spaces): Ditto.
3703 (Variable Attributes): Ditto.
3705 2013-03-27 Kai Tietz <ktietz@redhat.com>
3707 * config.build: Add support for cygwin x64 target.
3708 * config.gcc: Likewise.
3709 * config.host: Likewise.
3710 * configure.ac: Likewise
3711 * configure: Regenerated.
3713 2013-03-27 Kai Tietz <ktietz@redhat.com>
3715 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
3716 * config/i386/t-cygwin-w64: New file.
3717 * config/i386/cygwin-w64.h: New file.
3718 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
3719 and add support for x64-cygwin target.
3720 (CPP_SPEC): Likewise.
3721 (CXX_WRAP_SPEC_LIST): Undefine before define.
3722 (LIBGCJ_SONAME): Use 15 as version.
3724 2013-03-27 Richard Biener <rguenther@suse.de>
3726 PR tree-optimization/56716
3727 * tree-ssa-structalias.c (perform_var_substitution): Adjust
3728 dumping for ref nodes.
3730 2013-03-27 Martin Jambor <mjambor@suse.cz>
3732 PR tree-optimization/55334
3733 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
3734 restricted pointers to arrays.
3736 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3738 * Makefile.in (.SUFFIXES): Add .cc.
3739 (.c.o): Apply same recipe for implicit rule .cc.o.
3741 2013-03-27 Richard Biener <rguenther@suse.de>
3743 PR tree-optimization/37021
3744 * tree-vect-data-refs.c (vect_check_strided_load): Allow
3745 REALPART/IMAGPART_EXPRs around the supported refs.
3746 * tree-ssa-structalias.c (find_func_aliases): Assume that
3747 floating-point values are not used to transfer pointers.
3749 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3751 * target.def (TARGET_HAS_IFUNC_P): New target hook.
3752 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
3753 * doc/tm.texi: Regenerate.
3754 * targhooks.h (default_has_ifunc_p): New.
3755 * targhooks.c (default_has_ifunc_p): Ditto.
3756 * config/linux-protos.h: New file.
3757 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
3758 this hook for linux which disables support of indirect functions in
3760 * config/linux-android.c: New file.
3761 * config/t-linux-android.c: Ditto.
3762 * config.gcc: Added new object file linux-android.o.
3763 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
3764 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
3765 * varasm.c (do_assemble_alias): Likewise.
3766 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
3767 doesn't support indirect functions.
3768 * configure: Regenerate.
3770 2013-03-27 Bin Cheng <bin.cheng@arm.com>
3773 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
3774 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
3777 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3779 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
3781 2013-03-27 Terry Guo <terry.guo@arm.com>
3783 * config/arm/arm-cores.def: Added core cortex-r7.
3784 * config/arm/arm-tune.md: Regenerated.
3785 * config/arm/arm-tables.opt: Regenerated.
3786 * doc/invoke.texi: Added entry for core cortex-r7.
3788 2013-03-27 Walter Lee <walt@tilera.com>
3790 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3791 double-decrement of next_scratch_regno.
3793 2013-03-27 Walter Lee <walt@tilera.com>
3795 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3797 (insn_v1mulus): Ditto.
3798 (insn_v2muls): Ditto.
3800 2013-03-27 Walter Lee <walt@tilera.com>
3802 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
3803 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
3805 2013-03-27 Walter Lee <walt@tilera.com>
3807 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
3808 (*sibcall_value): Ditto.
3810 2013-03-27 Walter Lee <walt@tilera.com>
3812 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
3813 (insn_mnz_v8qi): ... this ...
3814 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
3816 (insn_v<n>mnz): Replaced by ...
3817 (insn_v1mnz): ... this ...
3818 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
3820 (insn_mz_<mode>): Replaced by ...
3821 (insn_mz_v8qi): ... this ...
3822 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
3824 (insn_v<n>mz): Replaced by ...
3825 (insn_v1mz): ... this ...
3826 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
3829 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
3831 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
3833 2013-03-26 Roland McGrath <mcgrathr@google.com>
3835 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
3836 than fprintf with a non-constant, non-format string.
3838 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3840 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
3841 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
3842 operand 0 predicate.
3843 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
3844 attribute. Use general_x64nomem_operand as operand 1 predicate.
3845 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
3846 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3847 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
3848 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3849 (mov<mode>_insv_1): Remove expander. Merge insn with
3850 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
3851 Use general_x64nomem_operand as operand 1 predicate.
3852 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
3853 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
3854 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3855 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
3856 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
3857 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
3858 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3859 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
3860 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
3861 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
3862 (general_x64nomem_operand): Ditto.
3864 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
3866 * config/rtems.opt: Add -pthread option.
3868 2013-03-26 Richard Biener <rguenther@suse.de>
3870 * alias.c (find_base_term): Avoid redundant and not used recursion.
3871 (base_alias_check): Get the initial base term from the caller.
3872 (true_dependence_1): Compute and pass base terms to base_alias_check.
3873 (write_dependence_p): Likewise.
3874 (may_alias_p): Likewise.
3876 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
3878 * config/aarch64/aarch64.c (aarch64_classify_address): Support
3879 PC-relative load in SI modes and above only.
3881 2013-03-26 Xinyu Qi <xyqi@marvell.com>
3883 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
3884 * config/arm/iwmmxt.md (WCGR0): Update.
3885 (WCGR1, WCGR2, WCGR3): Likewise.
3887 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3889 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
3890 Use x64 and nox64 isa attributes.
3892 2013-03-26 Richard Biener <rguenther@suse.de>
3894 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3895 alignment computations and rely on get_object_alignment_1
3896 for the !TYPE_P case.
3897 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
3899 2013-03-26 Walter Lee <walt@tilera.com>
3901 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
3902 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
3904 2013-03-25 Jeff Law <law@redhat.com>
3906 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
3907 check for INTEGRAL_TYPE_P that was missing due to checking in
3908 wrong version of prior patch.
3910 2013-03-25 Walter Lee <walt@tilera.com>
3912 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
3913 TILEGX_INSN_SHUFFLEBYTES1.
3914 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
3916 (tilegx_builtins): Ditto.
3917 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
3919 2013-03-25 Walter Lee <walt@tilera.com>
3921 * config/tilegx/tilegx.md (floatsisf2): New pattern.
3922 (floatunssisf2): New pattern.
3923 (floatsidf2): New pattern.
3924 (floatunssidf2): New pattern.
3926 2013-03-25 Walter Lee <walt@tilera.com>
3928 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
3929 tests for constraint J, K, N, P.
3931 2013-03-25 Walter Lee <walt@tilera.com>
3933 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
3934 Use indirect/pcrel encoding.
3935 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
3938 2013-03-25 Steve Ellcey <sellcey@mips.com>
3940 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
3941 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
3942 * config/mips/mips.c (mips_option_override): Set IMADD default.
3943 * config/mips/mips.h (PTF_AVOID_IMADD): New.
3944 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
3945 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
3946 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
3947 * doc/invoke.texi (-mimadd/-mno-imadd): New.
3949 2013-03-25 Jeff Law <law@redhat.com>
3951 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
3952 slightly to avoid creating and folding useless trees. Simplify
3953 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
3955 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
3957 * config/i386/i386.md (*zero_extendsidi2): Merge with
3958 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
3959 * config/i386/predicates.md (x86_64_zext_operand): Rename from
3960 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
3961 targets. Clarify comment.
3963 2013-03-25 Martin Jambor <mjambor@suse.cz>
3965 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
3966 pass-through jump functions differently.
3967 (ipa_read_jump_function): Likewise. Also use setter functions to set
3970 2013-03-25 Martin Jambor <mjambor@suse.cz>
3972 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
3973 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
3975 (ipa_get_indirect_edge_target): New function.
3976 (devirtualization_time_bonus): New parameter known_aggs, pass it to
3977 ipa_get_indirect_edge_target. Update all callers.
3978 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
3979 ipa_get_indirect_edge_target_1 instead of calling
3980 ipa_get_indirect_edge_target.
3981 (create_specialized_node): Pass aggvlas to
3982 ipcp_discover_new_direct_edges.
3984 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3986 * config/arm/arm.md (f_sels, f_seld): New types.
3987 (*cmov<mode>): New pattern.
3988 * config/arm/predicates.md (arm_vsel_comparison_operator): New
3991 2013-03-25 Kai Tietz <ktietz@redhat.com>
3993 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
3994 POSIX-printf for mingw-hosted builds.
3996 2013-03-25 Richard Biener <rguenther@suse.de>
3999 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
4000 must-not-throw stmt location.
4002 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4004 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
4005 Emit load-acquire versions when acq is true.
4006 (arm_emit_store_exclusive): Add rel parameter.
4007 Emit store-release versions when rel is true.
4008 (arm_split_compare_and_swap): Use acquire-release instructions
4010 of barriers when appropriate.
4011 (arm_split_atomic_op): Likewise.
4012 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
4013 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
4014 (VUNSPEC_SLX): Likewise.
4015 (VUNSPEC_LDA): Likewise.
4016 (VUNSPEC_STL): Likewise.
4017 * config/arm/sync.md (atomic_load<mode>): New pattern.
4018 (atomic_store<mode>): Likewise.
4019 (arm_load_acquire_exclusive<mode>): Likewise.
4020 (arm_load_acquire_exclusivesi): Likewise.
4021 (arm_load_acquire_exclusivedi): Likewise.
4022 (arm_store_release_exclusive<mode>): Likewise.
4024 2013-03-25 Catherine Moore <clm@codesourcery.com>
4026 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
4027 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
4028 * config/mip/predicates.md (lwsp_swsp_operand,
4029 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
4030 sb16_operand, db4_operand, db7_operand, ib3_operand,
4031 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
4032 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
4033 andi16_operand): New predicates.
4034 * config/mips/mips.md (compression): New attribute.
4035 (enabled): New attribute.
4036 (length): Consider compression in computing length.
4037 (shift_compression): New code attribute.
4038 (*add<mode>3): New operands. Record compression.
4039 (sub<mode>3): Likewise.
4040 (one_cmpl<mode>2): Likewise.
4041 (*and<mode>3): Likewise.
4042 (*ior<mode>3): Likewise.
4043 (unnamed pattern for xor): Likewise.
4044 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
4045 (*<optab><mode>3): Likewise.
4046 (*mov<mode>_internal: Likewise.
4047 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
4048 (mips_unsigned_immediate_p): New.
4049 (umips_lwsp_swsp_address_p): New.
4050 (m16_based_address_p): New.
4051 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
4052 (mips_unsigned_immediate_p): New prototype.
4053 (lwsp_swsp_address_p): New prototype.
4054 (m16_based_address_p): New prototype.
4055 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
4056 (mips_signed_immediate_p): New function.
4057 (m16_based_address_p): New function.
4058 (lwsp_swsp_address_p): New function.
4059 (mips_print_operand_punctuation): Recognize short delay slot insns
4060 for microMIPS.add<mode>3"
4062 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4065 * config/arm/iterators.md (v_cmp_result): New mode attribute.
4066 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
4068 2013-03-25 Richard Biener <rguenther@suse.de>
4070 PR tree-optimization/56689
4071 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
4074 2013-03-25 Richard Biener <rguenther@suse.de>
4076 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
4078 (memory_references): Likewise.
4079 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
4080 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
4081 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
4082 (gather_mem_refs_in_loops): Fold into ...
4083 (analyze_memory_references): ... this. Move initialization
4084 to tree_ssa_lim_initialize.
4085 (fill_always_executed_in): Rename to ...
4086 (fill_always_executed_in_1): ... this.
4087 (fill_always_executed_in): Move contains_call computation to
4088 this new function from ...
4089 (tree_ssa_lim_initialize): ... here.
4090 (tree_ssa_lim): Call fill_always_executed_in.
4092 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4094 * postreload.c (reload_combine): Fix code detecting returns.
4096 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4098 * function.c (emit_use_return_register_into_block): On cc0 targets,
4099 do not emit the sequence between cc0 setter and user.
4101 2013-03-25 Kai Tietz <ktietz@redhat.com>
4103 * config/i386/predicates.md (local_symbolic_operand): Interpret
4104 dll-imported symbols as none-local.
4106 2013-03-25 Richard Biener <rguenther@suse.de>
4108 * tree-ssa-loop-im.c (struct depend): Remove.
4109 (struct lim_aux_data): Make depends a vec of gimples.
4110 (free_lim_aux_data): Adjust.
4111 (add_dependency): Likewise.
4112 (set_level): Likewise.
4114 2013-03-25 Richard Biener <rguenther@suse.de>
4117 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
4118 the pointer returned by calls with ECF_MALLOC set.
4120 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
4122 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
4124 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
4126 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
4127 using MMXMODE mode iterator.
4128 (*move<mode>_internal): Merge with *movv2sf_internal and
4129 *movv2sf_internal_rex64 using MMXMODE mode iterator.
4131 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
4133 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
4134 (record_last_mem_set_info): Likewise.
4136 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
4137 of XNEWVEC followed by memset.
4138 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
4140 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
4142 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4143 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
4144 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
4145 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
4146 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
4147 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
4148 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
4149 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
4150 BARRIER_P instead of GET_CODE.
4152 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4154 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
4155 inaccuracy in the probing code.
4157 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
4158 (ctrapdi4): Likewise.
4160 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4162 * calls.c (expand_call): Add missing guard to code handling return
4163 of non-BLKmode structures in MSB.
4164 * function.c (expand_function_end): Likewise.
4166 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4168 * combine.c (try_combine): Adjust comment. Do not add the set of
4169 insn #0 if the destination indirectly is set or dies in insn #2.
4170 Tidy up code to distribute a new note.
4172 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
4174 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
4175 also for alternatives 16 and 17.
4177 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
4179 * config/i386/sse.md (*mov<mode>_internal): Merge with
4180 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
4181 Emit insn template depending on type attribute. Use
4182 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4183 movd instead of movq mnemonic for interunit moves. Rewrite mode
4184 attribute calculation. Remove unit attribute calculation.
4185 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
4186 Set prefix_data16 attribute for DImode ssemov types.
4187 Use Ym instead of y for SSE-MMX conversion alternatives.
4188 Reorder operand constraints.
4190 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
4192 * df.h (df_insn_delete): Adjust prototype.
4193 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
4194 and let it decide whether mark the basic block dirty.
4195 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
4196 * df-scan.c (df_insn_info_delete): New helper function, split
4197 off from df_insn_delete.
4198 (df_scan_free_bb_info): Use it.
4199 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
4201 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
4202 that the insn is actually an insn and it has a non-NULL basic block.
4203 Do not mark basic block dirty if only deleting a DEBUG_INSN.
4205 2013-03-22 Richard Biener <rguenther@suse.de>
4207 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
4209 (mem_ref_alloc): Do not allocate them.
4210 (refs_independent_p): Do not query or maintain a cache.
4212 2013-03-22 Richard Biener <rguenther@suse.de>
4214 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
4215 (gather_mem_refs_in_loops): Do not compute it.
4216 (analyze_memory_references): Do not allocate it.
4217 (tree_ssa_lim_finalize): Do not free it.
4218 (for_all_locs_in_loop): Do not query all_refs_in_loop.
4220 2013-03-22 Richard Biener <rguenther@suse.de>
4222 * is-a.h (as_a): Use gcc_checking_assert.
4224 2013-03-22 Ian Bolton <ian.bolton@arm.com>
4226 * config/aarch64/aarch64.c (aarch64_print_operand): New
4227 format specifier for printing a constant in hex.
4228 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
4229 format specifier for printing second operand.
4231 2013-03-22 Richard Biener <rguenther@suse.de>
4233 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
4235 (gather_mem_refs_in_loops): Perform store accumulation here.
4236 (create_vop_ref_mapping_loop): Remove.
4237 (create_vop_ref_mapping): Likewise.
4238 (analyze_memory_references): Initialize refs_stored_in_loop.
4239 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
4240 (record_indep_loop): Remove.
4241 (record_dep_loop): New function.
4242 (ref_indep_loop_p_1): Adjust to only walk over references
4243 in the loop, not its subloops.
4244 (ref_indep_loop_p): Rename to ...
4245 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
4246 maintaining a more fine-grained cache.
4247 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
4248 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
4250 2013-03-22 Richard Biener <rguenther@suse.de>
4252 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
4253 (struct mem_ref): Make accesses_in_loop a vec of a vec of
4254 aggregate mem_ref_loc.
4255 (free_mem_ref_locs): Inline into ...
4256 (memref_free): ... this and adjust.
4257 (mem_ref_alloc): Adjust.
4258 (mem_ref_locs_alloc): Remove.
4259 (record_mem_ref_loc): Adjust.
4260 (get_all_locs_in_loop): Rewrite into ...
4261 (for_all_locs_in_loop): ... this iterator.
4262 (rewrite_mem_ref_loc): New functor.
4263 (rewrite_mem_refs): Use for_all_locs_in_loop.
4264 (sm_set_flag_if_changed): New functor.
4265 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
4266 (ref_always_accessed): New functor.
4267 (ref_always_accessed_p): Use for_all_locs_in_loop.
4269 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4271 * tree-pass.h (PROP_gimple_lvec): New.
4272 * passes.c (dump_properties): Handle PROP_gimple_lvec.
4273 (init_optimization_passes): Move pass_lower_vector.
4274 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
4276 (pass_lower_vector): Provide PROP_gimple_lvec.
4277 (pass_lower_vector_ssa): Likewise.
4278 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
4280 2013-03-21 Mark Wielaard <mjw@redhat.com>
4282 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
4284 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4286 * config/i386/i386.md (*movdi_internal): Disparage slightly
4287 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
4288 conversion alternatives.
4290 2013-03-21 Jakub Jelinek <jakub@redhat.com>
4293 * diagnostic.def (DK_WERROR): New kind.
4294 * diagnostic.h (werrorcount): Define.
4295 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
4296 promoted to DK_ERROR, increment DK_WERROR counter instead of
4298 * toplev.c (toplev_main): Call print_ignored_options even if
4299 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
4300 even if just werrorcount is non-zero.
4303 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
4305 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
4306 (string_cst_pool_decl): New function.
4307 (optimize_one_addr_into_implicit_ptr): New function.
4308 (resolve_addr_in_expr): Optimize DWARF location expression
4309 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
4310 which doesn't live in memory, but has DW_AT_location or
4311 DW_AT_const_value, or refers to a string literal, into
4312 DW_OP_GNU_implicit_pointer.
4313 (optimize_location_into_implicit_ptr): New function.
4314 (resolve_addr): If removing DW_AT_location of a variable because
4315 it was DW_OP_addr of address of the variable, but the variable doesn't
4316 live in memory, try to emit const value attribute for the initializer.
4318 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4320 * tree.h (VECTOR_TYPE_P): New macro.
4321 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
4323 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
4324 VEC_COND_EXPR cannot be lvalues.
4325 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
4327 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4329 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
4330 Restrict the transformation to equal modes.
4332 2013-03-21 Richard Biener <rguenther@suse.de>
4334 PR tree-optimization/39326
4335 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
4336 (MEM_ANALYZABLE): Adjust.
4337 (record_mem_ref_loc): Move bitmap ops ...
4338 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
4339 unanalyzable refs, do not record locations for it.
4340 (analyze_memory_references): Allocate ref zero as shared
4342 (refs_independent_p): Do not test for unanalyzed mems here.
4343 (ref_indep_loop_p_1): Special-case disambiguation against
4345 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
4347 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
4349 * config/arm/arm-protos.h (tune_params): Add
4350 prefer_neon_for_64bits field.
4351 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
4352 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
4353 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4354 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4355 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
4356 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4357 (arm_option_override): Handle -mneon-for-64bits new option.
4358 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
4359 (prefer_neon_for_64bits): Declare new variable.
4360 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
4361 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
4362 (arch_enabled): Handle new arch types. Remove support for onlya8
4364 (one_cmpldi2): Use new arch names.
4365 (zero_extend<mode>di2, extend<mode>di2): Ditto.
4366 * config/arm/arm.opt (mneon-for-64bits): Add option.
4367 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
4368 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
4369 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
4371 * doc/invoke.texi (-mneon-for-64bits): Document.
4373 2013-03-21 Richard Biener <rguenther@suse.de>
4375 PR tree-optimization/39326
4376 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
4377 (sort_bbs_in_loop_postorder_cmp): New function.
4378 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
4380 2013-03-21 Richard Biener <rguenther@suse.de>
4382 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
4383 (vect_insert_into_interleaving_chain): Likewise.
4384 (vect_drs_dependent_in_basic_block): Inline ...
4385 (vect_slp_analyze_data_ref_dependence): ... here. New function,
4387 (vect_analyze_data_ref_dependence): ... here. Simplify.
4388 (vect_check_interleaving): Simplify.
4389 (vect_analyze_data_ref_dependences): Likewise. Split out ...
4390 (vect_slp_analyze_data_ref_dependences): ... this new function.
4391 (dr_group_sort_cmp): New function.
4392 (vect_analyze_data_ref_accesses): Compute data-reference groups
4393 here instead of in vect_analyze_data_ref_dependence. Use
4394 a more efficient algorithm.
4395 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
4396 vect_slp_analyze_data_ref_dependences. Call
4397 vect_analyze_data_ref_accesses earlier.
4398 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4399 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
4400 (vect_slp_analyze_data_ref_dependences): New prototype.
4402 2013-03-21 Richard Biener <rguenther@suse.de>
4404 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
4405 ref is stored in the loop.
4406 (find_refs_for_sm): Walk only over all stores.
4407 (store_motion_loop): Allocate from lim_bitmap_obstack.
4408 (store_motion): Likewise.
4410 2013-03-21 Richard Biener <rguenther@suse.de>
4412 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
4413 Update virtual SSA form.
4415 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4417 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
4418 * configure: Regenerate.
4419 * config.in: Regenerate.
4420 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
4421 if !HAVE_LD_EH_FRAME_CIEV3.
4423 2013-03-21 Richard Biener <rguenther@suse.de>
4425 * tree-cfg.c (verify_expr_no_block): New function.
4426 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
4427 nor DECL_VALUE_EXPR have locations with associated blocks.
4428 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
4429 (clear_unused_block_pointer): Remove code dealing with
4430 blocks in DECL_DEBUG_EXPR locations.
4432 2013-03-21 Richard Biener <rguenther@suse.de>
4434 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
4435 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
4436 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
4437 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
4438 instead of DECL_DEBUG_EXPR_IS_FROM.
4439 * gimplify.c (gimplify_modify_expr): Likewise.
4440 * tree-cfg.c (verify_expr_location_1): Likewise.
4441 * tree-complex.c (create_one_component_var): Likewise.
4442 * tree-sra.c (create_access_replacement): Likewise.
4443 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
4444 (clear_unused_block_pointer): Likewise.
4445 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4446 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4447 * var-tracking.c (var_debug_decl): Likewise.
4448 (track_expr_p): Likewise.
4449 * tree-inline.c (add_local_variables): Likewise. Set
4450 DECL_HAS_DEBUG_EXPR_P after copying it.
4451 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4452 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
4454 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4457 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
4458 * configure: Regenerate.
4459 * config.in: Regenerate.
4460 * config/i386/i386.md (*movdf_internal): Use
4461 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4462 movd instead of movq mnemonic for interunit moves.
4463 (*movdi_internal): Ditto.
4465 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4467 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
4468 (abd<mode>_3): New pattern.
4469 (aba<mode>_3): New pattern.
4470 (fabd<mode>_3): New pattern.
4472 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4474 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
4475 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
4476 occurrence of REGISTER_PREFIX as its empty string.
4478 2013-03-20 Jeff Law <law@redhat.com>
4480 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
4481 addititional equivalences for equality comparisons between an SSA_NAME
4482 and a constant where the SSA_NAME was set from a widening conversion.
4484 2013-03-20 Walter Lee <walt@tilera.com>
4486 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
4488 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4490 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
4491 depending on type attribute.
4492 (*movti_internal): Ditto.
4493 (*movtf_internal): Ditto.
4494 (*movxf_internal): Ditto.
4495 (*movdf_internal): Ditto.
4496 (*movsf_internal): Ditto.
4498 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4500 * config/i386/i386.md (*movti_internal): Set prefix attribute to
4501 maybe_vex for sselog1 and ssemov types.
4502 (*movdi_internal): Reorder operand constraints.
4503 (*movsi_internal): Ditto. Set prefix attribute to
4504 maybe_vex for sselog1 and ssemov types.
4505 (*movtf_internal): Set prefix attribute to maybe_vex
4506 for sselog1 and ssemov types.
4507 (*movdf_internal): Ditto. Set prefix_data16 attribute for
4508 DImode ssemov types. Reorder operand constraints.
4509 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
4510 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
4511 attribute for SImode ssemov types. Reorder operand constraints.
4513 2013-03-20 Martin Jambor <mjambor@suse.cz>
4515 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
4516 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
4518 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
4520 * config/rs6000/predicates.md (indexed_address, update_address_mem
4521 update_indexed_address_mem): New predicates.
4522 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
4523 attribute for load/store instructions.
4524 * config/rs6000/dfp.md (movsd_store): Likewise.
4525 (movsd_load): Likewise.
4526 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
4527 (unnamed HI->DI extend define_insn): Likewise.
4528 (unnamed SI->DI extend define_insn): Likewise.
4529 (unnamed QI->SI extend define_insn): Likewise.
4530 (unnamed QI->HI extend define_insn): Likewise.
4531 (unnamed HI->SI extend define_insn): Likewise.
4532 (unnamed HI->SI extend define_insn): Likewise.
4533 (extendsfdf2_fpr): Likewise.
4534 (movsi_internal1): Likewise.
4535 (movsi_internal1_single): Likewise.
4536 (movhi_internal): Likewise.
4537 (movqi_internal): Likewise.
4538 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
4539 attribute for load/store instructions.
4540 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
4542 (mov<mode>_softfloat): Likewise.
4543 (mov<mode>_hardfloat32): Likewise.
4544 (mov<mode>_hardfloat64): Likewise.
4545 (mov<mode>_softfloat64): Likewise.
4546 (movdi_internal32): Likewise.
4547 (movdi_internal64): Likewise.
4548 (probe_stack_<mode>): Likewise.
4550 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4552 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
4553 floating point, and decimal floating point to reload iterator.
4555 * config/rs6000/constraints.md (wl constraint): New constraints to
4556 return FLOAT_REGS if certain options are used to reduce the number
4557 of separate patterns that exist in the file.
4558 (wx constraint): Likewise.
4559 (wz constraint): Likewise.
4561 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4562 -mdebug=reg, print wg, wl, wx, and wz constraints.
4563 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4564 Initialize the reload functions for 64-bit binary/decimal floating
4566 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4567 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4568 create the buffer on the stack to overcome not having a 32-bit
4570 (rs6000_emit_move): Likewise.
4571 (rs6000_secondary_memory_needed_rtx): Likewise.
4572 (rs6000_alloc_sdmode_stack_slot): Likewise.
4573 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4574 via xxlxor, just like DFmode 0.0.
4576 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
4577 define as 1 if we are running on a power7 or newer.
4578 (enum r6000_reg_class_enum): Add new constraints.
4580 * config/rs6000/dfp.md (movsd): Delete, combine with binary
4581 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4582 with other moves by using conditional constraits (wg). Use LFIWZX
4583 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
4584 (movsd splitter): Likewise.
4585 (movsd_hardfloat): Likewise.
4586 (movsd_softfloat): Likewise.
4588 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
4589 binary and decimal floating point moves.
4590 (fmove_ok): New attributes to combine binary and decimal floating
4591 point moves, and to combine power6x (mfpgpr) moves along normal
4593 (real_value_to_target): Likewise.
4600 (movsf): Combine binary and decimal floating point moves. Combine
4601 power6x (mfpgpr) moves with other moves by using conditional
4602 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
4603 (mov<mode> for SFmode/SDmode); Likewise.
4604 (SFmode/SDmode splitters): Likewise.
4605 (movsf_hardfloat): Likewise.
4606 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
4607 (movsf_softfloat): Likewise.
4608 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
4610 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
4611 wx and wz constraints.
4613 * config/rs6000/constraints.md (wg constraint): New constraint to
4614 return FLOAT_REGS if -mmfpgpr (power6x) was used.
4616 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
4619 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4620 -mdebug=reg, print wg, wl, wx, and wz constraints.
4621 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4622 Initialize the reload functions for 64-bit binary/decimal floating
4624 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4625 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4626 create the buffer on the stack to overcome not having a 32-bit
4628 (rs6000_emit_move): Likewise.
4629 (rs6000_secondary_memory_needed_rtx): Likewise.
4630 (rs6000_alloc_sdmode_stack_slot): Likewise.
4631 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4632 via xxlxor, just like DFmode 0.0.
4634 * config/rs6000/dfp.md (movdd): Delete, combine with binary
4635 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4636 with other moves by using conditional constraits (wg). Use LFIWZX
4637 and STFIWX for loading SDmode on power7.
4638 (movdd splitters): Likewise.
4639 (movdd_hardfloat32): Likewise.
4640 (movdd_softfloat32): Likewise.
4641 (movdd_hardfloat64_mfpgpr): Likewise.
4642 (movdd_hardfloat64): Likewise.
4643 (movdd_softfloat64): Likewise.
4645 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
4646 64-bit binary and decimal floating point moves.
4647 (FMOVE64X): Likewise.
4648 (movdf): Combine 64-bit binary and decimal floating point moves.
4649 Combine power6x (mfpgpr) moves with other moves by using
4650 conditional constraits (wg).
4651 (mov<mode> for DFmode/DDmode): Likewise.
4652 (DFmode/DDmode splitters): Likewise.
4653 (movdf_hardfloat32): Likewise.
4654 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
4655 (movdf_softfloat32): Likewise.
4656 (movdf_hardfloat64_mfpgpr): Likewise.
4657 (movdf_hardfloat64): Likewise.
4658 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
4659 (movdf_softfloat64): Likewise.
4660 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
4661 (reload_<mode>_load): Move to later in the file so they aren't in
4662 the middle of the floating point move insns.
4663 (reload_<mode>_store): Likewise.
4665 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
4668 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
4669 constraint if -mdebug=reg.
4670 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
4671 Enable using dd reload support if needed.
4673 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
4674 binary and decimal floating point moves in rs6000.md.
4675 (movtd_internal): Likewise.
4677 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
4678 decimal floating point moves.
4680 (movtf_internal): Likewise.
4681 (mov<mode>_internal, TDmode/TFmode): Likewise.
4682 (movtf_softfloat): Likewise.
4683 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
4685 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
4686 movdi_internal64, using wg constraint for move direct operations.
4687 (movdi_internal64): Likewise.
4689 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
4690 MODES_TIEABLE_P for selected modes. Print the numerical value of
4691 the various virtual registers. Use GPR/FPR first/last values,
4692 instead of hard coding the register numbers. Print which modes
4693 have reload functions registered.
4694 (rs6000_option_override_internal): If -mdebug=reg, trace the options
4695 settings before/after setting cpu, target and subtarget settings.
4696 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
4697 and for secondary reload failures in rs6000_secondary_reload_inner.
4698 (rs6000_secondary_reload_fail): Likewise.
4699 (rs6000_secondary_reload_inner): Likewise.
4701 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
4702 macros for first/last GPR and FPR registers.
4703 (LAST_GPR_REGNO): Likewise.
4704 (FIRST_FPR_REGNO): Likewise.
4705 (LAST_FPR_REGNO): Likewise.
4707 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
4708 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
4709 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
4710 (vcond<mode><mode>): Likewise.
4711 (vcondu<mode><mode>): Likewise.
4712 (vector_gtu<mode>): Likewise.
4713 (vector_gte<mode>): Likewise.
4714 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
4715 to prevent the compiler from converting DImode operations to TImode.
4716 (ior<mode>3): Likewise.
4717 (and<mode>3): Likewise.
4718 (one_cmpl<mode>2): Likewise.
4719 (nor<mode>3): Likewise.
4720 (andc<mode>3): Likewise.
4722 * config/rs6000/constraints.md (wt constraint): New constraint
4723 that returns VSX_REGS if TImode is allowed in VSX registers.
4725 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
4728 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
4729 similar to TImode, but it is restricted to being in the GPRs.
4731 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
4732 TImode to occupy a single VSX register.
4734 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
4735 -mvsx-timode for power7/power8.
4736 (power7 cpu): Likewise.
4737 (power8 cpu): Likewise.
4739 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
4740 sure that TFmode/TDmode take up two registers if they are ever
4741 allowed in the upper VSX registers.
4742 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
4744 (rs6000_init_hard_regno_mode_ok): Likewise.
4745 (rs6000_debug_reg_global): Add debugging for PTImode and wt
4746 constraint. Print if LRA is turned on.
4747 (rs6000_option_override_internal): Give an error if -mvsx-timode
4748 and VSX is not enabled.
4749 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
4750 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
4751 to reg+offset addressing. Use PTImode when checking offset
4752 addresses for validity.
4753 (reg_offset_addressing_ok_p): Likewise.
4754 (rs6000_legitimate_offset_address_p): Likewise.
4755 (rs6000_legitimize_address): Likewise.
4756 (rs6000_legitimize_reload_address): Likewise.
4757 (rs6000_legitimate_address_p): Likewise.
4758 (rs6000_eliminate_indexed_memrefs): Likewise.
4759 (rs6000_emit_move): Likewise.
4760 (rs6000_secondary_reload): Likewise.
4761 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
4762 reloads to fpr registers to continue to use reg+offset addressing,
4763 but 64-bit reloads to altivec registers need reg+reg addressing.
4764 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
4765 it. Treat LO_SUM like a PLUS operation.
4766 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
4767 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
4768 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
4769 registers to share a register with a smaller sized type, since VSX
4770 puts scalars in the upper 64-bits.
4771 (print_operand): Add support for PTImode.
4772 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
4773 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
4774 registers, but don't have arithmetic support.
4775 (rs6000_memory_move_cost): Add test for VSX.
4776 (rs6000_opt_masks): Add -mvsx-timode.
4778 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
4781 (VSr): Use wt constraint for TImode.
4782 (VSv): Drop TImode support.
4783 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
4784 (vsx_movti_64bit): Likewise.
4785 (vsx_movti_32bit): Likewise.
4786 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
4787 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
4788 one '?' on the appropriate output constraint. Do not allow TImode
4789 logical operations on 32-bit systems.
4790 (vsx_ior<mode>3): Likewise.
4791 (vsx_xor<mode>3): Likewise.
4792 (vsx_one_cmpl<mode>2): Likewise.
4793 (vsx_nor<mode>3): Likewise.
4794 (vsx_andc<mode>3): Likewise.
4795 (vsx_concat_<mode>): Likewise.
4796 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
4798 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
4799 OPTION_MASK_VSX_TIMODE.
4800 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
4801 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
4803 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
4804 (TI2 iterator): New iterator for TImode, PTImode.
4805 (wd mode attribute): Add values for vector types.
4806 (movti_string): Replace TI move operations with operations for TImode
4807 and PTImode. Add support for TImode being allowed in VSX registers.
4808 (mov<mode>_string, TImode/PTImode): Likewise.
4809 (movti_ppc64): Likewise.
4810 (mov<mode>_ppc64, TImode/PTImode): Likewise.
4811 (TI mode splitters): Likewise.
4813 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
4816 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
4818 PR tree-optimization/56355
4819 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
4820 Also handle integers with undefined overflow.
4822 2013-03-20 Catherine Moore <clm@codesourcery.com>
4823 Maciej W. Rozycki <macro@codesourcery.com>
4824 Tom de Vries <tom@codesourcery.com>
4825 Nathan Sidwell <nathan@codesourcery.com>
4826 Iain Sandoe <iain@codesourcery.com>
4827 Nathan Froyd <froydnj@codesourcery.com>
4828 Chao-ying Fu <fu@mips.com>
4830 * doc/extend.texi: (micromips, nomicromips, nocompression):
4831 Document new function attributes.
4832 * doc/invoke.texi (minterlink-compressed, mmicromips,
4833 m14k, m14ke, m14kec): Document new options.
4834 (minterlink-mips16): Update documentation.
4835 * doc/md.texi (ZC, ZD): Document new constraints.
4836 * configure.ac (gcc_cv_as_micromips): Check if linker
4837 supports the .set micromips directive.
4838 * configure: Regenerate.
4839 * config.in: Regenerate.
4840 * config/mips/mips-tables.opt: Regenerate.
4841 * config/mips/micromips.md: New file.
4842 * constraints.md (ZC, ZD): New constraints.
4843 * config/mips/predicates.md (movep_src_register): New predicate.
4844 (movep_src_operand): New predicate.
4845 (non_volatile_mem_operand): New predicate.
4846 * config/mips/mips.md (multimem): New type.
4847 (length): Differentiate between 17-bit and 18-bit branch offsets.
4848 (MOVEP1, MOVEP2): New mode iterator.
4849 (mov_<load>l): Use ZC constraint.
4850 (mov_<load>r): Likewise.
4851 (mov_<store>l): Likewise.
4852 (mov_<store>r): Likewise.
4853 (*branch_equality<mode>_inverted): Add microMIPS support.
4854 (*branch_equality<mode>): Likewise.
4855 (*jump_absolute): Likewise.
4856 (indirect_jump_<mode>): Likewise.
4857 (tablejump_<mode>): Likewise.
4858 (<optab>_internal): Likewise.
4859 (sibcall_internal): Likewise.
4860 (sibcall_value_internal): Likewise.
4861 (prefetch): Use constraint ZD.
4862 * config/mips/mips.opt (minterlink-compressed): New option.
4863 (minterlink-mips16): Now an alias for minterlink-compressed.
4864 (mmicromips): New option.
4865 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4866 (compare_and_swap_12): Likewise.
4867 (sync_add<mode>): Likewise.
4868 (sync_<optab>_12): Likewise.
4869 (sync_old_<optab>_12): Likewise.
4870 (sync_new_<optab>_12): Likewise.
4871 (sync_nand_12): Likewise.
4872 (sync_old_nand_12): Likewise.
4873 (sync_new_nand_12): Likewise.
4874 (sync_sub<mode>): Likewise.
4875 (sync_old_add<mode>): Likewise.
4876 (sync_old_sub<mode>): Likewise.
4877 (sync_new_add<mode>): Likewise.
4878 (sync_new_sub<mode>): Likewise.
4879 (sync_<optab><mode>): Likewise.
4880 (sync_old_<optab><mode>): Likewise.
4881 (sync_new_<optab><mode>): Likewise.
4882 (sync_nand<mode>): Likewise.
4883 (sync_old_nand<mode>): Likewise.
4884 (sync_new_nand<mode>): Likewise.
4885 (sync_lock_test_and_set<mode>): Likewise.
4886 (test_and_set_12): Likewise.
4887 (atomic_compare_and_swap<mode>): Likewise.
4888 (atomic_exchange<mode>_llsc): Likewise.
4889 (atomic_fetch_add<mode>_llsc): Likewise.
4890 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4891 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4892 (umips_save_restore_pattern_p): Likewise.
4893 (umips_load_store_pair_p): Likewise.
4894 (umips_output_load_store_pair): Likewise.
4895 (umips_movep_target_p): Likewise.
4896 (umips_12bit_offset_address_p): Likewise.
4897 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4898 (mips_base_mips16): Rename this...
4899 (mips_base_compression_flags): ...to this. Update all uses.
4900 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4901 (mips_mips16_decl_p): Delete.
4902 (mips_nomips16_decl_p): Delete.
4903 (mips_get_compress_on_flags): New function.
4904 (mips_get_compress_off_flags): New function.
4905 (mips_get_compress_mode): New function.
4906 (mips_get_compress_on_name): New function.
4907 (mips_get_compress_off_name): New function.
4908 (mips_insert_attributes): Support multiple compression types.
4909 (mips_merge_decl_attributes): Likewise.
4910 (umips_12bit_offset_address_p): New function.
4911 (mips_start_function_definition): Emit .set micromips directive.
4912 (mips_call_may_need_jalx_p): New function.
4913 (mips_function_ok_for_sibcall): Add microMIPS support.
4914 (mips_print_operand_punctuation): Support short delay slots and
4916 (umips_swm_mask, umips_swm_encoding): New.
4917 (umips_build_save_restore): New function.
4918 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4919 (was_mips16_p): Remove.
4920 (old_compression_mode): New.
4921 (mips_set_compression_mode): New function.
4922 (mips_set_current_function): Add microMIPS support.
4923 (mips_option_override): Likewise.
4924 (umips_save_restore_pattern_p): New function.
4925 (umips_output_save_restore): New function.
4926 (umips_load_store_pair_p_1): New function.
4927 (umips_load_store_pair_p): New function.
4928 (umips_output_load_store_pair_1): New function.
4929 (umips_output_load_store_pair): New function.
4930 (umips_movep_target_p) New function.
4931 (mips_prepare_pch_save): Add microMIPS support.
4932 * config/mips/mips.h (TARGET_COMPRESSION): New.
4933 (TARGET_CPU_CPP_BUILTINS): Update macro
4934 to use new compression flags and to support microMIPS.
4935 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4936 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4937 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4938 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4939 (ASM_SPEC): Support mmicromips and mno-micromips.
4940 (M16STORE_REG_P): New macro.
4941 (MIPS_CALL): Support TARGET_MICROMIPS.
4942 (MICROMIPS_J): New macro.
4943 (mips_base_mips16): Rename this...
4944 (mips_base_compression_flags): ...to this.
4945 (UMIPS_12BIT_OFFSET_P): New macro.
4946 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4947 (MULTILIB_DIRNAMES): Likewise.
4948 2013-03-20 Richard Biener <rguenther@suse.de>
4950 PR tree-optimization/56661
4951 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
4952 the result does not have to be distinct.
4954 2013-03-20 Richard Biener <rguenther@suse.de>
4956 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
4959 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4960 Steven Bosscher <steven@gcc.gnu.org>
4962 PR rtl-optimization/56605
4963 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
4965 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4968 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
4969 that require movd instead of movq.
4971 2013-03-20 Richard Biener <rguenther@suse.de>
4973 * tree-ssa-structalias.c (struct variable_info): Add pointer
4974 to the first field of an aggregate with sub-vars. Make
4975 this and the pointer to the next subfield its ID.
4976 (vi_next): New function.
4977 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
4978 storedanything_id, integer_id): Increment by one.
4979 (new_var_info, get_call_vi, lookup_call_clobber_vi,
4980 get_call_clobber_vi): Adjust.
4981 (solution_set_expand): Simplify and speedup.
4982 (solution_set_add): Inline into ...
4983 (set_union_with_increment): ... this. Adjust accordingly.
4984 (do_sd_constraint): Likewise.
4985 (do_ds_constraint): Likewise.
4986 (do_complex_constraint): Simplify.
4987 (build_pred_graph): Adjust.
4988 (solve_graph): Likewise. Simplify and speedup.
4989 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
4990 get_constraint_for_component_ref, get_constraint_for_1,
4991 first_vi_for_offset, first_or_preceding_vi_for_offset,
4992 create_function_info_for, create_variable_info_for_1,
4993 create_variable_info_for, intra_create_variable_infos): Adjust.
4994 (init_base_vars): Push NULL for ID zero.
4995 (compute_points_to_sets): Adjust.
4997 2013-03-20 Richard Biener <rguenther@suse.de>
4999 * cfgloop.c (verify_loop_structure): Streamline and avoid
5000 ICEing on corrupt loop tree.
5001 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
5004 2013-03-20 Richard Biener <rguenther@suse.de>
5006 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
5007 check whether an SSA update is needed.
5009 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
5011 * config/mips/constraints.md (T): Rename to...
5015 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
5016 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
5018 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5020 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
5021 (*subsi3_carryin_uxtw): Likewise.
5023 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5025 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
5026 (*rorsi3_insn_uxtw): Likewise.
5028 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5030 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
5031 (*extrsi5_insn_uxtw): Likewise.
5033 2013-03-19 Richard Biener <rguenther@suse.de>
5035 PR tree-optimization/56273
5036 * passes.c (init_optimization_passes): Move second VRP after DOM.
5038 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
5040 * config/i386/i386.md (*movti_internal): Merge from
5041 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
5042 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
5043 nox64 isa attributes.
5045 2013-03-18 Richard Biener <rguenther@suse.de>
5047 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
5049 (merge_node_constraints): Likewise.
5050 (build_succ_graph): Likewise.
5051 (valid_graph_edge): Inline into single caller.
5052 (unify_nodes): Likewise. Use bitmap_set_bit return value
5054 (scc_visit): Fix formatting and variable use.
5055 (do_sd_constraint): Use gcc_checking_assert.
5056 (do_ds_constraint): Likewise.
5057 (do_complex_constraint): Likewise.
5058 (condense_visit): Likewise. Cleanup.
5059 (dump_pred_graph): New function.
5060 (perform_var_substitution): Dump the pred-graph before
5061 variable substitution.
5062 (find_equivalent_node): Use gcc_checking_assert.
5063 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
5065 2013-03-18 Richard Biener <rguenther@suse.de>
5067 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5068 Remove cond_expr_stmt_list argument and do not gimplify the
5070 (vect_loop_versioning): Adjust.
5071 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5072 Cleanup to use less temporaries.
5073 (vect_create_data_ref_ptr): Cleanup.
5075 2013-03-18 Jakub Jelinek <jakub@redhat.com>
5077 PR tree-optimization/56635
5078 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
5079 require types_compatible_p types.
5081 2013-03-18 Nick Clifton <nickc@redhat.com>
5083 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
5086 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
5087 Add missing line to comment describing function.
5089 2013-03-18 Richard Biener <rguenther@suse.de>
5091 PR tree-optimization/56210
5092 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5093 Handle string / character search functions.
5094 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5096 2013-03-18 Richard Biener <rguenther@suse.de>
5099 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
5100 and implement properly.
5101 * gimple.h (gimple_cond_single_var_p): Remove.
5103 2013-03-18 Richard Biener <rguenther@suse.de>
5105 * tree-data-ref.h (find_data_references_in_loop): Declare.
5106 * tree-data-ref.c (get_references_in_stmt): Use a stack
5107 vector pre-allocated in the callers.
5108 (find_data_references_in_stmt): Adjust.
5109 (graphite_find_data_references_in_stmt): Likewise.
5110 (create_rdg_vertices): Likewise.
5111 (find_data_references_in_loop): Export.
5112 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5113 Compute dependences here...
5114 (vect_analyze_data_refs): ...not here. When we encounter
5115 a non-vectorizable data reference in basic-block vectorization
5116 truncate the data reference vector. Do not bother to
5117 fixup data-dependence information for gather loads.
5118 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
5119 of data references, as reported.
5121 2013-03-18 Richard Biener <rguenther@suse.de>
5123 PR tree-optimization/3713
5124 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
5125 has_constants and expr.
5126 (stmt_has_constants): Properly valueize SSA names when deciding
5127 whether the stmt has constants.
5129 2013-03-18 Richard Biener <rguenther@suse.de>
5131 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
5132 whole function when there is nothing to do.
5133 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
5134 * tree-vectorizer.c (vectorize_loops): Update virtual and
5135 loop-closed SSA once.
5136 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
5138 2013-03-18 Richard Biener <rguenther@suse.de>
5141 * domwalk.c (bb_postorder): New global static.
5142 (cmp_bb_postorder): New function.
5143 (walk_dominator_tree): Replace scheme imposing an order for
5144 visiting dominator sons by one sorting them at the time they
5145 are pushed on the stack.
5147 2013-03-18 Richard Biener <rguenther@suse.de>
5149 PR tree-optimization/39326
5150 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
5151 (struct mem_ref): Replace mem member with ao_ref typed member.
5152 (MEM_ANALYZABLE): Adjust.
5153 (memref_eq): Likewise.
5154 (mem_ref_alloc): Likewise.
5155 (gather_mem_refs_stmt): Likewise.
5156 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
5157 (execute_sm_if_changed_flag_set): Adjust.
5158 (execute_sm): Likewise.
5159 (ref_always_accessed_p): Likewise.
5160 (refs_independent_p): Likewise.
5161 (can_sm_ref_p): Likewise.
5163 2013-03-18 Jakub Jelinek <jakub@redhat.com>
5166 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
5167 return 1 even for !unsignedp.
5169 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5171 * config/i386/i386.md (isa): Add x64 and nox64.
5172 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
5173 (*pushtf): Enable *roF alternative for x64 isa only.
5174 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
5175 mode attribute of integer alternatives to DImode for TARGET_64BIT.
5176 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
5177 (*movtf_internal): Merge from *movtf_internal_rex64 and
5178 *movtf_internal_sse. Use x64 and nox64 isa attributes.
5179 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
5180 nox64 isa attributes.
5181 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
5182 nox64 isa attributes.
5183 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
5185 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5187 * config/alpha/alpha.c (TARGET_LRA_P): New define.
5189 2013-03-17 Jakub Jelinek <jakub@redhat.com>
5192 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
5193 class names. Remove trailing comma after "ALL_REGS".
5195 2013-03-16 Jan Hubicka <jh@suse.cz>
5197 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
5198 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
5199 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
5200 of cgraph_get_create_node.
5201 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5203 2013-03-16 Jason Merrill <jason@redhat.com>
5206 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
5207 with DW_AT_default_value.
5209 2013-03-16 Jakub Jelinek <jakub@redhat.com>
5211 * BASE-VER: Set to 4.9.0.
5213 2013-03-14 Andi Kleen <ak@linux.intel.com>
5216 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
5217 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
5218 Document _x* TSX intrinsics.
5220 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
5221 David Holsgrove <david.holsgrove@xilinx.com>
5223 * configure.ac: Add MicroBlaze TLS support detection.
5224 * configure: Regenerate.
5225 * config/microblaze/microblaze-protos.h
5226 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
5227 symbol_mentioned_p, label_mentioned_p): Add prototypes.
5228 * config/microblaze/microblaze.c (microblaze_address_type): Add
5229 ADDRESS_TLS and tls_reloc address types.
5230 (microblaze_address_info): Add tls_reloc.
5231 (TARGET_HAVE_TLS): Define.
5232 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
5233 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
5234 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
5235 load_tls_operand, microblaze_call_tls_get_addr,
5236 microblaze_legitimize_tls_address): New functions.
5237 (microblaze_classify_unspec): Handle UNSPEC_TLS.
5238 (get_base_reg): Use microblaze_tls_symbol_p.
5239 (microblaze_classify_address): Handle TLS.
5240 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
5241 label_mentioned_p and microblaze_tls_referenced_p.
5242 (microblaze_legitimize_address): Handle TLS.
5243 (microblaze_address_insns): Handle ADDRESS_TLS.
5244 (pic_address_needs_scratch): Handle TLS.
5245 (print_operand_address): Handle TLS.
5246 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
5247 (microblaze_expand_move): Handle TLS.
5248 (microblaze_legitimate_constant_p): Check
5249 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
5250 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5251 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
5252 (PIC_OFFSET_TABLE_REGNUM): Set.
5253 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
5254 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
5255 (addsi3, movsi_internal2, movdf_internal): Update constraints
5256 * config/microblaze/predicates.md (arith_plus_operand): Define
5257 (move_operand): Redefine as move_src_operand,
5258 check microblaze_tls_referenced_p.
5260 2013-03-14 Ian Bolton <ian.bolton@arm.com>
5262 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
5263 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
5265 2013-03-14 Ian Bolton <ian.bolton@arm.com>
5267 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
5270 2013-03-14 Jakub Jelinek <jakub@redhat.com>
5272 PR tree-optimization/53265
5273 * common.opt (Waggressive-loop-optimizations): New option.
5274 * tree-ssa-loop-niter.c: Include tree-pass.h.
5275 (do_warn_aggressive_loop_optimizations): New function.
5276 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
5277 if number_of_latch_executions returned constant.
5278 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
5279 early. If number_of_latch_executions returned constant, set
5280 nb_iterations_upper_bound back to it.
5281 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
5283 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
5284 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
5286 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
5287 (MULTILIB_OSDIRNAMES): Set.
5288 * genmultilib: If defaultosdirname doesn't start with :: , set
5289 defaultosdirname2 instead, clear it and emit two . multilib_raw
5290 entries instead of just one.
5292 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
5294 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5295 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
5296 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5297 (SUBTARGET_OVERRIDE_OPTIONS): New.
5299 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
5302 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
5303 (musermode): Convert to Var(TARGET_USERMODE).
5304 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
5305 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
5306 * config/sh/sh.c (sh_option_override): Use
5307 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
5308 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
5310 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
5312 (udivsi3_i4_single, divsi3_i4_single): Use
5313 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
5315 2013-03-13 Dave Korn <dave.korn.cygwin@....>
5317 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
5320 2013-03-13 Richard Biener <rguenther@suse.de>
5322 PR tree-optimization/56608
5323 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
5324 calls when vectorizing basic-blocks.
5326 2013-03-13 Jakub Jelinek <jakub@redhat.com>
5329 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
5332 2013-03-12 Jakub Jelinek <jakub@redhat.com>
5334 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
5336 2013-03-11 Jan Hubicka <jh@suse.cz>
5339 * lto-streamer-out.c (output_symbol_p): Skip references from
5340 constructors of external variables.
5342 2013-03-11 Jan Hubicka <jh@suse.cz>
5345 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
5347 * emit-rtl.c (verify_rtx_sharing): Likewise.
5348 (copy_insn_1): Likewise.
5349 * rtl.c (copy_rtx): Likewise.
5351 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
5354 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
5355 output_operand_lossage message.
5357 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
5360 * arm.c (shift_op): Validate RTL pattern on the fly.
5361 (arm_print_operand, case 'S'): Don't use shift_operator to validate
5364 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5367 * config/pa/pa.md (call_value): Check for calls to powf and direct to
5368 new call patterns that clobber %fr12.
5369 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
5370 split and postreload patterns.
5371 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
5372 registers %fr12 and %fr12R as call used.
5374 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
5376 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
5377 (canon_address, record_store, replace_read, check_mem_read_rtx,
5378 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
5379 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
5380 rest_of_handle_dse): Likewise.
5382 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5385 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
5387 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
5388 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
5389 (save_optabs_if_changed): Replace with...
5390 (init_tree_optimization_optabs): ...this.
5391 * optabs.c (save_optabs_if_changed): Rename to...
5392 (init_tree_optimization_optabs): ...this. Take the optimization node
5393 as argument. Do nothing if the base optabs are already correct.
5394 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
5395 to recompute optabs.
5396 * function.h (function): Remove optabs field.
5397 * function.c (invoke_set_current_function_hook): Call
5398 init_tree_optimization_optabs. Use the result to initialize
5401 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
5403 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
5404 if GTMA_HAS_NO_INSTRUMENTATION.
5405 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
5406 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
5407 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
5408 * gimple-pretty-print.c (dump_gimple_transaction): Handle
5409 GTMA_HAS_NO_INSTRUMENTATION.
5411 2013-03-08 Jakub Jelinek <jakub@redhat.com>
5413 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
5416 2013-03-08 Marek Polacek <polacek@redhat.com>
5417 Jakub Jelinek <jakub@redhat.com>
5419 PR tree-optimization/56478
5420 * predict.c (is_comparison_with_loop_invariant_p): Change the
5421 type of loop_step to tree.
5422 (predict_loops): Adjust.
5423 (predict_iv_comparison): Perform the computations on double_ints.
5425 2013-03-08 Richard Biener <rguenther@suse.de>
5427 PR tree-optimization/56570
5428 * tree-cfg.c (verify_expr_location_1): Verify locations for
5430 * tree-sra.c (create_access_replacement): Strip locations
5431 from DECL_DEBUG_EXPRs.
5433 2013-03-08 Richard Biener <rguenther@suse.de>
5435 * tree-inline.c (expand_call_inline): Do not associate
5436 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
5437 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
5439 2013-03-08 Richard Biener <rguenther@suse.de>
5441 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
5442 or block changes with -Og. Fix for location / block encoding
5443 changes and PHI arguments with locations.
5445 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
5447 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
5449 (struct output_info): Likewise.
5450 (register_overhead): Remove bad gcc_assert.
5451 (bitmap_find_bit): If there is only a single bitmap element, do not
5452 count a miss as a search.
5453 (print_statistics): Update for counter type changes.
5454 (dump_bitmap_statistics): Likewise. Print headers such that they
5455 are properly lined up with the printed counters.
5457 2013-03-07 Jakub Jelinek <jakub@redhat.com>
5459 PR tree-optimization/56559
5460 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
5461 check that it has only a single use.
5463 2013-03-07 Richard Biener <rguenther@suse.de>
5465 * doc/invoke.texi (fwhole-program): Discourage use in combination
5468 2013-03-06 Jakub Jelinek <jakub@redhat.com>
5470 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
5472 PR tree-optimization/56539
5473 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
5474 instead of GSI_CONTINUE_LINKING as last argument to
5475 force_gimple_operand_gsi. Adjust function comment.
5477 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
5481 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
5482 promoted mode, convert the result back to the original mode.
5484 2013-03-06 Richard Biener <rguenther@suse.de>
5487 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
5488 (insert_updated_phi_nodes_compare_uids): New function.
5489 (update_ssa): Sort symbols_to_rename after UID before
5490 traversing it to insert PHI nodes.
5492 2013-03-06 Richard Biener <rguenther@suse.de>
5495 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
5496 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
5499 2013-02-13 Richard Biener <rguenther@suse.de>
5502 * varasm.c (output_constant_def_1): Get the decl representing
5503 the constant as argument.
5504 (output_constant_def): Wrap output_constant_def_1.
5505 (make_decl_rtl): Use output_constant_def_1 with the decl
5506 representing the constant.
5507 (build_constant_desc): Optionally re-use a decl already
5508 representing the constant.
5509 (tree_output_constant_def): Adjust.
5511 2013-03-06 Joey Ye <joey.ye@arm.com>
5514 * gcc.c (convert_white_space): New function.
5515 (main): Handles white space in function name.
5517 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
5520 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
5521 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
5522 to SH_DIV_CALL_TABLE for TARGET_SH2.
5523 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
5525 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
5528 2013-03-05 Sterling Augustine <saugustine@google.com>
5529 Cary Coutant <ccoutant@google.com>
5532 * dwarf2out.c (resolve_addr): Don't call
5533 remove_loc_list_addr_table_entries a second time for the same
5536 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5539 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
5540 (avoid_complex_debug_insns): New function.
5541 (expand_debug_locations): Call it.
5543 PR rtl-optimization/56484
5544 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
5545 lifetimes of hard registers on small register class machines.
5547 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5549 * config/microblaze/microblaze-protos.h: Rename
5550 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
5551 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
5553 (microblaze_fast_interrupt_function_p): New function.
5554 (microblaze_is_interrupt_handler): Rename to
5555 microblaze_is_interrupt_variant and add fast_interrupt check.
5556 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
5557 (save_restore_insns): Likewise.
5558 (compute_frame_size): Likewise.
5559 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
5560 (microblaze_globalize_label): Likewise.
5561 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
5562 * config/microblaze/microblaze.md: Use wrapper
5563 microblaze_is_interrupt_variant.
5565 2013-03-05 Kai Tietz <ktietz@redhat.com>
5567 * sdbout.c (sdbout_one_type): Switch to current function's section
5568 supporting cold/hot.
5570 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5572 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
5575 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5578 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
5579 if VALGRIND_GET_VBITS is defined, temporarily make object
5580 memory all defined, and restore previous valgrind addressability
5581 and definability afterwards. Free this_object at the end.
5584 * lra.c (lra): Call lra_clear_live_ranges if live_p,
5585 right before calling lra_create_live_ranges, also call it
5586 when clearing live_p. Only call lra_clear_live_ranges
5587 at the end if live_p.
5590 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
5592 2013-03-05 Richard Biener <rguenther@suse.de>
5594 PR tree-optimization/56521
5595 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
5598 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
5601 * except.h (remove_unreachable_eh_regions): New prototype.
5602 * except.c (remove_eh_handler_splicer): New function, split out
5603 of remove_eh_handler.
5604 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
5605 warning about running it on many EH regions one at a time.
5606 (remove_unreachable_eh_regions_worker): New function, walk the
5607 EH tree in depth-first order and remove non-marked regions.
5608 (remove_unreachable_eh_regions): New function.
5609 * tree-eh.c (mark_reachable_handlers): New function, split out
5610 from remove_unreachable_handlers.
5611 (remove_unreachable_handlers): Use mark_reachable_handlers and
5612 remove_unreachable_eh_regions.
5613 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
5614 and remove_unreachable_eh_regions.
5616 2013-03-05 Richard Biener <rguenther@suse.de>
5619 * loop-init.c (fix_loop_structure): Remove loops in two stages,
5620 not freeing them until the end.
5622 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5624 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
5626 2013-03-05 Richard Biener <rguenther@suse.de>
5628 PR tree-optimization/56270
5629 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
5630 of loads after scheduling an SLP instance.
5632 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5634 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
5636 (check_gcc_parallelize): Run guality.exp as a separate job from
5637 vect.exp with unsorted.exp and $(dg_target_exps) separately from
5638 struct-layout-1.exp with stackalign.exp.
5640 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
5643 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
5644 load_index sbitmap even if some bit in it isn't set.
5647 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
5648 (discover_iteration_bound_by_body_walk): Change queues to
5649 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
5650 spelling in comment. Call safe_push on queues[bound_index] directly.
5651 Release queues[queue_index] in every iteration unconditionally.
5652 Release bounds vector.
5655 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
5656 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
5657 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
5660 2013-03-05 Richard Biener <rguenther@suse.de>
5663 * tree-inline.c (remap_blocks_to_null): New function.
5664 (expand_call_inline): When expanding a call stmt without
5665 an associated block inline remap all callee blocks to NULL.
5667 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5669 PR rtl-optimization/56494
5670 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
5671 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
5672 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
5675 * sel-sched-ir.c (free_sched_pools): Release
5676 succs_info_pool.stack[succs_info_pool.max_top] vectors too
5677 if succs_info_pool.max_top isn't -1.
5680 * opts.c (opts_obstack, opts_concat): Moved to...
5681 * opts-common.c (opts_obstack, opts_concat): ... here.
5683 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5686 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
5688 2013-03-04 Martin Jambor <mjambor@suse.cz>
5690 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
5691 all appropriate places.
5693 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
5695 PR tree-optimization/56424
5696 * ipa-split.c (split_function): Do not set the RSO flag if result is
5697 not by reference and its type is a register type.
5699 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
5701 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
5702 (microblaze_legitimate_pic_operand): Likewise
5703 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
5704 new function microblaze_legitimate_pic_operand
5705 * config/microblaze/microblaze-protos.h
5706 (microblaze_legitimate_pic_operand): Declare.
5708 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5710 * config/microblaze/predicates.md (call_insn_simple_operand):
5711 New predicate for supported rtx code types.
5712 * config/microblaze/microblaze.md (call_internal1): Use
5713 call_insn_simple_operand predicate.
5715 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5718 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
5719 partitions.ordered_remove.
5722 * tree-vect-stmts.c (vectorizable_conversion): Don't call
5723 vec_oprnds0.create (1) for modifier == NONE.
5726 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
5727 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
5728 vec_oprnds1 right before pushing anything to it for
5732 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
5733 set nbbs to 0 instead of having separate code path.
5734 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
5735 instead of false as last argument if returning NULL.
5737 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
5739 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
5740 the attribute is now called "target" instead of "option".
5741 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
5742 * doc/tm.texi.in (Target Attributes): Likewise document the correct
5743 attribute/pragma name for TARGET_OPTION_VALID_P and
5744 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
5745 * doc/tm.texi: Regenerated.
5747 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
5749 * config/microblaze/microblaze.c:
5750 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
5751 * config/microblaze/microblaze.h: Add -mxl-reorder to
5753 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
5754 instructions emitted if TARGET_REORDER.
5755 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
5756 or 0 for -m/-mno case, but initialises as 2 to detect default use case
5759 2013-03-01 Xinliang David Li <davidxl@google.com>
5761 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
5764 2013-03-01 Jakub Jelinek <jakub@redhat.com>
5767 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
5768 vector even when returning true. Fix up function comment formatting.
5771 * ira-build.c (ira_loop_nodes_count): New variable.
5772 (create_loop_tree_nodes): Initialize it.
5773 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
5776 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
5777 method on dr_chain and result_chain.
5778 * tree-vect-stmts.c (vectorizable_store): Only call
5779 result_chain.create if j == 0.
5782 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
5783 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
5784 before overwriting it.
5786 2013-03-01 Tobias Burnus <burnus@net-b.de>
5788 * doc/extended.texi (C Extensions): Change order in @menu
5790 (Other MIPS Built-in Functions): Move last MIPS entry before
5791 "picoChip Built-in Functions".
5792 (SH Built-in Functions): Move after RX Built-in Functions.
5793 * doc/gcc.texi (Introduction): Change order in @menu
5795 * doc/md.texi (Constraints): Ditto.
5796 * gty.texi (Type Information): Ditto.
5797 (User-provided marking routines for template types): Make
5799 * doc/invoke.texi (AArch64 Options): Move before
5800 "Adapteva Epiphany Options".
5802 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5803 Jakub Jelinek <jakub@redhat.com>
5806 * asan.c (gate_asan): Lookup no_sanitize_address instead of
5807 no_address_safety_analysis attribute.
5808 * doc/extend.texi (no_address_safety_attribute): Rename to
5809 no_sanitize_address attribute, mention no_address_safety_analysis
5810 attribute as deprecated alias.
5812 2013-02-28 Jakub Jelinek <jakub@redhat.com>
5815 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
5816 type to vec<vec<tree> > *.
5817 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
5818 to be vec<tree> instead of vec<tree> *, set vec_defs
5819 to vNULL and call vec_defs.create (number_of_vects), adjust other
5821 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
5822 vectorizable_condition): Adjust vect_get_slp_defs callers.
5824 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5826 * config/aarch64/aarch64.c
5827 (aarch64_float_const_representable): Remove unused variable.
5829 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5831 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
5833 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5835 * config/aarch64/aarch64-builtins.c
5836 (aarch64_init_simd_builtins): Make static.
5838 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5840 * config/aarch64/aarch64.c
5841 (aarch64_simd_make_constant): Make static.
5843 2013-02-28 Martin Jambor <mjambor@suse.cz>
5845 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
5846 with no initialization to the RHS of debug statements.
5848 2013-02-28 Martin Jambor <mjambor@suse.cz>
5850 PR tree-optimization/56294
5851 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
5853 (get_access_replacement): Do not call create_access_replacement.
5854 Assert a replacement exists.
5855 (get_repl_default_def_ssa_name): Create the replacement declaration
5858 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5860 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
5863 2013-02-28 Marek Polacek <polacek@redhat.com>
5865 PR rtl-optimization/56466
5866 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
5867 if we're changing a loop.
5868 (peel_loops_completely): Likewise.
5870 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
5873 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
5875 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5878 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
5879 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
5880 INTX_FTYPE_FX, FX_FTYPE_INTX.
5881 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
5883 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5885 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
5886 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
5887 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
5888 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
5889 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
5890 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
5891 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
5892 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
5893 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
5894 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
5895 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
5896 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
5897 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
5898 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
5899 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
5900 (avrxmega6): Increase max flash segments from 5 to 6.
5901 * config/avr/t-multilib: Regenerate.
5902 * config/avr/avr-tables.opt: Regenerate.
5903 * doc/avr-mmcu.texi: Regenerate.
5905 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5907 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
5908 (avr_device_to_arch): Rename to avr_device_to_ld.
5909 (avr_device_to_as): New prototype.
5910 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
5911 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
5912 * config/avr/driver-avr.c (avr_device_to_as): New.
5913 (avr_device_to_arch): Rename to avr_device_to_ld.
5915 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5918 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
5919 method on dr_chain and result_chain.
5922 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
5923 pointer_set_destroy on not_executed_last_iteration.
5926 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
5929 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
5930 FOR_EACH_DEFINED_FUNCTION when freeing state.
5933 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
5935 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
5939 * ipa-cp.c (decide_whether_version_node): Call vec_free on
5940 known_aggs[i].items and release known_aggs vector.
5943 * ipa-reference.c (propagate): Free node_info even for alias nodes.
5945 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5947 * config/microblaze/microblaze.c (microblaze_emit_compare):
5948 Use xor for EQ/NE comparisions.
5949 * config/microblaze/microblaze.md (cstoresf4): Add constraints
5950 (cbranchsf4): Adjust operator to comparison_operator.
5952 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5955 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
5957 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
5958 vec_safe_push, always update *slot.
5959 (redirect_edge_var_map_clear): Use vec_free.
5960 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
5961 (free_var_map_entry): Use vec_free.
5962 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
5963 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
5965 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
5968 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
5969 when the may_trap_p bit of the exprs being merged differs.
5970 Reorder tests for speculativeness in the logical and operator.
5972 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5974 * incpath.c (add_standard_paths): Use reconcat instead of concat
5975 where appropriate and avoid leaking memory.
5977 * opts.h: Include obstack.h.
5978 (opts_concat): New prototype.
5979 (opts_obstack): New declaration.
5980 * opts.c (opts_concat): New function.
5981 (opts_obstack): New variable.
5982 (init_options_struct): Call gcc_init_obstack on opts_obstack.
5983 (finish_options): Use opts_concat instead of concat
5984 and XOBNEWVEC instead of XNEWVEC.
5985 * opts-common.c (generate_canonical_option, decode_cmdline_option,
5986 generate_option): Likewise.
5987 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
5988 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
5991 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
5992 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
5994 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5997 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
5999 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6001 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
6002 (arm_block_move_unaligned_straight): Likewise.
6003 (arm_adjust_block_mem): Likewise.
6005 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6008 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
6009 temp, cond and label.
6010 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
6013 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
6014 * config/c6x/c6x.h (dbx_register_map): Update declaration.
6017 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
6018 of prologue/epilogue functions.
6021 * config/tilegx/tilegx.c (tilegx_expand_prologue):
6022 Remove unused variable cfa_offset.
6023 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
6026 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
6027 type promotion to unsigned.
6030 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
6031 for HOST_WIDE_INT of 32 bit / same size as int.
6032 (arm_block_move_unaligned_straight): Likewise.
6033 (arm_adjust_block_mem): Likewise.
6036 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
6039 2013-02-26 Marek Polacek <polacek@redhat.com>
6041 PR tree-optimization/56426
6042 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
6044 2013-02-26 Richard Biener <rguenther@suse.de>
6047 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
6048 unused variable loops.
6050 2013-02-26 Jakub Jelinek <jakub@redhat.com>
6052 PR tree-optimization/56448
6053 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
6054 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
6055 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
6056 later operands of the references, or even first operand for
6057 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
6059 PR tree-optimization/56443
6060 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
6061 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
6062 to type_for_mode langhook.
6064 2013-02-25 Matt Turner <mattst88@gmail.com>
6066 * doc/invoke.texi: Document r4700.
6068 2013-02-25 Richard Biener <rguenther@suse.de>
6070 PR tree-optimization/56175
6071 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
6073 (simplify_bitwise_binary): ... here. Also guard the conversion
6074 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
6076 2013-02-25 Catherine Moore <clm@codesourcery.com>
6079 2013-02-24 Catherine Moore <clm@codesourcery.com>
6080 Maciej W. Rozycki <macro@codesourcery.com>
6081 Tom de Vries <tom@codesourcery.com>
6082 Nathan Sidwell <nathan@codesourcery.com>
6083 Iain Sandoe <iain@codesourcery.com>
6084 Nathan Froyd <froydnj@codesourcery.com>
6085 Chao-ying Fu <fu@mips.com>
6087 * doc/extend.texi: (micromips, nomicromips, nocompression):
6088 Document new function attributes.
6089 * doc/invoke.texi (minterlink-compressed, mmicromips,
6090 m14k, m14ke, m14kec): Document new options.
6091 (minterlink-mips16): Update documentation.
6092 * doc/md.texi (ZC, ZD): Document new constraints.
6093 * configure.ac (gcc_cv_as_micromips): Check if linker
6094 supports the .set micromips directive.
6095 * configure: Regenerate.
6096 * config.in: Regenerate.
6097 * config/mips/mips-tables.opt: Regenerate.
6098 * config/mips/micromips.md: New file.
6099 * constraints.md (ZC, AD): New constraints.
6100 * config/mips/predicates.md (movep_src_register): New predicate.
6101 (movep_src_operand): New predicate.
6102 (non_volatile_mem_operand): New predicate.
6103 * config/mips/mips.md (multimem): New type.
6104 (length): Differentiate between 17-bit and 18-bit branch offsets.
6105 (MOVEP1, MOVEP2): New mode iterator.
6106 (mov_<load>l): Use ZC constraint.
6107 (mov_<load>r): Likewise.
6108 (mov_<store>l): Likewise.
6109 (mov_<store>r): Likewise.
6110 (*branch_equality<mode>_inverted): Add microMIPS support.
6111 (*branch_equality<mode>): Likewise.
6112 (*jump_absolute): Likewise.
6113 (indirect_jump_<mode>): Likewise.
6114 (tablejump_<mode>): Likewise.
6115 (<optab>_internal): Likewise.
6116 (sibcall_internal): Likewise.
6117 (sibcall_value_internal): Likewise.
6118 (prefetch): Use constraint ZD.
6119 * config/mips/mips.opt (minterlink-compressed): New option.
6120 (minterlink-mips16): Now an alias for minterlink-compressed.
6121 (mmicromips): New option.
6122 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6123 (compare_and_swap_12): Likewise.
6124 (sync_add<mode>): Likewise.
6125 (sync_<optab>_12): Likewise.
6126 (sync_old_<optab>_12): Likewise.
6127 (sync_new_<optab>_12): Likewise.
6128 (sync_nand_12): Likewise.
6129 (sync_old_nand_12): Likewise.
6130 (sync_new_nand_12): Likewise.
6131 (sync_sub<mode>): Likewise.
6132 (sync_old_add<mode>): Likewise.
6133 (sync_old_sub<mode>): Likewise.
6134 (sync_new_add<mode>): Likewise.
6135 (sync_new_sub<mode>): Likewise.
6136 (sync_<optab><mode>): Likewise.
6137 (sync_old_<optab><mode>): Likewise.
6138 (sync_new_<optab><mode>): Likewise.
6139 (sync_nand<mode>): Likewise.
6140 (sync_old_nand<mode>): Likewise.
6141 (sync_new_nand<mode>): Likewise.
6142 (sync_lock_test_and_set<mode>): Likewise.
6143 (test_and_set_12): Likewise.
6144 (atomic_compare_and_swap<mode>): Likewise.
6145 (atomic_exchange<mode>_llsc): Likewise.
6146 (atomic_fetch_add<mode>_llsc): Likewise.
6147 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6148 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6149 (umips_save_restore_pattern_p): Likewise.
6150 (umips_load_store_pair_p): Likewise.
6151 (umips_output_load_store_pair): Likewise.
6152 (umips_movep_target_p): Likewise.
6153 (umips_12bit_offset_address_p): Likewise.
6154 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6155 (mips_base_mips16): Rename this...
6156 (mips_base_compression_flags): ...to this. Update all uses.
6157 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6158 (mips_mips16_decl_p): Delete.
6159 (mips_nomips16_decl_p): Delete.
6160 (mips_get_compress_on_flags): New function.
6161 (mips_get_compress_off_flags): New function.
6162 (mips_get_compress_mode): New function.
6163 (mips_get_compress_on_name): New function.
6164 (mips_get_compress_off_name): New function.
6165 (mips_insert_attributes): Support multiple compression types.
6166 (mips_merge_decl_attributes): Likewise.
6167 (umips_12bit_offset_address_p): New function.
6168 (mips_start_function_definition): Emit .set micromips directive.
6169 (mips_call_may_need_jalx_p): New function.
6170 (mips_function_ok_for_sibcall): Add microMIPS support.
6171 (mips_print_operand_punctuation): Support short delay slots and
6173 (umips_swm_mask, umips_swm_encoding): New.
6174 (umips_build_save_restore): New function.
6175 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6176 (was_mips16_p): Remove.
6177 (old_compression_mode): New.
6178 (mips_set_compression_mode): New function.
6179 (mips_set_current_function): Add microMIPS support.
6180 (mips_option_override): Likewise.
6181 (umips_save_restore_pattern_p): New function.
6182 (umips_output_save_restore): New function.
6183 (umips_load_store_pair_p_1): New function.
6184 (umips_load_store_pair_p): New function.
6185 (umips_output_load_store_pair_1): New function.
6186 (umips_output_load_store_pair): New function.
6187 (umips_movep_target_p) New function.
6188 (mips_prepare_pch_save): Add microMIPS support.
6189 * config/mips/mips.h (TARGET_COMPRESSION): New.
6190 (TARGET_CPU_CPP_BUILTINS): Update macro
6191 to use new compression flags and to support microMIPS.
6192 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6193 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6194 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6195 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6196 (ASM_SPEC): Support mmicromips and mno-micromips.
6197 (M16STORE_REG_P): New macro.
6198 (MIPS_CALL): Support TARGET_MICROMIPS.
6199 (MICROMIPS_J): New macro.
6200 (mips_base_mips16): Rename this...
6201 (mips_base_compression_flags): ...to this.
6202 (UMIPS_12BIT_OFFSET_P): New macro.
6203 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6204 (MULTILIB_DIRNAMES): Likewise.
6206 2013-02-25 Tom de Vries <tom@codesourcery.com>
6208 PR rtl-optimization/56131
6209 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
6210 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
6211 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
6213 2013-02-25 Tobias Burnus <burnus@net-b.de>
6215 * doc/invoke.texi (-fsanitize=): Move from optimization
6216 to debugging options.
6218 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
6220 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
6222 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
6223 Alexander Monakov <amonakov@ispras.ru>
6226 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
6227 flush pending lists also on non-jumps. Adjust comment.
6229 2013-02-24 Catherine Moore <clm@codesourcery.com>
6230 Maciej W. Rozycki <macro@codesourcery.com>
6231 Tom de Vries <tom@codesourcery.com>
6232 Nathan Sidwell <nathan@codesourcery.com>
6233 Iain Sandoe <iain@codesourcery.com>
6234 Nathan Froyd <froydnj@codesourcery.com>
6235 Chao-ying Fu <fu@mips.com>
6237 * doc/extend.texi: (micromips, nomicromips, nocompression):
6238 Document new function attributes.
6239 * doc/invoke.texi (minterlink-compressed, mmicromips,
6240 m14k, m14ke, m14kec): Document new options.
6241 (minterlink-mips16): Update documentation.
6242 * doc/md.texi (ZC, ZD): Document new constraints.
6243 * configure.ac (gcc_cv_as_micromips): Check if linker
6244 supports the .set micromips directive.
6245 * configure: Regenerate.
6246 * config.in: Regenerate.
6247 * config/mips/mips-tables.opt: Regenerate.
6248 * config/mips/micromips.md: New file.
6249 * constraints.md (ZC, AD): New constraints.
6250 * config/mips/predicates.md (movep_src_register): New predicate.
6251 (movep_src_operand): New predicate.
6252 (non_volatile_mem_operand): New predicate.
6253 * config/mips/mips.md (multimem): New type.
6254 (length): Differentiate between 17-bit and 18-bit branch offsets.
6255 (MOVEP1, MOVEP2): New mode iterator.
6256 (mov_<load>l): Use ZC constraint.
6257 (mov_<load>r): Likewise.
6258 (mov_<store>l): Likewise.
6259 (mov_<store>r): Likewise.
6260 (*branch_equality<mode>_inverted): Add microMIPS support.
6261 (*branch_equality<mode>): Likewise.
6262 (*jump_absolute): Likewise.
6263 (indirect_jump_<mode>): Likewise.
6264 (tablejump_<mode>): Likewise.
6265 (<optab>_internal): Likewise.
6266 (sibcall_internal): Likewise.
6267 (sibcall_value_internal): Likewise.
6268 (prefetch): Use constraint ZD.
6269 * config/mips/mips.opt (minterlink-compressed): New option.
6270 (minterlink-mips16): Now an alias for minterlink-compressed.
6271 (mmicromips): New option.
6272 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6273 (compare_and_swap_12): Likewise.
6274 (sync_add<mode>): Likewise.
6275 (sync_<optab>_12): Likewise.
6276 (sync_old_<optab>_12): Likewise.
6277 (sync_new_<optab>_12): Likewise.
6278 (sync_nand_12): Likewise.
6279 (sync_old_nand_12): Likewise.
6280 (sync_new_nand_12): Likewise.
6281 (sync_sub<mode>): Likewise.
6282 (sync_old_add<mode>): Likewise.
6283 (sync_old_sub<mode>): Likewise.
6284 (sync_new_add<mode>): Likewise.
6285 (sync_new_sub<mode>): Likewise.
6286 (sync_<optab><mode>): Likewise.
6287 (sync_old_<optab><mode>): Likewise.
6288 (sync_new_<optab><mode>): Likewise.
6289 (sync_nand<mode>): Likewise.
6290 (sync_old_nand<mode>): Likewise.
6291 (sync_new_nand<mode>): Likewise.
6292 (sync_lock_test_and_set<mode>): Likewise.
6293 (test_and_set_12): Likewise.
6294 (atomic_compare_and_swap<mode>): Likewise.
6295 (atomic_exchange<mode>_llsc): Likewise.
6296 (atomic_fetch_add<mode>_llsc): Likewise.
6297 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6298 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6299 (umips_save_restore_pattern_p): Likewise.
6300 (umips_load_store_pair_p): Likewise.
6301 (umips_output_load_store_pair): Likewise.
6302 (umips_movep_target_p): Likewise.
6303 (umips_12bit_offset_address_p): Likewise.
6304 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6305 (mips_base_mips16): Rename this...
6306 (mips_base_compression_flags): ...to this. Update all uses.
6307 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6308 (mips_mips16_decl_p): Delete.
6309 (mips_nomips16_decl_p): Delete.
6310 (mips_get_compress_on_flags): New function.
6311 (mips_get_compress_off_flags): New function.
6312 (mips_get_compress_mode): New function.
6313 (mips_get_compress_on_name): New function.
6314 (mips_get_compress_off_name): New function.
6315 (mips_insert_attributes): Support multiple compression types.
6316 (mips_merge_decl_attributes): Likewise.
6317 (umips_12bit_offset_address_p): New function.
6318 (mips_start_function_definition): Emit .set micromips directive.
6319 (mips_call_may_need_jalx_p): New function.
6320 (mips_function_ok_for_sibcall): Add microMIPS support.
6321 (mips_print_operand_punctuation): Support short delay slots and
6323 (umips_swm_mask, umips_swm_encoding): New.
6324 (umips_build_save_restore): New function.
6325 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6326 (was_mips16_p): Remove.
6327 (old_compression_mode): New.
6328 (mips_set_compression_mode): New function.
6329 (mips_set_current_function): Add microMIPS support.
6330 (mips_option_override): Likewise.
6331 (umips_save_restore_pattern_p): New function.
6332 (umips_output_save_restore): New function.
6333 (umips_load_store_pair_p_1): New function.
6334 (umips_load_store_pair_p): New function.
6335 (umips_output_load_store_pair_1): New function.
6336 (umips_output_load_store_pair): New function.
6337 (umips_movep_target_p) New function.
6338 (mips_prepare_pch_save): Add microMIPS support.
6339 * config/mips/mips.h (TARGET_COMPRESSION): New.
6340 (TARGET_CPU_CPP_BUILTINS): Update macro
6341 to use new compression flags and to support microMIPS.
6342 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6343 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6344 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6345 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6346 (ASM_SPEC): Support mmicromips and mno-micromips.
6347 (M16STORE_REG_P): New macro.
6348 (MIPS_CALL): Support TARGET_MICROMIPS.
6349 (MICROMIPS_J): New macro.
6350 (mips_base_mips16): Rename this...
6351 (mips_base_compression_flags): ...to this.
6352 (UMIPS_12BIT_OFFSET_P): New macro.
6353 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6354 (MULTILIB_DIRNAMES): Likewise.
6356 2013-02-24 Jakub Jelinek <jakub@redhat.com>
6359 * target-globals.c (save_target_globals): For init_reg_sets and
6360 target_reinit remporarily set this_fn_optabs to this_target_optabs.
6362 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
6364 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
6365 * config/aarch64/t-aarch64
6366 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
6368 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
6371 * lra-constraints.c (process_alt_operands): Reload operand
6372 conflicting with earlier clobber only if no more other conflicting
6375 2013-02-22 Jakub Jelinek <jakub@redhat.com>
6378 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
6379 if not linking a shared library.
6381 2013-02-22 Seth LaForge <sethml@google.com>
6383 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
6385 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
6387 * config/arm/arm.md (split for extendsidi): Update condition.
6388 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
6389 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
6390 (qhs_zextenddi_cstr): Likewise.
6392 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6395 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
6396 avoid signed wrapping.
6397 (expand_mult): Handle properly multiplication by
6398 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
6399 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
6400 in the compiler if coeff is HOST_WIDE_INT_MIN.
6401 (expand_divmod): Don't make ext_op1 static, change it's type to
6402 uhwi. Avoid undefined behavior in -INTVAL (op1).
6404 PR rtl-optimization/50339
6405 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
6407 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
6408 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
6409 into splitting_ashiftrt field.
6410 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
6412 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
6415 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
6418 * trans-mem.c (execute_tm_mark): Do not expand transactions that
6419 are sure to go irrevocable.
6421 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
6423 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
6424 scalars are valid operands.
6426 2013-02-21 Martin Jambor <mjambor@suse.cz>
6428 PR tree-optimization/56310
6429 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
6430 only matching indices and non-negative final offsets.
6431 (intersect_aggregates_with_edge): Pass src_idx to
6432 agg_replacements_to_vector. Pass src_idx insstead of index to
6433 intersect_with_agg_replacements.
6435 2013-02-21 Martin Jambor <mjambor@suse.cz>
6437 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
6438 instead of hard-wired defaults.
6440 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
6442 * doc/invoke.texi (MIPS Options): Update documentation of the
6443 floating-point multiply-accumulate instruction restrictions.
6445 2013-02-21 Kostya Serebryany <kcc@google.com>
6447 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
6448 asan_shadow_offset on x86_64 linux.
6450 2013-02-21 Richard Biener <rguenther@suse.de>
6452 PR tree-optimization/56415
6454 2013-02-11 Richard Biener <rguenther@suse.de>
6456 PR tree-optimization/56273
6457 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6460 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6463 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
6467 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
6468 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
6470 2013-02-20 Jan Hubicka <jh@suse.cz>
6472 PR tree-optimization/56265
6473 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
6474 when target is referenced for first time.
6476 2013-02-20 Richard Biener <rguenther@suse.de>
6478 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
6479 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
6480 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6481 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
6482 not return anything.
6483 (rename_ssa_copies): Do not remove unused locals.
6484 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
6485 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
6486 * passes.c (execute_function_todo): Do not schedule unused locals
6487 removal if cleanup_tree_cfg did something.
6488 * tree-ssa-live.c (remove_unused_locals): Dump statistics
6489 about the number of removed locals.
6491 2013-02-20 Richard Biener <rguenther@suse.de>
6493 PR tree-optimization/56398
6494 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
6496 2013-02-20 Martin Jambor <mjambor@suse.cz>
6498 PR tree-optimization/55334
6499 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
6500 restricted pointers to arrays.
6502 2013-02-20 Richard Biener <rguenther@suse.de>
6503 Jakub Jelinek <jakub@redhat.com>
6505 PR tree-optimization/56396
6506 * tree-ssa-ccp.c (n_const_val): New static variable.
6507 (get_value): Return NULL for SSA names we don't have a lattice
6509 (ccp_initialize): Initialize n_const_val.
6510 * tree-ssa-copy.c (n_copy_of): New static variable.
6511 (init_copy_prop): Initialize n_copy_of.
6512 (get_value): Return NULL_TREE for SSA names we don't have a
6515 2013-02-20 Martin Jambor <mjambor@suse.cz>
6517 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
6519 2013-02-20 Richard Biener <rguenther@suse.de>
6521 * genpreds.c (write_lookup_constraint): Do not compare first
6522 letter of the constraint again.
6524 2013-02-20 Richard Biener <rguenther@suse.de>
6526 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
6528 (get_use_iv_cost): Terminate hashtable walk when coming across
6531 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
6533 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
6534 reassociation for avx2 targets.
6536 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6538 * config/microblaze/microblaze.c: microblaze_has_clz = 0
6539 Add version check for v8.10.a to enable microblaze_has_clz
6540 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
6541 version and TARGET_PATTERN_COMPARE check
6542 * config/microblaze/microblaze.md: New clzsi2 instruction
6544 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6546 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
6547 function before branching.
6549 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6551 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
6553 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
6555 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6558 * sel-sched.c: Include ira.h.
6559 (implicit_clobber_conflict_p): New function.
6560 (moveup_expr): Use it.
6561 * Makefile.in (sel-sched.o): Depend on ira.h.
6563 2013-02-19 Richard Biener <rguenther@suse.de>
6565 PR tree-optimization/56384
6566 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
6567 (vn_hash_type): Split out from ...
6568 (vn_hash_constant_with_type): ... here.
6569 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
6570 (vn_phi_eq): Compare types from vn_phi_s structure.
6571 (vn_phi_lookup): Populate vn_phi_s type.
6572 (vn_phi_insert): Likewise.
6574 2013-02-19 Jakub Jelinek <jakub@redhat.com>
6576 PR tree-optimization/56350
6577 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
6578 if haven't found reduction or nested cycle operand, rather than
6579 asserting we must find it.
6581 PR tree-optimization/56381
6582 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
6585 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
6586 Jakub Jelinek <jakub@redhat.com>
6589 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
6590 (swap_optab_enable): Same.
6591 (init_all_optabs): Use argument instead of global.
6592 * tree.h (struct tree_optimization_option): New field target_optabs.
6593 * expr.h (init_all_optabs): Add argument to prototype.
6594 (TREE_OPTIMIZATION_OPTABS): New.
6595 (save_optabs_if_changed): Protoize.
6596 * optabs.h: Declare this_fn_optabs.
6597 * optabs.c (save_optabs_if_changed): New.
6598 Declare this_fn_optabs.
6599 (init_optabs): Add argument to init_all_optabs() call.
6600 * function.c (invoke_set_current_function_hook): Handle per
6602 * function.h (struct function): New field optabs.
6603 * config/mips/mips.c (mips_set_mips16_mode): Handle when
6604 optimization_current_node has changed.
6605 * target-globals.h (save_target_globals_default_opts): Protoize.
6606 * target-globals.c (save_target_globals_default_opts): New.
6608 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6611 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
6612 registers %fr12 and %fr12R as call used.
6615 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
6616 and HImode, require all displacements to be an integer multiple of
6618 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
6619 only allow QImode and HImode when reload is in progress and strict is
6620 true. Likewise for symbolic addresses. Use base14_operand to check
6621 displacements in REG+BASE addresses.
6623 2013-02-18 Richard Biener <rguenther@suse.de>
6625 PR tree-optimization/56366
6626 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6627 handle sign-conversion of outer-loop initial induction value.
6629 2013-02-18 Richard Biener <rguenther@suse.de>
6632 * cfghooks.c (merge_blocks): If we merge a latch into another
6633 block adjust references to it.
6634 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
6635 (verify_loop_structure): Verify that a recorded latch is in fact
6638 2013-02-18 Richard Biener <rguenther@suse.de>
6640 PR tree-optimization/56321
6641 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
6642 order SSA name release and virtual operand unlinking.
6644 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6646 * config/microblaze/microblaze.md (save_stack_block): Define.
6647 (restore_stack_block): Likewise.
6649 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6651 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
6652 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
6653 * config/microblaze/microblaze.c (microblaze_option_override):
6654 Bail out early for PIC modes when target does not support PIC.
6656 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6658 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
6659 Replace with a microblaze version.
6660 (microblaze_trampoline_init): Adapt for microblaze.
6661 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
6664 2013-02-16 Jakub Jelinek <jakub@redhat.com>
6665 Dodji Seketeli <dodji@redhat.com>
6668 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
6669 (instrument_mem_region_access): Do not forget to always put
6670 instrumentation of the of 'base' and 'base + len' in a "if (len !=
6671 0) statement, even for cases where either 'base' or 'base + len'
6672 are not instrumented -- because they have been previously
6673 instrumented. Simplify the logic by putting all the statements
6674 instrument 'base + len' inside a sequence, and then insert that
6675 sequence right before the current insertion point. Then, to
6676 instrument 'base + len', just get an iterator on that statement.
6677 And do not forget to update the pointer to iterator the function
6678 received as argument.
6680 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
6682 PR rtl-optimization/56348
6683 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
6685 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
6687 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
6688 (clean_graph_dump_file): Pass base to start_graph_dump.
6690 2013-02-14 Richard Henderson <rth@redhat.com>
6693 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
6695 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
6697 * collect2-aix.h: Define F_LOADONLY.
6699 2013-02-14 Richard Biener <rguenther@suse.de>
6702 * varasm.c (output_constant_def_1): Get the decl representing
6703 the constant as argument.
6704 (output_constant_def): Wrap output_constant_def_1.
6705 (make_decl_rtl): Use output_constant_def_1 with the decl
6706 representing the constant.
6707 (build_constant_desc): Optionally re-use a decl already
6708 representing the constant.
6709 (tree_output_constant_def): Adjust.
6711 2013-02-14 Dodji Seketeli <dodji@redhat.com>
6714 * asan.c (instrument_builtin_call): Really put the length of the
6715 second source argument into src1_len.
6717 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6719 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
6720 argument. If it is false, don't create edge from then_bb to
6722 (insert_if_then_before_iter): Pass true to it.
6723 (build_check_stmt): Pass false to it.
6724 (transform_statements): Flush hash table only on extended basic
6725 block boundaries, rather than at the beginning of every bb.
6726 Don't flush hash table on nonfreeing_call_p calls.
6727 * tree-flow.h (nonfreeing_call_p): New prototype.
6728 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
6730 2013-02-13 David S. Miller <davem@davemloft.net>
6732 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
6734 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
6737 * ira.c (max_regno_before_ira): Move from ...
6739 (fix_reg_equiv_init): Use max_regno_before_ira instead of
6742 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6744 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
6746 2013-02-13 Richard Biener <rguenther@suse.de>
6749 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
6750 globals in MEM_REFs.
6752 2013-02-13 Richard Biener <rguenther@suse.de>
6754 * loop-init.c (loop_optimizer_init): Clear loop state when
6755 re-initializing preserved loops.
6756 * loop-unswitch.c (unswitch_single_loop): Return whether
6757 we unswitched the loop. Do not verify loop state here.
6758 (unswitch_loops): When we unswitched a loop discover new loops.
6760 2013-02-13 Kostya Serebryany <kcc@google.com>
6762 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
6764 * sanitizer.def: Rename __asan_init to __asan_init_v1.
6766 2013-02-12 Dodji Seketeli <dodji@redhat.com>
6768 Avoid instrumenting duplicated memory access in the same basic block
6769 * Makefile.in (asan.o): Add new dependency on hash-table.h
6770 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
6771 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
6772 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
6773 (free_mem_ref_resources, has_mem_ref_been_instrumented)
6774 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
6775 (get_mem_ref_of_assignment): New functions.
6776 (get_mem_refs_of_builtin_call): Extract from
6777 instrument_builtin_call and tweak a little bit to make it fit with
6779 (instrument_builtin_call): Use the new
6780 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
6781 of is_gimple_builtin_call.
6782 (instrument_derefs, instrument_mem_region_access): Insert the
6783 instrumented memory reference into the hash table.
6784 (maybe_instrument_assignment): Renamed instrument_assignment into
6785 this, and change it to advance the iterator when instrumentation
6786 actually happened and return true in that case. This makes it
6787 homogeneous with maybe_instrument_assignment, and thus give a
6788 chance to callers to be more 'regular'.
6789 (transform_statements): Clear the memory reference hash table
6790 whenever we enter a new BB, when we cross a function call, or when
6791 we are done transforming statements. Use
6792 maybe_instrument_assignment instead of instrumentation. No more
6793 need to special case maybe_instrument_assignment and advance the
6794 iterator after calling it; it's now handled just like
6795 maybe_instrument_call. Update comment.
6797 2013-02-13 Richard Biener <rguenther@suse.de>
6799 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6800 Fix loop discovery code.
6802 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
6805 * lra-constraints.c (process_alt_operands): Match early clobber
6806 operand with itself. Check conflicts with earlyclobber only if
6807 the operand is not reloaded. Prefer to reload conflicting operand
6808 if earlyclobber and matching operands are the same.
6810 2013-02-12 Richard Biener <rguenther@suse.de>
6813 * lto-streamer-out.c (write_symbol): Do not output symbols
6814 for hard register variables.
6816 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
6819 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
6820 (umulsidi3_insn, mulsidi3_insn): New insns.
6822 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
6824 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
6825 (struct tune_params): Add vec_costs field.
6826 * config/arm/arm.c (arm_builtin_vectorization_cost)
6827 (arm_add_stmt_cost): New functions.
6828 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
6829 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
6830 (arm_default_vec_cost): New struct of type cpu_vec_costs.
6831 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6832 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
6833 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
6834 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
6836 2013-02-12 Richard Biener <rguenther@suse.de>
6839 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
6840 decls again if possible.
6842 2013-02-12 Richard Biener <rguenther@suse.de>
6845 * tree-ssa.c (verify_ssa_name): Fix check, move
6846 SSA_NAME_IN_FREE_LIST check up.
6848 2013-02-12 Jakub Jelinek <jakub@redhat.com>
6849 Steven Bosscher <steven@gcc.gnu.org>
6851 PR rtl-optimization/56151
6852 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
6853 equal to op0 or op1, and last_insn pattern is CODE operation
6854 with MEM dest and one of the operands matches that MEM.
6856 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
6858 * doc/extend.texi: Document Function Multiversioning and "default"
6859 parameter string to target attribute.
6860 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
6861 target attribute parameter is "default".
6862 (ix86_compare_version_priority): Remove checks for target attribute.
6863 (ix86_mangle_function_version_assembler_name): Change error to sorry.
6864 Remove check for target attribute equal to NULL. Add assert.
6865 (ix86_generate_version_dispatcher_body): Change error to sorry.
6867 2013-02-11 Iain Sandoe <iain@codesourcery.com>
6868 Jack Howarth <howarth@bromo.med.uc.edu>
6869 Patrick Marlier <patrick.marlier@gmail.com>
6872 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
6873 define ENDFILE_SPEC as TM_DESTRUCTOR.
6874 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
6876 2013-02-11 Alexander Potapenko <glider@google.com>
6877 Jack Howarth <howarth@bromo.med.uc.edu>
6878 Jakub Jelinek <jakub@redhat.com>
6881 * config/darwin.c (cdtor_record): Rename ctor_record.
6882 (sort_cdtor_records): Rename sort_ctor_records.
6883 (finalize_dtors): New routine to sort destructors by
6884 priority before use in assemble_integer.
6885 (machopic_asm_out_destructor): Use finalize_dtors if needed.
6887 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
6889 PR rtl-optimization/56275
6890 * simplify-rtx.c (avoid_constant_pool_reference): Check that
6891 offset is non-negative and less than cmode size before
6892 calling simplify_subreg.
6894 2013-02-11 Richard Biener <rguenther@suse.de>
6896 PR tree-optimization/56264
6897 * cfgloop.h (fix_loop_structure): Adjust prototype.
6898 * loop-init.c (fix_loop_structure): Return the number of
6899 newly discovered loops.
6900 * tree-cfgcleanup.c (repair_loop_structures): When new loops
6901 are discovered, do a full loop-closed SSA rewrite.
6903 2013-02-11 Richard Biener <rguenther@suse.de>
6905 PR tree-optimization/56273
6906 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6908 (check_array_ref): Fix missing newline in dumps.
6909 (search_for_addr_array): Likewise.
6911 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
6913 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
6915 2013-02-09 Jakub Jelinek <jakub@redhat.com>
6918 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
6920 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
6922 PR rtl-optimization/56246
6923 * lra-constraints.c (simplify_operand_subreg): Try to reuse
6925 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
6926 constraints are satisfied.
6928 2013-02-08 Jeff Law <law@redhat.com>
6931 * emit-rtl.c (reg_is_parm_p): New function.
6932 * regs.h (reg_is_parm_p): New prototype.
6933 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
6934 callee-clobbered registers.
6936 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6939 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
6940 If there is no implicit builtin declaration, just return NULL.
6942 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6944 * config/i386/sse.md (FMAMODEM): New mode iterator.
6945 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
6946 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
6948 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6950 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
6951 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
6952 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
6954 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6956 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
6957 (microblaze*-*-elf): Likewise.
6958 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
6960 * config/microblaze/microblaze-c.c: Add builtin defines for
6961 _LITTLE_ENDIAN and _BIG_ENDIAN.
6962 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
6963 add to TARGET_DEFAULT flags.
6964 Expand ASM_SPEC and LINK_SPEC.
6965 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6966 * config/microblaze/microblaze.md: Update extendsidi2 and
6967 movdi_internal instructions to use low-order / high-order reg
6969 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
6970 options and inversemask / mask of LITTLE_ENDIAN.
6971 * config/microblaze/t-microblaze: Expand multilib options to
6972 include mlittle-endian (le) and update exceptions patterns.
6974 2013-02-08 Jakub Jelinek <jakub@redhat.com>
6976 PR rtl-optimization/56195
6977 * lra-constraints.c (get_reload_reg): Don't reuse regs
6978 if they have smaller mode than requested, if they have
6979 wider mode than requested, try to return a SUBREG.
6981 PR tree-optimization/56250
6982 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
6983 if type is unsigned and code isn't MULT_EXPR.
6985 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6987 PR tree-optimization/56064
6988 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
6989 bits according to mode.
6990 * fixed-value.h (fixed_from_double_int)
6991 (const_fixed_from_double_int): Adjust comments.
6993 2013-02-08 Richard Biener <rguenther@suse.de>
6996 * lto-streamer.h (struct data_in): Remove current_file, current_line
6997 and current_col members.
6998 * lto-streamer-out.c (lto_output_location): Stream changed bits
6999 en-block for efficiency.
7000 * lto-streamer-in.c (clear_line_info): Remove.
7001 (lto_input_location): Cache current file, line and column
7002 globally via local statics. Read changed bits en-block.
7003 (input_function): Do not call clear_line_info.
7004 (lto_read_body): Likewise.
7005 (lto_input_toplevel_asms): Likewise.
7007 2013-02-08 Michael Matz <matz@suse.de>
7009 PR tree-optimization/52448
7010 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
7011 (nt_call_phase): New static.
7012 (add_or_mark_expr): Only mark accesses with newer phase than any
7014 (nonfreeing_call_p): New.
7015 (nt_init_block): Update nt_call_phase, mark blocks as visited.
7016 (nt_fini_block): Keep blocks marked as visited.
7017 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
7019 2013-02-08 Richard Biener <rguenther@suse.de>
7021 * ira.c (ira): Free broken dominator information.
7023 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7025 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
7027 2013-02-08 Marek Polacek <polacek@redhat.com>
7029 * cfgloop.c (verify_loop_structure): Add more checking of headers.
7031 2013-02-08 Richard Biener <rguenther@suse.de>
7034 * cfgloop.h (flow_loops_find): Adjust.
7035 (bb_loop_header_p): Declare.
7036 * cfgloop.c (bb_loop_header_p): New function split out from ...
7037 (flow_loops_find): ... here. Adjust function signature,
7038 support incremental loop structure update.
7039 (verify_loop_structure): Cleanup. Verify a loop is a loop.
7040 * cfgloopmanip.c (fix_loop_structure): Move ...
7041 * loop-init.c (fix_loop_structure): ... here.
7042 (apply_loop_flags): Split out from ...
7043 (loop_optimizer_init): ... here.
7044 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
7045 in incremental mode, only remove dead loops here.
7047 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
7050 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
7051 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
7052 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
7053 (*round<mode>3.libgcc): New insns for fixed-modes.
7054 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
7055 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
7056 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
7057 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
7058 implementations. Define to __builtin_avr_absFX,
7059 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
7060 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
7061 __builtin_avr_countlsFX, respectively.
7062 * config/avr/avr-c.c (target.h): Include it.
7063 (enum avr_builtin_id): New enum.
7064 (avr_resolve_overloaded_builtin): New static function.
7065 (avr_register_target_pragmas): Use it to set
7066 targetm.resolve_overloaded_builtin.
7067 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
7068 tree nodes used by DEF_BUILTIN.
7069 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
7070 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
7071 <AVR_BUILTIN_xxBITS>: Same.
7073 2013-02-08 Richard Biener <rguenther@suse.de>
7075 * cfgloop.c (verify_loop_structure): Properly handle
7076 a loop exiting to another loop header.
7077 * ira-int.h (ira_loops): Remove.
7078 * ira.c (ira_loops): Remove.
7079 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
7080 (do_reload): Use loop_optimizer_finalize.
7081 * ira-build.c (create_loop_tree_nodes): Use get_loops and
7082 number_of_loops to access the loop tree.
7083 (more_one_region_p): Likewise.
7084 (finish_loop_tree_nodes): Likewise.
7085 (rebuild_regno_allocno_maps): Likewise.
7086 (mark_loops_for_removal): Likewise.
7087 (mark_all_loops_for_removal): Likewise.
7088 (remove_unnecessary_regions): Likewise.
7089 (ira_build): Likewise.
7090 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7092 2013-02-08 Richard Biener <rguenther@suse.de>
7094 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
7095 * ipa-pure-const.c (analyze_function): Avoid calling
7096 mark_irreducible_loops twice.
7097 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
7099 2013-02-07 David S. Miller <davem@davemloft.net>
7101 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
7103 * var-tracking.c (vt_add_function_parameter): Test the presence of
7104 HAVE_window_save properly and do not remap argument registers when
7105 we have a leaf function.
7107 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
7110 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
7112 * config/i386/i386.c (ix86_print_operand): Ditto.
7114 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7116 * lra-constraints.c (process_alt_operands): Fix recently added comment.
7118 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7120 PR rtl-optimization/56225
7121 * lra-constraints.c (process_alt_operands): Check that reload hard
7122 reg can hold value for strict_low_part.
7124 2013-02-07 Jakub Jelinek <jakub@redhat.com>
7127 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
7128 dwarf2out_end_function.
7129 (in_first_function_p, maybe_at_text_label_p,
7130 first_loclabel_num_not_at_text_label): New variables.
7131 (dwarf2out_var_location): In the first function find out
7132 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
7133 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
7136 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
7138 PR rtl-optimization/56178
7139 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
7140 SUBREG of a register. Tidy up related block of code.
7141 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
7142 note if the source is a register or a SUBREG of a register.
7144 2013-02-07 Jakub Jelinek <jakub@redhat.com>
7147 * config/rs6000/rs6000.md (ptrm): New mode attr.
7148 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
7149 call_value_indirect_aix<pttrsize>,
7150 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
7153 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7155 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
7156 if -bnortl. Convert to strcmp and strncmp.
7158 2013-02-07 Alan Modra <amodra@gmail.com>
7161 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
7162 addresses won't wrap when offsetting.
7163 (rs6000_secondary_reload): Provide secondary reloads needed for
7164 wrapping LO_SUM addresses.
7166 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
7168 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
7169 MACH, just __MACH__.
7171 2013-02-06 Richard Biener <rguenther@suse.de>
7173 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
7174 instead of calling fix_loop_structure.
7176 2013-02-06 Jakub Jelinek <jakub@redhat.com>
7179 * omp-low.c (use_pointer_for_field): Return false if
7180 lower_send_shared_vars doesn't generate any copy-out code.
7182 2013-02-06 Tom de Vries <tom@codesourcery.com>
7184 PR rtl-optimization/56131
7185 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
7186 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
7187 of the label is NULL. Add comment.
7189 2013-02-05 Jakub Jelinek <jakub@redhat.com>
7191 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
7194 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
7195 (STATIC_LIBTSAN_LIBS): Likewise.
7196 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
7197 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
7198 is defined, don't add anything else beyond that.
7199 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
7200 (LINK_COMMAND_SPEC): Use them.
7202 PR tree-optimization/56205
7203 * tree-stdarg.c (check_all_va_list_escapes): Return true if
7204 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
7205 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
7207 2013-02-05 Richard Biener <rguenther@suse.de>
7209 PR tree-optimization/53342
7210 PR tree-optimization/53185
7211 * tree-vectorizer.h (vect_check_strided_load): Remove.
7212 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
7213 not disallow peeling for vectorized strided loads.
7214 (vect_check_strided_load): Make static and simplify.
7215 (vect_analyze_data_refs): Adjust.
7216 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
7217 correctly when vectorizing strided loads.
7219 2013-02-05 Richard Biener <rguenther@suse.de>
7221 * doc/install.texi: Refer to ISL, not PPL.
7223 2013-02-05 Jan Hubicka <jh@suse.cz>
7225 PR tree-optimization/55789
7226 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
7228 2013-02-05 Jan Hubicka <jh@suse.cz>
7230 PR tree-optimization/55789
7231 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
7232 the dead call anyway.
7234 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
7237 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
7239 2013-02-04 Alexander Potapenko <glider@google.com>
7240 Jack Howarth <howarth@bromo.med.uc.edu>
7241 Jakub Jelinek <jakub@redhat.com>
7244 * config/darwin.c (sort_ctor_records): Stabilized qsort
7245 on constructor priority by using original position.
7246 (finalize_ctors): New routine to sort constructors by
7247 priority before use in assemble_integer.
7248 (machopic_asm_out_constructor): Use finalize_ctors if needed.
7250 2013-02-04 Jakub Jelinek <jakub@redhat.com>
7253 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
7254 about visibility on artificial decls.
7255 * config/sol2.c (solaris_assemble_visibility): Likewise.
7257 2013-02-04 Kai Tietz <ktietz@redhat.com>
7260 * config/i386/i386.c (function_value_ms_64): Add additional valtype
7261 argument and improve checking of return-argument types for 16-byte
7263 (ix86_function_value_1): Add additional valtype argument on call
7264 of function_value_64.
7265 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
7266 handling infunction_value_64 function.
7268 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
7270 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
7272 2013-02-04 Richard Biener <rguenther@suse.de>
7274 PR tree-optimization/56188
7275 * tree-ssa-structalias.c (label_visit): Consider case with
7276 initially non-empty points-to set.
7277 (perform_var_substitution): Dump node mapping and clean up.
7279 2013-02-04 Richard Guenther <rguenther@suse.de>
7282 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
7283 node prevail as last resort.
7284 (lto_symtab_merge_decls): Remove guard on LTRANS here.
7285 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
7287 2013-02-04 Richard Biener <rguenther@suse.de>
7289 PR tree-optimization/56113
7290 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
7292 (equiv_class_lookup_or_add): ... this.
7293 (label_visit): Adjust and fix error in previous patch.
7294 (perform_var_substitution): Adjust.
7296 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
7298 * config/sh/divtab.c: Fix formatting and comments throughout the file.
7299 * config/sh/sh4-300.md: Likewise.
7300 * config/sh/sh4a.md: Likewise.
7301 * config/sh/constraints.md: Likewise.
7302 * config/sh/sh.md: Likewise.
7303 * config/sh/netbsd-elf.h: Likewise.
7304 * config/sh/predicates.md: Likewise.
7305 * config/sh/sh-protos.h: Likewise.
7306 * config/sh/ushmedia.h: Likewise.
7307 * config/sh/linux.h: Likewise.
7308 * config/sh/sh.c: Likewise.
7309 * config/sh/superh.h: Likewise.
7310 * config/sh/elf.h: Likewise.
7311 * config/sh/sh4.md: Likewise.
7312 * config/sh/sh.h: Likewise.
7314 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7316 * config/pa/constraints.md: Adjust unused letters. Change "T"
7317 constraint to match_test floating_point_store_memory_operand().
7318 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
7319 (base14_operand): New.
7320 (floating_point_store_memory_operand): New.
7321 (integer_store_memory_operand): Revise to use base14_operand and
7322 reg_plus_base_memory_operand.
7323 (move_dest_operand): Allow symbolic_memory_operands.
7324 (symbolic_memory_operand): Check for LO_SOM.
7325 (symbolic_operand): Change default case to break.
7326 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
7327 CONST_DOUBLE values to be reloaded by putting them into memory when
7328 the destination is a floating point register.
7329 (movdf): Remove code to handle CONST_DOUBLE.
7331 (reload_indf_r1): New.
7332 (reload_insf_r1): New.
7333 Consistently use "Q" and "T" constraints with integer and floating
7334 point move instructions, respectively.
7335 (movdi): Remove FAIL.
7336 Change predicate for source operand unamed DImode move from
7337 general_operand to move_src_operand.
7338 (umulsidi3): Change predicate for destination operand to
7340 Likewise for similar unamed patterns.
7341 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
7342 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
7343 (hppa_legitimize_address): Simplify mask calculation.
7344 (pa_emit_move_sequence): Revised handling of secondary reloads from
7345 REG+D addresses for floating point loads and stores. Directly handle
7346 loading CONST0_RTX (mode) to a floating point register.
7347 (pa_secondary_reload): Handle reloading DF and SFmode constant values
7348 to floating point registers. Don't restrict secondary reloads to
7349 floating point registers to integer modes. Revise some comments and
7351 (TARGET_LEGITIMATE_ADDRESS_P): Define.
7352 (pa_legitimate_address_p): New.
7353 (pa_legitimize_reload_address): New.
7354 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
7355 (STRICT_REG_OK_FOR_BASE_P): New.
7356 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
7357 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
7359 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
7360 Andrew Dixie <andrewd@gentrack.com>
7362 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
7365 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
7367 * expmed.c (extract_bit_field_1): Pass the full width of the
7368 structure to get_best_reg_extraction_insn.
7370 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
7373 * configure.ac (use_cxa_atexit): Add AIX.
7374 * configure: Regenerate.
7376 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
7378 2013-02-01 Jakub Jelinek <jakub@redhat.com>
7381 * final.c (need_profile_function): New variable.
7382 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
7383 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
7384 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
7385 notes, targetm.asm_out.function_prologue doesn't emit anything,
7386 HAVE_prologue and profiler should be emitted before prologue,
7387 set need_profile_function instead of emitting it.
7388 (final_scan_insn): If need_profile_function, emit
7389 profile_function on the first NOTE_INSN_BASIC_BLOCK or
7390 NOTE_INSN_FUNCTION_BEG note.
7392 2013-02-01 Richard Henderson <rth@redhat.com>
7394 * config/rs6000/rs6000.md (smulditi3): New.
7397 * config/alpha/alpha.md (umulditi3): New.
7399 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
7401 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
7402 (ASM_OUTPUT_ALIGNED_LOCAL): New.
7404 2013-02-01 Richard Biener <rguenther@suse.de>
7406 PR tree-optimization/56113
7407 * tree-ssa-structalias.c (label_visit): Reduce work for
7408 single-predecessor nodes.
7410 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
7412 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
7413 range isn't testing for zero.
7415 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
7418 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
7420 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
7421 Nick Clifton <nickc@redhat.com>
7423 * config/v850/constraints.md (Q): Define as a memory constraint.
7424 * config/v850/predicates.md (label_ref_operand): New predicate.
7425 (e3v5_shift_operand): New predicate.
7426 (ior_operator): New predicate.
7427 * config/v850/t-v850: Add e3v5 multilib.
7428 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
7429 (v850_gen_movdi): Prototype.
7430 * config/v850/v850.c: Add support for e3v5 architecture.
7431 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
7433 (construct_save_jarl): Add e3v5 long JARL support.
7434 (v850_adjust_insn_length): New function. Adjust length of call
7435 insns when using e3v5 instructions.
7436 (v850_gen_movdi): New function: Generate instructions to move a
7438 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
7439 (CPP_SPEC): Define __v850e3v5__ as appropriate.
7440 (TARGET_USE_FPU): Enable for e3v5.
7441 (CONST_OK_FOR_W): New macro.
7442 (ADJUST_INSN_LENGTH): Define.
7443 * config/v850/v850.md (UNSPEC_LOOP): Define.
7444 (attr cpu): Add v850e3v5.
7445 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
7446 (movdi): New pattern.
7447 (movdi_internal): New pattern.
7448 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
7449 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
7450 (cstoresf4): Likewise.
7451 (cstoredf4): Likewise.
7452 (insv): New pattern.
7453 (rotlso3_a): New pattern.
7454 (rotlsi3_b): New pattern
7455 (rotlsi3_v850e3v5): New pattern.
7456 (doloop_begin): New pattern.
7457 (fix_loop_counter): New pattern.
7458 (doloop_end): New pattern.
7459 (branch_normal): Add e3v5 long branch support.
7460 (branch_invert): Likewise.
7461 (branch_z_normal): Likewise.
7462 (branch_z_invert): Likewise.
7463 (branch_nz_normal): Likewise.
7464 (branch_nz_invert): Likewise.
7465 (call_internal_short): Add e3v5 register-indirect JARL support.
7466 (call_internal_long): Likewise.
7467 (call_value_internal_short): Likewise.
7468 (call_value_internal_long): Likewise.
7469 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
7470 (mloop): New option.
7471 * config.gcc: Add support for configuring v840e3v5 target.
7472 * doc/invoke.texi: Document new v850 specific command line options.
7474 2013-01-31 Paul Koning <ni1d@arrl.net>
7478 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
7479 children if parent is a class.
7480 (prune_unused_types_prune): Don't add DW_AT_declaration.
7482 2013-01-31 Richard Biener <rguenther@suse.de>
7484 PR tree-optimization/56157
7485 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
7486 match up operand with SLP child.
7488 2013-01-31 Jason Merrill <jason@redhat.com>
7491 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
7492 parameters the first time.
7493 (gen_scheduled_generic_parms_dies): Check completeness here.
7495 2013-01-31 Richard Biener <rguenther@suse.de>
7498 * common.opt (faggressive-loop-optimizations): New flag,
7500 * doc/invoke.texi (faggressive-loop-optimizations): Document.
7501 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
7502 infer_loop_bounds_from_undefined by it.
7504 2013-01-31 Richard Biener <rguenther@suse.de>
7506 PR tree-optimization/56150
7507 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
7508 visit virtual operands.
7509 (find_uses_to_rename_bb): Likewise.
7511 2013-01-31 Richard Biener <rguenther@suse.de>
7513 PR tree-optimization/56150
7514 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
7515 mixed store non-store stmts.
7517 2013-01-30 Jakub Jelinek <jakub@redhat.com>
7520 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
7521 LIBASAN_EARLY_SPEC is defined.
7522 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
7523 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
7525 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
7528 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
7529 invalid args instead of ICEing on it.
7530 (ix86_valid_target_attribute_tree): Return error_mark_node if
7531 ix86_valid_target_attribute_inner_p failed.
7532 (ix86_valid_target_attribute_p): Return false only if
7533 ix86_valid_target_attribute_tree returned error_mark_node. Allow
7534 target("default") attribute.
7535 (sorted_attr_string): Change argument from const char * to tree,
7536 merge in all target attribute arguments rather than just one.
7537 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
7538 instead of free. Avoid using strcat.
7539 (ix86_mangle_function_version_assembler_name): Mangle
7540 target("default") as if no target attribute is present. Adjust
7541 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
7542 instead of xmalloc and XDELETEVEC instead of free.
7543 (ix86_function_versions): Don't return true if one of the decls
7544 doesn't have target attribute. If they don't and one of the decls
7545 is DECL_FUNCTION_VERSIONED, report an error. Adjust
7546 sorted_attr_string caller. Use XDELETEVEC instead of free.
7547 (ix86_supports_function_versions): Remove.
7548 (make_name): Fix up formatting.
7549 (make_dispatcher_decl): Remove resolver_name and its initialization.
7550 Avoid leaking memory.
7551 (is_function_default_version): Return true if there is
7552 target("default") attribute rather than no target attribute at all.
7553 (make_resolver_func): Avoid leaking memory.
7554 (ix86_generate_version_dispatcher_body): Likewise.
7555 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
7556 * target.def (supports_function_versions): Remove.
7557 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
7558 * doc/tm.texi: Regenerated.
7560 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
7562 PR rtl-optimization/56144
7563 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
7564 for values with side effects.
7566 2013-01-30 Richard Biener <rguenther@suse.de>
7568 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
7569 (sparseset_pop): Likewise.
7570 * cfganal.c (compute_idf): Likewise. Increase work-stack size
7571 to be able to use quick_push in the worker loop.
7573 2013-01-30 Marek Polacek <polacek@redhat.com>
7575 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
7577 2013-01-30 Richard Biener <rguenther@suse.de>
7580 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
7582 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
7584 PR tree-optimization/56064
7585 * fixed-value.c (fixed_from_double_int): New function.
7586 * fixed-value.h (fixed_from_double_int): New prototype.
7587 (const_fixed_from_double_int): New static inline function.
7588 * fold-const.c (native_interpret_fixed): New static function.
7589 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
7590 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
7591 (native_encode_fixed): New static function.
7592 (native_encode_expr) <FIXED_CST>: Use it.
7593 (native_interpret_int): Move double_int worker code to...
7594 * double-int.c (double_int::from_buffer): ...this new static method.
7595 * double-int.h (double_int::from_buffer): Prototype it.
7597 2013-01-30 Richard Biener <rguenther@suse.de>
7599 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
7600 New pointer-map and obstack.
7601 (init_alias_vars): Allocate pointer-map and obstack.
7602 (delete_points_to_sets): Free them.
7603 (find_what_var_points_to): Cache result.
7604 (find_what_p_points_to): Adjust for changed interface of
7605 find_what_var_points_to.
7606 (compute_points_to_sets): Likewise.
7607 (ipa_pta_execute): Likewise.
7609 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7611 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
7612 * configure: Regenerate.
7613 * config.in: Regenerate.
7614 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
7615 #nobits/#progbits if supported.
7617 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
7620 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
7621 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
7622 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
7624 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7626 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
7627 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7629 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7631 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
7632 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
7634 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7636 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
7638 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
7639 * config/arm/cortex-a7.md: New bypasses using
7640 arm_mac_accumulator_is_result.
7642 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7644 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
7645 (cortex_a7_neon_mla): Likewise.
7646 (cortex_a7_fpfmad): New reservation.
7647 (cortex_a7_fpmacs): Use ffmas and update required units.
7648 (cortex_a7_fpmuld): Update required units and latency.
7649 (cortex_a7_fpmacd): Likewise.
7650 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
7651 (cortex_a7_neon). Likewise.
7652 (bypass) Update participating units.
7654 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7656 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
7657 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
7659 * config/arm/vfp11.md (vfp_farith): Use ffmas.
7660 (vfp_fmul): Use ffmad.
7661 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
7662 (cortex_r4_fmacd): Use ffmad.
7663 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
7664 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
7665 (cortex_a9_fmacd): Use ffmad.
7666 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
7667 (cortex_a8_vfp_macd): Use ffmad.
7668 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
7669 (cortex_a5_fpmacd): Use ffmad.
7670 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
7671 (cortex_a15_vfp_macd): Use ffmad.
7672 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
7674 2013-01-29 Jason Merrill <jason@redhat.com>
7677 * varasm.c (default_assemble_visibility): Don't warn about
7678 visibility on artificial decls.
7680 2013-01-29 Richard Biener <rguenther@suse.de>
7682 PR tree-optimization/56113
7683 * tree-ssa-structalias.c (equiv_class_lookup): Also return
7685 (label_visit): Free duplicate bitmaps and record the leader instead.
7686 (perform_var_substitution): Adjust.
7688 2013-01-29 Richard Biener <rguenther@suse.de>
7690 PR tree-optimization/55270
7691 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
7692 the CFG, schedule loops for fixup.
7694 2013-01-29 Nick Clifton <nickc@redhat.com>
7696 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
7699 2013-01-28 Leif Ekblad <leif@rdos.net>
7701 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
7702 * config/i386/i386.h (TARGET_RDOS): New macro.
7703 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
7704 * config/i386/i386.c (ix86_option_override_internal): For 64bit
7705 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
7706 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
7707 DEFAULT_LARGE_SECTION_THRESHOLD.
7708 * config/i386/i386.md (R14_REG, R15_REG): New constants.
7709 * config/i386/rdos.h: New file.
7710 * config/i386/rdos64.h: New file.
7712 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
7715 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
7718 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7720 PR rtl-optimization/56117
7721 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
7722 call cselib_lookup_from_insn on the MEM before calling
7723 add_insn_mem_dependence.
7725 2013-01-28 Richard Biener <rguenther@suse.de>
7727 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
7728 to a stmt that didn't have one.
7729 (copy_phis_for_bb): Likewise for PHI arguments.
7730 (copy_debug_stmt): Likewise for debug stmts.
7732 2013-01-28 Richard Biener <rguenther@suse.de>
7734 PR tree-optimization/56034
7735 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
7736 (partition_builtin_p): Adjust.
7737 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
7738 it is the last partition.
7739 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
7740 up the vertex for the definition.
7741 (classify_partition): Classify whether a partition is a
7742 PKIND_REDUCTION, thus has uses outside of the loop.
7743 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
7744 Merge all PKIND_REDUCTION partitions into the last partition.
7745 (tree_loop_distribution): Seed partitions from reductions as well.
7747 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7749 PR tree-optimization/56125
7750 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
7751 pow(x,c) into sqrt(x) * powi(x, n/2) or
7752 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
7753 optimizing for size.
7754 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
7755 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
7758 PR tree-optimization/56094
7759 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
7760 to UNKNOWN_LOCATION while gimplifying expr.
7762 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
7765 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
7766 operand 0 in movabs insn template for -masm=intel asm alternative.
7767 (*movabs<mode>_2): Ditto for operand 1.
7769 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
7772 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
7775 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7777 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
7780 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7782 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
7783 Undef to avoid warning.
7785 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7787 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
7788 * configure: Regenerate.
7790 2013-01-25 Jakub Jelinek <jakub@redhat.com>
7792 PR tree-optimization/56098
7793 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
7794 for stmts with volatile ops.
7795 (cond_store_replacement): Don't optimize if assign has volatile ops.
7796 (cond_if_else_store_replacement_1): Don't optimize if either
7797 then_assign or else_assign have volatile ops.
7798 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
7801 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7803 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
7805 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7807 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
7808 missing ':' in asm example.
7810 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
7812 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
7813 entries into lane and laneq entries.
7814 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
7815 Remove AdvSIMD scalar modes.
7816 (aarch64_sq<r>dmulh_laneq<mode>): New.
7817 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
7819 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
7820 builtin implementations to relfect changes in RTL in aarch64-simd.md.
7821 * config/aarch64/iterators.md (VCOND): New.
7824 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7827 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
7828 Add NULL LIBNAME argument to existing definitions.
7829 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
7830 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
7831 * config/avr/avr.c (DEF_BUILTIN): Same.
7832 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
7833 (avr_expand_builtin): Expand to a vanilla call if a libgcc
7834 implementation is available (DECL_ASSEMBLER_NAME is set).
7835 (avr_fold_absfx): New static function.
7836 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
7837 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
7838 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
7840 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
7841 (abshk, absk, abslk, absllk): Provide as static inline functions.
7843 2013-01-25 Marek Polacek <polacek@redhat.com>
7845 PR tree-optimization/56035
7846 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
7848 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
7850 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
7851 (*movtf_internal_rex64): Add (!o,C) alternative
7852 (*movxf_internal_rex64): Ditto.
7853 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
7855 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
7857 * doc/invoke.texi: fix typo.
7858 * doc/objc.texi: fix typo.
7860 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
7862 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
7863 for the first two alternatives.
7865 2013-01-24 Diego Novillo <dnovillo@google.com>
7867 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
7868 (ggc-zone.o): Remove.
7869 * configure.ac: Remove option --with-gc.
7870 * configure: Re-generate.
7871 * doc/install.texi: Remove documentation for --with-gc.
7872 * gengtype.c (write_enum_defn): Remove. Update all users.
7873 (write_Types_process_field): Remove generation of gt_e_* argument.
7874 (output_type_enum): Remove. Update all users.
7875 (write_enum_defn): Remove. Update all users.
7876 (enum alloc_zone): Remove. Update all users.
7877 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
7878 * ggc-common.c (ggc_splay_alloc): Remove first argument.
7880 (struct ptr_data): Remove field TYPE. Update all users.
7881 (gt_pch_note_object): Remove argument TYPE. Update all users.
7882 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
7884 * ggc-none.c (ggc_alloc_typed_stat): Remove.
7885 (struct alloc_zone): Remove.
7886 (ggc_internal_alloc_zone_stat): Remove.
7887 (ggc_internal_cleared_alloc_zone_stat): Remove.
7888 * ggc-page.c (ggc_alloc_typed_stat): Remove.
7889 (ggc_pch_count_object): Remove last argument. Update all users.
7890 (ggc_pch_alloc_object): Remove last argument. Update all users.
7891 (struct alloc_zone): Remove.
7892 * ggc-zone.c: Remove.
7893 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
7894 (struct alloc_zone): Remove.
7895 (ggc_alloc_typed_stat): Remove.
7896 (ggc_alloc_typed): Remove.
7897 (ggc_splay_alloc): Remove first argument.
7898 (rtl_zone): Remove. Update all users.
7899 (tree_zone): Remove. Update all users.
7900 (tree_id_zone): Remove. Update all users.
7901 (ggc_internal_zone_alloc_stat): Remove. Update all users.
7902 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
7903 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
7904 * tree-ssanames.c: Remove references to zone allocator in comments.
7906 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
7908 * config/avr/avr.c (avr_out_fract): Make register numbers that
7909 might be outside of source operand signed.
7911 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
7913 * config/i386/constraints.md (Yf): New constraint.
7914 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
7915 of f constraint to conditionaly disable x87 register preferences.
7916 (*movdf_internal): Ditto.
7917 (*movsf_internal): Ditto.
7919 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
7922 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
7923 that have operands with impossible constraints.
7924 Add a FIXME for a speed-up opportunity.
7925 * lra-constraints.c (process_alt_operands): Verify that a class
7926 selected from constraints on asms is valid for the operand mode.
7927 (curr_insn_transform): Remove incorrect comment.
7929 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
7931 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
7932 TOC operand is a valid symbol ref in the constant pool.
7934 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7936 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
7938 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
7941 * config/avr/stdfix.h: New file.
7942 * t-avr (stdfix-gcc.h): New rule to build it.
7943 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
7945 2013-01-23 Kostya Serebryany <kcc@google.com>
7947 * config/darwin.h: remove dependency on
7948 CoreFoundation (asan on Mac OS).
7950 2013-01-23 Jakub Jelinek <jakub@redhat.com>
7953 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
7954 instead of cmpdi_operand for first comparison operand.
7955 Don't assert that comparison operands aren't both constants.
7957 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7959 * doc/install.texi (Downloading the Source): Update references to
7960 downloading separate components.
7962 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7964 * doc/extend.texi (__int128): Improve grammar.
7966 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
7969 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
7970 alternative to (o,r).
7971 (*movdi_internal_rex64): Remove (!o,n) alternative.
7972 (DImode immediate->memory splitter): Remove.
7973 (DImode immediate->memory peephole2): Remove.
7974 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
7975 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
7976 alternative to (!o,*r).
7977 (*movtf_internal_sse): New pattern.
7978 (*movxf_internal_rex64): New pattern.
7979 (*movxf_internal): Disable for TARGET_64BIT.
7980 (*movdf_internal_rex64): Remove (!o,F) alternative.
7982 2013-01-22 Jakub Jelinek <jakub@redhat.com>
7985 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
7986 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
7987 * tree-vect-loop-manip.c (find_loop_location): Also ignore
7988 stmt locations where LOCATION_LOCUS of the stmt location is
7989 UNKNOWN_LOCATION or BUILTINS_LOCATION.
7992 * config/i386/i386.md (UNSPEC_STOS): New.
7993 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
7994 *strsetqi_1): Add UNSPEC_STOS.
7996 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
7999 * doc/invoke.texi: Remove left over -Wsynth example.
8001 2013-01-21 Jakub Jelinek <jakub@redhat.com>
8003 PR tree-optimization/56051
8004 * fold-const.c (fold_binary_loc): Don't fold
8005 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
8006 a narrowing conversion, or widening conversion from signed
8009 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
8011 PR rtl-optimization/56023
8012 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
8013 dependent on debug instruction.
8015 2013-01-21 Martin Jambor <mjambor@suse.cz>
8018 * function.c (allocate_struct_function): Call
8019 invoke_set_current_function_hook earlier.
8021 2013-01-21 Jakub Jelinek <jakub@redhat.com>
8023 * reload1.c (init_reload): Only initialize reload_obstack
8024 during the first call.
8026 2013-01-21 Marek Polacek <polacek@redhat.com>
8028 * cfgloop.c (verify_loop_structure): Fix up grammar.
8030 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
8032 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
8033 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
8035 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8038 * config/arm/marvell-pj4.md: Update copyright year.
8039 Fix up use of alu to alu_reg and simple_alu_imm.
8041 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
8043 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
8045 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
8048 * lra-constraints.c (curr_insn_transform): Don't reuse original
8049 insn for secondary memory move when memory mode should be different.
8051 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8053 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
8054 atomic_storedi_1): New patterns.
8056 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8058 btver2 pipeline descriptions.
8059 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
8061 * config/i386/i386.md (btver2_decode): New type attributes.
8062 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
8064 * config/i386/btver2.md: New file describing btver2 pipelines.
8066 2013-01-19 Andrew Pinski <apinski@cavium.com>
8068 PR tree-optimization/52631
8069 * tree-ssa-sccvn (visit_use): Before looking up the original
8070 statement, try looking up the simplified expression.
8072 2013-01-19 Anthony Green <green@moxielogic.com>
8074 * config/moxie/moxie.c (moxie_expand_prologue): Set
8075 current_function_static_stack_size.
8077 2013-01-18 Jakub Jelinek <jakub@redhat.com>
8079 PR tree-optimization/56029
8080 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
8081 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
8083 2013-01-18 Sharad Singhai <singhai@google.com>
8085 PR tree-optimization/55995
8086 * dumpfile.c (dump_loc): Print location only if available.
8087 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
8089 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
8092 * lra-constraints.c (curr_insn_transform): Reuse original insn for
8093 secondary memory move.
8094 (inherit_reload_reg): Use rclass instead of cl for
8095 check_secondary_memory_needed_p.
8097 2013-01-18 Jakub Jelinek <jakub@redhat.com>
8100 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
8101 the case where writing real complex part of target modifies op1.
8103 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
8105 * config/aarch64/aarch64-simd.md
8106 (aarch64_vcond_internal<mode>): Handle unordered cases.
8107 * config/aarch64/iterators.md (v_cmp_result): New.
8109 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
8110 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8112 * config/arm/marvell-pj4.md: New file.
8113 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
8114 * config/arm/arm.md (generic_sched): Add marvell_pj4.
8115 (generic_vfp): Likewise.
8116 * config/arm/arm-cores.def: Add marvell-pj4.
8117 * config/arm/arm-tune.md: Regenerate.
8118 * config/arm/arm-tables.opt: Regenerate.
8119 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
8120 * doc/invoke.texi: Document marvell-pj4.
8122 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
8124 * config/aarch64/arm_neon.h: Map scalar types to standard types.
8126 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8131 * var-tracking.c (negative_power_of_two_p): New.
8132 (global_get_addr_cache, local_get_addr_cache): New.
8133 (get_addr_from_global_cache, get_addr_from_local_cache): New.
8134 (vt_canonicalize_addr): Rewrite using the above. Adjust the
8136 (vt_stack_offset_p): Remove.
8137 (vt_canon_true_dep): Always canonicalize loc's address.
8138 (clobber_overlapping_mems): Make sure we have a MEM.
8139 (local_get_addr_clear_given_value): New.
8140 (val_reset): Clear local cached entries.
8141 (compute_bb_dataflow): Create and release the local cache.
8142 Disable duplicate MEMs clobbering.
8143 (emit_notes_in_bb): Clobber MEMs likewise.
8144 (vt_emit_notes): Create and release the local cache.
8145 (vt_initialize, vt_finalize): Create and release the global
8146 cache, respectively.
8147 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
8149 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8152 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
8153 not found in the symtab.
8155 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8158 PR rtl-optimization/55547
8159 PR rtl-optimization/53827
8162 * alias.c (offset_overlap_p): New, factored out of...
8163 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
8164 the conservative special case for symbolic constants. Don't
8165 adjust zero sizes on alignment.
8167 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
8169 PR rtl-optimization/52573
8170 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
8171 REG_UNUSED for the same register.
8173 2013-01-17 Richard Biener <rguenther@suse.de>
8174 Marek Polacek <polacek@redhat.com>
8176 PR rtl-optimization/55833
8177 * loop-unswitch.c (unswitch_loops): Move loop verification...
8178 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
8179 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
8180 Set it to true when we're removing a loop from hierarchy tree in
8181 an irreducible region.
8182 (fix_bb_placements): Adjust caller.
8183 (fix_loop_placements): Likewise.
8185 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
8187 * config/avr/builtins.def (DEF_BUILTIN): Factor out
8188 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
8189 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
8190 Remove ID. Adjust comments.
8191 * config/avr/avr-c.c (avr_builtin_name): Remove.
8192 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
8193 * config/avr/avr.c (avr_tolower): New static function.
8194 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
8195 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
8196 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
8199 2013-01-17 Jan Hubicka <jh@suse.cz>
8201 PR tree-optimization/55273
8202 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
8204 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
8207 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
8208 store through atomic_store<mode>_1.
8209 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
8211 2013-01-17 Martin Jambor <mjambor@suse.cz>
8213 PR tree-optimizations/55264
8214 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
8215 for virtual methods.
8216 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
8217 virtual methods before inlining is over.
8218 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
8220 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
8223 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
8225 PR rtl-optimization/56005
8226 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
8227 pending reads for prefetch.
8229 2013-01-16 Ian Bolton <ian.bolton@arm.com>
8231 * config/aarch64/aarch64.md
8232 (*cstoresi_neg_uxtw): New pattern.
8233 (*cmovsi_insn_uxtw): New pattern.
8234 (*<optab>si3_uxtw): New pattern.
8235 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
8236 (*<optab>si3_insn_uxtw): New pattern.
8237 (*bswapsi2_uxtw): New pattern.
8239 2013-01-16 Richard Biener <rguenther@suse.de>
8241 * tree-inline.c (tree_function_versioning): Remove set but
8242 never used variable.
8244 2013-01-16 Richard Biener <rguenther@suse.de>
8246 PR tree-optimization/55964
8247 * tree-flow.h (rename_variables_in_loop): Remove.
8248 (rename_variables_in_bb): Likewise.
8249 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
8250 (copy_loop_before): Adjust and delete update-ssa status.
8251 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8252 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
8253 (rename_variables_in_loop): Remove.
8254 (slpeel_update_phis_for_duplicate_loop): Likewise.
8255 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
8256 use available cfg machinery instead of duplicating it.
8257 Update PHI nodes and perform poor-mans SSA update here.
8258 (slpeel_tree_peel_loop_to_edge): Adjust.
8260 2013-01-16 Richard Biener <rguenther@suse.de>
8262 PR tree-optimization/54767
8263 PR tree-optimization/53465
8264 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
8265 (vrp_visit_phi_node): For PHI arguments coming via backedges
8266 drop all symbolical range information.
8267 (execute_vrp): Compute backedges.
8269 2013-01-16 Richard Biener <rguenther@suse.de>
8271 * doc/install.texi: Update CLooG and ISL requirements to
8274 2013-01-16 Christian Bruel <christian.bruel@st.com>
8277 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
8278 (broken_move): Handle UNSPECV_SP_SWITCH_B.
8279 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
8281 2013-01-16 DJ Delorie <dj@redhat.com>
8283 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8284 (UNSPECV_SP_SWITCH_E): New.
8285 (sp_switch_1): Change to an unspec.
8286 (sp_switch_2): Change to an unspec. Don't use post-inc when we
8289 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
8291 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
8292 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
8293 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
8294 (expand_mem_thread_fence): Ditto.
8295 (expand_mem_signal_fence): Ditto.
8296 (expand_atomic_load): Ditto.
8297 (expand_atomic_store): Ditto.
8299 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
8301 PR rtl-optimization/55547
8302 PR rtl-optimization/53827
8305 * alias.c (memrefs_conflict_p): Set sizes to negative after
8308 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8311 * function.c (thread_prologue_and_epilogue_insns): Always
8312 add crtl->drap_reg to set_up_by_prologue.set, even if
8313 stack_realign_drap is false.
8315 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8317 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
8318 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
8319 *call): Fix indention.
8321 2013-01-15 Tom de Vries <tom@codesourcery.com>
8324 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
8327 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
8329 PR rtl-optimization/55153
8330 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
8332 2013-01-15 Martin Jambor <mjambor@suse.cz>
8334 PR tree-optimization/55920
8335 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
8336 accesses as grp_to_be_debug_replaced.
8338 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8340 PR tree-optimization/55920
8341 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
8342 there is non-useless type conversion needed from debug rhs to lhs,
8343 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
8345 2013-01-15 Joseph Myers <joseph@codesourcery.com>
8346 Mikael Pettersson <mikpe@it.uu.se>
8349 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
8351 (ASM_OUTPUT_CASE_LABEL): Remove.
8352 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
8353 * final.c (shorten_branches): Update alignment of labels before
8354 jump tables if CASE_VECTOR_SHORTEN_MODE.
8356 2013-01-15 Richard Biener <rguenther@suse.de>
8359 * system.h: Do not include gmp.h for building host tools.
8361 2013-01-15 Richard Biener <rguenther@suse.de>
8364 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
8365 account for bitpos when computing alignment.
8367 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
8369 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
8370 (ix86_target_macros_internal): Likewise.
8372 * config/i386/i386.c (m_CORE2I7): Removed.
8373 (m_CORE_HASWELL): New macro.
8374 (m_CORE_ALL): Likewise.
8375 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
8376 (initial_ix86_arch_features): Likewise.
8377 (processor_target_table): Initializations for Core avx2.
8378 (cpu_names): New names "core-avx2".
8379 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
8380 PROCESSOR_CORE_HASWELL.
8381 (ix86_issue_rate): New case.
8382 (ia32_multipass_dfa_lookahead): Likewise.
8383 (ix86_sched_init_global): Likewise.
8385 * config/i386/i386.h (TARGET_HASWELL): New macro.
8386 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
8387 (processor_type): New PROCESSOR_HASWELL.
8389 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8391 PR tree-optimization/55955
8392 * tree-vect-loop.c (vectorizable_reduction): Give up early on
8393 *SHIFT_EXPR and *ROTATE_EXPR codes.
8395 PR tree-optimization/48766
8396 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
8397 -ftrapv disable -fwrapv.
8399 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8402 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
8403 etc. to 1 and not to __flash.
8404 Use LL suffix for __INT24_MAX__ with -mint8.
8405 Use ULL suffix for __UINT24_MAX__ with -mint8.
8407 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8409 * config/avr/avr-arch.h
8410 (struct base_arch_s): Use typedef avr_arch_t instead.
8411 (struct arch_info_s): Use typedef avr_arch_info_t instead.
8412 (struct mcu_type_s): Use typedef avr_mcu_t instead.
8413 * config/avr/avr.c: Same.
8414 * config/avr/avr-devices.c: Same.
8415 * config/avr/driver-avr.c: Same.
8416 * config/avr/gen-avr-mmcu-texi.c: Same.
8417 * config/avr/avr-mcus.def: Adjust comment.
8419 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
8421 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
8422 * config/aarch64/iterators.md (VALLDI): New.
8424 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
8425 Andi Kleen <ak@linux.intel.com>
8428 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
8429 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
8432 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8434 * config/avr/avr-stdint.h: Remove trailing blanks.
8435 * config/avr/avr-log.h: Same.
8436 * config/avr/avr-arch.h: Same.
8437 * config/avr/avr-devices.c: Same.
8438 * config/avr/avr-dimode.md: Same.
8439 * config/avr/predicates.md: Same.
8440 * config/avr/avr-c.c: Same. And fix typo.
8442 * config/avr/avr-protos.h: Same. And:
8443 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
8444 (init_cumulative_args): Rename to avr_init_cumulative_args.
8445 (expand_prologue): Rename to avr_expand_prologue.
8446 (expand_epilogue): Rename to avr_expand_epilogue.
8447 (adjust_insn_length): Rename to avr_adjust_insn_length.
8448 (notice_update_cc): Rename to avr_notice_update_cc.
8449 (final_prescan_insn): Rename to avr_final_prescan_insn.
8450 * config/avr/avr.c: Same.
8451 * config/avr/avr.h: Same.
8452 * config/avr/avr.md: Remove trailing blanks.
8453 (prologue): Use avr_expand_prologue.
8454 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
8456 2013-01-14 Richard Biener <rguenther@suse.de>
8458 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
8459 verify_location, collect_subblocks): New functions.
8460 (verify_gimple_in_cfg): Verify that locations only reference
8461 BLOCKs in the functions BLOCK tree.
8463 2013-01-14 Richard Biener <rguenther@suse.de>
8465 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
8467 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
8469 (insert_out_of_ssa_copy_on_edge): Likewise.
8470 (rewrite_close_phi_out_of_ssa): Likewise.
8471 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
8473 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
8474 propagated constants.
8475 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
8478 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8480 * config/avr/avr-modes.def: Add GPL copyright notice.
8482 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
8484 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
8485 MEMMODEL_MASK to determine memory model.
8486 (atomic_store<mode>): Ditto from operands[2].
8487 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
8489 2013-01-13 Jakub Jelinek <jakub@redhat.com>
8492 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
8493 (fold_gimple_assign): Don't call unshare_expr here.
8494 (fold_ctor_reference): Call unshare_expr.
8496 2013-01-13 Terry Guo <terry.guo@arm.com>
8498 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
8499 * doc/fragments.texi: Document MULTILIB_REUSE.
8500 * gcc.c (multilib_reuse): New internal spec.
8501 (set_multilib_dir): Also search multilib from multilib_reuse.
8502 * genmultilib (tmpmultilib3): Refactor code.
8503 (tmpmultilib4): Ditto.
8504 (multilib_reuse): New multilib argument.
8506 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
8508 * Makefile.in: Update copyright.
8510 2013-01-12 Tom de Vries <tom@codesourcery.com>
8513 * calls.c (expand_call): Check if arg_nr is valid.
8515 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8517 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
8518 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
8519 documentation. Add missing '__' in front of
8520 __builtin_ia32_packssdw256.
8522 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8525 * config/s390/s390.c (s390_preferred_reload_class): Do not return
8526 NO_REGS for larl operands.
8527 (s390_reload_larl_operand): Use s390_load_address instead of
8530 2013-01-11 Richard Biener <rguenther@suse.de>
8532 * tree-cfg.c (verify_node_sharing_1): Split out from ...
8533 (verify_node_sharing): ... here.
8534 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
8536 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
8538 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
8539 Substitute TREECHECKING.
8540 * configure: Regenerate.
8541 * Makefile.in (TREECHECKING): New.
8543 2013-01-11 Richard Guenther <rguenther@suse.de>
8545 PR tree-optimization/44061
8546 * tree-vrp.c (extract_range_basic): Compute zero as
8547 value-range for __builtin_constant_p of function parameters.
8549 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
8551 Update copyright years.
8553 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
8555 PR rtl-optimization/55672
8556 * lra-eliminations.c (mark_not_eliminable): Permit addition with
8557 const to be eliminable.
8559 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
8561 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
8562 * configure: Regenerate.
8564 2013-01-10 Richard Biener <rguenther@suse.de>
8566 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
8568 2013-01-10 Richard Biener <rguenther@suse.de>
8571 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
8572 locations for virtual PHI arguments.
8573 (rewrite_update_phi_arguments): Likewise.
8575 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
8577 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
8580 2013-01-10 Jakub Jelinek <jakub@redhat.com>
8582 PR tree-optimization/55921
8583 * tree-complex.c (expand_complex_asm): New function.
8584 (expand_complex_operations_1): Call it for GIMPLE_ASM.
8586 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8589 * config/s390/s390.c (s390_symref_operand_p)
8590 (s390_loadrelative_operand_p): Merge the two functions.
8591 (s390_check_qrst_address, print_operand_address): Add parameters
8592 to s390_loadrelative_operand_p invokation.
8593 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
8594 (s390_reload_larl_operand, s390_secondary_reload): Use
8595 s390_loadrelative_operand_p instead of s390_symref_operand_p.
8596 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
8598 2013-01-09 Mike Stump <mikestump@comcast.net>
8600 * dse.c (record_store): Remove unnecessary assert.
8602 2013-01-09 Jan Hubicka <jh@suse.cz>
8604 PR tree-optimization/55569
8605 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
8606 * cfgloop.h (scale_loop_profile): Likewise.
8608 2013-01-09 Jan Hubicka <jh@suse.cz>
8611 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
8613 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
8615 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
8618 * expr.h (maybe_emit_group_store): Declare.
8619 * expr.c (maybe_emit_group_store): New function.
8620 * builtins.c (expand_builtin_int_roundingfn): Call it.
8621 (expand_builtin_int_roundingfn_2): Likewise.
8623 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
8625 PR rtl-optimization/55829
8626 * lra-constraints.c (match_reload): Add code for absent output.
8627 (curr_insn_transform): Add code for reloads of matched inputs
8630 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
8632 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
8633 attribute of movddup insn to DF.
8634 (*vec_interleave_lowv2df): Ditto.
8635 (vec_dupv2df): Ditto.
8637 2013-01-09 Jan Hubicka <jh@suse.cz>
8639 PR tree-optimiation/55875
8640 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
8641 EVERY_ITERATION parameter.
8642 (number_of_iterations_exit): Check if exit is executed every iteration.
8643 (idx_infer_loop_bounds): Similarly here.
8644 (n_of_executions_at_most): Simplify
8645 to only test for cases where statement is dominated by the
8646 particular bound; handle correctly the "postdominance" test.
8647 (scev_probably_wraps_p): Use max loop iterations info
8648 as a global bound first.
8650 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
8651 Nick Clifton <nickc@redhat.com>
8653 * config/v850/v850.md (cbranchsf4): New pattern.
8654 (cstoresf4): New pattern.
8655 (cbranchdf4): New pattern.
8656 (cstoredf4): New pattern.
8657 (movsicc): Disallow floating point comparisons.
8658 (cmpsf_le_insn): Fix order of operators.
8659 (cmpsf_lt_insn): Likewise.
8660 (cmpsf_eq_insn): Likewise.
8661 (cmpdf_le_insn): Likewise.
8662 (cmpdf_lt_insn): Likewise.
8663 (cmpdf_eq_insn): Likewise.
8664 (cmpsf_ge_insn): Use LE comparison.
8665 (cmpdf_ge_insn): Likewise.
8666 (cmpsf_gt_insn): Use LT comparison.
8667 (cmpdf_gt_insn): Likewise.
8668 (cmpsf_ne_insn): Delete pattern.
8669 (cmpdf_ne_insn): Delete pattern.
8670 * config/v850/v850.c (v850_gen_float_compare): Use
8671 gen_cmpdf_eq_insn for NE comparison.
8672 (v850_float_z_comparison_operator)
8673 (v850_float_nz_comparison_operator): Move from here ...
8674 * config/v850/predicates.md: ... to here. Move GT and GE
8675 comparisons into v850_float_z_comparison_operator.
8676 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
8678 (v850_float_nz_comparison_operator): Likewise.
8680 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8682 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
8683 with calls to gen_insvsi/gen_insvdi.
8685 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8687 * config/i386/i386.c (initial_ix86_tune_features): Set up
8688 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
8690 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
8691 Jakub Jelinek <jakub@redhat.com>
8693 PR tree-optimization/48189
8694 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
8695 If nitercst is 0, don't predict the exit edge.
8697 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8699 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
8700 in asm_fprintf with reg_names.
8701 (aarch64_print_operand_address): Likewise.
8702 (aarch64_return_addr): Likewise.
8703 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
8705 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8707 * config/pa/pa.h (VAL_U6_BITS_P): Define.
8708 (INT_U6_BITS): Likewise.
8709 * config/pa/predicates.md (uint6_operand): New predicate.
8710 (shift5_operand, shift6_operand): Likewise.
8711 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
8713 (lshrdi3): Use shift6_operand.
8714 (shrpsi4, shrpdi4): New insn patterns.
8715 (extzv): Delete expander.
8716 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
8717 predicates in unamed zero extract patterns. Tighten common constraint.
8718 (extv): Delete expander.
8719 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
8720 predicates in unamed sign extract patterns. Tighten common constraint.
8721 (insv): Delete expander.
8722 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
8723 predicates in unamed insert patterns. Tighten common constraint.
8724 Change uint32_operand predicate to uint6_operand predicate in unamed
8725 DImode pattern to insert constant values of type 1...1xxxx.
8727 2013-01-04 Jan Hubicka <jh@suse.cz>
8729 PR tree-optimization/55823
8730 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
8733 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8734 Uros Bizjak <ubizjak@gmail.com>
8736 PR rtl-optimization/55845
8737 * df-problems.c (can_move_insns_across): Stop scanning at
8738 volatile_insn_p source instruction or give up if
8739 across_from .. across_to range contains any volatile_insn_p
8742 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8744 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
8745 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
8747 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
8748 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
8750 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8753 * asan.c (asan_clear_shadow): New function.
8754 (asan_emit_stack_protection): Use it.
8756 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8758 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
8759 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
8760 with tab instead of space.
8762 2013-01-08 Nick Clifton <nickc@redhat.com>
8764 * config/rl78/rl78.c (rl78_expand_prologue): Always select
8765 register bank 0 at the start of an interrupt handler.
8766 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
8769 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8771 * config/aarch64/aarch64-simd.md
8772 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
8773 (aarch64_simd_bsl): Likewise.
8774 (aarch64_vcond_internal<mode>): Likewise.
8775 (vcond<mode><mode>): Likewise.
8776 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
8777 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
8779 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8781 * config/aarch64/aarch64-builtins.c
8782 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
8784 2013-01-08 Martin Jambor <mjambor@suse.cz>
8787 * tree-sra.c (analyze_access_subtree): Return true also after
8788 potentially creating a debug-only replacement.
8790 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8793 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
8795 PR tree-optimization/54120
8796 * tree-vrp.c (range_fits_type_p): Don't allow
8797 src_precision < precision from signed vr to unsigned_p
8798 if vr->min or vr->max is negative.
8799 (simplify_float_conversion_using_ranges): Test can_float_p
8800 against CODE_FOR_nothing.
8802 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8803 Richard Biener <rguenther@suse.de>
8806 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
8807 types instead of just INTEGER_TYPE types.
8809 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
8811 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
8814 2013-01-07 Steve Ellcey <sellcey@mips.com>
8817 * config/mips/mips.opt: Change mad to mmad to match documentation.
8819 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8822 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
8825 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8828 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
8829 (avr_addrspace_t): Add .section_name field.
8830 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
8832 (avr_addrspace): Same. Initialize .section_name. Remove last
8833 NULL entry. Put __memx into .progmemx.data.
8834 (progmem_section_prefix): Remove.
8835 (avr_asm_init_sections): No need to initialize progmem_section.
8836 (avr_asm_named_section): Use avr_addrspace[].section_name to get
8837 section name prefix.
8838 (avr_asm_select_section): Ditto. And use get_unnamed_section to
8839 retrieve the progmem section.
8840 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
8841 boundary to run over avr_addrspace[].
8842 (avr_register_target_pragmas): Ditto.
8844 2013-01-06 Jakub Jelinek <jakub@redhat.com>
8846 * varasm.c (output_constant_def_contents): For asan_protect_global
8847 protected strings, adjust DECL_ALIGN if needed, before testing for
8849 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
8850 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
8852 (output_object_block): For asan protected decls, emit asan padding
8853 after their contents.
8854 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
8855 (asan_finish_file): Test it here instead.
8857 2013-01-07 Nick Clifton <nickc@redhat.com>
8858 Matthias Klose <doko@debian.org>
8859 Doug Kwan <dougkwan@google.com>
8860 H.J. Lu <hongjiu.lu@intel.com>
8863 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
8865 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
8867 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
8869 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
8871 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
8873 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8876 * doc/install.texi (Cross-Compiler-Specific Options): Document
8879 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
8881 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
8882 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
8883 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
8884 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
8885 vqmovun_high_s64): Fix source operand number and update copyright.
8887 2013-01-07 Richard Biener <rguenther@suse.de>
8890 * gimple.h (gimple_call_builtin_p): New overload.
8891 * gimple.c (validate_call): New function.
8892 (gimple_call_builtin_p): Likewise.
8893 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8894 Use gimple_call_builtin_p.
8895 (find_func_clobbers): Likewise.
8896 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
8897 (strlen_optimize_stmt): Likewise.
8899 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8901 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
8902 (vld1q_dup_*): Likewise.
8904 (vld1q_*): Likewise.
8905 (vld1_lane_*): Likewise.
8906 (vld1q_lane_*): Likewise.
8908 2013-01-07 Richard Biener <rguenther@suse.de>
8910 * lto-streamer.h (LTO_minor_version): Bump to 2.
8912 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8914 * config/aarch64/aarch64-protos.h
8915 (aarch64_const_double_zero_rtx_p): Rename to...
8916 (aarch64_float_const_zero_rtx_p): ...this.
8917 (aarch64_float_const_representable_p): New.
8918 (aarch64_output_simd_mov_immediate): Likewise.
8919 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
8920 move immediate case.
8921 * config/aarch64/aarch64.c
8922 (aarch64_const_double_zero_rtx_p): Rename to...
8923 (aarch64_float_const_zero_rtx_p): ...this.
8924 (aarch64_print_operand): Allow printing of new constants.
8925 (aarch64_valid_floating_const): New.
8926 (aarch64_legitimate_constant_p): Check for valid floating-point
8928 (aarch64_simd_valid_immediate): Likewise.
8929 (aarch64_vect_float_const_representable_p): New.
8930 (aarch64_float_const_representable_p): Likewise.
8931 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
8932 (aarch64_output_simd_mov_immediate): New.
8933 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
8934 (*movdf_aarch64): Likewise.
8935 * config/aarch64/constraints.md (Ufc): New.
8936 (Y): call aarch64_float_const_zero_rtx.
8937 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
8939 2013-01-07 Richard Biener <rguenther@suse.de>
8941 PR tree-optimization/55888
8942 PR tree-optimization/55862
8943 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
8944 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
8945 not if it is contained therein.
8947 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8949 * config/avr/t-avr: Typo.
8951 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8954 * config/avr/t-avr: Don't automatically rebuild
8955 $(srcdir)/config/avr/t-multilib
8956 $(srcdir)/config/avr/avr-tables.opt
8957 $(srcdir)/doc/avr-mmcu.texi
8958 (avr-mcus): New phony target to build them on request.
8959 (s-avr-mlib, s-avr-mmcu-texi): Remove.
8960 * avr/avr-mcus.def: Adjust comments.
8962 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
8964 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
8966 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8968 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
8970 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8972 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
8974 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
8976 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
8977 to generate profiling.
8978 * config/rs6000/aix64.h (LIB_SPEC): Same.
8980 2013-01-04 Andrew Pinski <apinski@cavium.com>
8982 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
8984 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8986 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
8988 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
8990 (ix86_expand_move): Ditto.
8991 (ix86_zero_extend_to_Pmode): Ditto.
8992 (ix86_expand_call): Ditto.
8993 (ix86_expand_special_args_builtin): Ditto.
8994 (ix86_expand_builtin): Ditto.
8996 2013-01-04 Richard Biener <rguenther@suse.de>
8998 PR tree-optimization/55862
8999 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
9000 translating them through PHI nodes.
9002 2013-01-04 Martin Jambor <mjambor@suse.cz>
9004 PR tree-optimization/55755
9005 * tree-sra.c (sra_modify_assign): Do not check that an access has no
9006 children when trying to avoid producing a VIEW_CONVERT_EXPR.
9008 2013-01-04 Marek Polacek <polacek@redhat.com>
9011 * opts.c (default_options_optimization): Clarify error message.
9013 2013-01-04 Richard Biener <rguenther@suse.de>
9016 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
9019 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9022 * config/pa/pa.md (movsi): Revert previous change.
9023 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
9026 2013-01-03 Richard Henderson <rth@redhat.com>
9028 * config/i386/i386.c (ix86_expand_move): Always assign to op1
9029 after eliminating TLS symbols.
9031 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
9034 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
9035 * graphite-poly.c (debug_gmp_value): Likewise.
9037 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
9040 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
9041 selected code model, define __code_mode_small__, __code_model_medium__,
9042 __code_model_large__, __code_model_32__ or __code_model_kernel__.
9043 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
9044 xchg temporary register with %k. Declare temporary register as
9046 [__x86_64__]: For medium and large code models, preserve %rbx register.
9048 2013-01-03 Richard Biener <rguenther@suse.de>
9050 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
9051 (dump_subscript): Adjust.
9052 (finalize_ddr_dependent): Do not dump redundant info.
9053 (analyze_siv_subscript): Adjust.
9054 (subscript_dependence_tester): Likewise.
9055 (compute_affine_dependence): Likewise.
9057 2013-01-03 Richard Biener <rguenther@suse.de>
9060 2013-01-03 Richard Biener <rguenther@suse.de>
9062 PR tree-optimization/55857
9063 * tree-vect-stmts.c (vectorizable_load): Do not setup
9064 re-alignment for invariant loads.
9066 2013-01-02 Richard Biener <rguenther@suse.de>
9068 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9069 invariant load do not generate a vector load from the scalar location.
9071 2013-01-03 Richard Biener <rguenther@suse.de>
9073 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
9074 for not vectorizing.
9075 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9076 not build INDIRECT_REFs, call get_name once only.
9077 (vect_create_data_ref_ptr): Likewise. Dump base object kind
9078 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
9080 2013-01-03 Richard Biener <rguenther@suse.de>
9082 PR tree-optimization/55857
9083 * tree-vect-stmts.c (vectorizable_load): Do not setup
9084 re-alignment for invariant loads.
9086 2013-01-03 Richard Biener <rguenther@suse.de>
9089 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
9090 prefer a built-in decl.
9092 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9094 * gcc.c (process_command): Update copyright notice dates.
9095 * gcov.c (print_version): Likewise.
9096 * gcov-dump.c (print_version): Likewise.
9098 PR rtl-optimization/55838
9099 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
9100 iv0.step, iv1.step and step.
9102 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9103 Marc Glisse <marc.glisse@inria.fr>
9105 PR tree-optimization/55832
9106 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
9107 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
9108 integer_{one,zero}_node.
9110 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9113 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
9114 * var-tracking.c (reverse_op): Don't add reverse ops to
9115 VALUEs that have already
9116 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
9118 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
9120 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
9122 2013-01-02 Teresa Johnson <tejohnson@google.com>
9124 * dumpfile.c (dump_loc): Print filename with location.
9125 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
9126 new location_t parameter to emit complete unroll message with
9128 (canonicalize_loop_induction_variables): Compute loops location
9129 and pass to try_unroll_loop_completely.
9130 * loop-unroll.c (report_unroll_peel): New function.
9131 (peel_loops_completely): Use new dump format with location
9132 for main dumpfile message, and invoke report_unroll_peel on success.
9133 (decide_unrolling_and_peeling): Ditto.
9134 (decide_peel_once_rolling): Remove old dumpfile message subsumed
9135 by report_unroll_peel.
9136 (decide_peel_completely): Ditto.
9137 (decide_unroll_constant_iterations): Ditto.
9138 (decide_unroll_runtime_iterations): Ditto.
9139 (decide_peel_simple): Ditto.
9140 (decide_unroll_stupid): Ditto.
9141 * cfgloop.c (get_loop_location): New function.
9142 * cfgloop.h (get_loop_location): Declare.
9144 2013-01-02 Sriraman Tallam <tmsriram@google.com>
9146 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
9149 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9152 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
9153 BLKmode objects when EXPAND_MEMORY is specified.
9155 2013-01-02 Sriraman Tallam <tmsriram@google.com>
9157 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
9159 (fold_builtin_cpu): Do not share cpu model decls across statements.
9161 2013-01-02 Jason Merrill <jason@redhat.com>
9164 * tree.c (build_array_type_1): Revert earlier change.
9166 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
9168 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
9170 * config/aarch64/aarch64-tune.md: Re-generate.
9172 2013-01-02 Richard Biener <rguenther@suse.de>
9174 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9175 invariant load do not generate a vector load from the scalar location.
9177 2013-01-02 Richard Biener <rguenther@suse.de>
9180 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
9181 * configure: Regenerate.
9183 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9185 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
9186 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
9187 (expand_builtin_int_roundingfn_2): Keep the original target around
9188 for the fallback case.
9190 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9192 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
9193 to be clear for sign changes.
9195 2013-01-01 Jan Hubicka <jh@suse.cz>
9197 * ipa-inline-analysis.c: Fix formatting.
9199 2013-01-01 Jakub Jelinek <jakub@redhat.com>
9201 PR tree-optimization/55831
9202 * tree-vect-loop.c (get_initial_def_for_induction): Use
9203 gsi_after_labels instead of gsi_start_bb.
9205 Copyright (C) 2013 Free Software Foundation, Inc.
9207 Copying and distribution of this file, with or without modification,
9208 are permitted in any medium without royalty provided the copyright
9209 notice and this notice are preserved.