1 2013-03-25 Steve Ellcey <sellcey@mips.com>
3 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
4 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
5 * config/mips/mips.c (mips_option_override): Set IMADD default.
6 * config/mips/mips.h (PTF_AVOID_IMADD): New.
7 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
10 * doc/invoke.texi (-mimadd/-mno-imadd): New.
12 2013-03-25 Jeff Law <law@redhat.com>
14 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
15 slightly to avoid creating and folding useless trees. Simplify
16 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
18 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
20 * config/i386/i386.md (*zero_extendsidi2): Merge with
21 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
22 * config/i386/predicates.md (x86_64_zext_operand): Rename from
23 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
24 targets. Clarify comment.
26 2013-03-25 Martin Jambor <mjambor@suse.cz>
28 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
29 pass-through jump functions differently.
30 (ipa_read_jump_function): Likewise. Also use setter functions to set
33 2013-03-25 Martin Jambor <mjambor@suse.cz>
35 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
36 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
38 (ipa_get_indirect_edge_target): New function.
39 (devirtualization_time_bonus): New parameter known_aggs, pass it to
40 ipa_get_indirect_edge_target. Update all callers.
41 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
42 ipa_get_indirect_edge_target_1 instead of calling
43 ipa_get_indirect_edge_target.
44 (create_specialized_node): Pass aggvlas to
45 ipcp_discover_new_direct_edges.
47 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
49 * config/arm/arm.md (f_sels, f_seld): New types.
50 (*cmov<mode>): New pattern.
51 * config/arm/predicates.md (arm_vsel_comparison_operator): New
54 2013-03-25 Kai Tietz <ktietz@redhat.com>
56 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
57 POSIX-printf for mingw-hosted builds.
59 2013-03-25 Richard Biener <rguenther@suse.de>
62 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
63 must-not-throw stmt location.
65 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
67 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
68 Emit load-acquire versions when acq is true.
69 (arm_emit_store_exclusive): Add rel parameter.
70 Emit store-release versions when rel is true.
71 (arm_split_compare_and_swap): Use acquire-release instructions
73 of barriers when appropriate.
74 (arm_split_atomic_op): Likewise.
75 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
76 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
77 (VUNSPEC_SLX): Likewise.
78 (VUNSPEC_LDA): Likewise.
79 (VUNSPEC_STL): Likewise.
80 * config/arm/sync.md (atomic_load<mode>): New pattern.
81 (atomic_store<mode>): Likewise.
82 (arm_load_acquire_exclusive<mode>): Likewise.
83 (arm_load_acquire_exclusivesi): Likewise.
84 (arm_load_acquire_exclusivedi): Likewise.
85 (arm_store_release_exclusive<mode>): Likewise.
87 2013-03-25 Catherine Moore <clm@codesourcery.com>
89 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
90 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
91 * config/mip/predicates.md (lwsp_swsp_operand,
92 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
93 sb16_operand, db4_operand, db7_operand, ib3_operand,
94 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
95 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
96 andi16_operand): New predicates.
97 * config/mips/mips.md (compression): New attribute.
98 (enabled): New attribute.
99 (length): Consider compression in computing length.
100 (shift_compression): New code attribute.
101 (*add<mode>3): New operands. Record compression.
102 (sub<mode>3): Likewise.
103 (one_cmpl<mode>2): Likewise.
104 (*and<mode>3): Likewise.
105 (*ior<mode>3): Likewise.
106 (unnamed pattern for xor): Likewise.
107 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
108 (*<optab><mode>3): Likewise.
109 (*mov<mode>_internal: Likewise.
110 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
111 (mips_unsigned_immediate_p): New.
112 (umips_lwsp_swsp_address_p): New.
113 (m16_based_address_p): New.
114 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
115 (mips_unsigned_immediate_p): New prototype.
116 (lwsp_swsp_address_p): New prototype.
117 (m16_based_address_p): New prototype.
118 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
119 (mips_signed_immediate_p): New function.
120 (m16_based_address_p): New function.
121 (lwsp_swsp_address_p): New function.
122 (mips_print_operand_punctuation): Recognize short delay slot insns
123 for microMIPS.add<mode>3"
125 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
128 * config/arm/iterators.md (v_cmp_result): New mode attribute.
129 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
131 2013-03-25 Richard Biener <rguenther@suse.de>
133 PR tree-optimization/56689
134 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
137 2013-03-25 Richard Biener <rguenther@suse.de>
139 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
141 (memory_references): Likewise.
142 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
143 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
144 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
145 (gather_mem_refs_in_loops): Fold into ...
146 (analyze_memory_references): ... this. Move initialization
147 to tree_ssa_lim_initialize.
148 (fill_always_executed_in): Rename to ...
149 (fill_always_executed_in_1): ... this.
150 (fill_always_executed_in): Move contains_call computation to
151 this new function from ...
152 (tree_ssa_lim_initialize): ... here.
153 (tree_ssa_lim): Call fill_always_executed_in.
155 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
157 * postreload.c (reload_combine): Fix code detecting returns.
159 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
161 * function.c (emit_use_return_register_into_block): On cc0 targets,
162 do not emit the sequence between cc0 setter and user.
164 2013-03-25 Kai Tietz <ktietz@redhat.com>
166 * config/i386/predicates.md (local_symbolic_operand): Interpret
167 dll-imported symbols as none-local.
169 2013-03-25 Richard Biener <rguenther@suse.de>
171 * tree-ssa-loop-im.c (struct depend): Remove.
172 (struct lim_aux_data): Make depends a vec of gimples.
173 (free_lim_aux_data): Adjust.
174 (add_dependency): Likewise.
175 (set_level): Likewise.
177 2013-03-25 Richard Biener <rguenther@suse.de>
180 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
181 the pointer returned by calls with ECF_MALLOC set.
183 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
185 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
187 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
189 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
190 using MMXMODE mode iterator.
191 (*move<mode>_internal): Merge with *movv2sf_internal and
192 *movv2sf_internal_rex64 using MMXMODE mode iterator.
194 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
196 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
197 (record_last_mem_set_info): Likewise.
199 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
200 of XNEWVEC followed by memset.
201 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
203 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
205 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
206 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
207 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
208 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
209 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
210 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
211 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
212 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
213 BARRIER_P instead of GET_CODE.
215 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
217 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
218 inaccuracy in the probing code.
220 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
221 (ctrapdi4): Likewise.
223 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
225 * calls.c (expand_call): Add missing guard to code handling return
226 of non-BLKmode structures in MSB.
227 * function.c (expand_function_end): Likewise.
229 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
231 * combine.c (try_combine): Adjust comment. Do not add the set of
232 insn #0 if the destination indirectly is set or dies in insn #2.
233 Tidy up code to distribute a new note.
235 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
237 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
238 also for alternatives 16 and 17.
240 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
242 * config/i386/sse.md (*mov<mode>_internal): Merge with
243 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
244 Emit insn template depending on type attribute. Use
245 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
246 movd instead of movq mnemonic for interunit moves. Rewrite mode
247 attribute calculation. Remove unit attribute calculation.
248 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
249 Set prefix_data16 attribute for DImode ssemov types.
250 Use Ym instead of y for SSE-MMX conversion alternatives.
251 Reorder operand constraints.
253 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
255 * df.h (df_insn_delete): Adjust prototype.
256 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
257 and let it decide whether mark the basic block dirty.
258 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
259 * df-scan.c (df_insn_info_delete): New helper function, split
260 off from df_insn_delete.
261 (df_scan_free_bb_info): Use it.
262 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
264 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
265 that the insn is actually an insn and it has a non-NULL basic block.
266 Do not mark basic block dirty if only deleting a DEBUG_INSN.
268 2013-03-22 Richard Biener <rguenther@suse.de>
270 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
272 (mem_ref_alloc): Do not allocate them.
273 (refs_independent_p): Do not query or maintain a cache.
275 2013-03-22 Richard Biener <rguenther@suse.de>
277 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
278 (gather_mem_refs_in_loops): Do not compute it.
279 (analyze_memory_references): Do not allocate it.
280 (tree_ssa_lim_finalize): Do not free it.
281 (for_all_locs_in_loop): Do not query all_refs_in_loop.
283 2013-03-22 Richard Biener <rguenther@suse.de>
285 * is-a.h (as_a): Use gcc_checking_assert.
287 2013-03-22 Ian Bolton <ian.bolton@arm.com>
289 * config/aarch64/aarch64.c (aarch64_print_operand): New
290 format specifier for printing a constant in hex.
291 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
292 format specifier for printing second operand.
294 2013-03-22 Richard Biener <rguenther@suse.de>
296 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
298 (gather_mem_refs_in_loops): Perform store accumulation here.
299 (create_vop_ref_mapping_loop): Remove.
300 (create_vop_ref_mapping): Likewise.
301 (analyze_memory_references): Initialize refs_stored_in_loop.
302 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
303 (record_indep_loop): Remove.
304 (record_dep_loop): New function.
305 (ref_indep_loop_p_1): Adjust to only walk over references
306 in the loop, not its subloops.
307 (ref_indep_loop_p): Rename to ...
308 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
309 maintaining a more fine-grained cache.
310 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
311 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
313 2013-03-22 Richard Biener <rguenther@suse.de>
315 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
316 (struct mem_ref): Make accesses_in_loop a vec of a vec of
317 aggregate mem_ref_loc.
318 (free_mem_ref_locs): Inline into ...
319 (memref_free): ... this and adjust.
320 (mem_ref_alloc): Adjust.
321 (mem_ref_locs_alloc): Remove.
322 (record_mem_ref_loc): Adjust.
323 (get_all_locs_in_loop): Rewrite into ...
324 (for_all_locs_in_loop): ... this iterator.
325 (rewrite_mem_ref_loc): New functor.
326 (rewrite_mem_refs): Use for_all_locs_in_loop.
327 (sm_set_flag_if_changed): New functor.
328 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
329 (ref_always_accessed): New functor.
330 (ref_always_accessed_p): Use for_all_locs_in_loop.
332 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
334 * tree-pass.h (PROP_gimple_lvec): New.
335 * passes.c (dump_properties): Handle PROP_gimple_lvec.
336 (init_optimization_passes): Move pass_lower_vector.
337 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
339 (pass_lower_vector): Provide PROP_gimple_lvec.
340 (pass_lower_vector_ssa): Likewise.
341 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
343 2013-03-21 Mark Wielaard <mjw@redhat.com>
345 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
347 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
349 * config/i386/i386.md (*movdi_internal): Disparage slightly
350 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
351 conversion alternatives.
353 2013-03-21 Jakub Jelinek <jakub@redhat.com>
356 * diagnostic.def (DK_WERROR): New kind.
357 * diagnostic.h (werrorcount): Define.
358 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
359 promoted to DK_ERROR, increment DK_WERROR counter instead of
361 * toplev.c (toplev_main): Call print_ignored_options even if
362 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
363 even if just werrorcount is non-zero.
366 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
368 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
369 (string_cst_pool_decl): New function.
370 (optimize_one_addr_into_implicit_ptr): New function.
371 (resolve_addr_in_expr): Optimize DWARF location expression
372 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
373 which doesn't live in memory, but has DW_AT_location or
374 DW_AT_const_value, or refers to a string literal, into
375 DW_OP_GNU_implicit_pointer.
376 (optimize_location_into_implicit_ptr): New function.
377 (resolve_addr): If removing DW_AT_location of a variable because
378 it was DW_OP_addr of address of the variable, but the variable doesn't
379 live in memory, try to emit const value attribute for the initializer.
381 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
383 * tree.h (VECTOR_TYPE_P): New macro.
384 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
386 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
387 VEC_COND_EXPR cannot be lvalues.
388 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
390 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
392 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
393 Restrict the transformation to equal modes.
395 2013-03-21 Richard Biener <rguenther@suse.de>
397 PR tree-optimization/39326
398 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
399 (MEM_ANALYZABLE): Adjust.
400 (record_mem_ref_loc): Move bitmap ops ...
401 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
402 unanalyzable refs, do not record locations for it.
403 (analyze_memory_references): Allocate ref zero as shared
405 (refs_independent_p): Do not test for unanalyzed mems here.
406 (ref_indep_loop_p_1): Special-case disambiguation against
408 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
410 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
412 * config/arm/arm-protos.h (tune_params): Add
413 prefer_neon_for_64bits field.
414 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
415 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
416 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
417 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
418 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
419 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
420 (arm_option_override): Handle -mneon-for-64bits new option.
421 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
422 (prefer_neon_for_64bits): Declare new variable.
423 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
424 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
425 (arch_enabled): Handle new arch types. Remove support for onlya8
427 (one_cmpldi2): Use new arch names.
428 (zero_extend<mode>di2, extend<mode>di2): Ditto.
429 * config/arm/arm.opt (mneon-for-64bits): Add option.
430 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
431 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
432 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
434 * doc/invoke.texi (-mneon-for-64bits): Document.
436 2013-03-21 Richard Biener <rguenther@suse.de>
438 PR tree-optimization/39326
439 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
440 (sort_bbs_in_loop_postorder_cmp): New function.
441 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
443 2013-03-21 Richard Biener <rguenther@suse.de>
445 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
446 (vect_insert_into_interleaving_chain): Likewise.
447 (vect_drs_dependent_in_basic_block): Inline ...
448 (vect_slp_analyze_data_ref_dependence): ... here. New function,
450 (vect_analyze_data_ref_dependence): ... here. Simplify.
451 (vect_check_interleaving): Simplify.
452 (vect_analyze_data_ref_dependences): Likewise. Split out ...
453 (vect_slp_analyze_data_ref_dependences): ... this new function.
454 (dr_group_sort_cmp): New function.
455 (vect_analyze_data_ref_accesses): Compute data-reference groups
456 here instead of in vect_analyze_data_ref_dependence. Use
457 a more efficient algorithm.
458 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
459 vect_slp_analyze_data_ref_dependences. Call
460 vect_analyze_data_ref_accesses earlier.
461 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
462 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
463 (vect_slp_analyze_data_ref_dependences): New prototype.
465 2013-03-21 Richard Biener <rguenther@suse.de>
467 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
468 ref is stored in the loop.
469 (find_refs_for_sm): Walk only over all stores.
470 (store_motion_loop): Allocate from lim_bitmap_obstack.
471 (store_motion): Likewise.
473 2013-03-21 Richard Biener <rguenther@suse.de>
475 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
476 Update virtual SSA form.
478 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
480 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
481 * configure: Regenerate.
482 * config.in: Regenerate.
483 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
484 if !HAVE_LD_EH_FRAME_CIEV3.
486 2013-03-21 Richard Biener <rguenther@suse.de>
488 * tree-cfg.c (verify_expr_no_block): New function.
489 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
490 nor DECL_VALUE_EXPR have locations with associated blocks.
491 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
492 (clear_unused_block_pointer): Remove code dealing with
493 blocks in DECL_DEBUG_EXPR locations.
495 2013-03-21 Richard Biener <rguenther@suse.de>
497 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
498 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
499 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
500 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
501 instead of DECL_DEBUG_EXPR_IS_FROM.
502 * gimplify.c (gimplify_modify_expr): Likewise.
503 * tree-cfg.c (verify_expr_location_1): Likewise.
504 * tree-complex.c (create_one_component_var): Likewise.
505 * tree-sra.c (create_access_replacement): Likewise.
506 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
507 (clear_unused_block_pointer): Likewise.
508 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
509 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
510 * var-tracking.c (var_debug_decl): Likewise.
511 (track_expr_p): Likewise.
512 * tree-inline.c (add_local_variables): Likewise. Set
513 DECL_HAS_DEBUG_EXPR_P after copying it.
514 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
515 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
517 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
520 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
521 * configure: Regenerate.
522 * config.in: Regenerate.
523 * config/i386/i386.md (*movdf_internal): Use
524 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
525 movd instead of movq mnemonic for interunit moves.
526 (*movdi_internal): Ditto.
528 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
530 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
531 (abd<mode>_3): New pattern.
532 (aba<mode>_3): New pattern.
533 (fabd<mode>_3): New pattern.
535 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
537 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
538 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
539 occurrence of REGISTER_PREFIX as its empty string.
541 2013-03-20 Jeff Law <law@redhat.com>
543 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
544 addititional equivalences for equality comparisons between an SSA_NAME
545 and a constant where the SSA_NAME was set from a widening conversion.
547 2013-03-20 Walter Lee <walt@tilera.com>
549 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
551 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
553 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
554 depending on type attribute.
555 (*movti_internal): Ditto.
556 (*movtf_internal): Ditto.
557 (*movxf_internal): Ditto.
558 (*movdf_internal): Ditto.
559 (*movsf_internal): Ditto.
561 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
563 * config/i386/i386.md (*movti_internal): Set prefix attribute to
564 maybe_vex for sselog1 and ssemov types.
565 (*movdi_internal): Reorder operand constraints.
566 (*movsi_internal): Ditto. Set prefix attribute to
567 maybe_vex for sselog1 and ssemov types.
568 (*movtf_internal): Set prefix attribute to maybe_vex
569 for sselog1 and ssemov types.
570 (*movdf_internal): Ditto. Set prefix_data16 attribute for
571 DImode ssemov types. Reorder operand constraints.
572 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
573 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
574 attribute for SImode ssemov types. Reorder operand constraints.
576 2013-03-20 Martin Jambor <mjambor@suse.cz>
578 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
579 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
581 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
583 * config/rs6000/predicates.md (indexed_address, update_address_mem
584 update_indexed_address_mem): New predicates.
585 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
586 attribute for load/store instructions.
587 * config/rs6000/dfp.md (movsd_store): Likewise.
588 (movsd_load): Likewise.
589 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
590 (unnamed HI->DI extend define_insn): Likewise.
591 (unnamed SI->DI extend define_insn): Likewise.
592 (unnamed QI->SI extend define_insn): Likewise.
593 (unnamed QI->HI extend define_insn): Likewise.
594 (unnamed HI->SI extend define_insn): Likewise.
595 (unnamed HI->SI extend define_insn): Likewise.
596 (extendsfdf2_fpr): Likewise.
597 (movsi_internal1): Likewise.
598 (movsi_internal1_single): Likewise.
599 (movhi_internal): Likewise.
600 (movqi_internal): Likewise.
601 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
602 attribute for load/store instructions.
603 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
605 (mov<mode>_softfloat): Likewise.
606 (mov<mode>_hardfloat32): Likewise.
607 (mov<mode>_hardfloat64): Likewise.
608 (mov<mode>_softfloat64): Likewise.
609 (movdi_internal32): Likewise.
610 (movdi_internal64): Likewise.
611 (probe_stack_<mode>): Likewise.
613 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
615 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
616 floating point, and decimal floating point to reload iterator.
618 * config/rs6000/constraints.md (wl constraint): New constraints to
619 return FLOAT_REGS if certain options are used to reduce the number
620 of separate patterns that exist in the file.
621 (wx constraint): Likewise.
622 (wz constraint): Likewise.
624 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
625 -mdebug=reg, print wg, wl, wx, and wz constraints.
626 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
627 Initialize the reload functions for 64-bit binary/decimal floating
629 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
630 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
631 create the buffer on the stack to overcome not having a 32-bit
633 (rs6000_emit_move): Likewise.
634 (rs6000_secondary_memory_needed_rtx): Likewise.
635 (rs6000_alloc_sdmode_stack_slot): Likewise.
636 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
637 via xxlxor, just like DFmode 0.0.
639 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
640 define as 1 if we are running on a power7 or newer.
641 (enum r6000_reg_class_enum): Add new constraints.
643 * config/rs6000/dfp.md (movsd): Delete, combine with binary
644 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
645 with other moves by using conditional constraits (wg). Use LFIWZX
646 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
647 (movsd splitter): Likewise.
648 (movsd_hardfloat): Likewise.
649 (movsd_softfloat): Likewise.
651 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
652 binary and decimal floating point moves.
653 (fmove_ok): New attributes to combine binary and decimal floating
654 point moves, and to combine power6x (mfpgpr) moves along normal
656 (real_value_to_target): Likewise.
663 (movsf): Combine binary and decimal floating point moves. Combine
664 power6x (mfpgpr) moves with other moves by using conditional
665 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
666 (mov<mode> for SFmode/SDmode); Likewise.
667 (SFmode/SDmode splitters): Likewise.
668 (movsf_hardfloat): Likewise.
669 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
670 (movsf_softfloat): Likewise.
671 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
673 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
674 wx and wz constraints.
676 * config/rs6000/constraints.md (wg constraint): New constraint to
677 return FLOAT_REGS if -mmfpgpr (power6x) was used.
679 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
682 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
683 -mdebug=reg, print wg, wl, wx, and wz constraints.
684 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
685 Initialize the reload functions for 64-bit binary/decimal floating
687 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
688 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
689 create the buffer on the stack to overcome not having a 32-bit
691 (rs6000_emit_move): Likewise.
692 (rs6000_secondary_memory_needed_rtx): Likewise.
693 (rs6000_alloc_sdmode_stack_slot): Likewise.
694 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
695 via xxlxor, just like DFmode 0.0.
697 * config/rs6000/dfp.md (movdd): Delete, combine with binary
698 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
699 with other moves by using conditional constraits (wg). Use LFIWZX
700 and STFIWX for loading SDmode on power7.
701 (movdd splitters): Likewise.
702 (movdd_hardfloat32): Likewise.
703 (movdd_softfloat32): Likewise.
704 (movdd_hardfloat64_mfpgpr): Likewise.
705 (movdd_hardfloat64): Likewise.
706 (movdd_softfloat64): Likewise.
708 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
709 64-bit binary and decimal floating point moves.
710 (FMOVE64X): Likewise.
711 (movdf): Combine 64-bit binary and decimal floating point moves.
712 Combine power6x (mfpgpr) moves with other moves by using
713 conditional constraits (wg).
714 (mov<mode> for DFmode/DDmode): Likewise.
715 (DFmode/DDmode splitters): Likewise.
716 (movdf_hardfloat32): Likewise.
717 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
718 (movdf_softfloat32): Likewise.
719 (movdf_hardfloat64_mfpgpr): Likewise.
720 (movdf_hardfloat64): Likewise.
721 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
722 (movdf_softfloat64): Likewise.
723 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
724 (reload_<mode>_load): Move to later in the file so they aren't in
725 the middle of the floating point move insns.
726 (reload_<mode>_store): Likewise.
728 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
731 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
732 constraint if -mdebug=reg.
733 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
734 Enable using dd reload support if needed.
736 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
737 binary and decimal floating point moves in rs6000.md.
738 (movtd_internal): Likewise.
740 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
741 decimal floating point moves.
743 (movtf_internal): Likewise.
744 (mov<mode>_internal, TDmode/TFmode): Likewise.
745 (movtf_softfloat): Likewise.
746 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
748 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
749 movdi_internal64, using wg constraint for move direct operations.
750 (movdi_internal64): Likewise.
752 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
753 MODES_TIEABLE_P for selected modes. Print the numerical value of
754 the various virtual registers. Use GPR/FPR first/last values,
755 instead of hard coding the register numbers. Print which modes
756 have reload functions registered.
757 (rs6000_option_override_internal): If -mdebug=reg, trace the options
758 settings before/after setting cpu, target and subtarget settings.
759 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
760 and for secondary reload failures in rs6000_secondary_reload_inner.
761 (rs6000_secondary_reload_fail): Likewise.
762 (rs6000_secondary_reload_inner): Likewise.
764 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
765 macros for first/last GPR and FPR registers.
766 (LAST_GPR_REGNO): Likewise.
767 (FIRST_FPR_REGNO): Likewise.
768 (LAST_FPR_REGNO): Likewise.
770 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
771 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
772 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
773 (vcond<mode><mode>): Likewise.
774 (vcondu<mode><mode>): Likewise.
775 (vector_gtu<mode>): Likewise.
776 (vector_gte<mode>): Likewise.
777 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
778 to prevent the compiler from converting DImode operations to TImode.
779 (ior<mode>3): Likewise.
780 (and<mode>3): Likewise.
781 (one_cmpl<mode>2): Likewise.
782 (nor<mode>3): Likewise.
783 (andc<mode>3): Likewise.
785 * config/rs6000/constraints.md (wt constraint): New constraint
786 that returns VSX_REGS if TImode is allowed in VSX registers.
788 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
791 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
792 similar to TImode, but it is restricted to being in the GPRs.
794 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
795 TImode to occupy a single VSX register.
797 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
798 -mvsx-timode for power7/power8.
799 (power7 cpu): Likewise.
800 (power8 cpu): Likewise.
802 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
803 sure that TFmode/TDmode take up two registers if they are ever
804 allowed in the upper VSX registers.
805 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
807 (rs6000_init_hard_regno_mode_ok): Likewise.
808 (rs6000_debug_reg_global): Add debugging for PTImode and wt
809 constraint. Print if LRA is turned on.
810 (rs6000_option_override_internal): Give an error if -mvsx-timode
811 and VSX is not enabled.
812 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
813 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
814 to reg+offset addressing. Use PTImode when checking offset
815 addresses for validity.
816 (reg_offset_addressing_ok_p): Likewise.
817 (rs6000_legitimate_offset_address_p): Likewise.
818 (rs6000_legitimize_address): Likewise.
819 (rs6000_legitimize_reload_address): Likewise.
820 (rs6000_legitimate_address_p): Likewise.
821 (rs6000_eliminate_indexed_memrefs): Likewise.
822 (rs6000_emit_move): Likewise.
823 (rs6000_secondary_reload): Likewise.
824 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
825 reloads to fpr registers to continue to use reg+offset addressing,
826 but 64-bit reloads to altivec registers need reg+reg addressing.
827 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
828 it. Treat LO_SUM like a PLUS operation.
829 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
830 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
831 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
832 registers to share a register with a smaller sized type, since VSX
833 puts scalars in the upper 64-bits.
834 (print_operand): Add support for PTImode.
835 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
836 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
837 registers, but don't have arithmetic support.
838 (rs6000_memory_move_cost): Add test for VSX.
839 (rs6000_opt_masks): Add -mvsx-timode.
841 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
844 (VSr): Use wt constraint for TImode.
845 (VSv): Drop TImode support.
846 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
847 (vsx_movti_64bit): Likewise.
848 (vsx_movti_32bit): Likewise.
849 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
850 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
851 one '?' on the appropriate output constraint. Do not allow TImode
852 logical operations on 32-bit systems.
853 (vsx_ior<mode>3): Likewise.
854 (vsx_xor<mode>3): Likewise.
855 (vsx_one_cmpl<mode>2): Likewise.
856 (vsx_nor<mode>3): Likewise.
857 (vsx_andc<mode>3): Likewise.
858 (vsx_concat_<mode>): Likewise.
859 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
861 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
862 OPTION_MASK_VSX_TIMODE.
863 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
864 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
866 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
867 (TI2 iterator): New iterator for TImode, PTImode.
868 (wd mode attribute): Add values for vector types.
869 (movti_string): Replace TI move operations with operations for TImode
870 and PTImode. Add support for TImode being allowed in VSX registers.
871 (mov<mode>_string, TImode/PTImode): Likewise.
872 (movti_ppc64): Likewise.
873 (mov<mode>_ppc64, TImode/PTImode): Likewise.
874 (TI mode splitters): Likewise.
876 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
879 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
881 PR tree-optimization/56355
882 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
883 Also handle integers with undefined overflow.
885 2013-03-20 Catherine Moore <clm@codesourcery.com>
886 Maciej W. Rozycki <macro@codesourcery.com>
887 Tom de Vries <tom@codesourcery.com>
888 Nathan Sidwell <nathan@codesourcery.com>
889 Iain Sandoe <iain@codesourcery.com>
890 Nathan Froyd <froydnj@codesourcery.com>
891 Chao-ying Fu <fu@mips.com>
893 * doc/extend.texi: (micromips, nomicromips, nocompression):
894 Document new function attributes.
895 * doc/invoke.texi (minterlink-compressed, mmicromips,
896 m14k, m14ke, m14kec): Document new options.
897 (minterlink-mips16): Update documentation.
898 * doc/md.texi (ZC, ZD): Document new constraints.
899 * configure.ac (gcc_cv_as_micromips): Check if linker
900 supports the .set micromips directive.
901 * configure: Regenerate.
902 * config.in: Regenerate.
903 * config/mips/mips-tables.opt: Regenerate.
904 * config/mips/micromips.md: New file.
905 * constraints.md (ZC, ZD): New constraints.
906 * config/mips/predicates.md (movep_src_register): New predicate.
907 (movep_src_operand): New predicate.
908 (non_volatile_mem_operand): New predicate.
909 * config/mips/mips.md (multimem): New type.
910 (length): Differentiate between 17-bit and 18-bit branch offsets.
911 (MOVEP1, MOVEP2): New mode iterator.
912 (mov_<load>l): Use ZC constraint.
913 (mov_<load>r): Likewise.
914 (mov_<store>l): Likewise.
915 (mov_<store>r): Likewise.
916 (*branch_equality<mode>_inverted): Add microMIPS support.
917 (*branch_equality<mode>): Likewise.
918 (*jump_absolute): Likewise.
919 (indirect_jump_<mode>): Likewise.
920 (tablejump_<mode>): Likewise.
921 (<optab>_internal): Likewise.
922 (sibcall_internal): Likewise.
923 (sibcall_value_internal): Likewise.
924 (prefetch): Use constraint ZD.
925 * config/mips/mips.opt (minterlink-compressed): New option.
926 (minterlink-mips16): Now an alias for minterlink-compressed.
927 (mmicromips): New option.
928 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
929 (compare_and_swap_12): Likewise.
930 (sync_add<mode>): Likewise.
931 (sync_<optab>_12): Likewise.
932 (sync_old_<optab>_12): Likewise.
933 (sync_new_<optab>_12): Likewise.
934 (sync_nand_12): Likewise.
935 (sync_old_nand_12): Likewise.
936 (sync_new_nand_12): Likewise.
937 (sync_sub<mode>): Likewise.
938 (sync_old_add<mode>): Likewise.
939 (sync_old_sub<mode>): Likewise.
940 (sync_new_add<mode>): Likewise.
941 (sync_new_sub<mode>): Likewise.
942 (sync_<optab><mode>): Likewise.
943 (sync_old_<optab><mode>): Likewise.
944 (sync_new_<optab><mode>): Likewise.
945 (sync_nand<mode>): Likewise.
946 (sync_old_nand<mode>): Likewise.
947 (sync_new_nand<mode>): Likewise.
948 (sync_lock_test_and_set<mode>): Likewise.
949 (test_and_set_12): Likewise.
950 (atomic_compare_and_swap<mode>): Likewise.
951 (atomic_exchange<mode>_llsc): Likewise.
952 (atomic_fetch_add<mode>_llsc): Likewise.
953 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
954 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
955 (umips_save_restore_pattern_p): Likewise.
956 (umips_load_store_pair_p): Likewise.
957 (umips_output_load_store_pair): Likewise.
958 (umips_movep_target_p): Likewise.
959 (umips_12bit_offset_address_p): Likewise.
960 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
961 (mips_base_mips16): Rename this...
962 (mips_base_compression_flags): ...to this. Update all uses.
963 (mips_attribute_table): Add micromips, nomicromips and nocompression.
964 (mips_mips16_decl_p): Delete.
965 (mips_nomips16_decl_p): Delete.
966 (mips_get_compress_on_flags): New function.
967 (mips_get_compress_off_flags): New function.
968 (mips_get_compress_mode): New function.
969 (mips_get_compress_on_name): New function.
970 (mips_get_compress_off_name): New function.
971 (mips_insert_attributes): Support multiple compression types.
972 (mips_merge_decl_attributes): Likewise.
973 (umips_12bit_offset_address_p): New function.
974 (mips_start_function_definition): Emit .set micromips directive.
975 (mips_call_may_need_jalx_p): New function.
976 (mips_function_ok_for_sibcall): Add microMIPS support.
977 (mips_print_operand_punctuation): Support short delay slots and
979 (umips_swm_mask, umips_swm_encoding): New.
980 (umips_build_save_restore): New function.
981 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
982 (was_mips16_p): Remove.
983 (old_compression_mode): New.
984 (mips_set_compression_mode): New function.
985 (mips_set_current_function): Add microMIPS support.
986 (mips_option_override): Likewise.
987 (umips_save_restore_pattern_p): New function.
988 (umips_output_save_restore): New function.
989 (umips_load_store_pair_p_1): New function.
990 (umips_load_store_pair_p): New function.
991 (umips_output_load_store_pair_1): New function.
992 (umips_output_load_store_pair): New function.
993 (umips_movep_target_p) New function.
994 (mips_prepare_pch_save): Add microMIPS support.
995 * config/mips/mips.h (TARGET_COMPRESSION): New.
996 (TARGET_CPU_CPP_BUILTINS): Update macro
997 to use new compression flags and to support microMIPS.
998 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
999 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1000 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1001 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1002 (ASM_SPEC): Support mmicromips and mno-micromips.
1003 (M16STORE_REG_P): New macro.
1004 (MIPS_CALL): Support TARGET_MICROMIPS.
1005 (MICROMIPS_J): New macro.
1006 (mips_base_mips16): Rename this...
1007 (mips_base_compression_flags): ...to this.
1008 (UMIPS_12BIT_OFFSET_P): New macro.
1009 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1010 (MULTILIB_DIRNAMES): Likewise.
1011 2013-03-20 Richard Biener <rguenther@suse.de>
1013 PR tree-optimization/56661
1014 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1015 the result does not have to be distinct.
1017 2013-03-20 Richard Biener <rguenther@suse.de>
1019 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
1022 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1023 Steven Bosscher <steven@gcc.gnu.org>
1025 PR rtl-optimization/56605
1026 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1028 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1031 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
1032 that require movd instead of movq.
1034 2013-03-20 Richard Biener <rguenther@suse.de>
1036 * tree-ssa-structalias.c (struct variable_info): Add pointer
1037 to the first field of an aggregate with sub-vars. Make
1038 this and the pointer to the next subfield its ID.
1039 (vi_next): New function.
1040 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
1041 storedanything_id, integer_id): Increment by one.
1042 (new_var_info, get_call_vi, lookup_call_clobber_vi,
1043 get_call_clobber_vi): Adjust.
1044 (solution_set_expand): Simplify and speedup.
1045 (solution_set_add): Inline into ...
1046 (set_union_with_increment): ... this. Adjust accordingly.
1047 (do_sd_constraint): Likewise.
1048 (do_ds_constraint): Likewise.
1049 (do_complex_constraint): Simplify.
1050 (build_pred_graph): Adjust.
1051 (solve_graph): Likewise. Simplify and speedup.
1052 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
1053 get_constraint_for_component_ref, get_constraint_for_1,
1054 first_vi_for_offset, first_or_preceding_vi_for_offset,
1055 create_function_info_for, create_variable_info_for_1,
1056 create_variable_info_for, intra_create_variable_infos): Adjust.
1057 (init_base_vars): Push NULL for ID zero.
1058 (compute_points_to_sets): Adjust.
1060 2013-03-20 Richard Biener <rguenther@suse.de>
1062 * cfgloop.c (verify_loop_structure): Streamline and avoid
1063 ICEing on corrupt loop tree.
1064 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
1067 2013-03-20 Richard Biener <rguenther@suse.de>
1069 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
1070 check whether an SSA update is needed.
1072 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
1074 * config/mips/constraints.md (T): Rename to...
1078 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
1079 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
1081 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1083 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
1084 (*subsi3_carryin_uxtw): Likewise.
1086 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1088 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
1089 (*rorsi3_insn_uxtw): Likewise.
1091 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1093 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
1094 (*extrsi5_insn_uxtw): Likewise.
1096 2013-03-19 Richard Biener <rguenther@suse.de>
1098 PR tree-optimization/56273
1099 * passes.c (init_optimization_passes): Move second VRP after DOM.
1101 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
1103 * config/i386/i386.md (*movti_internal): Merge from
1104 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
1105 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
1106 nox64 isa attributes.
1108 2013-03-18 Richard Biener <rguenther@suse.de>
1110 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
1112 (merge_node_constraints): Likewise.
1113 (build_succ_graph): Likewise.
1114 (valid_graph_edge): Inline into single caller.
1115 (unify_nodes): Likewise. Use bitmap_set_bit return value
1117 (scc_visit): Fix formatting and variable use.
1118 (do_sd_constraint): Use gcc_checking_assert.
1119 (do_ds_constraint): Likewise.
1120 (do_complex_constraint): Likewise.
1121 (condense_visit): Likewise. Cleanup.
1122 (dump_pred_graph): New function.
1123 (perform_var_substitution): Dump the pred-graph before
1124 variable substitution.
1125 (find_equivalent_node): Use gcc_checking_assert.
1126 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
1128 2013-03-18 Richard Biener <rguenther@suse.de>
1130 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1131 Remove cond_expr_stmt_list argument and do not gimplify the
1133 (vect_loop_versioning): Adjust.
1134 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1135 Cleanup to use less temporaries.
1136 (vect_create_data_ref_ptr): Cleanup.
1138 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1140 PR tree-optimization/56635
1141 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
1142 require types_compatible_p types.
1144 2013-03-18 Nick Clifton <nickc@redhat.com>
1146 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
1149 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
1150 Add missing line to comment describing function.
1152 2013-03-18 Richard Biener <rguenther@suse.de>
1154 PR tree-optimization/56210
1155 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1156 Handle string / character search functions.
1157 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1159 2013-03-18 Richard Biener <rguenther@suse.de>
1162 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
1163 and implement properly.
1164 * gimple.h (gimple_cond_single_var_p): Remove.
1166 2013-03-18 Richard Biener <rguenther@suse.de>
1168 * tree-data-ref.h (find_data_references_in_loop): Declare.
1169 * tree-data-ref.c (get_references_in_stmt): Use a stack
1170 vector pre-allocated in the callers.
1171 (find_data_references_in_stmt): Adjust.
1172 (graphite_find_data_references_in_stmt): Likewise.
1173 (create_rdg_vertices): Likewise.
1174 (find_data_references_in_loop): Export.
1175 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1176 Compute dependences here...
1177 (vect_analyze_data_refs): ...not here. When we encounter
1178 a non-vectorizable data reference in basic-block vectorization
1179 truncate the data reference vector. Do not bother to
1180 fixup data-dependence information for gather loads.
1181 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
1182 of data references, as reported.
1184 2013-03-18 Richard Biener <rguenther@suse.de>
1186 PR tree-optimization/3713
1187 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
1188 has_constants and expr.
1189 (stmt_has_constants): Properly valueize SSA names when deciding
1190 whether the stmt has constants.
1192 2013-03-18 Richard Biener <rguenther@suse.de>
1194 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
1195 whole function when there is nothing to do.
1196 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
1197 * tree-vectorizer.c (vectorize_loops): Update virtual and
1198 loop-closed SSA once.
1199 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
1201 2013-03-18 Richard Biener <rguenther@suse.de>
1204 * domwalk.c (bb_postorder): New global static.
1205 (cmp_bb_postorder): New function.
1206 (walk_dominator_tree): Replace scheme imposing an order for
1207 visiting dominator sons by one sorting them at the time they
1208 are pushed on the stack.
1210 2013-03-18 Richard Biener <rguenther@suse.de>
1212 PR tree-optimization/39326
1213 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
1214 (struct mem_ref): Replace mem member with ao_ref typed member.
1215 (MEM_ANALYZABLE): Adjust.
1216 (memref_eq): Likewise.
1217 (mem_ref_alloc): Likewise.
1218 (gather_mem_refs_stmt): Likewise.
1219 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
1220 (execute_sm_if_changed_flag_set): Adjust.
1221 (execute_sm): Likewise.
1222 (ref_always_accessed_p): Likewise.
1223 (refs_independent_p): Likewise.
1224 (can_sm_ref_p): Likewise.
1226 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1229 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1230 return 1 even for !unsignedp.
1232 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1234 * config/i386/i386.md (isa): Add x64 and nox64.
1235 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
1236 (*pushtf): Enable *roF alternative for x64 isa only.
1237 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
1238 mode attribute of integer alternatives to DImode for TARGET_64BIT.
1239 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
1240 (*movtf_internal): Merge from *movtf_internal_rex64 and
1241 *movtf_internal_sse. Use x64 and nox64 isa attributes.
1242 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
1243 nox64 isa attributes.
1244 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
1245 nox64 isa attributes.
1246 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
1248 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1250 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1252 2013-03-17 Jakub Jelinek <jakub@redhat.com>
1255 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1256 class names. Remove trailing comma after "ALL_REGS".
1258 2013-03-16 Jan Hubicka <jh@suse.cz>
1260 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1261 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1262 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1263 of cgraph_get_create_node.
1264 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1266 2013-03-16 Jason Merrill <jason@redhat.com>
1269 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
1270 with DW_AT_default_value.
1272 2013-03-16 Jakub Jelinek <jakub@redhat.com>
1274 * BASE-VER: Set to 4.9.0.
1276 2013-03-14 Andi Kleen <ak@linux.intel.com>
1279 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1280 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1281 Document _x* TSX intrinsics.
1283 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1284 David Holsgrove <david.holsgrove@xilinx.com>
1286 * configure.ac: Add MicroBlaze TLS support detection.
1287 * configure: Regenerate.
1288 * config/microblaze/microblaze-protos.h
1289 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1290 symbol_mentioned_p, label_mentioned_p): Add prototypes.
1291 * config/microblaze/microblaze.c (microblaze_address_type): Add
1292 ADDRESS_TLS and tls_reloc address types.
1293 (microblaze_address_info): Add tls_reloc.
1294 (TARGET_HAVE_TLS): Define.
1295 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1296 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
1297 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1298 load_tls_operand, microblaze_call_tls_get_addr,
1299 microblaze_legitimize_tls_address): New functions.
1300 (microblaze_classify_unspec): Handle UNSPEC_TLS.
1301 (get_base_reg): Use microblaze_tls_symbol_p.
1302 (microblaze_classify_address): Handle TLS.
1303 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1304 label_mentioned_p and microblaze_tls_referenced_p.
1305 (microblaze_legitimize_address): Handle TLS.
1306 (microblaze_address_insns): Handle ADDRESS_TLS.
1307 (pic_address_needs_scratch): Handle TLS.
1308 (print_operand_address): Handle TLS.
1309 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1310 (microblaze_expand_move): Handle TLS.
1311 (microblaze_legitimate_constant_p): Check
1312 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
1313 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1314 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1315 (PIC_OFFSET_TABLE_REGNUM): Set.
1316 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1317 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1318 (addsi3, movsi_internal2, movdf_internal): Update constraints
1319 * config/microblaze/predicates.md (arith_plus_operand): Define
1320 (move_operand): Redefine as move_src_operand,
1321 check microblaze_tls_referenced_p.
1323 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1325 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
1326 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
1328 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1330 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
1333 2013-03-14 Jakub Jelinek <jakub@redhat.com>
1335 PR tree-optimization/53265
1336 * common.opt (Waggressive-loop-optimizations): New option.
1337 * tree-ssa-loop-niter.c: Include tree-pass.h.
1338 (do_warn_aggressive_loop_optimizations): New function.
1339 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
1340 if number_of_latch_executions returned constant.
1341 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
1342 early. If number_of_latch_executions returned constant, set
1343 nb_iterations_upper_bound back to it.
1344 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
1346 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
1347 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
1349 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
1350 (MULTILIB_OSDIRNAMES): Set.
1351 * genmultilib: If defaultosdirname doesn't start with :: , set
1352 defaultosdirname2 instead, clear it and emit two . multilib_raw
1353 entries instead of just one.
1355 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
1357 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1358 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
1359 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1360 (SUBTARGET_OVERRIDE_OPTIONS): New.
1362 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
1365 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
1366 (musermode): Convert to Var(TARGET_USERMODE).
1367 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
1368 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
1369 * config/sh/sh.c (sh_option_override): Use
1370 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
1371 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
1373 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
1375 (udivsi3_i4_single, divsi3_i4_single): Use
1376 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
1378 2013-03-13 Dave Korn <dave.korn.cygwin@....>
1380 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
1383 2013-03-13 Richard Biener <rguenther@suse.de>
1385 PR tree-optimization/56608
1386 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
1387 calls when vectorizing basic-blocks.
1389 2013-03-13 Jakub Jelinek <jakub@redhat.com>
1392 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
1395 2013-03-12 Jakub Jelinek <jakub@redhat.com>
1397 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
1399 2013-03-11 Jan Hubicka <jh@suse.cz>
1402 * lto-streamer-out.c (output_symbol_p): Skip references from
1403 constructors of external variables.
1405 2013-03-11 Jan Hubicka <jh@suse.cz>
1408 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
1410 * emit-rtl.c (verify_rtx_sharing): Likewise.
1411 (copy_insn_1): Likewise.
1412 * rtl.c (copy_rtx): Likewise.
1414 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
1417 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
1418 output_operand_lossage message.
1420 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
1423 * arm.c (shift_op): Validate RTL pattern on the fly.
1424 (arm_print_operand, case 'S'): Don't use shift_operator to validate
1427 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1430 * config/pa/pa.md (call_value): Check for calls to powf and direct to
1431 new call patterns that clobber %fr12.
1432 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
1433 split and postreload patterns.
1434 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
1435 registers %fr12 and %fr12R as call used.
1437 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
1439 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
1440 (canon_address, record_store, replace_read, check_mem_read_rtx,
1441 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
1442 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
1443 rest_of_handle_dse): Likewise.
1445 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1448 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
1450 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
1451 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
1452 (save_optabs_if_changed): Replace with...
1453 (init_tree_optimization_optabs): ...this.
1454 * optabs.c (save_optabs_if_changed): Rename to...
1455 (init_tree_optimization_optabs): ...this. Take the optimization node
1456 as argument. Do nothing if the base optabs are already correct.
1457 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
1458 to recompute optabs.
1459 * function.h (function): Remove optabs field.
1460 * function.c (invoke_set_current_function_hook): Call
1461 init_tree_optimization_optabs. Use the result to initialize
1464 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
1466 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
1467 if GTMA_HAS_NO_INSTRUMENTATION.
1468 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
1469 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
1470 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
1471 * gimple-pretty-print.c (dump_gimple_transaction): Handle
1472 GTMA_HAS_NO_INSTRUMENTATION.
1474 2013-03-08 Jakub Jelinek <jakub@redhat.com>
1476 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
1479 2013-03-08 Marek Polacek <polacek@redhat.com>
1480 Jakub Jelinek <jakub@redhat.com>
1482 PR tree-optimization/56478
1483 * predict.c (is_comparison_with_loop_invariant_p): Change the
1484 type of loop_step to tree.
1485 (predict_loops): Adjust.
1486 (predict_iv_comparison): Perform the computations on double_ints.
1488 2013-03-08 Richard Biener <rguenther@suse.de>
1490 PR tree-optimization/56570
1491 * tree-cfg.c (verify_expr_location_1): Verify locations for
1493 * tree-sra.c (create_access_replacement): Strip locations
1494 from DECL_DEBUG_EXPRs.
1496 2013-03-08 Richard Biener <rguenther@suse.de>
1498 * tree-inline.c (expand_call_inline): Do not associate
1499 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
1500 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
1502 2013-03-08 Richard Biener <rguenther@suse.de>
1504 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
1505 or block changes with -Og. Fix for location / block encoding
1506 changes and PHI arguments with locations.
1508 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
1510 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
1512 (struct output_info): Likewise.
1513 (register_overhead): Remove bad gcc_assert.
1514 (bitmap_find_bit): If there is only a single bitmap element, do not
1515 count a miss as a search.
1516 (print_statistics): Update for counter type changes.
1517 (dump_bitmap_statistics): Likewise. Print headers such that they
1518 are properly lined up with the printed counters.
1520 2013-03-07 Jakub Jelinek <jakub@redhat.com>
1522 PR tree-optimization/56559
1523 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
1524 check that it has only a single use.
1526 2013-03-07 Richard Biener <rguenther@suse.de>
1528 * doc/invoke.texi (fwhole-program): Discourage use in combination
1531 2013-03-06 Jakub Jelinek <jakub@redhat.com>
1533 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
1535 PR tree-optimization/56539
1536 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
1537 instead of GSI_CONTINUE_LINKING as last argument to
1538 force_gimple_operand_gsi. Adjust function comment.
1540 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
1544 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
1545 promoted mode, convert the result back to the original mode.
1547 2013-03-06 Richard Biener <rguenther@suse.de>
1550 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
1551 (insert_updated_phi_nodes_compare_uids): New function.
1552 (update_ssa): Sort symbols_to_rename after UID before
1553 traversing it to insert PHI nodes.
1555 2013-03-06 Richard Biener <rguenther@suse.de>
1558 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
1559 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
1562 2013-02-13 Richard Biener <rguenther@suse.de>
1565 * varasm.c (output_constant_def_1): Get the decl representing
1566 the constant as argument.
1567 (output_constant_def): Wrap output_constant_def_1.
1568 (make_decl_rtl): Use output_constant_def_1 with the decl
1569 representing the constant.
1570 (build_constant_desc): Optionally re-use a decl already
1571 representing the constant.
1572 (tree_output_constant_def): Adjust.
1574 2013-03-06 Joey Ye <joey.ye@arm.com>
1577 * gcc.c (convert_white_space): New function.
1578 (main): Handles white space in function name.
1580 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
1583 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
1584 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
1585 to SH_DIV_CALL_TABLE for TARGET_SH2.
1586 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
1588 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
1591 2013-03-05 Sterling Augustine <saugustine@google.com>
1592 Cary Coutant <ccoutant@google.com>
1595 * dwarf2out.c (resolve_addr): Don't call
1596 remove_loc_list_addr_table_entries a second time for the same
1599 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1602 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
1603 (avoid_complex_debug_insns): New function.
1604 (expand_debug_locations): Call it.
1606 PR rtl-optimization/56484
1607 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
1608 lifetimes of hard registers on small register class machines.
1610 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1612 * config/microblaze/microblaze-protos.h: Rename
1613 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
1614 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
1616 (microblaze_fast_interrupt_function_p): New function.
1617 (microblaze_is_interrupt_handler): Rename to
1618 microblaze_is_interrupt_variant and add fast_interrupt check.
1619 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
1620 (save_restore_insns): Likewise.
1621 (compute_frame_size): Likewise.
1622 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
1623 (microblaze_globalize_label): Likewise.
1624 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
1625 * config/microblaze/microblaze.md: Use wrapper
1626 microblaze_is_interrupt_variant.
1628 2013-03-05 Kai Tietz <ktietz@redhat.com>
1630 * sdbout.c (sdbout_one_type): Switch to current function's section
1631 supporting cold/hot.
1633 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1635 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
1638 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1641 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
1642 if VALGRIND_GET_VBITS is defined, temporarily make object
1643 memory all defined, and restore previous valgrind addressability
1644 and definability afterwards. Free this_object at the end.
1647 * lra.c (lra): Call lra_clear_live_ranges if live_p,
1648 right before calling lra_create_live_ranges, also call it
1649 when clearing live_p. Only call lra_clear_live_ranges
1650 at the end if live_p.
1653 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
1655 2013-03-05 Richard Biener <rguenther@suse.de>
1657 PR tree-optimization/56521
1658 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
1661 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
1664 * except.h (remove_unreachable_eh_regions): New prototype.
1665 * except.c (remove_eh_handler_splicer): New function, split out
1666 of remove_eh_handler.
1667 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
1668 warning about running it on many EH regions one at a time.
1669 (remove_unreachable_eh_regions_worker): New function, walk the
1670 EH tree in depth-first order and remove non-marked regions.
1671 (remove_unreachable_eh_regions): New function.
1672 * tree-eh.c (mark_reachable_handlers): New function, split out
1673 from remove_unreachable_handlers.
1674 (remove_unreachable_handlers): Use mark_reachable_handlers and
1675 remove_unreachable_eh_regions.
1676 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
1677 and remove_unreachable_eh_regions.
1679 2013-03-05 Richard Biener <rguenther@suse.de>
1682 * loop-init.c (fix_loop_structure): Remove loops in two stages,
1683 not freeing them until the end.
1685 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1687 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
1689 2013-03-05 Richard Biener <rguenther@suse.de>
1691 PR tree-optimization/56270
1692 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
1693 of loads after scheduling an SLP instance.
1695 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1697 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
1699 (check_gcc_parallelize): Run guality.exp as a separate job from
1700 vect.exp with unsorted.exp and $(dg_target_exps) separately from
1701 struct-layout-1.exp with stackalign.exp.
1703 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
1706 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
1707 load_index sbitmap even if some bit in it isn't set.
1710 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
1711 (discover_iteration_bound_by_body_walk): Change queues to
1712 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
1713 spelling in comment. Call safe_push on queues[bound_index] directly.
1714 Release queues[queue_index] in every iteration unconditionally.
1715 Release bounds vector.
1718 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
1719 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
1720 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
1723 2013-03-05 Richard Biener <rguenther@suse.de>
1726 * tree-inline.c (remap_blocks_to_null): New function.
1727 (expand_call_inline): When expanding a call stmt without
1728 an associated block inline remap all callee blocks to NULL.
1730 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1732 PR rtl-optimization/56494
1733 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
1734 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
1735 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
1738 * sel-sched-ir.c (free_sched_pools): Release
1739 succs_info_pool.stack[succs_info_pool.max_top] vectors too
1740 if succs_info_pool.max_top isn't -1.
1743 * opts.c (opts_obstack, opts_concat): Moved to...
1744 * opts-common.c (opts_obstack, opts_concat): ... here.
1746 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1749 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
1751 2013-03-04 Martin Jambor <mjambor@suse.cz>
1753 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
1754 all appropriate places.
1756 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
1758 PR tree-optimization/56424
1759 * ipa-split.c (split_function): Do not set the RSO flag if result is
1760 not by reference and its type is a register type.
1762 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
1764 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
1765 (microblaze_legitimate_pic_operand): Likewise
1766 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
1767 new function microblaze_legitimate_pic_operand
1768 * config/microblaze/microblaze-protos.h
1769 (microblaze_legitimate_pic_operand): Declare.
1771 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1773 * config/microblaze/predicates.md (call_insn_simple_operand):
1774 New predicate for supported rtx code types.
1775 * config/microblaze/microblaze.md (call_internal1): Use
1776 call_insn_simple_operand predicate.
1778 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1781 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
1782 partitions.ordered_remove.
1785 * tree-vect-stmts.c (vectorizable_conversion): Don't call
1786 vec_oprnds0.create (1) for modifier == NONE.
1789 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
1790 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
1791 vec_oprnds1 right before pushing anything to it for
1795 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
1796 set nbbs to 0 instead of having separate code path.
1797 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
1798 instead of false as last argument if returning NULL.
1800 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
1802 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
1803 the attribute is now called "target" instead of "option".
1804 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
1805 * doc/tm.texi.in (Target Attributes): Likewise document the correct
1806 attribute/pragma name for TARGET_OPTION_VALID_P and
1807 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
1808 * doc/tm.texi: Regenerated.
1810 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
1812 * config/microblaze/microblaze.c:
1813 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
1814 * config/microblaze/microblaze.h: Add -mxl-reorder to
1816 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
1817 instructions emitted if TARGET_REORDER.
1818 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
1819 or 0 for -m/-mno case, but initialises as 2 to detect default use case
1822 2013-03-01 Xinliang David Li <davidxl@google.com>
1824 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
1827 2013-03-01 Jakub Jelinek <jakub@redhat.com>
1830 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
1831 vector even when returning true. Fix up function comment formatting.
1834 * ira-build.c (ira_loop_nodes_count): New variable.
1835 (create_loop_tree_nodes): Initialize it.
1836 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
1839 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
1840 method on dr_chain and result_chain.
1841 * tree-vect-stmts.c (vectorizable_store): Only call
1842 result_chain.create if j == 0.
1845 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
1846 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
1847 before overwriting it.
1849 2013-03-01 Tobias Burnus <burnus@net-b.de>
1851 * doc/extended.texi (C Extensions): Change order in @menu
1853 (Other MIPS Built-in Functions): Move last MIPS entry before
1854 "picoChip Built-in Functions".
1855 (SH Built-in Functions): Move after RX Built-in Functions.
1856 * doc/gcc.texi (Introduction): Change order in @menu
1858 * doc/md.texi (Constraints): Ditto.
1859 * gty.texi (Type Information): Ditto.
1860 (User-provided marking routines for template types): Make
1862 * doc/invoke.texi (AArch64 Options): Move before
1863 "Adapteva Epiphany Options".
1865 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1866 Jakub Jelinek <jakub@redhat.com>
1869 * asan.c (gate_asan): Lookup no_sanitize_address instead of
1870 no_address_safety_analysis attribute.
1871 * doc/extend.texi (no_address_safety_attribute): Rename to
1872 no_sanitize_address attribute, mention no_address_safety_analysis
1873 attribute as deprecated alias.
1875 2013-02-28 Jakub Jelinek <jakub@redhat.com>
1878 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
1879 type to vec<vec<tree> > *.
1880 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
1881 to be vec<tree> instead of vec<tree> *, set vec_defs
1882 to vNULL and call vec_defs.create (number_of_vects), adjust other
1884 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
1885 vectorizable_condition): Adjust vect_get_slp_defs callers.
1887 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1889 * config/aarch64/aarch64.c
1890 (aarch64_float_const_representable): Remove unused variable.
1892 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1894 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
1896 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1898 * config/aarch64/aarch64-builtins.c
1899 (aarch64_init_simd_builtins): Make static.
1901 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1903 * config/aarch64/aarch64.c
1904 (aarch64_simd_make_constant): Make static.
1906 2013-02-28 Martin Jambor <mjambor@suse.cz>
1908 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
1909 with no initialization to the RHS of debug statements.
1911 2013-02-28 Martin Jambor <mjambor@suse.cz>
1913 PR tree-optimization/56294
1914 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
1916 (get_access_replacement): Do not call create_access_replacement.
1917 Assert a replacement exists.
1918 (get_repl_default_def_ssa_name): Create the replacement declaration
1921 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1923 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
1926 2013-02-28 Marek Polacek <polacek@redhat.com>
1928 PR rtl-optimization/56466
1929 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
1930 if we're changing a loop.
1931 (peel_loops_completely): Likewise.
1933 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
1936 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
1938 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
1941 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
1942 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
1943 INTX_FTYPE_FX, FX_FTYPE_INTX.
1944 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
1946 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
1948 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
1949 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
1950 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
1951 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
1952 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
1953 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
1954 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
1955 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
1956 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
1957 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
1958 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
1959 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
1960 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
1961 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
1962 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
1963 (avrxmega6): Increase max flash segments from 5 to 6.
1964 * config/avr/t-multilib: Regenerate.
1965 * config/avr/avr-tables.opt: Regenerate.
1966 * doc/avr-mmcu.texi: Regenerate.
1968 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
1970 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
1971 (avr_device_to_arch): Rename to avr_device_to_ld.
1972 (avr_device_to_as): New prototype.
1973 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
1974 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
1975 * config/avr/driver-avr.c (avr_device_to_as): New.
1976 (avr_device_to_arch): Rename to avr_device_to_ld.
1978 2013-02-27 Jakub Jelinek <jakub@redhat.com>
1981 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
1982 method on dr_chain and result_chain.
1985 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
1986 pointer_set_destroy on not_executed_last_iteration.
1989 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
1992 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
1993 FOR_EACH_DEFINED_FUNCTION when freeing state.
1996 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
1998 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2002 * ipa-cp.c (decide_whether_version_node): Call vec_free on
2003 known_aggs[i].items and release known_aggs vector.
2006 * ipa-reference.c (propagate): Free node_info even for alias nodes.
2008 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2010 * config/microblaze/microblaze.c (microblaze_emit_compare):
2011 Use xor for EQ/NE comparisions.
2012 * config/microblaze/microblaze.md (cstoresf4): Add constraints
2013 (cbranchsf4): Adjust operator to comparison_operator.
2015 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2018 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2020 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2021 vec_safe_push, always update *slot.
2022 (redirect_edge_var_map_clear): Use vec_free.
2023 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2024 (free_var_map_entry): Use vec_free.
2025 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2026 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2028 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
2031 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2032 when the may_trap_p bit of the exprs being merged differs.
2033 Reorder tests for speculativeness in the logical and operator.
2035 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2037 * incpath.c (add_standard_paths): Use reconcat instead of concat
2038 where appropriate and avoid leaking memory.
2040 * opts.h: Include obstack.h.
2041 (opts_concat): New prototype.
2042 (opts_obstack): New declaration.
2043 * opts.c (opts_concat): New function.
2044 (opts_obstack): New variable.
2045 (init_options_struct): Call gcc_init_obstack on opts_obstack.
2046 (finish_options): Use opts_concat instead of concat
2047 and XOBNEWVEC instead of XNEWVEC.
2048 * opts-common.c (generate_canonical_option, decode_cmdline_option,
2049 generate_option): Likewise.
2050 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2051 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2054 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2055 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2057 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2060 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2062 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2064 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2065 (arm_block_move_unaligned_straight): Likewise.
2066 (arm_adjust_block_mem): Likewise.
2068 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2071 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2072 temp, cond and label.
2073 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2076 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2077 * config/c6x/c6x.h (dbx_register_map): Update declaration.
2080 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2081 of prologue/epilogue functions.
2084 * config/tilegx/tilegx.c (tilegx_expand_prologue):
2085 Remove unused variable cfa_offset.
2086 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2089 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2090 type promotion to unsigned.
2093 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2094 for HOST_WIDE_INT of 32 bit / same size as int.
2095 (arm_block_move_unaligned_straight): Likewise.
2096 (arm_adjust_block_mem): Likewise.
2099 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2102 2013-02-26 Marek Polacek <polacek@redhat.com>
2104 PR tree-optimization/56426
2105 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
2107 2013-02-26 Richard Biener <rguenther@suse.de>
2110 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2111 unused variable loops.
2113 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2115 PR tree-optimization/56448
2116 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2117 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2118 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2119 later operands of the references, or even first operand for
2120 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2122 PR tree-optimization/56443
2123 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2124 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2125 to type_for_mode langhook.
2127 2013-02-25 Matt Turner <mattst88@gmail.com>
2129 * doc/invoke.texi: Document r4700.
2131 2013-02-25 Richard Biener <rguenther@suse.de>
2133 PR tree-optimization/56175
2134 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2136 (simplify_bitwise_binary): ... here. Also guard the conversion
2137 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2139 2013-02-25 Catherine Moore <clm@codesourcery.com>
2142 2013-02-24 Catherine Moore <clm@codesourcery.com>
2143 Maciej W. Rozycki <macro@codesourcery.com>
2144 Tom de Vries <tom@codesourcery.com>
2145 Nathan Sidwell <nathan@codesourcery.com>
2146 Iain Sandoe <iain@codesourcery.com>
2147 Nathan Froyd <froydnj@codesourcery.com>
2148 Chao-ying Fu <fu@mips.com>
2150 * doc/extend.texi: (micromips, nomicromips, nocompression):
2151 Document new function attributes.
2152 * doc/invoke.texi (minterlink-compressed, mmicromips,
2153 m14k, m14ke, m14kec): Document new options.
2154 (minterlink-mips16): Update documentation.
2155 * doc/md.texi (ZC, ZD): Document new constraints.
2156 * configure.ac (gcc_cv_as_micromips): Check if linker
2157 supports the .set micromips directive.
2158 * configure: Regenerate.
2159 * config.in: Regenerate.
2160 * config/mips/mips-tables.opt: Regenerate.
2161 * config/mips/micromips.md: New file.
2162 * constraints.md (ZC, AD): New constraints.
2163 * config/mips/predicates.md (movep_src_register): New predicate.
2164 (movep_src_operand): New predicate.
2165 (non_volatile_mem_operand): New predicate.
2166 * config/mips/mips.md (multimem): New type.
2167 (length): Differentiate between 17-bit and 18-bit branch offsets.
2168 (MOVEP1, MOVEP2): New mode iterator.
2169 (mov_<load>l): Use ZC constraint.
2170 (mov_<load>r): Likewise.
2171 (mov_<store>l): Likewise.
2172 (mov_<store>r): Likewise.
2173 (*branch_equality<mode>_inverted): Add microMIPS support.
2174 (*branch_equality<mode>): Likewise.
2175 (*jump_absolute): Likewise.
2176 (indirect_jump_<mode>): Likewise.
2177 (tablejump_<mode>): Likewise.
2178 (<optab>_internal): Likewise.
2179 (sibcall_internal): Likewise.
2180 (sibcall_value_internal): Likewise.
2181 (prefetch): Use constraint ZD.
2182 * config/mips/mips.opt (minterlink-compressed): New option.
2183 (minterlink-mips16): Now an alias for minterlink-compressed.
2184 (mmicromips): New option.
2185 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2186 (compare_and_swap_12): Likewise.
2187 (sync_add<mode>): Likewise.
2188 (sync_<optab>_12): Likewise.
2189 (sync_old_<optab>_12): Likewise.
2190 (sync_new_<optab>_12): Likewise.
2191 (sync_nand_12): Likewise.
2192 (sync_old_nand_12): Likewise.
2193 (sync_new_nand_12): Likewise.
2194 (sync_sub<mode>): Likewise.
2195 (sync_old_add<mode>): Likewise.
2196 (sync_old_sub<mode>): Likewise.
2197 (sync_new_add<mode>): Likewise.
2198 (sync_new_sub<mode>): Likewise.
2199 (sync_<optab><mode>): Likewise.
2200 (sync_old_<optab><mode>): Likewise.
2201 (sync_new_<optab><mode>): Likewise.
2202 (sync_nand<mode>): Likewise.
2203 (sync_old_nand<mode>): Likewise.
2204 (sync_new_nand<mode>): Likewise.
2205 (sync_lock_test_and_set<mode>): Likewise.
2206 (test_and_set_12): Likewise.
2207 (atomic_compare_and_swap<mode>): Likewise.
2208 (atomic_exchange<mode>_llsc): Likewise.
2209 (atomic_fetch_add<mode>_llsc): Likewise.
2210 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2211 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2212 (umips_save_restore_pattern_p): Likewise.
2213 (umips_load_store_pair_p): Likewise.
2214 (umips_output_load_store_pair): Likewise.
2215 (umips_movep_target_p): Likewise.
2216 (umips_12bit_offset_address_p): Likewise.
2217 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2218 (mips_base_mips16): Rename this...
2219 (mips_base_compression_flags): ...to this. Update all uses.
2220 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2221 (mips_mips16_decl_p): Delete.
2222 (mips_nomips16_decl_p): Delete.
2223 (mips_get_compress_on_flags): New function.
2224 (mips_get_compress_off_flags): New function.
2225 (mips_get_compress_mode): New function.
2226 (mips_get_compress_on_name): New function.
2227 (mips_get_compress_off_name): New function.
2228 (mips_insert_attributes): Support multiple compression types.
2229 (mips_merge_decl_attributes): Likewise.
2230 (umips_12bit_offset_address_p): New function.
2231 (mips_start_function_definition): Emit .set micromips directive.
2232 (mips_call_may_need_jalx_p): New function.
2233 (mips_function_ok_for_sibcall): Add microMIPS support.
2234 (mips_print_operand_punctuation): Support short delay slots and
2236 (umips_swm_mask, umips_swm_encoding): New.
2237 (umips_build_save_restore): New function.
2238 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2239 (was_mips16_p): Remove.
2240 (old_compression_mode): New.
2241 (mips_set_compression_mode): New function.
2242 (mips_set_current_function): Add microMIPS support.
2243 (mips_option_override): Likewise.
2244 (umips_save_restore_pattern_p): New function.
2245 (umips_output_save_restore): New function.
2246 (umips_load_store_pair_p_1): New function.
2247 (umips_load_store_pair_p): New function.
2248 (umips_output_load_store_pair_1): New function.
2249 (umips_output_load_store_pair): New function.
2250 (umips_movep_target_p) New function.
2251 (mips_prepare_pch_save): Add microMIPS support.
2252 * config/mips/mips.h (TARGET_COMPRESSION): New.
2253 (TARGET_CPU_CPP_BUILTINS): Update macro
2254 to use new compression flags and to support microMIPS.
2255 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2256 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2257 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2258 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2259 (ASM_SPEC): Support mmicromips and mno-micromips.
2260 (M16STORE_REG_P): New macro.
2261 (MIPS_CALL): Support TARGET_MICROMIPS.
2262 (MICROMIPS_J): New macro.
2263 (mips_base_mips16): Rename this...
2264 (mips_base_compression_flags): ...to this.
2265 (UMIPS_12BIT_OFFSET_P): New macro.
2266 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2267 (MULTILIB_DIRNAMES): Likewise.
2269 2013-02-25 Tom de Vries <tom@codesourcery.com>
2271 PR rtl-optimization/56131
2272 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2273 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2274 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2276 2013-02-25 Tobias Burnus <burnus@net-b.de>
2278 * doc/invoke.texi (-fsanitize=): Move from optimization
2279 to debugging options.
2281 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2283 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2285 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2286 Alexander Monakov <amonakov@ispras.ru>
2289 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2290 flush pending lists also on non-jumps. Adjust comment.
2292 2013-02-24 Catherine Moore <clm@codesourcery.com>
2293 Maciej W. Rozycki <macro@codesourcery.com>
2294 Tom de Vries <tom@codesourcery.com>
2295 Nathan Sidwell <nathan@codesourcery.com>
2296 Iain Sandoe <iain@codesourcery.com>
2297 Nathan Froyd <froydnj@codesourcery.com>
2298 Chao-ying Fu <fu@mips.com>
2300 * doc/extend.texi: (micromips, nomicromips, nocompression):
2301 Document new function attributes.
2302 * doc/invoke.texi (minterlink-compressed, mmicromips,
2303 m14k, m14ke, m14kec): Document new options.
2304 (minterlink-mips16): Update documentation.
2305 * doc/md.texi (ZC, ZD): Document new constraints.
2306 * configure.ac (gcc_cv_as_micromips): Check if linker
2307 supports the .set micromips directive.
2308 * configure: Regenerate.
2309 * config.in: Regenerate.
2310 * config/mips/mips-tables.opt: Regenerate.
2311 * config/mips/micromips.md: New file.
2312 * constraints.md (ZC, AD): New constraints.
2313 * config/mips/predicates.md (movep_src_register): New predicate.
2314 (movep_src_operand): New predicate.
2315 (non_volatile_mem_operand): New predicate.
2316 * config/mips/mips.md (multimem): New type.
2317 (length): Differentiate between 17-bit and 18-bit branch offsets.
2318 (MOVEP1, MOVEP2): New mode iterator.
2319 (mov_<load>l): Use ZC constraint.
2320 (mov_<load>r): Likewise.
2321 (mov_<store>l): Likewise.
2322 (mov_<store>r): Likewise.
2323 (*branch_equality<mode>_inverted): Add microMIPS support.
2324 (*branch_equality<mode>): Likewise.
2325 (*jump_absolute): Likewise.
2326 (indirect_jump_<mode>): Likewise.
2327 (tablejump_<mode>): Likewise.
2328 (<optab>_internal): Likewise.
2329 (sibcall_internal): Likewise.
2330 (sibcall_value_internal): Likewise.
2331 (prefetch): Use constraint ZD.
2332 * config/mips/mips.opt (minterlink-compressed): New option.
2333 (minterlink-mips16): Now an alias for minterlink-compressed.
2334 (mmicromips): New option.
2335 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2336 (compare_and_swap_12): Likewise.
2337 (sync_add<mode>): Likewise.
2338 (sync_<optab>_12): Likewise.
2339 (sync_old_<optab>_12): Likewise.
2340 (sync_new_<optab>_12): Likewise.
2341 (sync_nand_12): Likewise.
2342 (sync_old_nand_12): Likewise.
2343 (sync_new_nand_12): Likewise.
2344 (sync_sub<mode>): Likewise.
2345 (sync_old_add<mode>): Likewise.
2346 (sync_old_sub<mode>): Likewise.
2347 (sync_new_add<mode>): Likewise.
2348 (sync_new_sub<mode>): Likewise.
2349 (sync_<optab><mode>): Likewise.
2350 (sync_old_<optab><mode>): Likewise.
2351 (sync_new_<optab><mode>): Likewise.
2352 (sync_nand<mode>): Likewise.
2353 (sync_old_nand<mode>): Likewise.
2354 (sync_new_nand<mode>): Likewise.
2355 (sync_lock_test_and_set<mode>): Likewise.
2356 (test_and_set_12): Likewise.
2357 (atomic_compare_and_swap<mode>): Likewise.
2358 (atomic_exchange<mode>_llsc): Likewise.
2359 (atomic_fetch_add<mode>_llsc): Likewise.
2360 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2361 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2362 (umips_save_restore_pattern_p): Likewise.
2363 (umips_load_store_pair_p): Likewise.
2364 (umips_output_load_store_pair): Likewise.
2365 (umips_movep_target_p): Likewise.
2366 (umips_12bit_offset_address_p): Likewise.
2367 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2368 (mips_base_mips16): Rename this...
2369 (mips_base_compression_flags): ...to this. Update all uses.
2370 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2371 (mips_mips16_decl_p): Delete.
2372 (mips_nomips16_decl_p): Delete.
2373 (mips_get_compress_on_flags): New function.
2374 (mips_get_compress_off_flags): New function.
2375 (mips_get_compress_mode): New function.
2376 (mips_get_compress_on_name): New function.
2377 (mips_get_compress_off_name): New function.
2378 (mips_insert_attributes): Support multiple compression types.
2379 (mips_merge_decl_attributes): Likewise.
2380 (umips_12bit_offset_address_p): New function.
2381 (mips_start_function_definition): Emit .set micromips directive.
2382 (mips_call_may_need_jalx_p): New function.
2383 (mips_function_ok_for_sibcall): Add microMIPS support.
2384 (mips_print_operand_punctuation): Support short delay slots and
2386 (umips_swm_mask, umips_swm_encoding): New.
2387 (umips_build_save_restore): New function.
2388 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2389 (was_mips16_p): Remove.
2390 (old_compression_mode): New.
2391 (mips_set_compression_mode): New function.
2392 (mips_set_current_function): Add microMIPS support.
2393 (mips_option_override): Likewise.
2394 (umips_save_restore_pattern_p): New function.
2395 (umips_output_save_restore): New function.
2396 (umips_load_store_pair_p_1): New function.
2397 (umips_load_store_pair_p): New function.
2398 (umips_output_load_store_pair_1): New function.
2399 (umips_output_load_store_pair): New function.
2400 (umips_movep_target_p) New function.
2401 (mips_prepare_pch_save): Add microMIPS support.
2402 * config/mips/mips.h (TARGET_COMPRESSION): New.
2403 (TARGET_CPU_CPP_BUILTINS): Update macro
2404 to use new compression flags and to support microMIPS.
2405 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2406 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2407 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2408 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2409 (ASM_SPEC): Support mmicromips and mno-micromips.
2410 (M16STORE_REG_P): New macro.
2411 (MIPS_CALL): Support TARGET_MICROMIPS.
2412 (MICROMIPS_J): New macro.
2413 (mips_base_mips16): Rename this...
2414 (mips_base_compression_flags): ...to this.
2415 (UMIPS_12BIT_OFFSET_P): New macro.
2416 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2417 (MULTILIB_DIRNAMES): Likewise.
2419 2013-02-24 Jakub Jelinek <jakub@redhat.com>
2422 * target-globals.c (save_target_globals): For init_reg_sets and
2423 target_reinit remporarily set this_fn_optabs to this_target_optabs.
2425 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
2427 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
2428 * config/aarch64/t-aarch64
2429 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
2431 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
2434 * lra-constraints.c (process_alt_operands): Reload operand
2435 conflicting with earlier clobber only if no more other conflicting
2438 2013-02-22 Jakub Jelinek <jakub@redhat.com>
2441 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
2442 if not linking a shared library.
2444 2013-02-22 Seth LaForge <sethml@google.com>
2446 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
2448 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
2450 * config/arm/arm.md (split for extendsidi): Update condition.
2451 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
2452 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
2453 (qhs_zextenddi_cstr): Likewise.
2455 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2458 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
2459 avoid signed wrapping.
2460 (expand_mult): Handle properly multiplication by
2461 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
2462 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
2463 in the compiler if coeff is HOST_WIDE_INT_MIN.
2464 (expand_divmod): Don't make ext_op1 static, change it's type to
2465 uhwi. Avoid undefined behavior in -INTVAL (op1).
2467 PR rtl-optimization/50339
2468 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
2470 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
2471 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
2472 into splitting_ashiftrt field.
2473 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
2475 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
2478 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
2481 * trans-mem.c (execute_tm_mark): Do not expand transactions that
2482 are sure to go irrevocable.
2484 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
2486 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
2487 scalars are valid operands.
2489 2013-02-21 Martin Jambor <mjambor@suse.cz>
2491 PR tree-optimization/56310
2492 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
2493 only matching indices and non-negative final offsets.
2494 (intersect_aggregates_with_edge): Pass src_idx to
2495 agg_replacements_to_vector. Pass src_idx insstead of index to
2496 intersect_with_agg_replacements.
2498 2013-02-21 Martin Jambor <mjambor@suse.cz>
2500 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
2501 instead of hard-wired defaults.
2503 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
2505 * doc/invoke.texi (MIPS Options): Update documentation of the
2506 floating-point multiply-accumulate instruction restrictions.
2508 2013-02-21 Kostya Serebryany <kcc@google.com>
2510 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
2511 asan_shadow_offset on x86_64 linux.
2513 2013-02-21 Richard Biener <rguenther@suse.de>
2515 PR tree-optimization/56415
2517 2013-02-11 Richard Biener <rguenther@suse.de>
2519 PR tree-optimization/56273
2520 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2523 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2526 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
2530 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
2531 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
2533 2013-02-20 Jan Hubicka <jh@suse.cz>
2535 PR tree-optimization/56265
2536 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
2537 when target is referenced for first time.
2539 2013-02-20 Richard Biener <rguenther@suse.de>
2541 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
2542 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2543 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2544 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
2545 not return anything.
2546 (rename_ssa_copies): Do not remove unused locals.
2547 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
2548 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
2549 * passes.c (execute_function_todo): Do not schedule unused locals
2550 removal if cleanup_tree_cfg did something.
2551 * tree-ssa-live.c (remove_unused_locals): Dump statistics
2552 about the number of removed locals.
2554 2013-02-20 Richard Biener <rguenther@suse.de>
2556 PR tree-optimization/56398
2557 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
2559 2013-02-20 Martin Jambor <mjambor@suse.cz>
2561 PR tree-optimization/55334
2562 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
2563 restricted pointers to arrays.
2565 2013-02-20 Richard Biener <rguenther@suse.de>
2566 Jakub Jelinek <jakub@redhat.com>
2568 PR tree-optimization/56396
2569 * tree-ssa-ccp.c (n_const_val): New static variable.
2570 (get_value): Return NULL for SSA names we don't have a lattice
2572 (ccp_initialize): Initialize n_const_val.
2573 * tree-ssa-copy.c (n_copy_of): New static variable.
2574 (init_copy_prop): Initialize n_copy_of.
2575 (get_value): Return NULL_TREE for SSA names we don't have a
2578 2013-02-20 Martin Jambor <mjambor@suse.cz>
2580 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
2582 2013-02-20 Richard Biener <rguenther@suse.de>
2584 * genpreds.c (write_lookup_constraint): Do not compare first
2585 letter of the constraint again.
2587 2013-02-20 Richard Biener <rguenther@suse.de>
2589 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
2591 (get_use_iv_cost): Terminate hashtable walk when coming across
2594 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
2596 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
2597 reassociation for avx2 targets.
2599 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2601 * config/microblaze/microblaze.c: microblaze_has_clz = 0
2602 Add version check for v8.10.a to enable microblaze_has_clz
2603 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
2604 version and TARGET_PATTERN_COMPARE check
2605 * config/microblaze/microblaze.md: New clzsi2 instruction
2607 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2609 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
2610 function before branching.
2612 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2614 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
2616 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
2618 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2621 * sel-sched.c: Include ira.h.
2622 (implicit_clobber_conflict_p): New function.
2623 (moveup_expr): Use it.
2624 * Makefile.in (sel-sched.o): Depend on ira.h.
2626 2013-02-19 Richard Biener <rguenther@suse.de>
2628 PR tree-optimization/56384
2629 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
2630 (vn_hash_type): Split out from ...
2631 (vn_hash_constant_with_type): ... here.
2632 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
2633 (vn_phi_eq): Compare types from vn_phi_s structure.
2634 (vn_phi_lookup): Populate vn_phi_s type.
2635 (vn_phi_insert): Likewise.
2637 2013-02-19 Jakub Jelinek <jakub@redhat.com>
2639 PR tree-optimization/56350
2640 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
2641 if haven't found reduction or nested cycle operand, rather than
2642 asserting we must find it.
2644 PR tree-optimization/56381
2645 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
2648 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2649 Jakub Jelinek <jakub@redhat.com>
2652 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
2653 (swap_optab_enable): Same.
2654 (init_all_optabs): Use argument instead of global.
2655 * tree.h (struct tree_optimization_option): New field target_optabs.
2656 * expr.h (init_all_optabs): Add argument to prototype.
2657 (TREE_OPTIMIZATION_OPTABS): New.
2658 (save_optabs_if_changed): Protoize.
2659 * optabs.h: Declare this_fn_optabs.
2660 * optabs.c (save_optabs_if_changed): New.
2661 Declare this_fn_optabs.
2662 (init_optabs): Add argument to init_all_optabs() call.
2663 * function.c (invoke_set_current_function_hook): Handle per
2665 * function.h (struct function): New field optabs.
2666 * config/mips/mips.c (mips_set_mips16_mode): Handle when
2667 optimization_current_node has changed.
2668 * target-globals.h (save_target_globals_default_opts): Protoize.
2669 * target-globals.c (save_target_globals_default_opts): New.
2671 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2674 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
2675 registers %fr12 and %fr12R as call used.
2678 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
2679 and HImode, require all displacements to be an integer multiple of
2681 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
2682 only allow QImode and HImode when reload is in progress and strict is
2683 true. Likewise for symbolic addresses. Use base14_operand to check
2684 displacements in REG+BASE addresses.
2686 2013-02-18 Richard Biener <rguenther@suse.de>
2688 PR tree-optimization/56366
2689 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2690 handle sign-conversion of outer-loop initial induction value.
2692 2013-02-18 Richard Biener <rguenther@suse.de>
2695 * cfghooks.c (merge_blocks): If we merge a latch into another
2696 block adjust references to it.
2697 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
2698 (verify_loop_structure): Verify that a recorded latch is in fact
2701 2013-02-18 Richard Biener <rguenther@suse.de>
2703 PR tree-optimization/56321
2704 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
2705 order SSA name release and virtual operand unlinking.
2707 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2709 * config/microblaze/microblaze.md (save_stack_block): Define.
2710 (restore_stack_block): Likewise.
2712 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2714 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
2715 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
2716 * config/microblaze/microblaze.c (microblaze_option_override):
2717 Bail out early for PIC modes when target does not support PIC.
2719 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2721 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
2722 Replace with a microblaze version.
2723 (microblaze_trampoline_init): Adapt for microblaze.
2724 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
2727 2013-02-16 Jakub Jelinek <jakub@redhat.com>
2728 Dodji Seketeli <dodji@redhat.com>
2731 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
2732 (instrument_mem_region_access): Do not forget to always put
2733 instrumentation of the of 'base' and 'base + len' in a "if (len !=
2734 0) statement, even for cases where either 'base' or 'base + len'
2735 are not instrumented -- because they have been previously
2736 instrumented. Simplify the logic by putting all the statements
2737 instrument 'base + len' inside a sequence, and then insert that
2738 sequence right before the current insertion point. Then, to
2739 instrument 'base + len', just get an iterator on that statement.
2740 And do not forget to update the pointer to iterator the function
2741 received as argument.
2743 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
2745 PR rtl-optimization/56348
2746 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
2748 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
2750 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
2751 (clean_graph_dump_file): Pass base to start_graph_dump.
2753 2013-02-14 Richard Henderson <rth@redhat.com>
2756 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
2758 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
2760 * collect2-aix.h: Define F_LOADONLY.
2762 2013-02-14 Richard Biener <rguenther@suse.de>
2765 * varasm.c (output_constant_def_1): Get the decl representing
2766 the constant as argument.
2767 (output_constant_def): Wrap output_constant_def_1.
2768 (make_decl_rtl): Use output_constant_def_1 with the decl
2769 representing the constant.
2770 (build_constant_desc): Optionally re-use a decl already
2771 representing the constant.
2772 (tree_output_constant_def): Adjust.
2774 2013-02-14 Dodji Seketeli <dodji@redhat.com>
2777 * asan.c (instrument_builtin_call): Really put the length of the
2778 second source argument into src1_len.
2780 2013-02-13 Jakub Jelinek <jakub@redhat.com>
2782 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
2783 argument. If it is false, don't create edge from then_bb to
2785 (insert_if_then_before_iter): Pass true to it.
2786 (build_check_stmt): Pass false to it.
2787 (transform_statements): Flush hash table only on extended basic
2788 block boundaries, rather than at the beginning of every bb.
2789 Don't flush hash table on nonfreeing_call_p calls.
2790 * tree-flow.h (nonfreeing_call_p): New prototype.
2791 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
2793 2013-02-13 David S. Miller <davem@davemloft.net>
2795 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
2797 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
2800 * ira.c (max_regno_before_ira): Move from ...
2802 (fix_reg_equiv_init): Use max_regno_before_ira instead of
2805 2013-02-13 Jakub Jelinek <jakub@redhat.com>
2807 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
2809 2013-02-13 Richard Biener <rguenther@suse.de>
2812 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
2813 globals in MEM_REFs.
2815 2013-02-13 Richard Biener <rguenther@suse.de>
2817 * loop-init.c (loop_optimizer_init): Clear loop state when
2818 re-initializing preserved loops.
2819 * loop-unswitch.c (unswitch_single_loop): Return whether
2820 we unswitched the loop. Do not verify loop state here.
2821 (unswitch_loops): When we unswitched a loop discover new loops.
2823 2013-02-13 Kostya Serebryany <kcc@google.com>
2825 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
2827 * sanitizer.def: Rename __asan_init to __asan_init_v1.
2829 2013-02-12 Dodji Seketeli <dodji@redhat.com>
2831 Avoid instrumenting duplicated memory access in the same basic block
2832 * Makefile.in (asan.o): Add new dependency on hash-table.h
2833 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
2834 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
2835 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
2836 (free_mem_ref_resources, has_mem_ref_been_instrumented)
2837 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
2838 (get_mem_ref_of_assignment): New functions.
2839 (get_mem_refs_of_builtin_call): Extract from
2840 instrument_builtin_call and tweak a little bit to make it fit with
2842 (instrument_builtin_call): Use the new
2843 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
2844 of is_gimple_builtin_call.
2845 (instrument_derefs, instrument_mem_region_access): Insert the
2846 instrumented memory reference into the hash table.
2847 (maybe_instrument_assignment): Renamed instrument_assignment into
2848 this, and change it to advance the iterator when instrumentation
2849 actually happened and return true in that case. This makes it
2850 homogeneous with maybe_instrument_assignment, and thus give a
2851 chance to callers to be more 'regular'.
2852 (transform_statements): Clear the memory reference hash table
2853 whenever we enter a new BB, when we cross a function call, or when
2854 we are done transforming statements. Use
2855 maybe_instrument_assignment instead of instrumentation. No more
2856 need to special case maybe_instrument_assignment and advance the
2857 iterator after calling it; it's now handled just like
2858 maybe_instrument_call. Update comment.
2860 2013-02-13 Richard Biener <rguenther@suse.de>
2862 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
2863 Fix loop discovery code.
2865 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
2868 * lra-constraints.c (process_alt_operands): Match early clobber
2869 operand with itself. Check conflicts with earlyclobber only if
2870 the operand is not reloaded. Prefer to reload conflicting operand
2871 if earlyclobber and matching operands are the same.
2873 2013-02-12 Richard Biener <rguenther@suse.de>
2876 * lto-streamer-out.c (write_symbol): Do not output symbols
2877 for hard register variables.
2879 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
2882 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
2883 (umulsidi3_insn, mulsidi3_insn): New insns.
2885 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2887 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
2888 (struct tune_params): Add vec_costs field.
2889 * config/arm/arm.c (arm_builtin_vectorization_cost)
2890 (arm_add_stmt_cost): New functions.
2891 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
2892 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
2893 (arm_default_vec_cost): New struct of type cpu_vec_costs.
2894 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
2895 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
2896 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
2897 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
2899 2013-02-12 Richard Biener <rguenther@suse.de>
2902 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
2903 decls again if possible.
2905 2013-02-12 Richard Biener <rguenther@suse.de>
2908 * tree-ssa.c (verify_ssa_name): Fix check, move
2909 SSA_NAME_IN_FREE_LIST check up.
2911 2013-02-12 Jakub Jelinek <jakub@redhat.com>
2912 Steven Bosscher <steven@gcc.gnu.org>
2914 PR rtl-optimization/56151
2915 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
2916 equal to op0 or op1, and last_insn pattern is CODE operation
2917 with MEM dest and one of the operands matches that MEM.
2919 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
2921 * doc/extend.texi: Document Function Multiversioning and "default"
2922 parameter string to target attribute.
2923 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
2924 target attribute parameter is "default".
2925 (ix86_compare_version_priority): Remove checks for target attribute.
2926 (ix86_mangle_function_version_assembler_name): Change error to sorry.
2927 Remove check for target attribute equal to NULL. Add assert.
2928 (ix86_generate_version_dispatcher_body): Change error to sorry.
2930 2013-02-11 Iain Sandoe <iain@codesourcery.com>
2931 Jack Howarth <howarth@bromo.med.uc.edu>
2932 Patrick Marlier <patrick.marlier@gmail.com>
2935 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
2936 define ENDFILE_SPEC as TM_DESTRUCTOR.
2937 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
2939 2013-02-11 Alexander Potapenko <glider@google.com>
2940 Jack Howarth <howarth@bromo.med.uc.edu>
2941 Jakub Jelinek <jakub@redhat.com>
2944 * config/darwin.c (cdtor_record): Rename ctor_record.
2945 (sort_cdtor_records): Rename sort_ctor_records.
2946 (finalize_dtors): New routine to sort destructors by
2947 priority before use in assemble_integer.
2948 (machopic_asm_out_destructor): Use finalize_dtors if needed.
2950 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
2952 PR rtl-optimization/56275
2953 * simplify-rtx.c (avoid_constant_pool_reference): Check that
2954 offset is non-negative and less than cmode size before
2955 calling simplify_subreg.
2957 2013-02-11 Richard Biener <rguenther@suse.de>
2959 PR tree-optimization/56264
2960 * cfgloop.h (fix_loop_structure): Adjust prototype.
2961 * loop-init.c (fix_loop_structure): Return the number of
2962 newly discovered loops.
2963 * tree-cfgcleanup.c (repair_loop_structures): When new loops
2964 are discovered, do a full loop-closed SSA rewrite.
2966 2013-02-11 Richard Biener <rguenther@suse.de>
2968 PR tree-optimization/56273
2969 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2971 (check_array_ref): Fix missing newline in dumps.
2972 (search_for_addr_array): Likewise.
2974 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
2976 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
2978 2013-02-09 Jakub Jelinek <jakub@redhat.com>
2981 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
2983 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
2985 PR rtl-optimization/56246
2986 * lra-constraints.c (simplify_operand_subreg): Try to reuse
2988 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
2989 constraints are satisfied.
2991 2013-02-08 Jeff Law <law@redhat.com>
2994 * emit-rtl.c (reg_is_parm_p): New function.
2995 * regs.h (reg_is_parm_p): New prototype.
2996 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
2997 callee-clobbered registers.
2999 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3002 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3003 If there is no implicit builtin declaration, just return NULL.
3005 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3007 * config/i386/sse.md (FMAMODEM): New mode iterator.
3008 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3009 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3011 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3013 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3014 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3015 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3017 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3019 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3020 (microblaze*-*-elf): Likewise.
3021 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3023 * config/microblaze/microblaze-c.c: Add builtin defines for
3024 _LITTLE_ENDIAN and _BIG_ENDIAN.
3025 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3026 add to TARGET_DEFAULT flags.
3027 Expand ASM_SPEC and LINK_SPEC.
3028 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3029 * config/microblaze/microblaze.md: Update extendsidi2 and
3030 movdi_internal instructions to use low-order / high-order reg
3032 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3033 options and inversemask / mask of LITTLE_ENDIAN.
3034 * config/microblaze/t-microblaze: Expand multilib options to
3035 include mlittle-endian (le) and update exceptions patterns.
3037 2013-02-08 Jakub Jelinek <jakub@redhat.com>
3039 PR rtl-optimization/56195
3040 * lra-constraints.c (get_reload_reg): Don't reuse regs
3041 if they have smaller mode than requested, if they have
3042 wider mode than requested, try to return a SUBREG.
3044 PR tree-optimization/56250
3045 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3046 if type is unsigned and code isn't MULT_EXPR.
3048 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3050 PR tree-optimization/56064
3051 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3052 bits according to mode.
3053 * fixed-value.h (fixed_from_double_int)
3054 (const_fixed_from_double_int): Adjust comments.
3056 2013-02-08 Richard Biener <rguenther@suse.de>
3059 * lto-streamer.h (struct data_in): Remove current_file, current_line
3060 and current_col members.
3061 * lto-streamer-out.c (lto_output_location): Stream changed bits
3062 en-block for efficiency.
3063 * lto-streamer-in.c (clear_line_info): Remove.
3064 (lto_input_location): Cache current file, line and column
3065 globally via local statics. Read changed bits en-block.
3066 (input_function): Do not call clear_line_info.
3067 (lto_read_body): Likewise.
3068 (lto_input_toplevel_asms): Likewise.
3070 2013-02-08 Michael Matz <matz@suse.de>
3072 PR tree-optimization/52448
3073 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3074 (nt_call_phase): New static.
3075 (add_or_mark_expr): Only mark accesses with newer phase than any
3077 (nonfreeing_call_p): New.
3078 (nt_init_block): Update nt_call_phase, mark blocks as visited.
3079 (nt_fini_block): Keep blocks marked as visited.
3080 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3082 2013-02-08 Richard Biener <rguenther@suse.de>
3084 * ira.c (ira): Free broken dominator information.
3086 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3088 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3090 2013-02-08 Marek Polacek <polacek@redhat.com>
3092 * cfgloop.c (verify_loop_structure): Add more checking of headers.
3094 2013-02-08 Richard Biener <rguenther@suse.de>
3097 * cfgloop.h (flow_loops_find): Adjust.
3098 (bb_loop_header_p): Declare.
3099 * cfgloop.c (bb_loop_header_p): New function split out from ...
3100 (flow_loops_find): ... here. Adjust function signature,
3101 support incremental loop structure update.
3102 (verify_loop_structure): Cleanup. Verify a loop is a loop.
3103 * cfgloopmanip.c (fix_loop_structure): Move ...
3104 * loop-init.c (fix_loop_structure): ... here.
3105 (apply_loop_flags): Split out from ...
3106 (loop_optimizer_init): ... here.
3107 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
3108 in incremental mode, only remove dead loops here.
3110 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3113 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3114 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3115 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3116 (*round<mode>3.libgcc): New insns for fixed-modes.
3117 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3118 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3119 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3120 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3121 implementations. Define to __builtin_avr_absFX,
3122 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3123 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3124 __builtin_avr_countlsFX, respectively.
3125 * config/avr/avr-c.c (target.h): Include it.
3126 (enum avr_builtin_id): New enum.
3127 (avr_resolve_overloaded_builtin): New static function.
3128 (avr_register_target_pragmas): Use it to set
3129 targetm.resolve_overloaded_builtin.
3130 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3131 tree nodes used by DEF_BUILTIN.
3132 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3133 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3134 <AVR_BUILTIN_xxBITS>: Same.
3136 2013-02-08 Richard Biener <rguenther@suse.de>
3138 * cfgloop.c (verify_loop_structure): Properly handle
3139 a loop exiting to another loop header.
3140 * ira-int.h (ira_loops): Remove.
3141 * ira.c (ira_loops): Remove.
3142 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3143 (do_reload): Use loop_optimizer_finalize.
3144 * ira-build.c (create_loop_tree_nodes): Use get_loops and
3145 number_of_loops to access the loop tree.
3146 (more_one_region_p): Likewise.
3147 (finish_loop_tree_nodes): Likewise.
3148 (rebuild_regno_allocno_maps): Likewise.
3149 (mark_loops_for_removal): Likewise.
3150 (mark_all_loops_for_removal): Likewise.
3151 (remove_unnecessary_regions): Likewise.
3152 (ira_build): Likewise.
3153 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3155 2013-02-08 Richard Biener <rguenther@suse.de>
3157 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3158 * ipa-pure-const.c (analyze_function): Avoid calling
3159 mark_irreducible_loops twice.
3160 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
3162 2013-02-07 David S. Miller <davem@davemloft.net>
3164 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3166 * var-tracking.c (vt_add_function_parameter): Test the presence of
3167 HAVE_window_save properly and do not remap argument registers when
3168 we have a leaf function.
3170 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
3173 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3175 * config/i386/i386.c (ix86_print_operand): Ditto.
3177 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3179 * lra-constraints.c (process_alt_operands): Fix recently added comment.
3181 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3183 PR rtl-optimization/56225
3184 * lra-constraints.c (process_alt_operands): Check that reload hard
3185 reg can hold value for strict_low_part.
3187 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3190 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3191 dwarf2out_end_function.
3192 (in_first_function_p, maybe_at_text_label_p,
3193 first_loclabel_num_not_at_text_label): New variables.
3194 (dwarf2out_var_location): In the first function find out
3195 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
3196 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3199 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
3201 PR rtl-optimization/56178
3202 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3203 SUBREG of a register. Tidy up related block of code.
3204 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3205 note if the source is a register or a SUBREG of a register.
3207 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3210 * config/rs6000/rs6000.md (ptrm): New mode attr.
3211 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3212 call_value_indirect_aix<pttrsize>,
3213 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3216 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3218 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3219 if -bnortl. Convert to strcmp and strncmp.
3221 2013-02-07 Alan Modra <amodra@gmail.com>
3224 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3225 addresses won't wrap when offsetting.
3226 (rs6000_secondary_reload): Provide secondary reloads needed for
3227 wrapping LO_SUM addresses.
3229 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
3231 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3232 MACH, just __MACH__.
3234 2013-02-06 Richard Biener <rguenther@suse.de>
3236 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3237 instead of calling fix_loop_structure.
3239 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3242 * omp-low.c (use_pointer_for_field): Return false if
3243 lower_send_shared_vars doesn't generate any copy-out code.
3245 2013-02-06 Tom de Vries <tom@codesourcery.com>
3247 PR rtl-optimization/56131
3248 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3249 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
3250 of the label is NULL. Add comment.
3252 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3254 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3257 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3258 (STATIC_LIBTSAN_LIBS): Likewise.
3259 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3260 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3261 is defined, don't add anything else beyond that.
3262 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3263 (LINK_COMMAND_SPEC): Use them.
3265 PR tree-optimization/56205
3266 * tree-stdarg.c (check_all_va_list_escapes): Return true if
3267 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3268 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3270 2013-02-05 Richard Biener <rguenther@suse.de>
3272 PR tree-optimization/53342
3273 PR tree-optimization/53185
3274 * tree-vectorizer.h (vect_check_strided_load): Remove.
3275 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3276 not disallow peeling for vectorized strided loads.
3277 (vect_check_strided_load): Make static and simplify.
3278 (vect_analyze_data_refs): Adjust.
3279 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3280 correctly when vectorizing strided loads.
3282 2013-02-05 Richard Biener <rguenther@suse.de>
3284 * doc/install.texi: Refer to ISL, not PPL.
3286 2013-02-05 Jan Hubicka <jh@suse.cz>
3288 PR tree-optimization/55789
3289 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3291 2013-02-05 Jan Hubicka <jh@suse.cz>
3293 PR tree-optimization/55789
3294 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3295 the dead call anyway.
3297 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
3300 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3302 2013-02-04 Alexander Potapenko <glider@google.com>
3303 Jack Howarth <howarth@bromo.med.uc.edu>
3304 Jakub Jelinek <jakub@redhat.com>
3307 * config/darwin.c (sort_ctor_records): Stabilized qsort
3308 on constructor priority by using original position.
3309 (finalize_ctors): New routine to sort constructors by
3310 priority before use in assemble_integer.
3311 (machopic_asm_out_constructor): Use finalize_ctors if needed.
3313 2013-02-04 Jakub Jelinek <jakub@redhat.com>
3316 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3317 about visibility on artificial decls.
3318 * config/sol2.c (solaris_assemble_visibility): Likewise.
3320 2013-02-04 Kai Tietz <ktietz@redhat.com>
3323 * config/i386/i386.c (function_value_ms_64): Add additional valtype
3324 argument and improve checking of return-argument types for 16-byte
3326 (ix86_function_value_1): Add additional valtype argument on call
3327 of function_value_64.
3328 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
3329 handling infunction_value_64 function.
3331 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3333 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
3335 2013-02-04 Richard Biener <rguenther@suse.de>
3337 PR tree-optimization/56188
3338 * tree-ssa-structalias.c (label_visit): Consider case with
3339 initially non-empty points-to set.
3340 (perform_var_substitution): Dump node mapping and clean up.
3342 2013-02-04 Richard Guenther <rguenther@suse.de>
3345 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
3346 node prevail as last resort.
3347 (lto_symtab_merge_decls): Remove guard on LTRANS here.
3348 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
3350 2013-02-04 Richard Biener <rguenther@suse.de>
3352 PR tree-optimization/56113
3353 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
3355 (equiv_class_lookup_or_add): ... this.
3356 (label_visit): Adjust and fix error in previous patch.
3357 (perform_var_substitution): Adjust.
3359 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
3361 * config/sh/divtab.c: Fix formatting and comments throughout the file.
3362 * config/sh/sh4-300.md: Likewise.
3363 * config/sh/sh4a.md: Likewise.
3364 * config/sh/constraints.md: Likewise.
3365 * config/sh/sh.md: Likewise.
3366 * config/sh/netbsd-elf.h: Likewise.
3367 * config/sh/predicates.md: Likewise.
3368 * config/sh/sh-protos.h: Likewise.
3369 * config/sh/ushmedia.h: Likewise.
3370 * config/sh/linux.h: Likewise.
3371 * config/sh/sh.c: Likewise.
3372 * config/sh/superh.h: Likewise.
3373 * config/sh/elf.h: Likewise.
3374 * config/sh/sh4.md: Likewise.
3375 * config/sh/sh.h: Likewise.
3377 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3379 * config/pa/constraints.md: Adjust unused letters. Change "T"
3380 constraint to match_test floating_point_store_memory_operand().
3381 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
3382 (base14_operand): New.
3383 (floating_point_store_memory_operand): New.
3384 (integer_store_memory_operand): Revise to use base14_operand and
3385 reg_plus_base_memory_operand.
3386 (move_dest_operand): Allow symbolic_memory_operands.
3387 (symbolic_memory_operand): Check for LO_SOM.
3388 (symbolic_operand): Change default case to break.
3389 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
3390 CONST_DOUBLE values to be reloaded by putting them into memory when
3391 the destination is a floating point register.
3392 (movdf): Remove code to handle CONST_DOUBLE.
3394 (reload_indf_r1): New.
3395 (reload_insf_r1): New.
3396 Consistently use "Q" and "T" constraints with integer and floating
3397 point move instructions, respectively.
3398 (movdi): Remove FAIL.
3399 Change predicate for source operand unamed DImode move from
3400 general_operand to move_src_operand.
3401 (umulsidi3): Change predicate for destination operand to
3403 Likewise for similar unamed patterns.
3404 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
3405 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
3406 (hppa_legitimize_address): Simplify mask calculation.
3407 (pa_emit_move_sequence): Revised handling of secondary reloads from
3408 REG+D addresses for floating point loads and stores. Directly handle
3409 loading CONST0_RTX (mode) to a floating point register.
3410 (pa_secondary_reload): Handle reloading DF and SFmode constant values
3411 to floating point registers. Don't restrict secondary reloads to
3412 floating point registers to integer modes. Revise some comments and
3414 (TARGET_LEGITIMATE_ADDRESS_P): Define.
3415 (pa_legitimate_address_p): New.
3416 (pa_legitimize_reload_address): New.
3417 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
3418 (STRICT_REG_OK_FOR_BASE_P): New.
3419 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
3420 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
3422 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
3423 Andrew Dixie <andrewd@gentrack.com>
3425 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
3428 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
3430 * expmed.c (extract_bit_field_1): Pass the full width of the
3431 structure to get_best_reg_extraction_insn.
3433 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3436 * configure.ac (use_cxa_atexit): Add AIX.
3437 * configure: Regenerate.
3439 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
3441 2013-02-01 Jakub Jelinek <jakub@redhat.com>
3444 * final.c (need_profile_function): New variable.
3445 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
3446 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
3447 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
3448 notes, targetm.asm_out.function_prologue doesn't emit anything,
3449 HAVE_prologue and profiler should be emitted before prologue,
3450 set need_profile_function instead of emitting it.
3451 (final_scan_insn): If need_profile_function, emit
3452 profile_function on the first NOTE_INSN_BASIC_BLOCK or
3453 NOTE_INSN_FUNCTION_BEG note.
3455 2013-02-01 Richard Henderson <rth@redhat.com>
3457 * config/rs6000/rs6000.md (smulditi3): New.
3460 * config/alpha/alpha.md (umulditi3): New.
3462 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3464 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
3465 (ASM_OUTPUT_ALIGNED_LOCAL): New.
3467 2013-02-01 Richard Biener <rguenther@suse.de>
3469 PR tree-optimization/56113
3470 * tree-ssa-structalias.c (label_visit): Reduce work for
3471 single-predecessor nodes.
3473 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
3475 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
3476 range isn't testing for zero.
3478 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
3481 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
3483 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
3484 Nick Clifton <nickc@redhat.com>
3486 * config/v850/constraints.md (Q): Define as a memory constraint.
3487 * config/v850/predicates.md (label_ref_operand): New predicate.
3488 (e3v5_shift_operand): New predicate.
3489 (ior_operator): New predicate.
3490 * config/v850/t-v850: Add e3v5 multilib.
3491 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
3492 (v850_gen_movdi): Prototype.
3493 * config/v850/v850.c: Add support for e3v5 architecture.
3494 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
3496 (construct_save_jarl): Add e3v5 long JARL support.
3497 (v850_adjust_insn_length): New function. Adjust length of call
3498 insns when using e3v5 instructions.
3499 (v850_gen_movdi): New function: Generate instructions to move a
3501 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
3502 (CPP_SPEC): Define __v850e3v5__ as appropriate.
3503 (TARGET_USE_FPU): Enable for e3v5.
3504 (CONST_OK_FOR_W): New macro.
3505 (ADJUST_INSN_LENGTH): Define.
3506 * config/v850/v850.md (UNSPEC_LOOP): Define.
3507 (attr cpu): Add v850e3v5.
3508 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
3509 (movdi): New pattern.
3510 (movdi_internal): New pattern.
3511 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
3512 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
3513 (cstoresf4): Likewise.
3514 (cstoredf4): Likewise.
3515 (insv): New pattern.
3516 (rotlso3_a): New pattern.
3517 (rotlsi3_b): New pattern
3518 (rotlsi3_v850e3v5): New pattern.
3519 (doloop_begin): New pattern.
3520 (fix_loop_counter): New pattern.
3521 (doloop_end): New pattern.
3522 (branch_normal): Add e3v5 long branch support.
3523 (branch_invert): Likewise.
3524 (branch_z_normal): Likewise.
3525 (branch_z_invert): Likewise.
3526 (branch_nz_normal): Likewise.
3527 (branch_nz_invert): Likewise.
3528 (call_internal_short): Add e3v5 register-indirect JARL support.
3529 (call_internal_long): Likewise.
3530 (call_value_internal_short): Likewise.
3531 (call_value_internal_long): Likewise.
3532 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
3533 (mloop): New option.
3534 * config.gcc: Add support for configuring v840e3v5 target.
3535 * doc/invoke.texi: Document new v850 specific command line options.
3537 2013-01-31 Paul Koning <ni1d@arrl.net>
3541 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
3542 children if parent is a class.
3543 (prune_unused_types_prune): Don't add DW_AT_declaration.
3545 2013-01-31 Richard Biener <rguenther@suse.de>
3547 PR tree-optimization/56157
3548 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
3549 match up operand with SLP child.
3551 2013-01-31 Jason Merrill <jason@redhat.com>
3554 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
3555 parameters the first time.
3556 (gen_scheduled_generic_parms_dies): Check completeness here.
3558 2013-01-31 Richard Biener <rguenther@suse.de>
3561 * common.opt (faggressive-loop-optimizations): New flag,
3563 * doc/invoke.texi (faggressive-loop-optimizations): Document.
3564 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
3565 infer_loop_bounds_from_undefined by it.
3567 2013-01-31 Richard Biener <rguenther@suse.de>
3569 PR tree-optimization/56150
3570 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
3571 visit virtual operands.
3572 (find_uses_to_rename_bb): Likewise.
3574 2013-01-31 Richard Biener <rguenther@suse.de>
3576 PR tree-optimization/56150
3577 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
3578 mixed store non-store stmts.
3580 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3583 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
3584 LIBASAN_EARLY_SPEC is defined.
3585 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
3586 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
3588 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
3591 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
3592 invalid args instead of ICEing on it.
3593 (ix86_valid_target_attribute_tree): Return error_mark_node if
3594 ix86_valid_target_attribute_inner_p failed.
3595 (ix86_valid_target_attribute_p): Return false only if
3596 ix86_valid_target_attribute_tree returned error_mark_node. Allow
3597 target("default") attribute.
3598 (sorted_attr_string): Change argument from const char * to tree,
3599 merge in all target attribute arguments rather than just one.
3600 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
3601 instead of free. Avoid using strcat.
3602 (ix86_mangle_function_version_assembler_name): Mangle
3603 target("default") as if no target attribute is present. Adjust
3604 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
3605 instead of xmalloc and XDELETEVEC instead of free.
3606 (ix86_function_versions): Don't return true if one of the decls
3607 doesn't have target attribute. If they don't and one of the decls
3608 is DECL_FUNCTION_VERSIONED, report an error. Adjust
3609 sorted_attr_string caller. Use XDELETEVEC instead of free.
3610 (ix86_supports_function_versions): Remove.
3611 (make_name): Fix up formatting.
3612 (make_dispatcher_decl): Remove resolver_name and its initialization.
3613 Avoid leaking memory.
3614 (is_function_default_version): Return true if there is
3615 target("default") attribute rather than no target attribute at all.
3616 (make_resolver_func): Avoid leaking memory.
3617 (ix86_generate_version_dispatcher_body): Likewise.
3618 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
3619 * target.def (supports_function_versions): Remove.
3620 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
3621 * doc/tm.texi: Regenerated.
3623 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
3625 PR rtl-optimization/56144
3626 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
3627 for values with side effects.
3629 2013-01-30 Richard Biener <rguenther@suse.de>
3631 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
3632 (sparseset_pop): Likewise.
3633 * cfganal.c (compute_idf): Likewise. Increase work-stack size
3634 to be able to use quick_push in the worker loop.
3636 2013-01-30 Marek Polacek <polacek@redhat.com>
3638 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
3640 2013-01-30 Richard Biener <rguenther@suse.de>
3643 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
3645 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
3647 PR tree-optimization/56064
3648 * fixed-value.c (fixed_from_double_int): New function.
3649 * fixed-value.h (fixed_from_double_int): New prototype.
3650 (const_fixed_from_double_int): New static inline function.
3651 * fold-const.c (native_interpret_fixed): New static function.
3652 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
3653 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
3654 (native_encode_fixed): New static function.
3655 (native_encode_expr) <FIXED_CST>: Use it.
3656 (native_interpret_int): Move double_int worker code to...
3657 * double-int.c (double_int::from_buffer): ...this new static method.
3658 * double-int.h (double_int::from_buffer): Prototype it.
3660 2013-01-30 Richard Biener <rguenther@suse.de>
3662 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
3663 New pointer-map and obstack.
3664 (init_alias_vars): Allocate pointer-map and obstack.
3665 (delete_points_to_sets): Free them.
3666 (find_what_var_points_to): Cache result.
3667 (find_what_p_points_to): Adjust for changed interface of
3668 find_what_var_points_to.
3669 (compute_points_to_sets): Likewise.
3670 (ipa_pta_execute): Likewise.
3672 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3674 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
3675 * configure: Regenerate.
3676 * config.in: Regenerate.
3677 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
3678 #nobits/#progbits if supported.
3680 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
3683 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
3684 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
3685 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
3687 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3689 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
3690 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
3692 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3694 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
3695 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
3697 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3699 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
3701 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
3702 * config/arm/cortex-a7.md: New bypasses using
3703 arm_mac_accumulator_is_result.
3705 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3707 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
3708 (cortex_a7_neon_mla): Likewise.
3709 (cortex_a7_fpfmad): New reservation.
3710 (cortex_a7_fpmacs): Use ffmas and update required units.
3711 (cortex_a7_fpmuld): Update required units and latency.
3712 (cortex_a7_fpmacd): Likewise.
3713 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
3714 (cortex_a7_neon). Likewise.
3715 (bypass) Update participating units.
3717 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3719 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
3720 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
3722 * config/arm/vfp11.md (vfp_farith): Use ffmas.
3723 (vfp_fmul): Use ffmad.
3724 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
3725 (cortex_r4_fmacd): Use ffmad.
3726 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
3727 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
3728 (cortex_a9_fmacd): Use ffmad.
3729 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
3730 (cortex_a8_vfp_macd): Use ffmad.
3731 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
3732 (cortex_a5_fpmacd): Use ffmad.
3733 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
3734 (cortex_a15_vfp_macd): Use ffmad.
3735 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
3737 2013-01-29 Jason Merrill <jason@redhat.com>
3740 * varasm.c (default_assemble_visibility): Don't warn about
3741 visibility on artificial decls.
3743 2013-01-29 Richard Biener <rguenther@suse.de>
3745 PR tree-optimization/56113
3746 * tree-ssa-structalias.c (equiv_class_lookup): Also return
3748 (label_visit): Free duplicate bitmaps and record the leader instead.
3749 (perform_var_substitution): Adjust.
3751 2013-01-29 Richard Biener <rguenther@suse.de>
3753 PR tree-optimization/55270
3754 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
3755 the CFG, schedule loops for fixup.
3757 2013-01-29 Nick Clifton <nickc@redhat.com>
3759 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
3762 2013-01-28 Leif Ekblad <leif@rdos.net>
3764 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
3765 * config/i386/i386.h (TARGET_RDOS): New macro.
3766 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
3767 * config/i386/i386.c (ix86_option_override_internal): For 64bit
3768 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
3769 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
3770 DEFAULT_LARGE_SECTION_THRESHOLD.
3771 * config/i386/i386.md (R14_REG, R15_REG): New constants.
3772 * config/i386/rdos.h: New file.
3773 * config/i386/rdos64.h: New file.
3775 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
3778 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
3781 2013-01-28 Jakub Jelinek <jakub@redhat.com>
3783 PR rtl-optimization/56117
3784 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
3785 call cselib_lookup_from_insn on the MEM before calling
3786 add_insn_mem_dependence.
3788 2013-01-28 Richard Biener <rguenther@suse.de>
3790 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
3791 to a stmt that didn't have one.
3792 (copy_phis_for_bb): Likewise for PHI arguments.
3793 (copy_debug_stmt): Likewise for debug stmts.
3795 2013-01-28 Richard Biener <rguenther@suse.de>
3797 PR tree-optimization/56034
3798 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
3799 (partition_builtin_p): Adjust.
3800 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
3801 it is the last partition.
3802 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
3803 up the vertex for the definition.
3804 (classify_partition): Classify whether a partition is a
3805 PKIND_REDUCTION, thus has uses outside of the loop.
3806 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
3807 Merge all PKIND_REDUCTION partitions into the last partition.
3808 (tree_loop_distribution): Seed partitions from reductions as well.
3810 2013-01-28 Jakub Jelinek <jakub@redhat.com>
3812 PR tree-optimization/56125
3813 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
3814 pow(x,c) into sqrt(x) * powi(x, n/2) or
3815 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
3816 optimizing for size.
3817 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
3818 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
3821 PR tree-optimization/56094
3822 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
3823 to UNKNOWN_LOCATION while gimplifying expr.
3825 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
3828 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
3829 operand 0 in movabs insn template for -masm=intel asm alternative.
3830 (*movabs<mode>_2): Ditto for operand 1.
3832 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
3835 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
3838 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3840 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
3843 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3845 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
3846 Undef to avoid warning.
3848 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3850 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
3851 * configure: Regenerate.
3853 2013-01-25 Jakub Jelinek <jakub@redhat.com>
3855 PR tree-optimization/56098
3856 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
3857 for stmts with volatile ops.
3858 (cond_store_replacement): Don't optimize if assign has volatile ops.
3859 (cond_if_else_store_replacement_1): Don't optimize if either
3860 then_assign or else_assign have volatile ops.
3861 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
3864 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
3866 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
3868 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
3870 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
3871 missing ':' in asm example.
3873 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
3875 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
3876 entries into lane and laneq entries.
3877 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
3878 Remove AdvSIMD scalar modes.
3879 (aarch64_sq<r>dmulh_laneq<mode>): New.
3880 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
3882 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
3883 builtin implementations to relfect changes in RTL in aarch64-simd.md.
3884 * config/aarch64/iterators.md (VCOND): New.
3887 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
3890 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
3891 Add NULL LIBNAME argument to existing definitions.
3892 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
3893 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
3894 * config/avr/avr.c (DEF_BUILTIN): Same.
3895 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
3896 (avr_expand_builtin): Expand to a vanilla call if a libgcc
3897 implementation is available (DECL_ASSEMBLER_NAME is set).
3898 (avr_fold_absfx): New static function.
3899 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
3900 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
3901 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
3903 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
3904 (abshk, absk, abslk, absllk): Provide as static inline functions.
3906 2013-01-25 Marek Polacek <polacek@redhat.com>
3908 PR tree-optimization/56035
3909 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
3911 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
3913 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
3914 (*movtf_internal_rex64): Add (!o,C) alternative
3915 (*movxf_internal_rex64): Ditto.
3916 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
3918 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
3920 * doc/invoke.texi: fix typo.
3921 * doc/objc.texi: fix typo.
3923 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
3925 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
3926 for the first two alternatives.
3928 2013-01-24 Diego Novillo <dnovillo@google.com>
3930 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
3931 (ggc-zone.o): Remove.
3932 * configure.ac: Remove option --with-gc.
3933 * configure: Re-generate.
3934 * doc/install.texi: Remove documentation for --with-gc.
3935 * gengtype.c (write_enum_defn): Remove. Update all users.
3936 (write_Types_process_field): Remove generation of gt_e_* argument.
3937 (output_type_enum): Remove. Update all users.
3938 (write_enum_defn): Remove. Update all users.
3939 (enum alloc_zone): Remove. Update all users.
3940 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
3941 * ggc-common.c (ggc_splay_alloc): Remove first argument.
3943 (struct ptr_data): Remove field TYPE. Update all users.
3944 (gt_pch_note_object): Remove argument TYPE. Update all users.
3945 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
3947 * ggc-none.c (ggc_alloc_typed_stat): Remove.
3948 (struct alloc_zone): Remove.
3949 (ggc_internal_alloc_zone_stat): Remove.
3950 (ggc_internal_cleared_alloc_zone_stat): Remove.
3951 * ggc-page.c (ggc_alloc_typed_stat): Remove.
3952 (ggc_pch_count_object): Remove last argument. Update all users.
3953 (ggc_pch_alloc_object): Remove last argument. Update all users.
3954 (struct alloc_zone): Remove.
3955 * ggc-zone.c: Remove.
3956 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
3957 (struct alloc_zone): Remove.
3958 (ggc_alloc_typed_stat): Remove.
3959 (ggc_alloc_typed): Remove.
3960 (ggc_splay_alloc): Remove first argument.
3961 (rtl_zone): Remove. Update all users.
3962 (tree_zone): Remove. Update all users.
3963 (tree_id_zone): Remove. Update all users.
3964 (ggc_internal_zone_alloc_stat): Remove. Update all users.
3965 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
3966 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
3967 * tree-ssanames.c: Remove references to zone allocator in comments.
3969 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
3971 * config/avr/avr.c (avr_out_fract): Make register numbers that
3972 might be outside of source operand signed.
3974 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
3976 * config/i386/constraints.md (Yf): New constraint.
3977 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
3978 of f constraint to conditionaly disable x87 register preferences.
3979 (*movdf_internal): Ditto.
3980 (*movsf_internal): Ditto.
3982 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
3985 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
3986 that have operands with impossible constraints.
3987 Add a FIXME for a speed-up opportunity.
3988 * lra-constraints.c (process_alt_operands): Verify that a class
3989 selected from constraints on asms is valid for the operand mode.
3990 (curr_insn_transform): Remove incorrect comment.
3992 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
3994 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
3995 TOC operand is a valid symbol ref in the constant pool.
3997 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3999 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
4001 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
4004 * config/avr/stdfix.h: New file.
4005 * t-avr (stdfix-gcc.h): New rule to build it.
4006 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4008 2013-01-23 Kostya Serebryany <kcc@google.com>
4010 * config/darwin.h: remove dependency on
4011 CoreFoundation (asan on Mac OS).
4013 2013-01-23 Jakub Jelinek <jakub@redhat.com>
4016 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4017 instead of cmpdi_operand for first comparison operand.
4018 Don't assert that comparison operands aren't both constants.
4020 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4022 * doc/install.texi (Downloading the Source): Update references to
4023 downloading separate components.
4025 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4027 * doc/extend.texi (__int128): Improve grammar.
4029 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
4032 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4033 alternative to (o,r).
4034 (*movdi_internal_rex64): Remove (!o,n) alternative.
4035 (DImode immediate->memory splitter): Remove.
4036 (DImode immediate->memory peephole2): Remove.
4037 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4038 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4039 alternative to (!o,*r).
4040 (*movtf_internal_sse): New pattern.
4041 (*movxf_internal_rex64): New pattern.
4042 (*movxf_internal): Disable for TARGET_64BIT.
4043 (*movdf_internal_rex64): Remove (!o,F) alternative.
4045 2013-01-22 Jakub Jelinek <jakub@redhat.com>
4048 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4049 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4050 * tree-vect-loop-manip.c (find_loop_location): Also ignore
4051 stmt locations where LOCATION_LOCUS of the stmt location is
4052 UNKNOWN_LOCATION or BUILTINS_LOCATION.
4055 * config/i386/i386.md (UNSPEC_STOS): New.
4056 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4057 *strsetqi_1): Add UNSPEC_STOS.
4059 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
4062 * doc/invoke.texi: Remove left over -Wsynth example.
4064 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4066 PR tree-optimization/56051
4067 * fold-const.c (fold_binary_loc): Don't fold
4068 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4069 a narrowing conversion, or widening conversion from signed
4072 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4074 PR rtl-optimization/56023
4075 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4076 dependent on debug instruction.
4078 2013-01-21 Martin Jambor <mjambor@suse.cz>
4081 * function.c (allocate_struct_function): Call
4082 invoke_set_current_function_hook earlier.
4084 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4086 * reload1.c (init_reload): Only initialize reload_obstack
4087 during the first call.
4089 2013-01-21 Marek Polacek <polacek@redhat.com>
4091 * cfgloop.c (verify_loop_structure): Fix up grammar.
4093 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
4095 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4096 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4098 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4101 * config/arm/marvell-pj4.md: Update copyright year.
4102 Fix up use of alu to alu_reg and simple_alu_imm.
4104 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4106 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4108 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
4111 * lra-constraints.c (curr_insn_transform): Don't reuse original
4112 insn for secondary memory move when memory mode should be different.
4114 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4116 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4117 atomic_storedi_1): New patterns.
4119 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4121 btver2 pipeline descriptions.
4122 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4124 * config/i386/i386.md (btver2_decode): New type attributes.
4125 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
4127 * config/i386/btver2.md: New file describing btver2 pipelines.
4129 2013-01-19 Andrew Pinski <apinski@cavium.com>
4131 PR tree-optimization/52631
4132 * tree-ssa-sccvn (visit_use): Before looking up the original
4133 statement, try looking up the simplified expression.
4135 2013-01-19 Anthony Green <green@moxielogic.com>
4137 * config/moxie/moxie.c (moxie_expand_prologue): Set
4138 current_function_static_stack_size.
4140 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4142 PR tree-optimization/56029
4143 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4144 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4146 2013-01-18 Sharad Singhai <singhai@google.com>
4148 PR tree-optimization/55995
4149 * dumpfile.c (dump_loc): Print location only if available.
4150 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4152 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
4155 * lra-constraints.c (curr_insn_transform): Reuse original insn for
4156 secondary memory move.
4157 (inherit_reload_reg): Use rclass instead of cl for
4158 check_secondary_memory_needed_p.
4160 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4163 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
4164 the case where writing real complex part of target modifies op1.
4166 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
4168 * config/aarch64/aarch64-simd.md
4169 (aarch64_vcond_internal<mode>): Handle unordered cases.
4170 * config/aarch64/iterators.md (v_cmp_result): New.
4172 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
4173 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4175 * config/arm/marvell-pj4.md: New file.
4176 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4177 * config/arm/arm.md (generic_sched): Add marvell_pj4.
4178 (generic_vfp): Likewise.
4179 * config/arm/arm-cores.def: Add marvell-pj4.
4180 * config/arm/arm-tune.md: Regenerate.
4181 * config/arm/arm-tables.opt: Regenerate.
4182 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4183 * doc/invoke.texi: Document marvell-pj4.
4185 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
4187 * config/aarch64/arm_neon.h: Map scalar types to standard types.
4189 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4194 * var-tracking.c (negative_power_of_two_p): New.
4195 (global_get_addr_cache, local_get_addr_cache): New.
4196 (get_addr_from_global_cache, get_addr_from_local_cache): New.
4197 (vt_canonicalize_addr): Rewrite using the above. Adjust the
4199 (vt_stack_offset_p): Remove.
4200 (vt_canon_true_dep): Always canonicalize loc's address.
4201 (clobber_overlapping_mems): Make sure we have a MEM.
4202 (local_get_addr_clear_given_value): New.
4203 (val_reset): Clear local cached entries.
4204 (compute_bb_dataflow): Create and release the local cache.
4205 Disable duplicate MEMs clobbering.
4206 (emit_notes_in_bb): Clobber MEMs likewise.
4207 (vt_emit_notes): Create and release the local cache.
4208 (vt_initialize, vt_finalize): Create and release the global
4209 cache, respectively.
4210 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
4212 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4215 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4216 not found in the symtab.
4218 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4221 PR rtl-optimization/55547
4222 PR rtl-optimization/53827
4225 * alias.c (offset_overlap_p): New, factored out of...
4226 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
4227 the conservative special case for symbolic constants. Don't
4228 adjust zero sizes on alignment.
4230 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
4232 PR rtl-optimization/52573
4233 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4234 REG_UNUSED for the same register.
4236 2013-01-17 Richard Biener <rguenther@suse.de>
4237 Marek Polacek <polacek@redhat.com>
4239 PR rtl-optimization/55833
4240 * loop-unswitch.c (unswitch_loops): Move loop verification...
4241 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
4242 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4243 Set it to true when we're removing a loop from hierarchy tree in
4244 an irreducible region.
4245 (fix_bb_placements): Adjust caller.
4246 (fix_loop_placements): Likewise.
4248 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
4250 * config/avr/builtins.def (DEF_BUILTIN): Factor out
4251 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4252 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4253 Remove ID. Adjust comments.
4254 * config/avr/avr-c.c (avr_builtin_name): Remove.
4255 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4256 * config/avr/avr.c (avr_tolower): New static function.
4257 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
4258 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4259 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4262 2013-01-17 Jan Hubicka <jh@suse.cz>
4264 PR tree-optimization/55273
4265 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4267 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
4270 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4271 store through atomic_store<mode>_1.
4272 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4274 2013-01-17 Martin Jambor <mjambor@suse.cz>
4276 PR tree-optimizations/55264
4277 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4278 for virtual methods.
4279 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4280 virtual methods before inlining is over.
4281 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4283 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4286 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
4288 PR rtl-optimization/56005
4289 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4290 pending reads for prefetch.
4292 2013-01-16 Ian Bolton <ian.bolton@arm.com>
4294 * config/aarch64/aarch64.md
4295 (*cstoresi_neg_uxtw): New pattern.
4296 (*cmovsi_insn_uxtw): New pattern.
4297 (*<optab>si3_uxtw): New pattern.
4298 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4299 (*<optab>si3_insn_uxtw): New pattern.
4300 (*bswapsi2_uxtw): New pattern.
4302 2013-01-16 Richard Biener <rguenther@suse.de>
4304 * tree-inline.c (tree_function_versioning): Remove set but
4305 never used variable.
4307 2013-01-16 Richard Biener <rguenther@suse.de>
4309 PR tree-optimization/55964
4310 * tree-flow.h (rename_variables_in_loop): Remove.
4311 (rename_variables_in_bb): Likewise.
4312 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4313 (copy_loop_before): Adjust and delete update-ssa status.
4314 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
4315 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
4316 (rename_variables_in_loop): Remove.
4317 (slpeel_update_phis_for_duplicate_loop): Likewise.
4318 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4319 use available cfg machinery instead of duplicating it.
4320 Update PHI nodes and perform poor-mans SSA update here.
4321 (slpeel_tree_peel_loop_to_edge): Adjust.
4323 2013-01-16 Richard Biener <rguenther@suse.de>
4325 PR tree-optimization/54767
4326 PR tree-optimization/53465
4327 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
4328 (vrp_visit_phi_node): For PHI arguments coming via backedges
4329 drop all symbolical range information.
4330 (execute_vrp): Compute backedges.
4332 2013-01-16 Richard Biener <rguenther@suse.de>
4334 * doc/install.texi: Update CLooG and ISL requirements to
4337 2013-01-16 Christian Bruel <christian.bruel@st.com>
4340 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
4341 (broken_move): Handle UNSPECV_SP_SWITCH_B.
4342 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
4344 2013-01-16 DJ Delorie <dj@redhat.com>
4346 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4347 (UNSPECV_SP_SWITCH_E): New.
4348 (sp_switch_1): Change to an unspec.
4349 (sp_switch_2): Change to an unspec. Don't use post-inc when we
4352 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
4354 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
4355 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
4356 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
4357 (expand_mem_thread_fence): Ditto.
4358 (expand_mem_signal_fence): Ditto.
4359 (expand_atomic_load): Ditto.
4360 (expand_atomic_store): Ditto.
4362 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
4364 PR rtl-optimization/55547
4365 PR rtl-optimization/53827
4368 * alias.c (memrefs_conflict_p): Set sizes to negative after
4371 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4374 * function.c (thread_prologue_and_epilogue_insns): Always
4375 add crtl->drap_reg to set_up_by_prologue.set, even if
4376 stack_realign_drap is false.
4378 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4380 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4381 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
4382 *call): Fix indention.
4384 2013-01-15 Tom de Vries <tom@codesourcery.com>
4387 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
4390 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
4392 PR rtl-optimization/55153
4393 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
4395 2013-01-15 Martin Jambor <mjambor@suse.cz>
4397 PR tree-optimization/55920
4398 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
4399 accesses as grp_to_be_debug_replaced.
4401 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4403 PR tree-optimization/55920
4404 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
4405 there is non-useless type conversion needed from debug rhs to lhs,
4406 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
4408 2013-01-15 Joseph Myers <joseph@codesourcery.com>
4409 Mikael Pettersson <mikpe@it.uu.se>
4412 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
4414 (ASM_OUTPUT_CASE_LABEL): Remove.
4415 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
4416 * final.c (shorten_branches): Update alignment of labels before
4417 jump tables if CASE_VECTOR_SHORTEN_MODE.
4419 2013-01-15 Richard Biener <rguenther@suse.de>
4422 * system.h: Do not include gmp.h for building host tools.
4424 2013-01-15 Richard Biener <rguenther@suse.de>
4427 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
4428 account for bitpos when computing alignment.
4430 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4432 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
4433 (ix86_target_macros_internal): Likewise.
4435 * config/i386/i386.c (m_CORE2I7): Removed.
4436 (m_CORE_HASWELL): New macro.
4437 (m_CORE_ALL): Likewise.
4438 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
4439 (initial_ix86_arch_features): Likewise.
4440 (processor_target_table): Initializations for Core avx2.
4441 (cpu_names): New names "core-avx2".
4442 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
4443 PROCESSOR_CORE_HASWELL.
4444 (ix86_issue_rate): New case.
4445 (ia32_multipass_dfa_lookahead): Likewise.
4446 (ix86_sched_init_global): Likewise.
4448 * config/i386/i386.h (TARGET_HASWELL): New macro.
4449 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
4450 (processor_type): New PROCESSOR_HASWELL.
4452 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4454 PR tree-optimization/55955
4455 * tree-vect-loop.c (vectorizable_reduction): Give up early on
4456 *SHIFT_EXPR and *ROTATE_EXPR codes.
4458 PR tree-optimization/48766
4459 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
4460 -ftrapv disable -fwrapv.
4462 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4465 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
4466 etc. to 1 and not to __flash.
4467 Use LL suffix for __INT24_MAX__ with -mint8.
4468 Use ULL suffix for __UINT24_MAX__ with -mint8.
4470 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4472 * config/avr/avr-arch.h
4473 (struct base_arch_s): Use typedef avr_arch_t instead.
4474 (struct arch_info_s): Use typedef avr_arch_info_t instead.
4475 (struct mcu_type_s): Use typedef avr_mcu_t instead.
4476 * config/avr/avr.c: Same.
4477 * config/avr/avr-devices.c: Same.
4478 * config/avr/driver-avr.c: Same.
4479 * config/avr/gen-avr-mmcu-texi.c: Same.
4480 * config/avr/avr-mcus.def: Adjust comment.
4482 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
4484 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
4485 * config/aarch64/iterators.md (VALLDI): New.
4487 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
4488 Andi Kleen <ak@linux.intel.com>
4491 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
4492 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
4495 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4497 * config/avr/avr-stdint.h: Remove trailing blanks.
4498 * config/avr/avr-log.h: Same.
4499 * config/avr/avr-arch.h: Same.
4500 * config/avr/avr-devices.c: Same.
4501 * config/avr/avr-dimode.md: Same.
4502 * config/avr/predicates.md: Same.
4503 * config/avr/avr-c.c: Same. And fix typo.
4505 * config/avr/avr-protos.h: Same. And:
4506 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
4507 (init_cumulative_args): Rename to avr_init_cumulative_args.
4508 (expand_prologue): Rename to avr_expand_prologue.
4509 (expand_epilogue): Rename to avr_expand_epilogue.
4510 (adjust_insn_length): Rename to avr_adjust_insn_length.
4511 (notice_update_cc): Rename to avr_notice_update_cc.
4512 (final_prescan_insn): Rename to avr_final_prescan_insn.
4513 * config/avr/avr.c: Same.
4514 * config/avr/avr.h: Same.
4515 * config/avr/avr.md: Remove trailing blanks.
4516 (prologue): Use avr_expand_prologue.
4517 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
4519 2013-01-14 Richard Biener <rguenther@suse.de>
4521 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
4522 verify_location, collect_subblocks): New functions.
4523 (verify_gimple_in_cfg): Verify that locations only reference
4524 BLOCKs in the functions BLOCK tree.
4526 2013-01-14 Richard Biener <rguenther@suse.de>
4528 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
4530 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
4532 (insert_out_of_ssa_copy_on_edge): Likewise.
4533 (rewrite_close_phi_out_of_ssa): Likewise.
4534 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
4536 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
4537 propagated constants.
4538 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
4541 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4543 * config/avr/avr-modes.def: Add GPL copyright notice.
4545 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
4547 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
4548 MEMMODEL_MASK to determine memory model.
4549 (atomic_store<mode>): Ditto from operands[2].
4550 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
4552 2013-01-13 Jakub Jelinek <jakub@redhat.com>
4555 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
4556 (fold_gimple_assign): Don't call unshare_expr here.
4557 (fold_ctor_reference): Call unshare_expr.
4559 2013-01-13 Terry Guo <terry.guo@arm.com>
4561 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
4562 * doc/fragments.texi: Document MULTILIB_REUSE.
4563 * gcc.c (multilib_reuse): New internal spec.
4564 (set_multilib_dir): Also search multilib from multilib_reuse.
4565 * genmultilib (tmpmultilib3): Refactor code.
4566 (tmpmultilib4): Ditto.
4567 (multilib_reuse): New multilib argument.
4569 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
4571 * Makefile.in: Update copyright.
4573 2013-01-12 Tom de Vries <tom@codesourcery.com>
4576 * calls.c (expand_call): Check if arg_nr is valid.
4578 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4580 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
4581 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
4582 documentation. Add missing '__' in front of
4583 __builtin_ia32_packssdw256.
4585 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4588 * config/s390/s390.c (s390_preferred_reload_class): Do not return
4589 NO_REGS for larl operands.
4590 (s390_reload_larl_operand): Use s390_load_address instead of
4593 2013-01-11 Richard Biener <rguenther@suse.de>
4595 * tree-cfg.c (verify_node_sharing_1): Split out from ...
4596 (verify_node_sharing): ... here.
4597 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
4599 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4601 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
4602 Substitute TREECHECKING.
4603 * configure: Regenerate.
4604 * Makefile.in (TREECHECKING): New.
4606 2013-01-11 Richard Guenther <rguenther@suse.de>
4608 PR tree-optimization/44061
4609 * tree-vrp.c (extract_range_basic): Compute zero as
4610 value-range for __builtin_constant_p of function parameters.
4612 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
4614 Update copyright years.
4616 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
4618 PR rtl-optimization/55672
4619 * lra-eliminations.c (mark_not_eliminable): Permit addition with
4620 const to be eliminable.
4622 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
4624 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
4625 * configure: Regenerate.
4627 2013-01-10 Richard Biener <rguenther@suse.de>
4629 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
4631 2013-01-10 Richard Biener <rguenther@suse.de>
4634 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
4635 locations for virtual PHI arguments.
4636 (rewrite_update_phi_arguments): Likewise.
4638 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
4640 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
4643 2013-01-10 Jakub Jelinek <jakub@redhat.com>
4645 PR tree-optimization/55921
4646 * tree-complex.c (expand_complex_asm): New function.
4647 (expand_complex_operations_1): Call it for GIMPLE_ASM.
4649 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4652 * config/s390/s390.c (s390_symref_operand_p)
4653 (s390_loadrelative_operand_p): Merge the two functions.
4654 (s390_check_qrst_address, print_operand_address): Add parameters
4655 to s390_loadrelative_operand_p invokation.
4656 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
4657 (s390_reload_larl_operand, s390_secondary_reload): Use
4658 s390_loadrelative_operand_p instead of s390_symref_operand_p.
4659 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
4661 2013-01-09 Mike Stump <mikestump@comcast.net>
4663 * dse.c (record_store): Remove unnecessary assert.
4665 2013-01-09 Jan Hubicka <jh@suse.cz>
4667 PR tree-optimization/55569
4668 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
4669 * cfgloop.h (scale_loop_profile): Likewise.
4671 2013-01-09 Jan Hubicka <jh@suse.cz>
4674 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
4676 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
4678 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
4681 * expr.h (maybe_emit_group_store): Declare.
4682 * expr.c (maybe_emit_group_store): New function.
4683 * builtins.c (expand_builtin_int_roundingfn): Call it.
4684 (expand_builtin_int_roundingfn_2): Likewise.
4686 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
4688 PR rtl-optimization/55829
4689 * lra-constraints.c (match_reload): Add code for absent output.
4690 (curr_insn_transform): Add code for reloads of matched inputs
4693 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
4695 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
4696 attribute of movddup insn to DF.
4697 (*vec_interleave_lowv2df): Ditto.
4698 (vec_dupv2df): Ditto.
4700 2013-01-09 Jan Hubicka <jh@suse.cz>
4702 PR tree-optimiation/55875
4703 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
4704 EVERY_ITERATION parameter.
4705 (number_of_iterations_exit): Check if exit is executed every iteration.
4706 (idx_infer_loop_bounds): Similarly here.
4707 (n_of_executions_at_most): Simplify
4708 to only test for cases where statement is dominated by the
4709 particular bound; handle correctly the "postdominance" test.
4710 (scev_probably_wraps_p): Use max loop iterations info
4711 as a global bound first.
4713 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
4714 Nick Clifton <nickc@redhat.com>
4716 * config/v850/v850.md (cbranchsf4): New pattern.
4717 (cstoresf4): New pattern.
4718 (cbranchdf4): New pattern.
4719 (cstoredf4): New pattern.
4720 (movsicc): Disallow floating point comparisons.
4721 (cmpsf_le_insn): Fix order of operators.
4722 (cmpsf_lt_insn): Likewise.
4723 (cmpsf_eq_insn): Likewise.
4724 (cmpdf_le_insn): Likewise.
4725 (cmpdf_lt_insn): Likewise.
4726 (cmpdf_eq_insn): Likewise.
4727 (cmpsf_ge_insn): Use LE comparison.
4728 (cmpdf_ge_insn): Likewise.
4729 (cmpsf_gt_insn): Use LT comparison.
4730 (cmpdf_gt_insn): Likewise.
4731 (cmpsf_ne_insn): Delete pattern.
4732 (cmpdf_ne_insn): Delete pattern.
4733 * config/v850/v850.c (v850_gen_float_compare): Use
4734 gen_cmpdf_eq_insn for NE comparison.
4735 (v850_float_z_comparison_operator)
4736 (v850_float_nz_comparison_operator): Move from here ...
4737 * config/v850/predicates.md: ... to here. Move GT and GE
4738 comparisons into v850_float_z_comparison_operator.
4739 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
4741 (v850_float_nz_comparison_operator): Likewise.
4743 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4745 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
4746 with calls to gen_insvsi/gen_insvdi.
4748 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4750 * config/i386/i386.c (initial_ix86_tune_features): Set up
4751 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
4753 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
4754 Jakub Jelinek <jakub@redhat.com>
4756 PR tree-optimization/48189
4757 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
4758 If nitercst is 0, don't predict the exit edge.
4760 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4762 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
4763 in asm_fprintf with reg_names.
4764 (aarch64_print_operand_address): Likewise.
4765 (aarch64_return_addr): Likewise.
4766 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
4768 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4770 * config/pa/pa.h (VAL_U6_BITS_P): Define.
4771 (INT_U6_BITS): Likewise.
4772 * config/pa/predicates.md (uint6_operand): New predicate.
4773 (shift5_operand, shift6_operand): Likewise.
4774 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
4776 (lshrdi3): Use shift6_operand.
4777 (shrpsi4, shrpdi4): New insn patterns.
4778 (extzv): Delete expander.
4779 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
4780 predicates in unamed zero extract patterns. Tighten common constraint.
4781 (extv): Delete expander.
4782 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
4783 predicates in unamed sign extract patterns. Tighten common constraint.
4784 (insv): Delete expander.
4785 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
4786 predicates in unamed insert patterns. Tighten common constraint.
4787 Change uint32_operand predicate to uint6_operand predicate in unamed
4788 DImode pattern to insert constant values of type 1...1xxxx.
4790 2013-01-04 Jan Hubicka <jh@suse.cz>
4792 PR tree-optimization/55823
4793 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
4796 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4797 Uros Bizjak <ubizjak@gmail.com>
4799 PR rtl-optimization/55845
4800 * df-problems.c (can_move_insns_across): Stop scanning at
4801 volatile_insn_p source instruction or give up if
4802 across_from .. across_to range contains any volatile_insn_p
4805 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
4807 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
4808 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
4810 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
4811 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4813 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4816 * asan.c (asan_clear_shadow): New function.
4817 (asan_emit_stack_protection): Use it.
4819 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
4821 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
4822 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
4823 with tab instead of space.
4825 2013-01-08 Nick Clifton <nickc@redhat.com>
4827 * config/rl78/rl78.c (rl78_expand_prologue): Always select
4828 register bank 0 at the start of an interrupt handler.
4829 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
4832 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
4834 * config/aarch64/aarch64-simd.md
4835 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
4836 (aarch64_simd_bsl): Likewise.
4837 (aarch64_vcond_internal<mode>): Likewise.
4838 (vcond<mode><mode>): Likewise.
4839 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
4840 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
4842 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
4844 * config/aarch64/aarch64-builtins.c
4845 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
4847 2013-01-08 Martin Jambor <mjambor@suse.cz>
4850 * tree-sra.c (analyze_access_subtree): Return true also after
4851 potentially creating a debug-only replacement.
4853 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4856 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
4858 PR tree-optimization/54120
4859 * tree-vrp.c (range_fits_type_p): Don't allow
4860 src_precision < precision from signed vr to unsigned_p
4861 if vr->min or vr->max is negative.
4862 (simplify_float_conversion_using_ranges): Test can_float_p
4863 against CODE_FOR_nothing.
4865 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4866 Richard Biener <rguenther@suse.de>
4869 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
4870 types instead of just INTEGER_TYPE types.
4872 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
4874 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
4877 2013-01-07 Steve Ellcey <sellcey@mips.com>
4880 * config/mips/mips.opt: Change mad to mmad to match documentation.
4882 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4885 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
4888 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4891 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
4892 (avr_addrspace_t): Add .section_name field.
4893 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
4895 (avr_addrspace): Same. Initialize .section_name. Remove last
4896 NULL entry. Put __memx into .progmemx.data.
4897 (progmem_section_prefix): Remove.
4898 (avr_asm_init_sections): No need to initialize progmem_section.
4899 (avr_asm_named_section): Use avr_addrspace[].section_name to get
4900 section name prefix.
4901 (avr_asm_select_section): Ditto. And use get_unnamed_section to
4902 retrieve the progmem section.
4903 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
4904 boundary to run over avr_addrspace[].
4905 (avr_register_target_pragmas): Ditto.
4907 2013-01-06 Jakub Jelinek <jakub@redhat.com>
4909 * varasm.c (output_constant_def_contents): For asan_protect_global
4910 protected strings, adjust DECL_ALIGN if needed, before testing for
4912 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
4913 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
4915 (output_object_block): For asan protected decls, emit asan padding
4916 after their contents.
4917 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
4918 (asan_finish_file): Test it here instead.
4920 2013-01-07 Nick Clifton <nickc@redhat.com>
4921 Matthias Klose <doko@debian.org>
4922 Doug Kwan <dougkwan@google.com>
4923 H.J. Lu <hongjiu.lu@intel.com>
4926 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
4928 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
4930 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
4932 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
4934 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
4936 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4939 * doc/install.texi (Cross-Compiler-Specific Options): Document
4942 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
4944 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
4945 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
4946 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
4947 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
4948 vqmovun_high_s64): Fix source operand number and update copyright.
4950 2013-01-07 Richard Biener <rguenther@suse.de>
4953 * gimple.h (gimple_call_builtin_p): New overload.
4954 * gimple.c (validate_call): New function.
4955 (gimple_call_builtin_p): Likewise.
4956 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4957 Use gimple_call_builtin_p.
4958 (find_func_clobbers): Likewise.
4959 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
4960 (strlen_optimize_stmt): Likewise.
4962 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
4964 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
4965 (vld1q_dup_*): Likewise.
4967 (vld1q_*): Likewise.
4968 (vld1_lane_*): Likewise.
4969 (vld1q_lane_*): Likewise.
4971 2013-01-07 Richard Biener <rguenther@suse.de>
4973 * lto-streamer.h (LTO_minor_version): Bump to 2.
4975 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
4977 * config/aarch64/aarch64-protos.h
4978 (aarch64_const_double_zero_rtx_p): Rename to...
4979 (aarch64_float_const_zero_rtx_p): ...this.
4980 (aarch64_float_const_representable_p): New.
4981 (aarch64_output_simd_mov_immediate): Likewise.
4982 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
4983 move immediate case.
4984 * config/aarch64/aarch64.c
4985 (aarch64_const_double_zero_rtx_p): Rename to...
4986 (aarch64_float_const_zero_rtx_p): ...this.
4987 (aarch64_print_operand): Allow printing of new constants.
4988 (aarch64_valid_floating_const): New.
4989 (aarch64_legitimate_constant_p): Check for valid floating-point
4991 (aarch64_simd_valid_immediate): Likewise.
4992 (aarch64_vect_float_const_representable_p): New.
4993 (aarch64_float_const_representable_p): Likewise.
4994 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
4995 (aarch64_output_simd_mov_immediate): New.
4996 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
4997 (*movdf_aarch64): Likewise.
4998 * config/aarch64/constraints.md (Ufc): New.
4999 (Y): call aarch64_float_const_zero_rtx.
5000 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5002 2013-01-07 Richard Biener <rguenther@suse.de>
5004 PR tree-optimization/55888
5005 PR tree-optimization/55862
5006 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5007 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5008 not if it is contained therein.
5010 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5012 * config/avr/t-avr: Typo.
5014 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5017 * config/avr/t-avr: Don't automatically rebuild
5018 $(srcdir)/config/avr/t-multilib
5019 $(srcdir)/config/avr/avr-tables.opt
5020 $(srcdir)/doc/avr-mmcu.texi
5021 (avr-mcus): New phony target to build them on request.
5022 (s-avr-mlib, s-avr-mmcu-texi): Remove.
5023 * avr/avr-mcus.def: Adjust comments.
5025 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
5027 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5029 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5031 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5033 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5035 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5037 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
5039 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5040 to generate profiling.
5041 * config/rs6000/aix64.h (LIB_SPEC): Same.
5043 2013-01-04 Andrew Pinski <apinski@cavium.com>
5045 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5047 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5049 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
5051 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5053 (ix86_expand_move): Ditto.
5054 (ix86_zero_extend_to_Pmode): Ditto.
5055 (ix86_expand_call): Ditto.
5056 (ix86_expand_special_args_builtin): Ditto.
5057 (ix86_expand_builtin): Ditto.
5059 2013-01-04 Richard Biener <rguenther@suse.de>
5061 PR tree-optimization/55862
5062 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5063 translating them through PHI nodes.
5065 2013-01-04 Martin Jambor <mjambor@suse.cz>
5067 PR tree-optimization/55755
5068 * tree-sra.c (sra_modify_assign): Do not check that an access has no
5069 children when trying to avoid producing a VIEW_CONVERT_EXPR.
5071 2013-01-04 Marek Polacek <polacek@redhat.com>
5074 * opts.c (default_options_optimization): Clarify error message.
5076 2013-01-04 Richard Biener <rguenther@suse.de>
5079 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5082 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5085 * config/pa/pa.md (movsi): Revert previous change.
5086 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5089 2013-01-03 Richard Henderson <rth@redhat.com>
5091 * config/i386/i386.c (ix86_expand_move): Always assign to op1
5092 after eliminating TLS symbols.
5094 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
5097 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5098 * graphite-poly.c (debug_gmp_value): Likewise.
5100 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
5103 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5104 selected code model, define __code_mode_small__, __code_model_medium__,
5105 __code_model_large__, __code_model_32__ or __code_model_kernel__.
5106 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5107 xchg temporary register with %k. Declare temporary register as
5109 [__x86_64__]: For medium and large code models, preserve %rbx register.
5111 2013-01-03 Richard Biener <rguenther@suse.de>
5113 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
5114 (dump_subscript): Adjust.
5115 (finalize_ddr_dependent): Do not dump redundant info.
5116 (analyze_siv_subscript): Adjust.
5117 (subscript_dependence_tester): Likewise.
5118 (compute_affine_dependence): Likewise.
5120 2013-01-03 Richard Biener <rguenther@suse.de>
5123 2013-01-03 Richard Biener <rguenther@suse.de>
5125 PR tree-optimization/55857
5126 * tree-vect-stmts.c (vectorizable_load): Do not setup
5127 re-alignment for invariant loads.
5129 2013-01-02 Richard Biener <rguenther@suse.de>
5131 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5132 invariant load do not generate a vector load from the scalar location.
5134 2013-01-03 Richard Biener <rguenther@suse.de>
5136 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5137 for not vectorizing.
5138 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5139 not build INDIRECT_REFs, call get_name once only.
5140 (vect_create_data_ref_ptr): Likewise. Dump base object kind
5141 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5143 2013-01-03 Richard Biener <rguenther@suse.de>
5145 PR tree-optimization/55857
5146 * tree-vect-stmts.c (vectorizable_load): Do not setup
5147 re-alignment for invariant loads.
5149 2013-01-03 Richard Biener <rguenther@suse.de>
5152 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5153 prefer a built-in decl.
5155 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5157 * gcc.c (process_command): Update copyright notice dates.
5158 * gcov.c (print_version): Likewise.
5159 * gcov-dump.c (print_version): Likewise.
5161 PR rtl-optimization/55838
5162 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5163 iv0.step, iv1.step and step.
5165 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5166 Marc Glisse <marc.glisse@inria.fr>
5168 PR tree-optimization/55832
5169 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5170 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5171 integer_{one,zero}_node.
5173 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5176 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5177 * var-tracking.c (reverse_op): Don't add reverse ops to
5178 VALUEs that have already
5179 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
5181 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
5183 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5185 2013-01-02 Teresa Johnson <tejohnson@google.com>
5187 * dumpfile.c (dump_loc): Print filename with location.
5188 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5189 new location_t parameter to emit complete unroll message with
5191 (canonicalize_loop_induction_variables): Compute loops location
5192 and pass to try_unroll_loop_completely.
5193 * loop-unroll.c (report_unroll_peel): New function.
5194 (peel_loops_completely): Use new dump format with location
5195 for main dumpfile message, and invoke report_unroll_peel on success.
5196 (decide_unrolling_and_peeling): Ditto.
5197 (decide_peel_once_rolling): Remove old dumpfile message subsumed
5198 by report_unroll_peel.
5199 (decide_peel_completely): Ditto.
5200 (decide_unroll_constant_iterations): Ditto.
5201 (decide_unroll_runtime_iterations): Ditto.
5202 (decide_peel_simple): Ditto.
5203 (decide_unroll_stupid): Ditto.
5204 * cfgloop.c (get_loop_location): New function.
5205 * cfgloop.h (get_loop_location): Declare.
5207 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5209 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5212 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5215 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5216 BLKmode objects when EXPAND_MEMORY is specified.
5218 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5220 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5222 (fold_builtin_cpu): Do not share cpu model decls across statements.
5224 2013-01-02 Jason Merrill <jason@redhat.com>
5227 * tree.c (build_array_type_1): Revert earlier change.
5229 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
5231 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5233 * config/aarch64/aarch64-tune.md: Re-generate.
5235 2013-01-02 Richard Biener <rguenther@suse.de>
5237 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5238 invariant load do not generate a vector load from the scalar location.
5240 2013-01-02 Richard Biener <rguenther@suse.de>
5243 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5244 * configure: Regenerate.
5246 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5248 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5249 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5250 (expand_builtin_int_roundingfn_2): Keep the original target around
5251 for the fallback case.
5253 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5255 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5256 to be clear for sign changes.
5258 2013-01-01 Jan Hubicka <jh@suse.cz>
5260 * ipa-inline-analysis.c: Fix formatting.
5262 2013-01-01 Jakub Jelinek <jakub@redhat.com>
5264 PR tree-optimization/55831
5265 * tree-vect-loop.c (get_initial_def_for_induction): Use
5266 gsi_after_labels instead of gsi_start_bb.
5268 Copyright (C) 2013 Free Software Foundation, Inc.
5270 Copying and distribution of this file, with or without modification,
5271 are permitted in any medium without royalty provided the copyright
5272 notice and this notice are preserved.