1 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
3 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4 (TARGET_ASAN_SHADOW_OFFSET): Define.
5 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
6 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
8 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
11 (incr_vec_index): Return -1 if increment not found.
12 (create_add_on_incoming_edge): Assert if increment not found.
13 (record_increment): Limit number of increments recorded.
14 (all_phi_incrs_profitable): Return false if an increment not found.
15 (replace_profitable_candidates): Don't process increments that were
17 (analyze_candidates_and_replace): Limit size of incr_vec.
19 2013-05-07 Richard Biener <rguenther@suse.de>
21 * calls.c (special_function_p): setjmp-like functions are leaf.
22 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
23 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
25 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
27 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
28 (aarch64_simd_mov<mode>): New expander.
29 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
30 (aarch64_simd_mov_to_<mode>high): Likewise.
31 (aarch64_simd_mov_from_<mode>low): Likewise.
32 (aarch64_simd_mov_from_<mode>high): Likewise.
33 (aarch64_dup_lane<mode>): Update.
34 (aarch64_dup_lanedi): New instruction pattern.
35 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
36 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
38 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
41 (replace_mult_candidate): Remove unnecessary argument; remove
42 unnecessary parameter from call to introduce_cast_before_cand.
43 (replace_unconditional_candidate): Remove unnecessary parameter
44 from call to replace_mult_candidate.
45 (replace_conditional_candidate): Likewise.
46 (insert_initializers): Use make_temp_ssa_name.
47 (introduce_cast_before_cand): Remove unnecessary argument; use
49 (replace_one_candidate): Remove unnecessary argument; remove
50 unnecessary parameter from calls to introduce_cast_before_cand.
51 (replace_profitable_candidates): Remove unnecessary parameters
52 from calls to replace_one_candidate.
54 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
56 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
57 phi def as possibly hiding a basis for a CAND_ADD whose operands
58 have been commuted in the analysis.
59 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
61 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
63 * config/aarch64/aarch64.md
64 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
65 shift value between 0-4.
67 2013-05-07 Richard Biener <rguenther@suse.de>
69 * double-int.h (rshift): New overload.
70 * double-int.c (rshift): New function.
71 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
72 (create_reference_ops_from_ref): Remove.
73 (vn_reference_insert): Use shared ops for constructing the
74 reference and copy it.
76 2013-05-07 Richard Biener <rguenther@suse.de>
79 * tree-eh.c (sink_clobbers): Properly propagate
80 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
82 2013-05-07 Jakub Jelinek <jakub@redhat.com>
84 PR tree-optimization/57149
85 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
86 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
87 collect_phi_def_edges, execute_late_warn_uninitialized): Use
88 uninit_undefined_value_p instead of ssa_undefined_value_p.
91 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
92 for modifier == EXPAND_INITIALIZER.
94 2013-05-07 Anton Blanchard <anton@samba.org>
96 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
97 for powerpc64 little endian.
98 * configure: Regenerate.
100 2013-05-06 Graham Stott <grahams@btinternet.com>
102 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
103 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
104 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
105 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
107 2013-05-06 Graham Stott <grahams@btinternet.com>
109 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
110 codes which allow non-lvalues.
112 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
114 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
115 components are all 1s.
116 (integer_minus_onep): New function.
117 * tree.h (integer_minus_onep): Declare it.
118 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
119 integer_minus_onep instead of integer_all_onesp.
121 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
124 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
125 variations of these patterns.
127 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
129 * config/i386/i386.md (isa): Add x64_sse4 member.
130 (enabled): Handle x64_sse4.
131 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
132 instruction for 64bit SSE4_1 targets. Update insn attributes.
133 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
134 instruction for SSE4_1 targets. Update insn attributes.
135 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
136 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
137 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
139 (*vec_extractv4si): Rename from *sse4_1_pextrd.
140 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
141 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
143 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
146 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
148 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
150 * final.c (do_assembler_dialects): Don't handle curly braces and
151 vertical bar escaped by % as dialect delimiters.
152 (output_asm_insn): Print curly braces and vertical bar if escaped
153 by % and ASSEMBLER_DIALECT defined.
154 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
155 * doc/tm.texi: Regenerated.
157 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
159 * config/mips/mips.c: Include tree-pass.h.
160 (mips_reorg): Split in pre- and post-dbr_schedule parts.
161 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
162 (pass_mips_machine_reorg2): New machine specific pass.
163 (insert_pass_mips_machine_reorg2): New pass plugin definition.
164 (mips_option_override): Register the new pass.
165 * rtl.h (cleanup_barriers): Remove prototype.
166 (dbr_schedule): Likewise.
167 * jump.c (cleanup_barriers): Make static.
168 * reorg.c (dbr_schedule): Likewise.
170 2013-05-06 Richard Biener <rguenther@suse.de>
172 PR tree-optimization/57185
173 * tree-parloops.c (add_field_for_reduction): Handle anonymous
176 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
179 * config/i386/i386.c (add_parameter_dependencies): Add dependence
180 between "first_arg" and "insn", not "last" and "insn".
182 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
184 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
185 (find_candidates_in_block): Re-enable slsr_process_phi.
186 (create_phi_basis): Fix double counting of candidate adjustment.
188 2013-05-06 Richard Biener <rguenther@suse.de>
191 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
192 the edge is also fallthru, preserve it and just clear the
194 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
195 also complex, preserve that and just clear the fallthru flag.
196 * tree-inline.c (update_ssa_across_abnormal_edges): Also
197 update virtual operands.
199 2013-05-06 Alan Modra <amodra@gmail.com>
201 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
202 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
203 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
204 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
205 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
206 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
208 2013-05-06 Alan Modra <amodra@gmail.com>
210 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
211 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
212 (DEFAULT_ASM_ENDIAN): Define.
213 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
214 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
215 Update -K PIC clause from sysv4.h.
216 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
217 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
219 2013-05-06 Alan Modra <amodra@gmail.com>
221 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
222 twice for little-endian.
223 (ashrdi3_no_power, ashrdi3): Support little-endian.
225 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
228 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
229 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
231 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
232 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
233 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
236 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
237 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
239 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
240 * config/pa/pa.opt: Make mbig-switch a no-op.
241 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
242 (CASE_VECTOR_MODE): Always return SImode.
243 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
244 for the !TARGET_BIG_SWITCH case.
245 * config/pa/pa-linux.h: Likewise.
246 * config/pa/pa-openbsd.h: Likewise.
247 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
248 * config/pa/pa.md (short_jump): Remove define_insn.
249 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
250 (casesi0): Remove define_insn.
251 (type): Remove btable_branch.
252 (pa_combine_type): Likewise.
253 (in_nullified_branch_delay): Likewise.
254 (in_call_delay): Likewise.
255 (define_delay): Likewise.
256 (define_insn_reservation "Z3"): Likewise.
257 (define_insn_reservation "Z4"): Likewise.
258 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
259 (pa_adjust_insn_length): Remove adjustment for btable branches.
260 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
263 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
265 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
266 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
267 Add m->r,x alternatives.
268 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
269 splitters using SWI48x mode iterator.
270 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
271 TARGET_64BIT. Add m->x alternative.
272 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
273 Add o->x alternative. Enable for TARGET_SSE.
274 (sse_storeq): Remove expander.
275 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
276 with memory input operand.
277 (*vec_extractv2di_1 splitter): New.
278 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
279 * config/i386/i386.md (ssevecmodelower): New mode attribute.
281 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
283 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
284 (INT_LOWPART): Delete.
285 (extract_MB): Adjust.
286 (extract_ME): Adjust.
287 (print_operand): Adjust.
289 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
291 * config/rs6000/predicates.md (reg_or_add_cint_operand,
292 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
293 (reg_or_logical_cint_operand, easy_fp_constant,
294 logical_const_operand): Delete "CONST_DOUBLE" case.
295 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
296 "HOST_BITS_PER_WIDE_INT == 64" test.
297 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
298 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
299 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
300 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
302 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
303 CONST_DOUBLE DImode/VOIDmode case.
304 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
305 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
306 CONST_DOUBLE VOIDmode case.
307 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
308 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
309 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
310 Delete CONST_DOUBLE case.
311 (splitters for mov FMOVE64 const_double): Delete
312 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
313 "HOST_BITS_PER_WIDE_INT >= 64" test.
314 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
316 (mov DI const_double): Delete.
318 2013-05-04 Jakub Jelinek <jakub@redhat.com>
320 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
321 on op shows all bits zero in mode of a lowpart subreg, return zero.
323 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
326 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
327 to save TFmode registers and DImode to save TImode registers for
328 caller save operations.
329 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
330 mark being partially clobbered since they only use the first
333 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
334 and TDmode only use the upper 64-bits of each VSX register.
336 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
338 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
339 (find_candidates_in_block): Disable slsr_process_phi.
341 2013-05-03 Guozhi Wei <carrot@google.com>
343 * coverage.c (coverage_obj_init): Move the construction of gcov
345 (build_init_ctor): ... here.
347 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
349 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
350 (slsr_cand_d): Redefine def_phi.
351 (stride_status, phi_adjust_status, count_phis_status): New enums.
353 (find_basis_for_base_expr): New.
354 (find_basis_for_candidate): Handle hidden bases.
355 (alloc_cand_and_find_basis): Handle phi candidates.
356 (slsr_process_phi): New.
357 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
358 (create_mul_imm_cand): Likewise.
359 (create_add_ssa_cand): Exclude phi base candidates.
360 (create_add_imm_cand): Likewise.
361 (slsr_process_cast): Likewise.
362 (slsr_process_copy): Likewise.
363 (find_candidates_in_block): Handle phi candidates.
364 (dump_candidate): Likewise.
365 (unconditional_cands): Delete.
366 (unconditional_cands_with_known_stride_p): Delete.
367 (phi_dependent_cand_p): New.
368 (cand_increment): Handle phi-dependent candidates.
369 (replace_dependent): Delete.
370 (replace_mult_candidate): New.
371 (replace_unconditional_candidate): New.
372 (incr_vec_index): Move to avoid forward reference.
373 (create_add_on_incoming_edge): New.
374 (create_phi_basis): New.
375 (replace_dependents): Delete.
376 (replace_conditional_candidate): New.
377 (phi_add_costs): New.
378 (replace_uncond_cands_and_profitable_phis): New.
379 (record_increment): Handle phi adjustments.
380 (record_phi_increments): New.
381 (record_increments): Handle phi adjustments.
382 (phi_incr_cost): New.
383 (lowest_cost_path): Handle phis.
384 (total_savings): Likewise.
385 (analyze_increments): Likewise.
387 (ncd_of_cand_and_phis): New.
388 (nearest_common_dominator_for_cands): Handle phi increments.
389 (all_phi_incrs_profitable): New.
390 (replace_profitable_candidates): Handle phi-dependent candidates.
391 (analyze_candidates_and_replace): Likewise.
393 2013-05-03 Teresa Johnson <tejohnson@google.com>
396 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
397 do not exceed REG_BR_PROB_BASE.
399 2013-05-03 Jeff Law <law@redhat.com>
401 PR tree-optimization/57144
402 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
403 operand of the condition will bit into the new type when eliminating
404 a cast feeding a condition.
406 2013-05-03 Jakub Jelinek <jakub@redhat.com>
408 PR rtl-optimization/57130
409 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
410 of COMPARE as in_code to the recursive call if needed.
412 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
414 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
415 (enabled): Handle new members.
416 * config/i386/sse.md (*vec_concatv2si): Merge from
417 *vec_concatv2si_sse2 and vec_concatv2si_sse.
418 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
420 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
422 PR tree-optimization/57027
423 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
424 for fnms opportunity, check we got the prerequisite kind
425 of tree / gimple before using accessor functions.
427 2013-05-03 Richard Biener <rguenther@suse.de>
429 * double-int.h (lshift): New overload without precision
431 (operator *=, operator +=, operator -=): Move ...
432 * double-int.c (operator *=, operator +=, operator -=): ... here
433 and implement more efficiently.
434 (mul_double_with_sign): Remove.
435 (lshift_double): Adjust to take unsinged shift argument, push
436 dispatching code to callers.
437 (mul_double_wide_with_sign): Add early out for callers that
438 are not interested in high parts or overflow.
439 (lshift): New function.
440 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
442 (lrotate, rrotate): Use logical shifts.
443 * expr.c (get_inner_reference): Use lshift.
444 * fixed-value.c (do_fixed_divide): Likewise.
445 * tree-dfa.c (get_ref_base_and_extent): Likewise.
446 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
447 (indirect_refs_may_alias_p): Likewise.
448 (stmt_kills_ref_p_1): Likewise.
450 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
452 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
454 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
456 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
457 scalar form of FABD instruction.
459 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
461 * lra-constraints.c (process_alt_operands): Add checking alt
462 number to choose the best alternative.
464 2013-05-02 Richard Biener <rguenther@suse.de>
466 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
467 bitmap and its handling.
468 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
470 2013-05-02 Richard Biener <rguenther@suse.de>
473 * tree-inline.c (copy_loops): Properly handle removed loops.
474 (copy_cfg_body): Mark destination loops for fixup if source
477 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
480 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
481 generating simple_return for naked functions.
483 2013-05-02 Martin Jambor <mjambor@suse.cz>
486 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
487 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
489 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
490 ipa_agg_replacement_value structures.
491 (known_aggs_to_agg_replacement_list): Likewise.
492 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
493 (read_agg_replacement_chain): Likewise.
494 (ipcp_transform_function): Also check that by_ref flags match.
496 2013-05-02 Richard Biener <rguenther@suse.de>
498 * graphds.h (struct graph): Add obstack member.
499 * graphds.c (new_graph): Initialize obstack and allocate
501 (add_edge): Allocate edge from the obstack.
502 (free_graph): Free the obstack instead of all edges and vertices.
504 2013-05-02 Teresa Johnson <tejohnson@google.com>
506 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
508 * cfg.c (update_bb_profile_for_threading): Ditto.
509 * tree-inline.c (copy_bb): Ditto.
510 (copy_edges_for_bb): Ditto.
511 (initialize_cfun): Ditto.
512 (copy_cfg_body): Ditto.
513 (expand_call_inline): Ditto.
514 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
515 (estimate_node_size_and_time): Ditto.
516 (inline_merge_summary): Ditto.
517 * cgraphclones.c (cgraph_clone_edge): Ditto.
518 (cgraph_clone_node): Ditto.
519 * sched-rgn.c (compute_dom_prob_ps): Ditto.
520 (compute_trg_info): Ditto.
522 2013-05-02 Ian Bolton <ian.bolton@arm.com>
524 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
525 S reg when fp attribute set.
526 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
528 2013-05-02 Ian Bolton <ian.bolton@arm.com>
530 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
532 (*and_one_cmplsi3_compare0_uxtw): Likewise.
533 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
534 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
536 2013-05-02 Richard Biener <rguenther@suse.de>
538 * tree-scalar-evolution.c (scev_info_hasher): Remove.
539 (struct instantiate_cache_entry): New type.
540 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
541 (struct instantiate_cache_type): New type.
542 (set_instantiated_value, get_instantiated_value): Remove.
543 (get_instantiated_value_entry): New function.
544 (instantiate_scev_name): Use the new cache and adjust.
545 (instantiate_scev_poly): Adjust.
546 (instantiate_scev_binary): Likewise.
547 (instantiate_array_ref): Likewise.
548 (instantiate_scev_convert): Likewise.
549 (instantiate_scev_not): Likewise.
550 (instantiate_scev_3): Likewise.
551 (instantiate_scev_2): Likewise.
552 (instantiate_scev_r): Likewise.
553 (instantiate_scev): Likewise.
554 (resolve_mixers): Likewise.
556 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
559 * lra-constraints.c (best_small_class_operands_num): Remove.
560 (process_alt_operands): Remove small_class_operands_num. Take
561 small classes operands into losers and only if the operand is not
562 matched. Modify debugging output.
563 (curr_insn_transform): Remove best_small_class_operands_num.
566 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
568 * config/aarch64/aarch64-builtins.c
569 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
570 * config/aarch64/aarch64-simd-builtins.def
571 (reduc_splus_): Add new modes.
573 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
574 (reduc_uplus_v4sf): Likewise.
575 (reduc_splus_v4sf): Likewise.
576 (aarch64_addv<mode>): Likewise.
577 (reduc_uplus_<mode>): Likewise.
578 (reduc_splus_<mode>): Likewise.
579 (aarch64_addvv2di): Likewise.
580 (reduc_uplus_v2di): Likewise.
581 (reduc_splus_v2di): Likewise.
582 (aarch64_addvv2si): Likewise.
583 (reduc_uplus_v2si): Likewise.
584 (reduc_splus_v2si): Likewise.
585 (reduc_<sur>plus_<mode>): New.
586 (reduc_<sur>plus_v2di): Likewise.
587 (reduc_<sur>plus_v2si): Likewise.
588 (reduc_<sur>plus_v4sf): Likewise.
589 (aarch64_addpv4sf): Likewise.
590 * config/aarch64/arm_neon.h
591 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
592 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
593 add UNSPEC_SADDV, UNSPEC_UADDV.
595 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
597 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
599 * config/aarch64/arm_neon.h
600 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
602 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
604 * config/aarch64/aarch64-builtins
605 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
607 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
609 * config/aarch64/aarch64-simd-builtins.def
611 (reduc_smin_): Likewise.
612 (reduc_umax_): Likewise.
613 (reduc_umin_): Likewise.
614 (reduc_smax_nan_): Likewise.
615 (reduc_smin_nan_): Likewise.
618 (smax): Update for V2SF, V4SF and V2DF modes.
621 (smin_nan): Likewise.
622 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
623 (<su><maxmin><mode>3): ...This, refactor.
624 (s<maxmin><mode>3): New.
625 (<maxmin_uns><mode>3): Likewise.
626 (reduc_<maxmin_uns>_<mode>): Refactor.
627 (reduc_<maxmin_uns>_v4sf): Likewise.
628 (reduc_<maxmin_uns>_v2si): Likewise.
629 (aarch64_<fmaxmin><mode>: Remove.
630 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
632 (vmin<q>_f<32,64>): Likewise.
633 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
635 (su): Add mappings for smax, smin, umax, umin.
637 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
638 (FMAXMIN): Rename as...
639 (FMAXMIN_UNS): ...This.
641 (fmaxminv): Likewise.
644 (maxmin_uns_op): Likewise.
646 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
648 * config/aarch64/arm_neon.h
649 (vac<ge, gt><sd>_f<32, 64>): Rename to...
650 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
651 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
653 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
655 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
656 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
658 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
660 * config/aarch64/aarch64-simd.md
661 (vcond<mode>_internal): Handle special cases for constant masks.
662 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
663 (vcondu<mode><mode>): Likewise.
664 (vcond<v_cmp_result><mode>): New.
666 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
668 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
669 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
670 * config/aarch64/aarch64-simd-builtins.def
671 (cmeq): Update to BUILTIN_VALLDI.
676 * config/aarch64/arm_neon.h
677 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
678 to builtins or C as appropriate.
680 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
682 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
686 * config/aarch64/aarch64-simd.md
688 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
689 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
690 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
691 (cstore<mode>_neg): ...This.
692 * config/aarch64/iterators.md
694 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
696 (UCOMPARISONS): Likewise.
697 (optab): Add missing comparisons.
705 (V_cmp_result): Add DF, SF modes.
706 (v_cmp_result): Likewise.
709 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
711 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
713 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
714 define_insn to define_insn_and_split.
715 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
716 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
717 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
718 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
719 (thumb2_negscc): Likewise.
721 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
723 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
725 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
727 * config/arm/thumb2.md: Remove trailing whitespaces.
729 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
731 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
732 Use gen_int_mode rather than GEN_INT.
734 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
736 * value-prof.c (stream_in_histogram_value): Remove the strayed
739 2013-04-30 Richard Biener <rguenther@suse.de>
742 * cfghooks.c (split_edge): Properly check for the loop latch edge.
744 2013-04-30 Richard Biener <rguenther@suse.de>
747 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
749 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
751 PR rtl-optimization/56957
752 PR rtl-optimization/57105
753 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
754 variable. Use just INSN_UID for determining whether an insn
755 should be only disconnected from the insn stream.
756 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
758 2013-04-30 Jakub Jelinek <jakub@redhat.com>
760 PR tree-optimization/57104
761 * tsan.c (instrument_expr): Don't instrument accesses to
762 DECL_HARD_REGISTER VAR_DECLs.
764 2013-04-30 Richard Biener <rguenther@suse.de>
766 * function.h (loops_for_fn): New inline function.
767 (set_loops_for_fn): Likewise.
768 * cfgloop.h (place_new_loop): Add struct function parameter.
769 (get_loop): Likewise.
770 (get_loops): Likewise.
771 (number_of_loops): Likewise.
773 (fel_init): Likewise.
774 * cfg.c (get_loop_copy): Adjust.
775 * cfgloop.c (flow_loops_dump): Likewise.
776 (record_loop_exits): Likewise.
777 (verify_loop_structure): Likewise.
778 * cfgloopanal.c (mark_irreducible_loops): Likewise.
779 (estimate_reg_pressure_cost): Likewise.
780 (mark_loop_exit_edges): Likewise.
781 * cfgloopmanip.c (place_new_loop): Likewise.
782 (add_loop): Likewise.
783 (duplicate_loop): Likewise.
784 * graph.c (draw_cfg_nodes): Likewise.
785 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
786 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
787 (extract_affine_chrec): Likewise.
788 (build_scop_iteration_domain): Likewise.
789 * graphite.c (graphite_initialize): Likewise.
790 * ira-build.c (create_loop_tree_nodes): Likewise.
791 (more_one_region_p): Likewise.
792 (rebuild_regno_allocno_maps): Likewise.
793 (mark_loops_for_removal): Likewise.
794 (mark_all_loops_for_removal): Likewise.
795 (remove_unnecessary_regions): Likewise.
796 (ira_build): Likewise.
797 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
798 * loop-init.c (fix_loop_structure): Likewise.
799 (gate_rtl_move_loop_invariants): Likewise.
800 (gate_rtl_unswitch): Likewise.
801 (gate_rtl_unroll_and_peel_loops): Likewise.
802 (rtl_doloop): Likewise.
803 * lto-streamer-in.c (input_cfg): Likewise.
804 * lto-streamer-out.c (output_cfg): Likewise.
805 * modulo-sched.c (sms_schedule): Likewise.
806 * predict.c (tree_estimate_probability): Likewise.
807 (tree_estimate_probability_driver): Likewise.
808 (estimate_loops): Likewise.
809 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
810 (move_sese_region_to_fn): Likewise.
811 (debug_loop_num): Likewise.
812 * tree-chrec.c (chrec_evaluate): Likewise.
813 (hide_evolution_in_other_loops_than_loop): Likewise.
814 (chrec_component_in_loop_num): Likewise.
815 (reset_evolution_in_loop): Likewise.
816 (evolution_function_is_invariant_rec_p): Likewise.
817 * tree-if-conv.c (main_tree_if_conversion): Likewise.
818 * tree-inline.c (copy_loops): Likewise.
819 (copy_cfg_body): Likewise.
820 (tree_function_versioning): Likewise.
821 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
822 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
824 (add_to_evolution_1): Likewise.
825 (scev_const_prop): Likewise.
826 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
827 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
828 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
829 (tree_ssa_lim_initialize): Likewise.
830 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
831 (verify_loop_closed_ssa): Likewise.
832 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
833 (tree_ssa_loop_im): Likewise.
834 (tree_ssa_loop_unswitch): Likewise.
835 (tree_vectorize): Likewise.
836 (check_data_deps): Likewise.
837 (tree_ssa_loop_ivcanon): Likewise.
838 (tree_ssa_loop_bounds): Likewise.
839 (tree_complete_unroll): Likewise.
840 (tree_complete_unroll_inner): Likewise.
841 (tree_parallelize_loops): Likewise.
842 (tree_ssa_loop_prefetch): Likewise.
843 (tree_ssa_loop_ivopts): Likewise.
844 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
845 * tree-vectorizer.c (vectorize_loops): Likewise.
847 2013-04-29 Mike Frysinger <vapier@gentoo.org>
849 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
850 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
851 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
854 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
857 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
860 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
863 * lra-constraints.c (process_alt_operands): Discourage a bit more
864 using memory for pseudos. Print cost dump for alternatives.
865 Modify cost values for conflicts with early clobbers.
866 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
868 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
871 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
873 2013-04-29 Ian Bolton <ian.bolton@arm.com>
875 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
877 (movdi_aarch64): Support LDR/STR from/to D register.
879 2013-04-29 Ian Bolton <ian.bolton@arm.com>
881 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
882 or higher by default.
884 2013-04-29 Richard Biener <rguenther@suse.de>
887 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
888 even if not adding abnormal edges for calls that can make
891 2013-04-29 Richard Biener <rguenther@suse.de>
894 * tree-cfg.c (move_stmt_op): Fix condition under which to update
896 (move_stmt_r): Remove redundant checking.
898 2013-04-29 Teresa Johnson <tejohnson@google.com>
901 * basic-block.h (apply_scale): New function.
902 (apply_probability): Use apply_scale.
903 * gimple-streamer-in.c (input_bb): Ditto.
904 * lto-streamer-in.c (input_cfg): Ditto.
905 * lto-cgraph.c (merge_profile_summaries): Ditto.
906 * tree-optimize.c (execute_fixup_cfg): Ditto.
907 * tree-inline.c (copy_bb): Update comment to use apply_scale.
908 (copy_edges_for_bb): Ditto.
909 (copy_cfg_body): Ditto.
911 2013-04-29 Tom de Vries <tom@codesourcery.com>
913 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
914 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
915 (tail_merge_optimize): Handle current_loops == NULL.
917 2013-04-26 Jeff Law <law@redhat.com>
919 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
920 (simplify_cond_using_ranges): Generalize code to simplify
921 COND_EXPRs where one argument is a constant and the other
922 is an SSA_NAME created by an integral type conversion.
924 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
926 * config/arm/arm.md (store_minmaxsi): Use only when
927 optimize_insn_for_size_p.
929 2013-04-29 Christian Bruel <christian.bruel@st.com>
932 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
934 2013-04-29 Richard Biener <rguenther@suse.de>
937 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
938 loop tree make sure to schedule a fixup for the child as well.
939 (expand_omp_for_generic): Properly add loops.
940 (expand_omp_for_static_nochunk): Likewise.
941 (expand_omp_for_static_chunk): Likewise.
942 (expand_omp_for): For the degenerate case fixup loops.
943 (expand_omp_sections): Fix default bb placement in loops.
944 (expand_omp_atomic_pipeline): Properly add loops.
946 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
948 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
950 2013-04-29 Tom de Vries <tom@codesourcery.com>
952 * tree-ssa-tail-merge.c: Update header comment.
954 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
956 * config/aarch64/arm_neon.h
957 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
958 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
959 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
960 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
961 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
962 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
963 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
964 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
966 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
968 * config/aarch64/aarch64-simd.md
969 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
970 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
971 fix_trunc, fixuns_trunc.
972 (ftrunc<VDQF:mode>2): New.
973 * config/aarch64/iterators.md (optab): Add fix, fixuns.
974 (fix_trunc_optab): New.
976 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
978 * config/aarch64/aarch64-builtins.c
979 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
980 iceilf, lround, iroundf.
982 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
985 * config/i386/i386.h (enum ix86_tune_indices)
986 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
987 New, split from X86_TUNE_INTER_UNIT_MOVES.
988 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
989 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
990 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
991 (TARGET_INTER_UNIT_MOVES): Remove.
992 * config/i386/i386.c (initial_ix86_tune_features): Update.
993 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
994 (ix86_expand_convert_uns_didf_sse): Use
995 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
996 (ix86_expand_vector_init_one_nonzero): Ditto.
997 (ix86_expand_vector_init_interleave): Ditto.
998 (inline_secondary_memory_needed): Return true for moves from SSE class
999 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
1000 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1001 * config/i386/constraints.md (Yi, Ym): Depend on
1002 TARGET_INTER_UNIT_MOVES_TO_VEC.
1003 (Yj, Yn): New constraints.
1004 * config/i386/i386.md (*movdi_internal): Change constraints of
1005 operand 1 from Yi to Yj and from Ym to Yn.
1006 (*movsi_internal): Ditto.
1007 (*movdf_internal): Ditto.
1008 (*movsf_internal): Ditto.
1009 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
1010 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1011 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
1012 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
1013 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
1014 * config/i386/sse.md (movdi_to_sse): Ditto.
1015 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
1016 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
1017 TARGET_INTER_UNIT_MOVES.
1018 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
1019 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
1020 instead of TARGET_INTER_UNIT_MOVES.
1021 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
1022 operand 1 from Yi to Yj and from Ym to Yn.
1024 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1026 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
1027 (float_truncate_hi_): Likewise.
1028 (float_extend_lo_): Likewise.
1029 (float_truncate_lo_): Likewise.
1030 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
1031 (aarch64_float_extend_lo_v2df): Likewise.
1032 (vec_unpacks_hi_v4sf): Likewise.
1033 (aarch64_float_truncate_lo_v2sf): Likewise.
1034 (aarch64_float_truncate_hi_v4sf): Likewise.
1035 (vec_pack_trunc_v2df): Likewise.
1036 (vec_pack_trunc_df): Likewise.
1038 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1040 * config/aarch64/aarch64-builtins.c
1041 (aarch64_fold_builtin): Fold float conversions.
1042 * config/aarch64/aarch64-simd-builtins.def
1043 (floatv2si, floatv4si, floatv2di): New.
1044 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
1045 * config/aarch64/aarch64-simd.md
1046 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
1047 * config/aarch64/iterators.md (FLOATUORS): New.
1048 (optab): Add float, floatuns.
1049 (su_optab): Likewise.
1051 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1053 * config/aarch64/aarch64-builtins.c
1054 (aarch64_builtin_vectorized_function): Use new names for
1056 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
1057 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
1058 (fcvtzu): Split as...
1059 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
1060 (fcvtas): Split as...
1061 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
1062 (fcvtau): Split as...
1063 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
1064 (fcvtps): Split as...
1065 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
1066 (fcvtpu): Split as...
1067 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
1068 (fcvtms): Split as...
1069 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
1070 (fcvtmu): Split as...
1071 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
1072 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
1073 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
1074 (lfrintnusf, lfrintnudf): Likewise.
1075 * config/aarch64/aarch64-simd.md
1076 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
1078 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
1079 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
1080 (fcvt_pattern): Likewise.
1082 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1084 * config/aarch64/aarch64-simd.md
1085 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
1086 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
1088 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1090 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
1091 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
1092 (vrnd<a,m,n,p>_f32): Implement using builtins.
1093 (vrnd<i,x><q>_f<32, 64>): New.
1095 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1097 * config/aarch64/aarch64-builtins.c
1098 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
1099 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
1100 (frintz): Rename to...
1102 (frintp): Rename to...
1104 (frintm): Rename to...
1106 (frinti): Rename to...
1107 (nearbyint): ...this.
1108 (frintx): Rename to...
1110 (frinta): Rename to...
1112 * config/aarch64/aarch64-simd.md
1113 (aarch64_frint<frint_suffix><mode>): Delete.
1114 (<frint_pattern><mode>2): Convert to insn.
1115 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
1116 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
1117 (frint_pattern): Likewise.
1118 (frint_suffix): Likewise.
1120 2013-04-29 Richard Biener <rguenther@suse.de>
1122 PR tree-optimization/57081
1123 * loop-init.c: Include tree-flow.h.
1124 (loop_optimizer_finalize): Free number of iteration estimates.
1125 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
1127 2013-04-29 Jakub Jelinek <jakub@redhat.com>
1129 PR tree-optimization/57083
1130 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
1131 non-singleton shift count range, zero extend low_bound for uns case.
1133 * config/i386/predicates.md (general_vector_operand): New predicate.
1134 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
1135 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
1136 if they aren't nonimmediate operands. If their original values
1137 satisfy const_vector_equal_evenodd_p, don't shift them.
1138 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
1139 predicates. For the SSE4.1 case force operands[{1,2}] into registers
1140 if not nonimmediate_operand.
1141 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
1142 instead of register_operand.
1143 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
1145 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
1147 * stor-layout.c (finalize_size_functions): Allocate a structure and
1148 reset cfun before dumping the functions.
1150 2013-04-27 Jakub Jelinek <jakub@redhat.com>
1152 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
1155 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
1156 use xop_pmacsdqh if uns_p.
1157 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
1158 the immediate rotate count.
1160 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
1162 * rtl.h (struct rtx_def): Add comment for field jump.
1163 (LRA_SUBREG_P): New macro.
1164 * recog.c (register_operand): Check LRA_SUBREG_P.
1165 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1167 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1168 (lra_final_code_change): Skip subreg change for operators.
1169 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1170 if there are no operand changes.
1171 * lra-constraints.c (curr_insn_set): New.
1172 (match_reload): Set LRA_SUBREG_P.
1173 (emit_spill_move): Ditto.
1174 (check_and_process_move): Use curr_insn_set. Process only single
1175 set insns. Don't initialize sec_mem_p and change_p.
1176 (simplify_operand_subreg): Use LRA_SUBREG_P.
1177 (reg_in_class_p): New function.
1178 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1179 of #ifdef. Add code to remove cycling.
1180 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1181 non-null disp. Reload inner instead of disp when base and index
1182 are null. Try to put lo_sum into register.
1183 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1184 (check_and_process_move): Move code for move cost check to
1185 simple_move_p. Remove equiv_substitution.
1186 (simple_move_p): New function.
1187 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1188 curr_insn_set. Call check_and_process_move only for single set
1189 insns. Use the new function. Move call of check_and_process_move
1190 after operand equiv substitution and address process.
1192 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1195 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
1196 with nonlocal goto receivers or returns twice calls, ignore
1197 unininitialized values from abnormal edges to nl goto receiver
1198 or returns twice call.
1200 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1202 PR tree-optimization/57051
1203 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1204 and VEC_RSHIFT_EXPR if shift count is a multiple of element
1207 2013-04-26 Richard Biener <rguenther@suse.de>
1209 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
1210 (expand_omp_taskreg): Likewise. Mark loops for fixup.
1211 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
1212 (fixup_loop_arrays_after_move): New function.
1213 (move_sese_region_to_fn): Properly outline the loop tree parts
1216 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
1218 * config/i386/i386.md (type, unit): Fix long lines.
1220 2013-04-26 Richard Biener <rguenther@suse.de>
1222 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
1223 (lto-streamer-out.o): Likewise.
1224 * cfgloop.c (init_loops_structure): Export, add struct function
1225 argument and adjust.
1226 (flow_loops_find): Adjust.
1227 * cfgloop.h (enum loop_estimation): Add EST_LAST.
1228 (init_loops_structure): Declare.
1229 * lto-streamer-in.c: Include cfgloop.h.
1230 (input_cfg): Input the loop tree.
1231 * lto-streamer-out.c: Include cfgloop.h.
1232 (output_cfg): Output the loop tree.
1233 (output_struct_function_base): Do not drop PROP_loops.
1235 2013-03-26 Richard Biener <rguenther@suse.de>
1237 * tree-cfg.c (execute_build_cfg): Build the loop tree.
1238 (pass_build_cfg): Provide PROP_loops.
1239 (move_sese_region_to_fn): Remove loops that are outlined into fn
1241 * tree-inline.c: Include cfgloop.h.
1242 (initialize_cfun): Do not drop PROP_loops.
1243 (copy_loops): New function.
1244 (copy_cfg_body): Copy loop structure.
1245 (tree_function_versioning): Initialize destination loop tree.
1246 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
1247 (pass_parallelize_loops): Do IL verification.
1248 * loop-init.c (loop_optimizer_init): Fixup loops if required.
1249 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
1250 the CFG make sure we fixup loops as well.
1251 * tree-ssa-tail-merge.c: Include cfgloop.h.
1252 (replace_block_by): When merging loop latches mark loops for fixup.
1253 * lto-streamer-out.c (output_struct_function_base): Drop
1255 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
1256 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
1257 * ipa-split.c: Include cfgloop.h.
1258 (split_function): Add the new return block to the loop tree root.
1259 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
1260 whether we have removed the forwarder block.
1261 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
1262 * cfgloop.h (place_new_loop): Declare.
1263 * cfgloopmanip.c (place_new_loop): Export.
1264 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
1265 (tree-switch-conversion.o): Likewise.
1266 (tree-complex.o): Likewise.
1267 (tree-inline.o): Likewise.
1268 (tree-ssa-tailmerge.o): Likewise.
1269 (ipa-split.o): Likewise.
1270 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
1271 (tree-ssa-copy.o): Likewise.
1272 * tree-switch-conversion.c: Include cfgloop.h
1273 (process_switch): If we emit a bit-test cascade, schedule loops
1275 * tree-complex.c: Include cfgloop.h.
1276 (expand_complex_div_wide): Properly add new basic-blocks to loops.
1277 * asan.c: Include cfgloop.h.
1278 (create_cond_insert_point): Properly add new basic-blocks to
1279 loops, schedule loop fixup.
1280 * cfgloop.c (verify_loop_structure): Check that looks are not
1282 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
1284 (expand_omp_for_generic): Likewise.
1285 (expand_omp_sections): Likewise.
1286 (expand_omp_atomic_pipeline): Schedule loops for fixup.
1287 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
1288 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
1289 is initialized, not when loops are present.
1290 * tree-parloops.c (parallelize_loops): Remove checking here.
1291 * passes.c (init_optimization_passes): Schedule a copy-propagation
1292 pass before complete unrolling of inner loops.
1294 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1296 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
1297 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
1298 (colorize_init): Add argument to _WIN32 version.
1299 * toplev.c: Include diagnostic-color.h.
1300 (process_options): Default to -fdiagnostics-color=auto if
1301 GCC_COLORS env var is in the environment.
1302 * common.opt (fdiagnostics-color=): Add Var and Init.
1303 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
1304 env var is in the environment, the default is auto rather than never.
1306 * diagnostic.h (file_name_as_prefix): Add context argument.
1307 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
1308 the string as locus.
1309 * langhooks.c (lhd_print_error_function): Adjust caller.
1311 2013-04-25 Lawrence Crowl <crowl@google.com>
1313 * var-tracking.c (shared_hash_def::htab):
1314 Change type to hash_table. Update dependent calls and types.
1316 2013-04-25 Lawrence Crowl <crowl@google.com>
1318 * Makefile.in: Update as needed below.
1320 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
1321 Move declaration to after the type's method definitons.
1323 * attribs.c (htab_t scoped_attributes::attribute_hash):
1324 Change type to hash_table. Update dependent calls and types.
1326 * bitmap.c (htab_t bitmap_desc_hash):
1327 Change type to hash_table. Update dependent calls and types.
1329 * cselib.c (htab_t cselib_hash_table):
1330 Change type to hash_table. Update dependent calls and types.
1332 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
1333 (hash_string_slot_node): Move implementation into lto-streamer.h
1334 struct string_slot_hasher.
1335 (eq_string_slot_node): Likewise.
1337 * data-streamer-out.c: Update output_block::string_hash_table
1338 dependent calls and types.
1340 * dwarf2cfi.c (htab_t trace_index):
1341 Change type to hash_table. Update dependent calls and types.
1343 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
1344 Change type to hash_table. Update dependent calls and types.
1345 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
1346 (htab_t optimize_external_refs::map): Likewise.
1347 (htab_t output_comp_unit::extern_map): Likewise.
1348 (htab_t output_comdat_type_unit::extern_map): Likewise.
1349 (htab_t output_macinfo::macinfo_htab): Likewise.
1350 (htab_t optimize_location_lists::htab): Likewise.
1351 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
1353 * except.c (htab_t ehspec_hash_type):
1354 Change type to hash_table. Update dependent calls and types.
1355 (assign_filter_values::ttypes): Likewise.
1356 (assign_filter_values::ehspec): Likewise.
1357 (sjlj_assign_call_site_values::ar_hash): Likewise.
1358 (convert_to_eh_region_ranges::ar_hash): Likewise.
1360 * gcse.c (htab_t pre_ldst_table):
1361 Change type to hash_table. Update dependent calls and types.
1363 * ggc-common.c (htab_t saving_htab):
1364 Change type to hash_table. Update dependent calls and types.
1365 (htab_t loc_hash): Likewise.
1366 (htab_t ptr_hash): Likewise.
1367 (call_count): Rename ggc_call_count.
1368 (call_alloc): Rename ggc_call_alloc.
1369 (loc_descriptor): Rename make_loc_descriptor.
1370 (add_statistics): Rename ggc_add_statistics.
1372 * ggc-common.c (saving_htab):
1373 Change type to hash_table. Update dependent calls and types.
1375 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
1376 (push_gimplify_context): Likewise.
1377 (pop_gimplify_context): Likewise.
1378 (struct gimple_temp_hash_elt): Added.
1379 (struct gimplify_hasher): Likewise.
1380 (struct gimplify_ctx.temp_htab):
1381 Change type to hash_table. Update dependent calls and types.
1383 * gimple-fold.c: Include gimplify-ctx.h.
1385 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
1386 Change type to hash_table. Update dependent calls and types.
1387 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
1388 avoid potential global name collision.
1390 * gimplify.c: Include gimplify-ctx.h.
1391 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
1392 (htab_t gimplify_ctx::temp_htab):
1393 Update dependent calls and types for new type hash_table.
1394 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
1395 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
1397 * gimplify-ctx.h: New.
1398 (struct gimple_temp_hash_elt): Move from gimplify.c.
1399 (class gimplify_hasher): New.
1400 (struct gimplify_ctx): Move from gimple.h.
1401 (htab_t gimplify_ctx::temp_htab):
1402 Change type to hash_table. Update dependent calls and types.
1404 * graphite-clast-to-gimple.c: Include graphite-htab.h.
1405 (htab_t ivs_params::newivs_index):
1406 Change type to hash_table. Update dependent calls and types.
1407 (htab_t ivs_params::params_index): Likewise.
1408 (htab_t print_generated_program::params_index): Likewise.
1409 (htab_t gloog::newivs_index): Likewise.
1410 (htab_t gloog::params_index): Likewise.
1412 * graphite.c: Include graphite-htab.h.
1413 4htab_t graphite_transform_loops::bb_pbb_mapping):
1414 Change type to hash_table. Update dependent calls and types.
1416 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
1417 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
1418 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
1420 * graphite-dependences.c: Include graphite-htab.h.
1421 (loop_is_parallel_p): Change hash table type of parameter.
1423 * graphite-htab.h: New.
1424 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
1425 (extern find_pbb_via_hash): Move from graphite-poly.h.
1426 (extern loop_is_parallel_p): Move from graphite-poly.h.
1427 (extern get_loop_body_pbbs): Move from graphite-poly.h.
1429 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
1430 (extern loop_is_parallel_p): Move to graphite-htab.h.
1431 (extern get_loop_body_pbbs): Move to graphite-htab.h.
1433 * haifa-sched.c (htab_t delay_htab):
1434 Change type to hash_table. Update dependent calls and types.
1435 (htab_t delay_htab_i2): Likewise.
1437 * ira-color.c (htab_t allocno_hard_regs_htab):
1438 Change type to hash_table. Update dependent calls and types.
1440 * ira-costs.c (htab_t cost_classes_htab):
1441 Change type to hash_table. Update dependent calls and types.
1443 * loop-invariant.c (htab_t merge_identical_invariants::eq):
1444 Change type to hash_table. Update dependent calls and types.
1446 * loop-iv.c (htab_t bivs):
1447 Change type to hash_table. Update dependent calls and types.
1449 * loop-unroll.c (htab_t opt_info::insns_to_split):
1450 Change type to hash_table. Update dependent calls and types.
1451 (htab_t opt_info::insns_with_var_to_expand): Likewise.
1453 * lto-streamer.h (struct string_slot): Move from data-streamer.h
1454 (struct string_slot_hasher): New.
1455 (htab_t output_block::string_hash_table):
1456 Change type to hash_table. Update dependent calls and types.
1458 * lto-streamer-in.c (freeing_string_slot_hasher): New.
1459 (htab_t file_name_hash_table):
1460 Change type to hash_table. Update dependent calls and types.
1462 * lto-streamer-out.c: Update output_block::string_hash_table dependent
1465 * lto-streamer.c (htab_t tree_htab):
1466 Change type to hash_table. Update dependent calls and types.
1468 * omp-low.c: Include gimplify-ctx.h.
1470 * passes.c (htab_t name_to_pass_map):
1471 Change type to hash_table. Update dependent calls and types.
1472 (pass_traverse): Rename to passes_pass_traverse.
1474 * plugin.c (htab_t event_tab):
1475 Change type to hash_table. Update dependent calls and types.
1477 * postreload-gcse.c (htab_t expr_table):
1478 Change type to hash_table. Update dependent calls and types.
1479 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
1481 * sese.c (debug_rename_map_1): Make extern.
1482 (htab_t copy_bb_and_scalar_dependences::rename_map):
1483 Change type to hash_table. Update dependent calls and types.
1485 * sese.h (extern debug_rename_map): Move to .c file.
1487 * store-motion.c (htab_t store_motion_mems_table):
1488 Change type to hash_table. Update dependent calls and types.
1490 * trans-mem.c (htab_t tm_new_mem_hash):
1491 Change type to hash_table. Update dependent calls and types.
1493 * tree-browser.c (htab_t TB_up_ht):
1494 Change type to hash_table. Update dependent calls and types.
1496 * tree-cfg.c (htab_t discriminator_per_locus):
1497 Change type to hash_table. Update dependent calls and types.
1499 * tree-complex.c: Include tree-hasher.h
1500 (htab_t complex_variable_components):
1501 Change type to hash_table. Update dependent calls and types.
1503 * tree-eh.c (htab_t finally_tree):
1504 Change type to hash_table. Update dependent calls and types.
1506 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
1507 struct int_tree_hasher.
1508 (extern int_tree_map_eq): Likewise.
1509 (uid_decl_map_hash): Removed.
1510 (extern decl_tree_map_eq): Likewise.
1512 * tree-hasher.h: New.
1513 (struct int_tree_hasher): New.
1514 (typedef int_tree_htab_type): New.
1516 * tree-inline.c: Include gimplify-ctx.h.
1518 * tree-mudflap.c: Include gimplify-ctx.h.
1520 * tree-parloops.c: Include tree-hasher.h.
1521 (htab_t eliminate_local_variables_stmt::decl_address):
1522 Change type to hash_table. Update dependent calls and types.
1523 (htab_t separate_decls_in_region::decl_copies): Likewise.
1525 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
1526 Change type to hash_table. Update dependent calls and types.
1528 * tree-sra.c (candidates):
1529 Change type to hash_table. Update dependent calls and types.
1531 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
1533 (int_tree_map_hash): Likewise.
1535 * tree-ssa-dom.c (htab_t avail_exprs):
1536 Change type to hash_table. Update dependent calls and types.
1538 * tree-ssa-live.c (var_map_base_init::tree_to_index):
1539 Change type to hash_table. Update dependent calls and types.
1541 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
1542 Change type to hash_table. Update dependent calls and types.
1544 * tree-ssa-phiopt.c (seen_ssa_names):
1545 Change type to hash_table. Update dependent calls and types.
1547 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
1548 Change type to hash_table. Update dependent calls and types.
1550 * tree-ssa-uncprop.c (equiv):
1551 Change type to hash_table. Update dependent calls and types.
1553 2013-04-25 Jakub Jelinek <jakub@redhat.com>
1555 PR rtl-optimization/57003
1556 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1557 call note_stores with kill_clobbered_value callback again after
1558 killing regs_invalidated_by_call.
1560 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1562 * config/aarch64/aarch64-simd.md
1563 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
1564 (aarch64_simd_bsl<mode>): Likewise.
1565 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
1567 2013-04-25 Marek Polacek <polacek@redhat.com>
1569 PR tree-optimization/57066
1570 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
1572 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
1574 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
1576 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1578 * config/aarch64/aarch64-builtins.c
1579 (aarch64_fold_builtin): New.
1580 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
1581 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
1582 * config/aarch64/aarch64-simd-builtins.def (abs): New.
1583 * config/aarch64/arm_neon.h
1584 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
1586 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1587 Tejas Belagod <tejas.belagod@arm.com>
1589 * config/aarch64/aarch64-builtins.c
1590 (aarch64_gimple_fold_builtin): New.
1591 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
1592 * config/aarch64/aarch64-simd-builtins.def (addv): New.
1593 * config/aarch64/aarch64-simd.md (addpv4sf): New.
1595 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1597 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1599 * config/aarch64/aarch64.md
1600 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
1602 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1604 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
1605 (*ngcsi_uxtw): New pattern.
1607 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1608 Julian Brown <julian@codesourcery.com>
1610 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
1611 (TB_DREG): Add T_V4HF.
1612 (v4hf_UP): New macro.
1613 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1614 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1615 Handle initialisation of V4HF. Adjust initialisation of reinterpret
1617 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1618 (arm_vector_mode_supported_p): Handle V4HF.
1619 (arm_mangle_map): Handle V4HFmode.
1620 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
1621 * config/arm/arm_neon_builtins.def: Add entries for
1622 vcvtv4hfv4sf, vcvtv4sfv4hf.
1623 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
1624 (neon_vcvtv4hfv4sf): Likewise.
1625 * config/arm/neon-gen.ml: Handle half-precision floating point
1627 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
1628 * config/arm/arm_neon.h: Regenerate.
1629 * config/arm/neon.ml (type elts): Add F16.
1630 (type vectype): Add T_float16x4, T_floatHF.
1631 (type vecmode): Add V4HF.
1632 (type features): Add Requires_FP_bit feature.
1633 (elt_width): Handle F16.
1634 (elt_class): Likewise.
1635 (elt_of_class_width): Likewise.
1636 (mode_of_elt): Refactor.
1637 (type_for_elt): Handle F16, fix error messages.
1638 (vectype_size): Handle T_float16x4.
1639 (vcvt_sh): New function.
1640 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
1641 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
1642 (string_of_mode): Handle V4HF.
1643 * doc/arm-neon-intrinsics.texi: Regenerate.
1645 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1647 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
1648 format specifier in 'X' case.
1650 2013-04-25 Alan Modra <amodra@gmail.com>
1653 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
1654 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
1655 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
1656 Repeat for many other rotate/shift and mask patterns using subregs.
1657 Name lshiftrt insns.
1658 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
1659 on WORDS_BIG_ENDIAN.
1661 2013-04-25 Alan Modra <amodra@gmail.com>
1663 * config.gcc: Support little-endian powerpc-linux targets.
1664 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
1665 (LINK_OS_LINUX_SPEC): Define.
1666 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
1667 Preserve MASK_LITTLE_ENDIAN.
1668 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
1669 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
1670 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
1671 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
1672 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
1673 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
1674 Correct fp word order for little-endian. Don't shift toc entries
1675 smaller than a word for little-endian.
1676 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
1677 (bswapdi2 splits): Correct low-part subreg for little-endian.
1678 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
1679 low/high where such is correct only for be.
1680 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
1681 little-endian for -mcall-aixdesc.
1683 2013-04-25 Alan Modra <amodra@gmail.com>
1685 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
1686 replace_equiv_address_nv.
1688 2013-04-25 Alan Modra <amodra@gmail.com>
1690 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
1692 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1695 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1696 * rtl.h (struct rtx_def): ...
1698 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1700 PR rtl-optimizations/57046
1701 * lra-constraints (split_reg): Set up lra_risky_transformations_p
1702 for multi-reg splits.
1704 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
1706 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
1708 2013-04-24 Sterling Augustine <saugustine@google.com>
1710 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
1711 (comp_dir_string, debug_str_dwo_section): New.
1712 (DEBUG_STR_DWO_SECTION): Rename to ...
1713 (DEBUG_DWO_STR_SECTION): ... this.
1714 (DEBUG_NORM_STR_SECTION): Delete.
1715 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
1716 (DEBUG_STR_DWO_SECTION_FLAGS): New.
1717 (find_AT_string): Move most logic to ...
1718 (find_AT_string_in_table): ... here. New.
1719 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
1720 add_skeleton_AT_string. Delete logic.
1721 (output_skeleton_debug_sections): Remove call to
1722 add_top_level_skeleton_die_attrs.
1723 (add_comp_dir_attribute): Move logic to comp_dir_string.
1724 (dwarf2out_init): Initialize debug_str_dwo_section.
1725 (output_indirect_string): Call find_string_form.
1726 (output_indirect_strings): Rewrite.
1727 (prune_unused_types): Empty skeleton_debug_str_hash.
1728 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
1729 (dwarf2out_finish): Call output_indirect_strings.
1731 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1733 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
1735 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1737 * rtl.h (struct rtx_def): Add comment for field jump.
1738 (LRA_SUBREG_P): New macro.
1739 * recog.c (register_operand): Check LRA_SUBREG_P.
1740 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1742 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1743 (lra_final_code_change): Skip subreg change for operators.
1744 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1745 if there are no operand changes.
1746 * lra-constraints.c (curr_insn_set): New.
1747 (match_reload): Set LRA_SUBREG_P.
1748 (emit_spill_move): Ditto.
1749 (check_and_process_move): Use curr_insn_set. Process only single
1750 set insns. Don't initialize sec_mem_p and change_p.
1751 (simplify_operand_subreg): Use LRA_SUBREG_P.
1752 (reg_in_class_p): New function.
1753 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1754 of #ifdef. Add code to remove cycling.
1755 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1756 non-null disp. Reload inner instead of disp when base and index
1757 are null. Try to put lo_sum into register.
1758 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1759 (check_and_process_move): Move code for move cost check to
1760 simple_move_p. Remove equiv_substitution.
1761 (simple_move_p): New function.
1762 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1763 curr_insn_set. Call check_and_process_move only for single set
1764 insns. Use the new function. Move call of check_and_process_move
1765 after operand equiv substitution and address process.
1767 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
1769 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
1770 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
1771 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
1773 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1775 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
1777 2013-04-24 Marek Polacek <polacek@redhat.com>
1779 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
1780 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
1781 (select_loops_exit_conditions): Likewise.
1782 (number_of_iterations_for_all_loops): Likewise.
1783 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
1784 (scev_analysis): Likewise.
1786 2013-04-02 Catherine Moore <clm@codesourcery.com>
1787 Chao-ying Fu <fu@mips.com>
1789 * config/mips/micromips.md (jraddiusp): New pattern.
1790 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
1791 instruction if possible.
1793 2013-04-24 Alan Modra <amodra@gmail.com>
1795 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
1797 2013-04-24 Julian Brown <julian@codesourcery.com>
1798 Chung-Lin Tang <cltang@codesourcery.com>
1800 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
1801 dependency behavior in enumeration type DIE generation. Add TODO note
1802 to comments about future DW_FORM_sdata/udata re-work of related code.
1804 2013-04-23 Lawrence Crowl <crowl@google.com>
1806 * Makefile.in: Update as needed below.
1808 * hash-table.h (class hash_table):
1809 Correct many methods with parameter types compare_type to the correct
1810 value_type. (Correct code was unlikely to notice the change.)
1811 (hash_table::elements_with_deleted) New.
1812 (class hashtable::iterator): New.
1813 (hashtable::begin()): New.
1814 (hashtable::end()): New.
1815 (FOR_EACH_HASH_TABLE_ELEMENT): New.
1817 * statistics.c (statistics_hashes):
1818 Change type to hash_table. Update dependent calls and types.
1820 * tree-into-ssa.c (var_infos):
1821 Change type to hash_table. Update dependent calls and types.
1823 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
1824 Change type to hash_table. Update dependent calls and types.
1826 * tree-ssa-loop-im.c (struct mem_ref.refs):
1827 Change type to hash_table. Update dependent calls and types.
1829 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
1830 Change type to hash_table. Update dependent calls and types.
1832 * tree-ssa-sccvn.c (vn_tables_s::nary):
1833 Change type to hash_table. Update dependent calls and types.
1834 (vn_tables_s::phis): Likewise.
1835 (vn_tables_s::references): Likewise.
1837 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
1838 (vn_reference_eq): Update parameter and return types.
1840 * tree-ssa-structalias.c (pointer_equiv_class_table):
1841 Change type to hash_table. Update dependent calls and types.
1842 (location_equiv_class_table): Likewise.
1844 * tree-vect-data-refs.c: Consequential changes for making
1845 peeling a hash_table.
1847 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
1848 (destroy_loop_vec_info): Dependent hash_table update.
1850 * tree-vectorizer.h (peeling_htab):
1851 Change type to hash_table. Update dependent calls and types.
1853 2013-04-23 Shiva Chen <shiva0217@gmail.com>
1855 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
1856 to check the register content is equal or not.
1857 * lra-constraints.c (match_reload): Use lra_assign_reg_val
1858 to assign register content record.
1859 * lra-eliminations.c (update_reg_eliminate): Use
1860 lra_update_reg_val_offset to update register content offset.
1861 * lra-int.h (struct lra_reg): Add offset member.
1862 (lra_reg_val_equal_p): New static inline function.
1863 (lra_update_reg_val_offset): New static inline function.
1864 (lra_assign_reg_val): New static inline function.
1865 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
1866 to assign register content record.
1867 (initialize_lra_reg_info_element): Initial offset to zero.
1869 2013-04-23 Catherine Moore <clm@codesourcery.com>
1871 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
1872 operands. Record compression.
1874 2013-04-23 Xinliang David Li <davidxl@google.com>
1876 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
1878 2013-04-23 Richard Biener <rguenther@suse.de>
1881 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
1882 parameter, only add abnormal goto edges from the copied body
1883 if the call could perform abnormal gotos.
1884 (copy_cfg_body): Adjust.
1886 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
1888 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
1890 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
1892 * coretypes.h (gimple_stmt_iterator): Add struct to make
1895 2013-04-23 Richard Biener <rguenther@suse.de>
1897 PR tree-optimization/57026
1898 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
1899 from SSA names occuring in abnormal PHI nodes.
1901 2013-04-22 Andi Kleen <ak@linux.intel.com>
1903 * lto/lto.c (print_lto_report_1): Fix LTO report names.
1905 2013-04-22 Andi Kleen <ak@linux.intel.com>
1907 * lto/lto.c (print_lto_report_1): Declare early.
1908 (read_cgraph_and_symbols): Call print_lto_report_1 early.
1910 2013-04-22 Andi Kleen <ak@linux.intel.com>
1912 * common.opt (-flto-report-wpa): Add.
1913 * doc/invoke.texi (-flto-report-wpa): Add.
1914 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
1917 2013-04-22 Xinliang David Li <davidxl@google.com>
1919 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
1920 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
1921 * Makefile.in: New dependency
1923 David Daney <ddaney.cavm@gmail.com>
1925 * configure.ac (gcc_cv_as_micromips_support): Use the
1926 --fatal-warnings option.
1927 * configure: Regenerate.
1929 2013-04-22 Marek Polacek <polacek@redhat.com>
1932 * tsan.c (instrument_expr): Don't instrument expression
1933 in case its size is zero.
1935 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
1939 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1941 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1943 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1945 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
1946 (gimple_stmt_iterator): New typedef.
1947 * gimple.h (gimple_stmt_iterator): Rename to...
1948 (gimple_stmt_iterator_d): ... This.
1949 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
1950 trees be valid for GIMPLE and GENERIC.
1951 (TARGET_GIMPLE_FOLD_BUILTIN): New.
1952 * gimple-fold.c (gimple_fold_call): Call target hook
1953 gimple_fold_builtin.
1954 * hooks.c (hook_bool_gsiptr_false): New.
1955 * hooks.h (hook_bool_gsiptr_false): New.
1956 * target.def (fold_stmt): New.
1957 * doc/tm.texi: Regenerate.
1959 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
1962 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1963 a set sp if no stack realignment.
1965 2013-04-22 Nick Clifton <nickc@redhat.com>
1967 * config.gcc (tilegx-linux): Extend extra_objs rather than
1969 (tilepro-linux): Likewise.
1971 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1973 * config/aarch64/aarch64-builtins.c
1975 (CF0, CF1, CF2, CF3, CF4, CF10): New.
1976 (VAR<1-12>): Add MAP parameter.
1977 (BUILTIN_*): Likewise.
1978 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
1979 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
1980 (aarch64_ushl_n<mode>): Likewise.
1981 (aarch64_sshr_n<mode>): Likewise.
1982 (aarch64_ushr_n<mode>): Likewise.
1983 (aarch64_<maxmin><mode>): Likewise.
1984 (aarch64_sqrt<mode>): Likewise.
1985 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
1986 (vshr<q>_n_*): Likewise.
1988 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1990 * config/aarch64/aarch64-builtins.c
1991 (aarch64_simd_builtin_type_mode): Handle SF types.
1993 (BUILTIN_GPF): Define.
1994 (aarch64_init_simd_builtins): Handle SF types.
1995 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
1998 * config/aarch64/aarch64-simd.md
1999 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
2000 (aarch64_frecpe<mode>): New.
2001 (aarch64_frecps<mode>): Likewise.
2002 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
2003 (v8type): Add frecp<esx>.
2004 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
2005 (aarch64_frecps<mode>): Likewise.
2006 * config/aarch64/iterators.md (FRECP): New.
2007 (frecp_suffix): Likewise.
2008 * config/aarch64/arm_neon.h
2009 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
2011 2013-04-22 Christian Bruel <christian.bruel@st.com>
2014 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
2015 (REG_CLASS_NAMES): Idem.
2016 (REG_CLASS_CONTENTS): Idem.
2017 (REGCLASS_HAS_FP_REG): Idem.
2018 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
2019 (sh_conditional_register_usage): Idem.
2021 2013-04-21 Jeff Law <law@redhat.com>
2023 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
2024 (ssa_forward_propagate_and_combine): Use it.
2026 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2028 * lra.c: Update the flow chart diagram.
2030 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2032 PR rtl-optimization/56847
2033 * lra-constraints.c (process_alt_operands): Discourage alternative
2034 with non-matche doffsettable memory constraint fro memory with
2037 2013-04-19 Richard Biener <rguenther@suse.de>
2039 PR tree-optimization/56982
2040 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
2042 * gimplify.c (gimplify_call_expr): Notice special calls.
2043 (gimplify_modify_expr): Likewise.
2044 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
2045 abnormal control flow receivers.
2046 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
2047 in the same way as cfun->has_nonlocal_labels.
2048 (gimple_purge_dead_abnormal_call_edges): Likewise.
2049 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
2050 receivers start a basic-block.
2052 2013-04-19 Richard Biener <rguenther@suse.de>
2054 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
2056 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
2057 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
2058 (SLP_TREE_LOAD_PERMUTATION): Add.
2059 (vect_transform_slp_perm_load): Adjust prototype.
2060 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
2061 (vect_free_slp_instance): Likewise.
2062 (vect_create_new_slp_node): Likewise.
2063 (vect_supported_slp_permutation_p): Remove.
2064 (vect_slp_rearrange_stmts): Adjust.
2065 (vect_supported_load_permutation_p): Likewise. Inline
2066 vect_supported_slp_permutation_p here.
2067 (vect_analyze_slp_instance): Compute load permutations per
2068 slp node instead of per instance.
2069 (vect_get_slp_defs): Adjust.
2070 (vect_transform_slp_perm_load): Likewise.
2071 (vect_schedule_slp_instance): Remove redundant code.
2072 (vect_schedule_slp): Remove hack for PR56270, add it ...
2073 * tree-vect-stmts.c (vectorizable_load): ... here, do not
2074 CSE loads for SLP. Adjust.
2076 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2078 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
2079 spelling in two comments.
2081 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2084 * config/arm/arm.c (load_multiple_sequence): Require SP
2085 as base register for loads if SP is in the register list.
2087 2013-04-19 Martin Jambor <mjambor@suse.cz>
2089 PR tree-optimization/56718
2090 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
2091 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
2092 and made public. Adjusted all callers.
2093 (ipa_intraprocedural_devirtualization): New function.
2094 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
2095 (ipa_intraprocedural_devirtualization): Likewise.
2096 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
2098 2013-04-19 Richard Biener <rguenther@suse.de>
2100 PR tree-optimization/57000
2101 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
2103 2013-04-19 Terry Guo <terry.guo@arm.com>
2105 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
2107 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
2108 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
2109 (cortex_m4_fmacs): Use new reservations.
2110 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
2112 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
2114 PR rtl-optimization/56999
2115 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
2117 (lra_coalesce): Remove split_origin_bitmap and related code.
2118 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
2119 ranges if necessary.
2121 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
2123 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
2125 (ix86_expand_call): Remove clobbered_registers array and use
2126 x86_64_ms_sysv_extra_clobbered_registers instead.
2127 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
2129 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
2131 * config/i386/i386.md (*call_rex64_ms_sysv): Use
2132 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
2133 (*call_value_rex64_ms_sysv): Ditto.
2135 2013-04-18 Cary Coutant <ccoutant@google.com>
2137 * dwarf2out.c (output_pubnames): Check die_perennial_p of
2138 parent instead of die_mark.
2140 2013-04-18 Diego Novillo <dnovillo@google.com>
2142 * gimple.c (create_gimple_tmp): New.
2143 (get_expr_type): New.
2144 (build_assign): New.
2145 (build_type_cast): New.
2146 * gimple.h (enum ssa_mode): Define.
2147 (gimple_seq_set_location): New.
2148 * asan.c (build_check_stmt): Change some gimple_build_* calls
2149 to use build_assign and build_type_cast.
2151 2013-04-18 Richard Biener <rguenther@suse.de>
2153 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2154 handle negative step. Remove redundant checks.
2155 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
2156 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
2157 for negative step and grouped loads fail to vectorize.
2159 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2161 * emit-rtl.c (reset_insn_used_flags): New function.
2162 (reset_all_used_flags): Use it.
2163 (verify_insn_sharing): New function.
2164 (verify_rtl_sharing): Fix verification for SEQUENCEs.
2166 2013-04-18 Jakub Jelinek <jakub@redhat.com>
2168 PR tree-optimization/56984
2169 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
2170 and (x >> M) >= N don't register any assertion if N << M is the
2173 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2175 * lower-subreg.c (resolve_simple_move): If called self-recursive,
2176 do not delete_insn insns that have not yet been emitted, only
2177 unlink them with remove_insn.
2178 * df-scan.c (df_insn_delete): Revert r197492.
2180 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
2182 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
2183 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
2185 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
2187 * config/arm/arm.md (movsicc_insn): Convert define_insn into
2188 define_insn_and_split.
2189 (and_scc,ior_scc,negscc): Likewise.
2190 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
2192 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
2194 * config/arm/arm.c (use_return_insn): Return 0 for targets that
2195 can benefit from using a sequence of LDRD instructions in epilogue
2196 instead of a single LDM instruction.
2198 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2201 * doc/extend.texi: Fix typo.
2203 2013-04-17 Richard Biener <rguenther@suse.de>
2205 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
2206 (vect_build_slp_tree): ... here.
2207 (vect_build_slp_tree_1): Compute which stmts of the SLP group
2208 match. Remove special-casing of mismatched complex loads.
2209 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
2210 re-try the match with swapped commutative operands.
2211 (vect_supported_load_permutation_p): Remove special-casing of
2212 mismatched complex loads.
2213 (vect_analyze_slp_instance): Adjust.
2215 2013-04-17 Richard Biener <rguenther@suse.de>
2217 PR rtl-optimization/56921
2218 * cfgloop.h (struct loop): Add simple_loop_desc member.
2219 (struct niter_desc): Mark with GTY(()).
2220 (simple_loop_desc): Do not use aux field but simple_loop_desc.
2221 * loop-iv.c (get_simple_loop_desc): Likewise.
2222 (free_simple_loop_desc): Likewise.
2225 2013-04-16 Richard Biener <rguenther@suse.de>
2227 PR rtl-optimization/56921
2228 * loop-init.c (pass_rtl_move_loop_invariants): Add
2229 TODO_do_not_ggc_collect to todo_flags_finish.
2230 (pass_rtl_unswitch): Same.
2231 (pass_rtl_unroll_and_peel_loops): Same.
2232 (pass_rtl_doloop): Same.
2234 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
2236 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
2237 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
2238 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
2240 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
2241 * tree-streamer.c (record_common_node): Adjust reference in comment.
2243 2013-04-17 Terry Guo <terry.guo@arm.com>
2245 * config/arm/cortex-m4.md: Add a new bypass.
2247 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2249 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
2251 (*subs_<optab><mode>_multp2): New pattern.
2252 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2253 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2255 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2257 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
2258 (*subs_mul_imm_<mode>): New pattern.
2260 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
2263 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2264 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
2265 (vsx_movti_32bit): Change j->wa to O->wa.
2267 2013-04-16 Richard Biener <rguenther@suse.de>
2269 PR rtl-optimization/56921
2270 * loop-init.c (pass_rtl_move_loop_invariants): Add
2271 TODO_do_not_ggc_collect to todo_flags_finish.
2272 (pass_rtl_unswitch): Same.
2273 (pass_rtl_unroll_and_peel_loops): Same.
2274 (pass_rtl_doloop): Same.
2276 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
2278 * config/arm/arm.c (emit_multi_reg_push): New declaration
2279 for an existing function.
2280 (arm_emit_strd_push): New function.
2281 (arm_expand_prologue): Used here.
2282 (arm_emit_ldrd_pop): New function.
2283 (arm_expand_epilogue): Used here.
2284 (arm_get_frame_offsets): Update condition.
2285 (arm_emit_multi_reg_pop): Add a special case for load of a single
2286 register with writeback.
2288 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
2290 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
2293 2013-04-16 Richard Biener <rguenther@suse.de>
2295 PR tree-optimization/56756
2296 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
2297 (first_mem_ref_loc): New.
2298 (execute_sm): Place the load temporarily before a previous
2299 access instead of in the latch edge to ensure its SSA dependencies
2300 are defined at points dominating the load.
2302 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
2304 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
2305 correct fix by moving header and footer insn to the footer of
2306 the merged basic block. Clear BB_END of the merged-away block.
2309 * emit-rtl.c (make_note_raw): New function.
2310 (link_insn_into_chain): New static inline function.
2312 (add_insn_before, add_insn_after): Factor insn chain linking code...
2313 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
2314 using link_insn_into_chain.
2315 (note_outside_basic_block_p): New helper function for emit_note_after
2316 and emit_note_before.
2317 (emit_note_after): Use nobb variant of add_insn_after if the note
2318 should not be contained in a basic block.
2319 (emit_note_before): Use nobb variant of add_insn_before if the note
2320 should not be contained in a basic block.
2321 (emit_note_copy): Use make_note_raw.
2322 (emit_note): Likewise.
2323 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
2324 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
2325 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
2326 the moved barrier the tail of the basic block it follows.
2327 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
2329 2013-04-15 Jakub Jelinek <jakub@redhat.com>
2331 PR tree-optimization/56962
2332 * gimple-ssa-strength-reduction.c (record_increment): Only set
2333 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
2334 either rhs1 or rhs2 is equal to c->base_expr.
2336 2013-04-15 Richard Biener <rguenther@suse.de>
2338 PR tree-optimization/56933
2339 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
2341 (GROUP_READ_WRITE_DEPENDENCE): Remove.
2342 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
2343 * tree-vect-data-refs.c (vect_analyze_group_access): Move
2344 dependence check ...
2345 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
2347 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
2348 GROUP_READ_WRITE_DEPENDENCE.
2350 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2352 * emit-rtl.c (reset_all_used_flags): New function.
2353 (verify_rtl_sharing): Call reset_all_used_flags before and after
2354 performing the checks.
2356 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2358 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
2359 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
2360 * config/arm/constraints.md (De): New constraint.
2361 * config/arm/neon.md (anddi3_neon): Delete.
2362 (neon_vand<mode>): Expand to standard anddi3 pattern.
2363 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
2364 Move earlier in the file.
2365 (neon_inv_logic_op2): Likewise.
2366 (arm_anddi_operand_neon): New predicate.
2368 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2370 * configure.ac (gcc_cv_ld_as_needed): Set
2371 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
2372 Use -z ignore, -z record on *-*-solaris2*.
2373 (HAVE_LD_AS_NEEDED): Update comment.
2374 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
2375 * configure: Regenerate.
2376 * config.in: Regenerate.
2377 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
2378 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
2379 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
2380 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
2381 equivalents. Fix markup.
2382 * doc/tm.texi: Regenerate.
2384 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
2386 * config/i386/i386.opt: New option mstack-protector-guard=.
2387 * config/i386/i386-opts.h: Add enum stack_protector_guard.
2388 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
2389 TARGET_SSP_TLS_GUARD.
2390 * config/i386/i386.c (ix86_option_override_internal): Set
2391 ix86_stack_protector_guard.
2392 * config/i386/i386.md (stack_protect_set): Enable for
2393 TARGET_SSP_TLS_GUARD only.
2394 (stack_protect_set_<mode>): Ditto.
2395 (stack_protect_test): Ditto.
2396 (stack_protect_test_<mode>): Ditto.
2397 * doc/invoke.texi (i386 Option): Document.
2399 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
2402 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
2403 (S_MODES): Set H_MODE bit.
2404 (SF_MODES): Set only S_MODE and SF_MODE bits.
2405 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
2406 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
2407 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
2408 <MODE_FLOAT>: Likewise.
2410 2013-04-15 Joey Ye <joey.ye@arm.com>
2412 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
2414 2013-04-15 Joey Ye <joey.ye@arm.com>
2416 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
2418 (thumb_far_jump_used_p): Count instruction size and set
2421 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
2423 * reorg.c (fill_simple_delay_slots): Reindent block of code.
2424 * resource.c (mark_target_live_regs): Reformat conditional block.
2426 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2428 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
2429 notes, they are emitted only just before final.
2430 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
2432 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2434 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
2435 * cfgrtl.c (delete_insn): Call it here instead.
2436 * lra-spills.c (lra_final_code_change): Use delete_insn.
2437 * haifa-sched.c (sched_remove_insn): Likewise.
2438 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
2439 returning to the nop pool.
2440 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
2441 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
2443 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2445 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
2446 * doc/tm.texi: Regenerated.
2448 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
2450 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
2453 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2455 * df-core.c (df_find_def): Compare register numbers.
2456 (df_find_use): Likewise.
2458 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
2461 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
2462 lra_in_progress for return.
2464 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2466 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
2467 define_insn into define_insn_and_split and emit movsicc patterns.
2469 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2471 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
2473 2013-04-12 Richard Biener <rguenther@suse.de>
2475 * tree-pass.h (TODO_do_not_ggc_collect): New.
2476 * passes.c (execute_one_ipa_transform_pass): Honor
2477 TODO_do_not_ggc_collect.
2478 (execute_one_pass): Likewise.
2481 2013-04-10 Richard Biener <rguenther@suse.de>
2483 * passes.c (init_optimization_passes): Remove reload pass.
2484 * ira.c (do_reload): Merge into ...
2486 (rest_of_handle_reload): Remove.
2487 (pass_reload): Likewise.
2488 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2489 of reload for vzeroupper pass placement.
2491 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2493 PR tree-optimization/56918
2494 PR tree-optimization/56920
2495 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
2496 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
2497 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
2498 use wide_mul_with_sign method.
2500 2013-04-12 Richard Biener <rguenther@suse.de>
2502 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
2503 not be considered a gimple constant.
2505 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
2507 * fold-const.c (const_binop): Handle vector shifts by a scalar.
2508 (fold_binary_loc): Call const_binop also for mixed vector-scalar
2511 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
2512 Jakub Jelinek <jakub@redhat.com>
2514 * opts.c: Include diagnostic-color.h.
2515 (common_handle_option): Handle OPT_fdiagnostics_color_.
2516 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
2517 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
2518 (diagnostic-color.o): New.
2519 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
2520 (diagnostic_color_rule): New enum.
2521 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
2522 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
2523 the location string.
2524 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
2525 either NULL, or color kind.
2526 * diagnostic-color.c: New file.
2527 * diagnostic-color.h: New file.
2528 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
2530 * doc/invoke.texi (-fdiagnostics-color): Document.
2531 * pretty-print.h (pp_show_color): Define.
2532 (struct pretty_print_info): Add show_color field.
2533 * diagnostic.c: Include diagnostic-color.h.
2534 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
2535 macros. Colorize error:, warning: etc. strings and also the location
2537 (diagnostic_show_locus): Colorize the caret line.
2538 * pretty-print.c: Include diagnostic-color.h.
2539 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
2540 inside of %< %> quotes or quoted through q format modifier.
2542 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2544 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
2546 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2548 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
2550 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
2553 2013-04-11 Marek Polacek <polacek@redhat.com>
2555 PR tree-optimization/48184
2556 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
2558 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2560 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
2561 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
2562 (skip_simple_arithmetic): Tidy up.
2563 * tree.h (skip_simple_constant_arithmetic): Declare.
2565 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2567 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
2569 2013-04-11 Richard Biener <rguenther@suse.de>
2571 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2572 generate vector constants.
2574 2013-04-11 Richard Biener <rguenther@suse.de>
2576 PR tree-optimization/56878
2577 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
2578 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
2580 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2581 Prefer to align the DR with the most invariant base address.
2583 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2585 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
2588 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2590 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
2591 floating-point vector comparisons against 0.
2593 2013-04-11 Jakub Jelinek <jakub@redhat.com>
2595 PR tree-optimization/56899
2596 * fold-const.c (extract_muldiv_1): Apply distributive law
2597 only if TYPE_OVERFLOW_WRAPS (ctype).
2599 2013-04-11 Bin Cheng <bin.cheng@arm.com>
2602 * ira-costs.c (scan_one_insn): Check whether the source rtx of
2603 loading has side effect.
2605 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
2607 * config/sparc/sparc.c: Include tree-pass.h.
2608 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
2609 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
2610 head of file. Change return type. Split off gate function.
2611 (sparc_gate_work_around_errata): New function.
2612 (pass_work_around_errata): New pass definition.
2613 (insert_pass_work_around_errata) New pass insert definition to
2614 insert pass_work_around_errata just after delayed-branch scheduling.
2615 (sparc_option_override): Insert the pass.
2616 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
2618 2013-04-10 David S. Miller <davem@davemloft.net>
2620 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
2621 or -mcpu=hypersparc.
2623 * target.def (cstore_mode): New hook.
2624 * target.h: Include insn-codes.h
2625 * targhooks.c: Likewise.
2626 (default_cstore_mode): New function.
2627 * targhooks.h: Declare it.
2628 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
2629 * doc/tm.texi: Rebuild.
2630 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
2631 target hook, rather than inspecting the insn_data.
2632 * config/sparc/sparc.c (sparc_cstore_mode): New function.
2633 (TARGET_CSTORE_MODE): Redefine.
2634 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
2636 * config/sparc/predicates.md (cstore_result_operand): New special
2638 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
2639 Use it for operand 0.
2640 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
2641 (*snesi_special): Likewise.
2642 (*snesi_zero): Likewise.
2643 (*seqsi_zero): Likewise.
2644 (*sltu_insn): Likewise.
2645 (*sgeu_insn): Likewise.
2646 (*seqdi_special): Make operand 0 and comparison operation be of
2648 (*snedi_special): Likewise.
2649 (*snedi_special_vis3): Likewise.
2650 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
2651 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
2652 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
2653 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
2654 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
2655 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
2656 (*sltu_extend_sp64): Likewise.
2657 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
2658 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
2659 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
2660 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
2661 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
2663 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
2665 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
2666 (aarch64_start_file): Use the new function.
2668 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2669 Jason Merrill <jason@redhat.com>
2671 * common.opt: Add -gdwarf.
2672 * opts.c (common_handle_option): Handle it.
2673 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
2675 2013-04-10 Richard Biener <rguenther@suse.de>
2677 * passes.c (execute_todo): Do not call ggc_collect conditional here.
2678 (execute_one_ipa_transform_pass): But unconditionally here.
2679 (execute_one_pass): And here.
2680 (init_optimization_passes): Remove reload pass.
2681 * tree-pass.h (TODO_ggc_collect): Remove.
2682 (pass_reload): Likewise.
2683 * ira.c (do_reload): Merge into ...
2685 (rest_of_handle_reload): Remove.
2686 (pass_reload): Likewise.
2687 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2688 of reload for vzeroupper pass placement.
2689 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
2690 and todo_flags_finish of all passes.
2692 2013-04-10 Richard Biener <rguenther@suse.de>
2694 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
2695 first_const_oprnd field, rename first_def_type to first_op_type.
2696 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
2697 (vect_get_and_check_slp_defs): Always use the type of the
2698 operand. Allow mixed vect_external_def, vect_constant_def types.
2699 (vect_get_constant_vectors): Handle mixed vect_external_def,
2700 vect_constant_def types.
2702 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
2704 PR tree-optimization/55524
2705 * tree-ssa-math-opts.c
2706 (convert_mult_to_fma): Don't use an fms construct
2707 when we don't have an fms operation, but fnma, and it looks
2708 likely that we'll be able to use the latter.
2710 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2712 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
2714 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
2715 inline fail caused by overwritable functions.
2717 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
2719 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
2720 unnecessary bits in the constant power of two case.
2722 2013-04-10 Richard Biener <rguenther@suse.de>
2724 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
2725 broken code swapping operands.
2726 (vect_build_slp_tree): Do not compute load permutations here.
2727 (vect_analyze_slp_instance): Compute load permutations here,
2728 after building the SLP tree.
2730 2013-04-09 Christian Bruel <christian.bruel@st.com>
2732 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
2733 of next/prev_real_insn.
2735 2013-04-09 Jan Hubicka <jh@suse.cz>
2737 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2738 Drop aliased parameter.
2739 (function_and_variable_visibility): Do not handle alias pairs.
2740 * cgraph.c (varpool_externally_visible_p): Update prototype.
2741 * varpool.c (varpool_add_new_variable): Update.
2743 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2745 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
2747 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
2749 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
2751 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
2753 2013-04-09 Marek Polacek <polacek@redhat.com>
2755 PR tree-optimization/48762
2756 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
2758 2013-04-09 Richard Biener <rguenther@suse.de>
2760 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
2762 (vect_build_slp_tree): Likewise.
2763 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
2764 calculating the cost of a SLP instance.
2765 (vect_analyze_slp_instance): Use it from here, after building
2768 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2771 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
2772 expand_omp_for_static_chunk): Use simple_p = true in
2773 force_gimple_operand_gsi calls when assigning to addressable decls.
2775 2013-04-09 Jeff Law <law@redhat.com>
2777 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
2778 when the boolean was created by converting a wider object which
2779 had a boolean range.
2781 2013-04-09 Richard Biener <rguenther@suse.de>
2783 * tree-vectorizer.h (slp_void_p): Remove.
2784 (slp_tree): Typedef before _slp_tree declaration.
2785 (struct _slp_tree): Use a vector of slp_tree as children.
2786 (vect_get_place_in_interleaving_chain): Remove.
2787 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
2789 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
2791 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
2792 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2793 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2794 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
2795 Use slp_node instead of slp_void_p and adjust.
2797 2013-04-09 Richard Biener <rguenther@suse.de>
2799 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
2800 work that is not necessary.
2802 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2804 PR tree-optimization/56854
2805 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
2806 forward into clobber stmts if it would change MEM_REF lhs into
2809 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
2811 * tree.c (type_hash_lookup, type_hash_add): Make static.
2812 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
2814 2013-04-09 Richard Biener <rguenther@suse.de>
2816 * tree.h (unsave_expr_now): Remove.
2817 * tree-inline.c (mark_local_for_remap_r): Remove.
2818 (unsave_expr_1): Likewise.
2819 (unsave_r): Likewise.
2820 (unsave_expr_now): Likewise.
2821 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
2822 (propagate_tree_value): Likewise.
2824 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
2826 * doc/rtl.texi (sequence): Rewrite documentation to match the
2827 current use of SEQUENCE rtl objects.
2828 * rtl.def (SEQUENCE): Likewise.
2830 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
2831 Update documentation.
2832 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
2833 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
2835 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
2837 2013-04-08 Teresa Johnson <tejohnson@google.com>
2839 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
2840 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
2842 (estimate_edge_size_and_time): Add comment to suggest using rounding
2844 (estimate_node_size_and_time): Ditto.
2845 (remap_edge_change_prob): Use helper rounding divide methods.
2846 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
2847 (gimple_mod_pow2_value_transform): Ditto.
2848 (gimple_mod_subtract_transform): Ditto.
2849 (gimple_ic_transform): Ditto.
2850 (gimple_stringops_transform): Ditto.
2851 * stmt.c (conditional_probability): Ditto.
2852 (emit_case_dispatch_table): Ditto.
2853 * lto-cgraph.c (merge_profile_summaries): Ditto.
2854 * tree-optimize.c (execute_fixup_cfg): Ditto.
2855 * cfgcleanup.c (try_forward_edges): Ditto.
2856 * cfgloopmanip.c (scale_loop_profile): Ditto.
2858 (duplicate_loop_to_header_edge): Ditto.
2859 (lv_adjust_loop_entry_edge): Ditto.
2860 * tree-vect-loop.c (vect_transform_loop): Ditto.
2861 * profile.c (compute_branch_probabilities): Ditto.
2862 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
2863 * lto-streamer-in.c (input_cfg): Ditto.
2864 * gimple-streamer-in.c (input_bb): Ditto.
2865 * ipa-cp.c (update_profiling_info): Ditto.
2866 (update_specialized_profile): Ditto.
2867 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
2868 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
2870 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2871 (compute_trg_info): Ditto.
2872 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
2873 (purge_dead_edges): Ditto.
2874 * loop-unswitch.c (unswitch_loop): Ditto.
2875 * cgraphclones.c (cgraph_clone_edge): Ditto.
2876 (cgraph_clone_node): Ditto.
2877 * tree-inline.c (copy_bb): Ditto.
2878 (copy_edges_for_bb): Ditto.
2879 (initialize_cfun): Ditto.
2880 (copy_cfg_body): Ditto.
2881 (expand_call_inline): Ditto.
2883 2013-04-08 Kai Tietz <ktietz@redhat.com>
2885 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
2886 TARGET_CYGWIN64 by TARGET_64BIT.
2888 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2890 * config/epiphany/epiphany.md (GPR_1): New constant.
2891 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
2892 * config/epiphany/epiphany.c (gen_compare_reg):
2893 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
2894 is already in place.
2895 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
2896 Don't require being called during rtl expansion; If y operlaps r0,
2898 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
2899 (epiphany_expand_epilogue): Likewise.
2901 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
2902 Don't use CC_FPmode for ORDERED / UNORDERED.
2903 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
2905 * config/epiphany/constraints.md (CnL): New constraint.
2906 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
2907 * config/epiphany/predicates.md (add_operand): Allow 1024.
2909 * config/epiphany/epiphany.md (logical_op): New code iterator.
2910 (op_mnc): New code attribute.
2911 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
2912 (mov_f+1, mov_f+2): New peephole2 patterns.
2914 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
2915 (cstoresi4): Also allow re-use of zero result when doing a NE
2916 comparison to a non-zero operand.
2917 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2919 * config/epiphany/epiphany.md (<insn_opname>v2si3):
2920 Use gen_addsi3_i / gen_subsi3_i.
2922 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2926 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
2927 contain anything but clobbers, at most one __builtin_stack_restore,
2928 optionally debug stmts and final resx, and if it has at least one
2929 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
2930 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
2931 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
2932 which isn't defaut definition, remove them.
2933 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
2934 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
2935 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
2936 with MEM_REF LHS with SSA_NAME address.
2938 2013-04-08 Jeff Law <law@redhat.com>
2940 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
2942 2013-04-08 Richard Biener <rguenther@suse.de>
2944 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
2946 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
2947 determined vector type.
2948 (vect_analyze_data_refs): Likewise.
2949 (vect_get_new_vect_var): Adjust.
2950 (vect_create_destination_var): Preserve SSA name versions.
2951 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
2952 not dump anything here.
2954 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2956 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
2957 Add member lr_slot_known.
2958 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
2960 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
2961 Remove code that sets lr_slot_offset according to what a previous
2962 version of epiphany_emit_save_restore used to do.
2963 (epiphany_emit_save_restore): When doing an lr save or restore,
2964 set/verify lr_slot_known and lr_slot_offset.
2966 2013-04-08 Xinyu Qi <xyqi@marvell.com>
2969 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
2972 2013-04-08 Richard Biener <rguenther@suse.de>
2974 * alias.c (find_base_term): Fix thinko in previous change.
2976 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2978 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
2979 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
2980 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
2981 if possible to compute val.
2982 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
2983 For QImode integers don't require anything about precision. Use
2984 const_with_all_bytes_same to find out if the constant doesn't have
2985 repeated bytes in it.
2987 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2989 * config/s390/s390.c (s390_expand_insv): Only accept insertions
2992 2013-04-08 Marek Polacek <polacek@redhat.com>
2994 PR rtl-optimization/48182
2995 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
2998 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3001 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
3002 nuses, make sure we have a label.
3004 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3007 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
3008 (rs6000_emit_swdiv_low_precision): Remove.
3009 (rs6000_emit_swdiv): Rewrite to handle between one and four
3010 iterations of Newton-Raphson generally; modify required number of
3011 iterations for some cases.
3012 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
3014 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
3016 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
3017 set-but-unused variable.
3019 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
3020 basic blocks of released function bodies garbage-collectable.
3022 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
3023 (struct rtl_opt_pass): Add TODO_df_finish.
3025 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
3027 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3029 * config/arm/constraints.md (q): New constraint.
3030 * config/arm/ldrdstrd.md: New file.
3031 * config/arm/arm.md (ldrdstrd.md) New include.
3032 (arm_movdi): Use "q" instead of "r" constraint
3033 for double-word memory access.
3034 (movdf_soft_insn): Likewise.
3035 * config/arm/vfp.md (movdi_vfp): Likewise.
3036 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
3037 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
3038 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
3039 (mem_ok_for_ldrd_strd): Likewise.
3040 (output_move_double): Update assertion.
3042 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3044 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
3046 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3048 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
3049 define_insn_and_split.
3050 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
3052 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3054 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
3055 define_insn_and_split.
3056 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
3057 (shiftsi3_compare): New pattern.
3059 * config/arm/unspecs.md (UNSPEC_RRX): New.
3061 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3063 * config/arm/arm.md (negdi_extendsidi): New pattern.
3064 (negdi_zero_extendsidi): Likewise.
3066 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3068 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
3069 define_insn_and_split.
3070 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
3071 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
3073 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3075 * config/arm/arm.md (arm_subdi3): Convert define_insn into
3076 define_insn_and_split.
3077 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
3078 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
3080 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3082 * config/arm/arm.md (subsi3_carryin): New pattern.
3083 (subsi3_carryin_const): Likewise.
3084 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
3085 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
3087 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3089 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
3091 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3093 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
3094 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
3096 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3098 * config/arm/arm.c (arm_expand_builtin): Change fcode
3099 type to unsigned int.
3101 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3103 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
3105 2013-04-04 Ian Lance Taylor <iant@google.com>
3107 * doc/standards.texi (Standards): The Go frontend supports the Go 1
3110 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
3113 * df-scan.c (df_insn_delete): Disable failing assert.
3115 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3117 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
3118 New function prototype.
3119 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
3120 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
3121 (arm_builtin_vectorized_function): New function.
3123 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3125 * config/arm/arm_neon_builtins.def: New file.
3126 * config/arm/arm.c (neon_builtin_data): Move contents to
3127 arm_neon_builtins.def.
3128 (enum arm_builtins): Include neon builtin definitions.
3129 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
3130 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
3132 2013-04-04 Marek Polacek <polacek@redhat.com>
3134 PR tree-optimization/48186
3135 * predict.c (maybe_hot_frequency_p): Return false if
3136 HOT_BB_FREQUENCY_FRACTION is 0.
3137 (cgraph_maybe_hot_edge_p): Likewise.
3139 2013-04-04 Richard Biener <rguenther@suse.de>
3141 PR tree-optimization/56826
3142 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
3145 2013-04-04 Richard Biener <rguenther@suse.de>
3147 PR tree-optimization/56213
3148 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
3149 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
3151 2013-04-04 Richard Biener <rguenther@suse.de>
3153 PR tree-optimization/56837
3154 * tree-loop-distribution.c (classify_partition): For non-zero
3155 values require that the value has the same precision as its
3156 mode to be useful as memset value.
3158 2013-04-03 Nick Clifton <nickc@redhat.com>
3160 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
3161 (fmssf4): Use fmsf.s on E3V5 architectures.
3162 (fnmasf4): Use fnmaf.s on E3V5 architectures.
3163 (fnmssf4): Use fnmsf.s on E3V5 architectures.
3165 2013-04-03 Jeff Law <law@redhat.com>
3167 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
3168 (lra-eliminations.o): Likewise.
3170 2013-04-03 Teresa Johnson <tejohnson@google.com>
3172 * gcov-io.c (compute_working_sets): Moved most of body of old
3173 compute_working_sets here from profile.c.
3174 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
3175 (gcov_working_set_t): Moved typedef here from basic-block.h
3176 (compute_working_set): Declare.
3177 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
3178 (get_working_sets): Renamed from compute_working_set,
3179 replace most of body with call to new compute_working_sets.
3180 (get_exec_counts): Replace call to compute_working_sets
3181 to get_working_sets.
3182 * profile.h (get_working_sets): Renamed from compute_working_set.
3183 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
3184 to get_working_sets.
3185 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
3186 * gcov-dump.c (dump_working_sets): New function.
3188 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
3190 * hwint.c (sext_hwi, zext_hwi): New functions.
3191 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
3192 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
3193 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
3194 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
3195 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
3196 (sext_hwi, zext_hwi): New functions.
3198 2013-04-03 Jeff Law <law@redhat.com>
3200 PR tree-optimization/56799
3201 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
3202 back test for widening conversion erroneously dropped in prior change.
3204 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3207 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
3208 instead of next_real_insn.
3210 2013-04-03 Marek Polacek <polacek@redhat.com>
3213 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
3215 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3218 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
3220 (thumb1_output_casesi): Likewise.
3221 (thumb2_output_casesi): Likewise.
3223 2013-04-03 Richard Biener <rguenther@suse.de>
3225 PR tree-optimization/56817
3226 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3228 (tree_unroll_loops_completely_1): ... new function to manually
3229 walk the loop tree, properly defering outer loops of unrolled
3230 loops to later iterations.
3232 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3234 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
3235 (vectorizable_load): Likewise.
3236 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3237 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
3239 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3241 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
3244 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3246 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
3248 2013-04-03 Bin Cheng <bin.cheng@arm.com>
3250 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
3252 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3254 PR tree-optimization/56790
3255 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
3258 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
3260 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3262 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
3263 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
3266 2013-04-03 Jakub Jelinek <jakub@redhat.com>
3269 * tree.h (force_folding_builtin_constant_p): New decl.
3270 * builtins.c (force_folding_builtin_constant_p): New variable.
3271 (fold_builtin_constant_p): Fold immediately also if
3272 force_folding_builtin_constant_p.
3274 2013-04-03 Richard Biener <rguenther@suse.de>
3276 PR tree-optimization/56812
3277 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3278 DRs of the same interleaving chain are independent.
3280 2013-04-02 Jason Merrill <jason@redhat.com>
3282 * gdbinit.in (pbb): Use debug fn.
3284 2013-04-02 Lawrence Crowl <crowl@google.com>
3286 * sese.h (struct ivtype_map_elt_s): Remove unused.
3287 (extern debug_ivtype_map): Remove unused.
3288 (extern eq_ivtype_map_elts): Remove unused.
3289 * sese.c (debug_ivtype_map): Removed unused.
3290 (debug_ivtype_map_1): Removed unused.
3291 (debug_ivtype_elt): Remove unused.
3292 (eq_ivtype_map_elts): Remove unused.
3295 2013-04-02 Kai Tietz <ktietz@redhat.com>
3298 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
3299 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
3300 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
3302 (legitimize_pe_coff_symbol): Likewise.
3303 (is_imported_p): New helper-function.
3304 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
3305 for Windows x64 targets.
3306 (ix86_expand_prologue): Optimize for pe-coff targets.
3307 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
3308 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
3309 medium/large code-model.
3310 (legitimize_pic_address): Likewise.
3311 (legitimize_tls_address): Likewise.
3312 (ix86_expand_call): Likewise.
3313 (x86_output_mi_thunk): Likewise.
3314 (get_dllimport_decl): Add new beimport argument.
3315 (construct_plt_address): Don't assert for x64 pe-coff targets.
3316 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
3318 (SYMBOL_FLAG_STUBVAR): New macro.
3319 (SYMBOL_REF_STUBVAR_P): Likewise.
3320 * config/i386/winnt.c (stub_list): New structure.
3321 (stub_head): New local variable.
3322 (i386_pe_record_stub): New function.
3323 (i386_pe_file_end): Emit refptr-stubs.
3325 2013-04-02 Jakub Jelinek <jakub@redhat.com>
3327 PR rtl-optimization/56745
3328 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
3329 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
3332 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
3333 and both of them are MEM_REFs, just compare first argument for
3334 equality and attempt to deal even with differing offsets.
3337 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
3338 of gimple_clobber_p to be MEM_REF.
3339 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
3340 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
3341 after gimplification.
3342 * asan.c (get_mem_ref_of_assignment): Don't instrument
3343 gimple_clobber_p stmts.
3344 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
3345 gimple_clobber_p stmt if they have MEM_REF lhs and
3346 are dead because of another gimple_clobber_p stmt.
3347 * tree-ssa-live.c (clear_unused_block_pointer): Treat
3348 gimple_clobber_p stmts like debug stmts.
3349 (remove_unused_locals): Remove clobbers with MEM_REF lhs
3350 that refer to unused VAR_DECLs or uninitialized values.
3351 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
3352 gimple_clobber_p stmts if they refer to removed parameters.
3353 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
3356 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
3358 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
3359 using SWI48 mode attribute.
3361 2013-04-02 Wei Mi <wmi@google.com>
3363 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
3364 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
3365 *<rotate_insn><mode>3_mask in i386.md.
3367 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
3369 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
3371 2013-04-02 Richard Biener <rguenther@suse.de>
3373 PR tree-optimization/56778
3374 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3375 Runtime alias tests are not supported for gather loads.
3376 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
3377 stmts referenced from SSA operands before updating SSA form.
3379 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
3380 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3382 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
3383 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
3384 * config/arm/cortex-a53.md: New file.
3385 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
3386 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
3387 * config/arm/arm.c (arm_issue_rate): Likewise.
3388 * config/arm/arm-tune.md: Regenerate
3389 * config/arm/arm-tables.opt: Regenerate.
3390 * config/arm/arm-cores.def: Add cortex-a53.
3392 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
3394 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
3397 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
3399 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
3400 scalar load/store operations using B/H registers.
3401 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
3403 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
3405 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
3407 * config/aarch64/aarch64.c
3408 (aarch64_simd_scalar_immediate_valid_for_move): New.
3409 * config/aarch64/aarch64-protos.h
3410 (aarch64_simd_scalar_immediate_valid_for_move): New.
3411 * config/aarch64/constraints.md (Dh, Dq): New.
3412 * config/aarch64/iterators.md (hq): New.
3414 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
3416 * reorg.c (get_branch_condition): Deal with conditional returns.
3417 (fill_simple_delay_slots): Remove dead code dealing with jumps.
3419 2013-04-01 Wei Mi <wmi@google.com>
3421 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
3422 Truncate operand 2 using %b asm operand modifier.
3423 (*<shift_insn><mode>3_mask): Ditto.
3424 (*<rotate_insn><mode>3_mask): Ditto.
3426 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
3429 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
3431 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
3433 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
3435 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
3437 2013-03-30 Lawrence Crowl <crowl@google.com>
3439 * dse.c (clear_alias_sets): Remove never set.
3440 (disqualified_clear_alias_sets): Remove never set.
3441 (clear_alias_mode_pool): Remove never set.
3442 (dse_step0): Remove condition that is never true.
3443 (canon_address): Remove condition that is never true.
3444 (dse_step7): Remove condition that is never true.
3445 (rest_of_handle_dse): Remove condition that is never true.
3446 (rest_of_handle_dse::did_global): Remove never read from above.
3447 (dse_step2_spill): Remove never called from above.
3448 (dse_step5_spill): Remove never called from above.
3450 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
3452 * doc/md.texi (Standard Names) <casesi>: Update documentation for
3453 JUMP_TABLE_DATA changes.
3454 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
3455 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
3456 (Insns) <jump_table_data>: New entry.
3457 * doc/tm.texi: Regenerate.
3459 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
3461 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
3462 for table jump at the end of a basic block using tablejump_p.
3463 * targhooks.c (default_invalid_within_doloop): Likewise.
3464 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
3465 target hook implementation that is identical to the default hook.
3466 (rs6000_invalid_within_doloop): Remove.
3468 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
3469 unused variable from tablejump_p call.
3471 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
3472 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
3473 (INSN_DELETED_P): Likewise.
3474 (emit_jump_table_data): New prototype.
3475 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
3476 after 4th as unused.
3477 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
3478 * sched-vis.c (print_insn): Likewise.
3479 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
3480 insn for compatibility with back ends that use next_active_insn to
3481 identify jump table data.
3482 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
3483 (remove_insn): Likewise.
3484 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
3486 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
3487 (emit_jump_table_data): New function.
3489 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
3490 basic block, a JUMP_TABLE_DATA never is.
3491 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
3492 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
3493 off from code handling real insns.
3494 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
3495 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
3496 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
3497 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
3498 is not a NONDEBUG_INSN_P.
3499 * ira-costs.c (scan_one_insn): Likewise.
3500 * jump.c (mark_all_labels): Likewise.
3501 (mark_jump_label_1): Likewise.
3502 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3503 * lra.c (get_insn_freq): Expect all insns reaching here to be in
3505 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
3506 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
3507 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
3508 JUMP_TABLE_DATA_P insns.
3509 (calculate_elim_costs_all_insns): Likewise.
3510 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
3511 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
3512 (delete_output_reload): Code style fixups.
3513 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
3514 insn flags on this non-insn.
3515 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
3516 as scheduling barriers, for pre-change compatibility.
3517 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
3518 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
3520 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
3521 redundant JUMP_TABLE_DATA_P test.
3522 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
3523 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3524 (frv_for_each_packet): Likewise.
3525 * config/i386/i386.c (min_insn_size): Likewise.
3526 (ix86_avoid_jump_mispredicts): Likewise.
3527 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3528 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
3529 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3530 (mips16_insn_length): Robustify.
3531 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
3532 (mips16_split_long_branches): Likewise.
3533 * config/pa/pa.c (pa_combine_instructions): Likewise.
3534 * config/rs6000/rs6000.c (get_next_active_insn): Treat
3535 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
3536 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
3537 as contributing to pool range lengths.
3538 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
3539 Remove redundant JUMP_TABLE_DATA_P test.
3540 (sh_loop_align): Likewise.
3541 (split_branches): Likewise.
3542 (sh_insn_length_adjustment): Likewise.
3543 * config/spu/spu.c (get_branch_target): Likewise.
3545 2013-03-29 Jan Hubicka <jh@suse.cz>
3547 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
3548 gcov streaming; stream hot bb threshold to ltrans.
3549 * predict.c (get_hot_bb_threshold): Break out from ....
3550 (maybe_hot_count_p): ... here.
3551 (set_hot_bb_threshold): New function.
3552 * lto-section-in.c (lto_section_name): Add profile.
3553 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
3554 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
3556 (histogram_entry): New structure.
3557 (histogram, histogram_pool): New global vars.
3558 (histogram_hash): New structure.
3559 (histogram_hash::hash): New method.
3560 (histogram_hash::equal): Likewise.
3561 (account_time_size): New function.
3562 (cmp_counts): New function.
3563 (dump_histogram): New function.
3564 (ipa_profile_generate_summary): New function.
3565 (ipa_profile_write_summary): New function.
3566 (ipa_profile_read_summary): New function.
3567 (ipa_profile): Decide on threshold.
3568 (pass_ipa_profile): Add ipa_profile_write_summary and
3569 ipa_profile_read_summary.
3570 * Makefile.in (ipa.o): Update dependencies.
3571 * lto-streamer.h (LTO_section_ipa_profile): New section.
3573 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
3575 * tree.h (VAR_P): New.
3577 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
3580 * doc/invoke.texi ([-fwhole-program]): Fix typo.
3582 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
3584 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
3585 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3586 (control_flow_insn_p): Likewise.
3587 * cfgrtl.c (duplicate_insn_chain): Likewise.
3588 * final.c (get_attr_length_1): Likewise.
3589 (shorten_branches): Likewise.
3590 (final_scan_insn): Likewise.
3591 * function.c (instantiate_virtual_regs): Likewise.
3592 * gcse.c (insert_insn_end_basic_block): Likewise.
3593 * ira-costs.c (scan_one_insn): Likewise.
3594 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3595 * lra.c (check_rtl): Likewise.
3596 * reload1.c (elimination_costs_in_insn): Likewise.
3597 * reorg.c (follow_jumps): Likewise.
3599 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
3600 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3601 (thumb_far_jump_used_p): Likewise.
3602 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
3603 (workaround_speculation): Likewise.
3604 (add_sched_insns_for_speculation): Likewise.
3605 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
3606 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3607 (frv_for_each_packet): Likewise.
3608 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
3609 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
3610 (final_emit_insn_group_barriers): Likewise.
3611 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3612 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3613 (mips16_insn_length): Likewise.
3614 * config/pa/pa.c (pa_reorg): Likewise.
3615 (pa_combine_instructions): Likewise.
3616 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
3617 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
3618 (sh_reorg): Likewise.
3619 (split_branches): Likewise.
3620 * config/spu/spu.c (get_branch_target): Likewise.
3622 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
3625 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
3627 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
3628 Fix declaration name.
3630 2013-03-28 Lawrence Crowl <crowl@google.com>
3632 * graphds.h (struct graph.indicies): Remove unused.
3633 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
3634 (SCOP_ORIGINAL_PDDRS): Remove unused.
3635 * sese.h (extern insert_loop_close_phis): Removed unused.
3636 (extern insert_guard_phis): Removed unused.
3637 (extern ivtype_map_elt_info): Removed unused.
3638 (new_ivtype_map_elt): Removed unused.
3639 * sese.c (ivtype_map_elt_info): Removed unused.
3641 2013-03-28 Lawrence Crowl <crowl@google.com>
3643 * Makefile.in: Add several missing include dependences.
3645 (test-dump.o): New. This object is not added to any executable,
3646 but is present for ad-hoc testing.
3648 (debug (const bitmap_head_def &)): New.
3649 (debug (const bitmap_head_def *)): New.
3651 (extern debug (const bitmap_head_def &)): New.
3652 (extern debug (const bitmap_head_def *)): New.
3654 (debug (edge_def &)): New.
3655 (debug (edge_def *)): New.
3657 (debug (basic_block_def &)): New.
3658 (debug (basic_block_def *)): New.
3660 (dump_node (const_tree, int, FILE *)): Correct source file.
3662 (debug (die_struct &)): New.
3663 (debug (die_struct *)): New.
3665 (extern debug (die_struct &)): New.
3666 (extern debug (die_struct *)): New.
3667 * gimple-pretty-print.c
3668 (debug (gimple_statement_d &)): New.
3669 (debug (gimple_statement_d *)): New.
3670 * gimple-pretty-print.h
3671 (extern debug (gimple_statement_d &)): New.
3672 (extern debug (gimple_statement_d *)): New.
3674 (debug (ira_allocno_copy &)): New.
3675 (debug (ira_allocno_copy *)): New.
3676 (debug (ira_allocno &)): New.
3677 (debug (ira_allocno *)): New.
3679 (extern debug (ira_allocno_copy &)): New.
3680 (extern debug (ira_allocno_copy *)): New.
3681 (extern debug (ira_allocno &)): New.
3682 (extern debug (ira_allocno *)): New.
3684 (debug (live_range &)): New.
3685 (debug (live_range *)): New.
3687 (debug (lra_live_range &)): New.
3688 (debug (lra_live_range *)): New.
3690 (debug (lra_live_range &)): New.
3691 (debug (lra_live_range *)): New.
3693 (debug (omega_pb_d &)): New.
3694 (debug (omega_pb_d *)): New.
3696 (extern debug (omega_pb_d &)): New.
3697 (extern debug (omega_pb_d *)): New.
3699 (debug (const rtx_def &)): New.
3700 (debug (const rtx_def *)): New.
3702 (debug_tree (tree): Move within file.
3703 (debug_raw (const tree_node &)): New.
3704 (debug_raw (const tree_node *)): New.
3705 (dump_tree_via_hooks (const tree_node *, int)): New.
3706 (debug (const tree_node &)): New.
3707 (debug (const tree_node *)): New.
3708 (debug_verbose (const tree_node &)): New.
3709 (debug_verbose (const tree_node *)): New.
3710 (debug_head (const tree_node &)): New.
3711 (debug_head (const tree_node *)): New.
3712 (debug_body (const tree_node &)): New.
3713 (debug_body (const tree_node *)): New.
3714 (debug_vec_tree (tree): Move and reimplement in terms of dump.
3715 (debug (vec<tree, va_gc> &)): New.
3716 (debug (vec<tree, va_gc> *)): New.
3718 (extern debug (const rtx_def &)): New.
3719 (extern debug (const rtx_def *)): New.
3721 (debug_raw (simple_bitmap_def &)): New.
3722 (debug_raw (simple_bitmap_def *)): New.
3723 (debug (simple_bitmap_def &)): New.
3724 (debug (simple_bitmap_def *)): New.
3726 (extern debug (simple_bitmap_def &)): New.
3727 (extern debug (simple_bitmap_def *)): New.
3728 (extern debug_raw (simple_bitmap_def &)): New.
3729 (extern debug_raw (simple_bitmap_def *)): New.
3731 (debug (vinsn_def &)): New.
3732 (debug (vinsn_def *)): New.
3733 (debug_verbose (vinsn_def &)): New.
3734 (debug_verbose (vinsn_def *)): New.
3735 (debug (expr_def &)): New.
3736 (debug (expr_def *)): New.
3737 (debug_verbose (expr_def &)): New.
3738 (debug_verbose (expr_def *)): New.
3739 (debug (vec<rtx> &)): New.
3740 (debug (vec<rtx> *)): New.
3742 (extern debug (vinsn_def &)): New.
3743 (extern debug (vinsn_def *)): New.
3744 (extern debug_verbose (vinsn_def &)): New.
3745 (extern debug_verbose (vinsn_def *)): New.
3746 (extern debug (expr_def &)): New.
3747 (extern debug (expr_def *)): New.
3748 (extern debug_verbose (expr_def &)): New.
3749 (extern debug_verbose (expr_def *)): New.
3750 (extern debug (vec<rtx> &)): New.
3751 (extern debug (vec<rtx> *)): New.
3753 (_list_iter_cond_expr): Make inline instead of static.
3755 (debug (sreal &)): New.
3756 (debug (sreal *)): New.
3758 (extern debug (sreal &)): New.
3759 (extern debug (sreal *)): New.
3761 (extern debug_raw (const tree_node &)): New.
3762 (extern debug_raw (const tree_node *)): New.
3763 (extern debug (const tree_node &)): New.
3764 (extern debug (const tree_node *)): New.
3765 (extern debug_verbose (const tree_node &)): New.
3766 (extern debug_verbose (const tree_node *)): New.
3767 (extern debug_head (const tree_node &)): New.
3768 (extern debug_head (const tree_node *)): New.
3769 (extern debug_body (const tree_node &)): New.
3770 (extern debug_body (const tree_node *)): New.
3771 (extern debug (vec<tree, va_gc> &)): New.
3772 (extern debug (vec<tree, va_gc> *)): New.
3774 (debug (struct loop &)): New.
3775 (debug (struct loop *)): New.
3776 (debug_verbose (struct loop &)): New.
3777 (debug_verbose (struct loop *)): New.
3778 * tree-dump.c: Add header dependence.
3780 (extern debug (struct loop &)): New.
3781 (extern debug (struct loop *)): New.
3782 (extern debug_verbose (struct loop &)): New.
3783 (extern debug_verbose (struct loop *)): New.
3785 (debug (data_reference &)): New.
3786 (debug (data_reference *)): New.
3787 (debug (vec<data_reference_p> &)): New.
3788 (debug (vec<data_reference_p> *)): New.
3789 (debug (vec<ddr_p> &)): New.
3790 (debug (vec<ddr_p> *)): New.
3792 (extern debug (data_reference &)): New.
3793 (extern debug (data_reference *)): New.
3794 (extern debug (vec<data_reference_p> &)): New.
3795 (extern debug (vec<data_reference_p> *)): New.
3796 (extern debug (vec<ddr_p> &)): New.
3797 (extern debug (vec<ddr_p> *)): New.
3799 (debug (pt_solution &)): New.
3800 (debug (pt_solution *)): New.
3802 (extern debug (pt_solution &)): New.
3803 (extern debug (pt_solution *)): New.
3805 (debug (_var_map &)): New.
3806 (debug (_var_map *)): New.
3807 (debug (tree_live_info_d &)): New.
3808 (debug (tree_live_info_d *)): New.
3810 (extern debug (_var_map &)): New.
3811 (extern debug (_var_map *)): New.
3812 (extern debug (tree_live_info_d &)): New.
3813 (extern debug (tree_live_info_d *)): New.
3815 2013-03-28 Jan Hubicka <jh@suse.cz>
3817 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
3819 2013-03-28 Ian Bolton <ian.bolton@arm.com>
3821 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
3822 record only when desired or required.
3824 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
3826 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
3827 *vec_extractv2di_1_rex64. Use x64 isa attribute.
3829 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3831 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
3832 (*andsi3_compare0_uxtw): New pattern.
3833 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
3834 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
3836 2013-03-28 Jan Hubicka <jh@suse.cz>
3838 * data-streamer-in.c (streamer_read_gcov_count): New function.
3839 * gimple-streamer-out.c: Include value-prof.h.
3840 (output_gimple_stmt): Output histogram.
3841 (output_bb): Use streamer_write_gcov_count.
3842 * value-prof.c: Include data-streamer.h
3843 (dump_histogram_value): Add HIST_TYPE_MAX.
3844 (stream_out_histogram_value): New function.
3845 (stream_in_histogram_value): New function.
3846 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
3847 (stream_out_histogram_value, stream_in_histogram_value): Declare.
3848 * data-streamer-out.c (streamer_write_gcov_count): New function.
3849 (streamer_write_gcov_count_stream): New function.
3850 * lto-cgraph.c (lto_output_edge): Update counter streaming.
3851 (lto_output_node): Likewise.
3852 (input_node, input_edge): Likewise.
3853 * lto-streamer-out.c (output_cfg): Update streaming.
3854 * lto-streamer-in.c (input_cfg): Likewise.
3855 * data-streamer.h (streamer_write_gcov_count,
3856 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
3857 * gimple-streamer-in.c: Include value-prof.h
3858 (input_gimple_stmt): Input histograms.
3859 (input_bb): Update profile streaming.
3861 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3863 * genmodes.c (emit_max_int): New function.
3864 (emit_insn_modes_h): Added call to emit_max_function.
3865 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
3867 * machmode.def: Fixed comment.
3869 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
3871 * combine.c (try_combine): Removed useless assert.
3872 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
3874 2013-03-28 Marek Polacek <polacek@redhat.com>
3875 Richard Biener <rguenther@suse.de>
3877 PR tree-optimization/56695
3878 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
3879 build signed result of a vector comparison.
3880 * tree-cfg.c (verify_gimple_comparison): Check that a result
3881 of a vector comparison has signed type.
3883 2013-03-28 Richard Biener <rguenther@suse.de>
3885 PR tree-optimization/37021
3886 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
3887 do not restrict gaps between groups.
3888 * tree-vect-stmts.c (vectorizable_load): Properly account for
3889 a gap between groups.
3891 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
3893 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
3894 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
3897 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
3899 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
3900 * doc/extend.texi (Named Address Spaces): Ditto.
3901 (Variable Attributes): Ditto.
3903 2013-03-27 Kai Tietz <ktietz@redhat.com>
3905 * config.build: Add support for cygwin x64 target.
3906 * config.gcc: Likewise.
3907 * config.host: Likewise.
3908 * configure.ac: Likewise
3909 * configure: Regenerated.
3911 2013-03-27 Kai Tietz <ktietz@redhat.com>
3913 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
3914 * config/i386/t-cygwin-w64: New file.
3915 * config/i386/cygwin-w64.h: New file.
3916 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
3917 and add support for x64-cygwin target.
3918 (CPP_SPEC): Likewise.
3919 (CXX_WRAP_SPEC_LIST): Undefine before define.
3920 (LIBGCJ_SONAME): Use 15 as version.
3922 2013-03-27 Richard Biener <rguenther@suse.de>
3924 PR tree-optimization/56716
3925 * tree-ssa-structalias.c (perform_var_substitution): Adjust
3926 dumping for ref nodes.
3928 2013-03-27 Martin Jambor <mjambor@suse.cz>
3930 PR tree-optimization/55334
3931 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
3932 restricted pointers to arrays.
3934 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3936 * Makefile.in (.SUFFIXES): Add .cc.
3937 (.c.o): Apply same recipe for implicit rule .cc.o.
3939 2013-03-27 Richard Biener <rguenther@suse.de>
3941 PR tree-optimization/37021
3942 * tree-vect-data-refs.c (vect_check_strided_load): Allow
3943 REALPART/IMAGPART_EXPRs around the supported refs.
3944 * tree-ssa-structalias.c (find_func_aliases): Assume that
3945 floating-point values are not used to transfer pointers.
3947 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3949 * target.def (TARGET_HAS_IFUNC_P): New target hook.
3950 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
3951 * doc/tm.texi: Regenerate.
3952 * targhooks.h (default_has_ifunc_p): New.
3953 * targhooks.c (default_has_ifunc_p): Ditto.
3954 * config/linux-protos.h: New file.
3955 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
3956 this hook for linux which disables support of indirect functions in
3958 * config/linux-android.c: New file.
3959 * config/t-linux-android.c: Ditto.
3960 * config.gcc: Added new object file linux-android.o.
3961 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
3962 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
3963 * varasm.c (do_assemble_alias): Likewise.
3964 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
3965 doesn't support indirect functions.
3966 * configure: Regenerate.
3968 2013-03-27 Bin Cheng <bin.cheng@arm.com>
3971 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
3972 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
3975 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3977 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
3979 2013-03-27 Terry Guo <terry.guo@arm.com>
3981 * config/arm/arm-cores.def: Added core cortex-r7.
3982 * config/arm/arm-tune.md: Regenerated.
3983 * config/arm/arm-tables.opt: Regenerated.
3984 * doc/invoke.texi: Added entry for core cortex-r7.
3986 2013-03-27 Walter Lee <walt@tilera.com>
3988 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3989 double-decrement of next_scratch_regno.
3991 2013-03-27 Walter Lee <walt@tilera.com>
3993 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3995 (insn_v1mulus): Ditto.
3996 (insn_v2muls): Ditto.
3998 2013-03-27 Walter Lee <walt@tilera.com>
4000 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
4001 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
4003 2013-03-27 Walter Lee <walt@tilera.com>
4005 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
4006 (*sibcall_value): Ditto.
4008 2013-03-27 Walter Lee <walt@tilera.com>
4010 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
4011 (insn_mnz_v8qi): ... this ...
4012 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
4014 (insn_v<n>mnz): Replaced by ...
4015 (insn_v1mnz): ... this ...
4016 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
4018 (insn_mz_<mode>): Replaced by ...
4019 (insn_mz_v8qi): ... this ...
4020 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
4022 (insn_v<n>mz): Replaced by ...
4023 (insn_v1mz): ... this ...
4024 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
4027 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
4029 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
4031 2013-03-26 Roland McGrath <mcgrathr@google.com>
4033 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
4034 than fprintf with a non-constant, non-format string.
4036 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
4038 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
4039 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
4040 operand 0 predicate.
4041 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
4042 attribute. Use general_x64nomem_operand as operand 1 predicate.
4043 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
4044 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4045 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
4046 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4047 (mov<mode>_insv_1): Remove expander. Merge insn with
4048 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
4049 Use general_x64nomem_operand as operand 1 predicate.
4050 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
4051 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
4052 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4053 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
4054 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
4055 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
4056 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4057 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
4058 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
4059 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
4060 (general_x64nomem_operand): Ditto.
4062 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
4064 * config/rtems.opt: Add -pthread option.
4066 2013-03-26 Richard Biener <rguenther@suse.de>
4068 * alias.c (find_base_term): Avoid redundant and not used recursion.
4069 (base_alias_check): Get the initial base term from the caller.
4070 (true_dependence_1): Compute and pass base terms to base_alias_check.
4071 (write_dependence_p): Likewise.
4072 (may_alias_p): Likewise.
4074 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
4076 * config/aarch64/aarch64.c (aarch64_classify_address): Support
4077 PC-relative load in SI modes and above only.
4079 2013-03-26 Xinyu Qi <xyqi@marvell.com>
4081 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
4082 * config/arm/iwmmxt.md (WCGR0): Update.
4083 (WCGR1, WCGR2, WCGR3): Likewise.
4085 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
4087 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
4088 Use x64 and nox64 isa attributes.
4090 2013-03-26 Richard Biener <rguenther@suse.de>
4092 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4093 alignment computations and rely on get_object_alignment_1
4094 for the !TYPE_P case.
4095 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
4097 2013-03-26 Walter Lee <walt@tilera.com>
4099 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
4100 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
4102 2013-03-25 Jeff Law <law@redhat.com>
4104 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
4105 check for INTEGRAL_TYPE_P that was missing due to checking in
4106 wrong version of prior patch.
4108 2013-03-25 Walter Lee <walt@tilera.com>
4110 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
4111 TILEGX_INSN_SHUFFLEBYTES1.
4112 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
4114 (tilegx_builtins): Ditto.
4115 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
4117 2013-03-25 Walter Lee <walt@tilera.com>
4119 * config/tilegx/tilegx.md (floatsisf2): New pattern.
4120 (floatunssisf2): New pattern.
4121 (floatsidf2): New pattern.
4122 (floatunssidf2): New pattern.
4124 2013-03-25 Walter Lee <walt@tilera.com>
4126 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
4127 tests for constraint J, K, N, P.
4129 2013-03-25 Walter Lee <walt@tilera.com>
4131 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
4132 Use indirect/pcrel encoding.
4133 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
4136 2013-03-25 Steve Ellcey <sellcey@mips.com>
4138 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
4139 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
4140 * config/mips/mips.c (mips_option_override): Set IMADD default.
4141 * config/mips/mips.h (PTF_AVOID_IMADD): New.
4142 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
4143 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
4144 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
4145 * doc/invoke.texi (-mimadd/-mno-imadd): New.
4147 2013-03-25 Jeff Law <law@redhat.com>
4149 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
4150 slightly to avoid creating and folding useless trees. Simplify
4151 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
4153 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
4155 * config/i386/i386.md (*zero_extendsidi2): Merge with
4156 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
4157 * config/i386/predicates.md (x86_64_zext_operand): Rename from
4158 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
4159 targets. Clarify comment.
4161 2013-03-25 Martin Jambor <mjambor@suse.cz>
4163 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
4164 pass-through jump functions differently.
4165 (ipa_read_jump_function): Likewise. Also use setter functions to set
4168 2013-03-25 Martin Jambor <mjambor@suse.cz>
4170 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
4171 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
4173 (ipa_get_indirect_edge_target): New function.
4174 (devirtualization_time_bonus): New parameter known_aggs, pass it to
4175 ipa_get_indirect_edge_target. Update all callers.
4176 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
4177 ipa_get_indirect_edge_target_1 instead of calling
4178 ipa_get_indirect_edge_target.
4179 (create_specialized_node): Pass aggvlas to
4180 ipcp_discover_new_direct_edges.
4182 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4184 * config/arm/arm.md (f_sels, f_seld): New types.
4185 (*cmov<mode>): New pattern.
4186 * config/arm/predicates.md (arm_vsel_comparison_operator): New
4189 2013-03-25 Kai Tietz <ktietz@redhat.com>
4191 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
4192 POSIX-printf for mingw-hosted builds.
4194 2013-03-25 Richard Biener <rguenther@suse.de>
4197 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
4198 must-not-throw stmt location.
4200 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4202 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
4203 Emit load-acquire versions when acq is true.
4204 (arm_emit_store_exclusive): Add rel parameter.
4205 Emit store-release versions when rel is true.
4206 (arm_split_compare_and_swap): Use acquire-release instructions
4208 of barriers when appropriate.
4209 (arm_split_atomic_op): Likewise.
4210 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
4211 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
4212 (VUNSPEC_SLX): Likewise.
4213 (VUNSPEC_LDA): Likewise.
4214 (VUNSPEC_STL): Likewise.
4215 * config/arm/sync.md (atomic_load<mode>): New pattern.
4216 (atomic_store<mode>): Likewise.
4217 (arm_load_acquire_exclusive<mode>): Likewise.
4218 (arm_load_acquire_exclusivesi): Likewise.
4219 (arm_load_acquire_exclusivedi): Likewise.
4220 (arm_store_release_exclusive<mode>): Likewise.
4222 2013-03-25 Catherine Moore <clm@codesourcery.com>
4224 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
4225 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
4226 * config/mip/predicates.md (lwsp_swsp_operand,
4227 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
4228 sb16_operand, db4_operand, db7_operand, ib3_operand,
4229 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
4230 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
4231 andi16_operand): New predicates.
4232 * config/mips/mips.md (compression): New attribute.
4233 (enabled): New attribute.
4234 (length): Consider compression in computing length.
4235 (shift_compression): New code attribute.
4236 (*add<mode>3): New operands. Record compression.
4237 (sub<mode>3): Likewise.
4238 (one_cmpl<mode>2): Likewise.
4239 (*and<mode>3): Likewise.
4240 (*ior<mode>3): Likewise.
4241 (unnamed pattern for xor): Likewise.
4242 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
4243 (*<optab><mode>3): Likewise.
4244 (*mov<mode>_internal: Likewise.
4245 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
4246 (mips_unsigned_immediate_p): New.
4247 (umips_lwsp_swsp_address_p): New.
4248 (m16_based_address_p): New.
4249 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
4250 (mips_unsigned_immediate_p): New prototype.
4251 (lwsp_swsp_address_p): New prototype.
4252 (m16_based_address_p): New prototype.
4253 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
4254 (mips_signed_immediate_p): New function.
4255 (m16_based_address_p): New function.
4256 (lwsp_swsp_address_p): New function.
4257 (mips_print_operand_punctuation): Recognize short delay slot insns
4258 for microMIPS.add<mode>3"
4260 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4263 * config/arm/iterators.md (v_cmp_result): New mode attribute.
4264 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
4266 2013-03-25 Richard Biener <rguenther@suse.de>
4268 PR tree-optimization/56689
4269 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
4272 2013-03-25 Richard Biener <rguenther@suse.de>
4274 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
4276 (memory_references): Likewise.
4277 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
4278 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
4279 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
4280 (gather_mem_refs_in_loops): Fold into ...
4281 (analyze_memory_references): ... this. Move initialization
4282 to tree_ssa_lim_initialize.
4283 (fill_always_executed_in): Rename to ...
4284 (fill_always_executed_in_1): ... this.
4285 (fill_always_executed_in): Move contains_call computation to
4286 this new function from ...
4287 (tree_ssa_lim_initialize): ... here.
4288 (tree_ssa_lim): Call fill_always_executed_in.
4290 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4292 * postreload.c (reload_combine): Fix code detecting returns.
4294 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4296 * function.c (emit_use_return_register_into_block): On cc0 targets,
4297 do not emit the sequence between cc0 setter and user.
4299 2013-03-25 Kai Tietz <ktietz@redhat.com>
4301 * config/i386/predicates.md (local_symbolic_operand): Interpret
4302 dll-imported symbols as none-local.
4304 2013-03-25 Richard Biener <rguenther@suse.de>
4306 * tree-ssa-loop-im.c (struct depend): Remove.
4307 (struct lim_aux_data): Make depends a vec of gimples.
4308 (free_lim_aux_data): Adjust.
4309 (add_dependency): Likewise.
4310 (set_level): Likewise.
4312 2013-03-25 Richard Biener <rguenther@suse.de>
4315 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
4316 the pointer returned by calls with ECF_MALLOC set.
4318 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
4320 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
4322 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
4324 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
4325 using MMXMODE mode iterator.
4326 (*move<mode>_internal): Merge with *movv2sf_internal and
4327 *movv2sf_internal_rex64 using MMXMODE mode iterator.
4329 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
4331 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
4332 (record_last_mem_set_info): Likewise.
4334 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
4335 of XNEWVEC followed by memset.
4336 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
4338 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
4340 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4341 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
4342 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
4343 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
4344 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
4345 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
4346 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
4347 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
4348 BARRIER_P instead of GET_CODE.
4350 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4352 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
4353 inaccuracy in the probing code.
4355 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
4356 (ctrapdi4): Likewise.
4358 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4360 * calls.c (expand_call): Add missing guard to code handling return
4361 of non-BLKmode structures in MSB.
4362 * function.c (expand_function_end): Likewise.
4364 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4366 * combine.c (try_combine): Adjust comment. Do not add the set of
4367 insn #0 if the destination indirectly is set or dies in insn #2.
4368 Tidy up code to distribute a new note.
4370 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
4372 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
4373 also for alternatives 16 and 17.
4375 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
4377 * config/i386/sse.md (*mov<mode>_internal): Merge with
4378 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
4379 Emit insn template depending on type attribute. Use
4380 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4381 movd instead of movq mnemonic for interunit moves. Rewrite mode
4382 attribute calculation. Remove unit attribute calculation.
4383 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
4384 Set prefix_data16 attribute for DImode ssemov types.
4385 Use Ym instead of y for SSE-MMX conversion alternatives.
4386 Reorder operand constraints.
4388 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
4390 * df.h (df_insn_delete): Adjust prototype.
4391 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
4392 and let it decide whether mark the basic block dirty.
4393 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
4394 * df-scan.c (df_insn_info_delete): New helper function, split
4395 off from df_insn_delete.
4396 (df_scan_free_bb_info): Use it.
4397 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
4399 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
4400 that the insn is actually an insn and it has a non-NULL basic block.
4401 Do not mark basic block dirty if only deleting a DEBUG_INSN.
4403 2013-03-22 Richard Biener <rguenther@suse.de>
4405 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
4407 (mem_ref_alloc): Do not allocate them.
4408 (refs_independent_p): Do not query or maintain a cache.
4410 2013-03-22 Richard Biener <rguenther@suse.de>
4412 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
4413 (gather_mem_refs_in_loops): Do not compute it.
4414 (analyze_memory_references): Do not allocate it.
4415 (tree_ssa_lim_finalize): Do not free it.
4416 (for_all_locs_in_loop): Do not query all_refs_in_loop.
4418 2013-03-22 Richard Biener <rguenther@suse.de>
4420 * is-a.h (as_a): Use gcc_checking_assert.
4422 2013-03-22 Ian Bolton <ian.bolton@arm.com>
4424 * config/aarch64/aarch64.c (aarch64_print_operand): New
4425 format specifier for printing a constant in hex.
4426 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
4427 format specifier for printing second operand.
4429 2013-03-22 Richard Biener <rguenther@suse.de>
4431 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
4433 (gather_mem_refs_in_loops): Perform store accumulation here.
4434 (create_vop_ref_mapping_loop): Remove.
4435 (create_vop_ref_mapping): Likewise.
4436 (analyze_memory_references): Initialize refs_stored_in_loop.
4437 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
4438 (record_indep_loop): Remove.
4439 (record_dep_loop): New function.
4440 (ref_indep_loop_p_1): Adjust to only walk over references
4441 in the loop, not its subloops.
4442 (ref_indep_loop_p): Rename to ...
4443 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
4444 maintaining a more fine-grained cache.
4445 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
4446 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
4448 2013-03-22 Richard Biener <rguenther@suse.de>
4450 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
4451 (struct mem_ref): Make accesses_in_loop a vec of a vec of
4452 aggregate mem_ref_loc.
4453 (free_mem_ref_locs): Inline into ...
4454 (memref_free): ... this and adjust.
4455 (mem_ref_alloc): Adjust.
4456 (mem_ref_locs_alloc): Remove.
4457 (record_mem_ref_loc): Adjust.
4458 (get_all_locs_in_loop): Rewrite into ...
4459 (for_all_locs_in_loop): ... this iterator.
4460 (rewrite_mem_ref_loc): New functor.
4461 (rewrite_mem_refs): Use for_all_locs_in_loop.
4462 (sm_set_flag_if_changed): New functor.
4463 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
4464 (ref_always_accessed): New functor.
4465 (ref_always_accessed_p): Use for_all_locs_in_loop.
4467 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4469 * tree-pass.h (PROP_gimple_lvec): New.
4470 * passes.c (dump_properties): Handle PROP_gimple_lvec.
4471 (init_optimization_passes): Move pass_lower_vector.
4472 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
4474 (pass_lower_vector): Provide PROP_gimple_lvec.
4475 (pass_lower_vector_ssa): Likewise.
4476 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
4478 2013-03-21 Mark Wielaard <mjw@redhat.com>
4480 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
4482 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4484 * config/i386/i386.md (*movdi_internal): Disparage slightly
4485 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
4486 conversion alternatives.
4488 2013-03-21 Jakub Jelinek <jakub@redhat.com>
4491 * diagnostic.def (DK_WERROR): New kind.
4492 * diagnostic.h (werrorcount): Define.
4493 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
4494 promoted to DK_ERROR, increment DK_WERROR counter instead of
4496 * toplev.c (toplev_main): Call print_ignored_options even if
4497 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
4498 even if just werrorcount is non-zero.
4501 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
4503 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
4504 (string_cst_pool_decl): New function.
4505 (optimize_one_addr_into_implicit_ptr): New function.
4506 (resolve_addr_in_expr): Optimize DWARF location expression
4507 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
4508 which doesn't live in memory, but has DW_AT_location or
4509 DW_AT_const_value, or refers to a string literal, into
4510 DW_OP_GNU_implicit_pointer.
4511 (optimize_location_into_implicit_ptr): New function.
4512 (resolve_addr): If removing DW_AT_location of a variable because
4513 it was DW_OP_addr of address of the variable, but the variable doesn't
4514 live in memory, try to emit const value attribute for the initializer.
4516 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4518 * tree.h (VECTOR_TYPE_P): New macro.
4519 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
4521 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
4522 VEC_COND_EXPR cannot be lvalues.
4523 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
4525 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
4527 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
4528 Restrict the transformation to equal modes.
4530 2013-03-21 Richard Biener <rguenther@suse.de>
4532 PR tree-optimization/39326
4533 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
4534 (MEM_ANALYZABLE): Adjust.
4535 (record_mem_ref_loc): Move bitmap ops ...
4536 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
4537 unanalyzable refs, do not record locations for it.
4538 (analyze_memory_references): Allocate ref zero as shared
4540 (refs_independent_p): Do not test for unanalyzed mems here.
4541 (ref_indep_loop_p_1): Special-case disambiguation against
4543 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
4545 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
4547 * config/arm/arm-protos.h (tune_params): Add
4548 prefer_neon_for_64bits field.
4549 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
4550 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
4551 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4552 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4553 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
4554 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4555 (arm_option_override): Handle -mneon-for-64bits new option.
4556 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
4557 (prefer_neon_for_64bits): Declare new variable.
4558 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
4559 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
4560 (arch_enabled): Handle new arch types. Remove support for onlya8
4562 (one_cmpldi2): Use new arch names.
4563 (zero_extend<mode>di2, extend<mode>di2): Ditto.
4564 * config/arm/arm.opt (mneon-for-64bits): Add option.
4565 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
4566 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
4567 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
4569 * doc/invoke.texi (-mneon-for-64bits): Document.
4571 2013-03-21 Richard Biener <rguenther@suse.de>
4573 PR tree-optimization/39326
4574 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
4575 (sort_bbs_in_loop_postorder_cmp): New function.
4576 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
4578 2013-03-21 Richard Biener <rguenther@suse.de>
4580 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
4581 (vect_insert_into_interleaving_chain): Likewise.
4582 (vect_drs_dependent_in_basic_block): Inline ...
4583 (vect_slp_analyze_data_ref_dependence): ... here. New function,
4585 (vect_analyze_data_ref_dependence): ... here. Simplify.
4586 (vect_check_interleaving): Simplify.
4587 (vect_analyze_data_ref_dependences): Likewise. Split out ...
4588 (vect_slp_analyze_data_ref_dependences): ... this new function.
4589 (dr_group_sort_cmp): New function.
4590 (vect_analyze_data_ref_accesses): Compute data-reference groups
4591 here instead of in vect_analyze_data_ref_dependence. Use
4592 a more efficient algorithm.
4593 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
4594 vect_slp_analyze_data_ref_dependences. Call
4595 vect_analyze_data_ref_accesses earlier.
4596 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4597 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
4598 (vect_slp_analyze_data_ref_dependences): New prototype.
4600 2013-03-21 Richard Biener <rguenther@suse.de>
4602 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
4603 ref is stored in the loop.
4604 (find_refs_for_sm): Walk only over all stores.
4605 (store_motion_loop): Allocate from lim_bitmap_obstack.
4606 (store_motion): Likewise.
4608 2013-03-21 Richard Biener <rguenther@suse.de>
4610 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
4611 Update virtual SSA form.
4613 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4615 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
4616 * configure: Regenerate.
4617 * config.in: Regenerate.
4618 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
4619 if !HAVE_LD_EH_FRAME_CIEV3.
4621 2013-03-21 Richard Biener <rguenther@suse.de>
4623 * tree-cfg.c (verify_expr_no_block): New function.
4624 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
4625 nor DECL_VALUE_EXPR have locations with associated blocks.
4626 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
4627 (clear_unused_block_pointer): Remove code dealing with
4628 blocks in DECL_DEBUG_EXPR locations.
4630 2013-03-21 Richard Biener <rguenther@suse.de>
4632 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
4633 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
4634 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
4635 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
4636 instead of DECL_DEBUG_EXPR_IS_FROM.
4637 * gimplify.c (gimplify_modify_expr): Likewise.
4638 * tree-cfg.c (verify_expr_location_1): Likewise.
4639 * tree-complex.c (create_one_component_var): Likewise.
4640 * tree-sra.c (create_access_replacement): Likewise.
4641 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
4642 (clear_unused_block_pointer): Likewise.
4643 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4644 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4645 * var-tracking.c (var_debug_decl): Likewise.
4646 (track_expr_p): Likewise.
4647 * tree-inline.c (add_local_variables): Likewise. Set
4648 DECL_HAS_DEBUG_EXPR_P after copying it.
4649 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4650 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
4652 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
4655 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
4656 * configure: Regenerate.
4657 * config.in: Regenerate.
4658 * config/i386/i386.md (*movdf_internal): Use
4659 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4660 movd instead of movq mnemonic for interunit moves.
4661 (*movdi_internal): Ditto.
4663 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4665 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
4666 (abd<mode>_3): New pattern.
4667 (aba<mode>_3): New pattern.
4668 (fabd<mode>_3): New pattern.
4670 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4672 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
4673 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
4674 occurrence of REGISTER_PREFIX as its empty string.
4676 2013-03-20 Jeff Law <law@redhat.com>
4678 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
4679 addititional equivalences for equality comparisons between an SSA_NAME
4680 and a constant where the SSA_NAME was set from a widening conversion.
4682 2013-03-20 Walter Lee <walt@tilera.com>
4684 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
4686 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4688 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
4689 depending on type attribute.
4690 (*movti_internal): Ditto.
4691 (*movtf_internal): Ditto.
4692 (*movxf_internal): Ditto.
4693 (*movdf_internal): Ditto.
4694 (*movsf_internal): Ditto.
4696 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4698 * config/i386/i386.md (*movti_internal): Set prefix attribute to
4699 maybe_vex for sselog1 and ssemov types.
4700 (*movdi_internal): Reorder operand constraints.
4701 (*movsi_internal): Ditto. Set prefix attribute to
4702 maybe_vex for sselog1 and ssemov types.
4703 (*movtf_internal): Set prefix attribute to maybe_vex
4704 for sselog1 and ssemov types.
4705 (*movdf_internal): Ditto. Set prefix_data16 attribute for
4706 DImode ssemov types. Reorder operand constraints.
4707 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
4708 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
4709 attribute for SImode ssemov types. Reorder operand constraints.
4711 2013-03-20 Martin Jambor <mjambor@suse.cz>
4713 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
4714 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
4716 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
4718 * config/rs6000/predicates.md (indexed_address, update_address_mem
4719 update_indexed_address_mem): New predicates.
4720 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
4721 attribute for load/store instructions.
4722 * config/rs6000/dfp.md (movsd_store): Likewise.
4723 (movsd_load): Likewise.
4724 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
4725 (unnamed HI->DI extend define_insn): Likewise.
4726 (unnamed SI->DI extend define_insn): Likewise.
4727 (unnamed QI->SI extend define_insn): Likewise.
4728 (unnamed QI->HI extend define_insn): Likewise.
4729 (unnamed HI->SI extend define_insn): Likewise.
4730 (unnamed HI->SI extend define_insn): Likewise.
4731 (extendsfdf2_fpr): Likewise.
4732 (movsi_internal1): Likewise.
4733 (movsi_internal1_single): Likewise.
4734 (movhi_internal): Likewise.
4735 (movqi_internal): Likewise.
4736 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
4737 attribute for load/store instructions.
4738 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
4740 (mov<mode>_softfloat): Likewise.
4741 (mov<mode>_hardfloat32): Likewise.
4742 (mov<mode>_hardfloat64): Likewise.
4743 (mov<mode>_softfloat64): Likewise.
4744 (movdi_internal32): Likewise.
4745 (movdi_internal64): Likewise.
4746 (probe_stack_<mode>): Likewise.
4748 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4750 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
4751 floating point, and decimal floating point to reload iterator.
4753 * config/rs6000/constraints.md (wl constraint): New constraints to
4754 return FLOAT_REGS if certain options are used to reduce the number
4755 of separate patterns that exist in the file.
4756 (wx constraint): Likewise.
4757 (wz constraint): Likewise.
4759 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4760 -mdebug=reg, print wg, wl, wx, and wz constraints.
4761 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4762 Initialize the reload functions for 64-bit binary/decimal floating
4764 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4765 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4766 create the buffer on the stack to overcome not having a 32-bit
4768 (rs6000_emit_move): Likewise.
4769 (rs6000_secondary_memory_needed_rtx): Likewise.
4770 (rs6000_alloc_sdmode_stack_slot): Likewise.
4771 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4772 via xxlxor, just like DFmode 0.0.
4774 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
4775 define as 1 if we are running on a power7 or newer.
4776 (enum r6000_reg_class_enum): Add new constraints.
4778 * config/rs6000/dfp.md (movsd): Delete, combine with binary
4779 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4780 with other moves by using conditional constraits (wg). Use LFIWZX
4781 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
4782 (movsd splitter): Likewise.
4783 (movsd_hardfloat): Likewise.
4784 (movsd_softfloat): Likewise.
4786 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
4787 binary and decimal floating point moves.
4788 (fmove_ok): New attributes to combine binary and decimal floating
4789 point moves, and to combine power6x (mfpgpr) moves along normal
4791 (real_value_to_target): Likewise.
4798 (movsf): Combine binary and decimal floating point moves. Combine
4799 power6x (mfpgpr) moves with other moves by using conditional
4800 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
4801 (mov<mode> for SFmode/SDmode); Likewise.
4802 (SFmode/SDmode splitters): Likewise.
4803 (movsf_hardfloat): Likewise.
4804 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
4805 (movsf_softfloat): Likewise.
4806 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
4808 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
4809 wx and wz constraints.
4811 * config/rs6000/constraints.md (wg constraint): New constraint to
4812 return FLOAT_REGS if -mmfpgpr (power6x) was used.
4814 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
4817 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4818 -mdebug=reg, print wg, wl, wx, and wz constraints.
4819 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4820 Initialize the reload functions for 64-bit binary/decimal floating
4822 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4823 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4824 create the buffer on the stack to overcome not having a 32-bit
4826 (rs6000_emit_move): Likewise.
4827 (rs6000_secondary_memory_needed_rtx): Likewise.
4828 (rs6000_alloc_sdmode_stack_slot): Likewise.
4829 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4830 via xxlxor, just like DFmode 0.0.
4832 * config/rs6000/dfp.md (movdd): Delete, combine with binary
4833 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
4834 with other moves by using conditional constraits (wg). Use LFIWZX
4835 and STFIWX for loading SDmode on power7.
4836 (movdd splitters): Likewise.
4837 (movdd_hardfloat32): Likewise.
4838 (movdd_softfloat32): Likewise.
4839 (movdd_hardfloat64_mfpgpr): Likewise.
4840 (movdd_hardfloat64): Likewise.
4841 (movdd_softfloat64): Likewise.
4843 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
4844 64-bit binary and decimal floating point moves.
4845 (FMOVE64X): Likewise.
4846 (movdf): Combine 64-bit binary and decimal floating point moves.
4847 Combine power6x (mfpgpr) moves with other moves by using
4848 conditional constraits (wg).
4849 (mov<mode> for DFmode/DDmode): Likewise.
4850 (DFmode/DDmode splitters): Likewise.
4851 (movdf_hardfloat32): Likewise.
4852 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
4853 (movdf_softfloat32): Likewise.
4854 (movdf_hardfloat64_mfpgpr): Likewise.
4855 (movdf_hardfloat64): Likewise.
4856 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
4857 (movdf_softfloat64): Likewise.
4858 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
4859 (reload_<mode>_load): Move to later in the file so they aren't in
4860 the middle of the floating point move insns.
4861 (reload_<mode>_store): Likewise.
4863 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
4866 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
4867 constraint if -mdebug=reg.
4868 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
4869 Enable using dd reload support if needed.
4871 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
4872 binary and decimal floating point moves in rs6000.md.
4873 (movtd_internal): Likewise.
4875 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
4876 decimal floating point moves.
4878 (movtf_internal): Likewise.
4879 (mov<mode>_internal, TDmode/TFmode): Likewise.
4880 (movtf_softfloat): Likewise.
4881 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
4883 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
4884 movdi_internal64, using wg constraint for move direct operations.
4885 (movdi_internal64): Likewise.
4887 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
4888 MODES_TIEABLE_P for selected modes. Print the numerical value of
4889 the various virtual registers. Use GPR/FPR first/last values,
4890 instead of hard coding the register numbers. Print which modes
4891 have reload functions registered.
4892 (rs6000_option_override_internal): If -mdebug=reg, trace the options
4893 settings before/after setting cpu, target and subtarget settings.
4894 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
4895 and for secondary reload failures in rs6000_secondary_reload_inner.
4896 (rs6000_secondary_reload_fail): Likewise.
4897 (rs6000_secondary_reload_inner): Likewise.
4899 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
4900 macros for first/last GPR and FPR registers.
4901 (LAST_GPR_REGNO): Likewise.
4902 (FIRST_FPR_REGNO): Likewise.
4903 (LAST_FPR_REGNO): Likewise.
4905 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
4906 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
4907 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
4908 (vcond<mode><mode>): Likewise.
4909 (vcondu<mode><mode>): Likewise.
4910 (vector_gtu<mode>): Likewise.
4911 (vector_gte<mode>): Likewise.
4912 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
4913 to prevent the compiler from converting DImode operations to TImode.
4914 (ior<mode>3): Likewise.
4915 (and<mode>3): Likewise.
4916 (one_cmpl<mode>2): Likewise.
4917 (nor<mode>3): Likewise.
4918 (andc<mode>3): Likewise.
4920 * config/rs6000/constraints.md (wt constraint): New constraint
4921 that returns VSX_REGS if TImode is allowed in VSX registers.
4923 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
4926 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
4927 similar to TImode, but it is restricted to being in the GPRs.
4929 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
4930 TImode to occupy a single VSX register.
4932 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
4933 -mvsx-timode for power7/power8.
4934 (power7 cpu): Likewise.
4935 (power8 cpu): Likewise.
4937 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
4938 sure that TFmode/TDmode take up two registers if they are ever
4939 allowed in the upper VSX registers.
4940 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
4942 (rs6000_init_hard_regno_mode_ok): Likewise.
4943 (rs6000_debug_reg_global): Add debugging for PTImode and wt
4944 constraint. Print if LRA is turned on.
4945 (rs6000_option_override_internal): Give an error if -mvsx-timode
4946 and VSX is not enabled.
4947 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
4948 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
4949 to reg+offset addressing. Use PTImode when checking offset
4950 addresses for validity.
4951 (reg_offset_addressing_ok_p): Likewise.
4952 (rs6000_legitimate_offset_address_p): Likewise.
4953 (rs6000_legitimize_address): Likewise.
4954 (rs6000_legitimize_reload_address): Likewise.
4955 (rs6000_legitimate_address_p): Likewise.
4956 (rs6000_eliminate_indexed_memrefs): Likewise.
4957 (rs6000_emit_move): Likewise.
4958 (rs6000_secondary_reload): Likewise.
4959 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
4960 reloads to fpr registers to continue to use reg+offset addressing,
4961 but 64-bit reloads to altivec registers need reg+reg addressing.
4962 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
4963 it. Treat LO_SUM like a PLUS operation.
4964 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
4965 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
4966 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
4967 registers to share a register with a smaller sized type, since VSX
4968 puts scalars in the upper 64-bits.
4969 (print_operand): Add support for PTImode.
4970 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
4971 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
4972 registers, but don't have arithmetic support.
4973 (rs6000_memory_move_cost): Add test for VSX.
4974 (rs6000_opt_masks): Add -mvsx-timode.
4976 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
4979 (VSr): Use wt constraint for TImode.
4980 (VSv): Drop TImode support.
4981 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
4982 (vsx_movti_64bit): Likewise.
4983 (vsx_movti_32bit): Likewise.
4984 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
4985 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
4986 one '?' on the appropriate output constraint. Do not allow TImode
4987 logical operations on 32-bit systems.
4988 (vsx_ior<mode>3): Likewise.
4989 (vsx_xor<mode>3): Likewise.
4990 (vsx_one_cmpl<mode>2): Likewise.
4991 (vsx_nor<mode>3): Likewise.
4992 (vsx_andc<mode>3): Likewise.
4993 (vsx_concat_<mode>): Likewise.
4994 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
4996 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
4997 OPTION_MASK_VSX_TIMODE.
4998 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
4999 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
5001 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
5002 (TI2 iterator): New iterator for TImode, PTImode.
5003 (wd mode attribute): Add values for vector types.
5004 (movti_string): Replace TI move operations with operations for TImode
5005 and PTImode. Add support for TImode being allowed in VSX registers.
5006 (mov<mode>_string, TImode/PTImode): Likewise.
5007 (movti_ppc64): Likewise.
5008 (mov<mode>_ppc64, TImode/PTImode): Likewise.
5009 (TI mode splitters): Likewise.
5011 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
5014 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
5016 PR tree-optimization/56355
5017 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
5018 Also handle integers with undefined overflow.
5020 2013-03-20 Catherine Moore <clm@codesourcery.com>
5021 Maciej W. Rozycki <macro@codesourcery.com>
5022 Tom de Vries <tom@codesourcery.com>
5023 Nathan Sidwell <nathan@codesourcery.com>
5024 Iain Sandoe <iain@codesourcery.com>
5025 Nathan Froyd <froydnj@codesourcery.com>
5026 Chao-ying Fu <fu@mips.com>
5028 * doc/extend.texi: (micromips, nomicromips, nocompression):
5029 Document new function attributes.
5030 * doc/invoke.texi (minterlink-compressed, mmicromips,
5031 m14k, m14ke, m14kec): Document new options.
5032 (minterlink-mips16): Update documentation.
5033 * doc/md.texi (ZC, ZD): Document new constraints.
5034 * configure.ac (gcc_cv_as_micromips): Check if linker
5035 supports the .set micromips directive.
5036 * configure: Regenerate.
5037 * config.in: Regenerate.
5038 * config/mips/mips-tables.opt: Regenerate.
5039 * config/mips/micromips.md: New file.
5040 * constraints.md (ZC, ZD): New constraints.
5041 * config/mips/predicates.md (movep_src_register): New predicate.
5042 (movep_src_operand): New predicate.
5043 (non_volatile_mem_operand): New predicate.
5044 * config/mips/mips.md (multimem): New type.
5045 (length): Differentiate between 17-bit and 18-bit branch offsets.
5046 (MOVEP1, MOVEP2): New mode iterator.
5047 (mov_<load>l): Use ZC constraint.
5048 (mov_<load>r): Likewise.
5049 (mov_<store>l): Likewise.
5050 (mov_<store>r): Likewise.
5051 (*branch_equality<mode>_inverted): Add microMIPS support.
5052 (*branch_equality<mode>): Likewise.
5053 (*jump_absolute): Likewise.
5054 (indirect_jump_<mode>): Likewise.
5055 (tablejump_<mode>): Likewise.
5056 (<optab>_internal): Likewise.
5057 (sibcall_internal): Likewise.
5058 (sibcall_value_internal): Likewise.
5059 (prefetch): Use constraint ZD.
5060 * config/mips/mips.opt (minterlink-compressed): New option.
5061 (minterlink-mips16): Now an alias for minterlink-compressed.
5062 (mmicromips): New option.
5063 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5064 (compare_and_swap_12): Likewise.
5065 (sync_add<mode>): Likewise.
5066 (sync_<optab>_12): Likewise.
5067 (sync_old_<optab>_12): Likewise.
5068 (sync_new_<optab>_12): Likewise.
5069 (sync_nand_12): Likewise.
5070 (sync_old_nand_12): Likewise.
5071 (sync_new_nand_12): Likewise.
5072 (sync_sub<mode>): Likewise.
5073 (sync_old_add<mode>): Likewise.
5074 (sync_old_sub<mode>): Likewise.
5075 (sync_new_add<mode>): Likewise.
5076 (sync_new_sub<mode>): Likewise.
5077 (sync_<optab><mode>): Likewise.
5078 (sync_old_<optab><mode>): Likewise.
5079 (sync_new_<optab><mode>): Likewise.
5080 (sync_nand<mode>): Likewise.
5081 (sync_old_nand<mode>): Likewise.
5082 (sync_new_nand<mode>): Likewise.
5083 (sync_lock_test_and_set<mode>): Likewise.
5084 (test_and_set_12): Likewise.
5085 (atomic_compare_and_swap<mode>): Likewise.
5086 (atomic_exchange<mode>_llsc): Likewise.
5087 (atomic_fetch_add<mode>_llsc): Likewise.
5088 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5089 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5090 (umips_save_restore_pattern_p): Likewise.
5091 (umips_load_store_pair_p): Likewise.
5092 (umips_output_load_store_pair): Likewise.
5093 (umips_movep_target_p): Likewise.
5094 (umips_12bit_offset_address_p): Likewise.
5095 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5096 (mips_base_mips16): Rename this...
5097 (mips_base_compression_flags): ...to this. Update all uses.
5098 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5099 (mips_mips16_decl_p): Delete.
5100 (mips_nomips16_decl_p): Delete.
5101 (mips_get_compress_on_flags): New function.
5102 (mips_get_compress_off_flags): New function.
5103 (mips_get_compress_mode): New function.
5104 (mips_get_compress_on_name): New function.
5105 (mips_get_compress_off_name): New function.
5106 (mips_insert_attributes): Support multiple compression types.
5107 (mips_merge_decl_attributes): Likewise.
5108 (umips_12bit_offset_address_p): New function.
5109 (mips_start_function_definition): Emit .set micromips directive.
5110 (mips_call_may_need_jalx_p): New function.
5111 (mips_function_ok_for_sibcall): Add microMIPS support.
5112 (mips_print_operand_punctuation): Support short delay slots and
5114 (umips_swm_mask, umips_swm_encoding): New.
5115 (umips_build_save_restore): New function.
5116 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5117 (was_mips16_p): Remove.
5118 (old_compression_mode): New.
5119 (mips_set_compression_mode): New function.
5120 (mips_set_current_function): Add microMIPS support.
5121 (mips_option_override): Likewise.
5122 (umips_save_restore_pattern_p): New function.
5123 (umips_output_save_restore): New function.
5124 (umips_load_store_pair_p_1): New function.
5125 (umips_load_store_pair_p): New function.
5126 (umips_output_load_store_pair_1): New function.
5127 (umips_output_load_store_pair): New function.
5128 (umips_movep_target_p) New function.
5129 (mips_prepare_pch_save): Add microMIPS support.
5130 * config/mips/mips.h (TARGET_COMPRESSION): New.
5131 (TARGET_CPU_CPP_BUILTINS): Update macro
5132 to use new compression flags and to support microMIPS.
5133 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5134 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5135 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5136 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5137 (ASM_SPEC): Support mmicromips and mno-micromips.
5138 (M16STORE_REG_P): New macro.
5139 (MIPS_CALL): Support TARGET_MICROMIPS.
5140 (MICROMIPS_J): New macro.
5141 (mips_base_mips16): Rename this...
5142 (mips_base_compression_flags): ...to this.
5143 (UMIPS_12BIT_OFFSET_P): New macro.
5144 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5145 (MULTILIB_DIRNAMES): Likewise.
5146 2013-03-20 Richard Biener <rguenther@suse.de>
5148 PR tree-optimization/56661
5149 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
5150 the result does not have to be distinct.
5152 2013-03-20 Richard Biener <rguenther@suse.de>
5154 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
5157 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5158 Steven Bosscher <steven@gcc.gnu.org>
5160 PR rtl-optimization/56605
5161 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
5163 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
5166 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
5167 that require movd instead of movq.
5169 2013-03-20 Richard Biener <rguenther@suse.de>
5171 * tree-ssa-structalias.c (struct variable_info): Add pointer
5172 to the first field of an aggregate with sub-vars. Make
5173 this and the pointer to the next subfield its ID.
5174 (vi_next): New function.
5175 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
5176 storedanything_id, integer_id): Increment by one.
5177 (new_var_info, get_call_vi, lookup_call_clobber_vi,
5178 get_call_clobber_vi): Adjust.
5179 (solution_set_expand): Simplify and speedup.
5180 (solution_set_add): Inline into ...
5181 (set_union_with_increment): ... this. Adjust accordingly.
5182 (do_sd_constraint): Likewise.
5183 (do_ds_constraint): Likewise.
5184 (do_complex_constraint): Simplify.
5185 (build_pred_graph): Adjust.
5186 (solve_graph): Likewise. Simplify and speedup.
5187 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
5188 get_constraint_for_component_ref, get_constraint_for_1,
5189 first_vi_for_offset, first_or_preceding_vi_for_offset,
5190 create_function_info_for, create_variable_info_for_1,
5191 create_variable_info_for, intra_create_variable_infos): Adjust.
5192 (init_base_vars): Push NULL for ID zero.
5193 (compute_points_to_sets): Adjust.
5195 2013-03-20 Richard Biener <rguenther@suse.de>
5197 * cfgloop.c (verify_loop_structure): Streamline and avoid
5198 ICEing on corrupt loop tree.
5199 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
5202 2013-03-20 Richard Biener <rguenther@suse.de>
5204 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
5205 check whether an SSA update is needed.
5207 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
5209 * config/mips/constraints.md (T): Rename to...
5213 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
5214 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
5216 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5218 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
5219 (*subsi3_carryin_uxtw): Likewise.
5221 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5223 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
5224 (*rorsi3_insn_uxtw): Likewise.
5226 2013-03-19 Ian Bolton <ian.bolton@arm.com>
5228 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
5229 (*extrsi5_insn_uxtw): Likewise.
5231 2013-03-19 Richard Biener <rguenther@suse.de>
5233 PR tree-optimization/56273
5234 * passes.c (init_optimization_passes): Move second VRP after DOM.
5236 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
5238 * config/i386/i386.md (*movti_internal): Merge from
5239 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
5240 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
5241 nox64 isa attributes.
5243 2013-03-18 Richard Biener <rguenther@suse.de>
5245 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
5247 (merge_node_constraints): Likewise.
5248 (build_succ_graph): Likewise.
5249 (valid_graph_edge): Inline into single caller.
5250 (unify_nodes): Likewise. Use bitmap_set_bit return value
5252 (scc_visit): Fix formatting and variable use.
5253 (do_sd_constraint): Use gcc_checking_assert.
5254 (do_ds_constraint): Likewise.
5255 (do_complex_constraint): Likewise.
5256 (condense_visit): Likewise. Cleanup.
5257 (dump_pred_graph): New function.
5258 (perform_var_substitution): Dump the pred-graph before
5259 variable substitution.
5260 (find_equivalent_node): Use gcc_checking_assert.
5261 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
5263 2013-03-18 Richard Biener <rguenther@suse.de>
5265 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5266 Remove cond_expr_stmt_list argument and do not gimplify the
5268 (vect_loop_versioning): Adjust.
5269 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5270 Cleanup to use less temporaries.
5271 (vect_create_data_ref_ptr): Cleanup.
5273 2013-03-18 Jakub Jelinek <jakub@redhat.com>
5275 PR tree-optimization/56635
5276 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
5277 require types_compatible_p types.
5279 2013-03-18 Nick Clifton <nickc@redhat.com>
5281 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
5284 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
5285 Add missing line to comment describing function.
5287 2013-03-18 Richard Biener <rguenther@suse.de>
5289 PR tree-optimization/56210
5290 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5291 Handle string / character search functions.
5292 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5294 2013-03-18 Richard Biener <rguenther@suse.de>
5297 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
5298 and implement properly.
5299 * gimple.h (gimple_cond_single_var_p): Remove.
5301 2013-03-18 Richard Biener <rguenther@suse.de>
5303 * tree-data-ref.h (find_data_references_in_loop): Declare.
5304 * tree-data-ref.c (get_references_in_stmt): Use a stack
5305 vector pre-allocated in the callers.
5306 (find_data_references_in_stmt): Adjust.
5307 (graphite_find_data_references_in_stmt): Likewise.
5308 (create_rdg_vertices): Likewise.
5309 (find_data_references_in_loop): Export.
5310 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5311 Compute dependences here...
5312 (vect_analyze_data_refs): ...not here. When we encounter
5313 a non-vectorizable data reference in basic-block vectorization
5314 truncate the data reference vector. Do not bother to
5315 fixup data-dependence information for gather loads.
5316 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
5317 of data references, as reported.
5319 2013-03-18 Richard Biener <rguenther@suse.de>
5321 PR tree-optimization/3713
5322 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
5323 has_constants and expr.
5324 (stmt_has_constants): Properly valueize SSA names when deciding
5325 whether the stmt has constants.
5327 2013-03-18 Richard Biener <rguenther@suse.de>
5329 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
5330 whole function when there is nothing to do.
5331 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
5332 * tree-vectorizer.c (vectorize_loops): Update virtual and
5333 loop-closed SSA once.
5334 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
5336 2013-03-18 Richard Biener <rguenther@suse.de>
5339 * domwalk.c (bb_postorder): New global static.
5340 (cmp_bb_postorder): New function.
5341 (walk_dominator_tree): Replace scheme imposing an order for
5342 visiting dominator sons by one sorting them at the time they
5343 are pushed on the stack.
5345 2013-03-18 Richard Biener <rguenther@suse.de>
5347 PR tree-optimization/39326
5348 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
5349 (struct mem_ref): Replace mem member with ao_ref typed member.
5350 (MEM_ANALYZABLE): Adjust.
5351 (memref_eq): Likewise.
5352 (mem_ref_alloc): Likewise.
5353 (gather_mem_refs_stmt): Likewise.
5354 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
5355 (execute_sm_if_changed_flag_set): Adjust.
5356 (execute_sm): Likewise.
5357 (ref_always_accessed_p): Likewise.
5358 (refs_independent_p): Likewise.
5359 (can_sm_ref_p): Likewise.
5361 2013-03-18 Jakub Jelinek <jakub@redhat.com>
5364 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
5365 return 1 even for !unsignedp.
5367 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5369 * config/i386/i386.md (isa): Add x64 and nox64.
5370 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
5371 (*pushtf): Enable *roF alternative for x64 isa only.
5372 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
5373 mode attribute of integer alternatives to DImode for TARGET_64BIT.
5374 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
5375 (*movtf_internal): Merge from *movtf_internal_rex64 and
5376 *movtf_internal_sse. Use x64 and nox64 isa attributes.
5377 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
5378 nox64 isa attributes.
5379 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
5380 nox64 isa attributes.
5381 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
5383 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5385 * config/alpha/alpha.c (TARGET_LRA_P): New define.
5387 2013-03-17 Jakub Jelinek <jakub@redhat.com>
5390 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
5391 class names. Remove trailing comma after "ALL_REGS".
5393 2013-03-16 Jan Hubicka <jh@suse.cz>
5395 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
5396 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
5397 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
5398 of cgraph_get_create_node.
5399 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5401 2013-03-16 Jason Merrill <jason@redhat.com>
5404 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
5405 with DW_AT_default_value.
5407 2013-03-16 Jakub Jelinek <jakub@redhat.com>
5409 * BASE-VER: Set to 4.9.0.
5411 2013-03-14 Andi Kleen <ak@linux.intel.com>
5414 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
5415 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
5416 Document _x* TSX intrinsics.
5418 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
5419 David Holsgrove <david.holsgrove@xilinx.com>
5421 * configure.ac: Add MicroBlaze TLS support detection.
5422 * configure: Regenerate.
5423 * config/microblaze/microblaze-protos.h
5424 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
5425 symbol_mentioned_p, label_mentioned_p): Add prototypes.
5426 * config/microblaze/microblaze.c (microblaze_address_type): Add
5427 ADDRESS_TLS and tls_reloc address types.
5428 (microblaze_address_info): Add tls_reloc.
5429 (TARGET_HAVE_TLS): Define.
5430 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
5431 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
5432 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
5433 load_tls_operand, microblaze_call_tls_get_addr,
5434 microblaze_legitimize_tls_address): New functions.
5435 (microblaze_classify_unspec): Handle UNSPEC_TLS.
5436 (get_base_reg): Use microblaze_tls_symbol_p.
5437 (microblaze_classify_address): Handle TLS.
5438 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
5439 label_mentioned_p and microblaze_tls_referenced_p.
5440 (microblaze_legitimize_address): Handle TLS.
5441 (microblaze_address_insns): Handle ADDRESS_TLS.
5442 (pic_address_needs_scratch): Handle TLS.
5443 (print_operand_address): Handle TLS.
5444 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
5445 (microblaze_expand_move): Handle TLS.
5446 (microblaze_legitimate_constant_p): Check
5447 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
5448 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5449 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
5450 (PIC_OFFSET_TABLE_REGNUM): Set.
5451 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
5452 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
5453 (addsi3, movsi_internal2, movdf_internal): Update constraints
5454 * config/microblaze/predicates.md (arith_plus_operand): Define
5455 (move_operand): Redefine as move_src_operand,
5456 check microblaze_tls_referenced_p.
5458 2013-03-14 Ian Bolton <ian.bolton@arm.com>
5460 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
5461 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
5463 2013-03-14 Ian Bolton <ian.bolton@arm.com>
5465 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
5468 2013-03-14 Jakub Jelinek <jakub@redhat.com>
5470 PR tree-optimization/53265
5471 * common.opt (Waggressive-loop-optimizations): New option.
5472 * tree-ssa-loop-niter.c: Include tree-pass.h.
5473 (do_warn_aggressive_loop_optimizations): New function.
5474 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
5475 if number_of_latch_executions returned constant.
5476 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
5477 early. If number_of_latch_executions returned constant, set
5478 nb_iterations_upper_bound back to it.
5479 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
5481 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
5482 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
5484 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
5485 (MULTILIB_OSDIRNAMES): Set.
5486 * genmultilib: If defaultosdirname doesn't start with :: , set
5487 defaultosdirname2 instead, clear it and emit two . multilib_raw
5488 entries instead of just one.
5490 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
5492 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5493 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
5494 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5495 (SUBTARGET_OVERRIDE_OPTIONS): New.
5497 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
5500 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
5501 (musermode): Convert to Var(TARGET_USERMODE).
5502 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
5503 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
5504 * config/sh/sh.c (sh_option_override): Use
5505 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
5506 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
5508 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
5510 (udivsi3_i4_single, divsi3_i4_single): Use
5511 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
5513 2013-03-13 Dave Korn <dave.korn.cygwin@....>
5515 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
5518 2013-03-13 Richard Biener <rguenther@suse.de>
5520 PR tree-optimization/56608
5521 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
5522 calls when vectorizing basic-blocks.
5524 2013-03-13 Jakub Jelinek <jakub@redhat.com>
5527 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
5530 2013-03-12 Jakub Jelinek <jakub@redhat.com>
5532 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
5534 2013-03-11 Jan Hubicka <jh@suse.cz>
5537 * lto-streamer-out.c (output_symbol_p): Skip references from
5538 constructors of external variables.
5540 2013-03-11 Jan Hubicka <jh@suse.cz>
5543 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
5545 * emit-rtl.c (verify_rtx_sharing): Likewise.
5546 (copy_insn_1): Likewise.
5547 * rtl.c (copy_rtx): Likewise.
5549 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
5552 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
5553 output_operand_lossage message.
5555 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
5558 * arm.c (shift_op): Validate RTL pattern on the fly.
5559 (arm_print_operand, case 'S'): Don't use shift_operator to validate
5562 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5565 * config/pa/pa.md (call_value): Check for calls to powf and direct to
5566 new call patterns that clobber %fr12.
5567 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
5568 split and postreload patterns.
5569 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
5570 registers %fr12 and %fr12R as call used.
5572 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
5574 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
5575 (canon_address, record_store, replace_read, check_mem_read_rtx,
5576 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
5577 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
5578 rest_of_handle_dse): Likewise.
5580 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5583 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
5585 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
5586 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
5587 (save_optabs_if_changed): Replace with...
5588 (init_tree_optimization_optabs): ...this.
5589 * optabs.c (save_optabs_if_changed): Rename to...
5590 (init_tree_optimization_optabs): ...this. Take the optimization node
5591 as argument. Do nothing if the base optabs are already correct.
5592 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
5593 to recompute optabs.
5594 * function.h (function): Remove optabs field.
5595 * function.c (invoke_set_current_function_hook): Call
5596 init_tree_optimization_optabs. Use the result to initialize
5599 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
5601 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
5602 if GTMA_HAS_NO_INSTRUMENTATION.
5603 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
5604 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
5605 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
5606 * gimple-pretty-print.c (dump_gimple_transaction): Handle
5607 GTMA_HAS_NO_INSTRUMENTATION.
5609 2013-03-08 Jakub Jelinek <jakub@redhat.com>
5611 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
5614 2013-03-08 Marek Polacek <polacek@redhat.com>
5615 Jakub Jelinek <jakub@redhat.com>
5617 PR tree-optimization/56478
5618 * predict.c (is_comparison_with_loop_invariant_p): Change the
5619 type of loop_step to tree.
5620 (predict_loops): Adjust.
5621 (predict_iv_comparison): Perform the computations on double_ints.
5623 2013-03-08 Richard Biener <rguenther@suse.de>
5625 PR tree-optimization/56570
5626 * tree-cfg.c (verify_expr_location_1): Verify locations for
5628 * tree-sra.c (create_access_replacement): Strip locations
5629 from DECL_DEBUG_EXPRs.
5631 2013-03-08 Richard Biener <rguenther@suse.de>
5633 * tree-inline.c (expand_call_inline): Do not associate
5634 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
5635 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
5637 2013-03-08 Richard Biener <rguenther@suse.de>
5639 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
5640 or block changes with -Og. Fix for location / block encoding
5641 changes and PHI arguments with locations.
5643 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
5645 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
5647 (struct output_info): Likewise.
5648 (register_overhead): Remove bad gcc_assert.
5649 (bitmap_find_bit): If there is only a single bitmap element, do not
5650 count a miss as a search.
5651 (print_statistics): Update for counter type changes.
5652 (dump_bitmap_statistics): Likewise. Print headers such that they
5653 are properly lined up with the printed counters.
5655 2013-03-07 Jakub Jelinek <jakub@redhat.com>
5657 PR tree-optimization/56559
5658 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
5659 check that it has only a single use.
5661 2013-03-07 Richard Biener <rguenther@suse.de>
5663 * doc/invoke.texi (fwhole-program): Discourage use in combination
5666 2013-03-06 Jakub Jelinek <jakub@redhat.com>
5668 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
5670 PR tree-optimization/56539
5671 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
5672 instead of GSI_CONTINUE_LINKING as last argument to
5673 force_gimple_operand_gsi. Adjust function comment.
5675 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
5679 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
5680 promoted mode, convert the result back to the original mode.
5682 2013-03-06 Richard Biener <rguenther@suse.de>
5685 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
5686 (insert_updated_phi_nodes_compare_uids): New function.
5687 (update_ssa): Sort symbols_to_rename after UID before
5688 traversing it to insert PHI nodes.
5690 2013-03-06 Richard Biener <rguenther@suse.de>
5693 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
5694 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
5697 2013-02-13 Richard Biener <rguenther@suse.de>
5700 * varasm.c (output_constant_def_1): Get the decl representing
5701 the constant as argument.
5702 (output_constant_def): Wrap output_constant_def_1.
5703 (make_decl_rtl): Use output_constant_def_1 with the decl
5704 representing the constant.
5705 (build_constant_desc): Optionally re-use a decl already
5706 representing the constant.
5707 (tree_output_constant_def): Adjust.
5709 2013-03-06 Joey Ye <joey.ye@arm.com>
5712 * gcc.c (convert_white_space): New function.
5713 (main): Handles white space in function name.
5715 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
5718 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
5719 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
5720 to SH_DIV_CALL_TABLE for TARGET_SH2.
5721 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
5723 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
5726 2013-03-05 Sterling Augustine <saugustine@google.com>
5727 Cary Coutant <ccoutant@google.com>
5730 * dwarf2out.c (resolve_addr): Don't call
5731 remove_loc_list_addr_table_entries a second time for the same
5734 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5737 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
5738 (avoid_complex_debug_insns): New function.
5739 (expand_debug_locations): Call it.
5741 PR rtl-optimization/56484
5742 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
5743 lifetimes of hard registers on small register class machines.
5745 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5747 * config/microblaze/microblaze-protos.h: Rename
5748 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
5749 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
5751 (microblaze_fast_interrupt_function_p): New function.
5752 (microblaze_is_interrupt_handler): Rename to
5753 microblaze_is_interrupt_variant and add fast_interrupt check.
5754 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
5755 (save_restore_insns): Likewise.
5756 (compute_frame_size): Likewise.
5757 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
5758 (microblaze_globalize_label): Likewise.
5759 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
5760 * config/microblaze/microblaze.md: Use wrapper
5761 microblaze_is_interrupt_variant.
5763 2013-03-05 Kai Tietz <ktietz@redhat.com>
5765 * sdbout.c (sdbout_one_type): Switch to current function's section
5766 supporting cold/hot.
5768 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
5770 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
5773 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5776 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
5777 if VALGRIND_GET_VBITS is defined, temporarily make object
5778 memory all defined, and restore previous valgrind addressability
5779 and definability afterwards. Free this_object at the end.
5782 * lra.c (lra): Call lra_clear_live_ranges if live_p,
5783 right before calling lra_create_live_ranges, also call it
5784 when clearing live_p. Only call lra_clear_live_ranges
5785 at the end if live_p.
5788 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
5790 2013-03-05 Richard Biener <rguenther@suse.de>
5792 PR tree-optimization/56521
5793 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
5796 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
5799 * except.h (remove_unreachable_eh_regions): New prototype.
5800 * except.c (remove_eh_handler_splicer): New function, split out
5801 of remove_eh_handler.
5802 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
5803 warning about running it on many EH regions one at a time.
5804 (remove_unreachable_eh_regions_worker): New function, walk the
5805 EH tree in depth-first order and remove non-marked regions.
5806 (remove_unreachable_eh_regions): New function.
5807 * tree-eh.c (mark_reachable_handlers): New function, split out
5808 from remove_unreachable_handlers.
5809 (remove_unreachable_handlers): Use mark_reachable_handlers and
5810 remove_unreachable_eh_regions.
5811 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
5812 and remove_unreachable_eh_regions.
5814 2013-03-05 Richard Biener <rguenther@suse.de>
5817 * loop-init.c (fix_loop_structure): Remove loops in two stages,
5818 not freeing them until the end.
5820 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5822 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
5824 2013-03-05 Richard Biener <rguenther@suse.de>
5826 PR tree-optimization/56270
5827 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
5828 of loads after scheduling an SLP instance.
5830 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5832 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
5834 (check_gcc_parallelize): Run guality.exp as a separate job from
5835 vect.exp with unsorted.exp and $(dg_target_exps) separately from
5836 struct-layout-1.exp with stackalign.exp.
5838 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
5841 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
5842 load_index sbitmap even if some bit in it isn't set.
5845 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
5846 (discover_iteration_bound_by_body_walk): Change queues to
5847 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
5848 spelling in comment. Call safe_push on queues[bound_index] directly.
5849 Release queues[queue_index] in every iteration unconditionally.
5850 Release bounds vector.
5853 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
5854 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
5855 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
5858 2013-03-05 Richard Biener <rguenther@suse.de>
5861 * tree-inline.c (remap_blocks_to_null): New function.
5862 (expand_call_inline): When expanding a call stmt without
5863 an associated block inline remap all callee blocks to NULL.
5865 2013-03-05 Jakub Jelinek <jakub@redhat.com>
5867 PR rtl-optimization/56494
5868 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
5869 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
5870 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
5873 * sel-sched-ir.c (free_sched_pools): Release
5874 succs_info_pool.stack[succs_info_pool.max_top] vectors too
5875 if succs_info_pool.max_top isn't -1.
5878 * opts.c (opts_obstack, opts_concat): Moved to...
5879 * opts-common.c (opts_obstack, opts_concat): ... here.
5881 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5884 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
5886 2013-03-04 Martin Jambor <mjambor@suse.cz>
5888 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
5889 all appropriate places.
5891 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
5893 PR tree-optimization/56424
5894 * ipa-split.c (split_function): Do not set the RSO flag if result is
5895 not by reference and its type is a register type.
5897 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
5899 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
5900 (microblaze_legitimate_pic_operand): Likewise
5901 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
5902 new function microblaze_legitimate_pic_operand
5903 * config/microblaze/microblaze-protos.h
5904 (microblaze_legitimate_pic_operand): Declare.
5906 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5908 * config/microblaze/predicates.md (call_insn_simple_operand):
5909 New predicate for supported rtx code types.
5910 * config/microblaze/microblaze.md (call_internal1): Use
5911 call_insn_simple_operand predicate.
5913 2013-03-04 Jakub Jelinek <jakub@redhat.com>
5916 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
5917 partitions.ordered_remove.
5920 * tree-vect-stmts.c (vectorizable_conversion): Don't call
5921 vec_oprnds0.create (1) for modifier == NONE.
5924 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
5925 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
5926 vec_oprnds1 right before pushing anything to it for
5930 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
5931 set nbbs to 0 instead of having separate code path.
5932 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
5933 instead of false as last argument if returning NULL.
5935 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
5937 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
5938 the attribute is now called "target" instead of "option".
5939 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
5940 * doc/tm.texi.in (Target Attributes): Likewise document the correct
5941 attribute/pragma name for TARGET_OPTION_VALID_P and
5942 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
5943 * doc/tm.texi: Regenerated.
5945 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
5947 * config/microblaze/microblaze.c:
5948 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
5949 * config/microblaze/microblaze.h: Add -mxl-reorder to
5951 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
5952 instructions emitted if TARGET_REORDER.
5953 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
5954 or 0 for -m/-mno case, but initialises as 2 to detect default use case
5957 2013-03-01 Xinliang David Li <davidxl@google.com>
5959 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
5962 2013-03-01 Jakub Jelinek <jakub@redhat.com>
5965 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
5966 vector even when returning true. Fix up function comment formatting.
5969 * ira-build.c (ira_loop_nodes_count): New variable.
5970 (create_loop_tree_nodes): Initialize it.
5971 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
5974 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
5975 method on dr_chain and result_chain.
5976 * tree-vect-stmts.c (vectorizable_store): Only call
5977 result_chain.create if j == 0.
5980 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
5981 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
5982 before overwriting it.
5984 2013-03-01 Tobias Burnus <burnus@net-b.de>
5986 * doc/extended.texi (C Extensions): Change order in @menu
5988 (Other MIPS Built-in Functions): Move last MIPS entry before
5989 "picoChip Built-in Functions".
5990 (SH Built-in Functions): Move after RX Built-in Functions.
5991 * doc/gcc.texi (Introduction): Change order in @menu
5993 * doc/md.texi (Constraints): Ditto.
5994 * gty.texi (Type Information): Ditto.
5995 (User-provided marking routines for template types): Make
5997 * doc/invoke.texi (AArch64 Options): Move before
5998 "Adapteva Epiphany Options".
6000 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6001 Jakub Jelinek <jakub@redhat.com>
6004 * asan.c (gate_asan): Lookup no_sanitize_address instead of
6005 no_address_safety_analysis attribute.
6006 * doc/extend.texi (no_address_safety_attribute): Rename to
6007 no_sanitize_address attribute, mention no_address_safety_analysis
6008 attribute as deprecated alias.
6010 2013-02-28 Jakub Jelinek <jakub@redhat.com>
6013 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
6014 type to vec<vec<tree> > *.
6015 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
6016 to be vec<tree> instead of vec<tree> *, set vec_defs
6017 to vNULL and call vec_defs.create (number_of_vects), adjust other
6019 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
6020 vectorizable_condition): Adjust vect_get_slp_defs callers.
6022 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6024 * config/aarch64/aarch64.c
6025 (aarch64_float_const_representable): Remove unused variable.
6027 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6029 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
6031 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6033 * config/aarch64/aarch64-builtins.c
6034 (aarch64_init_simd_builtins): Make static.
6036 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6038 * config/aarch64/aarch64.c
6039 (aarch64_simd_make_constant): Make static.
6041 2013-02-28 Martin Jambor <mjambor@suse.cz>
6043 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
6044 with no initialization to the RHS of debug statements.
6046 2013-02-28 Martin Jambor <mjambor@suse.cz>
6048 PR tree-optimization/56294
6049 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
6051 (get_access_replacement): Do not call create_access_replacement.
6052 Assert a replacement exists.
6053 (get_repl_default_def_ssa_name): Create the replacement declaration
6056 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6058 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
6061 2013-02-28 Marek Polacek <polacek@redhat.com>
6063 PR rtl-optimization/56466
6064 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
6065 if we're changing a loop.
6066 (peel_loops_completely): Likewise.
6068 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
6071 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
6073 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6076 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
6077 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
6078 INTX_FTYPE_FX, FX_FTYPE_INTX.
6079 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
6081 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6083 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
6084 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
6085 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
6086 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
6087 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
6088 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
6089 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
6090 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
6091 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
6092 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
6093 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
6094 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
6095 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
6096 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
6097 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
6098 (avrxmega6): Increase max flash segments from 5 to 6.
6099 * config/avr/t-multilib: Regenerate.
6100 * config/avr/avr-tables.opt: Regenerate.
6101 * doc/avr-mmcu.texi: Regenerate.
6103 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
6105 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
6106 (avr_device_to_arch): Rename to avr_device_to_ld.
6107 (avr_device_to_as): New prototype.
6108 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
6109 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
6110 * config/avr/driver-avr.c (avr_device_to_as): New.
6111 (avr_device_to_arch): Rename to avr_device_to_ld.
6113 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6116 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
6117 method on dr_chain and result_chain.
6120 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
6121 pointer_set_destroy on not_executed_last_iteration.
6124 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
6127 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
6128 FOR_EACH_DEFINED_FUNCTION when freeing state.
6131 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
6133 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
6137 * ipa-cp.c (decide_whether_version_node): Call vec_free on
6138 known_aggs[i].items and release known_aggs vector.
6141 * ipa-reference.c (propagate): Free node_info even for alias nodes.
6143 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6145 * config/microblaze/microblaze.c (microblaze_emit_compare):
6146 Use xor for EQ/NE comparisions.
6147 * config/microblaze/microblaze.md (cstoresf4): Add constraints
6148 (cbranchsf4): Adjust operator to comparison_operator.
6150 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6153 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
6155 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
6156 vec_safe_push, always update *slot.
6157 (redirect_edge_var_map_clear): Use vec_free.
6158 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
6159 (free_var_map_entry): Use vec_free.
6160 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
6161 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
6163 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
6166 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
6167 when the may_trap_p bit of the exprs being merged differs.
6168 Reorder tests for speculativeness in the logical and operator.
6170 2013-02-27 Jakub Jelinek <jakub@redhat.com>
6172 * incpath.c (add_standard_paths): Use reconcat instead of concat
6173 where appropriate and avoid leaking memory.
6175 * opts.h: Include obstack.h.
6176 (opts_concat): New prototype.
6177 (opts_obstack): New declaration.
6178 * opts.c (opts_concat): New function.
6179 (opts_obstack): New variable.
6180 (init_options_struct): Call gcc_init_obstack on opts_obstack.
6181 (finish_options): Use opts_concat instead of concat
6182 and XOBNEWVEC instead of XNEWVEC.
6183 * opts-common.c (generate_canonical_option, decode_cmdline_option,
6184 generate_option): Likewise.
6185 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
6186 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
6189 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
6190 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
6192 2013-02-26 Jakub Jelinek <jakub@redhat.com>
6195 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
6197 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6199 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
6200 (arm_block_move_unaligned_straight): Likewise.
6201 (arm_adjust_block_mem): Likewise.
6203 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6206 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
6207 temp, cond and label.
6208 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
6211 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
6212 * config/c6x/c6x.h (dbx_register_map): Update declaration.
6215 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
6216 of prologue/epilogue functions.
6219 * config/tilegx/tilegx.c (tilegx_expand_prologue):
6220 Remove unused variable cfa_offset.
6221 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
6224 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
6225 type promotion to unsigned.
6228 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
6229 for HOST_WIDE_INT of 32 bit / same size as int.
6230 (arm_block_move_unaligned_straight): Likewise.
6231 (arm_adjust_block_mem): Likewise.
6234 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
6237 2013-02-26 Marek Polacek <polacek@redhat.com>
6239 PR tree-optimization/56426
6240 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
6242 2013-02-26 Richard Biener <rguenther@suse.de>
6245 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
6246 unused variable loops.
6248 2013-02-26 Jakub Jelinek <jakub@redhat.com>
6250 PR tree-optimization/56448
6251 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
6252 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
6253 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
6254 later operands of the references, or even first operand for
6255 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
6257 PR tree-optimization/56443
6258 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
6259 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
6260 to type_for_mode langhook.
6262 2013-02-25 Matt Turner <mattst88@gmail.com>
6264 * doc/invoke.texi: Document r4700.
6266 2013-02-25 Richard Biener <rguenther@suse.de>
6268 PR tree-optimization/56175
6269 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
6271 (simplify_bitwise_binary): ... here. Also guard the conversion
6272 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
6274 2013-02-25 Catherine Moore <clm@codesourcery.com>
6277 2013-02-24 Catherine Moore <clm@codesourcery.com>
6278 Maciej W. Rozycki <macro@codesourcery.com>
6279 Tom de Vries <tom@codesourcery.com>
6280 Nathan Sidwell <nathan@codesourcery.com>
6281 Iain Sandoe <iain@codesourcery.com>
6282 Nathan Froyd <froydnj@codesourcery.com>
6283 Chao-ying Fu <fu@mips.com>
6285 * doc/extend.texi: (micromips, nomicromips, nocompression):
6286 Document new function attributes.
6287 * doc/invoke.texi (minterlink-compressed, mmicromips,
6288 m14k, m14ke, m14kec): Document new options.
6289 (minterlink-mips16): Update documentation.
6290 * doc/md.texi (ZC, ZD): Document new constraints.
6291 * configure.ac (gcc_cv_as_micromips): Check if linker
6292 supports the .set micromips directive.
6293 * configure: Regenerate.
6294 * config.in: Regenerate.
6295 * config/mips/mips-tables.opt: Regenerate.
6296 * config/mips/micromips.md: New file.
6297 * constraints.md (ZC, AD): New constraints.
6298 * config/mips/predicates.md (movep_src_register): New predicate.
6299 (movep_src_operand): New predicate.
6300 (non_volatile_mem_operand): New predicate.
6301 * config/mips/mips.md (multimem): New type.
6302 (length): Differentiate between 17-bit and 18-bit branch offsets.
6303 (MOVEP1, MOVEP2): New mode iterator.
6304 (mov_<load>l): Use ZC constraint.
6305 (mov_<load>r): Likewise.
6306 (mov_<store>l): Likewise.
6307 (mov_<store>r): Likewise.
6308 (*branch_equality<mode>_inverted): Add microMIPS support.
6309 (*branch_equality<mode>): Likewise.
6310 (*jump_absolute): Likewise.
6311 (indirect_jump_<mode>): Likewise.
6312 (tablejump_<mode>): Likewise.
6313 (<optab>_internal): Likewise.
6314 (sibcall_internal): Likewise.
6315 (sibcall_value_internal): Likewise.
6316 (prefetch): Use constraint ZD.
6317 * config/mips/mips.opt (minterlink-compressed): New option.
6318 (minterlink-mips16): Now an alias for minterlink-compressed.
6319 (mmicromips): New option.
6320 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6321 (compare_and_swap_12): Likewise.
6322 (sync_add<mode>): Likewise.
6323 (sync_<optab>_12): Likewise.
6324 (sync_old_<optab>_12): Likewise.
6325 (sync_new_<optab>_12): Likewise.
6326 (sync_nand_12): Likewise.
6327 (sync_old_nand_12): Likewise.
6328 (sync_new_nand_12): Likewise.
6329 (sync_sub<mode>): Likewise.
6330 (sync_old_add<mode>): Likewise.
6331 (sync_old_sub<mode>): Likewise.
6332 (sync_new_add<mode>): Likewise.
6333 (sync_new_sub<mode>): Likewise.
6334 (sync_<optab><mode>): Likewise.
6335 (sync_old_<optab><mode>): Likewise.
6336 (sync_new_<optab><mode>): Likewise.
6337 (sync_nand<mode>): Likewise.
6338 (sync_old_nand<mode>): Likewise.
6339 (sync_new_nand<mode>): Likewise.
6340 (sync_lock_test_and_set<mode>): Likewise.
6341 (test_and_set_12): Likewise.
6342 (atomic_compare_and_swap<mode>): Likewise.
6343 (atomic_exchange<mode>_llsc): Likewise.
6344 (atomic_fetch_add<mode>_llsc): Likewise.
6345 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6346 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6347 (umips_save_restore_pattern_p): Likewise.
6348 (umips_load_store_pair_p): Likewise.
6349 (umips_output_load_store_pair): Likewise.
6350 (umips_movep_target_p): Likewise.
6351 (umips_12bit_offset_address_p): Likewise.
6352 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6353 (mips_base_mips16): Rename this...
6354 (mips_base_compression_flags): ...to this. Update all uses.
6355 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6356 (mips_mips16_decl_p): Delete.
6357 (mips_nomips16_decl_p): Delete.
6358 (mips_get_compress_on_flags): New function.
6359 (mips_get_compress_off_flags): New function.
6360 (mips_get_compress_mode): New function.
6361 (mips_get_compress_on_name): New function.
6362 (mips_get_compress_off_name): New function.
6363 (mips_insert_attributes): Support multiple compression types.
6364 (mips_merge_decl_attributes): Likewise.
6365 (umips_12bit_offset_address_p): New function.
6366 (mips_start_function_definition): Emit .set micromips directive.
6367 (mips_call_may_need_jalx_p): New function.
6368 (mips_function_ok_for_sibcall): Add microMIPS support.
6369 (mips_print_operand_punctuation): Support short delay slots and
6371 (umips_swm_mask, umips_swm_encoding): New.
6372 (umips_build_save_restore): New function.
6373 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6374 (was_mips16_p): Remove.
6375 (old_compression_mode): New.
6376 (mips_set_compression_mode): New function.
6377 (mips_set_current_function): Add microMIPS support.
6378 (mips_option_override): Likewise.
6379 (umips_save_restore_pattern_p): New function.
6380 (umips_output_save_restore): New function.
6381 (umips_load_store_pair_p_1): New function.
6382 (umips_load_store_pair_p): New function.
6383 (umips_output_load_store_pair_1): New function.
6384 (umips_output_load_store_pair): New function.
6385 (umips_movep_target_p) New function.
6386 (mips_prepare_pch_save): Add microMIPS support.
6387 * config/mips/mips.h (TARGET_COMPRESSION): New.
6388 (TARGET_CPU_CPP_BUILTINS): Update macro
6389 to use new compression flags and to support microMIPS.
6390 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6391 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6392 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6393 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6394 (ASM_SPEC): Support mmicromips and mno-micromips.
6395 (M16STORE_REG_P): New macro.
6396 (MIPS_CALL): Support TARGET_MICROMIPS.
6397 (MICROMIPS_J): New macro.
6398 (mips_base_mips16): Rename this...
6399 (mips_base_compression_flags): ...to this.
6400 (UMIPS_12BIT_OFFSET_P): New macro.
6401 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6402 (MULTILIB_DIRNAMES): Likewise.
6404 2013-02-25 Tom de Vries <tom@codesourcery.com>
6406 PR rtl-optimization/56131
6407 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
6408 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
6409 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
6411 2013-02-25 Tobias Burnus <burnus@net-b.de>
6413 * doc/invoke.texi (-fsanitize=): Move from optimization
6414 to debugging options.
6416 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
6418 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
6420 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
6421 Alexander Monakov <amonakov@ispras.ru>
6424 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
6425 flush pending lists also on non-jumps. Adjust comment.
6427 2013-02-24 Catherine Moore <clm@codesourcery.com>
6428 Maciej W. Rozycki <macro@codesourcery.com>
6429 Tom de Vries <tom@codesourcery.com>
6430 Nathan Sidwell <nathan@codesourcery.com>
6431 Iain Sandoe <iain@codesourcery.com>
6432 Nathan Froyd <froydnj@codesourcery.com>
6433 Chao-ying Fu <fu@mips.com>
6435 * doc/extend.texi: (micromips, nomicromips, nocompression):
6436 Document new function attributes.
6437 * doc/invoke.texi (minterlink-compressed, mmicromips,
6438 m14k, m14ke, m14kec): Document new options.
6439 (minterlink-mips16): Update documentation.
6440 * doc/md.texi (ZC, ZD): Document new constraints.
6441 * configure.ac (gcc_cv_as_micromips): Check if linker
6442 supports the .set micromips directive.
6443 * configure: Regenerate.
6444 * config.in: Regenerate.
6445 * config/mips/mips-tables.opt: Regenerate.
6446 * config/mips/micromips.md: New file.
6447 * constraints.md (ZC, AD): New constraints.
6448 * config/mips/predicates.md (movep_src_register): New predicate.
6449 (movep_src_operand): New predicate.
6450 (non_volatile_mem_operand): New predicate.
6451 * config/mips/mips.md (multimem): New type.
6452 (length): Differentiate between 17-bit and 18-bit branch offsets.
6453 (MOVEP1, MOVEP2): New mode iterator.
6454 (mov_<load>l): Use ZC constraint.
6455 (mov_<load>r): Likewise.
6456 (mov_<store>l): Likewise.
6457 (mov_<store>r): Likewise.
6458 (*branch_equality<mode>_inverted): Add microMIPS support.
6459 (*branch_equality<mode>): Likewise.
6460 (*jump_absolute): Likewise.
6461 (indirect_jump_<mode>): Likewise.
6462 (tablejump_<mode>): Likewise.
6463 (<optab>_internal): Likewise.
6464 (sibcall_internal): Likewise.
6465 (sibcall_value_internal): Likewise.
6466 (prefetch): Use constraint ZD.
6467 * config/mips/mips.opt (minterlink-compressed): New option.
6468 (minterlink-mips16): Now an alias for minterlink-compressed.
6469 (mmicromips): New option.
6470 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6471 (compare_and_swap_12): Likewise.
6472 (sync_add<mode>): Likewise.
6473 (sync_<optab>_12): Likewise.
6474 (sync_old_<optab>_12): Likewise.
6475 (sync_new_<optab>_12): Likewise.
6476 (sync_nand_12): Likewise.
6477 (sync_old_nand_12): Likewise.
6478 (sync_new_nand_12): Likewise.
6479 (sync_sub<mode>): Likewise.
6480 (sync_old_add<mode>): Likewise.
6481 (sync_old_sub<mode>): Likewise.
6482 (sync_new_add<mode>): Likewise.
6483 (sync_new_sub<mode>): Likewise.
6484 (sync_<optab><mode>): Likewise.
6485 (sync_old_<optab><mode>): Likewise.
6486 (sync_new_<optab><mode>): Likewise.
6487 (sync_nand<mode>): Likewise.
6488 (sync_old_nand<mode>): Likewise.
6489 (sync_new_nand<mode>): Likewise.
6490 (sync_lock_test_and_set<mode>): Likewise.
6491 (test_and_set_12): Likewise.
6492 (atomic_compare_and_swap<mode>): Likewise.
6493 (atomic_exchange<mode>_llsc): Likewise.
6494 (atomic_fetch_add<mode>_llsc): Likewise.
6495 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6496 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6497 (umips_save_restore_pattern_p): Likewise.
6498 (umips_load_store_pair_p): Likewise.
6499 (umips_output_load_store_pair): Likewise.
6500 (umips_movep_target_p): Likewise.
6501 (umips_12bit_offset_address_p): Likewise.
6502 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6503 (mips_base_mips16): Rename this...
6504 (mips_base_compression_flags): ...to this. Update all uses.
6505 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6506 (mips_mips16_decl_p): Delete.
6507 (mips_nomips16_decl_p): Delete.
6508 (mips_get_compress_on_flags): New function.
6509 (mips_get_compress_off_flags): New function.
6510 (mips_get_compress_mode): New function.
6511 (mips_get_compress_on_name): New function.
6512 (mips_get_compress_off_name): New function.
6513 (mips_insert_attributes): Support multiple compression types.
6514 (mips_merge_decl_attributes): Likewise.
6515 (umips_12bit_offset_address_p): New function.
6516 (mips_start_function_definition): Emit .set micromips directive.
6517 (mips_call_may_need_jalx_p): New function.
6518 (mips_function_ok_for_sibcall): Add microMIPS support.
6519 (mips_print_operand_punctuation): Support short delay slots and
6521 (umips_swm_mask, umips_swm_encoding): New.
6522 (umips_build_save_restore): New function.
6523 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6524 (was_mips16_p): Remove.
6525 (old_compression_mode): New.
6526 (mips_set_compression_mode): New function.
6527 (mips_set_current_function): Add microMIPS support.
6528 (mips_option_override): Likewise.
6529 (umips_save_restore_pattern_p): New function.
6530 (umips_output_save_restore): New function.
6531 (umips_load_store_pair_p_1): New function.
6532 (umips_load_store_pair_p): New function.
6533 (umips_output_load_store_pair_1): New function.
6534 (umips_output_load_store_pair): New function.
6535 (umips_movep_target_p) New function.
6536 (mips_prepare_pch_save): Add microMIPS support.
6537 * config/mips/mips.h (TARGET_COMPRESSION): New.
6538 (TARGET_CPU_CPP_BUILTINS): Update macro
6539 to use new compression flags and to support microMIPS.
6540 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6541 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6542 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6543 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6544 (ASM_SPEC): Support mmicromips and mno-micromips.
6545 (M16STORE_REG_P): New macro.
6546 (MIPS_CALL): Support TARGET_MICROMIPS.
6547 (MICROMIPS_J): New macro.
6548 (mips_base_mips16): Rename this...
6549 (mips_base_compression_flags): ...to this.
6550 (UMIPS_12BIT_OFFSET_P): New macro.
6551 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6552 (MULTILIB_DIRNAMES): Likewise.
6554 2013-02-24 Jakub Jelinek <jakub@redhat.com>
6557 * target-globals.c (save_target_globals): For init_reg_sets and
6558 target_reinit remporarily set this_fn_optabs to this_target_optabs.
6560 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
6562 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
6563 * config/aarch64/t-aarch64
6564 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
6566 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
6569 * lra-constraints.c (process_alt_operands): Reload operand
6570 conflicting with earlier clobber only if no more other conflicting
6573 2013-02-22 Jakub Jelinek <jakub@redhat.com>
6576 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
6577 if not linking a shared library.
6579 2013-02-22 Seth LaForge <sethml@google.com>
6581 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
6583 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
6585 * config/arm/arm.md (split for extendsidi): Update condition.
6586 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
6587 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
6588 (qhs_zextenddi_cstr): Likewise.
6590 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6593 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
6594 avoid signed wrapping.
6595 (expand_mult): Handle properly multiplication by
6596 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
6597 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
6598 in the compiler if coeff is HOST_WIDE_INT_MIN.
6599 (expand_divmod): Don't make ext_op1 static, change it's type to
6600 uhwi. Avoid undefined behavior in -INTVAL (op1).
6602 PR rtl-optimization/50339
6603 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
6605 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
6606 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
6607 into splitting_ashiftrt field.
6608 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
6610 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
6613 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
6616 * trans-mem.c (execute_tm_mark): Do not expand transactions that
6617 are sure to go irrevocable.
6619 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
6621 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
6622 scalars are valid operands.
6624 2013-02-21 Martin Jambor <mjambor@suse.cz>
6626 PR tree-optimization/56310
6627 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
6628 only matching indices and non-negative final offsets.
6629 (intersect_aggregates_with_edge): Pass src_idx to
6630 agg_replacements_to_vector. Pass src_idx insstead of index to
6631 intersect_with_agg_replacements.
6633 2013-02-21 Martin Jambor <mjambor@suse.cz>
6635 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
6636 instead of hard-wired defaults.
6638 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
6640 * doc/invoke.texi (MIPS Options): Update documentation of the
6641 floating-point multiply-accumulate instruction restrictions.
6643 2013-02-21 Kostya Serebryany <kcc@google.com>
6645 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
6646 asan_shadow_offset on x86_64 linux.
6648 2013-02-21 Richard Biener <rguenther@suse.de>
6650 PR tree-optimization/56415
6652 2013-02-11 Richard Biener <rguenther@suse.de>
6654 PR tree-optimization/56273
6655 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6658 2013-02-21 Jakub Jelinek <jakub@redhat.com>
6661 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
6665 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
6666 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
6668 2013-02-20 Jan Hubicka <jh@suse.cz>
6670 PR tree-optimization/56265
6671 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
6672 when target is referenced for first time.
6674 2013-02-20 Richard Biener <rguenther@suse.de>
6676 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
6677 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
6678 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6679 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
6680 not return anything.
6681 (rename_ssa_copies): Do not remove unused locals.
6682 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
6683 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
6684 * passes.c (execute_function_todo): Do not schedule unused locals
6685 removal if cleanup_tree_cfg did something.
6686 * tree-ssa-live.c (remove_unused_locals): Dump statistics
6687 about the number of removed locals.
6689 2013-02-20 Richard Biener <rguenther@suse.de>
6691 PR tree-optimization/56398
6692 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
6694 2013-02-20 Martin Jambor <mjambor@suse.cz>
6696 PR tree-optimization/55334
6697 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
6698 restricted pointers to arrays.
6700 2013-02-20 Richard Biener <rguenther@suse.de>
6701 Jakub Jelinek <jakub@redhat.com>
6703 PR tree-optimization/56396
6704 * tree-ssa-ccp.c (n_const_val): New static variable.
6705 (get_value): Return NULL for SSA names we don't have a lattice
6707 (ccp_initialize): Initialize n_const_val.
6708 * tree-ssa-copy.c (n_copy_of): New static variable.
6709 (init_copy_prop): Initialize n_copy_of.
6710 (get_value): Return NULL_TREE for SSA names we don't have a
6713 2013-02-20 Martin Jambor <mjambor@suse.cz>
6715 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
6717 2013-02-20 Richard Biener <rguenther@suse.de>
6719 * genpreds.c (write_lookup_constraint): Do not compare first
6720 letter of the constraint again.
6722 2013-02-20 Richard Biener <rguenther@suse.de>
6724 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
6726 (get_use_iv_cost): Terminate hashtable walk when coming across
6729 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
6731 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
6732 reassociation for avx2 targets.
6734 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6736 * config/microblaze/microblaze.c: microblaze_has_clz = 0
6737 Add version check for v8.10.a to enable microblaze_has_clz
6738 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
6739 version and TARGET_PATTERN_COMPARE check
6740 * config/microblaze/microblaze.md: New clzsi2 instruction
6742 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6744 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
6745 function before branching.
6747 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6749 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
6751 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
6753 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
6756 * sel-sched.c: Include ira.h.
6757 (implicit_clobber_conflict_p): New function.
6758 (moveup_expr): Use it.
6759 * Makefile.in (sel-sched.o): Depend on ira.h.
6761 2013-02-19 Richard Biener <rguenther@suse.de>
6763 PR tree-optimization/56384
6764 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
6765 (vn_hash_type): Split out from ...
6766 (vn_hash_constant_with_type): ... here.
6767 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
6768 (vn_phi_eq): Compare types from vn_phi_s structure.
6769 (vn_phi_lookup): Populate vn_phi_s type.
6770 (vn_phi_insert): Likewise.
6772 2013-02-19 Jakub Jelinek <jakub@redhat.com>
6774 PR tree-optimization/56350
6775 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
6776 if haven't found reduction or nested cycle operand, rather than
6777 asserting we must find it.
6779 PR tree-optimization/56381
6780 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
6783 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
6784 Jakub Jelinek <jakub@redhat.com>
6787 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
6788 (swap_optab_enable): Same.
6789 (init_all_optabs): Use argument instead of global.
6790 * tree.h (struct tree_optimization_option): New field target_optabs.
6791 * expr.h (init_all_optabs): Add argument to prototype.
6792 (TREE_OPTIMIZATION_OPTABS): New.
6793 (save_optabs_if_changed): Protoize.
6794 * optabs.h: Declare this_fn_optabs.
6795 * optabs.c (save_optabs_if_changed): New.
6796 Declare this_fn_optabs.
6797 (init_optabs): Add argument to init_all_optabs() call.
6798 * function.c (invoke_set_current_function_hook): Handle per
6800 * function.h (struct function): New field optabs.
6801 * config/mips/mips.c (mips_set_mips16_mode): Handle when
6802 optimization_current_node has changed.
6803 * target-globals.h (save_target_globals_default_opts): Protoize.
6804 * target-globals.c (save_target_globals_default_opts): New.
6806 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6809 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
6810 registers %fr12 and %fr12R as call used.
6813 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
6814 and HImode, require all displacements to be an integer multiple of
6816 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
6817 only allow QImode and HImode when reload is in progress and strict is
6818 true. Likewise for symbolic addresses. Use base14_operand to check
6819 displacements in REG+BASE addresses.
6821 2013-02-18 Richard Biener <rguenther@suse.de>
6823 PR tree-optimization/56366
6824 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6825 handle sign-conversion of outer-loop initial induction value.
6827 2013-02-18 Richard Biener <rguenther@suse.de>
6830 * cfghooks.c (merge_blocks): If we merge a latch into another
6831 block adjust references to it.
6832 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
6833 (verify_loop_structure): Verify that a recorded latch is in fact
6836 2013-02-18 Richard Biener <rguenther@suse.de>
6838 PR tree-optimization/56321
6839 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
6840 order SSA name release and virtual operand unlinking.
6842 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6844 * config/microblaze/microblaze.md (save_stack_block): Define.
6845 (restore_stack_block): Likewise.
6847 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6849 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
6850 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
6851 * config/microblaze/microblaze.c (microblaze_option_override):
6852 Bail out early for PIC modes when target does not support PIC.
6854 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6856 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
6857 Replace with a microblaze version.
6858 (microblaze_trampoline_init): Adapt for microblaze.
6859 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
6862 2013-02-16 Jakub Jelinek <jakub@redhat.com>
6863 Dodji Seketeli <dodji@redhat.com>
6866 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
6867 (instrument_mem_region_access): Do not forget to always put
6868 instrumentation of the of 'base' and 'base + len' in a "if (len !=
6869 0) statement, even for cases where either 'base' or 'base + len'
6870 are not instrumented -- because they have been previously
6871 instrumented. Simplify the logic by putting all the statements
6872 instrument 'base + len' inside a sequence, and then insert that
6873 sequence right before the current insertion point. Then, to
6874 instrument 'base + len', just get an iterator on that statement.
6875 And do not forget to update the pointer to iterator the function
6876 received as argument.
6878 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
6880 PR rtl-optimization/56348
6881 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
6883 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
6885 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
6886 (clean_graph_dump_file): Pass base to start_graph_dump.
6888 2013-02-14 Richard Henderson <rth@redhat.com>
6891 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
6893 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
6895 * collect2-aix.h: Define F_LOADONLY.
6897 2013-02-14 Richard Biener <rguenther@suse.de>
6900 * varasm.c (output_constant_def_1): Get the decl representing
6901 the constant as argument.
6902 (output_constant_def): Wrap output_constant_def_1.
6903 (make_decl_rtl): Use output_constant_def_1 with the decl
6904 representing the constant.
6905 (build_constant_desc): Optionally re-use a decl already
6906 representing the constant.
6907 (tree_output_constant_def): Adjust.
6909 2013-02-14 Dodji Seketeli <dodji@redhat.com>
6912 * asan.c (instrument_builtin_call): Really put the length of the
6913 second source argument into src1_len.
6915 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6917 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
6918 argument. If it is false, don't create edge from then_bb to
6920 (insert_if_then_before_iter): Pass true to it.
6921 (build_check_stmt): Pass false to it.
6922 (transform_statements): Flush hash table only on extended basic
6923 block boundaries, rather than at the beginning of every bb.
6924 Don't flush hash table on nonfreeing_call_p calls.
6925 * tree-flow.h (nonfreeing_call_p): New prototype.
6926 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
6928 2013-02-13 David S. Miller <davem@davemloft.net>
6930 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
6932 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
6935 * ira.c (max_regno_before_ira): Move from ...
6937 (fix_reg_equiv_init): Use max_regno_before_ira instead of
6940 2013-02-13 Jakub Jelinek <jakub@redhat.com>
6942 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
6944 2013-02-13 Richard Biener <rguenther@suse.de>
6947 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
6948 globals in MEM_REFs.
6950 2013-02-13 Richard Biener <rguenther@suse.de>
6952 * loop-init.c (loop_optimizer_init): Clear loop state when
6953 re-initializing preserved loops.
6954 * loop-unswitch.c (unswitch_single_loop): Return whether
6955 we unswitched the loop. Do not verify loop state here.
6956 (unswitch_loops): When we unswitched a loop discover new loops.
6958 2013-02-13 Kostya Serebryany <kcc@google.com>
6960 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
6962 * sanitizer.def: Rename __asan_init to __asan_init_v1.
6964 2013-02-12 Dodji Seketeli <dodji@redhat.com>
6966 Avoid instrumenting duplicated memory access in the same basic block
6967 * Makefile.in (asan.o): Add new dependency on hash-table.h
6968 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
6969 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
6970 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
6971 (free_mem_ref_resources, has_mem_ref_been_instrumented)
6972 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
6973 (get_mem_ref_of_assignment): New functions.
6974 (get_mem_refs_of_builtin_call): Extract from
6975 instrument_builtin_call and tweak a little bit to make it fit with
6977 (instrument_builtin_call): Use the new
6978 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
6979 of is_gimple_builtin_call.
6980 (instrument_derefs, instrument_mem_region_access): Insert the
6981 instrumented memory reference into the hash table.
6982 (maybe_instrument_assignment): Renamed instrument_assignment into
6983 this, and change it to advance the iterator when instrumentation
6984 actually happened and return true in that case. This makes it
6985 homogeneous with maybe_instrument_assignment, and thus give a
6986 chance to callers to be more 'regular'.
6987 (transform_statements): Clear the memory reference hash table
6988 whenever we enter a new BB, when we cross a function call, or when
6989 we are done transforming statements. Use
6990 maybe_instrument_assignment instead of instrumentation. No more
6991 need to special case maybe_instrument_assignment and advance the
6992 iterator after calling it; it's now handled just like
6993 maybe_instrument_call. Update comment.
6995 2013-02-13 Richard Biener <rguenther@suse.de>
6997 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6998 Fix loop discovery code.
7000 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
7003 * lra-constraints.c (process_alt_operands): Match early clobber
7004 operand with itself. Check conflicts with earlyclobber only if
7005 the operand is not reloaded. Prefer to reload conflicting operand
7006 if earlyclobber and matching operands are the same.
7008 2013-02-12 Richard Biener <rguenther@suse.de>
7011 * lto-streamer-out.c (write_symbol): Do not output symbols
7012 for hard register variables.
7014 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
7017 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
7018 (umulsidi3_insn, mulsidi3_insn): New insns.
7020 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
7022 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
7023 (struct tune_params): Add vec_costs field.
7024 * config/arm/arm.c (arm_builtin_vectorization_cost)
7025 (arm_add_stmt_cost): New functions.
7026 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
7027 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
7028 (arm_default_vec_cost): New struct of type cpu_vec_costs.
7029 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7030 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
7031 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
7032 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
7034 2013-02-12 Richard Biener <rguenther@suse.de>
7037 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
7038 decls again if possible.
7040 2013-02-12 Richard Biener <rguenther@suse.de>
7043 * tree-ssa.c (verify_ssa_name): Fix check, move
7044 SSA_NAME_IN_FREE_LIST check up.
7046 2013-02-12 Jakub Jelinek <jakub@redhat.com>
7047 Steven Bosscher <steven@gcc.gnu.org>
7049 PR rtl-optimization/56151
7050 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
7051 equal to op0 or op1, and last_insn pattern is CODE operation
7052 with MEM dest and one of the operands matches that MEM.
7054 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
7056 * doc/extend.texi: Document Function Multiversioning and "default"
7057 parameter string to target attribute.
7058 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
7059 target attribute parameter is "default".
7060 (ix86_compare_version_priority): Remove checks for target attribute.
7061 (ix86_mangle_function_version_assembler_name): Change error to sorry.
7062 Remove check for target attribute equal to NULL. Add assert.
7063 (ix86_generate_version_dispatcher_body): Change error to sorry.
7065 2013-02-11 Iain Sandoe <iain@codesourcery.com>
7066 Jack Howarth <howarth@bromo.med.uc.edu>
7067 Patrick Marlier <patrick.marlier@gmail.com>
7070 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
7071 define ENDFILE_SPEC as TM_DESTRUCTOR.
7072 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
7074 2013-02-11 Alexander Potapenko <glider@google.com>
7075 Jack Howarth <howarth@bromo.med.uc.edu>
7076 Jakub Jelinek <jakub@redhat.com>
7079 * config/darwin.c (cdtor_record): Rename ctor_record.
7080 (sort_cdtor_records): Rename sort_ctor_records.
7081 (finalize_dtors): New routine to sort destructors by
7082 priority before use in assemble_integer.
7083 (machopic_asm_out_destructor): Use finalize_dtors if needed.
7085 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
7087 PR rtl-optimization/56275
7088 * simplify-rtx.c (avoid_constant_pool_reference): Check that
7089 offset is non-negative and less than cmode size before
7090 calling simplify_subreg.
7092 2013-02-11 Richard Biener <rguenther@suse.de>
7094 PR tree-optimization/56264
7095 * cfgloop.h (fix_loop_structure): Adjust prototype.
7096 * loop-init.c (fix_loop_structure): Return the number of
7097 newly discovered loops.
7098 * tree-cfgcleanup.c (repair_loop_structures): When new loops
7099 are discovered, do a full loop-closed SSA rewrite.
7101 2013-02-11 Richard Biener <rguenther@suse.de>
7103 PR tree-optimization/56273
7104 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7106 (check_array_ref): Fix missing newline in dumps.
7107 (search_for_addr_array): Likewise.
7109 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
7111 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
7113 2013-02-09 Jakub Jelinek <jakub@redhat.com>
7116 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
7118 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
7120 PR rtl-optimization/56246
7121 * lra-constraints.c (simplify_operand_subreg): Try to reuse
7123 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
7124 constraints are satisfied.
7126 2013-02-08 Jeff Law <law@redhat.com>
7129 * emit-rtl.c (reg_is_parm_p): New function.
7130 * regs.h (reg_is_parm_p): New prototype.
7131 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
7132 callee-clobbered registers.
7134 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7137 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
7138 If there is no implicit builtin declaration, just return NULL.
7140 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7142 * config/i386/sse.md (FMAMODEM): New mode iterator.
7143 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
7144 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
7146 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7148 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
7149 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
7150 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
7152 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7154 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
7155 (microblaze*-*-elf): Likewise.
7156 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
7158 * config/microblaze/microblaze-c.c: Add builtin defines for
7159 _LITTLE_ENDIAN and _BIG_ENDIAN.
7160 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
7161 add to TARGET_DEFAULT flags.
7162 Expand ASM_SPEC and LINK_SPEC.
7163 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7164 * config/microblaze/microblaze.md: Update extendsidi2 and
7165 movdi_internal instructions to use low-order / high-order reg
7167 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
7168 options and inversemask / mask of LITTLE_ENDIAN.
7169 * config/microblaze/t-microblaze: Expand multilib options to
7170 include mlittle-endian (le) and update exceptions patterns.
7172 2013-02-08 Jakub Jelinek <jakub@redhat.com>
7174 PR rtl-optimization/56195
7175 * lra-constraints.c (get_reload_reg): Don't reuse regs
7176 if they have smaller mode than requested, if they have
7177 wider mode than requested, try to return a SUBREG.
7179 PR tree-optimization/56250
7180 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
7181 if type is unsigned and code isn't MULT_EXPR.
7183 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
7185 PR tree-optimization/56064
7186 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
7187 bits according to mode.
7188 * fixed-value.h (fixed_from_double_int)
7189 (const_fixed_from_double_int): Adjust comments.
7191 2013-02-08 Richard Biener <rguenther@suse.de>
7194 * lto-streamer.h (struct data_in): Remove current_file, current_line
7195 and current_col members.
7196 * lto-streamer-out.c (lto_output_location): Stream changed bits
7197 en-block for efficiency.
7198 * lto-streamer-in.c (clear_line_info): Remove.
7199 (lto_input_location): Cache current file, line and column
7200 globally via local statics. Read changed bits en-block.
7201 (input_function): Do not call clear_line_info.
7202 (lto_read_body): Likewise.
7203 (lto_input_toplevel_asms): Likewise.
7205 2013-02-08 Michael Matz <matz@suse.de>
7207 PR tree-optimization/52448
7208 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
7209 (nt_call_phase): New static.
7210 (add_or_mark_expr): Only mark accesses with newer phase than any
7212 (nonfreeing_call_p): New.
7213 (nt_init_block): Update nt_call_phase, mark blocks as visited.
7214 (nt_fini_block): Keep blocks marked as visited.
7215 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
7217 2013-02-08 Richard Biener <rguenther@suse.de>
7219 * ira.c (ira): Free broken dominator information.
7221 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
7223 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
7225 2013-02-08 Marek Polacek <polacek@redhat.com>
7227 * cfgloop.c (verify_loop_structure): Add more checking of headers.
7229 2013-02-08 Richard Biener <rguenther@suse.de>
7232 * cfgloop.h (flow_loops_find): Adjust.
7233 (bb_loop_header_p): Declare.
7234 * cfgloop.c (bb_loop_header_p): New function split out from ...
7235 (flow_loops_find): ... here. Adjust function signature,
7236 support incremental loop structure update.
7237 (verify_loop_structure): Cleanup. Verify a loop is a loop.
7238 * cfgloopmanip.c (fix_loop_structure): Move ...
7239 * loop-init.c (fix_loop_structure): ... here.
7240 (apply_loop_flags): Split out from ...
7241 (loop_optimizer_init): ... here.
7242 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
7243 in incremental mode, only remove dead loops here.
7245 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
7248 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
7249 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
7250 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
7251 (*round<mode>3.libgcc): New insns for fixed-modes.
7252 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
7253 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
7254 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
7255 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
7256 implementations. Define to __builtin_avr_absFX,
7257 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
7258 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
7259 __builtin_avr_countlsFX, respectively.
7260 * config/avr/avr-c.c (target.h): Include it.
7261 (enum avr_builtin_id): New enum.
7262 (avr_resolve_overloaded_builtin): New static function.
7263 (avr_register_target_pragmas): Use it to set
7264 targetm.resolve_overloaded_builtin.
7265 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
7266 tree nodes used by DEF_BUILTIN.
7267 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
7268 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
7269 <AVR_BUILTIN_xxBITS>: Same.
7271 2013-02-08 Richard Biener <rguenther@suse.de>
7273 * cfgloop.c (verify_loop_structure): Properly handle
7274 a loop exiting to another loop header.
7275 * ira-int.h (ira_loops): Remove.
7276 * ira.c (ira_loops): Remove.
7277 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
7278 (do_reload): Use loop_optimizer_finalize.
7279 * ira-build.c (create_loop_tree_nodes): Use get_loops and
7280 number_of_loops to access the loop tree.
7281 (more_one_region_p): Likewise.
7282 (finish_loop_tree_nodes): Likewise.
7283 (rebuild_regno_allocno_maps): Likewise.
7284 (mark_loops_for_removal): Likewise.
7285 (mark_all_loops_for_removal): Likewise.
7286 (remove_unnecessary_regions): Likewise.
7287 (ira_build): Likewise.
7288 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7290 2013-02-08 Richard Biener <rguenther@suse.de>
7292 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
7293 * ipa-pure-const.c (analyze_function): Avoid calling
7294 mark_irreducible_loops twice.
7295 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
7297 2013-02-07 David S. Miller <davem@davemloft.net>
7299 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
7301 * var-tracking.c (vt_add_function_parameter): Test the presence of
7302 HAVE_window_save properly and do not remap argument registers when
7303 we have a leaf function.
7305 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
7308 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
7310 * config/i386/i386.c (ix86_print_operand): Ditto.
7312 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7314 * lra-constraints.c (process_alt_operands): Fix recently added comment.
7316 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7318 PR rtl-optimization/56225
7319 * lra-constraints.c (process_alt_operands): Check that reload hard
7320 reg can hold value for strict_low_part.
7322 2013-02-07 Jakub Jelinek <jakub@redhat.com>
7325 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
7326 dwarf2out_end_function.
7327 (in_first_function_p, maybe_at_text_label_p,
7328 first_loclabel_num_not_at_text_label): New variables.
7329 (dwarf2out_var_location): In the first function find out
7330 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
7331 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
7334 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
7336 PR rtl-optimization/56178
7337 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
7338 SUBREG of a register. Tidy up related block of code.
7339 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
7340 note if the source is a register or a SUBREG of a register.
7342 2013-02-07 Jakub Jelinek <jakub@redhat.com>
7345 * config/rs6000/rs6000.md (ptrm): New mode attr.
7346 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
7347 call_value_indirect_aix<pttrsize>,
7348 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
7351 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7353 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
7354 if -bnortl. Convert to strcmp and strncmp.
7356 2013-02-07 Alan Modra <amodra@gmail.com>
7359 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
7360 addresses won't wrap when offsetting.
7361 (rs6000_secondary_reload): Provide secondary reloads needed for
7362 wrapping LO_SUM addresses.
7364 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
7366 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
7367 MACH, just __MACH__.
7369 2013-02-06 Richard Biener <rguenther@suse.de>
7371 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
7372 instead of calling fix_loop_structure.
7374 2013-02-06 Jakub Jelinek <jakub@redhat.com>
7377 * omp-low.c (use_pointer_for_field): Return false if
7378 lower_send_shared_vars doesn't generate any copy-out code.
7380 2013-02-06 Tom de Vries <tom@codesourcery.com>
7382 PR rtl-optimization/56131
7383 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
7384 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
7385 of the label is NULL. Add comment.
7387 2013-02-05 Jakub Jelinek <jakub@redhat.com>
7389 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
7392 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
7393 (STATIC_LIBTSAN_LIBS): Likewise.
7394 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
7395 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
7396 is defined, don't add anything else beyond that.
7397 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
7398 (LINK_COMMAND_SPEC): Use them.
7400 PR tree-optimization/56205
7401 * tree-stdarg.c (check_all_va_list_escapes): Return true if
7402 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
7403 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
7405 2013-02-05 Richard Biener <rguenther@suse.de>
7407 PR tree-optimization/53342
7408 PR tree-optimization/53185
7409 * tree-vectorizer.h (vect_check_strided_load): Remove.
7410 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
7411 not disallow peeling for vectorized strided loads.
7412 (vect_check_strided_load): Make static and simplify.
7413 (vect_analyze_data_refs): Adjust.
7414 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
7415 correctly when vectorizing strided loads.
7417 2013-02-05 Richard Biener <rguenther@suse.de>
7419 * doc/install.texi: Refer to ISL, not PPL.
7421 2013-02-05 Jan Hubicka <jh@suse.cz>
7423 PR tree-optimization/55789
7424 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
7426 2013-02-05 Jan Hubicka <jh@suse.cz>
7428 PR tree-optimization/55789
7429 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
7430 the dead call anyway.
7432 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
7435 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
7437 2013-02-04 Alexander Potapenko <glider@google.com>
7438 Jack Howarth <howarth@bromo.med.uc.edu>
7439 Jakub Jelinek <jakub@redhat.com>
7442 * config/darwin.c (sort_ctor_records): Stabilized qsort
7443 on constructor priority by using original position.
7444 (finalize_ctors): New routine to sort constructors by
7445 priority before use in assemble_integer.
7446 (machopic_asm_out_constructor): Use finalize_ctors if needed.
7448 2013-02-04 Jakub Jelinek <jakub@redhat.com>
7451 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
7452 about visibility on artificial decls.
7453 * config/sol2.c (solaris_assemble_visibility): Likewise.
7455 2013-02-04 Kai Tietz <ktietz@redhat.com>
7458 * config/i386/i386.c (function_value_ms_64): Add additional valtype
7459 argument and improve checking of return-argument types for 16-byte
7461 (ix86_function_value_1): Add additional valtype argument on call
7462 of function_value_64.
7463 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
7464 handling infunction_value_64 function.
7466 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
7468 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
7470 2013-02-04 Richard Biener <rguenther@suse.de>
7472 PR tree-optimization/56188
7473 * tree-ssa-structalias.c (label_visit): Consider case with
7474 initially non-empty points-to set.
7475 (perform_var_substitution): Dump node mapping and clean up.
7477 2013-02-04 Richard Guenther <rguenther@suse.de>
7480 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
7481 node prevail as last resort.
7482 (lto_symtab_merge_decls): Remove guard on LTRANS here.
7483 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
7485 2013-02-04 Richard Biener <rguenther@suse.de>
7487 PR tree-optimization/56113
7488 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
7490 (equiv_class_lookup_or_add): ... this.
7491 (label_visit): Adjust and fix error in previous patch.
7492 (perform_var_substitution): Adjust.
7494 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
7496 * config/sh/divtab.c: Fix formatting and comments throughout the file.
7497 * config/sh/sh4-300.md: Likewise.
7498 * config/sh/sh4a.md: Likewise.
7499 * config/sh/constraints.md: Likewise.
7500 * config/sh/sh.md: Likewise.
7501 * config/sh/netbsd-elf.h: Likewise.
7502 * config/sh/predicates.md: Likewise.
7503 * config/sh/sh-protos.h: Likewise.
7504 * config/sh/ushmedia.h: Likewise.
7505 * config/sh/linux.h: Likewise.
7506 * config/sh/sh.c: Likewise.
7507 * config/sh/superh.h: Likewise.
7508 * config/sh/elf.h: Likewise.
7509 * config/sh/sh4.md: Likewise.
7510 * config/sh/sh.h: Likewise.
7512 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7514 * config/pa/constraints.md: Adjust unused letters. Change "T"
7515 constraint to match_test floating_point_store_memory_operand().
7516 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
7517 (base14_operand): New.
7518 (floating_point_store_memory_operand): New.
7519 (integer_store_memory_operand): Revise to use base14_operand and
7520 reg_plus_base_memory_operand.
7521 (move_dest_operand): Allow symbolic_memory_operands.
7522 (symbolic_memory_operand): Check for LO_SOM.
7523 (symbolic_operand): Change default case to break.
7524 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
7525 CONST_DOUBLE values to be reloaded by putting them into memory when
7526 the destination is a floating point register.
7527 (movdf): Remove code to handle CONST_DOUBLE.
7529 (reload_indf_r1): New.
7530 (reload_insf_r1): New.
7531 Consistently use "Q" and "T" constraints with integer and floating
7532 point move instructions, respectively.
7533 (movdi): Remove FAIL.
7534 Change predicate for source operand unamed DImode move from
7535 general_operand to move_src_operand.
7536 (umulsidi3): Change predicate for destination operand to
7538 Likewise for similar unamed patterns.
7539 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
7540 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
7541 (hppa_legitimize_address): Simplify mask calculation.
7542 (pa_emit_move_sequence): Revised handling of secondary reloads from
7543 REG+D addresses for floating point loads and stores. Directly handle
7544 loading CONST0_RTX (mode) to a floating point register.
7545 (pa_secondary_reload): Handle reloading DF and SFmode constant values
7546 to floating point registers. Don't restrict secondary reloads to
7547 floating point registers to integer modes. Revise some comments and
7549 (TARGET_LEGITIMATE_ADDRESS_P): Define.
7550 (pa_legitimate_address_p): New.
7551 (pa_legitimize_reload_address): New.
7552 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
7553 (STRICT_REG_OK_FOR_BASE_P): New.
7554 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
7555 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
7557 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
7558 Andrew Dixie <andrewd@gentrack.com>
7560 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
7563 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
7565 * expmed.c (extract_bit_field_1): Pass the full width of the
7566 structure to get_best_reg_extraction_insn.
7568 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
7571 * configure.ac (use_cxa_atexit): Add AIX.
7572 * configure: Regenerate.
7574 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
7576 2013-02-01 Jakub Jelinek <jakub@redhat.com>
7579 * final.c (need_profile_function): New variable.
7580 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
7581 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
7582 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
7583 notes, targetm.asm_out.function_prologue doesn't emit anything,
7584 HAVE_prologue and profiler should be emitted before prologue,
7585 set need_profile_function instead of emitting it.
7586 (final_scan_insn): If need_profile_function, emit
7587 profile_function on the first NOTE_INSN_BASIC_BLOCK or
7588 NOTE_INSN_FUNCTION_BEG note.
7590 2013-02-01 Richard Henderson <rth@redhat.com>
7592 * config/rs6000/rs6000.md (smulditi3): New.
7595 * config/alpha/alpha.md (umulditi3): New.
7597 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
7599 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
7600 (ASM_OUTPUT_ALIGNED_LOCAL): New.
7602 2013-02-01 Richard Biener <rguenther@suse.de>
7604 PR tree-optimization/56113
7605 * tree-ssa-structalias.c (label_visit): Reduce work for
7606 single-predecessor nodes.
7608 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
7610 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
7611 range isn't testing for zero.
7613 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
7616 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
7618 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
7619 Nick Clifton <nickc@redhat.com>
7621 * config/v850/constraints.md (Q): Define as a memory constraint.
7622 * config/v850/predicates.md (label_ref_operand): New predicate.
7623 (e3v5_shift_operand): New predicate.
7624 (ior_operator): New predicate.
7625 * config/v850/t-v850: Add e3v5 multilib.
7626 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
7627 (v850_gen_movdi): Prototype.
7628 * config/v850/v850.c: Add support for e3v5 architecture.
7629 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
7631 (construct_save_jarl): Add e3v5 long JARL support.
7632 (v850_adjust_insn_length): New function. Adjust length of call
7633 insns when using e3v5 instructions.
7634 (v850_gen_movdi): New function: Generate instructions to move a
7636 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
7637 (CPP_SPEC): Define __v850e3v5__ as appropriate.
7638 (TARGET_USE_FPU): Enable for e3v5.
7639 (CONST_OK_FOR_W): New macro.
7640 (ADJUST_INSN_LENGTH): Define.
7641 * config/v850/v850.md (UNSPEC_LOOP): Define.
7642 (attr cpu): Add v850e3v5.
7643 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
7644 (movdi): New pattern.
7645 (movdi_internal): New pattern.
7646 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
7647 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
7648 (cstoresf4): Likewise.
7649 (cstoredf4): Likewise.
7650 (insv): New pattern.
7651 (rotlso3_a): New pattern.
7652 (rotlsi3_b): New pattern
7653 (rotlsi3_v850e3v5): New pattern.
7654 (doloop_begin): New pattern.
7655 (fix_loop_counter): New pattern.
7656 (doloop_end): New pattern.
7657 (branch_normal): Add e3v5 long branch support.
7658 (branch_invert): Likewise.
7659 (branch_z_normal): Likewise.
7660 (branch_z_invert): Likewise.
7661 (branch_nz_normal): Likewise.
7662 (branch_nz_invert): Likewise.
7663 (call_internal_short): Add e3v5 register-indirect JARL support.
7664 (call_internal_long): Likewise.
7665 (call_value_internal_short): Likewise.
7666 (call_value_internal_long): Likewise.
7667 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
7668 (mloop): New option.
7669 * config.gcc: Add support for configuring v840e3v5 target.
7670 * doc/invoke.texi: Document new v850 specific command line options.
7672 2013-01-31 Paul Koning <ni1d@arrl.net>
7676 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
7677 children if parent is a class.
7678 (prune_unused_types_prune): Don't add DW_AT_declaration.
7680 2013-01-31 Richard Biener <rguenther@suse.de>
7682 PR tree-optimization/56157
7683 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
7684 match up operand with SLP child.
7686 2013-01-31 Jason Merrill <jason@redhat.com>
7689 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
7690 parameters the first time.
7691 (gen_scheduled_generic_parms_dies): Check completeness here.
7693 2013-01-31 Richard Biener <rguenther@suse.de>
7696 * common.opt (faggressive-loop-optimizations): New flag,
7698 * doc/invoke.texi (faggressive-loop-optimizations): Document.
7699 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
7700 infer_loop_bounds_from_undefined by it.
7702 2013-01-31 Richard Biener <rguenther@suse.de>
7704 PR tree-optimization/56150
7705 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
7706 visit virtual operands.
7707 (find_uses_to_rename_bb): Likewise.
7709 2013-01-31 Richard Biener <rguenther@suse.de>
7711 PR tree-optimization/56150
7712 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
7713 mixed store non-store stmts.
7715 2013-01-30 Jakub Jelinek <jakub@redhat.com>
7718 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
7719 LIBASAN_EARLY_SPEC is defined.
7720 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
7721 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
7723 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
7726 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
7727 invalid args instead of ICEing on it.
7728 (ix86_valid_target_attribute_tree): Return error_mark_node if
7729 ix86_valid_target_attribute_inner_p failed.
7730 (ix86_valid_target_attribute_p): Return false only if
7731 ix86_valid_target_attribute_tree returned error_mark_node. Allow
7732 target("default") attribute.
7733 (sorted_attr_string): Change argument from const char * to tree,
7734 merge in all target attribute arguments rather than just one.
7735 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
7736 instead of free. Avoid using strcat.
7737 (ix86_mangle_function_version_assembler_name): Mangle
7738 target("default") as if no target attribute is present. Adjust
7739 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
7740 instead of xmalloc and XDELETEVEC instead of free.
7741 (ix86_function_versions): Don't return true if one of the decls
7742 doesn't have target attribute. If they don't and one of the decls
7743 is DECL_FUNCTION_VERSIONED, report an error. Adjust
7744 sorted_attr_string caller. Use XDELETEVEC instead of free.
7745 (ix86_supports_function_versions): Remove.
7746 (make_name): Fix up formatting.
7747 (make_dispatcher_decl): Remove resolver_name and its initialization.
7748 Avoid leaking memory.
7749 (is_function_default_version): Return true if there is
7750 target("default") attribute rather than no target attribute at all.
7751 (make_resolver_func): Avoid leaking memory.
7752 (ix86_generate_version_dispatcher_body): Likewise.
7753 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
7754 * target.def (supports_function_versions): Remove.
7755 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
7756 * doc/tm.texi: Regenerated.
7758 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
7760 PR rtl-optimization/56144
7761 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
7762 for values with side effects.
7764 2013-01-30 Richard Biener <rguenther@suse.de>
7766 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
7767 (sparseset_pop): Likewise.
7768 * cfganal.c (compute_idf): Likewise. Increase work-stack size
7769 to be able to use quick_push in the worker loop.
7771 2013-01-30 Marek Polacek <polacek@redhat.com>
7773 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
7775 2013-01-30 Richard Biener <rguenther@suse.de>
7778 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
7780 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
7782 PR tree-optimization/56064
7783 * fixed-value.c (fixed_from_double_int): New function.
7784 * fixed-value.h (fixed_from_double_int): New prototype.
7785 (const_fixed_from_double_int): New static inline function.
7786 * fold-const.c (native_interpret_fixed): New static function.
7787 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
7788 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
7789 (native_encode_fixed): New static function.
7790 (native_encode_expr) <FIXED_CST>: Use it.
7791 (native_interpret_int): Move double_int worker code to...
7792 * double-int.c (double_int::from_buffer): ...this new static method.
7793 * double-int.h (double_int::from_buffer): Prototype it.
7795 2013-01-30 Richard Biener <rguenther@suse.de>
7797 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
7798 New pointer-map and obstack.
7799 (init_alias_vars): Allocate pointer-map and obstack.
7800 (delete_points_to_sets): Free them.
7801 (find_what_var_points_to): Cache result.
7802 (find_what_p_points_to): Adjust for changed interface of
7803 find_what_var_points_to.
7804 (compute_points_to_sets): Likewise.
7805 (ipa_pta_execute): Likewise.
7807 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7809 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
7810 * configure: Regenerate.
7811 * config.in: Regenerate.
7812 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
7813 #nobits/#progbits if supported.
7815 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
7818 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
7819 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
7820 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
7822 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7824 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
7825 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7827 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7829 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
7830 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
7832 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7834 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
7836 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
7837 * config/arm/cortex-a7.md: New bypasses using
7838 arm_mac_accumulator_is_result.
7840 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7842 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
7843 (cortex_a7_neon_mla): Likewise.
7844 (cortex_a7_fpfmad): New reservation.
7845 (cortex_a7_fpmacs): Use ffmas and update required units.
7846 (cortex_a7_fpmuld): Update required units and latency.
7847 (cortex_a7_fpmacd): Likewise.
7848 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
7849 (cortex_a7_neon). Likewise.
7850 (bypass) Update participating units.
7852 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
7854 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
7855 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
7857 * config/arm/vfp11.md (vfp_farith): Use ffmas.
7858 (vfp_fmul): Use ffmad.
7859 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
7860 (cortex_r4_fmacd): Use ffmad.
7861 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
7862 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
7863 (cortex_a9_fmacd): Use ffmad.
7864 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
7865 (cortex_a8_vfp_macd): Use ffmad.
7866 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
7867 (cortex_a5_fpmacd): Use ffmad.
7868 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
7869 (cortex_a15_vfp_macd): Use ffmad.
7870 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
7872 2013-01-29 Jason Merrill <jason@redhat.com>
7875 * varasm.c (default_assemble_visibility): Don't warn about
7876 visibility on artificial decls.
7878 2013-01-29 Richard Biener <rguenther@suse.de>
7880 PR tree-optimization/56113
7881 * tree-ssa-structalias.c (equiv_class_lookup): Also return
7883 (label_visit): Free duplicate bitmaps and record the leader instead.
7884 (perform_var_substitution): Adjust.
7886 2013-01-29 Richard Biener <rguenther@suse.de>
7888 PR tree-optimization/55270
7889 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
7890 the CFG, schedule loops for fixup.
7892 2013-01-29 Nick Clifton <nickc@redhat.com>
7894 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
7897 2013-01-28 Leif Ekblad <leif@rdos.net>
7899 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
7900 * config/i386/i386.h (TARGET_RDOS): New macro.
7901 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
7902 * config/i386/i386.c (ix86_option_override_internal): For 64bit
7903 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
7904 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
7905 DEFAULT_LARGE_SECTION_THRESHOLD.
7906 * config/i386/i386.md (R14_REG, R15_REG): New constants.
7907 * config/i386/rdos.h: New file.
7908 * config/i386/rdos64.h: New file.
7910 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
7913 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
7916 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7918 PR rtl-optimization/56117
7919 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
7920 call cselib_lookup_from_insn on the MEM before calling
7921 add_insn_mem_dependence.
7923 2013-01-28 Richard Biener <rguenther@suse.de>
7925 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
7926 to a stmt that didn't have one.
7927 (copy_phis_for_bb): Likewise for PHI arguments.
7928 (copy_debug_stmt): Likewise for debug stmts.
7930 2013-01-28 Richard Biener <rguenther@suse.de>
7932 PR tree-optimization/56034
7933 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
7934 (partition_builtin_p): Adjust.
7935 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
7936 it is the last partition.
7937 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
7938 up the vertex for the definition.
7939 (classify_partition): Classify whether a partition is a
7940 PKIND_REDUCTION, thus has uses outside of the loop.
7941 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
7942 Merge all PKIND_REDUCTION partitions into the last partition.
7943 (tree_loop_distribution): Seed partitions from reductions as well.
7945 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7947 PR tree-optimization/56125
7948 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
7949 pow(x,c) into sqrt(x) * powi(x, n/2) or
7950 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
7951 optimizing for size.
7952 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
7953 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
7956 PR tree-optimization/56094
7957 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
7958 to UNKNOWN_LOCATION while gimplifying expr.
7960 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
7963 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
7964 operand 0 in movabs insn template for -masm=intel asm alternative.
7965 (*movabs<mode>_2): Ditto for operand 1.
7967 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
7970 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
7973 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7975 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
7978 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7980 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
7981 Undef to avoid warning.
7983 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7985 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
7986 * configure: Regenerate.
7988 2013-01-25 Jakub Jelinek <jakub@redhat.com>
7990 PR tree-optimization/56098
7991 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
7992 for stmts with volatile ops.
7993 (cond_store_replacement): Don't optimize if assign has volatile ops.
7994 (cond_if_else_store_replacement_1): Don't optimize if either
7995 then_assign or else_assign have volatile ops.
7996 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
7999 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8001 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
8003 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8005 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
8006 missing ':' in asm example.
8008 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
8010 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
8011 entries into lane and laneq entries.
8012 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
8013 Remove AdvSIMD scalar modes.
8014 (aarch64_sq<r>dmulh_laneq<mode>): New.
8015 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
8017 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
8018 builtin implementations to relfect changes in RTL in aarch64-simd.md.
8019 * config/aarch64/iterators.md (VCOND): New.
8022 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
8025 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
8026 Add NULL LIBNAME argument to existing definitions.
8027 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
8028 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
8029 * config/avr/avr.c (DEF_BUILTIN): Same.
8030 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
8031 (avr_expand_builtin): Expand to a vanilla call if a libgcc
8032 implementation is available (DECL_ASSEMBLER_NAME is set).
8033 (avr_fold_absfx): New static function.
8034 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
8035 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
8036 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
8038 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
8039 (abshk, absk, abslk, absllk): Provide as static inline functions.
8041 2013-01-25 Marek Polacek <polacek@redhat.com>
8043 PR tree-optimization/56035
8044 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
8046 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
8048 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
8049 (*movtf_internal_rex64): Add (!o,C) alternative
8050 (*movxf_internal_rex64): Ditto.
8051 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
8053 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
8055 * doc/invoke.texi: fix typo.
8056 * doc/objc.texi: fix typo.
8058 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8060 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
8061 for the first two alternatives.
8063 2013-01-24 Diego Novillo <dnovillo@google.com>
8065 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
8066 (ggc-zone.o): Remove.
8067 * configure.ac: Remove option --with-gc.
8068 * configure: Re-generate.
8069 * doc/install.texi: Remove documentation for --with-gc.
8070 * gengtype.c (write_enum_defn): Remove. Update all users.
8071 (write_Types_process_field): Remove generation of gt_e_* argument.
8072 (output_type_enum): Remove. Update all users.
8073 (write_enum_defn): Remove. Update all users.
8074 (enum alloc_zone): Remove. Update all users.
8075 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
8076 * ggc-common.c (ggc_splay_alloc): Remove first argument.
8078 (struct ptr_data): Remove field TYPE. Update all users.
8079 (gt_pch_note_object): Remove argument TYPE. Update all users.
8080 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
8082 * ggc-none.c (ggc_alloc_typed_stat): Remove.
8083 (struct alloc_zone): Remove.
8084 (ggc_internal_alloc_zone_stat): Remove.
8085 (ggc_internal_cleared_alloc_zone_stat): Remove.
8086 * ggc-page.c (ggc_alloc_typed_stat): Remove.
8087 (ggc_pch_count_object): Remove last argument. Update all users.
8088 (ggc_pch_alloc_object): Remove last argument. Update all users.
8089 (struct alloc_zone): Remove.
8090 * ggc-zone.c: Remove.
8091 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
8092 (struct alloc_zone): Remove.
8093 (ggc_alloc_typed_stat): Remove.
8094 (ggc_alloc_typed): Remove.
8095 (ggc_splay_alloc): Remove first argument.
8096 (rtl_zone): Remove. Update all users.
8097 (tree_zone): Remove. Update all users.
8098 (tree_id_zone): Remove. Update all users.
8099 (ggc_internal_zone_alloc_stat): Remove. Update all users.
8100 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
8101 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
8102 * tree-ssanames.c: Remove references to zone allocator in comments.
8104 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
8106 * config/avr/avr.c (avr_out_fract): Make register numbers that
8107 might be outside of source operand signed.
8109 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
8111 * config/i386/constraints.md (Yf): New constraint.
8112 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
8113 of f constraint to conditionaly disable x87 register preferences.
8114 (*movdf_internal): Ditto.
8115 (*movsf_internal): Ditto.
8117 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
8120 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
8121 that have operands with impossible constraints.
8122 Add a FIXME for a speed-up opportunity.
8123 * lra-constraints.c (process_alt_operands): Verify that a class
8124 selected from constraints on asms is valid for the operand mode.
8125 (curr_insn_transform): Remove incorrect comment.
8127 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
8129 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
8130 TOC operand is a valid symbol ref in the constant pool.
8132 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8134 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
8136 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
8139 * config/avr/stdfix.h: New file.
8140 * t-avr (stdfix-gcc.h): New rule to build it.
8141 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
8143 2013-01-23 Kostya Serebryany <kcc@google.com>
8145 * config/darwin.h: remove dependency on
8146 CoreFoundation (asan on Mac OS).
8148 2013-01-23 Jakub Jelinek <jakub@redhat.com>
8151 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
8152 instead of cmpdi_operand for first comparison operand.
8153 Don't assert that comparison operands aren't both constants.
8155 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
8157 * doc/install.texi (Downloading the Source): Update references to
8158 downloading separate components.
8160 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
8162 * doc/extend.texi (__int128): Improve grammar.
8164 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
8167 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
8168 alternative to (o,r).
8169 (*movdi_internal_rex64): Remove (!o,n) alternative.
8170 (DImode immediate->memory splitter): Remove.
8171 (DImode immediate->memory peephole2): Remove.
8172 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
8173 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
8174 alternative to (!o,*r).
8175 (*movtf_internal_sse): New pattern.
8176 (*movxf_internal_rex64): New pattern.
8177 (*movxf_internal): Disable for TARGET_64BIT.
8178 (*movdf_internal_rex64): Remove (!o,F) alternative.
8180 2013-01-22 Jakub Jelinek <jakub@redhat.com>
8183 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
8184 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
8185 * tree-vect-loop-manip.c (find_loop_location): Also ignore
8186 stmt locations where LOCATION_LOCUS of the stmt location is
8187 UNKNOWN_LOCATION or BUILTINS_LOCATION.
8190 * config/i386/i386.md (UNSPEC_STOS): New.
8191 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
8192 *strsetqi_1): Add UNSPEC_STOS.
8194 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
8197 * doc/invoke.texi: Remove left over -Wsynth example.
8199 2013-01-21 Jakub Jelinek <jakub@redhat.com>
8201 PR tree-optimization/56051
8202 * fold-const.c (fold_binary_loc): Don't fold
8203 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
8204 a narrowing conversion, or widening conversion from signed
8207 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
8209 PR rtl-optimization/56023
8210 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
8211 dependent on debug instruction.
8213 2013-01-21 Martin Jambor <mjambor@suse.cz>
8216 * function.c (allocate_struct_function): Call
8217 invoke_set_current_function_hook earlier.
8219 2013-01-21 Jakub Jelinek <jakub@redhat.com>
8221 * reload1.c (init_reload): Only initialize reload_obstack
8222 during the first call.
8224 2013-01-21 Marek Polacek <polacek@redhat.com>
8226 * cfgloop.c (verify_loop_structure): Fix up grammar.
8228 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
8230 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
8231 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
8233 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8236 * config/arm/marvell-pj4.md: Update copyright year.
8237 Fix up use of alu to alu_reg and simple_alu_imm.
8239 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
8241 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
8243 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
8246 * lra-constraints.c (curr_insn_transform): Don't reuse original
8247 insn for secondary memory move when memory mode should be different.
8249 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8251 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
8252 atomic_storedi_1): New patterns.
8254 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8256 btver2 pipeline descriptions.
8257 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
8259 * config/i386/i386.md (btver2_decode): New type attributes.
8260 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
8262 * config/i386/btver2.md: New file describing btver2 pipelines.
8264 2013-01-19 Andrew Pinski <apinski@cavium.com>
8266 PR tree-optimization/52631
8267 * tree-ssa-sccvn (visit_use): Before looking up the original
8268 statement, try looking up the simplified expression.
8270 2013-01-19 Anthony Green <green@moxielogic.com>
8272 * config/moxie/moxie.c (moxie_expand_prologue): Set
8273 current_function_static_stack_size.
8275 2013-01-18 Jakub Jelinek <jakub@redhat.com>
8277 PR tree-optimization/56029
8278 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
8279 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
8281 2013-01-18 Sharad Singhai <singhai@google.com>
8283 PR tree-optimization/55995
8284 * dumpfile.c (dump_loc): Print location only if available.
8285 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
8287 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
8290 * lra-constraints.c (curr_insn_transform): Reuse original insn for
8291 secondary memory move.
8292 (inherit_reload_reg): Use rclass instead of cl for
8293 check_secondary_memory_needed_p.
8295 2013-01-18 Jakub Jelinek <jakub@redhat.com>
8298 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
8299 the case where writing real complex part of target modifies op1.
8301 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
8303 * config/aarch64/aarch64-simd.md
8304 (aarch64_vcond_internal<mode>): Handle unordered cases.
8305 * config/aarch64/iterators.md (v_cmp_result): New.
8307 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
8308 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8310 * config/arm/marvell-pj4.md: New file.
8311 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
8312 * config/arm/arm.md (generic_sched): Add marvell_pj4.
8313 (generic_vfp): Likewise.
8314 * config/arm/arm-cores.def: Add marvell-pj4.
8315 * config/arm/arm-tune.md: Regenerate.
8316 * config/arm/arm-tables.opt: Regenerate.
8317 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
8318 * doc/invoke.texi: Document marvell-pj4.
8320 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
8322 * config/aarch64/arm_neon.h: Map scalar types to standard types.
8324 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8329 * var-tracking.c (negative_power_of_two_p): New.
8330 (global_get_addr_cache, local_get_addr_cache): New.
8331 (get_addr_from_global_cache, get_addr_from_local_cache): New.
8332 (vt_canonicalize_addr): Rewrite using the above. Adjust the
8334 (vt_stack_offset_p): Remove.
8335 (vt_canon_true_dep): Always canonicalize loc's address.
8336 (clobber_overlapping_mems): Make sure we have a MEM.
8337 (local_get_addr_clear_given_value): New.
8338 (val_reset): Clear local cached entries.
8339 (compute_bb_dataflow): Create and release the local cache.
8340 Disable duplicate MEMs clobbering.
8341 (emit_notes_in_bb): Clobber MEMs likewise.
8342 (vt_emit_notes): Create and release the local cache.
8343 (vt_initialize, vt_finalize): Create and release the global
8344 cache, respectively.
8345 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
8347 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8350 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
8351 not found in the symtab.
8353 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
8356 PR rtl-optimization/55547
8357 PR rtl-optimization/53827
8360 * alias.c (offset_overlap_p): New, factored out of...
8361 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
8362 the conservative special case for symbolic constants. Don't
8363 adjust zero sizes on alignment.
8365 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
8367 PR rtl-optimization/52573
8368 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
8369 REG_UNUSED for the same register.
8371 2013-01-17 Richard Biener <rguenther@suse.de>
8372 Marek Polacek <polacek@redhat.com>
8374 PR rtl-optimization/55833
8375 * loop-unswitch.c (unswitch_loops): Move loop verification...
8376 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
8377 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
8378 Set it to true when we're removing a loop from hierarchy tree in
8379 an irreducible region.
8380 (fix_bb_placements): Adjust caller.
8381 (fix_loop_placements): Likewise.
8383 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
8385 * config/avr/builtins.def (DEF_BUILTIN): Factor out
8386 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
8387 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
8388 Remove ID. Adjust comments.
8389 * config/avr/avr-c.c (avr_builtin_name): Remove.
8390 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
8391 * config/avr/avr.c (avr_tolower): New static function.
8392 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
8393 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
8394 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
8397 2013-01-17 Jan Hubicka <jh@suse.cz>
8399 PR tree-optimization/55273
8400 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
8402 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
8405 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
8406 store through atomic_store<mode>_1.
8407 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
8409 2013-01-17 Martin Jambor <mjambor@suse.cz>
8411 PR tree-optimizations/55264
8412 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
8413 for virtual methods.
8414 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
8415 virtual methods before inlining is over.
8416 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
8418 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
8421 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
8423 PR rtl-optimization/56005
8424 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
8425 pending reads for prefetch.
8427 2013-01-16 Ian Bolton <ian.bolton@arm.com>
8429 * config/aarch64/aarch64.md
8430 (*cstoresi_neg_uxtw): New pattern.
8431 (*cmovsi_insn_uxtw): New pattern.
8432 (*<optab>si3_uxtw): New pattern.
8433 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
8434 (*<optab>si3_insn_uxtw): New pattern.
8435 (*bswapsi2_uxtw): New pattern.
8437 2013-01-16 Richard Biener <rguenther@suse.de>
8439 * tree-inline.c (tree_function_versioning): Remove set but
8440 never used variable.
8442 2013-01-16 Richard Biener <rguenther@suse.de>
8444 PR tree-optimization/55964
8445 * tree-flow.h (rename_variables_in_loop): Remove.
8446 (rename_variables_in_bb): Likewise.
8447 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
8448 (copy_loop_before): Adjust and delete update-ssa status.
8449 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8450 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
8451 (rename_variables_in_loop): Remove.
8452 (slpeel_update_phis_for_duplicate_loop): Likewise.
8453 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
8454 use available cfg machinery instead of duplicating it.
8455 Update PHI nodes and perform poor-mans SSA update here.
8456 (slpeel_tree_peel_loop_to_edge): Adjust.
8458 2013-01-16 Richard Biener <rguenther@suse.de>
8460 PR tree-optimization/54767
8461 PR tree-optimization/53465
8462 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
8463 (vrp_visit_phi_node): For PHI arguments coming via backedges
8464 drop all symbolical range information.
8465 (execute_vrp): Compute backedges.
8467 2013-01-16 Richard Biener <rguenther@suse.de>
8469 * doc/install.texi: Update CLooG and ISL requirements to
8472 2013-01-16 Christian Bruel <christian.bruel@st.com>
8475 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
8476 (broken_move): Handle UNSPECV_SP_SWITCH_B.
8477 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
8479 2013-01-16 DJ Delorie <dj@redhat.com>
8481 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8482 (UNSPECV_SP_SWITCH_E): New.
8483 (sp_switch_1): Change to an unspec.
8484 (sp_switch_2): Change to an unspec. Don't use post-inc when we
8487 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
8489 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
8490 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
8491 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
8492 (expand_mem_thread_fence): Ditto.
8493 (expand_mem_signal_fence): Ditto.
8494 (expand_atomic_load): Ditto.
8495 (expand_atomic_store): Ditto.
8497 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
8499 PR rtl-optimization/55547
8500 PR rtl-optimization/53827
8503 * alias.c (memrefs_conflict_p): Set sizes to negative after
8506 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8509 * function.c (thread_prologue_and_epilogue_insns): Always
8510 add crtl->drap_reg to set_up_by_prologue.set, even if
8511 stack_realign_drap is false.
8513 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8515 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
8516 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
8517 *call): Fix indention.
8519 2013-01-15 Tom de Vries <tom@codesourcery.com>
8522 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
8525 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
8527 PR rtl-optimization/55153
8528 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
8530 2013-01-15 Martin Jambor <mjambor@suse.cz>
8532 PR tree-optimization/55920
8533 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
8534 accesses as grp_to_be_debug_replaced.
8536 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8538 PR tree-optimization/55920
8539 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
8540 there is non-useless type conversion needed from debug rhs to lhs,
8541 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
8543 2013-01-15 Joseph Myers <joseph@codesourcery.com>
8544 Mikael Pettersson <mikpe@it.uu.se>
8547 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
8549 (ASM_OUTPUT_CASE_LABEL): Remove.
8550 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
8551 * final.c (shorten_branches): Update alignment of labels before
8552 jump tables if CASE_VECTOR_SHORTEN_MODE.
8554 2013-01-15 Richard Biener <rguenther@suse.de>
8557 * system.h: Do not include gmp.h for building host tools.
8559 2013-01-15 Richard Biener <rguenther@suse.de>
8562 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
8563 account for bitpos when computing alignment.
8565 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
8567 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
8568 (ix86_target_macros_internal): Likewise.
8570 * config/i386/i386.c (m_CORE2I7): Removed.
8571 (m_CORE_HASWELL): New macro.
8572 (m_CORE_ALL): Likewise.
8573 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
8574 (initial_ix86_arch_features): Likewise.
8575 (processor_target_table): Initializations for Core avx2.
8576 (cpu_names): New names "core-avx2".
8577 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
8578 PROCESSOR_CORE_HASWELL.
8579 (ix86_issue_rate): New case.
8580 (ia32_multipass_dfa_lookahead): Likewise.
8581 (ix86_sched_init_global): Likewise.
8583 * config/i386/i386.h (TARGET_HASWELL): New macro.
8584 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
8585 (processor_type): New PROCESSOR_HASWELL.
8587 2013-01-15 Jakub Jelinek <jakub@redhat.com>
8589 PR tree-optimization/55955
8590 * tree-vect-loop.c (vectorizable_reduction): Give up early on
8591 *SHIFT_EXPR and *ROTATE_EXPR codes.
8593 PR tree-optimization/48766
8594 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
8595 -ftrapv disable -fwrapv.
8597 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8600 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
8601 etc. to 1 and not to __flash.
8602 Use LL suffix for __INT24_MAX__ with -mint8.
8603 Use ULL suffix for __UINT24_MAX__ with -mint8.
8605 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8607 * config/avr/avr-arch.h
8608 (struct base_arch_s): Use typedef avr_arch_t instead.
8609 (struct arch_info_s): Use typedef avr_arch_info_t instead.
8610 (struct mcu_type_s): Use typedef avr_mcu_t instead.
8611 * config/avr/avr.c: Same.
8612 * config/avr/avr-devices.c: Same.
8613 * config/avr/driver-avr.c: Same.
8614 * config/avr/gen-avr-mmcu-texi.c: Same.
8615 * config/avr/avr-mcus.def: Adjust comment.
8617 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
8619 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
8620 * config/aarch64/iterators.md (VALLDI): New.
8622 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
8623 Andi Kleen <ak@linux.intel.com>
8626 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
8627 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
8630 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8632 * config/avr/avr-stdint.h: Remove trailing blanks.
8633 * config/avr/avr-log.h: Same.
8634 * config/avr/avr-arch.h: Same.
8635 * config/avr/avr-devices.c: Same.
8636 * config/avr/avr-dimode.md: Same.
8637 * config/avr/predicates.md: Same.
8638 * config/avr/avr-c.c: Same. And fix typo.
8640 * config/avr/avr-protos.h: Same. And:
8641 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
8642 (init_cumulative_args): Rename to avr_init_cumulative_args.
8643 (expand_prologue): Rename to avr_expand_prologue.
8644 (expand_epilogue): Rename to avr_expand_epilogue.
8645 (adjust_insn_length): Rename to avr_adjust_insn_length.
8646 (notice_update_cc): Rename to avr_notice_update_cc.
8647 (final_prescan_insn): Rename to avr_final_prescan_insn.
8648 * config/avr/avr.c: Same.
8649 * config/avr/avr.h: Same.
8650 * config/avr/avr.md: Remove trailing blanks.
8651 (prologue): Use avr_expand_prologue.
8652 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
8654 2013-01-14 Richard Biener <rguenther@suse.de>
8656 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
8657 verify_location, collect_subblocks): New functions.
8658 (verify_gimple_in_cfg): Verify that locations only reference
8659 BLOCKs in the functions BLOCK tree.
8661 2013-01-14 Richard Biener <rguenther@suse.de>
8663 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
8665 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
8667 (insert_out_of_ssa_copy_on_edge): Likewise.
8668 (rewrite_close_phi_out_of_ssa): Likewise.
8669 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
8671 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
8672 propagated constants.
8673 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
8676 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
8678 * config/avr/avr-modes.def: Add GPL copyright notice.
8680 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
8682 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
8683 MEMMODEL_MASK to determine memory model.
8684 (atomic_store<mode>): Ditto from operands[2].
8685 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
8687 2013-01-13 Jakub Jelinek <jakub@redhat.com>
8690 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
8691 (fold_gimple_assign): Don't call unshare_expr here.
8692 (fold_ctor_reference): Call unshare_expr.
8694 2013-01-13 Terry Guo <terry.guo@arm.com>
8696 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
8697 * doc/fragments.texi: Document MULTILIB_REUSE.
8698 * gcc.c (multilib_reuse): New internal spec.
8699 (set_multilib_dir): Also search multilib from multilib_reuse.
8700 * genmultilib (tmpmultilib3): Refactor code.
8701 (tmpmultilib4): Ditto.
8702 (multilib_reuse): New multilib argument.
8704 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
8706 * Makefile.in: Update copyright.
8708 2013-01-12 Tom de Vries <tom@codesourcery.com>
8711 * calls.c (expand_call): Check if arg_nr is valid.
8713 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8715 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
8716 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
8717 documentation. Add missing '__' in front of
8718 __builtin_ia32_packssdw256.
8720 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8723 * config/s390/s390.c (s390_preferred_reload_class): Do not return
8724 NO_REGS for larl operands.
8725 (s390_reload_larl_operand): Use s390_load_address instead of
8728 2013-01-11 Richard Biener <rguenther@suse.de>
8730 * tree-cfg.c (verify_node_sharing_1): Split out from ...
8731 (verify_node_sharing): ... here.
8732 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
8734 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
8736 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
8737 Substitute TREECHECKING.
8738 * configure: Regenerate.
8739 * Makefile.in (TREECHECKING): New.
8741 2013-01-11 Richard Guenther <rguenther@suse.de>
8743 PR tree-optimization/44061
8744 * tree-vrp.c (extract_range_basic): Compute zero as
8745 value-range for __builtin_constant_p of function parameters.
8747 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
8749 Update copyright years.
8751 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
8753 PR rtl-optimization/55672
8754 * lra-eliminations.c (mark_not_eliminable): Permit addition with
8755 const to be eliminable.
8757 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
8759 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
8760 * configure: Regenerate.
8762 2013-01-10 Richard Biener <rguenther@suse.de>
8764 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
8766 2013-01-10 Richard Biener <rguenther@suse.de>
8769 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
8770 locations for virtual PHI arguments.
8771 (rewrite_update_phi_arguments): Likewise.
8773 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
8775 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
8778 2013-01-10 Jakub Jelinek <jakub@redhat.com>
8780 PR tree-optimization/55921
8781 * tree-complex.c (expand_complex_asm): New function.
8782 (expand_complex_operations_1): Call it for GIMPLE_ASM.
8784 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8787 * config/s390/s390.c (s390_symref_operand_p)
8788 (s390_loadrelative_operand_p): Merge the two functions.
8789 (s390_check_qrst_address, print_operand_address): Add parameters
8790 to s390_loadrelative_operand_p invokation.
8791 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
8792 (s390_reload_larl_operand, s390_secondary_reload): Use
8793 s390_loadrelative_operand_p instead of s390_symref_operand_p.
8794 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
8796 2013-01-09 Mike Stump <mikestump@comcast.net>
8798 * dse.c (record_store): Remove unnecessary assert.
8800 2013-01-09 Jan Hubicka <jh@suse.cz>
8802 PR tree-optimization/55569
8803 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
8804 * cfgloop.h (scale_loop_profile): Likewise.
8806 2013-01-09 Jan Hubicka <jh@suse.cz>
8809 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
8811 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
8813 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
8816 * expr.h (maybe_emit_group_store): Declare.
8817 * expr.c (maybe_emit_group_store): New function.
8818 * builtins.c (expand_builtin_int_roundingfn): Call it.
8819 (expand_builtin_int_roundingfn_2): Likewise.
8821 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
8823 PR rtl-optimization/55829
8824 * lra-constraints.c (match_reload): Add code for absent output.
8825 (curr_insn_transform): Add code for reloads of matched inputs
8828 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
8830 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
8831 attribute of movddup insn to DF.
8832 (*vec_interleave_lowv2df): Ditto.
8833 (vec_dupv2df): Ditto.
8835 2013-01-09 Jan Hubicka <jh@suse.cz>
8837 PR tree-optimiation/55875
8838 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
8839 EVERY_ITERATION parameter.
8840 (number_of_iterations_exit): Check if exit is executed every iteration.
8841 (idx_infer_loop_bounds): Similarly here.
8842 (n_of_executions_at_most): Simplify
8843 to only test for cases where statement is dominated by the
8844 particular bound; handle correctly the "postdominance" test.
8845 (scev_probably_wraps_p): Use max loop iterations info
8846 as a global bound first.
8848 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
8849 Nick Clifton <nickc@redhat.com>
8851 * config/v850/v850.md (cbranchsf4): New pattern.
8852 (cstoresf4): New pattern.
8853 (cbranchdf4): New pattern.
8854 (cstoredf4): New pattern.
8855 (movsicc): Disallow floating point comparisons.
8856 (cmpsf_le_insn): Fix order of operators.
8857 (cmpsf_lt_insn): Likewise.
8858 (cmpsf_eq_insn): Likewise.
8859 (cmpdf_le_insn): Likewise.
8860 (cmpdf_lt_insn): Likewise.
8861 (cmpdf_eq_insn): Likewise.
8862 (cmpsf_ge_insn): Use LE comparison.
8863 (cmpdf_ge_insn): Likewise.
8864 (cmpsf_gt_insn): Use LT comparison.
8865 (cmpdf_gt_insn): Likewise.
8866 (cmpsf_ne_insn): Delete pattern.
8867 (cmpdf_ne_insn): Delete pattern.
8868 * config/v850/v850.c (v850_gen_float_compare): Use
8869 gen_cmpdf_eq_insn for NE comparison.
8870 (v850_float_z_comparison_operator)
8871 (v850_float_nz_comparison_operator): Move from here ...
8872 * config/v850/predicates.md: ... to here. Move GT and GE
8873 comparisons into v850_float_z_comparison_operator.
8874 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
8876 (v850_float_nz_comparison_operator): Likewise.
8878 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8880 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
8881 with calls to gen_insvsi/gen_insvdi.
8883 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8885 * config/i386/i386.c (initial_ix86_tune_features): Set up
8886 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
8888 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
8889 Jakub Jelinek <jakub@redhat.com>
8891 PR tree-optimization/48189
8892 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
8893 If nitercst is 0, don't predict the exit edge.
8895 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8897 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
8898 in asm_fprintf with reg_names.
8899 (aarch64_print_operand_address): Likewise.
8900 (aarch64_return_addr): Likewise.
8901 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
8903 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8905 * config/pa/pa.h (VAL_U6_BITS_P): Define.
8906 (INT_U6_BITS): Likewise.
8907 * config/pa/predicates.md (uint6_operand): New predicate.
8908 (shift5_operand, shift6_operand): Likewise.
8909 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
8911 (lshrdi3): Use shift6_operand.
8912 (shrpsi4, shrpdi4): New insn patterns.
8913 (extzv): Delete expander.
8914 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
8915 predicates in unamed zero extract patterns. Tighten common constraint.
8916 (extv): Delete expander.
8917 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
8918 predicates in unamed sign extract patterns. Tighten common constraint.
8919 (insv): Delete expander.
8920 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
8921 predicates in unamed insert patterns. Tighten common constraint.
8922 Change uint32_operand predicate to uint6_operand predicate in unamed
8923 DImode pattern to insert constant values of type 1...1xxxx.
8925 2013-01-04 Jan Hubicka <jh@suse.cz>
8927 PR tree-optimization/55823
8928 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
8931 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8932 Uros Bizjak <ubizjak@gmail.com>
8934 PR rtl-optimization/55845
8935 * df-problems.c (can_move_insns_across): Stop scanning at
8936 volatile_insn_p source instruction or give up if
8937 across_from .. across_to range contains any volatile_insn_p
8940 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8942 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
8943 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
8945 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
8946 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
8948 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8951 * asan.c (asan_clear_shadow): New function.
8952 (asan_emit_stack_protection): Use it.
8954 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8956 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
8957 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
8958 with tab instead of space.
8960 2013-01-08 Nick Clifton <nickc@redhat.com>
8962 * config/rl78/rl78.c (rl78_expand_prologue): Always select
8963 register bank 0 at the start of an interrupt handler.
8964 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
8967 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8969 * config/aarch64/aarch64-simd.md
8970 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
8971 (aarch64_simd_bsl): Likewise.
8972 (aarch64_vcond_internal<mode>): Likewise.
8973 (vcond<mode><mode>): Likewise.
8974 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
8975 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
8977 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8979 * config/aarch64/aarch64-builtins.c
8980 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
8982 2013-01-08 Martin Jambor <mjambor@suse.cz>
8985 * tree-sra.c (analyze_access_subtree): Return true also after
8986 potentially creating a debug-only replacement.
8988 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8991 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
8993 PR tree-optimization/54120
8994 * tree-vrp.c (range_fits_type_p): Don't allow
8995 src_precision < precision from signed vr to unsigned_p
8996 if vr->min or vr->max is negative.
8997 (simplify_float_conversion_using_ranges): Test can_float_p
8998 against CODE_FOR_nothing.
9000 2013-01-08 Jakub Jelinek <jakub@redhat.com>
9001 Richard Biener <rguenther@suse.de>
9004 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
9005 types instead of just INTEGER_TYPE types.
9007 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
9009 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
9012 2013-01-07 Steve Ellcey <sellcey@mips.com>
9015 * config/mips/mips.opt: Change mad to mmad to match documentation.
9017 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9020 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
9023 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9026 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
9027 (avr_addrspace_t): Add .section_name field.
9028 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
9030 (avr_addrspace): Same. Initialize .section_name. Remove last
9031 NULL entry. Put __memx into .progmemx.data.
9032 (progmem_section_prefix): Remove.
9033 (avr_asm_init_sections): No need to initialize progmem_section.
9034 (avr_asm_named_section): Use avr_addrspace[].section_name to get
9035 section name prefix.
9036 (avr_asm_select_section): Ditto. And use get_unnamed_section to
9037 retrieve the progmem section.
9038 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
9039 boundary to run over avr_addrspace[].
9040 (avr_register_target_pragmas): Ditto.
9042 2013-01-06 Jakub Jelinek <jakub@redhat.com>
9044 * varasm.c (output_constant_def_contents): For asan_protect_global
9045 protected strings, adjust DECL_ALIGN if needed, before testing for
9047 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
9048 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
9050 (output_object_block): For asan protected decls, emit asan padding
9051 after their contents.
9052 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
9053 (asan_finish_file): Test it here instead.
9055 2013-01-07 Nick Clifton <nickc@redhat.com>
9056 Matthias Klose <doko@debian.org>
9057 Doug Kwan <dougkwan@google.com>
9058 H.J. Lu <hongjiu.lu@intel.com>
9061 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
9063 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
9065 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
9067 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
9069 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
9071 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9074 * doc/install.texi (Cross-Compiler-Specific Options): Document
9077 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
9079 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
9080 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
9081 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
9082 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
9083 vqmovun_high_s64): Fix source operand number and update copyright.
9085 2013-01-07 Richard Biener <rguenther@suse.de>
9088 * gimple.h (gimple_call_builtin_p): New overload.
9089 * gimple.c (validate_call): New function.
9090 (gimple_call_builtin_p): Likewise.
9091 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9092 Use gimple_call_builtin_p.
9093 (find_func_clobbers): Likewise.
9094 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
9095 (strlen_optimize_stmt): Likewise.
9097 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9099 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
9100 (vld1q_dup_*): Likewise.
9102 (vld1q_*): Likewise.
9103 (vld1_lane_*): Likewise.
9104 (vld1q_lane_*): Likewise.
9106 2013-01-07 Richard Biener <rguenther@suse.de>
9108 * lto-streamer.h (LTO_minor_version): Bump to 2.
9110 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9112 * config/aarch64/aarch64-protos.h
9113 (aarch64_const_double_zero_rtx_p): Rename to...
9114 (aarch64_float_const_zero_rtx_p): ...this.
9115 (aarch64_float_const_representable_p): New.
9116 (aarch64_output_simd_mov_immediate): Likewise.
9117 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
9118 move immediate case.
9119 * config/aarch64/aarch64.c
9120 (aarch64_const_double_zero_rtx_p): Rename to...
9121 (aarch64_float_const_zero_rtx_p): ...this.
9122 (aarch64_print_operand): Allow printing of new constants.
9123 (aarch64_valid_floating_const): New.
9124 (aarch64_legitimate_constant_p): Check for valid floating-point
9126 (aarch64_simd_valid_immediate): Likewise.
9127 (aarch64_vect_float_const_representable_p): New.
9128 (aarch64_float_const_representable_p): Likewise.
9129 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
9130 (aarch64_output_simd_mov_immediate): New.
9131 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
9132 (*movdf_aarch64): Likewise.
9133 * config/aarch64/constraints.md (Ufc): New.
9134 (Y): call aarch64_float_const_zero_rtx.
9135 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
9137 2013-01-07 Richard Biener <rguenther@suse.de>
9139 PR tree-optimization/55888
9140 PR tree-optimization/55862
9141 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
9142 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
9143 not if it is contained therein.
9145 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9147 * config/avr/t-avr: Typo.
9149 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
9152 * config/avr/t-avr: Don't automatically rebuild
9153 $(srcdir)/config/avr/t-multilib
9154 $(srcdir)/config/avr/avr-tables.opt
9155 $(srcdir)/doc/avr-mmcu.texi
9156 (avr-mcus): New phony target to build them on request.
9157 (s-avr-mlib, s-avr-mmcu-texi): Remove.
9158 * avr/avr-mcus.def: Adjust comments.
9160 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
9162 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
9164 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9166 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
9168 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9170 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
9172 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
9174 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
9175 to generate profiling.
9176 * config/rs6000/aix64.h (LIB_SPEC): Same.
9178 2013-01-04 Andrew Pinski <apinski@cavium.com>
9180 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
9182 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9184 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
9186 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
9188 (ix86_expand_move): Ditto.
9189 (ix86_zero_extend_to_Pmode): Ditto.
9190 (ix86_expand_call): Ditto.
9191 (ix86_expand_special_args_builtin): Ditto.
9192 (ix86_expand_builtin): Ditto.
9194 2013-01-04 Richard Biener <rguenther@suse.de>
9196 PR tree-optimization/55862
9197 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
9198 translating them through PHI nodes.
9200 2013-01-04 Martin Jambor <mjambor@suse.cz>
9202 PR tree-optimization/55755
9203 * tree-sra.c (sra_modify_assign): Do not check that an access has no
9204 children when trying to avoid producing a VIEW_CONVERT_EXPR.
9206 2013-01-04 Marek Polacek <polacek@redhat.com>
9209 * opts.c (default_options_optimization): Clarify error message.
9211 2013-01-04 Richard Biener <rguenther@suse.de>
9214 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
9217 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9220 * config/pa/pa.md (movsi): Revert previous change.
9221 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
9224 2013-01-03 Richard Henderson <rth@redhat.com>
9226 * config/i386/i386.c (ix86_expand_move): Always assign to op1
9227 after eliminating TLS symbols.
9229 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
9232 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
9233 * graphite-poly.c (debug_gmp_value): Likewise.
9235 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
9238 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
9239 selected code model, define __code_mode_small__, __code_model_medium__,
9240 __code_model_large__, __code_model_32__ or __code_model_kernel__.
9241 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
9242 xchg temporary register with %k. Declare temporary register as
9244 [__x86_64__]: For medium and large code models, preserve %rbx register.
9246 2013-01-03 Richard Biener <rguenther@suse.de>
9248 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
9249 (dump_subscript): Adjust.
9250 (finalize_ddr_dependent): Do not dump redundant info.
9251 (analyze_siv_subscript): Adjust.
9252 (subscript_dependence_tester): Likewise.
9253 (compute_affine_dependence): Likewise.
9255 2013-01-03 Richard Biener <rguenther@suse.de>
9258 2013-01-03 Richard Biener <rguenther@suse.de>
9260 PR tree-optimization/55857
9261 * tree-vect-stmts.c (vectorizable_load): Do not setup
9262 re-alignment for invariant loads.
9264 2013-01-02 Richard Biener <rguenther@suse.de>
9266 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9267 invariant load do not generate a vector load from the scalar location.
9269 2013-01-03 Richard Biener <rguenther@suse.de>
9271 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
9272 for not vectorizing.
9273 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9274 not build INDIRECT_REFs, call get_name once only.
9275 (vect_create_data_ref_ptr): Likewise. Dump base object kind
9276 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
9278 2013-01-03 Richard Biener <rguenther@suse.de>
9280 PR tree-optimization/55857
9281 * tree-vect-stmts.c (vectorizable_load): Do not setup
9282 re-alignment for invariant loads.
9284 2013-01-03 Richard Biener <rguenther@suse.de>
9287 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
9288 prefer a built-in decl.
9290 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9292 * gcc.c (process_command): Update copyright notice dates.
9293 * gcov.c (print_version): Likewise.
9294 * gcov-dump.c (print_version): Likewise.
9296 PR rtl-optimization/55838
9297 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
9298 iv0.step, iv1.step and step.
9300 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9301 Marc Glisse <marc.glisse@inria.fr>
9303 PR tree-optimization/55832
9304 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
9305 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
9306 integer_{one,zero}_node.
9308 2013-01-03 Jakub Jelinek <jakub@redhat.com>
9311 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
9312 * var-tracking.c (reverse_op): Don't add reverse ops to
9313 VALUEs that have already
9314 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
9316 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
9318 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
9320 2013-01-02 Teresa Johnson <tejohnson@google.com>
9322 * dumpfile.c (dump_loc): Print filename with location.
9323 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
9324 new location_t parameter to emit complete unroll message with
9326 (canonicalize_loop_induction_variables): Compute loops location
9327 and pass to try_unroll_loop_completely.
9328 * loop-unroll.c (report_unroll_peel): New function.
9329 (peel_loops_completely): Use new dump format with location
9330 for main dumpfile message, and invoke report_unroll_peel on success.
9331 (decide_unrolling_and_peeling): Ditto.
9332 (decide_peel_once_rolling): Remove old dumpfile message subsumed
9333 by report_unroll_peel.
9334 (decide_peel_completely): Ditto.
9335 (decide_unroll_constant_iterations): Ditto.
9336 (decide_unroll_runtime_iterations): Ditto.
9337 (decide_peel_simple): Ditto.
9338 (decide_unroll_stupid): Ditto.
9339 * cfgloop.c (get_loop_location): New function.
9340 * cfgloop.h (get_loop_location): Declare.
9342 2013-01-02 Sriraman Tallam <tmsriram@google.com>
9344 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
9347 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9350 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
9351 BLKmode objects when EXPAND_MEMORY is specified.
9353 2013-01-02 Sriraman Tallam <tmsriram@google.com>
9355 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
9357 (fold_builtin_cpu): Do not share cpu model decls across statements.
9359 2013-01-02 Jason Merrill <jason@redhat.com>
9362 * tree.c (build_array_type_1): Revert earlier change.
9364 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
9366 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
9368 * config/aarch64/aarch64-tune.md: Re-generate.
9370 2013-01-02 Richard Biener <rguenther@suse.de>
9372 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9373 invariant load do not generate a vector load from the scalar location.
9375 2013-01-02 Richard Biener <rguenther@suse.de>
9378 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
9379 * configure: Regenerate.
9381 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9383 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
9384 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
9385 (expand_builtin_int_roundingfn_2): Keep the original target around
9386 for the fallback case.
9388 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9390 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
9391 to be clear for sign changes.
9393 2013-01-01 Jan Hubicka <jh@suse.cz>
9395 * ipa-inline-analysis.c: Fix formatting.
9397 2013-01-01 Jakub Jelinek <jakub@redhat.com>
9399 PR tree-optimization/55831
9400 * tree-vect-loop.c (get_initial_def_for_induction): Use
9401 gsi_after_labels instead of gsi_start_bb.
9403 Copyright (C) 2013 Free Software Foundation, Inc.
9405 Copying and distribution of this file, with or without modification,
9406 are permitted in any medium without royalty provided the copyright
9407 notice and this notice are preserved.