1 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6 * var-tracking.c (negative_power_of_two_p): New.
7 (global_get_addr_cache, local_get_addr_cache): New.
8 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9 (vt_canonicalize_addr): Rewrite using the above. Adjust the
11 (vt_stack_offset_p): Remove.
12 (vt_canon_true_dep): Always canonicalize loc's address.
13 (clobber_overlapping_mems): Make sure we have a MEM.
14 (local_get_addr_clear_given_value): New.
15 (val_reset): Clear local cached entries.
16 (compute_bb_dataflow): Create and release the local cache.
17 Disable duplicate MEMs clobbering.
18 (emit_notes_in_bb): Clobber MEMs likewise.
19 (vt_emit_notes): Create and release the local cache.
20 (vt_initialize, vt_finalize): Create and release the global
22 * alias.c (rtx_equal_for_memref_p): Compare operands of
25 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
28 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
29 not found in the symtab.
31 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33 PR rtl-optimization/55547
34 PR rtl-optimization/53827
37 * alias.c (offset_overlap_p): New, factored out of...
38 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
39 the conservative special case for symbolic constants. Don't
40 adjust zero sizes on alignment.
42 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
44 PR rtl-optimization/52573
45 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
46 REG_UNUSED for the same register.
49 2013-01-17 Richard Biener <rguenther@suse.de>
50 Marek Polacek <polacek@redhat.com>
52 PR rtl-optimization/55833
53 * loop-unswitch.c (unswitch_loops): Move loop verification...
54 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
55 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
56 Set it to true when we're removing a loop from hierarchy tree in
57 an irreducible region.
58 (fix_bb_placements): Adjust caller.
59 (fix_loop_placements): Likewise.
61 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
63 * config/avr/builtins.def (DEF_BUILTIN): Factor out
64 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
65 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
66 Remove ID. Adjust comments.
67 * config/avr/avr-c.c (avr_builtin_name): Remove.
68 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
69 * config/avr/avr.c (avr_tolower): New static function.
70 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
71 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
72 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
75 2013-01-17 Jan Hubicka <jh@suse.cz>
77 PR tree-optimization/55273
78 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
80 2012-01-17 Uros Bizjak <ubizjak@gmail.com>
83 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
84 store through atomic_store<mode>_1.
85 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
87 2013-01-17 Martin Jambor <mjambor@suse.cz>
89 PR tree-optimizations/55264
90 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
92 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
93 virtual methods before inlining is over.
94 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
96 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
99 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
101 PR rtl-optimization/56005
102 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
103 pending reads for prefetch.
105 2013-01-16 Ian Bolton <ian.bolton@arm.com>
107 * gcc/config/aarch64/aarch64.md
108 (*cstoresi_neg_uxtw): New pattern.
109 (*cmovsi_insn_uxtw): New pattern.
110 (*<optab>si3_uxtw): New pattern.
111 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
112 (*<optab>si3_insn_uxtw): New pattern.
113 (*bswapsi2_uxtw): New pattern.
115 2013-01-16 Richard Biener <rguenther@suse.de>
117 * tree-inline.c (tree_function_versioning): Remove set but
120 2013-01-16 Richard Biener <rguenther@suse.de>
122 PR tree-optimization/55964
123 * tree-flow.h (rename_variables_in_loop): Remove.
124 (rename_variables_in_bb): Likewise.
125 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
126 (copy_loop_before): Adjust and delete update-ssa status.
127 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
128 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
129 (rename_variables_in_loop): Remove.
130 (slpeel_update_phis_for_duplicate_loop): Likewise.
131 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
132 use available cfg machinery instead of duplicating it.
133 Update PHI nodes and perform poor-mans SSA update here.
134 (slpeel_tree_peel_loop_to_edge): Adjust.
136 2013-01-16 Richard Biener <rguenther@suse.de>
138 PR tree-optimization/54767
139 PR tree-optimization/53465
140 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
141 (vrp_visit_phi_node): For PHI arguments coming via backedges
142 drop all symbolical range information.
143 (execute_vrp): Compute backedges.
145 2013-01-16 Richard Biener <rguenther@suse.de>
147 * doc/install.texi: Update CLooG and ISL requirements to
150 2013-01-16 Christian Bruel <christian.bruel@st.com>
153 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
154 (broken_move): Handle UNSPECV_SP_SWITCH_B.
155 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
157 2013-01-16 DJ Delorie <dj@redhat.com>
159 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
160 (UNSPECV_SP_SWITCH_E): New.
161 (sp_switch_1): Change to an unspec.
162 (sp_switch_2): Change to an unspec. Don't use post-inc when we
165 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
167 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
168 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
169 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
170 (expand_mem_thread_fence): Ditto.
171 (expand_mem_signal_fence): Ditto.
172 (expand_atomic_load): Ditto.
173 (expand_atomic_store): Ditto.
175 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
177 PR rtl-optimization/55547
178 PR rtl-optimization/53827
181 * alias.c (memrefs_conflict_p): Set sizes to negative after
184 2013-01-15 Jakub Jelinek <jakub@redhat.com>
187 * function.c (thread_prologue_and_epilogue_insns): Always
188 add crtl->drap_reg to set_up_by_prologue.set, even if
189 stack_realign_drap is false.
191 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
193 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
194 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
195 *call): Fix indention.
197 2013-01-15 Tom de Vries <tom@codesourcery.com>
200 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
203 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
205 PR rtl-optimization/55153
206 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
208 2013-01-15 Martin Jambor <mjambor@suse.cz>
210 PR tree-optimization/55920
211 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
212 accesses as grp_to_be_debug_replaced.
214 2013-01-15 Jakub Jelinek <jakub@redhat.com>
216 PR tree-optimization/55920
217 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
218 there is non-useless type conversion needed from debug rhs to lhs,
219 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
221 2013-01-15 Joseph Myers <joseph@codesourcery.com>
222 Mikael Pettersson <mikpe@it.uu.se>
225 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
227 (ASM_OUTPUT_CASE_LABEL): Remove.
228 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
229 * final.c (shorten_branches): Update alignment of labels before
230 jump tables if CASE_VECTOR_SHORTEN_MODE.
232 2013-01-15 Richard Biener <rguenther@suse.de>
235 * system.h: Do not include gmp.h for building host tools.
237 2013-01-15 Richard Biener <rguenther@suse.de>
240 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
241 account for bitpos when computing alignment.
243 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
245 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
246 (ix86_target_macros_internal): Likewise.
248 * config/i386/i386.c (m_CORE2I7): Removed.
249 (m_CORE_HASWELL): New macro.
250 (m_CORE_ALL): Likewise.
251 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
252 (initial_ix86_arch_features): Likewise.
253 (processor_target_table): Initializations for Core avx2.
254 (cpu_names): New names "core-avx2".
255 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
256 PROCESSOR_CORE_HASWELL.
257 (ix86_issue_rate): New case.
258 (ia32_multipass_dfa_lookahead): Likewise.
259 (ix86_sched_init_global): Likewise.
261 * config/i386/i386.h (TARGET_HASWELL): New macro.
262 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
263 (processor_type): New PROCESSOR_HASWELL.
265 2013-01-15 Jakub Jelinek <jakub@redhat.com>
267 PR tree-optimization/55955
268 * tree-vect-loop.c (vectorizable_reduction): Give up early on
269 *SHIFT_EXPR and *ROTATE_EXPR codes.
271 PR tree-optimization/48766
272 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
273 -ftrapv disable -fwrapv.
275 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
278 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
279 etc. to 1 and not to __flash.
280 Use LL suffix for __INT24_MAX__ with -mint8.
281 Use ULL suffix for __UINT24_MAX__ with -mint8.
283 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
285 * config/avr/avr-arch.h
286 (struct base_arch_s): Use typedef avr_arch_t instead.
287 (struct arch_info_s): Use typedef avr_arch_info_t instead.
288 (struct mcu_type_s): Use typedef avr_mcu_t instead.
289 * config/avr/avr.c: Same.
290 * config/avr/avr-devices.c: Same.
291 * config/avr/driver-avr.c: Same.
292 * config/avr/gen-avr-mmcu-texi.c: Same.
293 * config/avr/avr-mcus.def: Adjust comment.
295 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
297 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
298 * config/aarch64/iterators.md (VALLDI): New.
300 2012-01-14 Uros Bizjak <ubizjak@gmail.com>
301 Andi Kleen <ak@linux.intel.com>
304 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
305 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
308 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
310 * config/avr/avr-stdint.h: Remove trailing blanks.
311 * config/avr/avr-log.h: Same.
312 * config/avr/avr-arch.h: Same.
313 * config/avr/avr-devices.c: Same.
314 * config/avr/avr-dimode.md: Same.
315 * config/avr/predicates.md: Same.
316 * config/avr/avr-c.c: Same. And fix typo.
318 * config/avr/avr-protos.h: Same. And:
319 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
320 (init_cumulative_args): Rename to avr_init_cumulative_args.
321 (expand_prologue): Rename to avr_expand_prologue.
322 (expand_epilogue): Rename to avr_expand_epilogue.
323 (adjust_insn_length): Rename to avr_adjust_insn_length.
324 (notice_update_cc): Rename to avr_notice_update_cc.
325 (final_prescan_insn): Rename to avr_final_prescan_insn.
326 * config/avr/avr.c: Same.
327 * config/avr/avr.h: Same.
328 * config/avr/avr.md: Remove trailing blanks.
329 (prologue): Use avr_expand_prologue.
330 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
332 2013-01-14 Richard Biener <rguenther@suse.de>
334 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
335 verify_location, collect_subblocks): New functions.
336 (verify_gimple_in_cfg): Verify that locations only reference
337 BLOCKs in the functions BLOCK tree.
339 2013-01-14 Richard Biener <rguenther@suse.de>
341 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
343 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
345 (insert_out_of_ssa_copy_on_edge): Likewise.
346 (rewrite_close_phi_out_of_ssa): Likewise.
347 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
349 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
350 propagated constants.
351 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
354 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
356 * config/avr/avr-modes.def: Add GPL copyright notice.
358 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
360 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
361 MEMMODEL_MASK to determine memory model.
362 (atomic_store<mode>): Ditto from operands[2].
363 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
365 2013-01-13 Jakub Jelinek <jakub@redhat.com>
368 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
369 (fold_gimple_assign): Don't call unshare_expr here.
370 (fold_ctor_reference): Call unshare_expr.
372 2013-01-13 Terry Guo <terry.guo@arm.com>
374 * gcc/Makefile.in (s-mlib): New argument MULTILIB_REUSE.
375 * gcc/doc/fragments.texi: Document MULTILIB_REUSE.
376 * gcc/gcc.c (multilib_reuse): New internal spec.
377 (set_multilib_dir): Also search multilib from multilib_reuse.
378 * gcc/genmultilib (tmpmultilib3): Refactor code.
379 (tmpmultilib4): Ditto.
380 (multilib_reuse): New multilib argument.
382 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
384 * Makefile.in: Update copyright.
386 2013-01-12 Tom de Vries <tom@codesourcery.com>
389 * calls.c (expand_call): Check if arg_nr is valid.
391 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
393 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
394 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
395 documentation. Add missing '__' in front of
396 __builtin_ia32_packssdw256.
398 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
401 * config/s390/s390.c (s390_preferred_reload_class): Do not return
402 NO_REGS for larl operands.
403 (s390_reload_larl_operand): Use s390_load_address instead of
406 2013-01-11 Richard Biener <rguenther@suse.de>
408 * tree-cfg.c (verify_node_sharing_1): Split out from ...
409 (verify_node_sharing): ... here.
410 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
412 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
414 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
415 Substitute TREECHECKING.
416 * configure: Regenerate.
417 * Makefile.in (TREECHECKING): New.
419 2012-01-11 Richard Guenther <rguenther@suse.de>
421 PR tree-optimization/44061
422 * tree-vrp.c (extract_range_basic): Compute zero as
423 value-range for __builtin_constant_p of function parameters.
425 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
427 Update copyright years.
429 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
431 PR rtl-optimization/55672
432 * lra-eliminations.c (mark_not_eliminable): Permit addition with
433 const to be eliminable.
435 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
437 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
438 * configure: Regenerate.
440 2013-01-10 Richard Biener <rguenther@suse.de>
442 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
444 2013-01-10 Richard Biener <rguenther@suse.de>
447 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
448 locations for virtual PHI arguments.
449 (rewrite_update_phi_arguments): Likewise.
451 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
453 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
456 2013-01-10 Jakub Jelinek <jakub@redhat.com>
458 PR tree-optimization/55921
459 * tree-complex.c (expand_complex_asm): New function.
460 (expand_complex_operations_1): Call it for GIMPLE_ASM.
462 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
465 * config/s390/s390.c (s390_symref_operand_p)
466 (s390_loadrelative_operand_p): Merge the two functions.
467 (s390_check_qrst_address, print_operand_address): Add parameters
468 to s390_loadrelative_operand_p invokation.
469 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
470 (s390_reload_larl_operand, s390_secondary_reload): Use
471 s390_loadrelative_operand_p instead of s390_symref_operand_p.
472 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
474 2013-01-09 Mike Stump <mikestump@comcast.net>
476 * dse.c (record_store): Remove unnecessary assert.
478 2013-01-09 Jan Hubicka <jh@suse.cz>
480 PR tree-optimization/55569
481 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
482 * cfgloop.h (scale_loop_profile): Likewise.
484 2013-01-09 Jan Hubicka <jh@suse.cz>
487 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
489 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
491 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
494 * expr.h (maybe_emit_group_store): Declare.
495 * expr.c (maybe_emit_group_store): New function.
496 * builtins.c (expand_builtin_int_roundingfn): Call it.
497 (expand_builtin_int_roundingfn_2): Likewise.
499 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
501 PR rtl-optimization/55829
502 * lra-constraints.c (match_reload): Add code for absent output.
503 (curr_insn_transform): Add code for reloads of matched inputs
506 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
508 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
509 attribute of movddup insn to DF.
510 (*vec_interleave_lowv2df): Ditto.
511 (vec_dupv2df): Ditto.
513 2013-01-09 Jan Hubicka <jh@suse.cz>
515 PR tree-optimiation/55875
516 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
517 EVERY_ITERATION parameter.
518 (number_of_iterations_exit): Check if exit is executed every iteration.
519 (idx_infer_loop_bounds): Similarly here.
520 (n_of_executions_at_most): Simplify
521 to only test for cases where statement is dominated by the
522 particular bound; handle correctly the "postdominance" test.
523 (scev_probably_wraps_p): Use max loop iterations info
524 as a global bound first.
526 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
527 Nick Clifton <nickc@redhat.com>
529 * config/v850/v850.md (cbranchsf4): New pattern.
530 (cstoresf4): New pattern.
531 (cbranchdf4): New pattern.
532 (cstoredf4): New pattern.
533 (movsicc): Disallow floating point comparisons.
534 (cmpsf_le_insn): Fix order of operators.
535 (cmpsf_lt_insn): Likewise.
536 (cmpsf_eq_insn): Likewise.
537 (cmpdf_le_insn): Likewise.
538 (cmpdf_lt_insn): Likewise.
539 (cmpdf_eq_insn): Likewise.
540 (cmpsf_ge_insn): Use LE comparison.
541 (cmpdf_ge_insn): Likewise.
542 (cmpsf_gt_insn): Use LT comparison.
543 (cmpdf_gt_insn): Likewise.
544 (cmpsf_ne_insn): Delete pattern.
545 (cmpdf_ne_insn): Delete pattern.
546 * config/v850/v850.c (v850_gen_float_compare): Use
547 gen_cmpdf_eq_insn for NE comparison.
548 (v850_float_z_comparison_operator)
549 (v850_float_nz_comparison_operator): Move from here ...
550 * config/v850/predicates.md: ... to here. Move GT and GE
551 comparisons into v850_float_z_comparison_operator.
552 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
554 (v850_float_nz_comparison_operator): Likewise.
556 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
558 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
559 with calls to gen_insvsi/gen_insvdi.
561 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
563 * config/i386/i386.c (initial_ix86_tune_features): Set up
564 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
566 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
567 Jakub Jelinek <jakub@redhat.com>
569 PR tree-optimization/48189
570 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
571 If nitercst is 0, don't predict the exit edge.
573 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
575 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
576 in asm_fprintf with reg_names.
577 (aarch64_print_operand_address): Likewise.
578 (aarch64_return_addr): Likewise.
579 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
581 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
583 * config/pa/pa.h (VAL_U6_BITS_P): Define.
584 (INT_U6_BITS): Likewise.
585 * config/pa/predicates.md (uint6_operand): New predicate.
586 (shift5_operand, shift6_operand): Likewise.
587 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
589 (lshrdi3): Use shift6_operand.
590 (shrpsi4, shrpdi4): New insn patterns.
591 (extzv): Delete expander.
592 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
593 predicates in unamed zero extract patterns. Tighten common constraint.
594 (extv): Delete expander.
595 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
596 predicates in unamed sign extract patterns. Tighten common constraint.
597 (insv): Delete expander.
598 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
599 predicates in unamed insert patterns. Tighten common constraint.
600 Change uint32_operand predicate to uint6_operand predicate in unamed
601 DImode pattern to insert constant values of type 1...1xxxx.
603 2013-01-04 Jan Hubicka <jh@suse.cz>
605 PR tree-optimization/55823
606 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
609 2012-01-08 Jakub Jelinek <jakub@redhat.com>
610 Uros Bizjak <ubizjak@gmail.com>
612 PR rtl-optimization/55845
613 * df-problems.c (can_move_insns_across): Stop scanning at
614 volatile_insn_p source instruction or give up if
615 across_from .. across_to range contains any volatile_insn_p
618 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
620 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
621 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
623 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
624 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
626 2013-01-08 Jakub Jelinek <jakub@redhat.com>
629 * asan.c (asan_clear_shadow): New function.
630 (asan_emit_stack_protection): Use it.
632 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
634 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
635 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
636 with tab instead of space.
638 2013-01-08 Nick Clifton <nickc@redhat.com>
640 * config/rl78/rl78.c (rl78_expand_prologue): Always select
641 register bank 0 at the start of an interrupt handler.
642 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
645 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
647 * config/aarch64/aarch64-simd.md
648 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
649 (aarch64_simd_bsl): Likewise.
650 (aarch64_vcond_internal<mode>): Likewise.
651 (vcond<mode><mode>): Likewise.
652 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
653 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
655 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
657 * config/aarch64/aarch64-builtins.c
658 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
660 2013-01-08 Martin Jambor <mjambor@suse.cz>
663 * tree-sra.c (analyze_access_subtree): Return true also after
664 potentially creating a debug-only replacement.
666 2013-01-08 Jakub Jelinek <jakub@redhat.com>
669 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
671 PR tree-optimization/54120
672 * tree-vrp.c (range_fits_type_p): Don't allow
673 src_precision < precision from signed vr to unsigned_p
674 if vr->min or vr->max is negative.
675 (simplify_float_conversion_using_ranges): Test can_float_p
676 against CODE_FOR_nothing.
678 2013-01-08 Jakub Jelinek <jakub@redhat.com>
679 Richard Biener <rguenther@suse.de>
682 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
683 types instead of just INTEGER_TYPE types.
685 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
687 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
690 2013-01-07 Steve Ellcey <sellcey@mips.com>
693 * config/mips/mips.opt: Change mad to mmad to match documentation.
695 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
698 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
701 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
704 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
705 (avr_addrspace_t): Add .section_name field.
706 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
708 (avr_addrspace): Same. Initialize .section_name. Remove last
709 NULL entry. Put __memx into .progmemx.data.
710 (progmem_section_prefix): Remove.
711 (avr_asm_init_sections): No need to initialize progmem_section.
712 (avr_asm_named_section): Use avr_addrspace[].section_name to get
714 (avr_asm_select_section): Ditto. And use get_unnamed_section to
715 retrieve the progmem section.
716 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
717 boundary to run over avr_addrspace[].
718 (avr_register_target_pragmas): Ditto.
720 2013-01-06 Jakub Jelinek <jakub@redhat.com>
722 * varasm.c (output_constant_def_contents): For asan_protect_global
723 protected strings, adjust DECL_ALIGN if needed, before testing for
725 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
726 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
728 (output_object_block): For asan protected decls, emit asan padding
729 after their contents.
730 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
731 (asan_finish_file): Test it here instead.
733 2013-01-07 Nick Clifton <nickc@redhat.com>
734 Matthias Klose <doko@debian.org>
735 Doug Kwan <dougkwan@google.com>
736 H.J. Lu <hongjiu.lu@intel.com>
739 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
741 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
743 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
745 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
747 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
749 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
752 * doc/install.texi (Cross-Compiler-Specific Options): Document
755 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
757 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
758 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
759 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
760 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
761 vqmovun_high_s64): Fix source operand number and update copyright.
763 2013-01-07 Richard Biener <rguenther@suse.de>
766 * gimple.h (gimple_call_builtin_p): New overload.
767 * gimple.c (validate_call): New function.
768 (gimple_call_builtin_p): Likewise.
769 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
770 Use gimple_call_builtin_p.
771 (find_func_clobbers): Likewise.
772 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
773 (strlen_optimize_stmt): Likewise.
775 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
777 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
778 (vld1q_dup_*): Likewise.
781 (vld1_lane_*): Likewise.
782 (vld1q_lane_*): Likewise.
784 2013-01-07 Richard Biener <rguenther@suse.de>
786 * lto-streamer.h (LTO_minor_version): Bump to 2.
788 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
790 * config/aarch64/aarch64-protos.h
791 (aarch64_const_double_zero_rtx_p): Rename to...
792 (aarch64_float_const_zero_rtx_p): ...this.
793 (aarch64_float_const_representable_p): New.
794 (aarch64_output_simd_mov_immediate): Likewise.
795 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
797 * config/aarch64/aarch64.c
798 (aarch64_const_double_zero_rtx_p): Rename to...
799 (aarch64_float_const_zero_rtx_p): ...this.
800 (aarch64_print_operand): Allow printing of new constants.
801 (aarch64_valid_floating_const): New.
802 (aarch64_legitimate_constant_p): Check for valid floating-point
804 (aarch64_simd_valid_immediate): Likewise.
805 (aarch64_vect_float_const_representable_p): New.
806 (aarch64_float_const_representable_p): Likewise.
807 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
808 (aarch64_output_simd_mov_immediate): New.
809 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
810 (*movdf_aarch64): Likewise.
811 * config/aarch64/constraints.md (Ufc): New.
812 (Y): call aarch64_float_const_zero_rtx.
813 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
815 2013-01-07 Richard Biener <rguenther@suse.de>
817 PR tree-optimization/55888
818 PR tree-optimization/55862
819 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
820 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
821 not if it is contained therein.
823 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
825 * config/avr/t-avr: Typo.
827 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
830 * config/avr/t-avr: Don't automatically rebuild
831 $(srcdir)/config/avr/t-multilib
832 $(srcdir)/config/avr/avr-tables.opt
833 $(srcdir)/doc/avr-mmcu.texi
834 (avr-mcus): New phony target to build them on request.
835 (s-avr-mlib, s-avr-mmcu-texi): Remove.
836 * avr/avr-mcus.def: Adjust comments.
838 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
840 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
842 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
844 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
846 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
848 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
850 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
852 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
853 to generate profiling.
854 * config/rs6000/aix64.h (LIB_SPEC): Same.
856 2013-01-04 Andrew Pinski <apinski@cavium.com>
858 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
860 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
862 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
864 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
866 (ix86_expand_move): Ditto.
867 (ix86_zero_extend_to_Pmode): Ditto.
868 (ix86_expand_call): Ditto.
869 (ix86_expand_special_args_builtin): Ditto.
870 (ix86_expand_builtin): Ditto.
872 2013-01-04 Richard Biener <rguenther@suse.de>
874 PR tree-optimization/55862
875 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
876 translating them through PHI nodes.
878 2013-01-04 Martin Jambor <mjambor@suse.cz>
880 PR tree-optimization/55755
881 * tree-sra.c (sra_modify_assign): Do not check that an access has no
882 children when trying to avoid producing a VIEW_CONVERT_EXPR.
884 2013-01-04 Marek Polacek <polacek@redhat.com>
887 * opts.c (default_options_optimization): Clarify error message.
889 2013-01-04 Richard Biener <rguenther@suse.de>
892 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
895 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
898 * config/pa/pa.md (movsi): Revert previous change.
899 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
902 2013-01-03 Richard Henderson <rth@redhat.com>
904 * config/i386/i386.c (ix86_expand_move): Always assign to op1
905 after eliminating TLS symbols.
907 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
910 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
911 * graphite-poly.c (debug_gmp_value): Likewise.
913 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
916 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
917 selected code model, define __code_mode_small__, __code_model_medium__,
918 __code_model_large__, __code_model_32__ or __code_model_kernel__.
919 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
920 xchg temporary register with %k. Declare temporary register as
922 [__x86_64__]: For medium and large code models, preserve %rbx register.
924 2013-01-03 Richard Biener <rguenther@suse.de>
926 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
927 (dump_subscript): Adjust.
928 (finalize_ddr_dependent): Do not dump redundant info.
929 (analyze_siv_subscript): Adjust.
930 (subscript_dependence_tester): Likewise.
931 (compute_affine_dependence): Likewise.
933 2013-01-03 Richard Biener <rguenther@suse.de>
936 2013-01-03 Richard Biener <rguenther@suse.de>
938 PR tree-optimization/55857
939 * tree-vect-stmts.c (vectorizable_load): Do not setup
940 re-alignment for invariant loads.
942 2013-01-02 Richard Biener <rguenther@suse.de>
944 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
945 invariant load do not generate a vector load from the scalar location.
947 2013-01-03 Richard Biener <rguenther@suse.de>
949 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
951 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
952 not build INDIRECT_REFs, call get_name once only.
953 (vect_create_data_ref_ptr): Likewise. Dump base object kind
954 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
956 2013-01-03 Richard Biener <rguenther@suse.de>
958 PR tree-optimization/55857
959 * tree-vect-stmts.c (vectorizable_load): Do not setup
960 re-alignment for invariant loads.
962 2013-01-03 Richard Biener <rguenther@suse.de>
965 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
966 prefer a built-in decl.
968 2013-01-03 Jakub Jelinek <jakub@redhat.com>
970 * gcc.c (process_command): Update copyright notice dates.
971 * gcov.c (print_version): Likewise.
972 * gcov-dump.c (print_version): Likewise.
974 PR rtl-optimization/55838
975 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
976 iv0.step, iv1.step and step.
978 2013-01-03 Jakub Jelinek <jakub@redhat.com>
979 Marc Glisse <marc.glisse@inria.fr>
981 PR tree-optimization/55832
982 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
983 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
984 integer_{one,zero}_node.
986 2013-01-03 Jakub Jelinek <jakub@redhat.com>
989 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
990 * var-tracking.c (reverse_op): Don't add reverse ops to
991 VALUEs that have already
992 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
994 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
996 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
998 2013-01-02 Teresa Johnson <tejohnson@google.com>
1000 * dumpfile.c (dump_loc): Print filename with location.
1001 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
1002 new location_t parameter to emit complete unroll message with
1004 (canonicalize_loop_induction_variables): Compute loops location
1005 and pass to try_unroll_loop_completely.
1006 * loop-unroll.c (report_unroll_peel): New function.
1007 (peel_loops_completely): Use new dump format with location
1008 for main dumpfile message, and invoke report_unroll_peel on success.
1009 (decide_unrolling_and_peeling): Ditto.
1010 (decide_peel_once_rolling): Remove old dumpfile message subsumed
1011 by report_unroll_peel.
1012 (decide_peel_completely): Ditto.
1013 (decide_unroll_constant_iterations): Ditto.
1014 (decide_unroll_runtime_iterations): Ditto.
1015 (decide_peel_simple): Ditto.
1016 (decide_unroll_stupid): Ditto.
1017 * cfgloop.c (get_loop_location): New function.
1018 * cfgloop.h (get_loop_location): Declare.
1020 2013-01-02 Sriraman Tallam <tmsriram@google.com>
1022 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
1025 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1028 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
1029 BLKmode objects when EXPAND_MEMORY is specified.
1031 2013-01-02 Sriraman Tallam <tmsriram@google.com>
1033 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
1035 (fold_builtin_cpu): Do not share cpu model decls across statements.
1037 2013-01-02 Jason Merrill <jason@redhat.com>
1040 * tree.c (build_array_type_1): Revert earlier change.
1042 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
1044 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
1046 * config/aarch64/aarch64-tune.md: Re-generate.
1048 2013-01-02 Richard Biener <rguenther@suse.de>
1050 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1051 invariant load do not generate a vector load from the scalar location.
1053 2013-01-02 Richard Biener <rguenther@suse.de>
1056 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
1057 * configure: Regenerate.
1059 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1061 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
1062 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
1063 (expand_builtin_int_roundingfn_2): Keep the original target around
1064 for the fallback case.
1066 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1068 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
1069 to be clear for sign changes.
1071 2013-01-01 Jan Hubicka <jh@suse.cz>
1073 * ipa-inline-analysis.c: Fix formatting.
1075 2013-01-01 Jakub Jelinek <jakub@redhat.com>
1077 PR tree-optimization/55831
1078 * tree-vect-loop.c (get_initial_def_for_induction): Use
1079 gsi_after_labels instead of gsi_start_bb.
1081 Copyright (C) 2013 Free Software Foundation, Inc.
1083 Copying and distribution of this file, with or without modification,
1084 are permitted in any medium without royalty provided the copyright
1085 notice and this notice are preserved.