1 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
3 PR rtl-optimization/57439
4 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
6 2013-05-28 Easwaran Raman <eraman@google.com>
8 PR tree-optimization/57337
9 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
10 (find_insert_point): Correctly identify the insertion point
11 when two statements with the same UID is compared.
13 2013-05-28 Richard Biener <rguenther@suse.de>
15 PR tree-optimization/56787
16 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
17 from the list of data references.
18 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
20 (vect_analyze_loop_operations): Likewise.
21 (vect_transform_loop): Remove clobbers.
23 2013-05-28 Martin Jambor <mjambor@suse.cz>
25 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
26 and REALPART_EXPRs have scalar type.
28 2013-05-28 Richard Biener <rguenther@suse.de>
30 PR tree-optimization/57411
31 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
33 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
34 virtual operand propagation.
36 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
38 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
39 destination register for bmasksi_vis.
40 (vector_init_bshuffle): Likewise.
41 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
43 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
45 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
46 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
47 mode if the instruction isn't available in the original mode.
48 * config/sparc/sparc.opt (mfix-ut699): New option.
49 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
50 (divdf3): Turn into expander.
51 (divdf3_nofix): New insn.
52 (divdf3_fix): Likewise.
53 (divsf3): Disable if -mfix-ut699.
54 (sqrtdf2): Turn into expander.
55 (sqrtdf2_nofix): New insn.
56 (sqrtdf2_fix): Likewise.
57 (sqrtsf2): Disable if -mfix-ut699.
59 2013-05-27 Richard Biener <rguenther@suse.de>
62 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
63 block for the new loop.
65 2013-05-27 Richard Biener <rguenther@suse.de>
67 PR tree-optimization/57343
68 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
69 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
70 (number_of_iterations_cond): Do not build the folded tree.
72 2013-05-27 Richard Biener <rguenther@suse.de>
76 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
77 OEP_CONSTANT_ADDRESS_OF retained.
79 PR tree-optimization/57417
80 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
82 (set_ssa_val_to): Compare addresses using
83 get_addr_base_and_unit_offset.
85 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
87 PR rtl-optimization/56833
88 * postreload.c (move2add_record_mode): New function.
89 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
90 (move2add_use_add2_insn): Use move2add_record_sym_value.
91 (move2add_use_add3_insn): Likewise.
92 (reload_cse_move2add): Use move2add_valid_value_p and
93 move2add_record_mode. Invalidate call-clobbered and REG_INC
94 affected regs by setting reg_mode to VOIDmode.
95 (move2add_note_store): Don't pretend the inside of a SUBREG is
96 the actual destination. Invalidate single/leading registers by
97 setting reg_mode to VOIDmode.
98 Use move2add_record_sym_value, move2add_valid_value_p and
101 2013-05-27 Richard Biener <rguenther@suse.de>
103 PR tree-optimization/57396
104 * tree-affine.c (double_int_constant_multiple_p): Properly
105 return false for val == 0 and div != 0.
107 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
109 * config/mips/mips.h: Use #elif in preprocessor conditions.
111 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
114 * config/mips/constraints.md (kl): New constraint.
115 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
116 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
117 constraint for operand 0. Split after CSE for MIPS16. Emit a move
119 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
121 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
124 * config/mips/mips.c (mips_can_inline_p): New function.
125 (TARGET_CAN_INLINE_P): Define.
127 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
129 * sched-int.h (ds_t, dw_t): Make unsigned int.
130 Fix documentation that describes how all the ds_t bits are used.
131 Reserve the last bit for delayed-branch scheduling.
132 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
133 (BITS_PER_DEP_WEAK): Fix definition and documentation.
134 (gen_dep_weak_1): Remove prototype.
135 * sched-deps.c (get_dep_weak_1): Make static.
136 * target.def (speculate_insn, needs_block_p, gen_spec_check,
137 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
138 * doc/tm.texi: Regenerate.
139 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
141 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
144 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
146 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
147 Sandra Loosemore <sandra@codesourcery.com>
149 * config.gcc (powerpc-*): Allow native for with-cpu.
151 2013-05-24 Jeff Law <law@redhat.com>
153 PR tree-optimization/57124
154 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
155 conversion feeding a condition if the range has an overflow
156 if -fstrict-overflow. Add warnings for when we do make the
159 2013-05-24 Dehao Chen <dehao@google.com>
161 * gcc/tree-cfg.c (locus_discrim_map): Fix the typo.
162 (locus_discrim_hasher): Likewise.
163 (locus_discrim_hasher::hash): Likewise.
164 (locus_discrim_hasher::equal): Likewise.
166 2013-05-24 Martin Jambor <mjambor@suse.cz>
168 PR tree-optimization/57294
169 * cgraph.h (ipa_record_stmt_references): Declare.
170 * cgraphbuild.c (ipa_record_stmt_references): New function.
171 (build_cgraph_edges): Use ipa_record_stmt_references.
172 (rebuild_cgraph_edges): Likewise.
173 (cgraph_rebuild_references): Likewise.
174 * ipa-prop.c (ipa_modify_call_arguments): Discard references
175 associated with the old statement and build references from the
176 newly built statements.
177 * ipa-ref.c (ipa_remove_stmt_references): New function.
178 * ipa-ref.h (ipa_remove_stmt_references): Declare.
180 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
182 * lra-constraints.c (emit_spill_move): Use smaller mode for
184 (check_and_process_move): Consider mem-reg moves for secondary
186 (curr_insn_transform): Don't lose insns emitted before for
187 secondary memory moves.
188 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
189 reg set up in the current insn.
191 2013-05-24 Dehao Chen <dehao@google.com>
193 * gcc/testsuite/gcc.dg/debug/dwarf2/discriminator.c: New Testcase.
194 * gcc/tree-cfg.c (locus_descrim_hasher::hash): Change discrminator
196 (locus_descrim_hasher::equal): Likewise.
197 (build_gimple_cfg): New discrminator assignmnet algorithm
198 (make_edges): Likewise.
199 (next_discriminator_for_locus): Likewise.
200 (same_line_p): Likewise.
201 (assign_discriminators): Likewise.
202 (make_cond_expr_edges): Likewise.
203 (make_gimple_switch_edges): Likewise.
204 (make_goto_expr_edges): Likewise.
205 (make_gimple_asm_edges): Likewise.
207 2013-05-24 Ian Bolton <ian.bolton@arm.com>
209 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
210 X format specifier to only display bottom 16 bits.
211 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
212 immediate to match for operand 2, since it will be masked.
214 2013-05-24 Richard Biener <rguenther@suse.de>
216 PR tree-optimization/57287
217 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
218 all SSA names that occur in abnormal PHIs.
220 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
223 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
224 that index is not negative.
226 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
228 PR rtl-optimization/55177
229 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
230 (simplify_byte_swapping_operation): New.
231 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
232 (simplify_relational_operation_1): Deal with BSWAP.
234 2013-05-23 Richard Henderson <rth@redhat.com>
237 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
238 (ix86_reorg): Call it.
240 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
243 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
244 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
245 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
247 2013-05-23 Christian Bruel <christian.bruel@st.com>
250 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
252 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
253 Marcus Shawcroft <marcus.shawcroft@arm.com>
255 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
256 * config/aarch64/constraints.md (Usa): Remove.
257 * doc/md.texi (AArch64 Usa): Remove.
259 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
260 Marcus Shawcroft <marcus.shawcroft@arm.com>
262 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
263 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
264 * config/aarch64/predicates.md (aarch64_const_address): Remove.
265 (aarch64_mov_operand): Use aarch64_mov_operand_p.
267 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
269 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
270 instruction (AdvSIMD).
271 * config/aarch64/aarch64-builtins.c
272 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
273 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
275 2013-05-23 Martin Jambor <mjambor@suse.cz>
278 * tree.h (contains_bitfld_component_ref_p): Declare.
279 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
280 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
282 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
283 not access a bit-field. Assert all final offsets are byte-aligned.
285 2013-05-23 Richard Biener <rguenther@suse.de>
287 PR tree-optimization/57380
288 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
289 least one invariant or re-used load.
290 * passes.c (init_optimization_passes): Move pass_phiprop before
293 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
295 * config/aarch64/aarch64-simd.md
296 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
298 2013-05-23 Richard Biener <rguenther@suse.de>
301 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
302 OEP_CONSTANT_ADDRESS_OF retained.
304 2013-05-23 Jakub Jelinek <jakub@redhat.com>
307 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
308 don't lower unit. Handle unit not being always BITS_PER_WORD.
310 2013-05-23 Richard Biener <rguenther@suse.de>
312 PR rtl-optimization/57341
313 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
314 instead of true_dependence.
316 2013-05-22 David Malcolm <dmalcolm@redhat.com>
318 * bb-reorder.c (branch_threshold): Make const.
319 (exec_threshold): Ditto.
321 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
322 Pat Haugen <pthaugen@us.ibm.com>
323 Peter Bergner <bergner@vnet.ibm.com>
325 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
326 documentation for the power8 crypto builtins.
328 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
330 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
331 macros for defining power8 builtin functions.
332 (BU_P8V_AV_2): Likewise.
333 (BU_P8V_AV_P): Likewise.
334 (BU_P8V_VSX_1): Likewise.
335 (BU_P8V_OVERLOAD_1): Likewise.
336 (BU_P8V_OVERLOAD_2): Likewise.
337 (BU_CRYPTO_1): Likewise.
338 (BU_CRYPTO_2): Likewise.
339 (BU_CRYPTO_3): Likewise.
340 (BU_CRYPTO_OVERLOAD_1): Likewise.
341 (BU_CRYPTO_OVERLOAD_2): Likewise.
342 (XSCVSPDP): Fix typo, point to the correct instruction.
343 (VCIPHER): Add power8 crypto builtins.
344 (VCIPHERLAST): Likewise.
345 (VNCIPHER): Likewise.
346 (VNCIPHERLAST): Likewise.
350 (VPERMXOR_V2DI): Likewise.
351 (VPERMXOR_V4SI: Likewise.
352 (VPERMXOR_V8HI: Likewise.
353 (VPERMXOR_V16QI: Likewise.
354 (VSHASIGMAW): Likewise.
355 (VSHASIGMAD): Likewise.
357 (VPERMXOR): Likewise.
358 (VSHASIGMA): Likewise.
360 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
361 __CRYPTO__ if the crypto instructions are available.
362 (altivec_overloaded_builtins): Add support for overloaded power8
365 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
366 support for power8 crypto builtins.
367 (builtin_function_type): Likewise.
368 (altivec_init_builtins): Add support for builtins that take vector
369 long long (V2DI) arguments.
371 * config/rs6000/crypto.md: New file, define power8 crypto
374 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
375 Pat Haugen <pthaugen@us.ibm.com>
376 Peter Bergner <bergner@vnet.ibm.com>
378 * doc/invoke.texi (Option Summary): Add power8 options.
379 (RS/6000 and PowerPC Options): Likewise.
381 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
382 constraints.md instead of rs6000.h. Reorder w* constraints. Add
383 wm, wn, wr documentation.
385 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
386 registers if direct move instructions are enabled.
387 (wn): New constraint for no registers.
388 (wq): New constraint for quad word even GPR registers.
389 (wr): New constraint if 64-bit instructions are enabled.
390 (wv): New constraint if power8 vector instructions are enabled.
391 (wQ): New constraint for quad word memory locations.
393 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
394 constraint for 0..15 for crypto instructions.
395 (gpc_reg_operand): If VSX allow registers in VSX registers as well
396 as GPR and floating point registers.
397 (int_reg_operand): New predicate to match only GPR registers.
398 (base_reg_operand): New predicate to match base registers.
399 (quad_int_reg_operand): New predicate to match even GPR registers
400 for quad memory operations.
401 (vsx_reg_or_cint_operand): New predicate to allow vector logical
402 operations in both GPR and VSX registers.
403 (quad_memory_operand): New predicate for quad memory operations.
404 (reg_or_indexed_operand): New predicate for direct move support.
406 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
407 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
408 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
409 (POWERPC_MASKS): Add power8 options.
410 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
413 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
414 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
416 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
417 (-mpower8-fusion): New power8 options.
418 (-mpower8-fusion-sign): Likewise.
419 (-mpower8-vector): Likewise.
420 (-mcrypto): Likewise.
421 (-mdirect-move): Likewise.
422 (-mquad-memory): Likewise.
424 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
426 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
428 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
429 (rs6000_debug_vector_unit): Add p8_vector.
430 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
431 definitions. Also print fusion state.
432 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
433 (rs6000_builtin_mask_calculate): Add power8 builtin support.
434 (rs6000_option_override_internal): Add support for power8.
435 (rs6000_common_init_builtins): Add debugging for skipped builtins
437 (rs6000_adjust_cost): Add power8 support.
438 (rs6000_issue_rate): Likewise.
439 (insn_must_be_first_in_group): Likewise.
440 (insn_must_be_last_in_group): Likewise.
441 (force_new_group): Likewise.
442 (rs6000_register_move_cost): Likewise.
443 (rs6000_opt_masks): Likewise.
445 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
446 power8 capable assembler, default to power7 options.
447 (TARGET_DIRECT_MOVE): Likewise.
448 (TARGET_CRYPTO): Likewise.
449 (TARGET_P8_VECTOR): Likewise.
450 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
451 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
452 (VECTOR_MEM_P8_VECTOR_P): Likewise.
453 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
454 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
455 (TARGET_XSCVDPSPN): Likewise.
456 (TARGET_XSCVSPDPN): Likewsie.
457 (TARGET_SYNC_HI_QI): Likewise.
458 (TARGET_SYNC_TI): Likewise.
459 (MASK_CRYPTO): Likewise.
460 (MASK_DIRECT_MOVE): Likewise.
461 (MASK_P8_FUSION): Likewise.
462 (MASK_P8_VECTOR): Likewise.
463 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
464 temporary used by some of the direct move instructions to get two FP
465 temporary registers does not force creation of a stack frame.
466 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
467 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
468 that any VSX registers are tieable, even if they are also an
470 (r6000_reg_class_enum): Add wm, wr, wv constraints.
471 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
472 (RS6000_BTM_CRYPTO): Likewise.
473 (RS6000_BTM_COMMON): Likewise.
475 * config/rs6000/rs6000.md (cpu attribute): Add power8.
476 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
477 (enum rs6000_vector): Add power8 vector support.
480 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
484 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
485 (any_sibcall_could_use_r3): this and handle indirect calls.
486 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
488 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
490 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
492 2013-05-22 Richard Biener <rguenther@suse.de>
495 * profile.c (branch_prob): Do not split blocks that are
496 abnormally receiving from ECF_RETURNS_TWICE functions.
498 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
500 * recog.c (offsettable_address_addr_space_p): Fix calculation of
501 address mode. Move pointer mode initialization to the same place.
503 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
505 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
506 while it has any effect.
508 2013-05-21 Easwaran Raman <eraman@google.com>
510 PR tree-optimization/57322
511 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
512 UID of the statement added to the BB to be 1.
514 2013-05-21 Jakub Jelinek <jakub@redhat.com>
516 PR tree-optimization/57331
517 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
518 of conversion from pointer type to integral type with integer.
520 2013-05-21 Martin Jambor <mjambor@suse.cz>
523 * ipa-prop.c (ipa_read_node_info): Process param_used and
524 controlled_uses in the same order as when writing.
526 2013-05-21 Magnus Granberg <baldrick@free.fr>
529 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
531 2013-05-21 Richard Biener <rguenther@suse.de>
533 PR tree-optimization/57318
534 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
535 estimate stmts with side-effects as likely eliminated.
537 2013-05-21 Richard Biener <rguenther@suse.de>
539 PR tree-optimization/57330
540 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
541 preserve the call stmts fntype.
543 2013-05-21 Richard Biener <rguenther@suse.de>
545 PR tree-optimization/57303
546 * tree-ssa-sink.c (statement_sink_location): Improve killing
547 stmt detection and properly handle self-assignments.
549 2013-05-21 Christian Bruel <christian.bruel@st.com>
551 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
552 spanning registers. LEAF_REG_REMAP is supported only for contiguous
553 registers. Set register size out of the PARALLEL loop.
555 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
558 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
559 (*fmasf4, *fmasf4_media): New insns.
561 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
563 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
564 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
565 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
566 (mips_idiv_insns): Update the comments to say that the returned
567 instruction counts are in units of BASE_INSN_LENGTH.
568 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
569 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
570 using 2 rather than 4 as the length of indirect MIPS16 and
571 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
572 length of a NOP. Don't divide MIPS16 lengths by 2.
573 (mips16_split_long_branches): Assume a branch is long if the
574 length is greater than 4 rather than 8.
575 * config/mips/mips.md (length): Give MIPS16 lengths directly,
576 rather than multiplying them by 2. Multiply instruction counts
577 by BASE_INSN_LENGTH rather than 4.
578 (*jump_mips16, tls_get_tp_mips16_<mode>)
579 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
581 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
583 * config/mips/mips.md (extended_mips16): Remove branch case.
584 (length): Remove duplicated extended_mips16 test.
586 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
588 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
590 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
592 * recog.h (Recog_data): Rename to...
593 (recog_data_d): ...this.
594 (recog_data): Update accordingly.
595 * recog.c (recog_data): Likewise.
596 * reload.c (save_recog_data): Likewise.
597 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
598 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
600 2013-05-17 Julian Brown <julian@codesourcery.com>
602 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
603 found in a REG_EQUAL note, invalidate it.
605 2013-05-17 Easwaran Raman <eraman@google.com>
607 * tree-ssa-reassoc.c (find_insert_point): New function.
608 (insert_stmt_after): Likewise.
609 (get_def_stmt): Likewise.
610 (ensure_ops_are_available): Likewise.
611 (not_dominated_by): Likewise.
612 (rewrite_expr_tree): Do not move statements beyond what is
613 necessary. Remove call to swap_ops_for_binary_stmt...
614 (reassociate_bb): ... and move it here.
615 (build_and_add_sum): Assign UIDs for new statements.
616 (linearize_expr): Likewise.
617 (do_reassoc): Renumber gimple statement UIDs.
619 2013-05-17 Jan Hubicka <jh@suse.cz>
621 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
623 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
624 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
626 (output_weakrefs): Update.
628 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
629 Martin Jambor <mjambor@suse.cz>
632 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
633 value that corresponds to the given aggval is found in values vector.
635 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
637 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
638 sse, sse2, sse3, ssse3 and sse4a flags to options.
640 2013-05-17 David Malcolm <dmalcolm@redhat.com>
642 * gengtype-state.c: (s_expr_writer): New class, to handle
643 prettifying of output layout of s-expressions.
644 (state_writer): New class, to write out gtype.state.
645 (state_written_type_count): Move this variable into member data of
647 (s_expr_writer::s_expr_writer): New code: constructor for new class
648 (state_writer::state_writer(): ditto
649 (s_expr_writer::write_new_line): New function
650 (s_expr_writer::write_any_indent): ditto
651 (s_expr_writer::begin_s_expr): ditto
652 (s_expr_writer::end_s_expr): ditto
653 (write_state_fileloc): convert to method of state_writer...
654 (state_writer:: write_state_fileloc): ...and use methods of
655 s_expr_writer to write indentation into the gtype.state output file
656 to visually represent the hierarchical structure of the list
658 (write_state_fields): ditto, renaming to...
659 (state_writer::write_state_fields)
660 (write_state_a_string): ditto, renaming to...
661 (state_writer::write_state_a_string)
662 (write_state_string_option): ditto, renaming to...
663 (state_writer::write_state_string_option)
664 (write_state_type_option): ditto, renaming to...
665 (state_writer::write_state_type_option)
666 (write_state_nested_option): ditto, renaming to...
667 (state_writer::write_state_nested_option)
668 (write_state_option): ditto, renaming to...
669 (state_writer::write_state_option)
670 (write_state_options): ditto, renaming to...
671 (state_writer::write_state_options)
672 (write_state_lang_bitmap): ditto, renaming to...
673 (state_writer::write_state_lang_bitmap)
674 (write_state_version): ditto, renaming to...
675 (state_writer::write_state_version)
676 (write_state_scalar_type): ditto, renaming to...
677 (state_writer::write_state_scalar_type)
678 (write_state_string_type): ditto, renaming to...
679 (state_writer::write_state_string_type)
680 (write_state_undefined_type): ditto, renaming to...
681 (state_writer::write_state_undefined_type)
682 (write_state_struct_union_type): ditto, renaming to...
683 (state_writer::write_state_struct_union_type)
684 (write_state_struct_type): ditto, renaming to...
685 (state_writer::write_state_struct_type)
686 (write_state_user_struct_type): ditto, renaming to...
687 (state_writer::write_state_user_struct_type)
688 (write_state_lang_struct_type): ditto, renaming to...
689 (state_writer::write_state_lang_struct_type)
690 (write_state_param_struct_type): ditto, renaming to...
691 (state_writer::write_state_param_struct_type)
692 (write_state_pointer_type): ditto, renaming to...
693 (state_writer::write_state_pointer_type)
694 (write_state_array_type): ditto, renaming to...
695 (state_writer::write_state_array_type)
696 (write_state_gc_used): ditto, renaming to...
697 (state_writer::write_state_gc_used)
698 (write_state_common_type_content): ditto, renaming to...
699 (state_writer::write_state_common_type_content)
700 (write_state_type): ditto, renaming to...
701 (state_writer::write_state_type)
702 (write_state_pair_list): ditto, renaming to...
703 (state_writer::write_state_pair_list)
704 (write_state_pair): ditto, renaming to...
705 (state_writer::write_state_pair)
706 (write_state_typedefs): ditto, renaming to...
707 (state_writer::write_state_typedefs)
708 (write_state_structures): ditto, renaming to...
709 (state_writer::write_state_structures)
710 (write_state_param_structs): ditto, renaming to...
711 (state_writer::write_state_param_structs)
712 (write_state_variables): ditto, renaming to...
713 (state_writer::write_state_variables)
714 (write_state_srcdir): ditto, renaming to...
715 (state_writer::write_state_srcdir)
716 (write_state_files_list): ditto, renaming to...
717 (state_writer::write_state_files_list)
718 (write_state_languages): ditto, renaming to...
719 (state_writer::write_state_languages)
720 (write_state): create a state_writer instance and use it when
721 writing out the state file
723 2013-05-17 Mike Stump <mikestump@comcast.net>
725 PR rtl-optimization/57304
726 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
727 accessing DF_REF_REAL_LOC.
729 2013-05-17 Jakub Jelinek <jakub@redhat.com>
731 PR rtl-optimization/57281
732 PR rtl-optimization/57300
733 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
734 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
735 what the other splitter did if the registers are dead.
737 2013-05-17 Richard Biener <rguenther@suse.de>
739 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
742 2013-05-17 Jakub Jelinek <jakub@redhat.com>
744 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
747 2013-05-17 Marek Polacek <polacek@redhat.com>
749 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
750 length when doing non-zero store of storing '\0' to '\0'.
752 2013-05-17 Jakub Jelinek <jakub@redhat.com>
754 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
755 vect_external_def oprnd1 with loop_vinfo, try to emit
756 optional cast, negation and and stmts on the loop preheader
757 edge instead of into the pattern def seq.
759 PR tree-optimization/57051
760 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
761 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
763 2013-05-16 Nick Clifton <nickc@redhat.com>
765 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
766 (rl78_is_naked_func): New function.
767 (rl78_expand_prologue): Skip prologue generation for naked
769 (rl78_expand_epilogue): Skip epilogue generation for naked
771 * doc/extend.texi (naked): Add RL78 to the list of processors
772 that supports this attribute.
774 2013-05-16 Jeff Law <law@redhat.com>
776 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
778 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
780 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
781 cache parameters using detect_caches_amd also for CYRIX,
782 NSC and TM2 signatures.
784 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
785 Dzianis Kahanovich <mahatma@eu.by>
789 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
790 VIA/Centaur processors and determine their cache parameters
791 using detect_caches_amd.
793 2013-05-16 Teresa Johnson <tejohnson@google.com>
795 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
796 (rtl_verify_edges): New function.
797 (rtl_verify_bb_insns): Ditto.
798 (rtl_verify_bb_pointers): Ditto.
799 (rtl_verify_bb_insn_chain): Ditto.
800 (rtl_verify_fallthru): Ditto.
801 (rtl_verify_bb_layout): Ditto.
802 (rtl_verify_flow_info_1): Outline checks into new functions.
803 (rtl_verify_flow_info): Ditto.
805 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
807 * cfghooks.c (copy_bbs): Add update_dominance argument.
808 * cfghooks.h (copy_bbs): Update prototype.
809 * tree-cfg.c (gimple_duplicate_sese_region):
810 Add update_dominance argument.
811 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
812 * tree-ssa-loop-ch.c (copy_loop_headers): Update
813 gimple_duplicate_sese_region call.
814 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
815 Update copy_bbs call.
816 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
817 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
819 2013-05-16 Jakub Jelinek <jakub@redhat.com>
821 * tree-vectorizer.h (NUM_PATTERNS): Increment.
822 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
823 vect_recog_rotate_pattern.
824 (vect_recog_rotate_pattern): New function.
826 2013-05-16 Jason Merrill <jason@redhat.com>
828 * Makefile.in (LLINKER): New variable.
829 (mostlyclean): Remove link mutex.
830 * configure.ac: Handle --enable-link-mutex.
831 * lock-and-run.sh: New script.
833 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
836 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
839 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
841 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
843 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
845 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
846 * config/arm/arm.c (next_consecutive_mem): New function.
847 (gen_movmem_ldrd_strd): Likewise.
848 * config/arm/arm.md (movmemqi): Update condition and code.
849 (unaligned_loaddi, unaligned_storedi): New patterns.
851 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
853 * config.gcc: Obsolete *-*-solaris2.9*.
854 * doc/install.texi (Specific, *-*-solaris2*): Document it.
856 2013-05-16 Richard Biener <rguenther@suse.de>
858 * passes.c (init_optimization_passes): Move pass_parallelize_loops
859 earlier, after GRAPHITE transforms and IV canonicalization.
861 2013-05-16 Jakub Jelinek <jakub@redhat.com>
863 * omp-low.c (extract_omp_for_data): For collapsed loops,
864 if at least one of the loops is known at compile time to
865 iterate zero times, set count to 0.
866 (expand_omp_regimplify_p): New function.
867 (expand_omp_for_generic): For collapsed loops, if at least
868 one of the loops isn't known to iterate at least once,
869 add runtime check with setting count to 0.
870 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
871 For unsigned types if it isn't known at compile time that
872 the loop will iterate at least once, add runtime check to bypass
873 the whole loop if initial condition isn't true.
875 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
877 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
879 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
882 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
883 transformations to avoid an infinite loop.
885 2013-05-16 Marek Polacek <polacek@redhat.com>
887 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
889 2013-05-15 Leif Ekblad <leif@rdos.net>
891 * config/i386/i386.c (ix86_decompose_address): Use
892 DEFAULT_TLS_SEG_REG to access TLS segment register.
893 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
894 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
895 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
897 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
900 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
901 sibling calls to functions that would normally be lazily bound,
902 unless $gp is call-clobbered.
904 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
906 * config/i386/i386.c (ix86_option_override_internal): Update
907 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
908 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
909 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
910 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
912 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
914 2013-05-15 Andreas Schwab <schwab@suse.de>
916 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
917 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
920 2013-05-15 Teresa Johnson <tejohnson@google.com>
922 * loop-unroll.c (report_unroll_peel): Check decision before
923 emitting unroll/peel message.
925 2013-05-15 Teresa Johnson <tejohnson@google.com>
927 * function.h (has_bb_partition): New rtl_data flag.
928 (bb_reorder_complete): Ditto.
929 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
930 instead of flag_reorder_blocks_and_partition.
931 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
932 with some enhancements.
933 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
934 * bb-reorder.c (connect_traces): Check for has_bb_partition
935 instead of flag_reorder_blocks_and_partition.
936 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
937 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
938 verify_hot_cold_block_grouping.
939 (partition_hot_cold_basic_blocks): Set has_bb_partition.
941 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
944 * config/arm/predicates.md (call_insn_operand): New predicate.
945 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
946 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
947 if insn is not a tail call.
948 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
950 * config/arm/arm.h (enum reg_class): New caller save register class.
951 (REG_CLASS_NAMES): Likewise.
952 (REG_CLASS_CONTENTS): Likewise.
953 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
956 2013-05-15 Richard Biener <rguenther@suse.de>
958 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
959 of MSG_OPTIMIZED_LOCATIONS.
960 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
961 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
963 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
964 of MSG_OPTIMIZED_LOCATIONS.
965 (execute_vect_slp): Likewise.
966 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
967 (vect_create_cond_for_alias_checks): Likewise.
968 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
969 (vect_recog_widen_mult_pattern): Likewise.
970 (vect_recog_widen_sum_pattern): Likewise.
971 (vect_recog_over_widening_pattern): Likewise.
972 (vect_recog_widen_shift_pattern): Likewise.
973 (vect_recog_vector_vector_shift_pattern): Likewise.
974 (vect_recog_divmod_pattern): Likewise.
975 (vect_recog_mixed_size_cond_pattern): Likewise.
976 (vect_recog_bool_pattern): Likewise.
977 (vect_pattern_recog_1): Likewise.
979 2013-05-15 Martin Jambor <mjambor@suse.cz>
981 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
982 non-functions to builtin_unreachable.
983 * ipa-inline-transform.c (inline_call): Do not assert estimates were
984 correct when new direct edges were discovered.
986 2013-05-15 Martin Jambor <mjambor@suse.cz>
988 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
989 header, print symbol order instead of node uid, print more information
990 about indirect edge targets.
991 (ipa_make_edge_direct_to_target): Print symbol order instead of node
993 (ipa_make_edge_direct_to_target): Likewise.
994 (remove_described_reference): Likewise.
995 (propagate_controlled_uses): Likewise.
996 (ipa_print_node_params): Also print symbol order.
997 (ipcp_transform_function): Print symbol order instead of node uids.
998 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
999 (cgraph_get_create_real_symbol_node): Likewise.
1000 * ipa-cp.c (print_lattice): Likewise.
1001 (print_all_lattices): Likewise.
1002 (determine_versionability): Likewise.
1003 (initialize_node_lattices): Likewise.
1004 (estimate_local_effects): Likewise.
1005 (update_profiling_info): Likewise.
1006 (create_specialized_node): Likewise.
1007 (perhaps_add_new_callers): Likewise.
1008 (decide_about_value): Likewise.
1009 (decide_whether_version_node): Likewise.
1010 (identify_dead_nodes): Likewise.
1011 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1012 (dump_inline_summary): Likewise.
1013 (estimate_node_size_and_time): Likewise.
1014 (inline_analyze_function): Likewise.
1015 * ipa-inline.c (report_inline_failed_reason): Likewise.
1016 (want_early_inline_function_p): Likewise.
1017 (edge_badness): Likewise.
1018 (update_edge_key): Likewise.
1019 (inline_small_functions): Likewise. Add dumping of order to two other
1021 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1022 instead of node uids.
1023 (propagate_pure_const): Likewise.
1024 (propagate_pure_const): Likewise.
1025 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1026 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1027 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1029 * tree-pretty-print.c (dump_function_header): Likewise.
1030 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1031 Print symbol order instead of node uids.
1033 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1035 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1036 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1038 2013-05-15 Richard Biener <rguenther@suse.de>
1040 PR tree-optimization/57275
1041 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1042 return value for fail to do runtime alias checks for gather loads.
1044 2013-05-15 Jan Hubicka <jh@suse.cz>
1048 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1049 weakrefs are not external.
1050 (lto_symtab_merge_decls): Fix thinko when dealing with
1051 non-lto_symtab decls.
1052 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1053 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1054 * varpool.c (dump_varpool_node): Dump more flags.
1056 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1058 * config/i386/i386.c (processor_alias_table): Add instruction
1059 FSGSBASE for AMD bdver3 architecture.
1061 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1063 * tree.c (warn_deprecated_use): Print file:line using locus color.
1064 * diagnostic.c (diagnostic_report_current_module): Print file:line
1065 and file:line:column using locus color.
1067 2013-05-14 Mike Stump <mikestump@comcast.net>
1069 * gdbinit.in: Add __null.
1071 2013-05-14 Mike Stump <mikestump@comcast.net>
1073 * recog.h: Rename struct recog_data to Recog_data.
1074 * recog.c: Likewise.
1075 * reload.c (can_reload_into): Likewise.
1076 * config/picochip/picochip.c: Likewise.
1078 2013-05-14 Mike Stump <mikestump@comcast.net>
1080 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1082 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1084 * resource.h (struct resources): Remove unch_memory member.
1085 (CLEAR_RESOURCE): Don't clear unch_memory.
1086 * resource.c (mark_referenced_resources): Don't set it.
1087 (mark_set_resources): Likewise.
1088 (mark_target_live_regs): Don't clear it.
1089 (init_resource_info): Likewise.
1090 * reorg.c (resource_conflicts_p): Don't compare it.
1091 (redundant_insn): Don't set it.
1093 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1095 * emit-rtl.c (next_label): Remove unused function.
1096 (skip_consecutive_labels, link_cc0_insns): Move to ...
1097 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1098 only place where these functions are used, and make them static.
1100 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1102 * fold-const.c (fold_negate_expr): Handle vectors.
1103 (fold_truth_not_expr): Make it static.
1104 (fold_invert_truthvalue): New static function.
1105 (invert_truthvalue_loc): Handle vectors. Do not call
1106 fold_truth_not_expr directly.
1107 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1108 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1109 (fold_comparison): Handle vector constants.
1110 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1111 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1112 * tree.h (fold_truth_not_expr): Remove declaration.
1114 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1116 * config/aarch64/aarch64-simd.md
1117 (aarch64_vcond_internal<mode>): Rename to...
1118 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1119 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1120 float modes. Clarify all iterator modes.
1121 (vcond<mode><mode>): Use new name for vcond expanders.
1122 (vcond<v_cmp_result><mode>): Likewise.
1123 (vcondu<mode><mode>: Likewise.
1124 * config/aarch64/iterators.md (VDQF_COND): New.
1126 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1129 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1130 variable for the shift amount. Check that we shift by non-negative
1133 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1136 * config/arm/arm.h (EPILOGUE_USES): Only return true
1137 for LR_REGNUM after epilogue_completed.
1139 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1141 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
1144 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1147 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1148 and Solaris 11+/x86 with gld.
1149 * configure: Regenerate.
1151 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1153 * expmed.c (expand_shift_1): Canonicalize rotates by
1154 constant bitsize / 2 to bitsize - 1.
1155 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
1156 case ROTATERT>: Likewise.
1159 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1161 * config/i386/i386.md (rotateinv): New code attr.
1162 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1163 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1164 roll $31, %eax, etc.
1166 2013-05-14 Richard Biener <rguenther@suse.de>
1169 * tree-eh.c (sink_clobbers): Give up for successors with
1170 multiple predecessors and no virtual uses.
1172 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1174 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1175 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1177 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1180 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1181 the case when both op0 and op1 have VOIDmode.
1183 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1185 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1186 in multiply-accumulate mode.
1188 2013-05-13 Guozhi Wei <carrot@google.com>
1190 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1192 2013-05-13 Kai Tietz <ktietz@redhat.com>
1195 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
1196 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
1197 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
1198 * config/i386/i386.c (ix86_option_override_internal): Likewise.
1199 (ix86_expand_prologue): Likewise.
1200 (ix86_expand_split_stack_prologue): Likewise.
1201 (legitimate_pic_address_disp_p): Likewise.
1202 (legitimize_pic_address): Likewise.
1203 (legitimize_tls_address): Likewise.
1204 (legitimize_pe_coff_symbol): Likewise.
1205 (output_pic_addr_const): Likewise.
1206 (construct_plt_address): Likewise.
1207 (ix86_expand_call): Likewise.
1208 (x86_output_mi_thunk): Likewise.
1209 (x86_function_profiler): Likewise.
1211 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1213 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1214 similar switch cases.
1215 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1216 (aarch64_simd_mov_to_<mode>low): Delete.
1217 (aarch64_simd_mov_to_<mode>high): Delete.
1218 (move_lo_quad_<mode>): Add w<-r alternative.
1219 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1220 (aarch64_simd_mov_from_*): Update type attribute.
1221 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1224 2013-05-13 Jan Hubicka <jh@suse.cz>
1226 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1227 * config/i386/i386.c (ix86_compute_frame_layout,
1228 ix86_expand_epilogue, emit_i387_cw_initialization,
1229 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1230 ix86_local_alignment): Fix use of size/speed predicates.
1232 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1234 PR tree-optimization/45216
1235 PR tree-optimization/57157
1236 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1237 the (-Y) & (B - 1) variant if OP is |.
1238 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1239 return shifted. Use (-op1) & (prec - 1) as other_amount
1240 instead of prec - op1.
1242 2013-05-13 Martin Jambor <mjambor@suse.cz>
1245 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1246 (ipa_constant_data): New type.
1247 (ipa_jump_func): Use ipa_constant_data to hold information about
1248 constant jump functions.
1249 (ipa_get_jf_constant): Adjust to jump function type changes.
1250 (ipa_get_jf_constant_rdesc): New function.
1251 (ipa_param_descriptor): New field controlled_uses.
1252 (ipa_get_controlled_uses): New function.
1253 (ipa_set_controlled_uses): Likewise.
1254 * ipa-ref.h (ipa_find_reference): Declare.
1255 * ipa-prop.c (ipa_cst_ref_desc): New type.
1256 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1258 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1259 New parameter cs. Adjust all callers.
1260 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1261 (remove_described_reference): New function.
1262 (jfunc_rdesc_usable): Likewise.
1263 (try_make_edge_direct_simple_call): Decrement controlled use count,
1264 attempt to remove reference if it hits zero.
1265 (combine_controlled_uses_counters): New function.
1266 (propagate_controlled_uses): Likewise.
1267 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1268 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1269 (ipa_print_node_params): Print described use counter.
1270 (ipa_write_jump_function): Adjust to jump function type changes.
1271 (ipa_read_jump_function): New parameter CS, pass it to
1272 ipa_set_jf_constant. Adjust caller.
1273 (ipa_write_node_info): Stream controlled use count
1274 (ipa_read_node_info): Likewise.
1275 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1277 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1278 count. Remove cloning-added reference if it reaches zero.
1279 * ipa-ref.c (ipa_find_reference): New function.
1281 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1283 * config/i386/i386.c (processor_target_table): Modified default
1284 alignment values for AMD BD and BT architectures.
1286 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
1288 * tree-vect-generic.c (uniform_vector_p): Move ...
1289 * tree.c (uniform_vector_p): ... here.
1290 * tree.h (uniform_vector_p): Declare it.
1291 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1294 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1296 PR tree-optimization/57230
1297 * tree-ssa-strlen.c (handle_char_store): Record length for
1298 array store from STRING_CST.
1300 PR tree-optimization/57230
1301 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1304 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1306 * config/epiphany/epiphany.c (epiphany_init): Check size of
1307 NUM_MODES_FOR_MODE_SWITCHING.
1308 (epiphany_expand_prologue):
1309 Remove CONFIG_REGNUM initial value handling code.
1310 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1311 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
1312 (emit_set_fp_mode, epiphany_mode_after): Likewise.
1313 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1314 Don't return 1 for FP_MODE_NONE.
1315 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1316 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1317 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1318 * config/epiphany/epiphany.md (save_config): New pattern.
1320 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
1322 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1324 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
1326 * config/i386/i386.md (memory): Handle sseishft1.
1327 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1328 (*vec_extractv2di_1): Ditto.
1330 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1332 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1335 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1337 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1338 Add mthumb/march=armv7-a multilib.
1339 Add mthumb/march=armv7-r multilib.
1340 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1342 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1344 * config/v850/t-rtems: Add more multilibs.
1346 2013-05-10 Richard Biener <rguenther@suse.de>
1348 PR tree-optimization/57214
1349 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1350 not propagate from SSA names that occur in abnormal PHI nodes.
1352 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1354 * stor-layout.c (element_precision): New function.
1355 * machmode.h (element_precision): Declare it.
1356 * tree.c (build_minus_one_cst): New function.
1357 (element_precision): Likewise.
1358 * tree.h (build_minus_one_cst): Declare new function.
1359 (element_precision): Likewise.
1360 * fold-const.c (operand_equal_p): Use element_precision.
1361 (fold_binary_loc): Handle vector types.
1362 * convert.c (convert_to_integer): Use element_precision.
1363 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1366 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1368 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1369 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1370 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1371 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1372 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1373 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1374 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1375 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1376 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1377 (Uuw8): New constraints.
1378 (Usb4): Move into alphabetical order.
1379 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1380 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1381 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1382 previously unnamed patterns.
1383 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1384 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1385 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1386 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1387 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1388 of specific lengths.
1390 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1392 * config/i386/i386.md (rotateinv): New code attr.
1393 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1394 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1395 roll $31, %eax, etc.
1397 PR tree-optimization/45216
1398 PR tree-optimization/57157
1399 * tree-ssa-forwprop.c (simplify_rotate): New function.
1400 (ssa_forward_propagate_and_combine): Call it.
1402 2013-05-10 Richard Biener <rguenther@suse.de>
1404 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1405 disable peeling when we version for aliasing.
1406 (vector_alignment_reachable_p): Honor explicit user alignment.
1407 (vect_supportable_dr_alignment): Likewise.
1408 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1409 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1410 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1411 then peeling to arrange for the cost-model check to come first.
1413 2013-05-10 Alan Modra <amodra@gmail.com>
1415 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1416 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1417 * configure: Regenerate.
1419 2013-05-10 Alan Modra <amodra@gmail.com>
1422 * varasm.c (default_elf_select_section): Move !DECL_P check..
1423 (get_named_section): ..to here before calling get_section_name.
1425 (default_section_type_flags): Add DECL_P check.
1426 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1427 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1429 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1431 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1432 When using gen_stack_adjust_str with a register offset, add a
1433 REG_FRAME_RELATED_EXPR note.
1435 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
1437 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
1438 (*vec_extractv4si_zext_mem): Ditto.
1439 (*vec_extractv2di): Add 0->x and x->x alternatives.
1440 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
1441 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
1443 2013-05-09 Jason Merrill <jason@redhat.com>
1445 N3639 C++1y VLA support
1446 * gimplify.c (gimplify_vla_decl): Don't touch an existing
1449 * tree.c (build_constructor_va): New.
1450 * tree.h: Declare it.
1452 2013-05-09 Martin Jambor <mjambor@suse.cz>
1455 * gimple-fold.c (canonicalize_constructor_val): Call
1456 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1458 2013-05-09 Jan Hubicka <jh@suse.cz>
1459 Richard Biener <rguenther@suse.de>
1462 * symtab.c (symtab_make_decl_local): Do not add private names.
1464 2013-05-09 Jan Hubicka <jh@suse.cz>
1467 * symtab.c (insert_to_assembler_name_hash): Handle clones.
1468 (unlink_from_assembler_name_hash): Likewise.
1469 (symtab_prevail_in_asm_name_hash, symtab_register_node,
1470 symtab_unregister_node, symtab_initialize_asm_name_hash,
1471 change_decl_assembler_name): Update.
1473 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
1475 * config/aarch64/aarch64.md: New movtf split.
1476 (*movtf_aarch64): Update.
1477 (aarch64_movdi_tilow): Handle TF modes and rename to
1478 aarch64_movdi_<mode>low.
1479 (aarch64_movdi_tihigh): Handle TF modes and rename to
1480 aarch64_movdi_<mode>high
1481 (aarch64_movtihigh_di): Handle TF modes and rename to
1482 aarch64_mov<mode>high_di
1483 (aarch64_movtilow_di): Handle TF modes and rename to
1484 aarch64_mov<mode>low_di
1485 (aarch64_movtilow_tilow): Remove spurious whitespace.
1486 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
1488 (aarch64_print_operand): Update.
1490 2013-05-09 Alan Modra <amodra@gmail.com>
1492 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
1494 * configure: Regenerate.
1496 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
1498 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
1499 splitter preparation statements.
1500 * config/i386/sse.md (*vec_extract* splitters): Ditto.
1501 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
1504 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1506 * gimple-ssa-strength-reduction.c (count_candidates): Change
1507 return value to int.
1508 (analyze_candidates_and_replace): Change type of length to int.
1510 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
1512 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
1513 (*vec_extract<mode>): Use VI12_128 mode iterator.
1514 (*vec_extract<mode>_mem): Ditto.
1515 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
1518 2013-05-08 Diego Novillo <dnovillo@google.com>
1523 2012-08-17 Diego Novillo <dnovillo@google.com>
1526 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1527 * config.in: Regenerate.
1528 * configure: Regenerate.
1529 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
1531 2013-05-08 Jan Hubicka <jh@suse.cz>
1534 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
1535 * cgraph.h (symtab_node_base): Add unique_name.
1536 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1537 input_overwrite_node, input_varpool_node): Stream unique_name.
1538 * cgraphclones.c (cgraph_create_virtual_clone,
1539 cgraph_function_versioning): Set unique_name.
1540 * ipa.c (function_and_variable_visibility): Set unique_name.
1542 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1544 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
1545 (alloc_cand_and_find_basis): Restrict conditional candidate
1546 processing to CAND_MULTs.
1548 2013-05-08 Jan Hubicka <jh@suse.cz>
1551 lto-symtab.c (lto_symtab_symbol_p): New function.
1552 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
1553 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
1554 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
1555 Skip static symbols.
1557 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
1559 PR tree-optimization/57200
1560 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1561 Only call inform if the preceding warning_at returns true.
1563 2013-05-07 Han Shen <shenhan@google.com>
1565 * cfgexpand.c (record_or_union_type_has_array_p): New function.
1566 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
1567 * common.opt (fstack-protector-strong): New option.
1568 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
1569 * doc/invoke.texi (Optimization Options): Document
1570 "-fstack-protector-strong".
1571 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
1573 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1575 * config/mips/mips.c (mips_machine_reorg2): Return 0.
1577 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
1579 * ira.c (update_equiv_regs): Add insn having equiv memory even if
1580 it is not lhs of the insn.
1581 (setup_reg_equiv): Remove insn having equiv memory which it is not
1583 * lra-constraints.c (process_address): Try to improve generation
1584 code for address base + disp.
1585 (lra_constraints): Make correct the code for checking insn setting
1586 up backward equivalence. Remove insn only if it is in the init
1588 * lra-eliminations.c (update_reg_eliminate): Change return value.
1589 (lra_eliminate): Use the result.
1591 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
1593 * config/i386/sse.md (ssescalarnummask): New mode attribute.
1594 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
1595 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
1596 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
1597 register target operands.
1598 (*vec_extractv8hi_sse2): New pattern.
1599 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
1600 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
1601 (*vec_extract<mode>_mem): New insn and split pattern.
1603 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1605 * config/arm/arm.c (arm_asan_shadow_offset): New function.
1606 (TARGET_ASAN_SHADOW_OFFSET): Define.
1607 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
1608 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
1610 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1612 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
1613 (incr_vec_index): Return -1 if increment not found.
1614 (create_add_on_incoming_edge): Assert if increment not found.
1615 (record_increment): Limit number of increments recorded.
1616 (all_phi_incrs_profitable): Return false if an increment not found.
1617 (replace_profitable_candidates): Don't process increments that were
1619 (analyze_candidates_and_replace): Limit size of incr_vec.
1621 2013-05-07 Richard Biener <rguenther@suse.de>
1623 * calls.c (special_function_p): setjmp-like functions are leaf.
1624 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
1625 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
1627 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
1629 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
1630 (aarch64_simd_mov<mode>): New expander.
1631 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
1632 (aarch64_simd_mov_to_<mode>high): Likewise.
1633 (aarch64_simd_mov_from_<mode>low): Likewise.
1634 (aarch64_simd_mov_from_<mode>high): Likewise.
1635 (aarch64_dup_lane<mode>): Update.
1636 (aarch64_dup_lanedi): New instruction pattern.
1637 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
1638 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
1640 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1642 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
1643 (replace_mult_candidate): Remove unnecessary argument; remove
1644 unnecessary parameter from call to introduce_cast_before_cand.
1645 (replace_unconditional_candidate): Remove unnecessary parameter
1646 from call to replace_mult_candidate.
1647 (replace_conditional_candidate): Likewise.
1648 (insert_initializers): Use make_temp_ssa_name.
1649 (introduce_cast_before_cand): Remove unnecessary argument; use
1651 (replace_one_candidate): Remove unnecessary argument; remove
1652 unnecessary parameter from calls to introduce_cast_before_cand.
1653 (replace_profitable_candidates): Remove unnecessary parameters
1654 from calls to replace_one_candidate.
1656 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1658 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
1659 phi def as possibly hiding a basis for a CAND_ADD whose operands
1660 have been commuted in the analysis.
1661 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
1663 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1665 * config/aarch64/aarch64.md
1666 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
1667 shift value between 0-4.
1669 2013-05-07 Richard Biener <rguenther@suse.de>
1671 * double-int.h (rshift): New overload.
1672 * double-int.c (rshift): New function.
1673 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
1674 (create_reference_ops_from_ref): Remove.
1675 (vn_reference_insert): Use shared ops for constructing the
1676 reference and copy it.
1678 2013-05-07 Richard Biener <rguenther@suse.de>
1681 * tree-eh.c (sink_clobbers): Properly propagate
1682 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1684 2013-05-07 Jakub Jelinek <jakub@redhat.com>
1686 PR tree-optimization/57149
1687 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1688 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1689 collect_phi_def_edges, execute_late_warn_uninitialized): Use
1690 uninit_undefined_value_p instead of ssa_undefined_value_p.
1693 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1694 for modifier == EXPAND_INITIALIZER.
1696 2013-05-07 Anton Blanchard <anton@samba.org>
1698 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
1699 for powerpc64 little endian.
1700 * configure: Regenerate.
1702 2013-05-06 Graham Stott <grahams@btinternet.com>
1704 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
1705 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
1706 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
1707 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
1709 2013-05-06 Graham Stott <grahams@btinternet.com>
1711 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
1712 codes which allow non-lvalues.
1714 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
1716 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
1717 components are all 1s.
1718 (integer_minus_onep): New function.
1719 * tree.h (integer_minus_onep): Declare it.
1720 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
1721 integer_minus_onep instead of integer_all_onesp.
1723 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1726 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
1727 variations of these patterns.
1729 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
1731 * config/i386/i386.md (isa): Add x64_sse4 member.
1732 (enabled): Handle x64_sse4.
1733 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
1734 instruction for 64bit SSE4_1 targets. Update insn attributes.
1735 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
1736 instruction for SSE4_1 targets. Update insn attributes.
1737 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1738 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
1739 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
1741 (*vec_extractv4si): Rename from *sse4_1_pextrd.
1742 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
1743 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
1745 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1748 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1750 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
1752 * final.c (do_assembler_dialects): Don't handle curly braces and
1753 vertical bar escaped by % as dialect delimiters.
1754 (output_asm_insn): Print curly braces and vertical bar if escaped
1755 by % and ASSEMBLER_DIALECT defined.
1756 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
1757 * doc/tm.texi: Regenerated.
1759 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1761 * config/mips/mips.c: Include tree-pass.h.
1762 (mips_reorg): Split in pre- and post-dbr_schedule parts.
1763 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
1764 (pass_mips_machine_reorg2): New machine specific pass.
1765 (insert_pass_mips_machine_reorg2): New pass plugin definition.
1766 (mips_option_override): Register the new pass.
1767 * rtl.h (cleanup_barriers): Remove prototype.
1768 (dbr_schedule): Likewise.
1769 * jump.c (cleanup_barriers): Make static.
1770 * reorg.c (dbr_schedule): Likewise.
1772 2013-05-06 Richard Biener <rguenther@suse.de>
1774 PR tree-optimization/57185
1775 * tree-parloops.c (add_field_for_reduction): Handle anonymous
1778 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
1781 * config/i386/i386.c (add_parameter_dependencies): Add dependence
1782 between "first_arg" and "insn", not "last" and "insn".
1784 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1786 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
1787 (find_candidates_in_block): Re-enable slsr_process_phi.
1788 (create_phi_basis): Fix double counting of candidate adjustment.
1790 2013-05-06 Richard Biener <rguenther@suse.de>
1793 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
1794 the edge is also fallthru, preserve it and just clear the
1796 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
1797 also complex, preserve that and just clear the fallthru flag.
1798 * tree-inline.c (update_ssa_across_abnormal_edges): Also
1799 update virtual operands.
1801 2013-05-06 Alan Modra <amodra@gmail.com>
1803 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
1804 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
1805 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
1806 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
1807 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1808 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
1810 2013-05-06 Alan Modra <amodra@gmail.com>
1812 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
1813 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
1814 (DEFAULT_ASM_ENDIAN): Define.
1815 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1816 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
1817 Update -K PIC clause from sysv4.h.
1818 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
1819 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
1821 2013-05-06 Alan Modra <amodra@gmail.com>
1823 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
1824 twice for little-endian.
1825 (ashrdi3_no_power, ashrdi3): Support little-endian.
1827 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1830 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
1831 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
1833 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
1834 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
1835 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
1838 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
1839 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1841 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
1842 * config/pa/pa.opt: Make mbig-switch a no-op.
1843 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
1844 (CASE_VECTOR_MODE): Always return SImode.
1845 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
1846 for the !TARGET_BIG_SWITCH case.
1847 * config/pa/pa-linux.h: Likewise.
1848 * config/pa/pa-openbsd.h: Likewise.
1849 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
1850 * config/pa/pa.md (short_jump): Remove define_insn.
1851 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
1852 (casesi0): Remove define_insn.
1853 (type): Remove btable_branch.
1854 (pa_combine_type): Likewise.
1855 (in_nullified_branch_delay): Likewise.
1856 (in_call_delay): Likewise.
1857 (define_delay): Likewise.
1858 (define_insn_reservation "Z3"): Likewise.
1859 (define_insn_reservation "Z4"): Likewise.
1860 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
1861 (pa_adjust_insn_length): Remove adjustment for btable branches.
1862 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
1865 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
1867 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1868 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
1869 Add m->r,x alternatives.
1870 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
1871 splitters using SWI48x mode iterator.
1872 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
1873 TARGET_64BIT. Add m->x alternative.
1874 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
1875 Add o->x alternative. Enable for TARGET_SSE.
1876 (sse_storeq): Remove expander.
1877 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
1878 with memory input operand.
1879 (*vec_extractv2di_1 splitter): New.
1880 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
1881 * config/i386/i386.md (ssevecmodelower): New mode attribute.
1883 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1885 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
1886 (INT_LOWPART): Delete.
1887 (extract_MB): Adjust.
1888 (extract_ME): Adjust.
1889 (print_operand): Adjust.
1891 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1893 * config/rs6000/predicates.md (reg_or_add_cint_operand,
1894 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1895 (reg_or_logical_cint_operand, easy_fp_constant,
1896 logical_const_operand): Delete "CONST_DOUBLE" case.
1897 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
1898 "HOST_BITS_PER_WIDE_INT == 64" test.
1899 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
1900 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
1901 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
1902 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
1904 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
1905 CONST_DOUBLE DImode/VOIDmode case.
1906 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
1907 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1908 CONST_DOUBLE VOIDmode case.
1909 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1910 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
1911 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
1912 Delete CONST_DOUBLE case.
1913 (splitters for mov FMOVE64 const_double): Delete
1914 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1915 "HOST_BITS_PER_WIDE_INT >= 64" test.
1916 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
1918 (mov DI const_double): Delete.
1920 2013-05-04 Jakub Jelinek <jakub@redhat.com>
1922 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1923 on op shows all bits zero in mode of a lowpart subreg, return zero.
1925 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1928 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1929 to save TFmode registers and DImode to save TImode registers for
1930 caller save operations.
1931 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1932 mark being partially clobbered since they only use the first
1935 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1936 and TDmode only use the upper 64-bits of each VSX register.
1938 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1940 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1941 (find_candidates_in_block): Disable slsr_process_phi.
1943 2013-05-03 Guozhi Wei <carrot@google.com>
1945 * coverage.c (coverage_obj_init): Move the construction of gcov
1947 (build_init_ctor): ... here.
1949 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1951 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1952 (slsr_cand_d): Redefine def_phi.
1953 (stride_status, phi_adjust_status, count_phis_status): New enums.
1954 (find_phi_def): New.
1955 (find_basis_for_base_expr): New.
1956 (find_basis_for_candidate): Handle hidden bases.
1957 (alloc_cand_and_find_basis): Handle phi candidates.
1958 (slsr_process_phi): New.
1959 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1960 (create_mul_imm_cand): Likewise.
1961 (create_add_ssa_cand): Exclude phi base candidates.
1962 (create_add_imm_cand): Likewise.
1963 (slsr_process_cast): Likewise.
1964 (slsr_process_copy): Likewise.
1965 (find_candidates_in_block): Handle phi candidates.
1966 (dump_candidate): Likewise.
1967 (unconditional_cands): Delete.
1968 (unconditional_cands_with_known_stride_p): Delete.
1969 (phi_dependent_cand_p): New.
1970 (cand_increment): Handle phi-dependent candidates.
1971 (replace_dependent): Delete.
1972 (replace_mult_candidate): New.
1973 (replace_unconditional_candidate): New.
1974 (incr_vec_index): Move to avoid forward reference.
1975 (create_add_on_incoming_edge): New.
1976 (create_phi_basis): New.
1977 (replace_dependents): Delete.
1978 (replace_conditional_candidate): New.
1979 (phi_add_costs): New.
1980 (replace_uncond_cands_and_profitable_phis): New.
1981 (record_increment): Handle phi adjustments.
1982 (record_phi_increments): New.
1983 (record_increments): Handle phi adjustments.
1984 (phi_incr_cost): New.
1985 (lowest_cost_path): Handle phis.
1986 (total_savings): Likewise.
1987 (analyze_increments): Likewise.
1988 (ncd_with_phi): New.
1989 (ncd_of_cand_and_phis): New.
1990 (nearest_common_dominator_for_cands): Handle phi increments.
1991 (all_phi_incrs_profitable): New.
1992 (replace_profitable_candidates): Handle phi-dependent candidates.
1993 (analyze_candidates_and_replace): Likewise.
1995 2013-05-03 Teresa Johnson <tejohnson@google.com>
1998 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1999 do not exceed REG_BR_PROB_BASE.
2001 2013-05-03 Jeff Law <law@redhat.com>
2003 PR tree-optimization/57144
2004 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2005 operand of the condition will bit into the new type when eliminating
2006 a cast feeding a condition.
2008 2013-05-03 Jakub Jelinek <jakub@redhat.com>
2010 PR rtl-optimization/57130
2011 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2012 of COMPARE as in_code to the recursive call if needed.
2014 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
2016 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2017 (enabled): Handle new members.
2018 * config/i386/sse.md (*vec_concatv2si): Merge from
2019 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2020 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2022 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2024 PR tree-optimization/57027
2025 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2026 for fnms opportunity, check we got the prerequisite kind
2027 of tree / gimple before using accessor functions.
2029 2013-05-03 Richard Biener <rguenther@suse.de>
2031 * double-int.h (lshift): New overload without precision
2033 (operator *=, operator +=, operator -=): Move ...
2034 * double-int.c (operator *=, operator +=, operator -=): ... here
2035 and implement more efficiently.
2036 (mul_double_with_sign): Remove.
2037 (lshift_double): Adjust to take unsinged shift argument, push
2038 dispatching code to callers.
2039 (mul_double_wide_with_sign): Add early out for callers that
2040 are not interested in high parts or overflow.
2041 (lshift): New function.
2042 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2044 (lrotate, rrotate): Use logical shifts.
2045 * expr.c (get_inner_reference): Use lshift.
2046 * fixed-value.c (do_fixed_divide): Likewise.
2047 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2048 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2049 (indirect_refs_may_alias_p): Likewise.
2050 (stmt_kills_ref_p_1): Likewise.
2052 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2054 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2056 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2058 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2059 scalar form of FABD instruction.
2061 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2063 * lra-constraints.c (process_alt_operands): Add checking alt
2064 number to choose the best alternative.
2066 2013-05-02 Richard Biener <rguenther@suse.de>
2068 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2069 bitmap and its handling.
2070 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2072 2013-05-02 Richard Biener <rguenther@suse.de>
2075 * tree-inline.c (copy_loops): Properly handle removed loops.
2076 (copy_cfg_body): Mark destination loops for fixup if source
2079 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2082 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2083 generating simple_return for naked functions.
2085 2013-05-02 Martin Jambor <mjambor@suse.cz>
2088 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2089 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2091 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2092 ipa_agg_replacement_value structures.
2093 (known_aggs_to_agg_replacement_list): Likewise.
2094 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2095 (read_agg_replacement_chain): Likewise.
2096 (ipcp_transform_function): Also check that by_ref flags match.
2098 2013-05-02 Richard Biener <rguenther@suse.de>
2100 * graphds.h (struct graph): Add obstack member.
2101 * graphds.c (new_graph): Initialize obstack and allocate
2103 (add_edge): Allocate edge from the obstack.
2104 (free_graph): Free the obstack instead of all edges and vertices.
2106 2013-05-02 Teresa Johnson <tejohnson@google.com>
2108 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2110 * cfg.c (update_bb_profile_for_threading): Ditto.
2111 * tree-inline.c (copy_bb): Ditto.
2112 (copy_edges_for_bb): Ditto.
2113 (initialize_cfun): Ditto.
2114 (copy_cfg_body): Ditto.
2115 (expand_call_inline): Ditto.
2116 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2117 (estimate_node_size_and_time): Ditto.
2118 (inline_merge_summary): Ditto.
2119 * cgraphclones.c (cgraph_clone_edge): Ditto.
2120 (cgraph_clone_node): Ditto.
2121 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2122 (compute_trg_info): Ditto.
2124 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2126 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2127 S reg when fp attribute set.
2128 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2130 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2132 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2134 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2135 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2136 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2138 2013-05-02 Richard Biener <rguenther@suse.de>
2140 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2141 (struct instantiate_cache_entry): New type.
2142 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2143 (struct instantiate_cache_type): New type.
2144 (set_instantiated_value, get_instantiated_value): Remove.
2145 (get_instantiated_value_entry): New function.
2146 (instantiate_scev_name): Use the new cache and adjust.
2147 (instantiate_scev_poly): Adjust.
2148 (instantiate_scev_binary): Likewise.
2149 (instantiate_array_ref): Likewise.
2150 (instantiate_scev_convert): Likewise.
2151 (instantiate_scev_not): Likewise.
2152 (instantiate_scev_3): Likewise.
2153 (instantiate_scev_2): Likewise.
2154 (instantiate_scev_r): Likewise.
2155 (instantiate_scev): Likewise.
2156 (resolve_mixers): Likewise.
2158 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2161 * lra-constraints.c (best_small_class_operands_num): Remove.
2162 (process_alt_operands): Remove small_class_operands_num. Take
2163 small classes operands into losers and only if the operand is not
2164 matched. Modify debugging output.
2165 (curr_insn_transform): Remove best_small_class_operands_num.
2168 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2170 * config/aarch64/aarch64-builtins.c
2171 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2172 * config/aarch64/aarch64-simd-builtins.def
2173 (reduc_splus_): Add new modes.
2174 (reduc_uplus_): New.
2175 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2176 (reduc_uplus_v4sf): Likewise.
2177 (reduc_splus_v4sf): Likewise.
2178 (aarch64_addv<mode>): Likewise.
2179 (reduc_uplus_<mode>): Likewise.
2180 (reduc_splus_<mode>): Likewise.
2181 (aarch64_addvv2di): Likewise.
2182 (reduc_uplus_v2di): Likewise.
2183 (reduc_splus_v2di): Likewise.
2184 (aarch64_addvv2si): Likewise.
2185 (reduc_uplus_v2si): Likewise.
2186 (reduc_splus_v2si): Likewise.
2187 (reduc_<sur>plus_<mode>): New.
2188 (reduc_<sur>plus_v2di): Likewise.
2189 (reduc_<sur>plus_v2si): Likewise.
2190 (reduc_<sur>plus_v4sf): Likewise.
2191 (aarch64_addpv4sf): Likewise.
2192 * config/aarch64/arm_neon.h
2193 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2194 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2195 add UNSPEC_SADDV, UNSPEC_UADDV.
2197 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2199 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2201 * config/aarch64/arm_neon.h
2202 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2204 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2206 * config/aarch64/aarch64-builtins
2207 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2209 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2211 * config/aarch64/aarch64-simd-builtins.def
2213 (reduc_smin_): Likewise.
2214 (reduc_umax_): Likewise.
2215 (reduc_umin_): Likewise.
2216 (reduc_smax_nan_): Likewise.
2217 (reduc_smin_nan_): Likewise.
2220 (smax): Update for V2SF, V4SF and V2DF modes.
2223 (smin_nan): Likewise.
2224 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2225 (<su><maxmin><mode>3): ...This, refactor.
2226 (s<maxmin><mode>3): New.
2227 (<maxmin_uns><mode>3): Likewise.
2228 (reduc_<maxmin_uns>_<mode>): Refactor.
2229 (reduc_<maxmin_uns>_v4sf): Likewise.
2230 (reduc_<maxmin_uns>_v2si): Likewise.
2231 (aarch64_<fmaxmin><mode>: Remove.
2232 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2234 (vmin<q>_f<32,64>): Likewise.
2235 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2237 (su): Add mappings for smax, smin, umax, umin.
2239 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2240 (FMAXMIN): Rename as...
2241 (FMAXMIN_UNS): ...This.
2243 (fmaxminv): Likewise.
2244 (fmaxmin): Likewise.
2246 (maxmin_uns_op): Likewise.
2248 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2250 * config/aarch64/arm_neon.h
2251 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2252 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2253 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2255 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2257 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2258 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2260 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2262 * config/aarch64/aarch64-simd.md
2263 (vcond<mode>_internal): Handle special cases for constant masks.
2264 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2265 (vcondu<mode><mode>): Likewise.
2266 (vcond<v_cmp_result><mode>): New.
2268 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2270 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2271 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2272 * config/aarch64/aarch64-simd-builtins.def
2273 (cmeq): Update to BUILTIN_VALLDI.
2278 * config/aarch64/arm_neon.h
2279 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2280 to builtins or C as appropriate.
2282 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2284 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2286 (cmhi): Rename to...
2288 * config/aarch64/aarch64-simd.md
2289 (simd_mode): Add SF.
2290 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2291 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2292 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2293 (cstore<mode>_neg): ...This.
2294 * config/aarch64/iterators.md
2296 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2298 (UCOMPARISONS): Likewise.
2299 (optab): Add missing comparisons.
2307 (V_cmp_result): Add DF, SF modes.
2308 (v_cmp_result): Likewise.
2311 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2313 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2315 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2316 define_insn to define_insn_and_split.
2317 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2318 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2319 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2320 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2321 (thumb2_negscc): Likewise.
2323 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2325 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2327 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2329 * config/arm/thumb2.md: Remove trailing whitespaces.
2331 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2333 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2334 Use gen_int_mode rather than GEN_INT.
2336 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2338 * value-prof.c (stream_in_histogram_value): Remove the strayed
2341 2013-04-30 Richard Biener <rguenther@suse.de>
2344 * cfghooks.c (split_edge): Properly check for the loop latch edge.
2346 2013-04-30 Richard Biener <rguenther@suse.de>
2349 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2351 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
2353 PR rtl-optimization/56957
2354 PR rtl-optimization/57105
2355 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2356 variable. Use just INSN_UID for determining whether an insn
2357 should be only disconnected from the insn stream.
2358 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2360 2013-04-30 Jakub Jelinek <jakub@redhat.com>
2362 PR tree-optimization/57104
2363 * tsan.c (instrument_expr): Don't instrument accesses to
2364 DECL_HARD_REGISTER VAR_DECLs.
2366 2013-04-30 Richard Biener <rguenther@suse.de>
2368 * function.h (loops_for_fn): New inline function.
2369 (set_loops_for_fn): Likewise.
2370 * cfgloop.h (place_new_loop): Add struct function parameter.
2371 (get_loop): Likewise.
2372 (get_loops): Likewise.
2373 (number_of_loops): Likewise.
2375 (fel_init): Likewise.
2376 * cfg.c (get_loop_copy): Adjust.
2377 * cfgloop.c (flow_loops_dump): Likewise.
2378 (record_loop_exits): Likewise.
2379 (verify_loop_structure): Likewise.
2380 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2381 (estimate_reg_pressure_cost): Likewise.
2382 (mark_loop_exit_edges): Likewise.
2383 * cfgloopmanip.c (place_new_loop): Likewise.
2384 (add_loop): Likewise.
2385 (duplicate_loop): Likewise.
2386 * graph.c (draw_cfg_nodes): Likewise.
2387 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2388 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2389 (extract_affine_chrec): Likewise.
2390 (build_scop_iteration_domain): Likewise.
2391 * graphite.c (graphite_initialize): Likewise.
2392 * ira-build.c (create_loop_tree_nodes): Likewise.
2393 (more_one_region_p): Likewise.
2394 (rebuild_regno_allocno_maps): Likewise.
2395 (mark_loops_for_removal): Likewise.
2396 (mark_all_loops_for_removal): Likewise.
2397 (remove_unnecessary_regions): Likewise.
2398 (ira_build): Likewise.
2399 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2400 * loop-init.c (fix_loop_structure): Likewise.
2401 (gate_rtl_move_loop_invariants): Likewise.
2402 (gate_rtl_unswitch): Likewise.
2403 (gate_rtl_unroll_and_peel_loops): Likewise.
2404 (rtl_doloop): Likewise.
2405 * lto-streamer-in.c (input_cfg): Likewise.
2406 * lto-streamer-out.c (output_cfg): Likewise.
2407 * modulo-sched.c (sms_schedule): Likewise.
2408 * predict.c (tree_estimate_probability): Likewise.
2409 (tree_estimate_probability_driver): Likewise.
2410 (estimate_loops): Likewise.
2411 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2412 (move_sese_region_to_fn): Likewise.
2413 (debug_loop_num): Likewise.
2414 * tree-chrec.c (chrec_evaluate): Likewise.
2415 (hide_evolution_in_other_loops_than_loop): Likewise.
2416 (chrec_component_in_loop_num): Likewise.
2417 (reset_evolution_in_loop): Likewise.
2418 (evolution_function_is_invariant_rec_p): Likewise.
2419 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2420 * tree-inline.c (copy_loops): Likewise.
2421 (copy_cfg_body): Likewise.
2422 (tree_function_versioning): Likewise.
2423 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2424 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2426 (add_to_evolution_1): Likewise.
2427 (scev_const_prop): Likewise.
2428 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2429 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2430 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2431 (tree_ssa_lim_initialize): Likewise.
2432 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
2433 (verify_loop_closed_ssa): Likewise.
2434 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
2435 (tree_ssa_loop_im): Likewise.
2436 (tree_ssa_loop_unswitch): Likewise.
2437 (tree_vectorize): Likewise.
2438 (check_data_deps): Likewise.
2439 (tree_ssa_loop_ivcanon): Likewise.
2440 (tree_ssa_loop_bounds): Likewise.
2441 (tree_complete_unroll): Likewise.
2442 (tree_complete_unroll_inner): Likewise.
2443 (tree_parallelize_loops): Likewise.
2444 (tree_ssa_loop_prefetch): Likewise.
2445 (tree_ssa_loop_ivopts): Likewise.
2446 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
2447 * tree-vectorizer.c (vectorize_loops): Likewise.
2449 2013-04-29 Mike Frysinger <vapier@gentoo.org>
2451 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
2452 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
2453 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
2454 with EABI_LINK_SPEC.
2456 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2459 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
2462 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2465 * lra-constraints.c (process_alt_operands): Discourage a bit more
2466 using memory for pseudos. Print cost dump for alternatives.
2467 Modify cost values for conflicts with early clobbers.
2468 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
2470 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2473 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
2475 2013-04-29 Ian Bolton <ian.bolton@arm.com>
2477 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
2479 (movdi_aarch64): Support LDR/STR from/to D register.
2481 2013-04-29 Ian Bolton <ian.bolton@arm.com>
2483 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
2484 or higher by default.
2486 2013-04-29 Richard Biener <rguenther@suse.de>
2489 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
2490 even if not adding abnormal edges for calls that can make
2493 2013-04-29 Richard Biener <rguenther@suse.de>
2496 * tree-cfg.c (move_stmt_op): Fix condition under which to update
2498 (move_stmt_r): Remove redundant checking.
2500 2013-04-29 Teresa Johnson <tejohnson@google.com>
2503 * basic-block.h (apply_scale): New function.
2504 (apply_probability): Use apply_scale.
2505 * gimple-streamer-in.c (input_bb): Ditto.
2506 * lto-streamer-in.c (input_cfg): Ditto.
2507 * lto-cgraph.c (merge_profile_summaries): Ditto.
2508 * tree-optimize.c (execute_fixup_cfg): Ditto.
2509 * tree-inline.c (copy_bb): Update comment to use apply_scale.
2510 (copy_edges_for_bb): Ditto.
2511 (copy_cfg_body): Ditto.
2513 2013-04-29 Tom de Vries <tom@codesourcery.com>
2515 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
2516 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
2517 (tail_merge_optimize): Handle current_loops == NULL.
2519 2013-04-26 Jeff Law <law@redhat.com>
2521 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
2522 (simplify_cond_using_ranges): Generalize code to simplify
2523 COND_EXPRs where one argument is a constant and the other
2524 is an SSA_NAME created by an integral type conversion.
2526 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2528 * config/arm/arm.md (store_minmaxsi): Use only when
2529 optimize_insn_for_size_p.
2531 2013-04-29 Christian Bruel <christian.bruel@st.com>
2534 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2536 2013-04-29 Richard Biener <rguenther@suse.de>
2539 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
2540 loop tree make sure to schedule a fixup for the child as well.
2541 (expand_omp_for_generic): Properly add loops.
2542 (expand_omp_for_static_nochunk): Likewise.
2543 (expand_omp_for_static_chunk): Likewise.
2544 (expand_omp_for): For the degenerate case fixup loops.
2545 (expand_omp_sections): Fix default bb placement in loops.
2546 (expand_omp_atomic_pipeline): Properly add loops.
2548 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2550 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
2552 2013-04-29 Tom de Vries <tom@codesourcery.com>
2554 * tree-ssa-tail-merge.c: Update header comment.
2556 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2558 * config/aarch64/arm_neon.h
2559 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
2560 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
2561 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
2562 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
2563 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
2564 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
2565 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
2566 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
2568 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2570 * config/aarch64/aarch64-simd.md
2571 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
2572 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
2573 fix_trunc, fixuns_trunc.
2574 (ftrunc<VDQF:mode>2): New.
2575 * config/aarch64/iterators.md (optab): Add fix, fixuns.
2576 (fix_trunc_optab): New.
2578 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2580 * config/aarch64/aarch64-builtins.c
2581 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
2582 iceilf, lround, iroundf.
2584 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2587 * config/i386/i386.h (enum ix86_tune_indices)
2588 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
2589 New, split from X86_TUNE_INTER_UNIT_MOVES.
2590 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
2591 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
2592 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
2593 (TARGET_INTER_UNIT_MOVES): Remove.
2594 * config/i386/i386.c (initial_ix86_tune_features): Update.
2595 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
2596 (ix86_expand_convert_uns_didf_sse): Use
2597 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2598 (ix86_expand_vector_init_one_nonzero): Ditto.
2599 (ix86_expand_vector_init_interleave): Ditto.
2600 (inline_secondary_memory_needed): Return true for moves from SSE class
2601 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
2602 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
2603 * config/i386/constraints.md (Yi, Ym): Depend on
2604 TARGET_INTER_UNIT_MOVES_TO_VEC.
2605 (Yj, Yn): New constraints.
2606 * config/i386/i386.md (*movdi_internal): Change constraints of
2607 operand 1 from Yi to Yj and from Ym to Yn.
2608 (*movsi_internal): Ditto.
2609 (*movdf_internal): Ditto.
2610 (*movsf_internal): Ditto.
2611 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
2612 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2613 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
2614 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
2615 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
2616 * config/i386/sse.md (movdi_to_sse): Ditto.
2617 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
2618 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
2619 TARGET_INTER_UNIT_MOVES.
2620 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
2621 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
2622 instead of TARGET_INTER_UNIT_MOVES.
2623 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
2624 operand 1 from Yi to Yj and from Ym to Yn.
2626 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2628 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
2629 (float_truncate_hi_): Likewise.
2630 (float_extend_lo_): Likewise.
2631 (float_truncate_lo_): Likewise.
2632 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
2633 (aarch64_float_extend_lo_v2df): Likewise.
2634 (vec_unpacks_hi_v4sf): Likewise.
2635 (aarch64_float_truncate_lo_v2sf): Likewise.
2636 (aarch64_float_truncate_hi_v4sf): Likewise.
2637 (vec_pack_trunc_v2df): Likewise.
2638 (vec_pack_trunc_df): Likewise.
2640 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2642 * config/aarch64/aarch64-builtins.c
2643 (aarch64_fold_builtin): Fold float conversions.
2644 * config/aarch64/aarch64-simd-builtins.def
2645 (floatv2si, floatv4si, floatv2di): New.
2646 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
2647 * config/aarch64/aarch64-simd.md
2648 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
2649 * config/aarch64/iterators.md (FLOATUORS): New.
2650 (optab): Add float, floatuns.
2651 (su_optab): Likewise.
2653 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2655 * config/aarch64/aarch64-builtins.c
2656 (aarch64_builtin_vectorized_function): Use new names for
2658 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
2659 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
2660 (fcvtzu): Split as...
2661 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
2662 (fcvtas): Split as...
2663 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
2664 (fcvtau): Split as...
2665 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
2666 (fcvtps): Split as...
2667 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
2668 (fcvtpu): Split as...
2669 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
2670 (fcvtms): Split as...
2671 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
2672 (fcvtmu): Split as...
2673 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
2674 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
2675 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
2676 (lfrintnusf, lfrintnudf): Likewise.
2677 * config/aarch64/aarch64-simd.md
2678 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
2680 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
2681 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
2682 (fcvt_pattern): Likewise.
2684 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2686 * config/aarch64/aarch64-simd.md
2687 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
2688 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
2690 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2692 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
2693 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
2694 (vrnd<a,m,n,p>_f32): Implement using builtins.
2695 (vrnd<i,x><q>_f<32, 64>): New.
2697 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2699 * config/aarch64/aarch64-builtins.c
2700 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
2701 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
2702 (frintz): Rename to...
2704 (frintp): Rename to...
2706 (frintm): Rename to...
2708 (frinti): Rename to...
2709 (nearbyint): ...this.
2710 (frintx): Rename to...
2712 (frinta): Rename to...
2714 * config/aarch64/aarch64-simd.md
2715 (aarch64_frint<frint_suffix><mode>): Delete.
2716 (<frint_pattern><mode>2): Convert to insn.
2717 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
2718 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
2719 (frint_pattern): Likewise.
2720 (frint_suffix): Likewise.
2722 2013-04-29 Richard Biener <rguenther@suse.de>
2724 PR tree-optimization/57081
2725 * loop-init.c: Include tree-flow.h.
2726 (loop_optimizer_finalize): Free number of iteration estimates.
2727 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
2729 2013-04-29 Jakub Jelinek <jakub@redhat.com>
2731 PR tree-optimization/57083
2732 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2733 non-singleton shift count range, zero extend low_bound for uns case.
2735 * config/i386/predicates.md (general_vector_operand): New predicate.
2736 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
2737 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
2738 if they aren't nonimmediate operands. If their original values
2739 satisfy const_vector_equal_evenodd_p, don't shift them.
2740 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
2741 predicates. For the SSE4.1 case force operands[{1,2}] into registers
2742 if not nonimmediate_operand.
2743 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
2744 instead of register_operand.
2745 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
2747 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
2749 * stor-layout.c (finalize_size_functions): Allocate a structure and
2750 reset cfun before dumping the functions.
2752 2013-04-27 Jakub Jelinek <jakub@redhat.com>
2754 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
2757 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2758 use xop_pmacsdqh if uns_p.
2759 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2760 the immediate rotate count.
2762 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
2764 * rtl.h (struct rtx_def): Add comment for field jump.
2765 (LRA_SUBREG_P): New macro.
2766 * recog.c (register_operand): Check LRA_SUBREG_P.
2767 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2769 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2770 (lra_final_code_change): Skip subreg change for operators.
2771 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2772 if there are no operand changes.
2773 * lra-constraints.c (curr_insn_set): New.
2774 (match_reload): Set LRA_SUBREG_P.
2775 (emit_spill_move): Ditto.
2776 (check_and_process_move): Use curr_insn_set. Process only single
2777 set insns. Don't initialize sec_mem_p and change_p.
2778 (simplify_operand_subreg): Use LRA_SUBREG_P.
2779 (reg_in_class_p): New function.
2780 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2781 of #ifdef. Add code to remove cycling.
2782 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2783 non-null disp. Reload inner instead of disp when base and index
2784 are null. Try to put lo_sum into register.
2785 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2786 (check_and_process_move): Move code for move cost check to
2787 simple_move_p. Remove equiv_substitution.
2788 (simple_move_p): New function.
2789 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2790 curr_insn_set. Call check_and_process_move only for single set
2791 insns. Use the new function. Move call of check_and_process_move
2792 after operand equiv substitution and address process.
2794 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2797 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
2798 with nonlocal goto receivers or returns twice calls, ignore
2799 unininitialized values from abnormal edges to nl goto receiver
2800 or returns twice call.
2802 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2804 PR tree-optimization/57051
2805 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2806 and VEC_RSHIFT_EXPR if shift count is a multiple of element
2809 2013-04-26 Richard Biener <rguenther@suse.de>
2811 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
2812 (expand_omp_taskreg): Likewise. Mark loops for fixup.
2813 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
2814 (fixup_loop_arrays_after_move): New function.
2815 (move_sese_region_to_fn): Properly outline the loop tree parts
2818 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
2820 * config/i386/i386.md (type, unit): Fix long lines.
2822 2013-04-26 Richard Biener <rguenther@suse.de>
2824 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
2825 (lto-streamer-out.o): Likewise.
2826 * cfgloop.c (init_loops_structure): Export, add struct function
2827 argument and adjust.
2828 (flow_loops_find): Adjust.
2829 * cfgloop.h (enum loop_estimation): Add EST_LAST.
2830 (init_loops_structure): Declare.
2831 * lto-streamer-in.c: Include cfgloop.h.
2832 (input_cfg): Input the loop tree.
2833 * lto-streamer-out.c: Include cfgloop.h.
2834 (output_cfg): Output the loop tree.
2835 (output_struct_function_base): Do not drop PROP_loops.
2837 2013-03-26 Richard Biener <rguenther@suse.de>
2839 * tree-cfg.c (execute_build_cfg): Build the loop tree.
2840 (pass_build_cfg): Provide PROP_loops.
2841 (move_sese_region_to_fn): Remove loops that are outlined into fn
2843 * tree-inline.c: Include cfgloop.h.
2844 (initialize_cfun): Do not drop PROP_loops.
2845 (copy_loops): New function.
2846 (copy_cfg_body): Copy loop structure.
2847 (tree_function_versioning): Initialize destination loop tree.
2848 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
2849 (pass_parallelize_loops): Do IL verification.
2850 * loop-init.c (loop_optimizer_init): Fixup loops if required.
2851 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
2852 the CFG make sure we fixup loops as well.
2853 * tree-ssa-tail-merge.c: Include cfgloop.h.
2854 (replace_block_by): When merging loop latches mark loops for fixup.
2855 * lto-streamer-out.c (output_struct_function_base): Drop
2857 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
2858 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
2859 * ipa-split.c: Include cfgloop.h.
2860 (split_function): Add the new return block to the loop tree root.
2861 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
2862 whether we have removed the forwarder block.
2863 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
2864 * cfgloop.h (place_new_loop): Declare.
2865 * cfgloopmanip.c (place_new_loop): Export.
2866 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
2867 (tree-switch-conversion.o): Likewise.
2868 (tree-complex.o): Likewise.
2869 (tree-inline.o): Likewise.
2870 (tree-ssa-tailmerge.o): Likewise.
2871 (ipa-split.o): Likewise.
2872 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
2873 (tree-ssa-copy.o): Likewise.
2874 * tree-switch-conversion.c: Include cfgloop.h
2875 (process_switch): If we emit a bit-test cascade, schedule loops
2877 * tree-complex.c: Include cfgloop.h.
2878 (expand_complex_div_wide): Properly add new basic-blocks to loops.
2879 * asan.c: Include cfgloop.h.
2880 (create_cond_insert_point): Properly add new basic-blocks to
2881 loops, schedule loop fixup.
2882 * cfgloop.c (verify_loop_structure): Check that looks are not
2884 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
2886 (expand_omp_for_generic): Likewise.
2887 (expand_omp_sections): Likewise.
2888 (expand_omp_atomic_pipeline): Schedule loops for fixup.
2889 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
2890 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
2891 is initialized, not when loops are present.
2892 * tree-parloops.c (parallelize_loops): Remove checking here.
2893 * passes.c (init_optimization_passes): Schedule a copy-propagation
2894 pass before complete unrolling of inner loops.
2896 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2898 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
2899 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
2900 (colorize_init): Add argument to _WIN32 version.
2901 * toplev.c: Include diagnostic-color.h.
2902 (process_options): Default to -fdiagnostics-color=auto if
2903 GCC_COLORS env var is in the environment.
2904 * common.opt (fdiagnostics-color=): Add Var and Init.
2905 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
2906 env var is in the environment, the default is auto rather than never.
2908 * diagnostic.h (file_name_as_prefix): Add context argument.
2909 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
2910 the string as locus.
2911 * langhooks.c (lhd_print_error_function): Adjust caller.
2913 2013-04-25 Lawrence Crowl <crowl@google.com>
2915 * var-tracking.c (shared_hash_def::htab):
2916 Change type to hash_table. Update dependent calls and types.
2918 2013-04-25 Lawrence Crowl <crowl@google.com>
2920 * Makefile.in: Update as needed below.
2922 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2923 Move declaration to after the type's method definitons.
2925 * attribs.c (htab_t scoped_attributes::attribute_hash):
2926 Change type to hash_table. Update dependent calls and types.
2928 * bitmap.c (htab_t bitmap_desc_hash):
2929 Change type to hash_table. Update dependent calls and types.
2931 * cselib.c (htab_t cselib_hash_table):
2932 Change type to hash_table. Update dependent calls and types.
2934 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2935 (hash_string_slot_node): Move implementation into lto-streamer.h
2936 struct string_slot_hasher.
2937 (eq_string_slot_node): Likewise.
2939 * data-streamer-out.c: Update output_block::string_hash_table
2940 dependent calls and types.
2942 * dwarf2cfi.c (htab_t trace_index):
2943 Change type to hash_table. Update dependent calls and types.
2945 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2946 Change type to hash_table. Update dependent calls and types.
2947 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2948 (htab_t optimize_external_refs::map): Likewise.
2949 (htab_t output_comp_unit::extern_map): Likewise.
2950 (htab_t output_comdat_type_unit::extern_map): Likewise.
2951 (htab_t output_macinfo::macinfo_htab): Likewise.
2952 (htab_t optimize_location_lists::htab): Likewise.
2953 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2955 * except.c (htab_t ehspec_hash_type):
2956 Change type to hash_table. Update dependent calls and types.
2957 (assign_filter_values::ttypes): Likewise.
2958 (assign_filter_values::ehspec): Likewise.
2959 (sjlj_assign_call_site_values::ar_hash): Likewise.
2960 (convert_to_eh_region_ranges::ar_hash): Likewise.
2962 * gcse.c (htab_t pre_ldst_table):
2963 Change type to hash_table. Update dependent calls and types.
2965 * ggc-common.c (htab_t saving_htab):
2966 Change type to hash_table. Update dependent calls and types.
2967 (htab_t loc_hash): Likewise.
2968 (htab_t ptr_hash): Likewise.
2969 (call_count): Rename ggc_call_count.
2970 (call_alloc): Rename ggc_call_alloc.
2971 (loc_descriptor): Rename make_loc_descriptor.
2972 (add_statistics): Rename ggc_add_statistics.
2974 * ggc-common.c (saving_htab):
2975 Change type to hash_table. Update dependent calls and types.
2977 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2978 (push_gimplify_context): Likewise.
2979 (pop_gimplify_context): Likewise.
2980 (struct gimple_temp_hash_elt): Added.
2981 (struct gimplify_hasher): Likewise.
2982 (struct gimplify_ctx.temp_htab):
2983 Change type to hash_table. Update dependent calls and types.
2985 * gimple-fold.c: Include gimplify-ctx.h.
2987 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2988 Change type to hash_table. Update dependent calls and types.
2989 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2990 avoid potential global name collision.
2992 * gimplify.c: Include gimplify-ctx.h.
2993 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2994 (htab_t gimplify_ctx::temp_htab):
2995 Update dependent calls and types for new type hash_table.
2996 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2997 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2999 * gimplify-ctx.h: New.
3000 (struct gimple_temp_hash_elt): Move from gimplify.c.
3001 (class gimplify_hasher): New.
3002 (struct gimplify_ctx): Move from gimple.h.
3003 (htab_t gimplify_ctx::temp_htab):
3004 Change type to hash_table. Update dependent calls and types.
3006 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3007 (htab_t ivs_params::newivs_index):
3008 Change type to hash_table. Update dependent calls and types.
3009 (htab_t ivs_params::params_index): Likewise.
3010 (htab_t print_generated_program::params_index): Likewise.
3011 (htab_t gloog::newivs_index): Likewise.
3012 (htab_t gloog::params_index): Likewise.
3014 * graphite.c: Include graphite-htab.h.
3015 4htab_t graphite_transform_loops::bb_pbb_mapping):
3016 Change type to hash_table. Update dependent calls and types.
3018 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3019 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3020 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3022 * graphite-dependences.c: Include graphite-htab.h.
3023 (loop_is_parallel_p): Change hash table type of parameter.
3025 * graphite-htab.h: New.
3026 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3027 (extern find_pbb_via_hash): Move from graphite-poly.h.
3028 (extern loop_is_parallel_p): Move from graphite-poly.h.
3029 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3031 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3032 (extern loop_is_parallel_p): Move to graphite-htab.h.
3033 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3035 * haifa-sched.c (htab_t delay_htab):
3036 Change type to hash_table. Update dependent calls and types.
3037 (htab_t delay_htab_i2): Likewise.
3039 * ira-color.c (htab_t allocno_hard_regs_htab):
3040 Change type to hash_table. Update dependent calls and types.
3042 * ira-costs.c (htab_t cost_classes_htab):
3043 Change type to hash_table. Update dependent calls and types.
3045 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3046 Change type to hash_table. Update dependent calls and types.
3048 * loop-iv.c (htab_t bivs):
3049 Change type to hash_table. Update dependent calls and types.
3051 * loop-unroll.c (htab_t opt_info::insns_to_split):
3052 Change type to hash_table. Update dependent calls and types.
3053 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3055 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3056 (struct string_slot_hasher): New.
3057 (htab_t output_block::string_hash_table):
3058 Change type to hash_table. Update dependent calls and types.
3060 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3061 (htab_t file_name_hash_table):
3062 Change type to hash_table. Update dependent calls and types.
3064 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3067 * lto-streamer.c (htab_t tree_htab):
3068 Change type to hash_table. Update dependent calls and types.
3070 * omp-low.c: Include gimplify-ctx.h.
3072 * passes.c (htab_t name_to_pass_map):
3073 Change type to hash_table. Update dependent calls and types.
3074 (pass_traverse): Rename to passes_pass_traverse.
3076 * plugin.c (htab_t event_tab):
3077 Change type to hash_table. Update dependent calls and types.
3079 * postreload-gcse.c (htab_t expr_table):
3080 Change type to hash_table. Update dependent calls and types.
3081 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3083 * sese.c (debug_rename_map_1): Make extern.
3084 (htab_t copy_bb_and_scalar_dependences::rename_map):
3085 Change type to hash_table. Update dependent calls and types.
3087 * sese.h (extern debug_rename_map): Move to .c file.
3089 * store-motion.c (htab_t store_motion_mems_table):
3090 Change type to hash_table. Update dependent calls and types.
3092 * trans-mem.c (htab_t tm_new_mem_hash):
3093 Change type to hash_table. Update dependent calls and types.
3095 * tree-browser.c (htab_t TB_up_ht):
3096 Change type to hash_table. Update dependent calls and types.
3098 * tree-cfg.c (htab_t discriminator_per_locus):
3099 Change type to hash_table. Update dependent calls and types.
3101 * tree-complex.c: Include tree-hasher.h
3102 (htab_t complex_variable_components):
3103 Change type to hash_table. Update dependent calls and types.
3105 * tree-eh.c (htab_t finally_tree):
3106 Change type to hash_table. Update dependent calls and types.
3108 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3109 struct int_tree_hasher.
3110 (extern int_tree_map_eq): Likewise.
3111 (uid_decl_map_hash): Removed.
3112 (extern decl_tree_map_eq): Likewise.
3114 * tree-hasher.h: New.
3115 (struct int_tree_hasher): New.
3116 (typedef int_tree_htab_type): New.
3118 * tree-inline.c: Include gimplify-ctx.h.
3120 * tree-mudflap.c: Include gimplify-ctx.h.
3122 * tree-parloops.c: Include tree-hasher.h.
3123 (htab_t eliminate_local_variables_stmt::decl_address):
3124 Change type to hash_table. Update dependent calls and types.
3125 (htab_t separate_decls_in_region::decl_copies): Likewise.
3127 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3128 Change type to hash_table. Update dependent calls and types.
3130 * tree-sra.c (candidates):
3131 Change type to hash_table. Update dependent calls and types.
3133 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3135 (int_tree_map_hash): Likewise.
3137 * tree-ssa-dom.c (htab_t avail_exprs):
3138 Change type to hash_table. Update dependent calls and types.
3140 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3141 Change type to hash_table. Update dependent calls and types.
3143 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3144 Change type to hash_table. Update dependent calls and types.
3146 * tree-ssa-phiopt.c (seen_ssa_names):
3147 Change type to hash_table. Update dependent calls and types.
3149 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3150 Change type to hash_table. Update dependent calls and types.
3152 * tree-ssa-uncprop.c (equiv):
3153 Change type to hash_table. Update dependent calls and types.
3155 2013-04-25 Jakub Jelinek <jakub@redhat.com>
3157 PR rtl-optimization/57003
3158 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3159 call note_stores with kill_clobbered_value callback again after
3160 killing regs_invalidated_by_call.
3162 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3164 * config/aarch64/aarch64-simd.md
3165 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3166 (aarch64_simd_bsl<mode>): Likewise.
3167 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3169 2013-04-25 Marek Polacek <polacek@redhat.com>
3171 PR tree-optimization/57066
3172 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
3174 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3176 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3178 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3180 * config/aarch64/aarch64-builtins.c
3181 (aarch64_fold_builtin): New.
3182 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3183 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3184 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3185 * config/aarch64/arm_neon.h
3186 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3188 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3189 Tejas Belagod <tejas.belagod@arm.com>
3191 * config/aarch64/aarch64-builtins.c
3192 (aarch64_gimple_fold_builtin): New.
3193 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3194 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3195 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3197 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3199 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3201 * config/aarch64/aarch64.md
3202 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3204 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3206 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3207 (*ngcsi_uxtw): New pattern.
3209 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3210 Julian Brown <julian@codesourcery.com>
3212 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3213 (TB_DREG): Add T_V4HF.
3214 (v4hf_UP): New macro.
3215 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3216 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3217 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3219 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3220 (arm_vector_mode_supported_p): Handle V4HF.
3221 (arm_mangle_map): Handle V4HFmode.
3222 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3223 * config/arm/arm_neon_builtins.def: Add entries for
3224 vcvtv4hfv4sf, vcvtv4sfv4hf.
3225 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3226 (neon_vcvtv4hfv4sf): Likewise.
3227 * config/arm/neon-gen.ml: Handle half-precision floating point
3229 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3230 * config/arm/arm_neon.h: Regenerate.
3231 * config/arm/neon.ml (type elts): Add F16.
3232 (type vectype): Add T_float16x4, T_floatHF.
3233 (type vecmode): Add V4HF.
3234 (type features): Add Requires_FP_bit feature.
3235 (elt_width): Handle F16.
3236 (elt_class): Likewise.
3237 (elt_of_class_width): Likewise.
3238 (mode_of_elt): Refactor.
3239 (type_for_elt): Handle F16, fix error messages.
3240 (vectype_size): Handle T_float16x4.
3241 (vcvt_sh): New function.
3242 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3243 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3244 (string_of_mode): Handle V4HF.
3245 * doc/arm-neon-intrinsics.texi: Regenerate.
3247 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3249 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3250 format specifier in 'X' case.
3252 2013-04-25 Alan Modra <amodra@gmail.com>
3255 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3256 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3257 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3258 Repeat for many other rotate/shift and mask patterns using subregs.
3259 Name lshiftrt insns.
3260 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3261 on WORDS_BIG_ENDIAN.
3263 2013-04-25 Alan Modra <amodra@gmail.com>
3265 * config.gcc: Support little-endian powerpc-linux targets.
3266 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3267 (LINK_OS_LINUX_SPEC): Define.
3268 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3269 Preserve MASK_LITTLE_ENDIAN.
3270 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3271 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3272 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3273 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3274 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3275 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3276 Correct fp word order for little-endian. Don't shift toc entries
3277 smaller than a word for little-endian.
3278 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3279 (bswapdi2 splits): Correct low-part subreg for little-endian.
3280 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3281 low/high where such is correct only for be.
3282 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3283 little-endian for -mcall-aixdesc.
3285 2013-04-25 Alan Modra <amodra@gmail.com>
3287 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3288 replace_equiv_address_nv.
3290 2013-04-25 Alan Modra <amodra@gmail.com>
3292 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3294 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3297 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3298 * rtl.h (struct rtx_def): ...
3300 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3302 PR rtl-optimizations/57046
3303 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3304 for multi-reg splits.
3306 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3308 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3310 2013-04-24 Sterling Augustine <saugustine@google.com>
3312 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3313 (comp_dir_string, debug_str_dwo_section): New.
3314 (DEBUG_STR_DWO_SECTION): Rename to ...
3315 (DEBUG_DWO_STR_SECTION): ... this.
3316 (DEBUG_NORM_STR_SECTION): Delete.
3317 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3318 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3319 (find_AT_string): Move most logic to ...
3320 (find_AT_string_in_table): ... here. New.
3321 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3322 add_skeleton_AT_string. Delete logic.
3323 (output_skeleton_debug_sections): Remove call to
3324 add_top_level_skeleton_die_attrs.
3325 (add_comp_dir_attribute): Move logic to comp_dir_string.
3326 (dwarf2out_init): Initialize debug_str_dwo_section.
3327 (output_indirect_string): Call find_string_form.
3328 (output_indirect_strings): Rewrite.
3329 (prune_unused_types): Empty skeleton_debug_str_hash.
3330 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3331 (dwarf2out_finish): Call output_indirect_strings.
3333 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3335 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3337 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3339 * rtl.h (struct rtx_def): Add comment for field jump.
3340 (LRA_SUBREG_P): New macro.
3341 * recog.c (register_operand): Check LRA_SUBREG_P.
3342 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3344 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3345 (lra_final_code_change): Skip subreg change for operators.
3346 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3347 if there are no operand changes.
3348 * lra-constraints.c (curr_insn_set): New.
3349 (match_reload): Set LRA_SUBREG_P.
3350 (emit_spill_move): Ditto.
3351 (check_and_process_move): Use curr_insn_set. Process only single
3352 set insns. Don't initialize sec_mem_p and change_p.
3353 (simplify_operand_subreg): Use LRA_SUBREG_P.
3354 (reg_in_class_p): New function.
3355 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3356 of #ifdef. Add code to remove cycling.
3357 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3358 non-null disp. Reload inner instead of disp when base and index
3359 are null. Try to put lo_sum into register.
3360 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3361 (check_and_process_move): Move code for move cost check to
3362 simple_move_p. Remove equiv_substitution.
3363 (simple_move_p): New function.
3364 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3365 curr_insn_set. Call check_and_process_move only for single set
3366 insns. Use the new function. Move call of check_and_process_move
3367 after operand equiv substitution and address process.
3369 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3371 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3372 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3373 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3375 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3377 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3379 2013-04-24 Marek Polacek <polacek@redhat.com>
3381 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3382 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3383 (select_loops_exit_conditions): Likewise.
3384 (number_of_iterations_for_all_loops): Likewise.
3385 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3386 (scev_analysis): Likewise.
3388 2013-04-02 Catherine Moore <clm@codesourcery.com>
3389 Chao-ying Fu <fu@mips.com>
3391 * config/mips/micromips.md (jraddiusp): New pattern.
3392 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3393 instruction if possible.
3395 2013-04-24 Alan Modra <amodra@gmail.com>
3397 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3399 2013-04-24 Julian Brown <julian@codesourcery.com>
3400 Chung-Lin Tang <cltang@codesourcery.com>
3402 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
3403 dependency behavior in enumeration type DIE generation. Add TODO note
3404 to comments about future DW_FORM_sdata/udata re-work of related code.
3406 2013-04-23 Lawrence Crowl <crowl@google.com>
3408 * Makefile.in: Update as needed below.
3410 * hash-table.h (class hash_table):
3411 Correct many methods with parameter types compare_type to the correct
3412 value_type. (Correct code was unlikely to notice the change.)
3413 (hash_table::elements_with_deleted) New.
3414 (class hashtable::iterator): New.
3415 (hashtable::begin()): New.
3416 (hashtable::end()): New.
3417 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3419 * statistics.c (statistics_hashes):
3420 Change type to hash_table. Update dependent calls and types.
3422 * tree-into-ssa.c (var_infos):
3423 Change type to hash_table. Update dependent calls and types.
3425 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3426 Change type to hash_table. Update dependent calls and types.
3428 * tree-ssa-loop-im.c (struct mem_ref.refs):
3429 Change type to hash_table. Update dependent calls and types.
3431 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
3432 Change type to hash_table. Update dependent calls and types.
3434 * tree-ssa-sccvn.c (vn_tables_s::nary):
3435 Change type to hash_table. Update dependent calls and types.
3436 (vn_tables_s::phis): Likewise.
3437 (vn_tables_s::references): Likewise.
3439 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
3440 (vn_reference_eq): Update parameter and return types.
3442 * tree-ssa-structalias.c (pointer_equiv_class_table):
3443 Change type to hash_table. Update dependent calls and types.
3444 (location_equiv_class_table): Likewise.
3446 * tree-vect-data-refs.c: Consequential changes for making
3447 peeling a hash_table.
3449 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
3450 (destroy_loop_vec_info): Dependent hash_table update.
3452 * tree-vectorizer.h (peeling_htab):
3453 Change type to hash_table. Update dependent calls and types.
3455 2013-04-23 Shiva Chen <shiva0217@gmail.com>
3457 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
3458 to check the register content is equal or not.
3459 * lra-constraints.c (match_reload): Use lra_assign_reg_val
3460 to assign register content record.
3461 * lra-eliminations.c (update_reg_eliminate): Use
3462 lra_update_reg_val_offset to update register content offset.
3463 * lra-int.h (struct lra_reg): Add offset member.
3464 (lra_reg_val_equal_p): New static inline function.
3465 (lra_update_reg_val_offset): New static inline function.
3466 (lra_assign_reg_val): New static inline function.
3467 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
3468 to assign register content record.
3469 (initialize_lra_reg_info_element): Initial offset to zero.
3471 2013-04-23 Catherine Moore <clm@codesourcery.com>
3473 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
3474 operands. Record compression.
3476 2013-04-23 Xinliang David Li <davidxl@google.com>
3478 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
3480 2013-04-23 Richard Biener <rguenther@suse.de>
3483 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
3484 parameter, only add abnormal goto edges from the copied body
3485 if the call could perform abnormal gotos.
3486 (copy_cfg_body): Adjust.
3488 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
3490 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
3492 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
3494 * coretypes.h (gimple_stmt_iterator): Add struct to make
3497 2013-04-23 Richard Biener <rguenther@suse.de>
3499 PR tree-optimization/57026
3500 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
3501 from SSA names occuring in abnormal PHI nodes.
3503 2013-04-22 Andi Kleen <ak@linux.intel.com>
3505 * lto/lto.c (print_lto_report_1): Fix LTO report names.
3507 2013-04-22 Andi Kleen <ak@linux.intel.com>
3509 * lto/lto.c (print_lto_report_1): Declare early.
3510 (read_cgraph_and_symbols): Call print_lto_report_1 early.
3512 2013-04-22 Andi Kleen <ak@linux.intel.com>
3514 * common.opt (-flto-report-wpa): Add.
3515 * doc/invoke.texi (-flto-report-wpa): Add.
3516 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
3519 2013-04-22 Xinliang David Li <davidxl@google.com>
3521 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
3522 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
3523 * Makefile.in: New dependency
3525 David Daney <ddaney.cavm@gmail.com>
3527 * configure.ac (gcc_cv_as_micromips_support): Use the
3528 --fatal-warnings option.
3529 * configure: Regenerate.
3531 2013-04-22 Marek Polacek <polacek@redhat.com>
3534 * tsan.c (instrument_expr): Don't instrument expression
3535 in case its size is zero.
3537 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
3541 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3543 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3545 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3547 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
3548 (gimple_stmt_iterator): New typedef.
3549 * gimple.h (gimple_stmt_iterator): Rename to...
3550 (gimple_stmt_iterator_d): ... This.
3551 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
3552 trees be valid for GIMPLE and GENERIC.
3553 (TARGET_GIMPLE_FOLD_BUILTIN): New.
3554 * gimple-fold.c (gimple_fold_call): Call target hook
3555 gimple_fold_builtin.
3556 * hooks.c (hook_bool_gsiptr_false): New.
3557 * hooks.h (hook_bool_gsiptr_false): New.
3558 * target.def (fold_stmt): New.
3559 * doc/tm.texi: Regenerate.
3561 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
3564 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
3565 a set sp if no stack realignment.
3567 2013-04-22 Nick Clifton <nickc@redhat.com>
3569 * config.gcc (tilegx-linux): Extend extra_objs rather than
3571 (tilepro-linux): Likewise.
3573 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3575 * config/aarch64/aarch64-builtins.c
3577 (CF0, CF1, CF2, CF3, CF4, CF10): New.
3578 (VAR<1-12>): Add MAP parameter.
3579 (BUILTIN_*): Likewise.
3580 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
3581 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
3582 (aarch64_ushl_n<mode>): Likewise.
3583 (aarch64_sshr_n<mode>): Likewise.
3584 (aarch64_ushr_n<mode>): Likewise.
3585 (aarch64_<maxmin><mode>): Likewise.
3586 (aarch64_sqrt<mode>): Likewise.
3587 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
3588 (vshr<q>_n_*): Likewise.
3590 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3592 * config/aarch64/aarch64-builtins.c
3593 (aarch64_simd_builtin_type_mode): Handle SF types.
3595 (BUILTIN_GPF): Define.
3596 (aarch64_init_simd_builtins): Handle SF types.
3597 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
3600 * config/aarch64/aarch64-simd.md
3601 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
3602 (aarch64_frecpe<mode>): New.
3603 (aarch64_frecps<mode>): Likewise.
3604 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
3605 (v8type): Add frecp<esx>.
3606 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
3607 (aarch64_frecps<mode>): Likewise.
3608 * config/aarch64/iterators.md (FRECP): New.
3609 (frecp_suffix): Likewise.
3610 * config/aarch64/arm_neon.h
3611 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
3613 2013-04-22 Christian Bruel <christian.bruel@st.com>
3616 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
3617 (REG_CLASS_NAMES): Idem.
3618 (REG_CLASS_CONTENTS): Idem.
3619 (REGCLASS_HAS_FP_REG): Idem.
3620 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
3621 (sh_conditional_register_usage): Idem.
3623 2013-04-21 Jeff Law <law@redhat.com>
3625 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
3626 (ssa_forward_propagate_and_combine): Use it.
3628 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3630 * lra.c: Update the flow chart diagram.
3632 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3634 PR rtl-optimization/56847
3635 * lra-constraints.c (process_alt_operands): Discourage alternative
3636 with non-matche doffsettable memory constraint fro memory with
3639 2013-04-19 Richard Biener <rguenther@suse.de>
3641 PR tree-optimization/56982
3642 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
3644 * gimplify.c (gimplify_call_expr): Notice special calls.
3645 (gimplify_modify_expr): Likewise.
3646 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
3647 abnormal control flow receivers.
3648 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
3649 in the same way as cfun->has_nonlocal_labels.
3650 (gimple_purge_dead_abnormal_call_edges): Likewise.
3651 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
3652 receivers start a basic-block.
3654 2013-04-19 Richard Biener <rguenther@suse.de>
3656 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
3658 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
3659 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
3660 (SLP_TREE_LOAD_PERMUTATION): Add.
3661 (vect_transform_slp_perm_load): Adjust prototype.
3662 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
3663 (vect_free_slp_instance): Likewise.
3664 (vect_create_new_slp_node): Likewise.
3665 (vect_supported_slp_permutation_p): Remove.
3666 (vect_slp_rearrange_stmts): Adjust.
3667 (vect_supported_load_permutation_p): Likewise. Inline
3668 vect_supported_slp_permutation_p here.
3669 (vect_analyze_slp_instance): Compute load permutations per
3670 slp node instead of per instance.
3671 (vect_get_slp_defs): Adjust.
3672 (vect_transform_slp_perm_load): Likewise.
3673 (vect_schedule_slp_instance): Remove redundant code.
3674 (vect_schedule_slp): Remove hack for PR56270, add it ...
3675 * tree-vect-stmts.c (vectorizable_load): ... here, do not
3676 CSE loads for SLP. Adjust.
3678 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3680 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
3681 spelling in two comments.
3683 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3686 * config/arm/arm.c (load_multiple_sequence): Require SP
3687 as base register for loads if SP is in the register list.
3689 2013-04-19 Martin Jambor <mjambor@suse.cz>
3691 PR tree-optimization/56718
3692 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
3693 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
3694 and made public. Adjusted all callers.
3695 (ipa_intraprocedural_devirtualization): New function.
3696 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
3697 (ipa_intraprocedural_devirtualization): Likewise.
3698 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
3700 2013-04-19 Richard Biener <rguenther@suse.de>
3702 PR tree-optimization/57000
3703 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
3705 2013-04-19 Terry Guo <terry.guo@arm.com>
3707 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
3709 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
3710 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
3711 (cortex_m4_fmacs): Use new reservations.
3712 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
3714 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
3716 PR rtl-optimization/56999
3717 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
3719 (lra_coalesce): Remove split_origin_bitmap and related code.
3720 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
3721 ranges if necessary.
3723 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
3725 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
3727 (ix86_expand_call): Remove clobbered_registers array and use
3728 x86_64_ms_sysv_extra_clobbered_registers instead.
3729 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
3731 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
3733 * config/i386/i386.md (*call_rex64_ms_sysv): Use
3734 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
3735 (*call_value_rex64_ms_sysv): Ditto.
3737 2013-04-18 Cary Coutant <ccoutant@google.com>
3739 * dwarf2out.c (output_pubnames): Check die_perennial_p of
3740 parent instead of die_mark.
3742 2013-04-18 Diego Novillo <dnovillo@google.com>
3744 * gimple.c (create_gimple_tmp): New.
3745 (get_expr_type): New.
3746 (build_assign): New.
3747 (build_type_cast): New.
3748 * gimple.h (enum ssa_mode): Define.
3749 (gimple_seq_set_location): New.
3750 * asan.c (build_check_stmt): Change some gimple_build_* calls
3751 to use build_assign and build_type_cast.
3753 2013-04-18 Richard Biener <rguenther@suse.de>
3755 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3756 handle negative step. Remove redundant checks.
3757 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
3758 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
3759 for negative step and grouped loads fail to vectorize.
3761 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3763 * emit-rtl.c (reset_insn_used_flags): New function.
3764 (reset_all_used_flags): Use it.
3765 (verify_insn_sharing): New function.
3766 (verify_rtl_sharing): Fix verification for SEQUENCEs.
3768 2013-04-18 Jakub Jelinek <jakub@redhat.com>
3770 PR tree-optimization/56984
3771 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
3772 and (x >> M) >= N don't register any assertion if N << M is the
3775 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3777 * lower-subreg.c (resolve_simple_move): If called self-recursive,
3778 do not delete_insn insns that have not yet been emitted, only
3779 unlink them with remove_insn.
3780 * df-scan.c (df_insn_delete): Revert r197492.
3782 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
3784 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
3785 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
3787 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
3789 * config/arm/arm.md (movsicc_insn): Convert define_insn into
3790 define_insn_and_split.
3791 (and_scc,ior_scc,negscc): Likewise.
3792 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
3794 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
3796 * config/arm/arm.c (use_return_insn): Return 0 for targets that
3797 can benefit from using a sequence of LDRD instructions in epilogue
3798 instead of a single LDM instruction.
3800 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3803 * doc/extend.texi: Fix typo.
3805 2013-04-17 Richard Biener <rguenther@suse.de>
3807 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
3808 (vect_build_slp_tree): ... here.
3809 (vect_build_slp_tree_1): Compute which stmts of the SLP group
3810 match. Remove special-casing of mismatched complex loads.
3811 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
3812 re-try the match with swapped commutative operands.
3813 (vect_supported_load_permutation_p): Remove special-casing of
3814 mismatched complex loads.
3815 (vect_analyze_slp_instance): Adjust.
3817 2013-04-17 Richard Biener <rguenther@suse.de>
3819 PR rtl-optimization/56921
3820 * cfgloop.h (struct loop): Add simple_loop_desc member.
3821 (struct niter_desc): Mark with GTY(()).
3822 (simple_loop_desc): Do not use aux field but simple_loop_desc.
3823 * loop-iv.c (get_simple_loop_desc): Likewise.
3824 (free_simple_loop_desc): Likewise.
3827 2013-04-16 Richard Biener <rguenther@suse.de>
3829 PR rtl-optimization/56921
3830 * loop-init.c (pass_rtl_move_loop_invariants): Add
3831 TODO_do_not_ggc_collect to todo_flags_finish.
3832 (pass_rtl_unswitch): Same.
3833 (pass_rtl_unroll_and_peel_loops): Same.
3834 (pass_rtl_doloop): Same.
3836 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
3838 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
3839 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
3840 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
3842 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
3843 * tree-streamer.c (record_common_node): Adjust reference in comment.
3845 2013-04-17 Terry Guo <terry.guo@arm.com>
3847 * config/arm/cortex-m4.md: Add a new bypass.
3849 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3851 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
3853 (*subs_<optab><mode>_multp2): New pattern.
3854 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3855 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3857 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3859 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
3860 (*subs_mul_imm_<mode>): New pattern.
3862 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
3865 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3866 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
3867 (vsx_movti_32bit): Change j->wa to O->wa.
3869 2013-04-16 Richard Biener <rguenther@suse.de>
3871 PR rtl-optimization/56921
3872 * loop-init.c (pass_rtl_move_loop_invariants): Add
3873 TODO_do_not_ggc_collect to todo_flags_finish.
3874 (pass_rtl_unswitch): Same.
3875 (pass_rtl_unroll_and_peel_loops): Same.
3876 (pass_rtl_doloop): Same.
3878 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
3880 * config/arm/arm.c (emit_multi_reg_push): New declaration
3881 for an existing function.
3882 (arm_emit_strd_push): New function.
3883 (arm_expand_prologue): Used here.
3884 (arm_emit_ldrd_pop): New function.
3885 (arm_expand_epilogue): Used here.
3886 (arm_get_frame_offsets): Update condition.
3887 (arm_emit_multi_reg_pop): Add a special case for load of a single
3888 register with writeback.
3890 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
3892 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
3895 2013-04-16 Richard Biener <rguenther@suse.de>
3897 PR tree-optimization/56756
3898 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
3899 (first_mem_ref_loc): New.
3900 (execute_sm): Place the load temporarily before a previous
3901 access instead of in the latch edge to ensure its SSA dependencies
3902 are defined at points dominating the load.
3904 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
3906 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
3907 correct fix by moving header and footer insn to the footer of
3908 the merged basic block. Clear BB_END of the merged-away block.
3911 * emit-rtl.c (make_note_raw): New function.
3912 (link_insn_into_chain): New static inline function.
3914 (add_insn_before, add_insn_after): Factor insn chain linking code...
3915 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
3916 using link_insn_into_chain.
3917 (note_outside_basic_block_p): New helper function for emit_note_after
3918 and emit_note_before.
3919 (emit_note_after): Use nobb variant of add_insn_after if the note
3920 should not be contained in a basic block.
3921 (emit_note_before): Use nobb variant of add_insn_before if the note
3922 should not be contained in a basic block.
3923 (emit_note_copy): Use make_note_raw.
3924 (emit_note): Likewise.
3925 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3926 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3927 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3928 the moved barrier the tail of the basic block it follows.
3929 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3931 2013-04-15 Jakub Jelinek <jakub@redhat.com>
3933 PR tree-optimization/56962
3934 * gimple-ssa-strength-reduction.c (record_increment): Only set
3935 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3936 either rhs1 or rhs2 is equal to c->base_expr.
3938 2013-04-15 Richard Biener <rguenther@suse.de>
3940 PR tree-optimization/56933
3941 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3943 (GROUP_READ_WRITE_DEPENDENCE): Remove.
3944 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3945 * tree-vect-data-refs.c (vect_analyze_group_access): Move
3946 dependence check ...
3947 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3949 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3950 GROUP_READ_WRITE_DEPENDENCE.
3952 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3954 * emit-rtl.c (reset_all_used_flags): New function.
3955 (verify_rtl_sharing): Call reset_all_used_flags before and after
3956 performing the checks.
3958 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3960 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3961 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3962 * config/arm/constraints.md (De): New constraint.
3963 * config/arm/neon.md (anddi3_neon): Delete.
3964 (neon_vand<mode>): Expand to standard anddi3 pattern.
3965 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3966 Move earlier in the file.
3967 (neon_inv_logic_op2): Likewise.
3968 (arm_anddi_operand_neon): New predicate.
3970 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3972 * configure.ac (gcc_cv_ld_as_needed): Set
3973 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3974 Use -z ignore, -z record on *-*-solaris2*.
3975 (HAVE_LD_AS_NEEDED): Update comment.
3976 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3977 * configure: Regenerate.
3978 * config.in: Regenerate.
3979 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3980 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3981 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3982 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3983 equivalents. Fix markup.
3984 * doc/tm.texi: Regenerate.
3986 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
3988 * config/i386/i386.opt: New option mstack-protector-guard=.
3989 * config/i386/i386-opts.h: Add enum stack_protector_guard.
3990 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3991 TARGET_SSP_TLS_GUARD.
3992 * config/i386/i386.c (ix86_option_override_internal): Set
3993 ix86_stack_protector_guard.
3994 * config/i386/i386.md (stack_protect_set): Enable for
3995 TARGET_SSP_TLS_GUARD only.
3996 (stack_protect_set_<mode>): Ditto.
3997 (stack_protect_test): Ditto.
3998 (stack_protect_test_<mode>): Ditto.
3999 * doc/invoke.texi (i386 Option): Document.
4001 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4004 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4005 (S_MODES): Set H_MODE bit.
4006 (SF_MODES): Set only S_MODE and SF_MODE bits.
4007 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4008 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4009 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4010 <MODE_FLOAT>: Likewise.
4012 2013-04-15 Joey Ye <joey.ye@arm.com>
4014 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4016 2013-04-15 Joey Ye <joey.ye@arm.com>
4018 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4020 (thumb_far_jump_used_p): Count instruction size and set
4023 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4025 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4026 * resource.c (mark_target_live_regs): Reformat conditional block.
4028 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4030 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4031 notes, they are emitted only just before final.
4032 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4034 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4036 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4037 * cfgrtl.c (delete_insn): Call it here instead.
4038 * lra-spills.c (lra_final_code_change): Use delete_insn.
4039 * haifa-sched.c (sched_remove_insn): Likewise.
4040 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4041 returning to the nop pool.
4042 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4043 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4045 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4047 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4048 * doc/tm.texi: Regenerated.
4050 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
4052 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4055 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4057 * df-core.c (df_find_def): Compare register numbers.
4058 (df_find_use): Likewise.
4060 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4063 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4064 lra_in_progress for return.
4066 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4068 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4069 define_insn into define_insn_and_split and emit movsicc patterns.
4071 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4073 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4075 2013-04-12 Richard Biener <rguenther@suse.de>
4077 * tree-pass.h (TODO_do_not_ggc_collect): New.
4078 * passes.c (execute_one_ipa_transform_pass): Honor
4079 TODO_do_not_ggc_collect.
4080 (execute_one_pass): Likewise.
4083 2013-04-10 Richard Biener <rguenther@suse.de>
4085 * passes.c (init_optimization_passes): Remove reload pass.
4086 * ira.c (do_reload): Merge into ...
4088 (rest_of_handle_reload): Remove.
4089 (pass_reload): Likewise.
4090 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4091 of reload for vzeroupper pass placement.
4093 2013-04-12 Jakub Jelinek <jakub@redhat.com>
4095 PR tree-optimization/56918
4096 PR tree-optimization/56920
4097 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4098 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4099 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4100 use wide_mul_with_sign method.
4102 2013-04-12 Richard Biener <rguenther@suse.de>
4104 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4105 not be considered a gimple constant.
4107 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
4109 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4110 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4113 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4114 Jakub Jelinek <jakub@redhat.com>
4116 * opts.c: Include diagnostic-color.h.
4117 (common_handle_option): Handle OPT_fdiagnostics_color_.
4118 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4119 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4120 (diagnostic-color.o): New.
4121 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4122 (diagnostic_color_rule): New enum.
4123 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4124 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4125 the location string.
4126 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4127 either NULL, or color kind.
4128 * diagnostic-color.c: New file.
4129 * diagnostic-color.h: New file.
4130 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4132 * doc/invoke.texi (-fdiagnostics-color): Document.
4133 * pretty-print.h (pp_show_color): Define.
4134 (struct pretty_print_info): Add show_color field.
4135 * diagnostic.c: Include diagnostic-color.h.
4136 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4137 macros. Colorize error:, warning: etc. strings and also the location
4139 (diagnostic_show_locus): Colorize the caret line.
4140 * pretty-print.c: Include diagnostic-color.h.
4141 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4142 inside of %< %> quotes or quoted through q format modifier.
4144 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4146 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
4148 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4150 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4152 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4155 2013-04-11 Marek Polacek <polacek@redhat.com>
4157 PR tree-optimization/48184
4158 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
4160 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4162 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4163 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4164 (skip_simple_arithmetic): Tidy up.
4165 * tree.h (skip_simple_constant_arithmetic): Declare.
4167 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4169 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4171 2013-04-11 Richard Biener <rguenther@suse.de>
4173 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4174 generate vector constants.
4176 2013-04-11 Richard Biener <rguenther@suse.de>
4178 PR tree-optimization/56878
4179 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4180 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4182 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4183 Prefer to align the DR with the most invariant base address.
4185 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4187 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4190 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4192 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4193 floating-point vector comparisons against 0.
4195 2013-04-11 Jakub Jelinek <jakub@redhat.com>
4197 PR tree-optimization/56899
4198 * fold-const.c (extract_muldiv_1): Apply distributive law
4199 only if TYPE_OVERFLOW_WRAPS (ctype).
4201 2013-04-11 Bin Cheng <bin.cheng@arm.com>
4204 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4205 loading has side effect.
4207 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4209 * config/sparc/sparc.c: Include tree-pass.h.
4210 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4211 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4212 head of file. Change return type. Split off gate function.
4213 (sparc_gate_work_around_errata): New function.
4214 (pass_work_around_errata): New pass definition.
4215 (insert_pass_work_around_errata) New pass insert definition to
4216 insert pass_work_around_errata just after delayed-branch scheduling.
4217 (sparc_option_override): Insert the pass.
4218 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4220 2013-04-10 David S. Miller <davem@davemloft.net>
4222 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4223 or -mcpu=hypersparc.
4225 * target.def (cstore_mode): New hook.
4226 * target.h: Include insn-codes.h
4227 * targhooks.c: Likewise.
4228 (default_cstore_mode): New function.
4229 * targhooks.h: Declare it.
4230 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4231 * doc/tm.texi: Rebuild.
4232 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4233 target hook, rather than inspecting the insn_data.
4234 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4235 (TARGET_CSTORE_MODE): Redefine.
4236 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4238 * config/sparc/predicates.md (cstore_result_operand): New special
4240 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4241 Use it for operand 0.
4242 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4243 (*snesi_special): Likewise.
4244 (*snesi_zero): Likewise.
4245 (*seqsi_zero): Likewise.
4246 (*sltu_insn): Likewise.
4247 (*sgeu_insn): Likewise.
4248 (*seqdi_special): Make operand 0 and comparison operation be of
4250 (*snedi_special): Likewise.
4251 (*snedi_special_vis3): Likewise.
4252 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4253 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4254 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4255 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4256 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4257 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4258 (*sltu_extend_sp64): Likewise.
4259 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4260 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4261 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4262 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4263 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4265 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4267 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4268 (aarch64_start_file): Use the new function.
4270 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4271 Jason Merrill <jason@redhat.com>
4273 * common.opt: Add -gdwarf.
4274 * opts.c (common_handle_option): Handle it.
4275 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4277 2013-04-10 Richard Biener <rguenther@suse.de>
4279 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4280 (execute_one_ipa_transform_pass): But unconditionally here.
4281 (execute_one_pass): And here.
4282 (init_optimization_passes): Remove reload pass.
4283 * tree-pass.h (TODO_ggc_collect): Remove.
4284 (pass_reload): Likewise.
4285 * ira.c (do_reload): Merge into ...
4287 (rest_of_handle_reload): Remove.
4288 (pass_reload): Likewise.
4289 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4290 of reload for vzeroupper pass placement.
4291 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4292 and todo_flags_finish of all passes.
4294 2013-04-10 Richard Biener <rguenther@suse.de>
4296 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4297 first_const_oprnd field, rename first_def_type to first_op_type.
4298 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4299 (vect_get_and_check_slp_defs): Always use the type of the
4300 operand. Allow mixed vect_external_def, vect_constant_def types.
4301 (vect_get_constant_vectors): Handle mixed vect_external_def,
4302 vect_constant_def types.
4304 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4306 PR tree-optimization/55524
4307 * tree-ssa-math-opts.c
4308 (convert_mult_to_fma): Don't use an fms construct
4309 when we don't have an fms operation, but fnma, and it looks
4310 likely that we'll be able to use the latter.
4312 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4314 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4316 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4317 inline fail caused by overwritable functions.
4319 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4321 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4322 unnecessary bits in the constant power of two case.
4324 2013-04-10 Richard Biener <rguenther@suse.de>
4326 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4327 broken code swapping operands.
4328 (vect_build_slp_tree): Do not compute load permutations here.
4329 (vect_analyze_slp_instance): Compute load permutations here,
4330 after building the SLP tree.
4332 2013-04-09 Christian Bruel <christian.bruel@st.com>
4334 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4335 of next/prev_real_insn.
4337 2013-04-09 Jan Hubicka <jh@suse.cz>
4339 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4340 Drop aliased parameter.
4341 (function_and_variable_visibility): Do not handle alias pairs.
4342 * cgraph.c (varpool_externally_visible_p): Update prototype.
4343 * varpool.c (varpool_add_new_variable): Update.
4345 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4347 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4349 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4351 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4353 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4355 2013-04-09 Marek Polacek <polacek@redhat.com>
4357 PR tree-optimization/48762
4358 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
4360 2013-04-09 Richard Biener <rguenther@suse.de>
4362 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4364 (vect_build_slp_tree): Likewise.
4365 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4366 calculating the cost of a SLP instance.
4367 (vect_analyze_slp_instance): Use it from here, after building
4370 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4373 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4374 expand_omp_for_static_chunk): Use simple_p = true in
4375 force_gimple_operand_gsi calls when assigning to addressable decls.
4377 2013-04-09 Jeff Law <law@redhat.com>
4379 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4380 when the boolean was created by converting a wider object which
4381 had a boolean range.
4383 2013-04-09 Richard Biener <rguenther@suse.de>
4385 * tree-vectorizer.h (slp_void_p): Remove.
4386 (slp_tree): Typedef before _slp_tree declaration.
4387 (struct _slp_tree): Use a vector of slp_tree as children.
4388 (vect_get_place_in_interleaving_chain): Remove.
4389 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4391 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4393 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4394 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4395 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4396 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4397 Use slp_node instead of slp_void_p and adjust.
4399 2013-04-09 Richard Biener <rguenther@suse.de>
4401 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4402 work that is not necessary.
4404 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4406 PR tree-optimization/56854
4407 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4408 forward into clobber stmts if it would change MEM_REF lhs into
4411 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4413 * tree.c (type_hash_lookup, type_hash_add): Make static.
4414 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4416 2013-04-09 Richard Biener <rguenther@suse.de>
4418 * tree.h (unsave_expr_now): Remove.
4419 * tree-inline.c (mark_local_for_remap_r): Remove.
4420 (unsave_expr_1): Likewise.
4421 (unsave_r): Likewise.
4422 (unsave_expr_now): Likewise.
4423 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4424 (propagate_tree_value): Likewise.
4426 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4428 * doc/rtl.texi (sequence): Rewrite documentation to match the
4429 current use of SEQUENCE rtl objects.
4430 * rtl.def (SEQUENCE): Likewise.
4432 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
4433 Update documentation.
4434 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
4435 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
4437 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
4439 2013-04-08 Teresa Johnson <tejohnson@google.com>
4441 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
4442 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
4444 (estimate_edge_size_and_time): Add comment to suggest using rounding
4446 (estimate_node_size_and_time): Ditto.
4447 (remap_edge_change_prob): Use helper rounding divide methods.
4448 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
4449 (gimple_mod_pow2_value_transform): Ditto.
4450 (gimple_mod_subtract_transform): Ditto.
4451 (gimple_ic_transform): Ditto.
4452 (gimple_stringops_transform): Ditto.
4453 * stmt.c (conditional_probability): Ditto.
4454 (emit_case_dispatch_table): Ditto.
4455 * lto-cgraph.c (merge_profile_summaries): Ditto.
4456 * tree-optimize.c (execute_fixup_cfg): Ditto.
4457 * cfgcleanup.c (try_forward_edges): Ditto.
4458 * cfgloopmanip.c (scale_loop_profile): Ditto.
4460 (duplicate_loop_to_header_edge): Ditto.
4461 (lv_adjust_loop_entry_edge): Ditto.
4462 * tree-vect-loop.c (vect_transform_loop): Ditto.
4463 * profile.c (compute_branch_probabilities): Ditto.
4464 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
4465 * lto-streamer-in.c (input_cfg): Ditto.
4466 * gimple-streamer-in.c (input_bb): Ditto.
4467 * ipa-cp.c (update_profiling_info): Ditto.
4468 (update_specialized_profile): Ditto.
4469 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
4470 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
4472 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4473 (compute_trg_info): Ditto.
4474 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
4475 (purge_dead_edges): Ditto.
4476 * loop-unswitch.c (unswitch_loop): Ditto.
4477 * cgraphclones.c (cgraph_clone_edge): Ditto.
4478 (cgraph_clone_node): Ditto.
4479 * tree-inline.c (copy_bb): Ditto.
4480 (copy_edges_for_bb): Ditto.
4481 (initialize_cfun): Ditto.
4482 (copy_cfg_body): Ditto.
4483 (expand_call_inline): Ditto.
4485 2013-04-08 Kai Tietz <ktietz@redhat.com>
4487 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
4488 TARGET_CYGWIN64 by TARGET_64BIT.
4490 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4492 * config/epiphany/epiphany.md (GPR_1): New constant.
4493 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
4494 * config/epiphany/epiphany.c (gen_compare_reg):
4495 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
4496 is already in place.
4497 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
4498 Don't require being called during rtl expansion; If y operlaps r0,
4500 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
4501 (epiphany_expand_epilogue): Likewise.
4503 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
4504 Don't use CC_FPmode for ORDERED / UNORDERED.
4505 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
4507 * config/epiphany/constraints.md (CnL): New constraint.
4508 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
4509 * config/epiphany/predicates.md (add_operand): Allow 1024.
4511 * config/epiphany/epiphany.md (logical_op): New code iterator.
4512 (op_mnc): New code attribute.
4513 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
4514 (mov_f+1, mov_f+2): New peephole2 patterns.
4516 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
4517 (cstoresi4): Also allow re-use of zero result when doing a NE
4518 comparison to a non-zero operand.
4519 Use (clobber (scratch)) for first insn if the gpr output is not needed.
4521 * config/epiphany/epiphany.md (<insn_opname>v2si3):
4522 Use gen_addsi3_i / gen_subsi3_i.
4524 2013-04-08 Jakub Jelinek <jakub@redhat.com>
4528 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
4529 contain anything but clobbers, at most one __builtin_stack_restore,
4530 optionally debug stmts and final resx, and if it has at least one
4531 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
4532 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
4533 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
4534 which isn't defaut definition, remove them.
4535 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
4536 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
4537 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
4538 with MEM_REF LHS with SSA_NAME address.
4540 2013-04-08 Jeff Law <law@redhat.com>
4542 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
4544 2013-04-08 Richard Biener <rguenther@suse.de>
4546 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
4548 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
4549 determined vector type.
4550 (vect_analyze_data_refs): Likewise.
4551 (vect_get_new_vect_var): Adjust.
4552 (vect_create_destination_var): Preserve SSA name versions.
4553 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
4554 not dump anything here.
4556 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4558 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
4559 Add member lr_slot_known.
4560 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
4562 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
4563 Remove code that sets lr_slot_offset according to what a previous
4564 version of epiphany_emit_save_restore used to do.
4565 (epiphany_emit_save_restore): When doing an lr save or restore,
4566 set/verify lr_slot_known and lr_slot_offset.
4568 2013-04-08 Xinyu Qi <xyqi@marvell.com>
4571 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
4574 2013-04-08 Richard Biener <rguenther@suse.de>
4576 * alias.c (find_base_term): Fix thinko in previous change.
4578 2013-04-08 Jakub Jelinek <jakub@redhat.com>
4580 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
4581 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
4582 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
4583 if possible to compute val.
4584 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
4585 For QImode integers don't require anything about precision. Use
4586 const_with_all_bytes_same to find out if the constant doesn't have
4587 repeated bytes in it.
4589 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4591 * config/s390/s390.c (s390_expand_insv): Only accept insertions
4594 2013-04-08 Marek Polacek <polacek@redhat.com>
4596 PR rtl-optimization/48182
4597 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
4600 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4603 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
4604 nuses, make sure we have a label.
4606 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4609 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
4610 (rs6000_emit_swdiv_low_precision): Remove.
4611 (rs6000_emit_swdiv): Rewrite to handle between one and four
4612 iterations of Newton-Raphson generally; modify required number of
4613 iterations for some cases.
4614 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
4616 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
4618 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
4619 set-but-unused variable.
4621 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
4622 basic blocks of released function bodies garbage-collectable.
4624 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
4625 (struct rtl_opt_pass): Add TODO_df_finish.
4627 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
4629 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4631 * config/arm/constraints.md (q): New constraint.
4632 * config/arm/ldrdstrd.md: New file.
4633 * config/arm/arm.md (ldrdstrd.md) New include.
4634 (arm_movdi): Use "q" instead of "r" constraint
4635 for double-word memory access.
4636 (movdf_soft_insn): Likewise.
4637 * config/arm/vfp.md (movdi_vfp): Likewise.
4638 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
4639 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4640 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
4641 (mem_ok_for_ldrd_strd): Likewise.
4642 (output_move_double): Update assertion.
4644 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4646 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
4648 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4650 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
4651 define_insn_and_split.
4652 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
4654 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4656 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
4657 define_insn_and_split.
4658 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
4659 (shiftsi3_compare): New pattern.
4661 * config/arm/unspecs.md (UNSPEC_RRX): New.
4663 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4665 * config/arm/arm.md (negdi_extendsidi): New pattern.
4666 (negdi_zero_extendsidi): Likewise.
4668 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4670 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
4671 define_insn_and_split.
4672 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
4673 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
4675 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4677 * config/arm/arm.md (arm_subdi3): Convert define_insn into
4678 define_insn_and_split.
4679 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
4680 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
4682 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4684 * config/arm/arm.md (subsi3_carryin): New pattern.
4685 (subsi3_carryin_const): Likewise.
4686 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
4687 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
4689 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4691 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
4693 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4695 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
4696 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
4698 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4700 * config/arm/arm.c (arm_expand_builtin): Change fcode
4701 type to unsigned int.
4703 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4705 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
4707 2013-04-04 Ian Lance Taylor <iant@google.com>
4709 * doc/standards.texi (Standards): The Go frontend supports the Go 1
4712 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
4715 * df-scan.c (df_insn_delete): Disable failing assert.
4717 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4719 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
4720 New function prototype.
4721 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
4722 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
4723 (arm_builtin_vectorized_function): New function.
4725 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4727 * config/arm/arm_neon_builtins.def: New file.
4728 * config/arm/arm.c (neon_builtin_data): Move contents to
4729 arm_neon_builtins.def.
4730 (enum arm_builtins): Include neon builtin definitions.
4731 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
4732 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
4734 2013-04-04 Marek Polacek <polacek@redhat.com>
4736 PR tree-optimization/48186
4737 * predict.c (maybe_hot_frequency_p): Return false if
4738 HOT_BB_FREQUENCY_FRACTION is 0.
4739 (cgraph_maybe_hot_edge_p): Likewise.
4741 2013-04-04 Richard Biener <rguenther@suse.de>
4743 PR tree-optimization/56826
4744 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
4747 2013-04-04 Richard Biener <rguenther@suse.de>
4749 PR tree-optimization/56213
4750 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
4751 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
4753 2013-04-04 Richard Biener <rguenther@suse.de>
4755 PR tree-optimization/56837
4756 * tree-loop-distribution.c (classify_partition): For non-zero
4757 values require that the value has the same precision as its
4758 mode to be useful as memset value.
4760 2013-04-03 Nick Clifton <nickc@redhat.com>
4762 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
4763 (fmssf4): Use fmsf.s on E3V5 architectures.
4764 (fnmasf4): Use fnmaf.s on E3V5 architectures.
4765 (fnmssf4): Use fnmsf.s on E3V5 architectures.
4767 2013-04-03 Jeff Law <law@redhat.com>
4769 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
4770 (lra-eliminations.o): Likewise.
4772 2013-04-03 Teresa Johnson <tejohnson@google.com>
4774 * gcov-io.c (compute_working_sets): Moved most of body of old
4775 compute_working_sets here from profile.c.
4776 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
4777 (gcov_working_set_t): Moved typedef here from basic-block.h
4778 (compute_working_set): Declare.
4779 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
4780 (get_working_sets): Renamed from compute_working_set,
4781 replace most of body with call to new compute_working_sets.
4782 (get_exec_counts): Replace call to compute_working_sets
4783 to get_working_sets.
4784 * profile.h (get_working_sets): Renamed from compute_working_set.
4785 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
4786 to get_working_sets.
4787 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
4788 * gcov-dump.c (dump_working_sets): New function.
4790 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
4792 * hwint.c (sext_hwi, zext_hwi): New functions.
4793 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
4794 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
4795 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
4796 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
4797 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
4798 (sext_hwi, zext_hwi): New functions.
4800 2013-04-03 Jeff Law <law@redhat.com>
4802 PR tree-optimization/56799
4803 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
4804 back test for widening conversion erroneously dropped in prior change.
4806 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4809 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
4810 instead of next_real_insn.
4812 2013-04-03 Marek Polacek <polacek@redhat.com>
4815 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
4817 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4820 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
4822 (thumb1_output_casesi): Likewise.
4823 (thumb2_output_casesi): Likewise.
4825 2013-04-03 Richard Biener <rguenther@suse.de>
4827 PR tree-optimization/56817
4828 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4830 (tree_unroll_loops_completely_1): ... new function to manually
4831 walk the loop tree, properly defering outer loops of unrolled
4832 loops to later iterations.
4834 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4836 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
4837 (vectorizable_load): Likewise.
4838 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4839 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
4841 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4843 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
4846 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4848 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
4850 2013-04-03 Bin Cheng <bin.cheng@arm.com>
4852 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
4854 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4856 PR tree-optimization/56790
4857 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
4860 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4862 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4864 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
4865 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
4868 2013-04-03 Jakub Jelinek <jakub@redhat.com>
4871 * tree.h (force_folding_builtin_constant_p): New decl.
4872 * builtins.c (force_folding_builtin_constant_p): New variable.
4873 (fold_builtin_constant_p): Fold immediately also if
4874 force_folding_builtin_constant_p.
4876 2013-04-03 Richard Biener <rguenther@suse.de>
4878 PR tree-optimization/56812
4879 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4880 DRs of the same interleaving chain are independent.
4882 2013-04-02 Jason Merrill <jason@redhat.com>
4884 * gdbinit.in (pbb): Use debug fn.
4886 2013-04-02 Lawrence Crowl <crowl@google.com>
4888 * sese.h (struct ivtype_map_elt_s): Remove unused.
4889 (extern debug_ivtype_map): Remove unused.
4890 (extern eq_ivtype_map_elts): Remove unused.
4891 * sese.c (debug_ivtype_map): Removed unused.
4892 (debug_ivtype_map_1): Removed unused.
4893 (debug_ivtype_elt): Remove unused.
4894 (eq_ivtype_map_elts): Remove unused.
4897 2013-04-02 Kai Tietz <ktietz@redhat.com>
4900 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
4901 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
4902 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
4904 (legitimize_pe_coff_symbol): Likewise.
4905 (is_imported_p): New helper-function.
4906 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
4907 for Windows x64 targets.
4908 (ix86_expand_prologue): Optimize for pe-coff targets.
4909 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
4910 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
4911 medium/large code-model.
4912 (legitimize_pic_address): Likewise.
4913 (legitimize_tls_address): Likewise.
4914 (ix86_expand_call): Likewise.
4915 (x86_output_mi_thunk): Likewise.
4916 (get_dllimport_decl): Add new beimport argument.
4917 (construct_plt_address): Don't assert for x64 pe-coff targets.
4918 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4920 (SYMBOL_FLAG_STUBVAR): New macro.
4921 (SYMBOL_REF_STUBVAR_P): Likewise.
4922 * config/i386/winnt.c (stub_list): New structure.
4923 (stub_head): New local variable.
4924 (i386_pe_record_stub): New function.
4925 (i386_pe_file_end): Emit refptr-stubs.
4927 2013-04-02 Jakub Jelinek <jakub@redhat.com>
4929 PR rtl-optimization/56745
4930 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4931 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4934 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4935 and both of them are MEM_REFs, just compare first argument for
4936 equality and attempt to deal even with differing offsets.
4939 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4940 of gimple_clobber_p to be MEM_REF.
4941 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4942 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
4943 after gimplification.
4944 * asan.c (get_mem_ref_of_assignment): Don't instrument
4945 gimple_clobber_p stmts.
4946 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4947 gimple_clobber_p stmt if they have MEM_REF lhs and
4948 are dead because of another gimple_clobber_p stmt.
4949 * tree-ssa-live.c (clear_unused_block_pointer): Treat
4950 gimple_clobber_p stmts like debug stmts.
4951 (remove_unused_locals): Remove clobbers with MEM_REF lhs
4952 that refer to unused VAR_DECLs or uninitialized values.
4953 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4954 gimple_clobber_p stmts if they refer to removed parameters.
4955 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4958 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
4960 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4961 using SWI48 mode attribute.
4963 2013-04-02 Wei Mi <wmi@google.com>
4965 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4966 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4967 *<rotate_insn><mode>3_mask in i386.md.
4969 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
4971 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4973 2013-04-02 Richard Biener <rguenther@suse.de>
4975 PR tree-optimization/56778
4976 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4977 Runtime alias tests are not supported for gather loads.
4978 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4979 stmts referenced from SSA operands before updating SSA form.
4981 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
4982 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4984 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
4985 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4986 * config/arm/cortex-a53.md: New file.
4987 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4988 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4989 * config/arm/arm.c (arm_issue_rate): Likewise.
4990 * config/arm/arm-tune.md: Regenerate
4991 * config/arm/arm-tables.opt: Regenerate.
4992 * config/arm/arm-cores.def: Add cortex-a53.
4994 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
4996 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4999 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5001 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5002 scalar load/store operations using B/H registers.
5003 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5005 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5007 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5009 * config/aarch64/aarch64.c
5010 (aarch64_simd_scalar_immediate_valid_for_move): New.
5011 * config/aarch64/aarch64-protos.h
5012 (aarch64_simd_scalar_immediate_valid_for_move): New.
5013 * config/aarch64/constraints.md (Dh, Dq): New.
5014 * config/aarch64/iterators.md (hq): New.
5016 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5018 * reorg.c (get_branch_condition): Deal with conditional returns.
5019 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5021 2013-04-01 Wei Mi <wmi@google.com>
5023 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5024 Truncate operand 2 using %b asm operand modifier.
5025 (*<shift_insn><mode>3_mask): Ditto.
5026 (*<rotate_insn><mode>3_mask): Ditto.
5028 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5031 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5033 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5035 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5037 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5039 2013-03-30 Lawrence Crowl <crowl@google.com>
5041 * dse.c (clear_alias_sets): Remove never set.
5042 (disqualified_clear_alias_sets): Remove never set.
5043 (clear_alias_mode_pool): Remove never set.
5044 (dse_step0): Remove condition that is never true.
5045 (canon_address): Remove condition that is never true.
5046 (dse_step7): Remove condition that is never true.
5047 (rest_of_handle_dse): Remove condition that is never true.
5048 (rest_of_handle_dse::did_global): Remove never read from above.
5049 (dse_step2_spill): Remove never called from above.
5050 (dse_step5_spill): Remove never called from above.
5052 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5054 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5055 JUMP_TABLE_DATA changes.
5056 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5057 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5058 (Insns) <jump_table_data>: New entry.
5059 * doc/tm.texi: Regenerate.
5061 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5063 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5064 for table jump at the end of a basic block using tablejump_p.
5065 * targhooks.c (default_invalid_within_doloop): Likewise.
5066 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5067 target hook implementation that is identical to the default hook.
5068 (rs6000_invalid_within_doloop): Remove.
5070 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5071 unused variable from tablejump_p call.
5073 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5074 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5075 (INSN_DELETED_P): Likewise.
5076 (emit_jump_table_data): New prototype.
5077 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5078 after 4th as unused.
5079 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5080 * sched-vis.c (print_insn): Likewise.
5081 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5082 insn for compatibility with back ends that use next_active_insn to
5083 identify jump table data.
5084 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5085 (remove_insn): Likewise.
5086 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5088 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5089 (emit_jump_table_data): New function.
5091 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5092 basic block, a JUMP_TABLE_DATA never is.
5093 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5094 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5095 off from code handling real insns.
5096 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5097 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5098 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5099 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5100 is not a NONDEBUG_INSN_P.
5101 * ira-costs.c (scan_one_insn): Likewise.
5102 * jump.c (mark_all_labels): Likewise.
5103 (mark_jump_label_1): Likewise.
5104 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5105 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5107 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5108 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5109 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5110 JUMP_TABLE_DATA_P insns.
5111 (calculate_elim_costs_all_insns): Likewise.
5112 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5113 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5114 (delete_output_reload): Code style fixups.
5115 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5116 insn flags on this non-insn.
5117 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5118 as scheduling barriers, for pre-change compatibility.
5119 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5120 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5122 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5123 redundant JUMP_TABLE_DATA_P test.
5124 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5125 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5126 (frv_for_each_packet): Likewise.
5127 * config/i386/i386.c (min_insn_size): Likewise.
5128 (ix86_avoid_jump_mispredicts): Likewise.
5129 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5130 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5131 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5132 (mips16_insn_length): Robustify.
5133 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5134 (mips16_split_long_branches): Likewise.
5135 * config/pa/pa.c (pa_combine_instructions): Likewise.
5136 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5137 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5138 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5139 as contributing to pool range lengths.
5140 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5141 Remove redundant JUMP_TABLE_DATA_P test.
5142 (sh_loop_align): Likewise.
5143 (split_branches): Likewise.
5144 (sh_insn_length_adjustment): Likewise.
5145 * config/spu/spu.c (get_branch_target): Likewise.
5147 2013-03-29 Jan Hubicka <jh@suse.cz>
5149 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5150 gcov streaming; stream hot bb threshold to ltrans.
5151 * predict.c (get_hot_bb_threshold): Break out from ....
5152 (maybe_hot_count_p): ... here.
5153 (set_hot_bb_threshold): New function.
5154 * lto-section-in.c (lto_section_name): Add profile.
5155 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5156 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5158 (histogram_entry): New structure.
5159 (histogram, histogram_pool): New global vars.
5160 (histogram_hash): New structure.
5161 (histogram_hash::hash): New method.
5162 (histogram_hash::equal): Likewise.
5163 (account_time_size): New function.
5164 (cmp_counts): New function.
5165 (dump_histogram): New function.
5166 (ipa_profile_generate_summary): New function.
5167 (ipa_profile_write_summary): New function.
5168 (ipa_profile_read_summary): New function.
5169 (ipa_profile): Decide on threshold.
5170 (pass_ipa_profile): Add ipa_profile_write_summary and
5171 ipa_profile_read_summary.
5172 * Makefile.in (ipa.o): Update dependencies.
5173 * lto-streamer.h (LTO_section_ipa_profile): New section.
5175 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5177 * tree.h (VAR_P): New.
5179 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5182 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5184 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5186 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5187 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5188 (control_flow_insn_p): Likewise.
5189 * cfgrtl.c (duplicate_insn_chain): Likewise.
5190 * final.c (get_attr_length_1): Likewise.
5191 (shorten_branches): Likewise.
5192 (final_scan_insn): Likewise.
5193 * function.c (instantiate_virtual_regs): Likewise.
5194 * gcse.c (insert_insn_end_basic_block): Likewise.
5195 * ira-costs.c (scan_one_insn): Likewise.
5196 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5197 * lra.c (check_rtl): Likewise.
5198 * reload1.c (elimination_costs_in_insn): Likewise.
5199 * reorg.c (follow_jumps): Likewise.
5201 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5202 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5203 (thumb_far_jump_used_p): Likewise.
5204 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5205 (workaround_speculation): Likewise.
5206 (add_sched_insns_for_speculation): Likewise.
5207 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5208 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5209 (frv_for_each_packet): Likewise.
5210 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5211 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5212 (final_emit_insn_group_barriers): Likewise.
5213 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5214 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5215 (mips16_insn_length): Likewise.
5216 * config/pa/pa.c (pa_reorg): Likewise.
5217 (pa_combine_instructions): Likewise.
5218 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5219 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5220 (sh_reorg): Likewise.
5221 (split_branches): Likewise.
5222 * config/spu/spu.c (get_branch_target): Likewise.
5224 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5227 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5229 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
5230 Fix declaration name.
5232 2013-03-28 Lawrence Crowl <crowl@google.com>
5234 * graphds.h (struct graph.indicies): Remove unused.
5235 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5236 (SCOP_ORIGINAL_PDDRS): Remove unused.
5237 * sese.h (extern insert_loop_close_phis): Removed unused.
5238 (extern insert_guard_phis): Removed unused.
5239 (extern ivtype_map_elt_info): Removed unused.
5240 (new_ivtype_map_elt): Removed unused.
5241 * sese.c (ivtype_map_elt_info): Removed unused.
5243 2013-03-28 Lawrence Crowl <crowl@google.com>
5245 * Makefile.in: Add several missing include dependences.
5247 (test-dump.o): New. This object is not added to any executable,
5248 but is present for ad-hoc testing.
5250 (debug (const bitmap_head_def &)): New.
5251 (debug (const bitmap_head_def *)): New.
5253 (extern debug (const bitmap_head_def &)): New.
5254 (extern debug (const bitmap_head_def *)): New.
5256 (debug (edge_def &)): New.
5257 (debug (edge_def *)): New.
5259 (debug (basic_block_def &)): New.
5260 (debug (basic_block_def *)): New.
5262 (dump_node (const_tree, int, FILE *)): Correct source file.
5264 (debug (die_struct &)): New.
5265 (debug (die_struct *)): New.
5267 (extern debug (die_struct &)): New.
5268 (extern debug (die_struct *)): New.
5269 * gimple-pretty-print.c
5270 (debug (gimple_statement_d &)): New.
5271 (debug (gimple_statement_d *)): New.
5272 * gimple-pretty-print.h
5273 (extern debug (gimple_statement_d &)): New.
5274 (extern debug (gimple_statement_d *)): New.
5276 (debug (ira_allocno_copy &)): New.
5277 (debug (ira_allocno_copy *)): New.
5278 (debug (ira_allocno &)): New.
5279 (debug (ira_allocno *)): New.
5281 (extern debug (ira_allocno_copy &)): New.
5282 (extern debug (ira_allocno_copy *)): New.
5283 (extern debug (ira_allocno &)): New.
5284 (extern debug (ira_allocno *)): New.
5286 (debug (live_range &)): New.
5287 (debug (live_range *)): New.
5289 (debug (lra_live_range &)): New.
5290 (debug (lra_live_range *)): New.
5292 (debug (lra_live_range &)): New.
5293 (debug (lra_live_range *)): New.
5295 (debug (omega_pb_d &)): New.
5296 (debug (omega_pb_d *)): New.
5298 (extern debug (omega_pb_d &)): New.
5299 (extern debug (omega_pb_d *)): New.
5301 (debug (const rtx_def &)): New.
5302 (debug (const rtx_def *)): New.
5304 (debug_tree (tree): Move within file.
5305 (debug_raw (const tree_node &)): New.
5306 (debug_raw (const tree_node *)): New.
5307 (dump_tree_via_hooks (const tree_node *, int)): New.
5308 (debug (const tree_node &)): New.
5309 (debug (const tree_node *)): New.
5310 (debug_verbose (const tree_node &)): New.
5311 (debug_verbose (const tree_node *)): New.
5312 (debug_head (const tree_node &)): New.
5313 (debug_head (const tree_node *)): New.
5314 (debug_body (const tree_node &)): New.
5315 (debug_body (const tree_node *)): New.
5316 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5317 (debug (vec<tree, va_gc> &)): New.
5318 (debug (vec<tree, va_gc> *)): New.
5320 (extern debug (const rtx_def &)): New.
5321 (extern debug (const rtx_def *)): New.
5323 (debug_raw (simple_bitmap_def &)): New.
5324 (debug_raw (simple_bitmap_def *)): New.
5325 (debug (simple_bitmap_def &)): New.
5326 (debug (simple_bitmap_def *)): New.
5328 (extern debug (simple_bitmap_def &)): New.
5329 (extern debug (simple_bitmap_def *)): New.
5330 (extern debug_raw (simple_bitmap_def &)): New.
5331 (extern debug_raw (simple_bitmap_def *)): New.
5333 (debug (vinsn_def &)): New.
5334 (debug (vinsn_def *)): New.
5335 (debug_verbose (vinsn_def &)): New.
5336 (debug_verbose (vinsn_def *)): New.
5337 (debug (expr_def &)): New.
5338 (debug (expr_def *)): New.
5339 (debug_verbose (expr_def &)): New.
5340 (debug_verbose (expr_def *)): New.
5341 (debug (vec<rtx> &)): New.
5342 (debug (vec<rtx> *)): New.
5344 (extern debug (vinsn_def &)): New.
5345 (extern debug (vinsn_def *)): New.
5346 (extern debug_verbose (vinsn_def &)): New.
5347 (extern debug_verbose (vinsn_def *)): New.
5348 (extern debug (expr_def &)): New.
5349 (extern debug (expr_def *)): New.
5350 (extern debug_verbose (expr_def &)): New.
5351 (extern debug_verbose (expr_def *)): New.
5352 (extern debug (vec<rtx> &)): New.
5353 (extern debug (vec<rtx> *)): New.
5355 (_list_iter_cond_expr): Make inline instead of static.
5357 (debug (sreal &)): New.
5358 (debug (sreal *)): New.
5360 (extern debug (sreal &)): New.
5361 (extern debug (sreal *)): New.
5363 (extern debug_raw (const tree_node &)): New.
5364 (extern debug_raw (const tree_node *)): New.
5365 (extern debug (const tree_node &)): New.
5366 (extern debug (const tree_node *)): New.
5367 (extern debug_verbose (const tree_node &)): New.
5368 (extern debug_verbose (const tree_node *)): New.
5369 (extern debug_head (const tree_node &)): New.
5370 (extern debug_head (const tree_node *)): New.
5371 (extern debug_body (const tree_node &)): New.
5372 (extern debug_body (const tree_node *)): New.
5373 (extern debug (vec<tree, va_gc> &)): New.
5374 (extern debug (vec<tree, va_gc> *)): New.
5376 (debug (struct loop &)): New.
5377 (debug (struct loop *)): New.
5378 (debug_verbose (struct loop &)): New.
5379 (debug_verbose (struct loop *)): New.
5380 * tree-dump.c: Add header dependence.
5382 (extern debug (struct loop &)): New.
5383 (extern debug (struct loop *)): New.
5384 (extern debug_verbose (struct loop &)): New.
5385 (extern debug_verbose (struct loop *)): New.
5387 (debug (data_reference &)): New.
5388 (debug (data_reference *)): New.
5389 (debug (vec<data_reference_p> &)): New.
5390 (debug (vec<data_reference_p> *)): New.
5391 (debug (vec<ddr_p> &)): New.
5392 (debug (vec<ddr_p> *)): New.
5394 (extern debug (data_reference &)): New.
5395 (extern debug (data_reference *)): New.
5396 (extern debug (vec<data_reference_p> &)): New.
5397 (extern debug (vec<data_reference_p> *)): New.
5398 (extern debug (vec<ddr_p> &)): New.
5399 (extern debug (vec<ddr_p> *)): New.
5401 (debug (pt_solution &)): New.
5402 (debug (pt_solution *)): New.
5404 (extern debug (pt_solution &)): New.
5405 (extern debug (pt_solution *)): New.
5407 (debug (_var_map &)): New.
5408 (debug (_var_map *)): New.
5409 (debug (tree_live_info_d &)): New.
5410 (debug (tree_live_info_d *)): New.
5412 (extern debug (_var_map &)): New.
5413 (extern debug (_var_map *)): New.
5414 (extern debug (tree_live_info_d &)): New.
5415 (extern debug (tree_live_info_d *)): New.
5417 2013-03-28 Jan Hubicka <jh@suse.cz>
5419 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5421 2013-03-28 Ian Bolton <ian.bolton@arm.com>
5423 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5424 record only when desired or required.
5426 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
5428 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5429 *vec_extractv2di_1_rex64. Use x64 isa attribute.
5431 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5433 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
5434 (*andsi3_compare0_uxtw): New pattern.
5435 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
5436 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
5438 2013-03-28 Jan Hubicka <jh@suse.cz>
5440 * data-streamer-in.c (streamer_read_gcov_count): New function.
5441 * gimple-streamer-out.c: Include value-prof.h.
5442 (output_gimple_stmt): Output histogram.
5443 (output_bb): Use streamer_write_gcov_count.
5444 * value-prof.c: Include data-streamer.h
5445 (dump_histogram_value): Add HIST_TYPE_MAX.
5446 (stream_out_histogram_value): New function.
5447 (stream_in_histogram_value): New function.
5448 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
5449 (stream_out_histogram_value, stream_in_histogram_value): Declare.
5450 * data-streamer-out.c (streamer_write_gcov_count): New function.
5451 (streamer_write_gcov_count_stream): New function.
5452 * lto-cgraph.c (lto_output_edge): Update counter streaming.
5453 (lto_output_node): Likewise.
5454 (input_node, input_edge): Likewise.
5455 * lto-streamer-out.c (output_cfg): Update streaming.
5456 * lto-streamer-in.c (input_cfg): Likewise.
5457 * data-streamer.h (streamer_write_gcov_count,
5458 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
5459 * gimple-streamer-in.c: Include value-prof.h
5460 (input_gimple_stmt): Input histograms.
5461 (input_bb): Update profile streaming.
5463 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5465 * genmodes.c (emit_max_int): New function.
5466 (emit_insn_modes_h): Added call to emit_max_function.
5467 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
5469 * machmode.def: Fixed comment.
5471 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5473 * combine.c (try_combine): Removed useless assert.
5474 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
5476 2013-03-28 Marek Polacek <polacek@redhat.com>
5477 Richard Biener <rguenther@suse.de>
5479 PR tree-optimization/56695
5480 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
5481 build signed result of a vector comparison.
5482 * tree-cfg.c (verify_gimple_comparison): Check that a result
5483 of a vector comparison has signed type.
5485 2013-03-28 Richard Biener <rguenther@suse.de>
5487 PR tree-optimization/37021
5488 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
5489 do not restrict gaps between groups.
5490 * tree-vect-stmts.c (vectorizable_load): Properly account for
5491 a gap between groups.
5493 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
5495 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
5496 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
5499 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
5501 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
5502 * doc/extend.texi (Named Address Spaces): Ditto.
5503 (Variable Attributes): Ditto.
5505 2013-03-27 Kai Tietz <ktietz@redhat.com>
5507 * config.build: Add support for cygwin x64 target.
5508 * config.gcc: Likewise.
5509 * config.host: Likewise.
5510 * configure.ac: Likewise
5511 * configure: Regenerated.
5513 2013-03-27 Kai Tietz <ktietz@redhat.com>
5515 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
5516 * config/i386/t-cygwin-w64: New file.
5517 * config/i386/cygwin-w64.h: New file.
5518 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
5519 and add support for x64-cygwin target.
5520 (CPP_SPEC): Likewise.
5521 (CXX_WRAP_SPEC_LIST): Undefine before define.
5522 (LIBGCJ_SONAME): Use 15 as version.
5524 2013-03-27 Richard Biener <rguenther@suse.de>
5526 PR tree-optimization/56716
5527 * tree-ssa-structalias.c (perform_var_substitution): Adjust
5528 dumping for ref nodes.
5530 2013-03-27 Martin Jambor <mjambor@suse.cz>
5532 PR tree-optimization/55334
5533 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
5534 restricted pointers to arrays.
5536 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5538 * Makefile.in (.SUFFIXES): Add .cc.
5539 (.c.o): Apply same recipe for implicit rule .cc.o.
5541 2013-03-27 Richard Biener <rguenther@suse.de>
5543 PR tree-optimization/37021
5544 * tree-vect-data-refs.c (vect_check_strided_load): Allow
5545 REALPART/IMAGPART_EXPRs around the supported refs.
5546 * tree-ssa-structalias.c (find_func_aliases): Assume that
5547 floating-point values are not used to transfer pointers.
5549 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5551 * target.def (TARGET_HAS_IFUNC_P): New target hook.
5552 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
5553 * doc/tm.texi: Regenerate.
5554 * targhooks.h (default_has_ifunc_p): New.
5555 * targhooks.c (default_has_ifunc_p): Ditto.
5556 * config/linux-protos.h: New file.
5557 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
5558 this hook for linux which disables support of indirect functions in
5560 * config/linux-android.c: New file.
5561 * config/t-linux-android.c: Ditto.
5562 * config.gcc: Added new object file linux-android.o.
5563 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
5564 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
5565 * varasm.c (do_assemble_alias): Likewise.
5566 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
5567 doesn't support indirect functions.
5568 * configure: Regenerate.
5570 2013-03-27 Bin Cheng <bin.cheng@arm.com>
5573 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
5574 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
5577 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5579 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
5581 2013-03-27 Terry Guo <terry.guo@arm.com>
5583 * config/arm/arm-cores.def: Added core cortex-r7.
5584 * config/arm/arm-tune.md: Regenerated.
5585 * config/arm/arm-tables.opt: Regenerated.
5586 * doc/invoke.texi: Added entry for core cortex-r7.
5588 2013-03-27 Walter Lee <walt@tilera.com>
5590 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
5591 double-decrement of next_scratch_regno.
5593 2013-03-27 Walter Lee <walt@tilera.com>
5595 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
5597 (insn_v1mulus): Ditto.
5598 (insn_v2muls): Ditto.
5600 2013-03-27 Walter Lee <walt@tilera.com>
5602 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
5603 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
5605 2013-03-27 Walter Lee <walt@tilera.com>
5607 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
5608 (*sibcall_value): Ditto.
5610 2013-03-27 Walter Lee <walt@tilera.com>
5612 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
5613 (insn_mnz_v8qi): ... this ...
5614 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
5616 (insn_v<n>mnz): Replaced by ...
5617 (insn_v1mnz): ... this ...
5618 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
5620 (insn_mz_<mode>): Replaced by ...
5621 (insn_mz_v8qi): ... this ...
5622 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
5624 (insn_v<n>mz): Replaced by ...
5625 (insn_v1mz): ... this ...
5626 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
5629 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
5631 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
5633 2013-03-26 Roland McGrath <mcgrathr@google.com>
5635 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
5636 than fprintf with a non-constant, non-format string.
5638 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
5640 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
5641 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
5642 operand 0 predicate.
5643 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
5644 attribute. Use general_x64nomem_operand as operand 1 predicate.
5645 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
5646 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5647 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
5648 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5649 (mov<mode>_insv_1): Remove expander. Merge insn with
5650 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
5651 Use general_x64nomem_operand as operand 1 predicate.
5652 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
5653 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
5654 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5655 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
5656 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
5657 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
5658 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5659 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
5660 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
5661 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
5662 (general_x64nomem_operand): Ditto.
5664 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
5666 * config/rtems.opt: Add -pthread option.
5668 2013-03-26 Richard Biener <rguenther@suse.de>
5670 * alias.c (find_base_term): Avoid redundant and not used recursion.
5671 (base_alias_check): Get the initial base term from the caller.
5672 (true_dependence_1): Compute and pass base terms to base_alias_check.
5673 (write_dependence_p): Likewise.
5674 (may_alias_p): Likewise.
5676 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
5678 * config/aarch64/aarch64.c (aarch64_classify_address): Support
5679 PC-relative load in SI modes and above only.
5681 2013-03-26 Xinyu Qi <xyqi@marvell.com>
5683 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
5684 * config/arm/iwmmxt.md (WCGR0): Update.
5685 (WCGR1, WCGR2, WCGR3): Likewise.
5687 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
5689 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
5690 Use x64 and nox64 isa attributes.
5692 2013-03-26 Richard Biener <rguenther@suse.de>
5694 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5695 alignment computations and rely on get_object_alignment_1
5696 for the !TYPE_P case.
5697 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
5699 2013-03-26 Walter Lee <walt@tilera.com>
5701 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
5702 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
5704 2013-03-25 Jeff Law <law@redhat.com>
5706 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
5707 check for INTEGRAL_TYPE_P that was missing due to checking in
5708 wrong version of prior patch.
5710 2013-03-25 Walter Lee <walt@tilera.com>
5712 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
5713 TILEGX_INSN_SHUFFLEBYTES1.
5714 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
5716 (tilegx_builtins): Ditto.
5717 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
5719 2013-03-25 Walter Lee <walt@tilera.com>
5721 * config/tilegx/tilegx.md (floatsisf2): New pattern.
5722 (floatunssisf2): New pattern.
5723 (floatsidf2): New pattern.
5724 (floatunssidf2): New pattern.
5726 2013-03-25 Walter Lee <walt@tilera.com>
5728 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
5729 tests for constraint J, K, N, P.
5731 2013-03-25 Walter Lee <walt@tilera.com>
5733 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
5734 Use indirect/pcrel encoding.
5735 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
5738 2013-03-25 Steve Ellcey <sellcey@mips.com>
5740 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
5741 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
5742 * config/mips/mips.c (mips_option_override): Set IMADD default.
5743 * config/mips/mips.h (PTF_AVOID_IMADD): New.
5744 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
5745 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
5746 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
5747 * doc/invoke.texi (-mimadd/-mno-imadd): New.
5749 2013-03-25 Jeff Law <law@redhat.com>
5751 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
5752 slightly to avoid creating and folding useless trees. Simplify
5753 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
5755 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
5757 * config/i386/i386.md (*zero_extendsidi2): Merge with
5758 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
5759 * config/i386/predicates.md (x86_64_zext_operand): Rename from
5760 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
5761 targets. Clarify comment.
5763 2013-03-25 Martin Jambor <mjambor@suse.cz>
5765 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
5766 pass-through jump functions differently.
5767 (ipa_read_jump_function): Likewise. Also use setter functions to set
5770 2013-03-25 Martin Jambor <mjambor@suse.cz>
5772 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
5773 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
5775 (ipa_get_indirect_edge_target): New function.
5776 (devirtualization_time_bonus): New parameter known_aggs, pass it to
5777 ipa_get_indirect_edge_target. Update all callers.
5778 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
5779 ipa_get_indirect_edge_target_1 instead of calling
5780 ipa_get_indirect_edge_target.
5781 (create_specialized_node): Pass aggvlas to
5782 ipcp_discover_new_direct_edges.
5784 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5786 * config/arm/arm.md (f_sels, f_seld): New types.
5787 (*cmov<mode>): New pattern.
5788 * config/arm/predicates.md (arm_vsel_comparison_operator): New
5791 2013-03-25 Kai Tietz <ktietz@redhat.com>
5793 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
5794 POSIX-printf for mingw-hosted builds.
5796 2013-03-25 Richard Biener <rguenther@suse.de>
5799 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
5800 must-not-throw stmt location.
5802 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5804 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
5805 Emit load-acquire versions when acq is true.
5806 (arm_emit_store_exclusive): Add rel parameter.
5807 Emit store-release versions when rel is true.
5808 (arm_split_compare_and_swap): Use acquire-release instructions
5810 of barriers when appropriate.
5811 (arm_split_atomic_op): Likewise.
5812 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
5813 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
5814 (VUNSPEC_SLX): Likewise.
5815 (VUNSPEC_LDA): Likewise.
5816 (VUNSPEC_STL): Likewise.
5817 * config/arm/sync.md (atomic_load<mode>): New pattern.
5818 (atomic_store<mode>): Likewise.
5819 (arm_load_acquire_exclusive<mode>): Likewise.
5820 (arm_load_acquire_exclusivesi): Likewise.
5821 (arm_load_acquire_exclusivedi): Likewise.
5822 (arm_store_release_exclusive<mode>): Likewise.
5824 2013-03-25 Catherine Moore <clm@codesourcery.com>
5826 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
5827 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
5828 * config/mip/predicates.md (lwsp_swsp_operand,
5829 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
5830 sb16_operand, db4_operand, db7_operand, ib3_operand,
5831 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
5832 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
5833 andi16_operand): New predicates.
5834 * config/mips/mips.md (compression): New attribute.
5835 (enabled): New attribute.
5836 (length): Consider compression in computing length.
5837 (shift_compression): New code attribute.
5838 (*add<mode>3): New operands. Record compression.
5839 (sub<mode>3): Likewise.
5840 (one_cmpl<mode>2): Likewise.
5841 (*and<mode>3): Likewise.
5842 (*ior<mode>3): Likewise.
5843 (unnamed pattern for xor): Likewise.
5844 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
5845 (*<optab><mode>3): Likewise.
5846 (*mov<mode>_internal: Likewise.
5847 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
5848 (mips_unsigned_immediate_p): New.
5849 (umips_lwsp_swsp_address_p): New.
5850 (m16_based_address_p): New.
5851 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
5852 (mips_unsigned_immediate_p): New prototype.
5853 (lwsp_swsp_address_p): New prototype.
5854 (m16_based_address_p): New prototype.
5855 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
5856 (mips_signed_immediate_p): New function.
5857 (m16_based_address_p): New function.
5858 (lwsp_swsp_address_p): New function.
5859 (mips_print_operand_punctuation): Recognize short delay slot insns
5860 for microMIPS.add<mode>3"
5862 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5865 * config/arm/iterators.md (v_cmp_result): New mode attribute.
5866 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
5868 2013-03-25 Richard Biener <rguenther@suse.de>
5870 PR tree-optimization/56689
5871 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
5874 2013-03-25 Richard Biener <rguenther@suse.de>
5876 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
5878 (memory_references): Likewise.
5879 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
5880 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
5881 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
5882 (gather_mem_refs_in_loops): Fold into ...
5883 (analyze_memory_references): ... this. Move initialization
5884 to tree_ssa_lim_initialize.
5885 (fill_always_executed_in): Rename to ...
5886 (fill_always_executed_in_1): ... this.
5887 (fill_always_executed_in): Move contains_call computation to
5888 this new function from ...
5889 (tree_ssa_lim_initialize): ... here.
5890 (tree_ssa_lim): Call fill_always_executed_in.
5892 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5894 * postreload.c (reload_combine): Fix code detecting returns.
5896 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5898 * function.c (emit_use_return_register_into_block): On cc0 targets,
5899 do not emit the sequence between cc0 setter and user.
5901 2013-03-25 Kai Tietz <ktietz@redhat.com>
5903 * config/i386/predicates.md (local_symbolic_operand): Interpret
5904 dll-imported symbols as none-local.
5906 2013-03-25 Richard Biener <rguenther@suse.de>
5908 * tree-ssa-loop-im.c (struct depend): Remove.
5909 (struct lim_aux_data): Make depends a vec of gimples.
5910 (free_lim_aux_data): Adjust.
5911 (add_dependency): Likewise.
5912 (set_level): Likewise.
5914 2013-03-25 Richard Biener <rguenther@suse.de>
5917 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
5918 the pointer returned by calls with ECF_MALLOC set.
5920 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
5922 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5924 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
5926 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
5927 using MMXMODE mode iterator.
5928 (*move<mode>_internal): Merge with *movv2sf_internal and
5929 *movv2sf_internal_rex64 using MMXMODE mode iterator.
5931 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5933 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5934 (record_last_mem_set_info): Likewise.
5936 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5937 of XNEWVEC followed by memset.
5938 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5940 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5942 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5943 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5944 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5945 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5946 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5947 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5948 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5949 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5950 BARRIER_P instead of GET_CODE.
5952 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5954 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5955 inaccuracy in the probing code.
5957 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5958 (ctrapdi4): Likewise.
5960 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5962 * calls.c (expand_call): Add missing guard to code handling return
5963 of non-BLKmode structures in MSB.
5964 * function.c (expand_function_end): Likewise.
5966 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5968 * combine.c (try_combine): Adjust comment. Do not add the set of
5969 insn #0 if the destination indirectly is set or dies in insn #2.
5970 Tidy up code to distribute a new note.
5972 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
5974 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5975 also for alternatives 16 and 17.
5977 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
5979 * config/i386/sse.md (*mov<mode>_internal): Merge with
5980 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
5981 Emit insn template depending on type attribute. Use
5982 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5983 movd instead of movq mnemonic for interunit moves. Rewrite mode
5984 attribute calculation. Remove unit attribute calculation.
5985 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5986 Set prefix_data16 attribute for DImode ssemov types.
5987 Use Ym instead of y for SSE-MMX conversion alternatives.
5988 Reorder operand constraints.
5990 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
5992 * df.h (df_insn_delete): Adjust prototype.
5993 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5994 and let it decide whether mark the basic block dirty.
5995 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5996 * df-scan.c (df_insn_info_delete): New helper function, split
5997 off from df_insn_delete.
5998 (df_scan_free_bb_info): Use it.
5999 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6001 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6002 that the insn is actually an insn and it has a non-NULL basic block.
6003 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6005 2013-03-22 Richard Biener <rguenther@suse.de>
6007 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6009 (mem_ref_alloc): Do not allocate them.
6010 (refs_independent_p): Do not query or maintain a cache.
6012 2013-03-22 Richard Biener <rguenther@suse.de>
6014 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6015 (gather_mem_refs_in_loops): Do not compute it.
6016 (analyze_memory_references): Do not allocate it.
6017 (tree_ssa_lim_finalize): Do not free it.
6018 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6020 2013-03-22 Richard Biener <rguenther@suse.de>
6022 * is-a.h (as_a): Use gcc_checking_assert.
6024 2013-03-22 Ian Bolton <ian.bolton@arm.com>
6026 * config/aarch64/aarch64.c (aarch64_print_operand): New
6027 format specifier for printing a constant in hex.
6028 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6029 format specifier for printing second operand.
6031 2013-03-22 Richard Biener <rguenther@suse.de>
6033 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6035 (gather_mem_refs_in_loops): Perform store accumulation here.
6036 (create_vop_ref_mapping_loop): Remove.
6037 (create_vop_ref_mapping): Likewise.
6038 (analyze_memory_references): Initialize refs_stored_in_loop.
6039 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
6040 (record_indep_loop): Remove.
6041 (record_dep_loop): New function.
6042 (ref_indep_loop_p_1): Adjust to only walk over references
6043 in the loop, not its subloops.
6044 (ref_indep_loop_p): Rename to ...
6045 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6046 maintaining a more fine-grained cache.
6047 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6048 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6050 2013-03-22 Richard Biener <rguenther@suse.de>
6052 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6053 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6054 aggregate mem_ref_loc.
6055 (free_mem_ref_locs): Inline into ...
6056 (memref_free): ... this and adjust.
6057 (mem_ref_alloc): Adjust.
6058 (mem_ref_locs_alloc): Remove.
6059 (record_mem_ref_loc): Adjust.
6060 (get_all_locs_in_loop): Rewrite into ...
6061 (for_all_locs_in_loop): ... this iterator.
6062 (rewrite_mem_ref_loc): New functor.
6063 (rewrite_mem_refs): Use for_all_locs_in_loop.
6064 (sm_set_flag_if_changed): New functor.
6065 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6066 (ref_always_accessed): New functor.
6067 (ref_always_accessed_p): Use for_all_locs_in_loop.
6069 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6071 * tree-pass.h (PROP_gimple_lvec): New.
6072 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6073 (init_optimization_passes): Move pass_lower_vector.
6074 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6076 (pass_lower_vector): Provide PROP_gimple_lvec.
6077 (pass_lower_vector_ssa): Likewise.
6078 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6080 2013-03-21 Mark Wielaard <mjw@redhat.com>
6082 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6084 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6086 * config/i386/i386.md (*movdi_internal): Disparage slightly
6087 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6088 conversion alternatives.
6090 2013-03-21 Jakub Jelinek <jakub@redhat.com>
6093 * diagnostic.def (DK_WERROR): New kind.
6094 * diagnostic.h (werrorcount): Define.
6095 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6096 promoted to DK_ERROR, increment DK_WERROR counter instead of
6098 * toplev.c (toplev_main): Call print_ignored_options even if
6099 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6100 even if just werrorcount is non-zero.
6103 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6105 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6106 (string_cst_pool_decl): New function.
6107 (optimize_one_addr_into_implicit_ptr): New function.
6108 (resolve_addr_in_expr): Optimize DWARF location expression
6109 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6110 which doesn't live in memory, but has DW_AT_location or
6111 DW_AT_const_value, or refers to a string literal, into
6112 DW_OP_GNU_implicit_pointer.
6113 (optimize_location_into_implicit_ptr): New function.
6114 (resolve_addr): If removing DW_AT_location of a variable because
6115 it was DW_OP_addr of address of the variable, but the variable doesn't
6116 live in memory, try to emit const value attribute for the initializer.
6118 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6120 * tree.h (VECTOR_TYPE_P): New macro.
6121 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6123 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6124 VEC_COND_EXPR cannot be lvalues.
6125 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6127 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6129 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6130 Restrict the transformation to equal modes.
6132 2013-03-21 Richard Biener <rguenther@suse.de>
6134 PR tree-optimization/39326
6135 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6136 (MEM_ANALYZABLE): Adjust.
6137 (record_mem_ref_loc): Move bitmap ops ...
6138 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6139 unanalyzable refs, do not record locations for it.
6140 (analyze_memory_references): Allocate ref zero as shared
6142 (refs_independent_p): Do not test for unanalyzed mems here.
6143 (ref_indep_loop_p_1): Special-case disambiguation against
6145 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
6147 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6149 * config/arm/arm-protos.h (tune_params): Add
6150 prefer_neon_for_64bits field.
6151 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6152 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6153 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6154 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6155 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6156 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6157 (arm_option_override): Handle -mneon-for-64bits new option.
6158 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6159 (prefer_neon_for_64bits): Declare new variable.
6160 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
6161 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
6162 (arch_enabled): Handle new arch types. Remove support for onlya8
6164 (one_cmpldi2): Use new arch names.
6165 (zero_extend<mode>di2, extend<mode>di2): Ditto.
6166 * config/arm/arm.opt (mneon-for-64bits): Add option.
6167 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6168 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6169 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6171 * doc/invoke.texi (-mneon-for-64bits): Document.
6173 2013-03-21 Richard Biener <rguenther@suse.de>
6175 PR tree-optimization/39326
6176 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6177 (sort_bbs_in_loop_postorder_cmp): New function.
6178 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
6180 2013-03-21 Richard Biener <rguenther@suse.de>
6182 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6183 (vect_insert_into_interleaving_chain): Likewise.
6184 (vect_drs_dependent_in_basic_block): Inline ...
6185 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6187 (vect_analyze_data_ref_dependence): ... here. Simplify.
6188 (vect_check_interleaving): Simplify.
6189 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6190 (vect_slp_analyze_data_ref_dependences): ... this new function.
6191 (dr_group_sort_cmp): New function.
6192 (vect_analyze_data_ref_accesses): Compute data-reference groups
6193 here instead of in vect_analyze_data_ref_dependence. Use
6194 a more efficient algorithm.
6195 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6196 vect_slp_analyze_data_ref_dependences. Call
6197 vect_analyze_data_ref_accesses earlier.
6198 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6199 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6200 (vect_slp_analyze_data_ref_dependences): New prototype.
6202 2013-03-21 Richard Biener <rguenther@suse.de>
6204 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6205 ref is stored in the loop.
6206 (find_refs_for_sm): Walk only over all stores.
6207 (store_motion_loop): Allocate from lim_bitmap_obstack.
6208 (store_motion): Likewise.
6210 2013-03-21 Richard Biener <rguenther@suse.de>
6212 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6213 Update virtual SSA form.
6215 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6217 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6218 * configure: Regenerate.
6219 * config.in: Regenerate.
6220 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6221 if !HAVE_LD_EH_FRAME_CIEV3.
6223 2013-03-21 Richard Biener <rguenther@suse.de>
6225 * tree-cfg.c (verify_expr_no_block): New function.
6226 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6227 nor DECL_VALUE_EXPR have locations with associated blocks.
6228 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6229 (clear_unused_block_pointer): Remove code dealing with
6230 blocks in DECL_DEBUG_EXPR locations.
6232 2013-03-21 Richard Biener <rguenther@suse.de>
6234 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6235 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6236 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6237 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6238 instead of DECL_DEBUG_EXPR_IS_FROM.
6239 * gimplify.c (gimplify_modify_expr): Likewise.
6240 * tree-cfg.c (verify_expr_location_1): Likewise.
6241 * tree-complex.c (create_one_component_var): Likewise.
6242 * tree-sra.c (create_access_replacement): Likewise.
6243 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6244 (clear_unused_block_pointer): Likewise.
6245 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6246 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6247 * var-tracking.c (var_debug_decl): Likewise.
6248 (track_expr_p): Likewise.
6249 * tree-inline.c (add_local_variables): Likewise. Set
6250 DECL_HAS_DEBUG_EXPR_P after copying it.
6251 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6252 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6254 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6257 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6258 * configure: Regenerate.
6259 * config.in: Regenerate.
6260 * config/i386/i386.md (*movdf_internal): Use
6261 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6262 movd instead of movq mnemonic for interunit moves.
6263 (*movdi_internal): Ditto.
6265 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6267 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6268 (abd<mode>_3): New pattern.
6269 (aba<mode>_3): New pattern.
6270 (fabd<mode>_3): New pattern.
6272 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6274 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6275 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6276 occurrence of REGISTER_PREFIX as its empty string.
6278 2013-03-20 Jeff Law <law@redhat.com>
6280 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6281 addititional equivalences for equality comparisons between an SSA_NAME
6282 and a constant where the SSA_NAME was set from a widening conversion.
6284 2013-03-20 Walter Lee <walt@tilera.com>
6286 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6288 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6290 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6291 depending on type attribute.
6292 (*movti_internal): Ditto.
6293 (*movtf_internal): Ditto.
6294 (*movxf_internal): Ditto.
6295 (*movdf_internal): Ditto.
6296 (*movsf_internal): Ditto.
6298 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6300 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6301 maybe_vex for sselog1 and ssemov types.
6302 (*movdi_internal): Reorder operand constraints.
6303 (*movsi_internal): Ditto. Set prefix attribute to
6304 maybe_vex for sselog1 and ssemov types.
6305 (*movtf_internal): Set prefix attribute to maybe_vex
6306 for sselog1 and ssemov types.
6307 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6308 DImode ssemov types. Reorder operand constraints.
6309 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6310 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6311 attribute for SImode ssemov types. Reorder operand constraints.
6313 2013-03-20 Martin Jambor <mjambor@suse.cz>
6315 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6316 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6318 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6320 * config/rs6000/predicates.md (indexed_address, update_address_mem
6321 update_indexed_address_mem): New predicates.
6322 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6323 attribute for load/store instructions.
6324 * config/rs6000/dfp.md (movsd_store): Likewise.
6325 (movsd_load): Likewise.
6326 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6327 (unnamed HI->DI extend define_insn): Likewise.
6328 (unnamed SI->DI extend define_insn): Likewise.
6329 (unnamed QI->SI extend define_insn): Likewise.
6330 (unnamed QI->HI extend define_insn): Likewise.
6331 (unnamed HI->SI extend define_insn): Likewise.
6332 (unnamed HI->SI extend define_insn): Likewise.
6333 (extendsfdf2_fpr): Likewise.
6334 (movsi_internal1): Likewise.
6335 (movsi_internal1_single): Likewise.
6336 (movhi_internal): Likewise.
6337 (movqi_internal): Likewise.
6338 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6339 attribute for load/store instructions.
6340 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6342 (mov<mode>_softfloat): Likewise.
6343 (mov<mode>_hardfloat32): Likewise.
6344 (mov<mode>_hardfloat64): Likewise.
6345 (mov<mode>_softfloat64): Likewise.
6346 (movdi_internal32): Likewise.
6347 (movdi_internal64): Likewise.
6348 (probe_stack_<mode>): Likewise.
6350 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6352 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6353 floating point, and decimal floating point to reload iterator.
6355 * config/rs6000/constraints.md (wl constraint): New constraints to
6356 return FLOAT_REGS if certain options are used to reduce the number
6357 of separate patterns that exist in the file.
6358 (wx constraint): Likewise.
6359 (wz constraint): Likewise.
6361 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6362 -mdebug=reg, print wg, wl, wx, and wz constraints.
6363 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6364 Initialize the reload functions for 64-bit binary/decimal floating
6366 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6367 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6368 create the buffer on the stack to overcome not having a 32-bit
6370 (rs6000_emit_move): Likewise.
6371 (rs6000_secondary_memory_needed_rtx): Likewise.
6372 (rs6000_alloc_sdmode_stack_slot): Likewise.
6373 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6374 via xxlxor, just like DFmode 0.0.
6376 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6377 define as 1 if we are running on a power7 or newer.
6378 (enum r6000_reg_class_enum): Add new constraints.
6380 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6381 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6382 with other moves by using conditional constraits (wg). Use LFIWZX
6383 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
6384 (movsd splitter): Likewise.
6385 (movsd_hardfloat): Likewise.
6386 (movsd_softfloat): Likewise.
6388 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6389 binary and decimal floating point moves.
6390 (fmove_ok): New attributes to combine binary and decimal floating
6391 point moves, and to combine power6x (mfpgpr) moves along normal
6393 (real_value_to_target): Likewise.
6400 (movsf): Combine binary and decimal floating point moves. Combine
6401 power6x (mfpgpr) moves with other moves by using conditional
6402 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
6403 (mov<mode> for SFmode/SDmode); Likewise.
6404 (SFmode/SDmode splitters): Likewise.
6405 (movsf_hardfloat): Likewise.
6406 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6407 (movsf_softfloat): Likewise.
6408 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6410 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6411 wx and wz constraints.
6413 * config/rs6000/constraints.md (wg constraint): New constraint to
6414 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6416 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6419 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6420 -mdebug=reg, print wg, wl, wx, and wz constraints.
6421 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6422 Initialize the reload functions for 64-bit binary/decimal floating
6424 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6425 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6426 create the buffer on the stack to overcome not having a 32-bit
6428 (rs6000_emit_move): Likewise.
6429 (rs6000_secondary_memory_needed_rtx): Likewise.
6430 (rs6000_alloc_sdmode_stack_slot): Likewise.
6431 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6432 via xxlxor, just like DFmode 0.0.
6434 * config/rs6000/dfp.md (movdd): Delete, combine with binary
6435 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6436 with other moves by using conditional constraits (wg). Use LFIWZX
6437 and STFIWX for loading SDmode on power7.
6438 (movdd splitters): Likewise.
6439 (movdd_hardfloat32): Likewise.
6440 (movdd_softfloat32): Likewise.
6441 (movdd_hardfloat64_mfpgpr): Likewise.
6442 (movdd_hardfloat64): Likewise.
6443 (movdd_softfloat64): Likewise.
6445 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
6446 64-bit binary and decimal floating point moves.
6447 (FMOVE64X): Likewise.
6448 (movdf): Combine 64-bit binary and decimal floating point moves.
6449 Combine power6x (mfpgpr) moves with other moves by using
6450 conditional constraits (wg).
6451 (mov<mode> for DFmode/DDmode): Likewise.
6452 (DFmode/DDmode splitters): Likewise.
6453 (movdf_hardfloat32): Likewise.
6454 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
6455 (movdf_softfloat32): Likewise.
6456 (movdf_hardfloat64_mfpgpr): Likewise.
6457 (movdf_hardfloat64): Likewise.
6458 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
6459 (movdf_softfloat64): Likewise.
6460 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
6461 (reload_<mode>_load): Move to later in the file so they aren't in
6462 the middle of the floating point move insns.
6463 (reload_<mode>_store): Likewise.
6465 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
6468 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
6469 constraint if -mdebug=reg.
6470 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
6471 Enable using dd reload support if needed.
6473 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
6474 binary and decimal floating point moves in rs6000.md.
6475 (movtd_internal): Likewise.
6477 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
6478 decimal floating point moves.
6480 (movtf_internal): Likewise.
6481 (mov<mode>_internal, TDmode/TFmode): Likewise.
6482 (movtf_softfloat): Likewise.
6483 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
6485 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
6486 movdi_internal64, using wg constraint for move direct operations.
6487 (movdi_internal64): Likewise.
6489 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
6490 MODES_TIEABLE_P for selected modes. Print the numerical value of
6491 the various virtual registers. Use GPR/FPR first/last values,
6492 instead of hard coding the register numbers. Print which modes
6493 have reload functions registered.
6494 (rs6000_option_override_internal): If -mdebug=reg, trace the options
6495 settings before/after setting cpu, target and subtarget settings.
6496 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
6497 and for secondary reload failures in rs6000_secondary_reload_inner.
6498 (rs6000_secondary_reload_fail): Likewise.
6499 (rs6000_secondary_reload_inner): Likewise.
6501 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
6502 macros for first/last GPR and FPR registers.
6503 (LAST_GPR_REGNO): Likewise.
6504 (FIRST_FPR_REGNO): Likewise.
6505 (LAST_FPR_REGNO): Likewise.
6507 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
6508 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
6509 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
6510 (vcond<mode><mode>): Likewise.
6511 (vcondu<mode><mode>): Likewise.
6512 (vector_gtu<mode>): Likewise.
6513 (vector_gte<mode>): Likewise.
6514 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
6515 to prevent the compiler from converting DImode operations to TImode.
6516 (ior<mode>3): Likewise.
6517 (and<mode>3): Likewise.
6518 (one_cmpl<mode>2): Likewise.
6519 (nor<mode>3): Likewise.
6520 (andc<mode>3): Likewise.
6522 * config/rs6000/constraints.md (wt constraint): New constraint
6523 that returns VSX_REGS if TImode is allowed in VSX registers.
6525 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
6528 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
6529 similar to TImode, but it is restricted to being in the GPRs.
6531 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
6532 TImode to occupy a single VSX register.
6534 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
6535 -mvsx-timode for power7/power8.
6536 (power7 cpu): Likewise.
6537 (power8 cpu): Likewise.
6539 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
6540 sure that TFmode/TDmode take up two registers if they are ever
6541 allowed in the upper VSX registers.
6542 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
6544 (rs6000_init_hard_regno_mode_ok): Likewise.
6545 (rs6000_debug_reg_global): Add debugging for PTImode and wt
6546 constraint. Print if LRA is turned on.
6547 (rs6000_option_override_internal): Give an error if -mvsx-timode
6548 and VSX is not enabled.
6549 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
6550 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
6551 to reg+offset addressing. Use PTImode when checking offset
6552 addresses for validity.
6553 (reg_offset_addressing_ok_p): Likewise.
6554 (rs6000_legitimate_offset_address_p): Likewise.
6555 (rs6000_legitimize_address): Likewise.
6556 (rs6000_legitimize_reload_address): Likewise.
6557 (rs6000_legitimate_address_p): Likewise.
6558 (rs6000_eliminate_indexed_memrefs): Likewise.
6559 (rs6000_emit_move): Likewise.
6560 (rs6000_secondary_reload): Likewise.
6561 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
6562 reloads to fpr registers to continue to use reg+offset addressing,
6563 but 64-bit reloads to altivec registers need reg+reg addressing.
6564 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
6565 it. Treat LO_SUM like a PLUS operation.
6566 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
6567 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
6568 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
6569 registers to share a register with a smaller sized type, since VSX
6570 puts scalars in the upper 64-bits.
6571 (print_operand): Add support for PTImode.
6572 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
6573 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
6574 registers, but don't have arithmetic support.
6575 (rs6000_memory_move_cost): Add test for VSX.
6576 (rs6000_opt_masks): Add -mvsx-timode.
6578 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
6581 (VSr): Use wt constraint for TImode.
6582 (VSv): Drop TImode support.
6583 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
6584 (vsx_movti_64bit): Likewise.
6585 (vsx_movti_32bit): Likewise.
6586 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
6587 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
6588 one '?' on the appropriate output constraint. Do not allow TImode
6589 logical operations on 32-bit systems.
6590 (vsx_ior<mode>3): Likewise.
6591 (vsx_xor<mode>3): Likewise.
6592 (vsx_one_cmpl<mode>2): Likewise.
6593 (vsx_nor<mode>3): Likewise.
6594 (vsx_andc<mode>3): Likewise.
6595 (vsx_concat_<mode>): Likewise.
6596 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
6598 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
6599 OPTION_MASK_VSX_TIMODE.
6600 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
6601 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
6603 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
6604 (TI2 iterator): New iterator for TImode, PTImode.
6605 (wd mode attribute): Add values for vector types.
6606 (movti_string): Replace TI move operations with operations for TImode
6607 and PTImode. Add support for TImode being allowed in VSX registers.
6608 (mov<mode>_string, TImode/PTImode): Likewise.
6609 (movti_ppc64): Likewise.
6610 (mov<mode>_ppc64, TImode/PTImode): Likewise.
6611 (TI mode splitters): Likewise.
6613 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
6616 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
6618 PR tree-optimization/56355
6619 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
6620 Also handle integers with undefined overflow.
6622 2013-03-20 Catherine Moore <clm@codesourcery.com>
6623 Maciej W. Rozycki <macro@codesourcery.com>
6624 Tom de Vries <tom@codesourcery.com>
6625 Nathan Sidwell <nathan@codesourcery.com>
6626 Iain Sandoe <iain@codesourcery.com>
6627 Nathan Froyd <froydnj@codesourcery.com>
6628 Chao-ying Fu <fu@mips.com>
6630 * doc/extend.texi: (micromips, nomicromips, nocompression):
6631 Document new function attributes.
6632 * doc/invoke.texi (minterlink-compressed, mmicromips,
6633 m14k, m14ke, m14kec): Document new options.
6634 (minterlink-mips16): Update documentation.
6635 * doc/md.texi (ZC, ZD): Document new constraints.
6636 * configure.ac (gcc_cv_as_micromips): Check if linker
6637 supports the .set micromips directive.
6638 * configure: Regenerate.
6639 * config.in: Regenerate.
6640 * config/mips/mips-tables.opt: Regenerate.
6641 * config/mips/micromips.md: New file.
6642 * constraints.md (ZC, ZD): New constraints.
6643 * config/mips/predicates.md (movep_src_register): New predicate.
6644 (movep_src_operand): New predicate.
6645 (non_volatile_mem_operand): New predicate.
6646 * config/mips/mips.md (multimem): New type.
6647 (length): Differentiate between 17-bit and 18-bit branch offsets.
6648 (MOVEP1, MOVEP2): New mode iterator.
6649 (mov_<load>l): Use ZC constraint.
6650 (mov_<load>r): Likewise.
6651 (mov_<store>l): Likewise.
6652 (mov_<store>r): Likewise.
6653 (*branch_equality<mode>_inverted): Add microMIPS support.
6654 (*branch_equality<mode>): Likewise.
6655 (*jump_absolute): Likewise.
6656 (indirect_jump_<mode>): Likewise.
6657 (tablejump_<mode>): Likewise.
6658 (<optab>_internal): Likewise.
6659 (sibcall_internal): Likewise.
6660 (sibcall_value_internal): Likewise.
6661 (prefetch): Use constraint ZD.
6662 * config/mips/mips.opt (minterlink-compressed): New option.
6663 (minterlink-mips16): Now an alias for minterlink-compressed.
6664 (mmicromips): New option.
6665 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6666 (compare_and_swap_12): Likewise.
6667 (sync_add<mode>): Likewise.
6668 (sync_<optab>_12): Likewise.
6669 (sync_old_<optab>_12): Likewise.
6670 (sync_new_<optab>_12): Likewise.
6671 (sync_nand_12): Likewise.
6672 (sync_old_nand_12): Likewise.
6673 (sync_new_nand_12): Likewise.
6674 (sync_sub<mode>): Likewise.
6675 (sync_old_add<mode>): Likewise.
6676 (sync_old_sub<mode>): Likewise.
6677 (sync_new_add<mode>): Likewise.
6678 (sync_new_sub<mode>): Likewise.
6679 (sync_<optab><mode>): Likewise.
6680 (sync_old_<optab><mode>): Likewise.
6681 (sync_new_<optab><mode>): Likewise.
6682 (sync_nand<mode>): Likewise.
6683 (sync_old_nand<mode>): Likewise.
6684 (sync_new_nand<mode>): Likewise.
6685 (sync_lock_test_and_set<mode>): Likewise.
6686 (test_and_set_12): Likewise.
6687 (atomic_compare_and_swap<mode>): Likewise.
6688 (atomic_exchange<mode>_llsc): Likewise.
6689 (atomic_fetch_add<mode>_llsc): Likewise.
6690 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6691 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6692 (umips_save_restore_pattern_p): Likewise.
6693 (umips_load_store_pair_p): Likewise.
6694 (umips_output_load_store_pair): Likewise.
6695 (umips_movep_target_p): Likewise.
6696 (umips_12bit_offset_address_p): Likewise.
6697 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6698 (mips_base_mips16): Rename this...
6699 (mips_base_compression_flags): ...to this. Update all uses.
6700 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6701 (mips_mips16_decl_p): Delete.
6702 (mips_nomips16_decl_p): Delete.
6703 (mips_get_compress_on_flags): New function.
6704 (mips_get_compress_off_flags): New function.
6705 (mips_get_compress_mode): New function.
6706 (mips_get_compress_on_name): New function.
6707 (mips_get_compress_off_name): New function.
6708 (mips_insert_attributes): Support multiple compression types.
6709 (mips_merge_decl_attributes): Likewise.
6710 (umips_12bit_offset_address_p): New function.
6711 (mips_start_function_definition): Emit .set micromips directive.
6712 (mips_call_may_need_jalx_p): New function.
6713 (mips_function_ok_for_sibcall): Add microMIPS support.
6714 (mips_print_operand_punctuation): Support short delay slots and
6716 (umips_swm_mask, umips_swm_encoding): New.
6717 (umips_build_save_restore): New function.
6718 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6719 (was_mips16_p): Remove.
6720 (old_compression_mode): New.
6721 (mips_set_compression_mode): New function.
6722 (mips_set_current_function): Add microMIPS support.
6723 (mips_option_override): Likewise.
6724 (umips_save_restore_pattern_p): New function.
6725 (umips_output_save_restore): New function.
6726 (umips_load_store_pair_p_1): New function.
6727 (umips_load_store_pair_p): New function.
6728 (umips_output_load_store_pair_1): New function.
6729 (umips_output_load_store_pair): New function.
6730 (umips_movep_target_p) New function.
6731 (mips_prepare_pch_save): Add microMIPS support.
6732 * config/mips/mips.h (TARGET_COMPRESSION): New.
6733 (TARGET_CPU_CPP_BUILTINS): Update macro
6734 to use new compression flags and to support microMIPS.
6735 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6736 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6737 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6738 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6739 (ASM_SPEC): Support mmicromips and mno-micromips.
6740 (M16STORE_REG_P): New macro.
6741 (MIPS_CALL): Support TARGET_MICROMIPS.
6742 (MICROMIPS_J): New macro.
6743 (mips_base_mips16): Rename this...
6744 (mips_base_compression_flags): ...to this.
6745 (UMIPS_12BIT_OFFSET_P): New macro.
6746 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6747 (MULTILIB_DIRNAMES): Likewise.
6748 2013-03-20 Richard Biener <rguenther@suse.de>
6750 PR tree-optimization/56661
6751 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
6752 the result does not have to be distinct.
6754 2013-03-20 Richard Biener <rguenther@suse.de>
6756 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
6759 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6760 Steven Bosscher <steven@gcc.gnu.org>
6762 PR rtl-optimization/56605
6763 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
6765 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6768 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
6769 that require movd instead of movq.
6771 2013-03-20 Richard Biener <rguenther@suse.de>
6773 * tree-ssa-structalias.c (struct variable_info): Add pointer
6774 to the first field of an aggregate with sub-vars. Make
6775 this and the pointer to the next subfield its ID.
6776 (vi_next): New function.
6777 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
6778 storedanything_id, integer_id): Increment by one.
6779 (new_var_info, get_call_vi, lookup_call_clobber_vi,
6780 get_call_clobber_vi): Adjust.
6781 (solution_set_expand): Simplify and speedup.
6782 (solution_set_add): Inline into ...
6783 (set_union_with_increment): ... this. Adjust accordingly.
6784 (do_sd_constraint): Likewise.
6785 (do_ds_constraint): Likewise.
6786 (do_complex_constraint): Simplify.
6787 (build_pred_graph): Adjust.
6788 (solve_graph): Likewise. Simplify and speedup.
6789 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
6790 get_constraint_for_component_ref, get_constraint_for_1,
6791 first_vi_for_offset, first_or_preceding_vi_for_offset,
6792 create_function_info_for, create_variable_info_for_1,
6793 create_variable_info_for, intra_create_variable_infos): Adjust.
6794 (init_base_vars): Push NULL for ID zero.
6795 (compute_points_to_sets): Adjust.
6797 2013-03-20 Richard Biener <rguenther@suse.de>
6799 * cfgloop.c (verify_loop_structure): Streamline and avoid
6800 ICEing on corrupt loop tree.
6801 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
6804 2013-03-20 Richard Biener <rguenther@suse.de>
6806 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
6807 check whether an SSA update is needed.
6809 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
6811 * config/mips/constraints.md (T): Rename to...
6815 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
6816 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
6818 2013-03-19 Ian Bolton <ian.bolton@arm.com>
6820 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
6821 (*subsi3_carryin_uxtw): Likewise.
6823 2013-03-19 Ian Bolton <ian.bolton@arm.com>
6825 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
6826 (*rorsi3_insn_uxtw): Likewise.
6828 2013-03-19 Ian Bolton <ian.bolton@arm.com>
6830 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
6831 (*extrsi5_insn_uxtw): Likewise.
6833 2013-03-19 Richard Biener <rguenther@suse.de>
6835 PR tree-optimization/56273
6836 * passes.c (init_optimization_passes): Move second VRP after DOM.
6838 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
6840 * config/i386/i386.md (*movti_internal): Merge from
6841 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
6842 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
6843 nox64 isa attributes.
6845 2013-03-18 Richard Biener <rguenther@suse.de>
6847 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
6849 (merge_node_constraints): Likewise.
6850 (build_succ_graph): Likewise.
6851 (valid_graph_edge): Inline into single caller.
6852 (unify_nodes): Likewise. Use bitmap_set_bit return value
6854 (scc_visit): Fix formatting and variable use.
6855 (do_sd_constraint): Use gcc_checking_assert.
6856 (do_ds_constraint): Likewise.
6857 (do_complex_constraint): Likewise.
6858 (condense_visit): Likewise. Cleanup.
6859 (dump_pred_graph): New function.
6860 (perform_var_substitution): Dump the pred-graph before
6861 variable substitution.
6862 (find_equivalent_node): Use gcc_checking_assert.
6863 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
6865 2013-03-18 Richard Biener <rguenther@suse.de>
6867 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6868 Remove cond_expr_stmt_list argument and do not gimplify the
6870 (vect_loop_versioning): Adjust.
6871 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6872 Cleanup to use less temporaries.
6873 (vect_create_data_ref_ptr): Cleanup.
6875 2013-03-18 Jakub Jelinek <jakub@redhat.com>
6877 PR tree-optimization/56635
6878 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
6879 require types_compatible_p types.
6881 2013-03-18 Nick Clifton <nickc@redhat.com>
6883 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
6886 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
6887 Add missing line to comment describing function.
6889 2013-03-18 Richard Biener <rguenther@suse.de>
6891 PR tree-optimization/56210
6892 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6893 Handle string / character search functions.
6894 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6896 2013-03-18 Richard Biener <rguenther@suse.de>
6899 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
6900 and implement properly.
6901 * gimple.h (gimple_cond_single_var_p): Remove.
6903 2013-03-18 Richard Biener <rguenther@suse.de>
6905 * tree-data-ref.h (find_data_references_in_loop): Declare.
6906 * tree-data-ref.c (get_references_in_stmt): Use a stack
6907 vector pre-allocated in the callers.
6908 (find_data_references_in_stmt): Adjust.
6909 (graphite_find_data_references_in_stmt): Likewise.
6910 (create_rdg_vertices): Likewise.
6911 (find_data_references_in_loop): Export.
6912 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6913 Compute dependences here...
6914 (vect_analyze_data_refs): ...not here. When we encounter
6915 a non-vectorizable data reference in basic-block vectorization
6916 truncate the data reference vector. Do not bother to
6917 fixup data-dependence information for gather loads.
6918 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6919 of data references, as reported.
6921 2013-03-18 Richard Biener <rguenther@suse.de>
6923 PR tree-optimization/3713
6924 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
6925 has_constants and expr.
6926 (stmt_has_constants): Properly valueize SSA names when deciding
6927 whether the stmt has constants.
6929 2013-03-18 Richard Biener <rguenther@suse.de>
6931 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6932 whole function when there is nothing to do.
6933 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6934 * tree-vectorizer.c (vectorize_loops): Update virtual and
6935 loop-closed SSA once.
6936 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6938 2013-03-18 Richard Biener <rguenther@suse.de>
6941 * domwalk.c (bb_postorder): New global static.
6942 (cmp_bb_postorder): New function.
6943 (walk_dominator_tree): Replace scheme imposing an order for
6944 visiting dominator sons by one sorting them at the time they
6945 are pushed on the stack.
6947 2013-03-18 Richard Biener <rguenther@suse.de>
6949 PR tree-optimization/39326
6950 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6951 (struct mem_ref): Replace mem member with ao_ref typed member.
6952 (MEM_ANALYZABLE): Adjust.
6953 (memref_eq): Likewise.
6954 (mem_ref_alloc): Likewise.
6955 (gather_mem_refs_stmt): Likewise.
6956 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6957 (execute_sm_if_changed_flag_set): Adjust.
6958 (execute_sm): Likewise.
6959 (ref_always_accessed_p): Likewise.
6960 (refs_independent_p): Likewise.
6961 (can_sm_ref_p): Likewise.
6963 2013-03-18 Jakub Jelinek <jakub@redhat.com>
6966 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6967 return 1 even for !unsignedp.
6969 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6971 * config/i386/i386.md (isa): Add x64 and nox64.
6972 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6973 (*pushtf): Enable *roF alternative for x64 isa only.
6974 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
6975 mode attribute of integer alternatives to DImode for TARGET_64BIT.
6976 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
6977 (*movtf_internal): Merge from *movtf_internal_rex64 and
6978 *movtf_internal_sse. Use x64 and nox64 isa attributes.
6979 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
6980 nox64 isa attributes.
6981 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
6982 nox64 isa attributes.
6983 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6985 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6987 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6989 2013-03-17 Jakub Jelinek <jakub@redhat.com>
6992 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6993 class names. Remove trailing comma after "ALL_REGS".
6995 2013-03-16 Jan Hubicka <jh@suse.cz>
6997 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6998 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6999 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7000 of cgraph_get_create_node.
7001 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7003 2013-03-16 Jason Merrill <jason@redhat.com>
7006 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7007 with DW_AT_default_value.
7009 2013-03-16 Jakub Jelinek <jakub@redhat.com>
7011 * BASE-VER: Set to 4.9.0.
7013 2013-03-14 Andi Kleen <ak@linux.intel.com>
7016 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7017 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7018 Document _x* TSX intrinsics.
7020 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7021 David Holsgrove <david.holsgrove@xilinx.com>
7023 * configure.ac: Add MicroBlaze TLS support detection.
7024 * configure: Regenerate.
7025 * config/microblaze/microblaze-protos.h
7026 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7027 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7028 * config/microblaze/microblaze.c (microblaze_address_type): Add
7029 ADDRESS_TLS and tls_reloc address types.
7030 (microblaze_address_info): Add tls_reloc.
7031 (TARGET_HAVE_TLS): Define.
7032 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7033 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
7034 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7035 load_tls_operand, microblaze_call_tls_get_addr,
7036 microblaze_legitimize_tls_address): New functions.
7037 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7038 (get_base_reg): Use microblaze_tls_symbol_p.
7039 (microblaze_classify_address): Handle TLS.
7040 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7041 label_mentioned_p and microblaze_tls_referenced_p.
7042 (microblaze_legitimize_address): Handle TLS.
7043 (microblaze_address_insns): Handle ADDRESS_TLS.
7044 (pic_address_needs_scratch): Handle TLS.
7045 (print_operand_address): Handle TLS.
7046 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7047 (microblaze_expand_move): Handle TLS.
7048 (microblaze_legitimate_constant_p): Check
7049 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
7050 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7051 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7052 (PIC_OFFSET_TABLE_REGNUM): Set.
7053 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7054 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7055 (addsi3, movsi_internal2, movdf_internal): Update constraints
7056 * config/microblaze/predicates.md (arith_plus_operand): Define
7057 (move_operand): Redefine as move_src_operand,
7058 check microblaze_tls_referenced_p.
7060 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7062 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7063 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7065 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7067 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7070 2013-03-14 Jakub Jelinek <jakub@redhat.com>
7072 PR tree-optimization/53265
7073 * common.opt (Waggressive-loop-optimizations): New option.
7074 * tree-ssa-loop-niter.c: Include tree-pass.h.
7075 (do_warn_aggressive_loop_optimizations): New function.
7076 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7077 if number_of_latch_executions returned constant.
7078 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7079 early. If number_of_latch_executions returned constant, set
7080 nb_iterations_upper_bound back to it.
7081 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7083 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7084 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7086 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7087 (MULTILIB_OSDIRNAMES): Set.
7088 * genmultilib: If defaultosdirname doesn't start with :: , set
7089 defaultosdirname2 instead, clear it and emit two . multilib_raw
7090 entries instead of just one.
7092 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7094 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7095 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7096 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7097 (SUBTARGET_OVERRIDE_OPTIONS): New.
7099 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7102 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7103 (musermode): Convert to Var(TARGET_USERMODE).
7104 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7105 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7106 * config/sh/sh.c (sh_option_override): Use
7107 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7108 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7110 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7112 (udivsi3_i4_single, divsi3_i4_single): Use
7113 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7115 2013-03-13 Dave Korn <dave.korn.cygwin@....>
7117 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7120 2013-03-13 Richard Biener <rguenther@suse.de>
7122 PR tree-optimization/56608
7123 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7124 calls when vectorizing basic-blocks.
7126 2013-03-13 Jakub Jelinek <jakub@redhat.com>
7129 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7132 2013-03-12 Jakub Jelinek <jakub@redhat.com>
7134 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7136 2013-03-11 Jan Hubicka <jh@suse.cz>
7139 * lto-streamer-out.c (output_symbol_p): Skip references from
7140 constructors of external variables.
7142 2013-03-11 Jan Hubicka <jh@suse.cz>
7145 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7147 * emit-rtl.c (verify_rtx_sharing): Likewise.
7148 (copy_insn_1): Likewise.
7149 * rtl.c (copy_rtx): Likewise.
7151 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
7154 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7155 output_operand_lossage message.
7157 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
7160 * arm.c (shift_op): Validate RTL pattern on the fly.
7161 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7164 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7167 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7168 new call patterns that clobber %fr12.
7169 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7170 split and postreload patterns.
7171 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7172 registers %fr12 and %fr12R as call used.
7174 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7176 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7177 (canon_address, record_store, replace_read, check_mem_read_rtx,
7178 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7179 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7180 rest_of_handle_dse): Likewise.
7182 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7185 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7187 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7188 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7189 (save_optabs_if_changed): Replace with...
7190 (init_tree_optimization_optabs): ...this.
7191 * optabs.c (save_optabs_if_changed): Rename to...
7192 (init_tree_optimization_optabs): ...this. Take the optimization node
7193 as argument. Do nothing if the base optabs are already correct.
7194 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7195 to recompute optabs.
7196 * function.h (function): Remove optabs field.
7197 * function.c (invoke_set_current_function_hook): Call
7198 init_tree_optimization_optabs. Use the result to initialize
7201 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
7203 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7204 if GTMA_HAS_NO_INSTRUMENTATION.
7205 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7206 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7207 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7208 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7209 GTMA_HAS_NO_INSTRUMENTATION.
7211 2013-03-08 Jakub Jelinek <jakub@redhat.com>
7213 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7216 2013-03-08 Marek Polacek <polacek@redhat.com>
7217 Jakub Jelinek <jakub@redhat.com>
7219 PR tree-optimization/56478
7220 * predict.c (is_comparison_with_loop_invariant_p): Change the
7221 type of loop_step to tree.
7222 (predict_loops): Adjust.
7223 (predict_iv_comparison): Perform the computations on double_ints.
7225 2013-03-08 Richard Biener <rguenther@suse.de>
7227 PR tree-optimization/56570
7228 * tree-cfg.c (verify_expr_location_1): Verify locations for
7230 * tree-sra.c (create_access_replacement): Strip locations
7231 from DECL_DEBUG_EXPRs.
7233 2013-03-08 Richard Biener <rguenther@suse.de>
7235 * tree-inline.c (expand_call_inline): Do not associate
7236 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7237 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7239 2013-03-08 Richard Biener <rguenther@suse.de>
7241 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7242 or block changes with -Og. Fix for location / block encoding
7243 changes and PHI arguments with locations.
7245 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7247 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7249 (struct output_info): Likewise.
7250 (register_overhead): Remove bad gcc_assert.
7251 (bitmap_find_bit): If there is only a single bitmap element, do not
7252 count a miss as a search.
7253 (print_statistics): Update for counter type changes.
7254 (dump_bitmap_statistics): Likewise. Print headers such that they
7255 are properly lined up with the printed counters.
7257 2013-03-07 Jakub Jelinek <jakub@redhat.com>
7259 PR tree-optimization/56559
7260 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7261 check that it has only a single use.
7263 2013-03-07 Richard Biener <rguenther@suse.de>
7265 * doc/invoke.texi (fwhole-program): Discourage use in combination
7268 2013-03-06 Jakub Jelinek <jakub@redhat.com>
7270 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7272 PR tree-optimization/56539
7273 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7274 instead of GSI_CONTINUE_LINKING as last argument to
7275 force_gimple_operand_gsi. Adjust function comment.
7277 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7281 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7282 promoted mode, convert the result back to the original mode.
7284 2013-03-06 Richard Biener <rguenther@suse.de>
7287 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7288 (insert_updated_phi_nodes_compare_uids): New function.
7289 (update_ssa): Sort symbols_to_rename after UID before
7290 traversing it to insert PHI nodes.
7292 2013-03-06 Richard Biener <rguenther@suse.de>
7295 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7296 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7299 2013-02-13 Richard Biener <rguenther@suse.de>
7302 * varasm.c (output_constant_def_1): Get the decl representing
7303 the constant as argument.
7304 (output_constant_def): Wrap output_constant_def_1.
7305 (make_decl_rtl): Use output_constant_def_1 with the decl
7306 representing the constant.
7307 (build_constant_desc): Optionally re-use a decl already
7308 representing the constant.
7309 (tree_output_constant_def): Adjust.
7311 2013-03-06 Joey Ye <joey.ye@arm.com>
7314 * gcc.c (convert_white_space): New function.
7315 (main): Handles white space in function name.
7317 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7320 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7321 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7322 to SH_DIV_CALL_TABLE for TARGET_SH2.
7323 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7325 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7328 2013-03-05 Sterling Augustine <saugustine@google.com>
7329 Cary Coutant <ccoutant@google.com>
7332 * dwarf2out.c (resolve_addr): Don't call
7333 remove_loc_list_addr_table_entries a second time for the same
7336 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7339 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7340 (avoid_complex_debug_insns): New function.
7341 (expand_debug_locations): Call it.
7343 PR rtl-optimization/56484
7344 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7345 lifetimes of hard registers on small register class machines.
7347 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7349 * config/microblaze/microblaze-protos.h: Rename
7350 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
7351 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
7353 (microblaze_fast_interrupt_function_p): New function.
7354 (microblaze_is_interrupt_handler): Rename to
7355 microblaze_is_interrupt_variant and add fast_interrupt check.
7356 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7357 (save_restore_insns): Likewise.
7358 (compute_frame_size): Likewise.
7359 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7360 (microblaze_globalize_label): Likewise.
7361 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7362 * config/microblaze/microblaze.md: Use wrapper
7363 microblaze_is_interrupt_variant.
7365 2013-03-05 Kai Tietz <ktietz@redhat.com>
7367 * sdbout.c (sdbout_one_type): Switch to current function's section
7368 supporting cold/hot.
7370 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7372 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7375 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7378 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7379 if VALGRIND_GET_VBITS is defined, temporarily make object
7380 memory all defined, and restore previous valgrind addressability
7381 and definability afterwards. Free this_object at the end.
7384 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7385 right before calling lra_create_live_ranges, also call it
7386 when clearing live_p. Only call lra_clear_live_ranges
7387 at the end if live_p.
7390 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7392 2013-03-05 Richard Biener <rguenther@suse.de>
7394 PR tree-optimization/56521
7395 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7398 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7401 * except.h (remove_unreachable_eh_regions): New prototype.
7402 * except.c (remove_eh_handler_splicer): New function, split out
7403 of remove_eh_handler.
7404 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7405 warning about running it on many EH regions one at a time.
7406 (remove_unreachable_eh_regions_worker): New function, walk the
7407 EH tree in depth-first order and remove non-marked regions.
7408 (remove_unreachable_eh_regions): New function.
7409 * tree-eh.c (mark_reachable_handlers): New function, split out
7410 from remove_unreachable_handlers.
7411 (remove_unreachable_handlers): Use mark_reachable_handlers and
7412 remove_unreachable_eh_regions.
7413 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7414 and remove_unreachable_eh_regions.
7416 2013-03-05 Richard Biener <rguenther@suse.de>
7419 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7420 not freeing them until the end.
7422 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7424 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7426 2013-03-05 Richard Biener <rguenther@suse.de>
7428 PR tree-optimization/56270
7429 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7430 of loads after scheduling an SLP instance.
7432 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7434 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
7436 (check_gcc_parallelize): Run guality.exp as a separate job from
7437 vect.exp with unsorted.exp and $(dg_target_exps) separately from
7438 struct-layout-1.exp with stackalign.exp.
7440 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
7443 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
7444 load_index sbitmap even if some bit in it isn't set.
7447 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
7448 (discover_iteration_bound_by_body_walk): Change queues to
7449 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
7450 spelling in comment. Call safe_push on queues[bound_index] directly.
7451 Release queues[queue_index] in every iteration unconditionally.
7452 Release bounds vector.
7455 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
7456 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
7457 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
7460 2013-03-05 Richard Biener <rguenther@suse.de>
7463 * tree-inline.c (remap_blocks_to_null): New function.
7464 (expand_call_inline): When expanding a call stmt without
7465 an associated block inline remap all callee blocks to NULL.
7467 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7469 PR rtl-optimization/56494
7470 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
7471 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
7472 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
7475 * sel-sched-ir.c (free_sched_pools): Release
7476 succs_info_pool.stack[succs_info_pool.max_top] vectors too
7477 if succs_info_pool.max_top isn't -1.
7480 * opts.c (opts_obstack, opts_concat): Moved to...
7481 * opts-common.c (opts_obstack, opts_concat): ... here.
7483 2013-03-04 Jakub Jelinek <jakub@redhat.com>
7486 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
7488 2013-03-04 Martin Jambor <mjambor@suse.cz>
7490 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
7491 all appropriate places.
7493 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
7495 PR tree-optimization/56424
7496 * ipa-split.c (split_function): Do not set the RSO flag if result is
7497 not by reference and its type is a register type.
7499 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
7501 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
7502 (microblaze_legitimate_pic_operand): Likewise
7503 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
7504 new function microblaze_legitimate_pic_operand
7505 * config/microblaze/microblaze-protos.h
7506 (microblaze_legitimate_pic_operand): Declare.
7508 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7510 * config/microblaze/predicates.md (call_insn_simple_operand):
7511 New predicate for supported rtx code types.
7512 * config/microblaze/microblaze.md (call_internal1): Use
7513 call_insn_simple_operand predicate.
7515 2013-03-04 Jakub Jelinek <jakub@redhat.com>
7518 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
7519 partitions.ordered_remove.
7522 * tree-vect-stmts.c (vectorizable_conversion): Don't call
7523 vec_oprnds0.create (1) for modifier == NONE.
7526 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
7527 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
7528 vec_oprnds1 right before pushing anything to it for
7532 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
7533 set nbbs to 0 instead of having separate code path.
7534 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
7535 instead of false as last argument if returning NULL.
7537 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
7539 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
7540 the attribute is now called "target" instead of "option".
7541 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
7542 * doc/tm.texi.in (Target Attributes): Likewise document the correct
7543 attribute/pragma name for TARGET_OPTION_VALID_P and
7544 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
7545 * doc/tm.texi: Regenerated.
7547 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
7549 * config/microblaze/microblaze.c:
7550 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
7551 * config/microblaze/microblaze.h: Add -mxl-reorder to
7553 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
7554 instructions emitted if TARGET_REORDER.
7555 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
7556 or 0 for -m/-mno case, but initialises as 2 to detect default use case
7559 2013-03-01 Xinliang David Li <davidxl@google.com>
7561 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
7564 2013-03-01 Jakub Jelinek <jakub@redhat.com>
7567 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
7568 vector even when returning true. Fix up function comment formatting.
7571 * ira-build.c (ira_loop_nodes_count): New variable.
7572 (create_loop_tree_nodes): Initialize it.
7573 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
7576 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
7577 method on dr_chain and result_chain.
7578 * tree-vect-stmts.c (vectorizable_store): Only call
7579 result_chain.create if j == 0.
7582 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
7583 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
7584 before overwriting it.
7586 2013-03-01 Tobias Burnus <burnus@net-b.de>
7588 * doc/extended.texi (C Extensions): Change order in @menu
7590 (Other MIPS Built-in Functions): Move last MIPS entry before
7591 "picoChip Built-in Functions".
7592 (SH Built-in Functions): Move after RX Built-in Functions.
7593 * doc/gcc.texi (Introduction): Change order in @menu
7595 * doc/md.texi (Constraints): Ditto.
7596 * gty.texi (Type Information): Ditto.
7597 (User-provided marking routines for template types): Make
7599 * doc/invoke.texi (AArch64 Options): Move before
7600 "Adapteva Epiphany Options".
7602 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
7603 Jakub Jelinek <jakub@redhat.com>
7606 * asan.c (gate_asan): Lookup no_sanitize_address instead of
7607 no_address_safety_analysis attribute.
7608 * doc/extend.texi (no_address_safety_attribute): Rename to
7609 no_sanitize_address attribute, mention no_address_safety_analysis
7610 attribute as deprecated alias.
7612 2013-02-28 Jakub Jelinek <jakub@redhat.com>
7615 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
7616 type to vec<vec<tree> > *.
7617 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
7618 to be vec<tree> instead of vec<tree> *, set vec_defs
7619 to vNULL and call vec_defs.create (number_of_vects), adjust other
7621 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
7622 vectorizable_condition): Adjust vect_get_slp_defs callers.
7624 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7626 * config/aarch64/aarch64.c
7627 (aarch64_float_const_representable): Remove unused variable.
7629 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7631 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
7633 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7635 * config/aarch64/aarch64-builtins.c
7636 (aarch64_init_simd_builtins): Make static.
7638 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7640 * config/aarch64/aarch64.c
7641 (aarch64_simd_make_constant): Make static.
7643 2013-02-28 Martin Jambor <mjambor@suse.cz>
7645 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
7646 with no initialization to the RHS of debug statements.
7648 2013-02-28 Martin Jambor <mjambor@suse.cz>
7650 PR tree-optimization/56294
7651 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
7653 (get_access_replacement): Do not call create_access_replacement.
7654 Assert a replacement exists.
7655 (get_repl_default_def_ssa_name): Create the replacement declaration
7658 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7660 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
7663 2013-02-28 Marek Polacek <polacek@redhat.com>
7665 PR rtl-optimization/56466
7666 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
7667 if we're changing a loop.
7668 (peel_loops_completely): Likewise.
7670 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
7673 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
7675 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
7678 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
7679 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
7680 INTX_FTYPE_FX, FX_FTYPE_INTX.
7681 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
7683 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
7685 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
7686 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
7687 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
7688 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
7689 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
7690 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
7691 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
7692 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
7693 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
7694 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
7695 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
7696 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
7697 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
7698 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
7699 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
7700 (avrxmega6): Increase max flash segments from 5 to 6.
7701 * config/avr/t-multilib: Regenerate.
7702 * config/avr/avr-tables.opt: Regenerate.
7703 * doc/avr-mmcu.texi: Regenerate.
7705 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
7707 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
7708 (avr_device_to_arch): Rename to avr_device_to_ld.
7709 (avr_device_to_as): New prototype.
7710 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
7711 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
7712 * config/avr/driver-avr.c (avr_device_to_as): New.
7713 (avr_device_to_arch): Rename to avr_device_to_ld.
7715 2013-02-27 Jakub Jelinek <jakub@redhat.com>
7718 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
7719 method on dr_chain and result_chain.
7722 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
7723 pointer_set_destroy on not_executed_last_iteration.
7726 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
7729 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
7730 FOR_EACH_DEFINED_FUNCTION when freeing state.
7733 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
7735 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
7739 * ipa-cp.c (decide_whether_version_node): Call vec_free on
7740 known_aggs[i].items and release known_aggs vector.
7743 * ipa-reference.c (propagate): Free node_info even for alias nodes.
7745 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7747 * config/microblaze/microblaze.c (microblaze_emit_compare):
7748 Use xor for EQ/NE comparisions.
7749 * config/microblaze/microblaze.md (cstoresf4): Add constraints
7750 (cbranchsf4): Adjust operator to comparison_operator.
7752 2013-02-27 Jakub Jelinek <jakub@redhat.com>
7755 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
7757 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
7758 vec_safe_push, always update *slot.
7759 (redirect_edge_var_map_clear): Use vec_free.
7760 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
7761 (free_var_map_entry): Use vec_free.
7762 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
7763 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
7765 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
7768 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
7769 when the may_trap_p bit of the exprs being merged differs.
7770 Reorder tests for speculativeness in the logical and operator.
7772 2013-02-27 Jakub Jelinek <jakub@redhat.com>
7774 * incpath.c (add_standard_paths): Use reconcat instead of concat
7775 where appropriate and avoid leaking memory.
7777 * opts.h: Include obstack.h.
7778 (opts_concat): New prototype.
7779 (opts_obstack): New declaration.
7780 * opts.c (opts_concat): New function.
7781 (opts_obstack): New variable.
7782 (init_options_struct): Call gcc_init_obstack on opts_obstack.
7783 (finish_options): Use opts_concat instead of concat
7784 and XOBNEWVEC instead of XNEWVEC.
7785 * opts-common.c (generate_canonical_option, decode_cmdline_option,
7786 generate_option): Likewise.
7787 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
7788 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
7791 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
7792 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
7794 2013-02-26 Jakub Jelinek <jakub@redhat.com>
7797 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
7799 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7801 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
7802 (arm_block_move_unaligned_straight): Likewise.
7803 (arm_adjust_block_mem): Likewise.
7805 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7808 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
7809 temp, cond and label.
7810 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
7813 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
7814 * config/c6x/c6x.h (dbx_register_map): Update declaration.
7817 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
7818 of prologue/epilogue functions.
7821 * config/tilegx/tilegx.c (tilegx_expand_prologue):
7822 Remove unused variable cfa_offset.
7823 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
7826 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
7827 type promotion to unsigned.
7830 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
7831 for HOST_WIDE_INT of 32 bit / same size as int.
7832 (arm_block_move_unaligned_straight): Likewise.
7833 (arm_adjust_block_mem): Likewise.
7836 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
7839 2013-02-26 Marek Polacek <polacek@redhat.com>
7841 PR tree-optimization/56426
7842 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
7844 2013-02-26 Richard Biener <rguenther@suse.de>
7847 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
7848 unused variable loops.
7850 2013-02-26 Jakub Jelinek <jakub@redhat.com>
7852 PR tree-optimization/56448
7853 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
7854 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
7855 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
7856 later operands of the references, or even first operand for
7857 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
7859 PR tree-optimization/56443
7860 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
7861 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
7862 to type_for_mode langhook.
7864 2013-02-25 Matt Turner <mattst88@gmail.com>
7866 * doc/invoke.texi: Document r4700.
7868 2013-02-25 Richard Biener <rguenther@suse.de>
7870 PR tree-optimization/56175
7871 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
7873 (simplify_bitwise_binary): ... here. Also guard the conversion
7874 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
7876 2013-02-25 Catherine Moore <clm@codesourcery.com>
7879 2013-02-24 Catherine Moore <clm@codesourcery.com>
7880 Maciej W. Rozycki <macro@codesourcery.com>
7881 Tom de Vries <tom@codesourcery.com>
7882 Nathan Sidwell <nathan@codesourcery.com>
7883 Iain Sandoe <iain@codesourcery.com>
7884 Nathan Froyd <froydnj@codesourcery.com>
7885 Chao-ying Fu <fu@mips.com>
7887 * doc/extend.texi: (micromips, nomicromips, nocompression):
7888 Document new function attributes.
7889 * doc/invoke.texi (minterlink-compressed, mmicromips,
7890 m14k, m14ke, m14kec): Document new options.
7891 (minterlink-mips16): Update documentation.
7892 * doc/md.texi (ZC, ZD): Document new constraints.
7893 * configure.ac (gcc_cv_as_micromips): Check if linker
7894 supports the .set micromips directive.
7895 * configure: Regenerate.
7896 * config.in: Regenerate.
7897 * config/mips/mips-tables.opt: Regenerate.
7898 * config/mips/micromips.md: New file.
7899 * constraints.md (ZC, AD): New constraints.
7900 * config/mips/predicates.md (movep_src_register): New predicate.
7901 (movep_src_operand): New predicate.
7902 (non_volatile_mem_operand): New predicate.
7903 * config/mips/mips.md (multimem): New type.
7904 (length): Differentiate between 17-bit and 18-bit branch offsets.
7905 (MOVEP1, MOVEP2): New mode iterator.
7906 (mov_<load>l): Use ZC constraint.
7907 (mov_<load>r): Likewise.
7908 (mov_<store>l): Likewise.
7909 (mov_<store>r): Likewise.
7910 (*branch_equality<mode>_inverted): Add microMIPS support.
7911 (*branch_equality<mode>): Likewise.
7912 (*jump_absolute): Likewise.
7913 (indirect_jump_<mode>): Likewise.
7914 (tablejump_<mode>): Likewise.
7915 (<optab>_internal): Likewise.
7916 (sibcall_internal): Likewise.
7917 (sibcall_value_internal): Likewise.
7918 (prefetch): Use constraint ZD.
7919 * config/mips/mips.opt (minterlink-compressed): New option.
7920 (minterlink-mips16): Now an alias for minterlink-compressed.
7921 (mmicromips): New option.
7922 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7923 (compare_and_swap_12): Likewise.
7924 (sync_add<mode>): Likewise.
7925 (sync_<optab>_12): Likewise.
7926 (sync_old_<optab>_12): Likewise.
7927 (sync_new_<optab>_12): Likewise.
7928 (sync_nand_12): Likewise.
7929 (sync_old_nand_12): Likewise.
7930 (sync_new_nand_12): Likewise.
7931 (sync_sub<mode>): Likewise.
7932 (sync_old_add<mode>): Likewise.
7933 (sync_old_sub<mode>): Likewise.
7934 (sync_new_add<mode>): Likewise.
7935 (sync_new_sub<mode>): Likewise.
7936 (sync_<optab><mode>): Likewise.
7937 (sync_old_<optab><mode>): Likewise.
7938 (sync_new_<optab><mode>): Likewise.
7939 (sync_nand<mode>): Likewise.
7940 (sync_old_nand<mode>): Likewise.
7941 (sync_new_nand<mode>): Likewise.
7942 (sync_lock_test_and_set<mode>): Likewise.
7943 (test_and_set_12): Likewise.
7944 (atomic_compare_and_swap<mode>): Likewise.
7945 (atomic_exchange<mode>_llsc): Likewise.
7946 (atomic_fetch_add<mode>_llsc): Likewise.
7947 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7948 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7949 (umips_save_restore_pattern_p): Likewise.
7950 (umips_load_store_pair_p): Likewise.
7951 (umips_output_load_store_pair): Likewise.
7952 (umips_movep_target_p): Likewise.
7953 (umips_12bit_offset_address_p): Likewise.
7954 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7955 (mips_base_mips16): Rename this...
7956 (mips_base_compression_flags): ...to this. Update all uses.
7957 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7958 (mips_mips16_decl_p): Delete.
7959 (mips_nomips16_decl_p): Delete.
7960 (mips_get_compress_on_flags): New function.
7961 (mips_get_compress_off_flags): New function.
7962 (mips_get_compress_mode): New function.
7963 (mips_get_compress_on_name): New function.
7964 (mips_get_compress_off_name): New function.
7965 (mips_insert_attributes): Support multiple compression types.
7966 (mips_merge_decl_attributes): Likewise.
7967 (umips_12bit_offset_address_p): New function.
7968 (mips_start_function_definition): Emit .set micromips directive.
7969 (mips_call_may_need_jalx_p): New function.
7970 (mips_function_ok_for_sibcall): Add microMIPS support.
7971 (mips_print_operand_punctuation): Support short delay slots and
7973 (umips_swm_mask, umips_swm_encoding): New.
7974 (umips_build_save_restore): New function.
7975 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7976 (was_mips16_p): Remove.
7977 (old_compression_mode): New.
7978 (mips_set_compression_mode): New function.
7979 (mips_set_current_function): Add microMIPS support.
7980 (mips_option_override): Likewise.
7981 (umips_save_restore_pattern_p): New function.
7982 (umips_output_save_restore): New function.
7983 (umips_load_store_pair_p_1): New function.
7984 (umips_load_store_pair_p): New function.
7985 (umips_output_load_store_pair_1): New function.
7986 (umips_output_load_store_pair): New function.
7987 (umips_movep_target_p) New function.
7988 (mips_prepare_pch_save): Add microMIPS support.
7989 * config/mips/mips.h (TARGET_COMPRESSION): New.
7990 (TARGET_CPU_CPP_BUILTINS): Update macro
7991 to use new compression flags and to support microMIPS.
7992 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7993 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7994 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7995 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7996 (ASM_SPEC): Support mmicromips and mno-micromips.
7997 (M16STORE_REG_P): New macro.
7998 (MIPS_CALL): Support TARGET_MICROMIPS.
7999 (MICROMIPS_J): New macro.
8000 (mips_base_mips16): Rename this...
8001 (mips_base_compression_flags): ...to this.
8002 (UMIPS_12BIT_OFFSET_P): New macro.
8003 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8004 (MULTILIB_DIRNAMES): Likewise.
8006 2013-02-25 Tom de Vries <tom@codesourcery.com>
8008 PR rtl-optimization/56131
8009 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8010 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8011 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8013 2013-02-25 Tobias Burnus <burnus@net-b.de>
8015 * doc/invoke.texi (-fsanitize=): Move from optimization
8016 to debugging options.
8018 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8020 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8022 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8023 Alexander Monakov <amonakov@ispras.ru>
8026 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8027 flush pending lists also on non-jumps. Adjust comment.
8029 2013-02-24 Catherine Moore <clm@codesourcery.com>
8030 Maciej W. Rozycki <macro@codesourcery.com>
8031 Tom de Vries <tom@codesourcery.com>
8032 Nathan Sidwell <nathan@codesourcery.com>
8033 Iain Sandoe <iain@codesourcery.com>
8034 Nathan Froyd <froydnj@codesourcery.com>
8035 Chao-ying Fu <fu@mips.com>
8037 * doc/extend.texi: (micromips, nomicromips, nocompression):
8038 Document new function attributes.
8039 * doc/invoke.texi (minterlink-compressed, mmicromips,
8040 m14k, m14ke, m14kec): Document new options.
8041 (minterlink-mips16): Update documentation.
8042 * doc/md.texi (ZC, ZD): Document new constraints.
8043 * configure.ac (gcc_cv_as_micromips): Check if linker
8044 supports the .set micromips directive.
8045 * configure: Regenerate.
8046 * config.in: Regenerate.
8047 * config/mips/mips-tables.opt: Regenerate.
8048 * config/mips/micromips.md: New file.
8049 * constraints.md (ZC, AD): New constraints.
8050 * config/mips/predicates.md (movep_src_register): New predicate.
8051 (movep_src_operand): New predicate.
8052 (non_volatile_mem_operand): New predicate.
8053 * config/mips/mips.md (multimem): New type.
8054 (length): Differentiate between 17-bit and 18-bit branch offsets.
8055 (MOVEP1, MOVEP2): New mode iterator.
8056 (mov_<load>l): Use ZC constraint.
8057 (mov_<load>r): Likewise.
8058 (mov_<store>l): Likewise.
8059 (mov_<store>r): Likewise.
8060 (*branch_equality<mode>_inverted): Add microMIPS support.
8061 (*branch_equality<mode>): Likewise.
8062 (*jump_absolute): Likewise.
8063 (indirect_jump_<mode>): Likewise.
8064 (tablejump_<mode>): Likewise.
8065 (<optab>_internal): Likewise.
8066 (sibcall_internal): Likewise.
8067 (sibcall_value_internal): Likewise.
8068 (prefetch): Use constraint ZD.
8069 * config/mips/mips.opt (minterlink-compressed): New option.
8070 (minterlink-mips16): Now an alias for minterlink-compressed.
8071 (mmicromips): New option.
8072 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8073 (compare_and_swap_12): Likewise.
8074 (sync_add<mode>): Likewise.
8075 (sync_<optab>_12): Likewise.
8076 (sync_old_<optab>_12): Likewise.
8077 (sync_new_<optab>_12): Likewise.
8078 (sync_nand_12): Likewise.
8079 (sync_old_nand_12): Likewise.
8080 (sync_new_nand_12): Likewise.
8081 (sync_sub<mode>): Likewise.
8082 (sync_old_add<mode>): Likewise.
8083 (sync_old_sub<mode>): Likewise.
8084 (sync_new_add<mode>): Likewise.
8085 (sync_new_sub<mode>): Likewise.
8086 (sync_<optab><mode>): Likewise.
8087 (sync_old_<optab><mode>): Likewise.
8088 (sync_new_<optab><mode>): Likewise.
8089 (sync_nand<mode>): Likewise.
8090 (sync_old_nand<mode>): Likewise.
8091 (sync_new_nand<mode>): Likewise.
8092 (sync_lock_test_and_set<mode>): Likewise.
8093 (test_and_set_12): Likewise.
8094 (atomic_compare_and_swap<mode>): Likewise.
8095 (atomic_exchange<mode>_llsc): Likewise.
8096 (atomic_fetch_add<mode>_llsc): Likewise.
8097 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8098 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8099 (umips_save_restore_pattern_p): Likewise.
8100 (umips_load_store_pair_p): Likewise.
8101 (umips_output_load_store_pair): Likewise.
8102 (umips_movep_target_p): Likewise.
8103 (umips_12bit_offset_address_p): Likewise.
8104 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8105 (mips_base_mips16): Rename this...
8106 (mips_base_compression_flags): ...to this. Update all uses.
8107 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8108 (mips_mips16_decl_p): Delete.
8109 (mips_nomips16_decl_p): Delete.
8110 (mips_get_compress_on_flags): New function.
8111 (mips_get_compress_off_flags): New function.
8112 (mips_get_compress_mode): New function.
8113 (mips_get_compress_on_name): New function.
8114 (mips_get_compress_off_name): New function.
8115 (mips_insert_attributes): Support multiple compression types.
8116 (mips_merge_decl_attributes): Likewise.
8117 (umips_12bit_offset_address_p): New function.
8118 (mips_start_function_definition): Emit .set micromips directive.
8119 (mips_call_may_need_jalx_p): New function.
8120 (mips_function_ok_for_sibcall): Add microMIPS support.
8121 (mips_print_operand_punctuation): Support short delay slots and
8123 (umips_swm_mask, umips_swm_encoding): New.
8124 (umips_build_save_restore): New function.
8125 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8126 (was_mips16_p): Remove.
8127 (old_compression_mode): New.
8128 (mips_set_compression_mode): New function.
8129 (mips_set_current_function): Add microMIPS support.
8130 (mips_option_override): Likewise.
8131 (umips_save_restore_pattern_p): New function.
8132 (umips_output_save_restore): New function.
8133 (umips_load_store_pair_p_1): New function.
8134 (umips_load_store_pair_p): New function.
8135 (umips_output_load_store_pair_1): New function.
8136 (umips_output_load_store_pair): New function.
8137 (umips_movep_target_p) New function.
8138 (mips_prepare_pch_save): Add microMIPS support.
8139 * config/mips/mips.h (TARGET_COMPRESSION): New.
8140 (TARGET_CPU_CPP_BUILTINS): Update macro
8141 to use new compression flags and to support microMIPS.
8142 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8143 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8144 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8145 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8146 (ASM_SPEC): Support mmicromips and mno-micromips.
8147 (M16STORE_REG_P): New macro.
8148 (MIPS_CALL): Support TARGET_MICROMIPS.
8149 (MICROMIPS_J): New macro.
8150 (mips_base_mips16): Rename this...
8151 (mips_base_compression_flags): ...to this.
8152 (UMIPS_12BIT_OFFSET_P): New macro.
8153 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8154 (MULTILIB_DIRNAMES): Likewise.
8156 2013-02-24 Jakub Jelinek <jakub@redhat.com>
8159 * target-globals.c (save_target_globals): For init_reg_sets and
8160 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8162 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8164 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8165 * config/aarch64/t-aarch64
8166 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8168 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8171 * lra-constraints.c (process_alt_operands): Reload operand
8172 conflicting with earlier clobber only if no more other conflicting
8175 2013-02-22 Jakub Jelinek <jakub@redhat.com>
8178 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8179 if not linking a shared library.
8181 2013-02-22 Seth LaForge <sethml@google.com>
8183 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8185 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8187 * config/arm/arm.md (split for extendsidi): Update condition.
8188 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8189 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8190 (qhs_zextenddi_cstr): Likewise.
8192 2013-02-21 Jakub Jelinek <jakub@redhat.com>
8195 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8196 avoid signed wrapping.
8197 (expand_mult): Handle properly multiplication by
8198 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8199 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8200 in the compiler if coeff is HOST_WIDE_INT_MIN.
8201 (expand_divmod): Don't make ext_op1 static, change it's type to
8202 uhwi. Avoid undefined behavior in -INTVAL (op1).
8204 PR rtl-optimization/50339
8205 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8207 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8208 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8209 into splitting_ashiftrt field.
8210 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8212 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8215 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
8218 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8219 are sure to go irrevocable.
8221 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
8223 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8224 scalars are valid operands.
8226 2013-02-21 Martin Jambor <mjambor@suse.cz>
8228 PR tree-optimization/56310
8229 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8230 only matching indices and non-negative final offsets.
8231 (intersect_aggregates_with_edge): Pass src_idx to
8232 agg_replacements_to_vector. Pass src_idx insstead of index to
8233 intersect_with_agg_replacements.
8235 2013-02-21 Martin Jambor <mjambor@suse.cz>
8237 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8238 instead of hard-wired defaults.
8240 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8242 * doc/invoke.texi (MIPS Options): Update documentation of the
8243 floating-point multiply-accumulate instruction restrictions.
8245 2013-02-21 Kostya Serebryany <kcc@google.com>
8247 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8248 asan_shadow_offset on x86_64 linux.
8250 2013-02-21 Richard Biener <rguenther@suse.de>
8252 PR tree-optimization/56415
8254 2013-02-11 Richard Biener <rguenther@suse.de>
8256 PR tree-optimization/56273
8257 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8260 2013-02-21 Jakub Jelinek <jakub@redhat.com>
8263 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8267 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8268 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8270 2013-02-20 Jan Hubicka <jh@suse.cz>
8272 PR tree-optimization/56265
8273 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8274 when target is referenced for first time.
8276 2013-02-20 Richard Biener <rguenther@suse.de>
8278 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8279 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8280 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8281 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8282 not return anything.
8283 (rename_ssa_copies): Do not remove unused locals.
8284 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
8285 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
8286 * passes.c (execute_function_todo): Do not schedule unused locals
8287 removal if cleanup_tree_cfg did something.
8288 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8289 about the number of removed locals.
8291 2013-02-20 Richard Biener <rguenther@suse.de>
8293 PR tree-optimization/56398
8294 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
8296 2013-02-20 Martin Jambor <mjambor@suse.cz>
8298 PR tree-optimization/55334
8299 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8300 restricted pointers to arrays.
8302 2013-02-20 Richard Biener <rguenther@suse.de>
8303 Jakub Jelinek <jakub@redhat.com>
8305 PR tree-optimization/56396
8306 * tree-ssa-ccp.c (n_const_val): New static variable.
8307 (get_value): Return NULL for SSA names we don't have a lattice
8309 (ccp_initialize): Initialize n_const_val.
8310 * tree-ssa-copy.c (n_copy_of): New static variable.
8311 (init_copy_prop): Initialize n_copy_of.
8312 (get_value): Return NULL_TREE for SSA names we don't have a
8315 2013-02-20 Martin Jambor <mjambor@suse.cz>
8317 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8319 2013-02-20 Richard Biener <rguenther@suse.de>
8321 * genpreds.c (write_lookup_constraint): Do not compare first
8322 letter of the constraint again.
8324 2013-02-20 Richard Biener <rguenther@suse.de>
8326 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8328 (get_use_iv_cost): Terminate hashtable walk when coming across
8331 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8333 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8334 reassociation for avx2 targets.
8336 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8338 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8339 Add version check for v8.10.a to enable microblaze_has_clz
8340 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
8341 version and TARGET_PATTERN_COMPARE check
8342 * config/microblaze/microblaze.md: New clzsi2 instruction
8344 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8346 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
8347 function before branching.
8349 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8351 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8353 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8355 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8358 * sel-sched.c: Include ira.h.
8359 (implicit_clobber_conflict_p): New function.
8360 (moveup_expr): Use it.
8361 * Makefile.in (sel-sched.o): Depend on ira.h.
8363 2013-02-19 Richard Biener <rguenther@suse.de>
8365 PR tree-optimization/56384
8366 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8367 (vn_hash_type): Split out from ...
8368 (vn_hash_constant_with_type): ... here.
8369 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8370 (vn_phi_eq): Compare types from vn_phi_s structure.
8371 (vn_phi_lookup): Populate vn_phi_s type.
8372 (vn_phi_insert): Likewise.
8374 2013-02-19 Jakub Jelinek <jakub@redhat.com>
8376 PR tree-optimization/56350
8377 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8378 if haven't found reduction or nested cycle operand, rather than
8379 asserting we must find it.
8381 PR tree-optimization/56381
8382 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8385 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
8386 Jakub Jelinek <jakub@redhat.com>
8389 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8390 (swap_optab_enable): Same.
8391 (init_all_optabs): Use argument instead of global.
8392 * tree.h (struct tree_optimization_option): New field target_optabs.
8393 * expr.h (init_all_optabs): Add argument to prototype.
8394 (TREE_OPTIMIZATION_OPTABS): New.
8395 (save_optabs_if_changed): Protoize.
8396 * optabs.h: Declare this_fn_optabs.
8397 * optabs.c (save_optabs_if_changed): New.
8398 Declare this_fn_optabs.
8399 (init_optabs): Add argument to init_all_optabs() call.
8400 * function.c (invoke_set_current_function_hook): Handle per
8402 * function.h (struct function): New field optabs.
8403 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8404 optimization_current_node has changed.
8405 * target-globals.h (save_target_globals_default_opts): Protoize.
8406 * target-globals.c (save_target_globals_default_opts): New.
8408 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8411 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8412 registers %fr12 and %fr12R as call used.
8415 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
8416 and HImode, require all displacements to be an integer multiple of
8418 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8419 only allow QImode and HImode when reload is in progress and strict is
8420 true. Likewise for symbolic addresses. Use base14_operand to check
8421 displacements in REG+BASE addresses.
8423 2013-02-18 Richard Biener <rguenther@suse.de>
8425 PR tree-optimization/56366
8426 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8427 handle sign-conversion of outer-loop initial induction value.
8429 2013-02-18 Richard Biener <rguenther@suse.de>
8432 * cfghooks.c (merge_blocks): If we merge a latch into another
8433 block adjust references to it.
8434 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
8435 (verify_loop_structure): Verify that a recorded latch is in fact
8438 2013-02-18 Richard Biener <rguenther@suse.de>
8440 PR tree-optimization/56321
8441 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
8442 order SSA name release and virtual operand unlinking.
8444 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8446 * config/microblaze/microblaze.md (save_stack_block): Define.
8447 (restore_stack_block): Likewise.
8449 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8451 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
8452 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
8453 * config/microblaze/microblaze.c (microblaze_option_override):
8454 Bail out early for PIC modes when target does not support PIC.
8456 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8458 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8459 Replace with a microblaze version.
8460 (microblaze_trampoline_init): Adapt for microblaze.
8461 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8464 2013-02-16 Jakub Jelinek <jakub@redhat.com>
8465 Dodji Seketeli <dodji@redhat.com>
8468 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
8469 (instrument_mem_region_access): Do not forget to always put
8470 instrumentation of the of 'base' and 'base + len' in a "if (len !=
8471 0) statement, even for cases where either 'base' or 'base + len'
8472 are not instrumented -- because they have been previously
8473 instrumented. Simplify the logic by putting all the statements
8474 instrument 'base + len' inside a sequence, and then insert that
8475 sequence right before the current insertion point. Then, to
8476 instrument 'base + len', just get an iterator on that statement.
8477 And do not forget to update the pointer to iterator the function
8478 received as argument.
8480 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
8482 PR rtl-optimization/56348
8483 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
8485 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
8487 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
8488 (clean_graph_dump_file): Pass base to start_graph_dump.
8490 2013-02-14 Richard Henderson <rth@redhat.com>
8493 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
8495 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
8497 * collect2-aix.h: Define F_LOADONLY.
8499 2013-02-14 Richard Biener <rguenther@suse.de>
8502 * varasm.c (output_constant_def_1): Get the decl representing
8503 the constant as argument.
8504 (output_constant_def): Wrap output_constant_def_1.
8505 (make_decl_rtl): Use output_constant_def_1 with the decl
8506 representing the constant.
8507 (build_constant_desc): Optionally re-use a decl already
8508 representing the constant.
8509 (tree_output_constant_def): Adjust.
8511 2013-02-14 Dodji Seketeli <dodji@redhat.com>
8514 * asan.c (instrument_builtin_call): Really put the length of the
8515 second source argument into src1_len.
8517 2013-02-13 Jakub Jelinek <jakub@redhat.com>
8519 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
8520 argument. If it is false, don't create edge from then_bb to
8522 (insert_if_then_before_iter): Pass true to it.
8523 (build_check_stmt): Pass false to it.
8524 (transform_statements): Flush hash table only on extended basic
8525 block boundaries, rather than at the beginning of every bb.
8526 Don't flush hash table on nonfreeing_call_p calls.
8527 * tree-flow.h (nonfreeing_call_p): New prototype.
8528 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
8530 2013-02-13 David S. Miller <davem@davemloft.net>
8532 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
8534 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
8537 * ira.c (max_regno_before_ira): Move from ...
8539 (fix_reg_equiv_init): Use max_regno_before_ira instead of
8542 2013-02-13 Jakub Jelinek <jakub@redhat.com>
8544 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
8546 2013-02-13 Richard Biener <rguenther@suse.de>
8549 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
8550 globals in MEM_REFs.
8552 2013-02-13 Richard Biener <rguenther@suse.de>
8554 * loop-init.c (loop_optimizer_init): Clear loop state when
8555 re-initializing preserved loops.
8556 * loop-unswitch.c (unswitch_single_loop): Return whether
8557 we unswitched the loop. Do not verify loop state here.
8558 (unswitch_loops): When we unswitched a loop discover new loops.
8560 2013-02-13 Kostya Serebryany <kcc@google.com>
8562 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
8564 * sanitizer.def: Rename __asan_init to __asan_init_v1.
8566 2013-02-12 Dodji Seketeli <dodji@redhat.com>
8568 Avoid instrumenting duplicated memory access in the same basic block
8569 * Makefile.in (asan.o): Add new dependency on hash-table.h
8570 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
8571 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
8572 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
8573 (free_mem_ref_resources, has_mem_ref_been_instrumented)
8574 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
8575 (get_mem_ref_of_assignment): New functions.
8576 (get_mem_refs_of_builtin_call): Extract from
8577 instrument_builtin_call and tweak a little bit to make it fit with
8579 (instrument_builtin_call): Use the new
8580 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
8581 of is_gimple_builtin_call.
8582 (instrument_derefs, instrument_mem_region_access): Insert the
8583 instrumented memory reference into the hash table.
8584 (maybe_instrument_assignment): Renamed instrument_assignment into
8585 this, and change it to advance the iterator when instrumentation
8586 actually happened and return true in that case. This makes it
8587 homogeneous with maybe_instrument_assignment, and thus give a
8588 chance to callers to be more 'regular'.
8589 (transform_statements): Clear the memory reference hash table
8590 whenever we enter a new BB, when we cross a function call, or when
8591 we are done transforming statements. Use
8592 maybe_instrument_assignment instead of instrumentation. No more
8593 need to special case maybe_instrument_assignment and advance the
8594 iterator after calling it; it's now handled just like
8595 maybe_instrument_call. Update comment.
8597 2013-02-13 Richard Biener <rguenther@suse.de>
8599 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
8600 Fix loop discovery code.
8602 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
8605 * lra-constraints.c (process_alt_operands): Match early clobber
8606 operand with itself. Check conflicts with earlyclobber only if
8607 the operand is not reloaded. Prefer to reload conflicting operand
8608 if earlyclobber and matching operands are the same.
8610 2013-02-12 Richard Biener <rguenther@suse.de>
8613 * lto-streamer-out.c (write_symbol): Do not output symbols
8614 for hard register variables.
8616 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
8619 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
8620 (umulsidi3_insn, mulsidi3_insn): New insns.
8622 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
8624 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
8625 (struct tune_params): Add vec_costs field.
8626 * config/arm/arm.c (arm_builtin_vectorization_cost)
8627 (arm_add_stmt_cost): New functions.
8628 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
8629 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
8630 (arm_default_vec_cost): New struct of type cpu_vec_costs.
8631 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
8632 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
8633 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
8634 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
8636 2013-02-12 Richard Biener <rguenther@suse.de>
8639 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
8640 decls again if possible.
8642 2013-02-12 Richard Biener <rguenther@suse.de>
8645 * tree-ssa.c (verify_ssa_name): Fix check, move
8646 SSA_NAME_IN_FREE_LIST check up.
8648 2013-02-12 Jakub Jelinek <jakub@redhat.com>
8649 Steven Bosscher <steven@gcc.gnu.org>
8651 PR rtl-optimization/56151
8652 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
8653 equal to op0 or op1, and last_insn pattern is CODE operation
8654 with MEM dest and one of the operands matches that MEM.
8656 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
8658 * doc/extend.texi: Document Function Multiversioning and "default"
8659 parameter string to target attribute.
8660 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
8661 target attribute parameter is "default".
8662 (ix86_compare_version_priority): Remove checks for target attribute.
8663 (ix86_mangle_function_version_assembler_name): Change error to sorry.
8664 Remove check for target attribute equal to NULL. Add assert.
8665 (ix86_generate_version_dispatcher_body): Change error to sorry.
8667 2013-02-11 Iain Sandoe <iain@codesourcery.com>
8668 Jack Howarth <howarth@bromo.med.uc.edu>
8669 Patrick Marlier <patrick.marlier@gmail.com>
8672 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
8673 define ENDFILE_SPEC as TM_DESTRUCTOR.
8674 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
8676 2013-02-11 Alexander Potapenko <glider@google.com>
8677 Jack Howarth <howarth@bromo.med.uc.edu>
8678 Jakub Jelinek <jakub@redhat.com>
8681 * config/darwin.c (cdtor_record): Rename ctor_record.
8682 (sort_cdtor_records): Rename sort_ctor_records.
8683 (finalize_dtors): New routine to sort destructors by
8684 priority before use in assemble_integer.
8685 (machopic_asm_out_destructor): Use finalize_dtors if needed.
8687 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
8689 PR rtl-optimization/56275
8690 * simplify-rtx.c (avoid_constant_pool_reference): Check that
8691 offset is non-negative and less than cmode size before
8692 calling simplify_subreg.
8694 2013-02-11 Richard Biener <rguenther@suse.de>
8696 PR tree-optimization/56264
8697 * cfgloop.h (fix_loop_structure): Adjust prototype.
8698 * loop-init.c (fix_loop_structure): Return the number of
8699 newly discovered loops.
8700 * tree-cfgcleanup.c (repair_loop_structures): When new loops
8701 are discovered, do a full loop-closed SSA rewrite.
8703 2013-02-11 Richard Biener <rguenther@suse.de>
8705 PR tree-optimization/56273
8706 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8708 (check_array_ref): Fix missing newline in dumps.
8709 (search_for_addr_array): Likewise.
8711 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
8713 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
8715 2013-02-09 Jakub Jelinek <jakub@redhat.com>
8718 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
8720 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
8722 PR rtl-optimization/56246
8723 * lra-constraints.c (simplify_operand_subreg): Try to reuse
8725 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
8726 constraints are satisfied.
8728 2013-02-08 Jeff Law <law@redhat.com>
8731 * emit-rtl.c (reg_is_parm_p): New function.
8732 * regs.h (reg_is_parm_p): New prototype.
8733 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
8734 callee-clobbered registers.
8736 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8739 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
8740 If there is no implicit builtin declaration, just return NULL.
8742 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
8744 * config/i386/sse.md (FMAMODEM): New mode iterator.
8745 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
8746 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
8748 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
8750 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
8751 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
8752 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
8754 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8756 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
8757 (microblaze*-*-elf): Likewise.
8758 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
8760 * config/microblaze/microblaze-c.c: Add builtin defines for
8761 _LITTLE_ENDIAN and _BIG_ENDIAN.
8762 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
8763 add to TARGET_DEFAULT flags.
8764 Expand ASM_SPEC and LINK_SPEC.
8765 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
8766 * config/microblaze/microblaze.md: Update extendsidi2 and
8767 movdi_internal instructions to use low-order / high-order reg
8769 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
8770 options and inversemask / mask of LITTLE_ENDIAN.
8771 * config/microblaze/t-microblaze: Expand multilib options to
8772 include mlittle-endian (le) and update exceptions patterns.
8774 2013-02-08 Jakub Jelinek <jakub@redhat.com>
8776 PR rtl-optimization/56195
8777 * lra-constraints.c (get_reload_reg): Don't reuse regs
8778 if they have smaller mode than requested, if they have
8779 wider mode than requested, try to return a SUBREG.
8781 PR tree-optimization/56250
8782 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
8783 if type is unsigned and code isn't MULT_EXPR.
8785 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
8787 PR tree-optimization/56064
8788 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
8789 bits according to mode.
8790 * fixed-value.h (fixed_from_double_int)
8791 (const_fixed_from_double_int): Adjust comments.
8793 2013-02-08 Richard Biener <rguenther@suse.de>
8796 * lto-streamer.h (struct data_in): Remove current_file, current_line
8797 and current_col members.
8798 * lto-streamer-out.c (lto_output_location): Stream changed bits
8799 en-block for efficiency.
8800 * lto-streamer-in.c (clear_line_info): Remove.
8801 (lto_input_location): Cache current file, line and column
8802 globally via local statics. Read changed bits en-block.
8803 (input_function): Do not call clear_line_info.
8804 (lto_read_body): Likewise.
8805 (lto_input_toplevel_asms): Likewise.
8807 2013-02-08 Michael Matz <matz@suse.de>
8809 PR tree-optimization/52448
8810 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
8811 (nt_call_phase): New static.
8812 (add_or_mark_expr): Only mark accesses with newer phase than any
8814 (nonfreeing_call_p): New.
8815 (nt_init_block): Update nt_call_phase, mark blocks as visited.
8816 (nt_fini_block): Keep blocks marked as visited.
8817 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
8819 2013-02-08 Richard Biener <rguenther@suse.de>
8821 * ira.c (ira): Free broken dominator information.
8823 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
8825 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
8827 2013-02-08 Marek Polacek <polacek@redhat.com>
8829 * cfgloop.c (verify_loop_structure): Add more checking of headers.
8831 2013-02-08 Richard Biener <rguenther@suse.de>
8834 * cfgloop.h (flow_loops_find): Adjust.
8835 (bb_loop_header_p): Declare.
8836 * cfgloop.c (bb_loop_header_p): New function split out from ...
8837 (flow_loops_find): ... here. Adjust function signature,
8838 support incremental loop structure update.
8839 (verify_loop_structure): Cleanup. Verify a loop is a loop.
8840 * cfgloopmanip.c (fix_loop_structure): Move ...
8841 * loop-init.c (fix_loop_structure): ... here.
8842 (apply_loop_flags): Split out from ...
8843 (loop_optimizer_init): ... here.
8844 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
8845 in incremental mode, only remove dead loops here.
8847 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
8850 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
8851 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
8852 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
8853 (*round<mode>3.libgcc): New insns for fixed-modes.
8854 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
8855 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
8856 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
8857 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
8858 implementations. Define to __builtin_avr_absFX,
8859 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
8860 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
8861 __builtin_avr_countlsFX, respectively.
8862 * config/avr/avr-c.c (target.h): Include it.
8863 (enum avr_builtin_id): New enum.
8864 (avr_resolve_overloaded_builtin): New static function.
8865 (avr_register_target_pragmas): Use it to set
8866 targetm.resolve_overloaded_builtin.
8867 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
8868 tree nodes used by DEF_BUILTIN.
8869 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
8870 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
8871 <AVR_BUILTIN_xxBITS>: Same.
8873 2013-02-08 Richard Biener <rguenther@suse.de>
8875 * cfgloop.c (verify_loop_structure): Properly handle
8876 a loop exiting to another loop header.
8877 * ira-int.h (ira_loops): Remove.
8878 * ira.c (ira_loops): Remove.
8879 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
8880 (do_reload): Use loop_optimizer_finalize.
8881 * ira-build.c (create_loop_tree_nodes): Use get_loops and
8882 number_of_loops to access the loop tree.
8883 (more_one_region_p): Likewise.
8884 (finish_loop_tree_nodes): Likewise.
8885 (rebuild_regno_allocno_maps): Likewise.
8886 (mark_loops_for_removal): Likewise.
8887 (mark_all_loops_for_removal): Likewise.
8888 (remove_unnecessary_regions): Likewise.
8889 (ira_build): Likewise.
8890 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
8892 2013-02-08 Richard Biener <rguenther@suse.de>
8894 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
8895 * ipa-pure-const.c (analyze_function): Avoid calling
8896 mark_irreducible_loops twice.
8897 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
8899 2013-02-07 David S. Miller <davem@davemloft.net>
8901 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
8903 * var-tracking.c (vt_add_function_parameter): Test the presence of
8904 HAVE_window_save properly and do not remap argument registers when
8905 we have a leaf function.
8907 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
8910 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
8912 * config/i386/i386.c (ix86_print_operand): Ditto.
8914 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8916 * lra-constraints.c (process_alt_operands): Fix recently added comment.
8918 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8920 PR rtl-optimization/56225
8921 * lra-constraints.c (process_alt_operands): Check that reload hard
8922 reg can hold value for strict_low_part.
8924 2013-02-07 Jakub Jelinek <jakub@redhat.com>
8927 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8928 dwarf2out_end_function.
8929 (in_first_function_p, maybe_at_text_label_p,
8930 first_loclabel_num_not_at_text_label): New variables.
8931 (dwarf2out_var_location): In the first function find out
8932 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
8933 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8936 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
8938 PR rtl-optimization/56178
8939 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8940 SUBREG of a register. Tidy up related block of code.
8941 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8942 note if the source is a register or a SUBREG of a register.
8944 2013-02-07 Jakub Jelinek <jakub@redhat.com>
8947 * config/rs6000/rs6000.md (ptrm): New mode attr.
8948 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8949 call_value_indirect_aix<pttrsize>,
8950 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8953 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8955 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8956 if -bnortl. Convert to strcmp and strncmp.
8958 2013-02-07 Alan Modra <amodra@gmail.com>
8961 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8962 addresses won't wrap when offsetting.
8963 (rs6000_secondary_reload): Provide secondary reloads needed for
8964 wrapping LO_SUM addresses.
8966 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
8968 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8969 MACH, just __MACH__.
8971 2013-02-06 Richard Biener <rguenther@suse.de>
8973 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8974 instead of calling fix_loop_structure.
8976 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8979 * omp-low.c (use_pointer_for_field): Return false if
8980 lower_send_shared_vars doesn't generate any copy-out code.
8982 2013-02-06 Tom de Vries <tom@codesourcery.com>
8984 PR rtl-optimization/56131
8985 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8986 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
8987 of the label is NULL. Add comment.
8989 2013-02-05 Jakub Jelinek <jakub@redhat.com>
8991 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8994 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8995 (STATIC_LIBTSAN_LIBS): Likewise.
8996 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8997 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8998 is defined, don't add anything else beyond that.
8999 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9000 (LINK_COMMAND_SPEC): Use them.
9002 PR tree-optimization/56205
9003 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9004 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9005 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9007 2013-02-05 Richard Biener <rguenther@suse.de>
9009 PR tree-optimization/53342
9010 PR tree-optimization/53185
9011 * tree-vectorizer.h (vect_check_strided_load): Remove.
9012 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9013 not disallow peeling for vectorized strided loads.
9014 (vect_check_strided_load): Make static and simplify.
9015 (vect_analyze_data_refs): Adjust.
9016 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9017 correctly when vectorizing strided loads.
9019 2013-02-05 Richard Biener <rguenther@suse.de>
9021 * doc/install.texi: Refer to ISL, not PPL.
9023 2013-02-05 Jan Hubicka <jh@suse.cz>
9025 PR tree-optimization/55789
9026 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9028 2013-02-05 Jan Hubicka <jh@suse.cz>
9030 PR tree-optimization/55789
9031 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9032 the dead call anyway.
9034 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9037 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9039 2013-02-04 Alexander Potapenko <glider@google.com>
9040 Jack Howarth <howarth@bromo.med.uc.edu>
9041 Jakub Jelinek <jakub@redhat.com>
9044 * config/darwin.c (sort_ctor_records): Stabilized qsort
9045 on constructor priority by using original position.
9046 (finalize_ctors): New routine to sort constructors by
9047 priority before use in assemble_integer.
9048 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9050 2013-02-04 Jakub Jelinek <jakub@redhat.com>
9053 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9054 about visibility on artificial decls.
9055 * config/sol2.c (solaris_assemble_visibility): Likewise.
9057 2013-02-04 Kai Tietz <ktietz@redhat.com>
9060 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9061 argument and improve checking of return-argument types for 16-byte
9063 (ix86_function_value_1): Add additional valtype argument on call
9064 of function_value_64.
9065 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9066 handling infunction_value_64 function.
9068 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9070 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
9072 2013-02-04 Richard Biener <rguenther@suse.de>
9074 PR tree-optimization/56188
9075 * tree-ssa-structalias.c (label_visit): Consider case with
9076 initially non-empty points-to set.
9077 (perform_var_substitution): Dump node mapping and clean up.
9079 2013-02-04 Richard Guenther <rguenther@suse.de>
9082 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9083 node prevail as last resort.
9084 (lto_symtab_merge_decls): Remove guard on LTRANS here.
9085 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
9087 2013-02-04 Richard Biener <rguenther@suse.de>
9089 PR tree-optimization/56113
9090 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9092 (equiv_class_lookup_or_add): ... this.
9093 (label_visit): Adjust and fix error in previous patch.
9094 (perform_var_substitution): Adjust.
9096 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9098 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9099 * config/sh/sh4-300.md: Likewise.
9100 * config/sh/sh4a.md: Likewise.
9101 * config/sh/constraints.md: Likewise.
9102 * config/sh/sh.md: Likewise.
9103 * config/sh/netbsd-elf.h: Likewise.
9104 * config/sh/predicates.md: Likewise.
9105 * config/sh/sh-protos.h: Likewise.
9106 * config/sh/ushmedia.h: Likewise.
9107 * config/sh/linux.h: Likewise.
9108 * config/sh/sh.c: Likewise.
9109 * config/sh/superh.h: Likewise.
9110 * config/sh/elf.h: Likewise.
9111 * config/sh/sh4.md: Likewise.
9112 * config/sh/sh.h: Likewise.
9114 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9116 * config/pa/constraints.md: Adjust unused letters. Change "T"
9117 constraint to match_test floating_point_store_memory_operand().
9118 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9119 (base14_operand): New.
9120 (floating_point_store_memory_operand): New.
9121 (integer_store_memory_operand): Revise to use base14_operand and
9122 reg_plus_base_memory_operand.
9123 (move_dest_operand): Allow symbolic_memory_operands.
9124 (symbolic_memory_operand): Check for LO_SOM.
9125 (symbolic_operand): Change default case to break.
9126 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9127 CONST_DOUBLE values to be reloaded by putting them into memory when
9128 the destination is a floating point register.
9129 (movdf): Remove code to handle CONST_DOUBLE.
9131 (reload_indf_r1): New.
9132 (reload_insf_r1): New.
9133 Consistently use "Q" and "T" constraints with integer and floating
9134 point move instructions, respectively.
9135 (movdi): Remove FAIL.
9136 Change predicate for source operand unamed DImode move from
9137 general_operand to move_src_operand.
9138 (umulsidi3): Change predicate for destination operand to
9140 Likewise for similar unamed patterns.
9141 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9142 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9143 (hppa_legitimize_address): Simplify mask calculation.
9144 (pa_emit_move_sequence): Revised handling of secondary reloads from
9145 REG+D addresses for floating point loads and stores. Directly handle
9146 loading CONST0_RTX (mode) to a floating point register.
9147 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9148 to floating point registers. Don't restrict secondary reloads to
9149 floating point registers to integer modes. Revise some comments and
9151 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9152 (pa_legitimate_address_p): New.
9153 (pa_legitimize_reload_address): New.
9154 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9155 (STRICT_REG_OK_FOR_BASE_P): New.
9156 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9157 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9159 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
9160 Andrew Dixie <andrewd@gentrack.com>
9162 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9165 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9167 * expmed.c (extract_bit_field_1): Pass the full width of the
9168 structure to get_best_reg_extraction_insn.
9170 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
9173 * configure.ac (use_cxa_atexit): Add AIX.
9174 * configure: Regenerate.
9176 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9178 2013-02-01 Jakub Jelinek <jakub@redhat.com>
9181 * final.c (need_profile_function): New variable.
9182 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9183 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9184 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9185 notes, targetm.asm_out.function_prologue doesn't emit anything,
9186 HAVE_prologue and profiler should be emitted before prologue,
9187 set need_profile_function instead of emitting it.
9188 (final_scan_insn): If need_profile_function, emit
9189 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9190 NOTE_INSN_FUNCTION_BEG note.
9192 2013-02-01 Richard Henderson <rth@redhat.com>
9194 * config/rs6000/rs6000.md (smulditi3): New.
9197 * config/alpha/alpha.md (umulditi3): New.
9199 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
9201 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9202 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9204 2013-02-01 Richard Biener <rguenther@suse.de>
9206 PR tree-optimization/56113
9207 * tree-ssa-structalias.c (label_visit): Reduce work for
9208 single-predecessor nodes.
9210 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9212 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9213 range isn't testing for zero.
9215 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9218 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9220 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9221 Nick Clifton <nickc@redhat.com>
9223 * config/v850/constraints.md (Q): Define as a memory constraint.
9224 * config/v850/predicates.md (label_ref_operand): New predicate.
9225 (e3v5_shift_operand): New predicate.
9226 (ior_operator): New predicate.
9227 * config/v850/t-v850: Add e3v5 multilib.
9228 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9229 (v850_gen_movdi): Prototype.
9230 * config/v850/v850.c: Add support for e3v5 architecture.
9231 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9233 (construct_save_jarl): Add e3v5 long JARL support.
9234 (v850_adjust_insn_length): New function. Adjust length of call
9235 insns when using e3v5 instructions.
9236 (v850_gen_movdi): New function: Generate instructions to move a
9238 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9239 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9240 (TARGET_USE_FPU): Enable for e3v5.
9241 (CONST_OK_FOR_W): New macro.
9242 (ADJUST_INSN_LENGTH): Define.
9243 * config/v850/v850.md (UNSPEC_LOOP): Define.
9244 (attr cpu): Add v850e3v5.
9245 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9246 (movdi): New pattern.
9247 (movdi_internal): New pattern.
9248 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9249 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9250 (cstoresf4): Likewise.
9251 (cstoredf4): Likewise.
9252 (insv): New pattern.
9253 (rotlso3_a): New pattern.
9254 (rotlsi3_b): New pattern
9255 (rotlsi3_v850e3v5): New pattern.
9256 (doloop_begin): New pattern.
9257 (fix_loop_counter): New pattern.
9258 (doloop_end): New pattern.
9259 (branch_normal): Add e3v5 long branch support.
9260 (branch_invert): Likewise.
9261 (branch_z_normal): Likewise.
9262 (branch_z_invert): Likewise.
9263 (branch_nz_normal): Likewise.
9264 (branch_nz_invert): Likewise.
9265 (call_internal_short): Add e3v5 register-indirect JARL support.
9266 (call_internal_long): Likewise.
9267 (call_value_internal_short): Likewise.
9268 (call_value_internal_long): Likewise.
9269 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9270 (mloop): New option.
9271 * config.gcc: Add support for configuring v840e3v5 target.
9272 * doc/invoke.texi: Document new v850 specific command line options.
9274 2013-01-31 Paul Koning <ni1d@arrl.net>
9278 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9279 children if parent is a class.
9280 (prune_unused_types_prune): Don't add DW_AT_declaration.
9282 2013-01-31 Richard Biener <rguenther@suse.de>
9284 PR tree-optimization/56157
9285 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9286 match up operand with SLP child.
9288 2013-01-31 Jason Merrill <jason@redhat.com>
9291 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9292 parameters the first time.
9293 (gen_scheduled_generic_parms_dies): Check completeness here.
9295 2013-01-31 Richard Biener <rguenther@suse.de>
9298 * common.opt (faggressive-loop-optimizations): New flag,
9300 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9301 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9302 infer_loop_bounds_from_undefined by it.
9304 2013-01-31 Richard Biener <rguenther@suse.de>
9306 PR tree-optimization/56150
9307 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9308 visit virtual operands.
9309 (find_uses_to_rename_bb): Likewise.
9311 2013-01-31 Richard Biener <rguenther@suse.de>
9313 PR tree-optimization/56150
9314 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9315 mixed store non-store stmts.
9317 2013-01-30 Jakub Jelinek <jakub@redhat.com>
9320 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9321 LIBASAN_EARLY_SPEC is defined.
9322 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9323 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9325 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9328 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9329 invalid args instead of ICEing on it.
9330 (ix86_valid_target_attribute_tree): Return error_mark_node if
9331 ix86_valid_target_attribute_inner_p failed.
9332 (ix86_valid_target_attribute_p): Return false only if
9333 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9334 target("default") attribute.
9335 (sorted_attr_string): Change argument from const char * to tree,
9336 merge in all target attribute arguments rather than just one.
9337 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9338 instead of free. Avoid using strcat.
9339 (ix86_mangle_function_version_assembler_name): Mangle
9340 target("default") as if no target attribute is present. Adjust
9341 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9342 instead of xmalloc and XDELETEVEC instead of free.
9343 (ix86_function_versions): Don't return true if one of the decls
9344 doesn't have target attribute. If they don't and one of the decls
9345 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9346 sorted_attr_string caller. Use XDELETEVEC instead of free.
9347 (ix86_supports_function_versions): Remove.
9348 (make_name): Fix up formatting.
9349 (make_dispatcher_decl): Remove resolver_name and its initialization.
9350 Avoid leaking memory.
9351 (is_function_default_version): Return true if there is
9352 target("default") attribute rather than no target attribute at all.
9353 (make_resolver_func): Avoid leaking memory.
9354 (ix86_generate_version_dispatcher_body): Likewise.
9355 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9356 * target.def (supports_function_versions): Remove.
9357 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9358 * doc/tm.texi: Regenerated.
9360 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9362 PR rtl-optimization/56144
9363 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9364 for values with side effects.
9366 2013-01-30 Richard Biener <rguenther@suse.de>
9368 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9369 (sparseset_pop): Likewise.
9370 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9371 to be able to use quick_push in the worker loop.
9373 2013-01-30 Marek Polacek <polacek@redhat.com>
9375 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9377 2013-01-30 Richard Biener <rguenther@suse.de>
9380 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
9382 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
9384 PR tree-optimization/56064
9385 * fixed-value.c (fixed_from_double_int): New function.
9386 * fixed-value.h (fixed_from_double_int): New prototype.
9387 (const_fixed_from_double_int): New static inline function.
9388 * fold-const.c (native_interpret_fixed): New static function.
9389 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9390 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9391 (native_encode_fixed): New static function.
9392 (native_encode_expr) <FIXED_CST>: Use it.
9393 (native_interpret_int): Move double_int worker code to...
9394 * double-int.c (double_int::from_buffer): ...this new static method.
9395 * double-int.h (double_int::from_buffer): Prototype it.
9397 2013-01-30 Richard Biener <rguenther@suse.de>
9399 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9400 New pointer-map and obstack.
9401 (init_alias_vars): Allocate pointer-map and obstack.
9402 (delete_points_to_sets): Free them.
9403 (find_what_var_points_to): Cache result.
9404 (find_what_p_points_to): Adjust for changed interface of
9405 find_what_var_points_to.
9406 (compute_points_to_sets): Likewise.
9407 (ipa_pta_execute): Likewise.
9409 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9411 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9412 * configure: Regenerate.
9413 * config.in: Regenerate.
9414 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9415 #nobits/#progbits if supported.
9417 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9420 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9421 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9422 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9424 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9426 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9427 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
9429 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9431 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
9432 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
9434 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9436 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
9438 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
9439 * config/arm/cortex-a7.md: New bypasses using
9440 arm_mac_accumulator_is_result.
9442 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9444 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
9445 (cortex_a7_neon_mla): Likewise.
9446 (cortex_a7_fpfmad): New reservation.
9447 (cortex_a7_fpmacs): Use ffmas and update required units.
9448 (cortex_a7_fpmuld): Update required units and latency.
9449 (cortex_a7_fpmacd): Likewise.
9450 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
9451 (cortex_a7_neon). Likewise.
9452 (bypass) Update participating units.
9454 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9456 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
9457 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
9459 * config/arm/vfp11.md (vfp_farith): Use ffmas.
9460 (vfp_fmul): Use ffmad.
9461 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
9462 (cortex_r4_fmacd): Use ffmad.
9463 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
9464 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
9465 (cortex_a9_fmacd): Use ffmad.
9466 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
9467 (cortex_a8_vfp_macd): Use ffmad.
9468 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
9469 (cortex_a5_fpmacd): Use ffmad.
9470 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
9471 (cortex_a15_vfp_macd): Use ffmad.
9472 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
9474 2013-01-29 Jason Merrill <jason@redhat.com>
9477 * varasm.c (default_assemble_visibility): Don't warn about
9478 visibility on artificial decls.
9480 2013-01-29 Richard Biener <rguenther@suse.de>
9482 PR tree-optimization/56113
9483 * tree-ssa-structalias.c (equiv_class_lookup): Also return
9485 (label_visit): Free duplicate bitmaps and record the leader instead.
9486 (perform_var_substitution): Adjust.
9488 2013-01-29 Richard Biener <rguenther@suse.de>
9490 PR tree-optimization/55270
9491 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
9492 the CFG, schedule loops for fixup.
9494 2013-01-29 Nick Clifton <nickc@redhat.com>
9496 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
9499 2013-01-28 Leif Ekblad <leif@rdos.net>
9501 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
9502 * config/i386/i386.h (TARGET_RDOS): New macro.
9503 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
9504 * config/i386/i386.c (ix86_option_override_internal): For 64bit
9505 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
9506 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
9507 DEFAULT_LARGE_SECTION_THRESHOLD.
9508 * config/i386/i386.md (R14_REG, R15_REG): New constants.
9509 * config/i386/rdos.h: New file.
9510 * config/i386/rdos64.h: New file.
9512 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
9515 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
9518 2013-01-28 Jakub Jelinek <jakub@redhat.com>
9520 PR rtl-optimization/56117
9521 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
9522 call cselib_lookup_from_insn on the MEM before calling
9523 add_insn_mem_dependence.
9525 2013-01-28 Richard Biener <rguenther@suse.de>
9527 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
9528 to a stmt that didn't have one.
9529 (copy_phis_for_bb): Likewise for PHI arguments.
9530 (copy_debug_stmt): Likewise for debug stmts.
9532 2013-01-28 Richard Biener <rguenther@suse.de>
9534 PR tree-optimization/56034
9535 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
9536 (partition_builtin_p): Adjust.
9537 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
9538 it is the last partition.
9539 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
9540 up the vertex for the definition.
9541 (classify_partition): Classify whether a partition is a
9542 PKIND_REDUCTION, thus has uses outside of the loop.
9543 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
9544 Merge all PKIND_REDUCTION partitions into the last partition.
9545 (tree_loop_distribution): Seed partitions from reductions as well.
9547 2013-01-28 Jakub Jelinek <jakub@redhat.com>
9549 PR tree-optimization/56125
9550 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
9551 pow(x,c) into sqrt(x) * powi(x, n/2) or
9552 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
9553 optimizing for size.
9554 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
9555 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
9558 PR tree-optimization/56094
9559 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
9560 to UNKNOWN_LOCATION while gimplifying expr.
9562 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
9565 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
9566 operand 0 in movabs insn template for -masm=intel asm alternative.
9567 (*movabs<mode>_2): Ditto for operand 1.
9569 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
9572 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
9575 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9577 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
9580 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9582 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
9583 Undef to avoid warning.
9585 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9587 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
9588 * configure: Regenerate.
9590 2013-01-25 Jakub Jelinek <jakub@redhat.com>
9592 PR tree-optimization/56098
9593 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
9594 for stmts with volatile ops.
9595 (cond_store_replacement): Don't optimize if assign has volatile ops.
9596 (cond_if_else_store_replacement_1): Don't optimize if either
9597 then_assign or else_assign have volatile ops.
9598 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
9601 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
9603 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
9605 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
9607 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
9608 missing ':' in asm example.
9610 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
9612 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
9613 entries into lane and laneq entries.
9614 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
9615 Remove AdvSIMD scalar modes.
9616 (aarch64_sq<r>dmulh_laneq<mode>): New.
9617 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
9619 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
9620 builtin implementations to relfect changes in RTL in aarch64-simd.md.
9621 * config/aarch64/iterators.md (VCOND): New.
9624 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
9627 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
9628 Add NULL LIBNAME argument to existing definitions.
9629 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
9630 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
9631 * config/avr/avr.c (DEF_BUILTIN): Same.
9632 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
9633 (avr_expand_builtin): Expand to a vanilla call if a libgcc
9634 implementation is available (DECL_ASSEMBLER_NAME is set).
9635 (avr_fold_absfx): New static function.
9636 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
9637 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
9638 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
9640 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
9641 (abshk, absk, abslk, absllk): Provide as static inline functions.
9643 2013-01-25 Marek Polacek <polacek@redhat.com>
9645 PR tree-optimization/56035
9646 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
9648 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
9650 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
9651 (*movtf_internal_rex64): Add (!o,C) alternative
9652 (*movxf_internal_rex64): Ditto.
9653 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
9655 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
9657 * doc/invoke.texi: fix typo.
9658 * doc/objc.texi: fix typo.
9660 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9662 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
9663 for the first two alternatives.
9665 2013-01-24 Diego Novillo <dnovillo@google.com>
9667 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
9668 (ggc-zone.o): Remove.
9669 * configure.ac: Remove option --with-gc.
9670 * configure: Re-generate.
9671 * doc/install.texi: Remove documentation for --with-gc.
9672 * gengtype.c (write_enum_defn): Remove. Update all users.
9673 (write_Types_process_field): Remove generation of gt_e_* argument.
9674 (output_type_enum): Remove. Update all users.
9675 (write_enum_defn): Remove. Update all users.
9676 (enum alloc_zone): Remove. Update all users.
9677 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
9678 * ggc-common.c (ggc_splay_alloc): Remove first argument.
9680 (struct ptr_data): Remove field TYPE. Update all users.
9681 (gt_pch_note_object): Remove argument TYPE. Update all users.
9682 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
9684 * ggc-none.c (ggc_alloc_typed_stat): Remove.
9685 (struct alloc_zone): Remove.
9686 (ggc_internal_alloc_zone_stat): Remove.
9687 (ggc_internal_cleared_alloc_zone_stat): Remove.
9688 * ggc-page.c (ggc_alloc_typed_stat): Remove.
9689 (ggc_pch_count_object): Remove last argument. Update all users.
9690 (ggc_pch_alloc_object): Remove last argument. Update all users.
9691 (struct alloc_zone): Remove.
9692 * ggc-zone.c: Remove.
9693 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
9694 (struct alloc_zone): Remove.
9695 (ggc_alloc_typed_stat): Remove.
9696 (ggc_alloc_typed): Remove.
9697 (ggc_splay_alloc): Remove first argument.
9698 (rtl_zone): Remove. Update all users.
9699 (tree_zone): Remove. Update all users.
9700 (tree_id_zone): Remove. Update all users.
9701 (ggc_internal_zone_alloc_stat): Remove. Update all users.
9702 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
9703 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
9704 * tree-ssanames.c: Remove references to zone allocator in comments.
9706 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
9708 * config/avr/avr.c (avr_out_fract): Make register numbers that
9709 might be outside of source operand signed.
9711 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
9713 * config/i386/constraints.md (Yf): New constraint.
9714 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
9715 of f constraint to conditionaly disable x87 register preferences.
9716 (*movdf_internal): Ditto.
9717 (*movsf_internal): Ditto.
9719 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
9722 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
9723 that have operands with impossible constraints.
9724 Add a FIXME for a speed-up opportunity.
9725 * lra-constraints.c (process_alt_operands): Verify that a class
9726 selected from constraints on asms is valid for the operand mode.
9727 (curr_insn_transform): Remove incorrect comment.
9729 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
9731 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
9732 TOC operand is a valid symbol ref in the constant pool.
9734 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9736 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
9738 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
9741 * config/avr/stdfix.h: New file.
9742 * t-avr (stdfix-gcc.h): New rule to build it.
9743 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
9745 2013-01-23 Kostya Serebryany <kcc@google.com>
9747 * config/darwin.h: remove dependency on
9748 CoreFoundation (asan on Mac OS).
9750 2013-01-23 Jakub Jelinek <jakub@redhat.com>
9753 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
9754 instead of cmpdi_operand for first comparison operand.
9755 Don't assert that comparison operands aren't both constants.
9757 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9759 * doc/install.texi (Downloading the Source): Update references to
9760 downloading separate components.
9762 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9764 * doc/extend.texi (__int128): Improve grammar.
9766 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
9769 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
9770 alternative to (o,r).
9771 (*movdi_internal_rex64): Remove (!o,n) alternative.
9772 (DImode immediate->memory splitter): Remove.
9773 (DImode immediate->memory peephole2): Remove.
9774 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
9775 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
9776 alternative to (!o,*r).
9777 (*movtf_internal_sse): New pattern.
9778 (*movxf_internal_rex64): New pattern.
9779 (*movxf_internal): Disable for TARGET_64BIT.
9780 (*movdf_internal_rex64): Remove (!o,F) alternative.
9782 2013-01-22 Jakub Jelinek <jakub@redhat.com>
9785 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
9786 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
9787 * tree-vect-loop-manip.c (find_loop_location): Also ignore
9788 stmt locations where LOCATION_LOCUS of the stmt location is
9789 UNKNOWN_LOCATION or BUILTINS_LOCATION.
9792 * config/i386/i386.md (UNSPEC_STOS): New.
9793 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
9794 *strsetqi_1): Add UNSPEC_STOS.
9796 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
9799 * doc/invoke.texi: Remove left over -Wsynth example.
9801 2013-01-21 Jakub Jelinek <jakub@redhat.com>
9803 PR tree-optimization/56051
9804 * fold-const.c (fold_binary_loc): Don't fold
9805 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
9806 a narrowing conversion, or widening conversion from signed
9809 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
9811 PR rtl-optimization/56023
9812 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
9813 dependent on debug instruction.
9815 2013-01-21 Martin Jambor <mjambor@suse.cz>
9818 * function.c (allocate_struct_function): Call
9819 invoke_set_current_function_hook earlier.
9821 2013-01-21 Jakub Jelinek <jakub@redhat.com>
9823 * reload1.c (init_reload): Only initialize reload_obstack
9824 during the first call.
9826 2013-01-21 Marek Polacek <polacek@redhat.com>
9828 * cfgloop.c (verify_loop_structure): Fix up grammar.
9830 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
9832 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
9833 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
9835 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9838 * config/arm/marvell-pj4.md: Update copyright year.
9839 Fix up use of alu to alu_reg and simple_alu_imm.
9841 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
9843 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
9845 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
9848 * lra-constraints.c (curr_insn_transform): Don't reuse original
9849 insn for secondary memory move when memory mode should be different.
9851 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9853 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
9854 atomic_storedi_1): New patterns.
9856 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9858 btver2 pipeline descriptions.
9859 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
9861 * config/i386/i386.md (btver2_decode): New type attributes.
9862 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
9864 * config/i386/btver2.md: New file describing btver2 pipelines.
9866 2013-01-19 Andrew Pinski <apinski@cavium.com>
9868 PR tree-optimization/52631
9869 * tree-ssa-sccvn (visit_use): Before looking up the original
9870 statement, try looking up the simplified expression.
9872 2013-01-19 Anthony Green <green@moxielogic.com>
9874 * config/moxie/moxie.c (moxie_expand_prologue): Set
9875 current_function_static_stack_size.
9877 2013-01-18 Jakub Jelinek <jakub@redhat.com>
9879 PR tree-optimization/56029
9880 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
9881 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
9883 2013-01-18 Sharad Singhai <singhai@google.com>
9885 PR tree-optimization/55995
9886 * dumpfile.c (dump_loc): Print location only if available.
9887 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
9889 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
9892 * lra-constraints.c (curr_insn_transform): Reuse original insn for
9893 secondary memory move.
9894 (inherit_reload_reg): Use rclass instead of cl for
9895 check_secondary_memory_needed_p.
9897 2013-01-18 Jakub Jelinek <jakub@redhat.com>
9900 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
9901 the case where writing real complex part of target modifies op1.
9903 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
9905 * config/aarch64/aarch64-simd.md
9906 (aarch64_vcond_internal<mode>): Handle unordered cases.
9907 * config/aarch64/iterators.md (v_cmp_result): New.
9909 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
9910 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9912 * config/arm/marvell-pj4.md: New file.
9913 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
9914 * config/arm/arm.md (generic_sched): Add marvell_pj4.
9915 (generic_vfp): Likewise.
9916 * config/arm/arm-cores.def: Add marvell-pj4.
9917 * config/arm/arm-tune.md: Regenerate.
9918 * config/arm/arm-tables.opt: Regenerate.
9919 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9920 * doc/invoke.texi: Document marvell-pj4.
9922 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
9924 * config/aarch64/arm_neon.h: Map scalar types to standard types.
9926 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9931 * var-tracking.c (negative_power_of_two_p): New.
9932 (global_get_addr_cache, local_get_addr_cache): New.
9933 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9934 (vt_canonicalize_addr): Rewrite using the above. Adjust the
9936 (vt_stack_offset_p): Remove.
9937 (vt_canon_true_dep): Always canonicalize loc's address.
9938 (clobber_overlapping_mems): Make sure we have a MEM.
9939 (local_get_addr_clear_given_value): New.
9940 (val_reset): Clear local cached entries.
9941 (compute_bb_dataflow): Create and release the local cache.
9942 Disable duplicate MEMs clobbering.
9943 (emit_notes_in_bb): Clobber MEMs likewise.
9944 (vt_emit_notes): Create and release the local cache.
9945 (vt_initialize, vt_finalize): Create and release the global
9946 cache, respectively.
9947 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
9949 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9952 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9953 not found in the symtab.
9955 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9958 PR rtl-optimization/55547
9959 PR rtl-optimization/53827
9962 * alias.c (offset_overlap_p): New, factored out of...
9963 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
9964 the conservative special case for symbolic constants. Don't
9965 adjust zero sizes on alignment.
9967 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
9969 PR rtl-optimization/52573
9970 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9971 REG_UNUSED for the same register.
9973 2013-01-17 Richard Biener <rguenther@suse.de>
9974 Marek Polacek <polacek@redhat.com>
9976 PR rtl-optimization/55833
9977 * loop-unswitch.c (unswitch_loops): Move loop verification...
9978 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
9979 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9980 Set it to true when we're removing a loop from hierarchy tree in
9981 an irreducible region.
9982 (fix_bb_placements): Adjust caller.
9983 (fix_loop_placements): Likewise.
9985 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
9987 * config/avr/builtins.def (DEF_BUILTIN): Factor out
9988 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9989 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9990 Remove ID. Adjust comments.
9991 * config/avr/avr-c.c (avr_builtin_name): Remove.
9992 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9993 * config/avr/avr.c (avr_tolower): New static function.
9994 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
9995 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9996 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9999 2013-01-17 Jan Hubicka <jh@suse.cz>
10001 PR tree-optimization/55273
10002 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10004 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
10007 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10008 store through atomic_store<mode>_1.
10009 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10011 2013-01-17 Martin Jambor <mjambor@suse.cz>
10013 PR tree-optimizations/55264
10014 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10015 for virtual methods.
10016 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10017 virtual methods before inlining is over.
10018 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10020 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10023 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10025 PR rtl-optimization/56005
10026 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10027 pending reads for prefetch.
10029 2013-01-16 Ian Bolton <ian.bolton@arm.com>
10031 * config/aarch64/aarch64.md
10032 (*cstoresi_neg_uxtw): New pattern.
10033 (*cmovsi_insn_uxtw): New pattern.
10034 (*<optab>si3_uxtw): New pattern.
10035 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10036 (*<optab>si3_insn_uxtw): New pattern.
10037 (*bswapsi2_uxtw): New pattern.
10039 2013-01-16 Richard Biener <rguenther@suse.de>
10041 * tree-inline.c (tree_function_versioning): Remove set but
10042 never used variable.
10044 2013-01-16 Richard Biener <rguenther@suse.de>
10046 PR tree-optimization/55964
10047 * tree-flow.h (rename_variables_in_loop): Remove.
10048 (rename_variables_in_bb): Likewise.
10049 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10050 (copy_loop_before): Adjust and delete update-ssa status.
10051 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
10052 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
10053 (rename_variables_in_loop): Remove.
10054 (slpeel_update_phis_for_duplicate_loop): Likewise.
10055 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10056 use available cfg machinery instead of duplicating it.
10057 Update PHI nodes and perform poor-mans SSA update here.
10058 (slpeel_tree_peel_loop_to_edge): Adjust.
10060 2013-01-16 Richard Biener <rguenther@suse.de>
10062 PR tree-optimization/54767
10063 PR tree-optimization/53465
10064 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10065 (vrp_visit_phi_node): For PHI arguments coming via backedges
10066 drop all symbolical range information.
10067 (execute_vrp): Compute backedges.
10069 2013-01-16 Richard Biener <rguenther@suse.de>
10071 * doc/install.texi: Update CLooG and ISL requirements to
10074 2013-01-16 Christian Bruel <christian.bruel@st.com>
10077 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10078 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10079 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10081 2013-01-16 DJ Delorie <dj@redhat.com>
10083 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10084 (UNSPECV_SP_SWITCH_E): New.
10085 (sp_switch_1): Change to an unspec.
10086 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10089 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
10091 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10092 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10093 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10094 (expand_mem_thread_fence): Ditto.
10095 (expand_mem_signal_fence): Ditto.
10096 (expand_atomic_load): Ditto.
10097 (expand_atomic_store): Ditto.
10099 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
10101 PR rtl-optimization/55547
10102 PR rtl-optimization/53827
10105 * alias.c (memrefs_conflict_p): Set sizes to negative after
10108 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10111 * function.c (thread_prologue_and_epilogue_insns): Always
10112 add crtl->drap_reg to set_up_by_prologue.set, even if
10113 stack_realign_drap is false.
10115 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10117 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10118 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10119 *call): Fix indention.
10121 2013-01-15 Tom de Vries <tom@codesourcery.com>
10124 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10127 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10129 PR rtl-optimization/55153
10130 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10132 2013-01-15 Martin Jambor <mjambor@suse.cz>
10134 PR tree-optimization/55920
10135 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10136 accesses as grp_to_be_debug_replaced.
10138 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10140 PR tree-optimization/55920
10141 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10142 there is non-useless type conversion needed from debug rhs to lhs,
10143 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10145 2013-01-15 Joseph Myers <joseph@codesourcery.com>
10146 Mikael Pettersson <mikpe@it.uu.se>
10149 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10151 (ASM_OUTPUT_CASE_LABEL): Remove.
10152 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10153 * final.c (shorten_branches): Update alignment of labels before
10154 jump tables if CASE_VECTOR_SHORTEN_MODE.
10156 2013-01-15 Richard Biener <rguenther@suse.de>
10159 * system.h: Do not include gmp.h for building host tools.
10161 2013-01-15 Richard Biener <rguenther@suse.de>
10163 PR middle-end/55882
10164 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10165 account for bitpos when computing alignment.
10167 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10169 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10170 (ix86_target_macros_internal): Likewise.
10172 * config/i386/i386.c (m_CORE2I7): Removed.
10173 (m_CORE_HASWELL): New macro.
10174 (m_CORE_ALL): Likewise.
10175 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10176 (initial_ix86_arch_features): Likewise.
10177 (processor_target_table): Initializations for Core avx2.
10178 (cpu_names): New names "core-avx2".
10179 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10180 PROCESSOR_CORE_HASWELL.
10181 (ix86_issue_rate): New case.
10182 (ia32_multipass_dfa_lookahead): Likewise.
10183 (ix86_sched_init_global): Likewise.
10185 * config/i386/i386.h (TARGET_HASWELL): New macro.
10186 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10187 (processor_type): New PROCESSOR_HASWELL.
10189 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10191 PR tree-optimization/55955
10192 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10193 *SHIFT_EXPR and *ROTATE_EXPR codes.
10195 PR tree-optimization/48766
10196 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10197 -ftrapv disable -fwrapv.
10199 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10202 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10203 etc. to 1 and not to __flash.
10204 Use LL suffix for __INT24_MAX__ with -mint8.
10205 Use ULL suffix for __UINT24_MAX__ with -mint8.
10207 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10209 * config/avr/avr-arch.h
10210 (struct base_arch_s): Use typedef avr_arch_t instead.
10211 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10212 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10213 * config/avr/avr.c: Same.
10214 * config/avr/avr-devices.c: Same.
10215 * config/avr/driver-avr.c: Same.
10216 * config/avr/gen-avr-mmcu-texi.c: Same.
10217 * config/avr/avr-mcus.def: Adjust comment.
10219 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10221 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10222 * config/aarch64/iterators.md (VALLDI): New.
10224 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
10225 Andi Kleen <ak@linux.intel.com>
10228 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10229 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10232 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10234 * config/avr/avr-stdint.h: Remove trailing blanks.
10235 * config/avr/avr-log.h: Same.
10236 * config/avr/avr-arch.h: Same.
10237 * config/avr/avr-devices.c: Same.
10238 * config/avr/avr-dimode.md: Same.
10239 * config/avr/predicates.md: Same.
10240 * config/avr/avr-c.c: Same. And fix typo.
10242 * config/avr/avr-protos.h: Same. And:
10243 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10244 (init_cumulative_args): Rename to avr_init_cumulative_args.
10245 (expand_prologue): Rename to avr_expand_prologue.
10246 (expand_epilogue): Rename to avr_expand_epilogue.
10247 (adjust_insn_length): Rename to avr_adjust_insn_length.
10248 (notice_update_cc): Rename to avr_notice_update_cc.
10249 (final_prescan_insn): Rename to avr_final_prescan_insn.
10250 * config/avr/avr.c: Same.
10251 * config/avr/avr.h: Same.
10252 * config/avr/avr.md: Remove trailing blanks.
10253 (prologue): Use avr_expand_prologue.
10254 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10256 2013-01-14 Richard Biener <rguenther@suse.de>
10258 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10259 verify_location, collect_subblocks): New functions.
10260 (verify_gimple_in_cfg): Verify that locations only reference
10261 BLOCKs in the functions BLOCK tree.
10263 2013-01-14 Richard Biener <rguenther@suse.de>
10265 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10267 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10269 (insert_out_of_ssa_copy_on_edge): Likewise.
10270 (rewrite_close_phi_out_of_ssa): Likewise.
10271 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10273 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10274 propagated constants.
10275 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10278 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10280 * config/avr/avr-modes.def: Add GPL copyright notice.
10282 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
10284 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10285 MEMMODEL_MASK to determine memory model.
10286 (atomic_store<mode>): Ditto from operands[2].
10287 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10289 2013-01-13 Jakub Jelinek <jakub@redhat.com>
10292 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
10293 (fold_gimple_assign): Don't call unshare_expr here.
10294 (fold_ctor_reference): Call unshare_expr.
10296 2013-01-13 Terry Guo <terry.guo@arm.com>
10298 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10299 * doc/fragments.texi: Document MULTILIB_REUSE.
10300 * gcc.c (multilib_reuse): New internal spec.
10301 (set_multilib_dir): Also search multilib from multilib_reuse.
10302 * genmultilib (tmpmultilib3): Refactor code.
10303 (tmpmultilib4): Ditto.
10304 (multilib_reuse): New multilib argument.
10306 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10308 * Makefile.in: Update copyright.
10310 2013-01-12 Tom de Vries <tom@codesourcery.com>
10312 PR middle-end/55890
10313 * calls.c (expand_call): Check if arg_nr is valid.
10315 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10317 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10318 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
10319 documentation. Add missing '__' in front of
10320 __builtin_ia32_packssdw256.
10322 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10325 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10326 NO_REGS for larl operands.
10327 (s390_reload_larl_operand): Use s390_load_address instead of
10330 2013-01-11 Richard Biener <rguenther@suse.de>
10332 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10333 (verify_node_sharing): ... here.
10334 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10336 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10338 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10339 Substitute TREECHECKING.
10340 * configure: Regenerate.
10341 * Makefile.in (TREECHECKING): New.
10343 2013-01-11 Richard Guenther <rguenther@suse.de>
10345 PR tree-optimization/44061
10346 * tree-vrp.c (extract_range_basic): Compute zero as
10347 value-range for __builtin_constant_p of function parameters.
10349 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10351 Update copyright years.
10353 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10355 PR rtl-optimization/55672
10356 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10357 const to be eliminable.
10359 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
10361 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10362 * configure: Regenerate.
10364 2013-01-10 Richard Biener <rguenther@suse.de>
10366 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
10368 2013-01-10 Richard Biener <rguenther@suse.de>
10371 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10372 locations for virtual PHI arguments.
10373 (rewrite_update_phi_arguments): Likewise.
10375 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10377 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10380 2013-01-10 Jakub Jelinek <jakub@redhat.com>
10382 PR tree-optimization/55921
10383 * tree-complex.c (expand_complex_asm): New function.
10384 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10386 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10389 * config/s390/s390.c (s390_symref_operand_p)
10390 (s390_loadrelative_operand_p): Merge the two functions.
10391 (s390_check_qrst_address, print_operand_address): Add parameters
10392 to s390_loadrelative_operand_p invokation.
10393 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10394 (s390_reload_larl_operand, s390_secondary_reload): Use
10395 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10396 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10398 2013-01-09 Mike Stump <mikestump@comcast.net>
10400 * dse.c (record_store): Remove unnecessary assert.
10402 2013-01-09 Jan Hubicka <jh@suse.cz>
10404 PR tree-optimization/55569
10405 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10406 * cfgloop.h (scale_loop_profile): Likewise.
10408 2013-01-09 Jan Hubicka <jh@suse.cz>
10411 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10413 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10415 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10417 PR middle-end/55114
10418 * expr.h (maybe_emit_group_store): Declare.
10419 * expr.c (maybe_emit_group_store): New function.
10420 * builtins.c (expand_builtin_int_roundingfn): Call it.
10421 (expand_builtin_int_roundingfn_2): Likewise.
10423 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10425 PR rtl-optimization/55829
10426 * lra-constraints.c (match_reload): Add code for absent output.
10427 (curr_insn_transform): Add code for reloads of matched inputs
10430 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
10432 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
10433 attribute of movddup insn to DF.
10434 (*vec_interleave_lowv2df): Ditto.
10435 (vec_dupv2df): Ditto.
10437 2013-01-09 Jan Hubicka <jh@suse.cz>
10439 PR tree-optimiation/55875
10440 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
10441 EVERY_ITERATION parameter.
10442 (number_of_iterations_exit): Check if exit is executed every iteration.
10443 (idx_infer_loop_bounds): Similarly here.
10444 (n_of_executions_at_most): Simplify
10445 to only test for cases where statement is dominated by the
10446 particular bound; handle correctly the "postdominance" test.
10447 (scev_probably_wraps_p): Use max loop iterations info
10448 as a global bound first.
10450 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
10451 Nick Clifton <nickc@redhat.com>
10453 * config/v850/v850.md (cbranchsf4): New pattern.
10454 (cstoresf4): New pattern.
10455 (cbranchdf4): New pattern.
10456 (cstoredf4): New pattern.
10457 (movsicc): Disallow floating point comparisons.
10458 (cmpsf_le_insn): Fix order of operators.
10459 (cmpsf_lt_insn): Likewise.
10460 (cmpsf_eq_insn): Likewise.
10461 (cmpdf_le_insn): Likewise.
10462 (cmpdf_lt_insn): Likewise.
10463 (cmpdf_eq_insn): Likewise.
10464 (cmpsf_ge_insn): Use LE comparison.
10465 (cmpdf_ge_insn): Likewise.
10466 (cmpsf_gt_insn): Use LT comparison.
10467 (cmpdf_gt_insn): Likewise.
10468 (cmpsf_ne_insn): Delete pattern.
10469 (cmpdf_ne_insn): Delete pattern.
10470 * config/v850/v850.c (v850_gen_float_compare): Use
10471 gen_cmpdf_eq_insn for NE comparison.
10472 (v850_float_z_comparison_operator)
10473 (v850_float_nz_comparison_operator): Move from here ...
10474 * config/v850/predicates.md: ... to here. Move GT and GE
10475 comparisons into v850_float_z_comparison_operator.
10476 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
10478 (v850_float_nz_comparison_operator): Likewise.
10480 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10482 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
10483 with calls to gen_insvsi/gen_insvdi.
10485 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10487 * config/i386/i386.c (initial_ix86_tune_features): Set up
10488 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
10490 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
10491 Jakub Jelinek <jakub@redhat.com>
10493 PR tree-optimization/48189
10494 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
10495 If nitercst is 0, don't predict the exit edge.
10497 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10499 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
10500 in asm_fprintf with reg_names.
10501 (aarch64_print_operand_address): Likewise.
10502 (aarch64_return_addr): Likewise.
10503 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
10505 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10507 * config/pa/pa.h (VAL_U6_BITS_P): Define.
10508 (INT_U6_BITS): Likewise.
10509 * config/pa/predicates.md (uint6_operand): New predicate.
10510 (shift5_operand, shift6_operand): Likewise.
10511 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
10513 (lshrdi3): Use shift6_operand.
10514 (shrpsi4, shrpdi4): New insn patterns.
10515 (extzv): Delete expander.
10516 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
10517 predicates in unamed zero extract patterns. Tighten common constraint.
10518 (extv): Delete expander.
10519 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
10520 predicates in unamed sign extract patterns. Tighten common constraint.
10521 (insv): Delete expander.
10522 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
10523 predicates in unamed insert patterns. Tighten common constraint.
10524 Change uint32_operand predicate to uint6_operand predicate in unamed
10525 DImode pattern to insert constant values of type 1...1xxxx.
10527 2013-01-04 Jan Hubicka <jh@suse.cz>
10529 PR tree-optimization/55823
10530 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
10533 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10534 Uros Bizjak <ubizjak@gmail.com>
10536 PR rtl-optimization/55845
10537 * df-problems.c (can_move_insns_across): Stop scanning at
10538 volatile_insn_p source instruction or give up if
10539 across_from .. across_to range contains any volatile_insn_p
10542 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10544 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
10545 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
10547 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
10548 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
10550 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10553 * asan.c (asan_clear_shadow): New function.
10554 (asan_emit_stack_protection): Use it.
10556 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10558 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
10559 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
10560 with tab instead of space.
10562 2013-01-08 Nick Clifton <nickc@redhat.com>
10564 * config/rl78/rl78.c (rl78_expand_prologue): Always select
10565 register bank 0 at the start of an interrupt handler.
10566 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
10569 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10571 * config/aarch64/aarch64-simd.md
10572 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
10573 (aarch64_simd_bsl): Likewise.
10574 (aarch64_vcond_internal<mode>): Likewise.
10575 (vcond<mode><mode>): Likewise.
10576 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
10577 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
10579 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10581 * config/aarch64/aarch64-builtins.c
10582 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
10584 2013-01-08 Martin Jambor <mjambor@suse.cz>
10587 * tree-sra.c (analyze_access_subtree): Return true also after
10588 potentially creating a debug-only replacement.
10590 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10592 PR middle-end/55890
10593 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
10595 PR tree-optimization/54120
10596 * tree-vrp.c (range_fits_type_p): Don't allow
10597 src_precision < precision from signed vr to unsigned_p
10598 if vr->min or vr->max is negative.
10599 (simplify_float_conversion_using_ranges): Test can_float_p
10600 against CODE_FOR_nothing.
10602 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10603 Richard Biener <rguenther@suse.de>
10605 PR middle-end/55851
10606 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
10607 types instead of just INTEGER_TYPE types.
10609 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
10611 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
10614 2013-01-07 Steve Ellcey <sellcey@mips.com>
10617 * config/mips/mips.opt: Change mad to mmad to match documentation.
10619 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10622 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
10623 .progmemx.data now.
10625 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10628 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
10629 (avr_addrspace_t): Add .section_name field.
10630 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
10632 (avr_addrspace): Same. Initialize .section_name. Remove last
10633 NULL entry. Put __memx into .progmemx.data.
10634 (progmem_section_prefix): Remove.
10635 (avr_asm_init_sections): No need to initialize progmem_section.
10636 (avr_asm_named_section): Use avr_addrspace[].section_name to get
10637 section name prefix.
10638 (avr_asm_select_section): Ditto. And use get_unnamed_section to
10639 retrieve the progmem section.
10640 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
10641 boundary to run over avr_addrspace[].
10642 (avr_register_target_pragmas): Ditto.
10644 2013-01-06 Jakub Jelinek <jakub@redhat.com>
10646 * varasm.c (output_constant_def_contents): For asan_protect_global
10647 protected strings, adjust DECL_ALIGN if needed, before testing for
10649 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
10650 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
10652 (output_object_block): For asan protected decls, emit asan padding
10653 after their contents.
10654 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
10655 (asan_finish_file): Test it here instead.
10657 2013-01-07 Nick Clifton <nickc@redhat.com>
10658 Matthias Klose <doko@debian.org>
10659 Doug Kwan <dougkwan@google.com>
10660 H.J. Lu <hongjiu.lu@intel.com>
10663 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
10665 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
10667 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
10669 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
10671 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
10673 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10676 * doc/install.texi (Cross-Compiler-Specific Options): Document
10679 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
10681 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
10682 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
10683 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
10684 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
10685 vqmovun_high_s64): Fix source operand number and update copyright.
10687 2013-01-07 Richard Biener <rguenther@suse.de>
10689 PR middle-end/55890
10690 * gimple.h (gimple_call_builtin_p): New overload.
10691 * gimple.c (validate_call): New function.
10692 (gimple_call_builtin_p): Likewise.
10693 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10694 Use gimple_call_builtin_p.
10695 (find_func_clobbers): Likewise.
10696 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
10697 (strlen_optimize_stmt): Likewise.
10699 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10701 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
10702 (vld1q_dup_*): Likewise.
10703 (vld1_*): Likewise.
10704 (vld1q_*): Likewise.
10705 (vld1_lane_*): Likewise.
10706 (vld1q_lane_*): Likewise.
10708 2013-01-07 Richard Biener <rguenther@suse.de>
10710 * lto-streamer.h (LTO_minor_version): Bump to 2.
10712 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10714 * config/aarch64/aarch64-protos.h
10715 (aarch64_const_double_zero_rtx_p): Rename to...
10716 (aarch64_float_const_zero_rtx_p): ...this.
10717 (aarch64_float_const_representable_p): New.
10718 (aarch64_output_simd_mov_immediate): Likewise.
10719 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
10720 move immediate case.
10721 * config/aarch64/aarch64.c
10722 (aarch64_const_double_zero_rtx_p): Rename to...
10723 (aarch64_float_const_zero_rtx_p): ...this.
10724 (aarch64_print_operand): Allow printing of new constants.
10725 (aarch64_valid_floating_const): New.
10726 (aarch64_legitimate_constant_p): Check for valid floating-point
10728 (aarch64_simd_valid_immediate): Likewise.
10729 (aarch64_vect_float_const_representable_p): New.
10730 (aarch64_float_const_representable_p): Likewise.
10731 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
10732 (aarch64_output_simd_mov_immediate): New.
10733 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
10734 (*movdf_aarch64): Likewise.
10735 * config/aarch64/constraints.md (Ufc): New.
10736 (Y): call aarch64_float_const_zero_rtx.
10737 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
10739 2013-01-07 Richard Biener <rguenther@suse.de>
10741 PR tree-optimization/55888
10742 PR tree-optimization/55862
10743 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
10744 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
10745 not if it is contained therein.
10747 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10749 * config/avr/t-avr: Typo.
10751 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10754 * config/avr/t-avr: Don't automatically rebuild
10755 $(srcdir)/config/avr/t-multilib
10756 $(srcdir)/config/avr/avr-tables.opt
10757 $(srcdir)/doc/avr-mmcu.texi
10758 (avr-mcus): New phony target to build them on request.
10759 (s-avr-mlib, s-avr-mmcu-texi): Remove.
10760 * avr/avr-mcus.def: Adjust comments.
10762 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
10764 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
10766 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10768 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
10770 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10772 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
10774 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
10776 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
10777 to generate profiling.
10778 * config/rs6000/aix64.h (LIB_SPEC): Same.
10780 2013-01-04 Andrew Pinski <apinski@cavium.com>
10782 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
10784 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10786 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
10788 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
10790 (ix86_expand_move): Ditto.
10791 (ix86_zero_extend_to_Pmode): Ditto.
10792 (ix86_expand_call): Ditto.
10793 (ix86_expand_special_args_builtin): Ditto.
10794 (ix86_expand_builtin): Ditto.
10796 2013-01-04 Richard Biener <rguenther@suse.de>
10798 PR tree-optimization/55862
10799 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
10800 translating them through PHI nodes.
10802 2013-01-04 Martin Jambor <mjambor@suse.cz>
10804 PR tree-optimization/55755
10805 * tree-sra.c (sra_modify_assign): Do not check that an access has no
10806 children when trying to avoid producing a VIEW_CONVERT_EXPR.
10808 2013-01-04 Marek Polacek <polacek@redhat.com>
10810 PR middle-end/55859
10811 * opts.c (default_options_optimization): Clarify error message.
10813 2013-01-04 Richard Biener <rguenther@suse.de>
10815 PR middle-end/55863
10816 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
10819 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10822 * config/pa/pa.md (movsi): Revert previous change.
10823 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
10826 2013-01-03 Richard Henderson <rth@redhat.com>
10828 * config/i386/i386.c (ix86_expand_move): Always assign to op1
10829 after eliminating TLS symbols.
10831 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
10834 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
10835 * graphite-poly.c (debug_gmp_value): Likewise.
10837 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
10840 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
10841 selected code model, define __code_mode_small__, __code_model_medium__,
10842 __code_model_large__, __code_model_32__ or __code_model_kernel__.
10843 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
10844 xchg temporary register with %k. Declare temporary register as
10846 [__x86_64__]: For medium and large code models, preserve %rbx register.
10848 2013-01-03 Richard Biener <rguenther@suse.de>
10850 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
10851 (dump_subscript): Adjust.
10852 (finalize_ddr_dependent): Do not dump redundant info.
10853 (analyze_siv_subscript): Adjust.
10854 (subscript_dependence_tester): Likewise.
10855 (compute_affine_dependence): Likewise.
10857 2013-01-03 Richard Biener <rguenther@suse.de>
10860 2013-01-03 Richard Biener <rguenther@suse.de>
10862 PR tree-optimization/55857
10863 * tree-vect-stmts.c (vectorizable_load): Do not setup
10864 re-alignment for invariant loads.
10866 2013-01-02 Richard Biener <rguenther@suse.de>
10868 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10869 invariant load do not generate a vector load from the scalar location.
10871 2013-01-03 Richard Biener <rguenther@suse.de>
10873 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
10874 for not vectorizing.
10875 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10876 not build INDIRECT_REFs, call get_name once only.
10877 (vect_create_data_ref_ptr): Likewise. Dump base object kind
10878 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
10880 2013-01-03 Richard Biener <rguenther@suse.de>
10882 PR tree-optimization/55857
10883 * tree-vect-stmts.c (vectorizable_load): Do not setup
10884 re-alignment for invariant loads.
10886 2013-01-03 Richard Biener <rguenther@suse.de>
10889 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
10890 prefer a built-in decl.
10892 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10894 * gcc.c (process_command): Update copyright notice dates.
10895 * gcov.c (print_version): Likewise.
10896 * gcov-dump.c (print_version): Likewise.
10898 PR rtl-optimization/55838
10899 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
10900 iv0.step, iv1.step and step.
10902 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10903 Marc Glisse <marc.glisse@inria.fr>
10905 PR tree-optimization/55832
10906 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
10907 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
10908 integer_{one,zero}_node.
10910 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10913 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
10914 * var-tracking.c (reverse_op): Don't add reverse ops to
10915 VALUEs that have already
10916 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
10918 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10920 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10922 2013-01-02 Teresa Johnson <tejohnson@google.com>
10924 * dumpfile.c (dump_loc): Print filename with location.
10925 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10926 new location_t parameter to emit complete unroll message with
10927 new dump framework.
10928 (canonicalize_loop_induction_variables): Compute loops location
10929 and pass to try_unroll_loop_completely.
10930 * loop-unroll.c (report_unroll_peel): New function.
10931 (peel_loops_completely): Use new dump format with location
10932 for main dumpfile message, and invoke report_unroll_peel on success.
10933 (decide_unrolling_and_peeling): Ditto.
10934 (decide_peel_once_rolling): Remove old dumpfile message subsumed
10935 by report_unroll_peel.
10936 (decide_peel_completely): Ditto.
10937 (decide_unroll_constant_iterations): Ditto.
10938 (decide_unroll_runtime_iterations): Ditto.
10939 (decide_peel_simple): Ditto.
10940 (decide_unroll_stupid): Ditto.
10941 * cfgloop.c (get_loop_location): New function.
10942 * cfgloop.h (get_loop_location): Declare.
10944 2013-01-02 Sriraman Tallam <tmsriram@google.com>
10946 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10949 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10951 PR middle-end/55198
10952 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10953 BLKmode objects when EXPAND_MEMORY is specified.
10955 2013-01-02 Sriraman Tallam <tmsriram@google.com>
10957 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10959 (fold_builtin_cpu): Do not share cpu model decls across statements.
10961 2013-01-02 Jason Merrill <jason@redhat.com>
10964 * tree.c (build_array_type_1): Revert earlier change.
10966 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
10968 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10970 * config/aarch64/aarch64-tune.md: Re-generate.
10972 2013-01-02 Richard Biener <rguenther@suse.de>
10974 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10975 invariant load do not generate a vector load from the scalar location.
10977 2013-01-02 Richard Biener <rguenther@suse.de>
10980 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10981 * configure: Regenerate.
10983 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10985 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10986 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10987 (expand_builtin_int_roundingfn_2): Keep the original target around
10988 for the fallback case.
10990 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10992 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10993 to be clear for sign changes.
10995 2013-01-01 Jan Hubicka <jh@suse.cz>
10997 * ipa-inline-analysis.c: Fix formatting.
10999 2013-01-01 Jakub Jelinek <jakub@redhat.com>
11001 PR tree-optimization/55831
11002 * tree-vect-loop.c (get_initial_def_for_induction): Use
11003 gsi_after_labels instead of gsi_start_bb.
11005 Copyright (C) 2013 Free Software Foundation, Inc.
11007 Copying and distribution of this file, with or without modification,
11008 are permitted in any medium without royalty provided the copyright
11009 notice and this notice are preserved.