1 2014-03-31 H.J. Lu <hongjiu.lu@intel.com>
3 PR rtl-optimization/60700
5 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7 PR rtl-optimization/57637
8 * function.c (move_insn_for_shrink_wrap): Also check the
9 GEN set of the LIVE problem for the liveness analysis
10 if it exists, otherwise give up.
12 2014-03-30 Kaz Kojima <kkojima@gcc.gnu.org>
14 Backport from mainline
15 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
18 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
20 2014-03-26 Martin Jambor <mjambor@suse.cz>
23 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk and
24 alias flags of nodes in the border.
26 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
28 PR rtl-optimization/60452
29 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30 <case REG>: Return 1 for invalid offsets from the frame pointer.
32 2014-03-24 Richard Biener <rguenther@suse.de>
34 PR tree-optimization/60429
35 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Remove
38 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
40 PR rtl-optimization/60601
41 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
43 * gcc.c (eval_spec_function): Initialize save_growing_value.
45 2014-03-20 Jakub Jelinek <jakub@redhat.com>
48 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
49 into CONST, put pic register as first operand of PLUS. Use
50 gen_const_mem for both 32-bit and 64-bit PIC got loads.
52 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
54 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
55 around for store forwarding issue in the FPU on the UT699.
56 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
57 loads and operations if -mfix-ut699 is specified.
58 (divtf3_hq): Tweak attribute.
59 (sqrttf2_hq): Likewise.
61 2014-03-18 Kai Tietz <ktietz@redhat.com>
63 PR rtl-optimization/56356
64 * sdbout.c (sdbout_parms): Verify that parms'
65 incoming argument is valid.
66 (sdbout_reg_parms): Likewise.
68 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
70 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
71 proper constant for the store mode.
73 2014-03-17 Mikael Pettersson <mikpelinux@gmail.com>
74 Committed by Bill Schmidt <wschmidt@linux.vnet.ibm.com>
76 Backport from mainline:
78 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
80 PR rtl-optimization/57425
81 PR rtl-optimization/57569
82 * alias.c (write_dependence_p): Remove parameters mem_mode and
83 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
85 (canon_anti_dependence): Get comments and semantics in sync.
86 Add parameter mem_canonicalized. Changed all callers.
87 * rtl.h (canon_anti_dependence): Update prototype.
89 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
91 PR rtl-optimization/57425
92 PR rtl-optimization/57569
93 * alias.c (write_dependence_p): Add new parameters mem_mode,
94 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
96 (canon_anti_dependence): New function.
97 * cse.c (check_dependence): Use canon_anti_dependence.
98 * cselib.c (cselib_invalidate_mem): Likewise.
99 * rtl.h (canon_anti_dependence): Declare.
101 2014-03-17 Richard Biener <rguenther@suse.de>
103 Backport from mainline
104 2014-03-11 Richard Biener <rguenther@suse.de>
106 PR tree-optimization/60429
107 PR tree-optimization/60485
108 * tree-ssa-structalias.c (set_union_with_increment): Properly
109 take into account all fields that overlap the shifted vars.
110 (do_sd_constraint): Likewise.
111 (do_ds_constraint): Likewise.
112 (get_constraint_for_ptr_offset): Likewise.
114 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
116 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
117 (eligible_for_call_delay): New prototype.
118 * config/sparc/sparc.c (tls_call_delay): Rename into...
119 (eligible_for_call_delay): ...this. Return false if the instruction
120 cannot be put in the delay slot of a branch.
121 (eligible_for_restore_insn): Simplify.
122 (eligible_for_return_delay): Return false if the instruction cannot be
123 put in the delay slot of a branch and simplify.
124 (eligible_for_sibcall_delay): Return false if the instruction cannot be
125 put in the delay slot of a branch.
126 * config/sparc/sparc.md (fix_ut699): New attribute.
127 (tls_call_delay): Delete.
128 (in_call_delay): Reimplement.
129 (eligible_for_sibcall_delay): Rename into...
130 (in_sibcall_delay): ...this.
131 (eligible_for_return_delay): Rename into...
132 (in_return_delay): ...this.
133 (in_branch_delay): Reimplement.
134 (in_uncond_branch_delay): Delete.
135 (in_annul_branch_delay): Delete.
137 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
139 Backport from 2014-03-14 trunk r208562.
142 * config/avr/avr.c (avr_set_current_function): Pass function name
143 through default_strip_name_encoding before sanity checking instead
144 of skipping the first char of the assembler name.
146 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
148 Backport from 2014-03-13 trunk r208532.
151 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
152 calls of avr_out_plus_1.
154 2014-03-13 Joey Ye <joey.ye@arm.com>
156 Backport from mainline
157 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
159 PR tree-optimization/60454
160 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
162 2014-03-06 Matthias Klose <doko@ubuntu.com>
164 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
165 MULTILIB_OSDIRNAMES is not defined.
167 2014-03-06 Jakub Jelinek <jakub@redhat.com>
169 PR tree-optimization/60276
170 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Avoid
171 a -Wsign-compare warning.
173 * Makefile.in (tree-ssa-uninit.o): Depend on $(PARAMS_H).
175 Backport from mainline
176 2014-02-21 Jakub Jelinek <jakub@redhat.com>
178 PR tree-optimization/56490
179 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
180 * tree-ssa-uninit.c: Include params.h.
181 (compute_control_dep_chain): Add num_calls argument, return false
182 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
183 num_calls to recursive call.
184 (find_predicates): Change dep_chain into normal array, add num_calls
185 variable and adjust compute_control_dep_chain caller.
186 (find_def_preds): Likewise.
188 2014-02-13 Jakub Jelinek <jakub@redhat.com>
191 * expr.c (compress_float_constant): If x is a hard register,
192 extend into a pseudo and then move to x.
194 2014-02-11 Richard Henderson <rth@redhat.com>
195 Jakub Jelinek <jakub@redhat.com>
198 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
199 around drhs if type conversion to lacc->type is not useless.
201 2014-02-08 Jakub Jelinek <jakub@redhat.com>
204 * ipa-cp.c (determine_versionability): Fail at -O0
205 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
206 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
208 2014-02-06 Jakub Jelinek <jakub@redhat.com>
211 * tree.h (opts_for_fn): New inline function.
212 (opt_for_fn): Define.
213 * config/i386/i386.c (ix86_function_regparm): Use
214 opt_for_fn (decl, optimize) instead of optimize.
216 2014-02-05 Jakub Jelinek <jakub@redhat.com>
219 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
220 bb with no successors.
222 2014-03-04 Richard Biener <rguenther@suse.de>
224 PR tree-optimization/60382
225 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
226 dead PHIs a reduction.
228 2014-02-25 Richard Biener <rguenther@suse.de>
230 Backport from mainline
231 2014-02-21 Richard Biener <rguenther@suse.de>
233 PR tree-optimization/60276
234 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
235 (STMT_VINFO_MIN_NEG_DIST): New macro.
236 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
237 STMT_VINFO_MIN_NEG_DIST.
238 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
239 made for negative dependence distances still hold.
241 2014-02-25 Richard Biener <rguenther@suse.de>
243 Backport from mainline
244 2014-02-21 Richard Biener <rguenther@suse.de>
247 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
248 DECL_INITIAL for globals not in the current function context.
250 2014-02-20 Richard Biener <rguenther@suse.de>
253 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
256 2014-02-14 Richard Biener <rguenther@suse.de>
258 PR tree-optimization/60183
259 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating
261 (tree_ssa_phiprop): Calculate and free post-dominators.
263 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
266 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
269 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
271 * config/pa/pa.c (pa_output_move_double): Don't valididate when
272 adjusting offsetable addresses.
274 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
276 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg names
278 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
280 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
283 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
285 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk
286 and define TARGET_ASM_OUTPUT_MI_THUNK and
287 TARGET_ASM_CAN_OUTPUT_MI_THUNK.
289 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
291 * config/microblaze/predicates.md: Add cmp_op predicate.
292 * config/microblaze/microblaze.md: Add branch_compare instruction
293 which uses cmp_op predicate and emits cmp insn before branch.
294 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
295 to microblaze_expand_conditional_branch and consolidate logic.
296 (microblaze_expand_conditional_branch): emit branch_compare
297 insn instead of handling cmp op separate from branch insn.
299 2014-02-21 Martin Jambor <mjambor@suse.cz>
302 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
303 info when checking whether lattices are bottom.
305 2014-02-21 Jakub Jelinek <jakub@redhat.com>
307 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
308 mode for mask of V8SFmode permutation.
310 2014-02-20 Richard Henderson <rth@redhat.com>
313 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
314 on failure the store back into EXPECT. Always make a new pseudo for
317 2014-02-20 Jakub Jelinek <jakub@redhat.com>
320 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
321 gen_reg_rtx if d->testing_p.
322 (expand_vec_perm_pshufb2, expand_vec_perm_even_odd_1,
323 expand_vec_perm_broadcast_1): Return early if d->testing_p and
324 we will certainly return true.
326 2014-02-20 Richard Biener <rguenther@suse.de>
328 * tree-cfg.c (replace_uses_by): Mark altered BBs before
329 doing the substitution.
331 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
333 Backport from mainline
334 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
337 * config/i386/i386.c (construct_container): Remove TFmode check
338 for X86_64_INTEGER_CLASS.
340 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
342 Backport from mainline
343 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
346 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
347 only when -Wpsabi is enabled.
349 2014-02-19 Terry Guo <terry.guo@arm.com>
351 Backport from mainline
352 2014-02-08 Terry Guo <terry.guo@arm.com>
354 * doc/invoke.texi: Document ARM -march=armv7e-m.
356 2014-02-18 Kai Tietz <ktietz@redhat.com>
358 Backport from mainline
359 2014-02-18 Kai Tietz <ktietz@redhat.com>
362 * config/i386/i386.c (ix86_expand_prologue): Use
363 rax register as displacement for restoring %r10, %rax.
364 Additional fix wrong offset for restoring both-registers.
366 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
368 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
369 assertion with conditional return.
371 2014-02-18 Jakub Jelinek <jakub@redhat.com>
372 Uros Bizjak <ubizjak@gmail.com>
375 * config/i386/driver-i386.c (host_detect_local_cpu): If
376 YMM state is not saved by the OS, also clear has_f16c. Move
377 CPUID 0x80000001 handling before YMM state saving checking.
379 2014-02-14 Roland McGrath <mcgrathr@google.com>
381 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
382 * configure: Regenerated.
383 * config.in: Regenerated.
384 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
385 instead of ASM_SHORT.
387 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
389 Backport from mainline
390 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
392 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
393 operands[2], not operands[3].
395 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
397 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
398 caused by bad second argument to warning_at() with -mhotpatch and
399 nested functions (e.g. with gfortran).
401 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
403 Backport from mainline
404 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
405 Uros Bizjak <ubizjak@gmail.com>
408 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
410 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
412 PR rtl-optimization/60116
413 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
414 other_insn once the combination has been validated.
416 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
418 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
419 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
421 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
423 * config/microblaze/microblaze.c: Extend mcpu version format
425 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
427 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
429 2014-02-10 Richard Biener <rguenther@suse.de>
431 Backport from mainline
432 2014-01-30 Richard Biener <rguenther@suse.de>
434 PR tree-optimization/59903
435 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
438 2014-02-10 Richard Biener <rguenther@suse.de>
440 PR tree-optimization/60115
441 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
442 MEM_REF handling. Properly verify that the accesses are not
443 out of the objects bound.
445 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
447 Backport from mainline.
448 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
451 * doc/invoke.texi (-march): Clarify documentation for ARM.
455 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
458 * config/pa/pa.c (legitimize_tls_address): Return original address
459 if not passed a SYMBOL_REF rtx.
460 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
462 (pa_emit_move_sequence): Simplify TLS source operands.
463 (pa_legitimate_constant_p): Reject all TLS constants.
464 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
465 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
467 2014-02-04 Uros Bizjak <ubizjak@gmail.com>
469 Backport from mainline
470 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
473 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
474 when calculating size of integer atomic types.
476 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
478 Backport from mainline
479 2014-01-30 Jakub Jelinek <jakub@redhat.com>
481 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
483 2014-01-31 Richard Henderson <rth@redhat.com>
486 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
487 until after else_eh is processed.
489 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
491 Backport from mainline
492 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
493 comparison_operator with ordered_comparison_operator.
495 2014-01-25 Walter Lee <walt@tilera.com>
497 Backport from mainline
498 2014-01-25 Walter Lee <walt@tilera.com>
500 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
501 avoid clobbering a live register.
503 2014-01-25 Walter Lee <walt@tilera.com>
505 Backport from mainline
506 2014-01-25 Walter Lee <walt@tilera.com>
508 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
509 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
510 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
511 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
513 2014-01-25 Walter Lee <walt@tilera.com>
515 Backport from mainline
516 2014-01-25 Walter Lee <walt@tilera.com>
518 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
519 insns before bundling.
520 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
522 2014-01-25 Walter Lee <walt@tilera.com>
524 Backport from mainline
525 2014-01-25 Walter Lee <walt@tilera.com>
527 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
528 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
529 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
531 2014-01-25 Walter Lee <walt@tilera.com>
533 Backport from mainline
534 2014-01-25 Walter Lee <walt@tilera.com>
536 * config/tilepro/tilepro.md (ctzdi2): Use register_operand
541 2014-01-25 Walter Lee <walt@tilera.com>
543 Backport from mainline
544 2014-01-25 Walter Lee <walt@tilera.com>
546 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
547 (TARGET_EXPAND_TO_RTL_HOOK): Define.
549 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
551 Backport from mainline
552 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
555 * config/i386/i386.md (pushsf splitter): Get stack adjustment
556 from push operand if code of push isn't PRE_DEC.
558 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
560 Backport from mainline.
561 * config/microblaze/microblaze.md: Add trap insn and attribute
563 2014-01-23 Marek Polacek <polacek@redhat.com>
565 Backport from mainline
566 2013-10-21 Marek Polacek <polacek@redhat.com>
569 * fold-const.c (fold_range_test): Return 0 if the type is not
572 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
574 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
576 2014-01-22 Uros Bizjak <ubizjak@gmail.com>
578 Backport from mainline
579 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
581 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
582 for SImode_address_operand operands, having only a REG argument.
584 2014-01-20 Jakub Jelinek <jakub@redhat.com>
587 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
588 if operands[1] is a REG or ZERO_EXTEND of a REG.
590 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
591 H.J. Lu <hongjiu.lu@intel.com>
594 * config/i386/i386.md (*lea<mode>): Zero-extend return register
595 to DImode for zero-extended addresses.
597 2014-01-21 Andrew Pinski <apinski@cavium.com>
598 Steve Ellcey <sellcey@mips.com>
601 * config/mips/mips.c (mips_print_operand): Check operand mode instead
604 2014-01-21 Andrey Belevantsev <abel@ispras.ru>
606 Backport from mainline
607 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
609 PR rtl-optimization/57422
610 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
613 2014-01-20 Jakub Jelinek <jakub@redhat.com>
616 * tree.h (fold_builtin_strcat): New prototype.
617 * builtins.c (fold_builtin_strcat): No longer static. Add len
618 argument, if non-NULL, don't call c_strlen. Optimize
619 directly into __builtin_memcpy instead of __builtin_strcpy.
620 (fold_builtin_2): Adjust fold_builtin_strcat caller.
621 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
623 2014-01-20 Richard Biener <rguenther@suse.de>
626 * builtins.c (fold_builtin_strcat): Remove case better handled
627 by tree-ssa-strlen.c.
629 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
631 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
632 long non-pic millicode calls.
634 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
636 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
637 call to $$dyncall when TARGET_LONG_CALLS is true.
639 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
641 Backport from mainline
642 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
645 * config/i386/i386.c (type_natural_mode): Add a bool parameter
646 to indicate if type is used for function return value. Warn
647 ABI change if the vector mode isn't available for function
649 (ix86_function_arg_advance): Pass false to type_natural_mode.
650 (ix86_function_arg): Likewise.
651 (ix86_gimplify_va_arg): Likewise.
652 (function_arg_32): Don't warn ABI change.
653 (ix86_function_value): Pass true to type_natural_mode.
654 (ix86_return_in_memory): Likewise.
655 (ix86_struct_value_rtx): Removed.
656 (TARGET_STRUCT_VALUE_RTX): Likewise.
658 2014-01-17 Charles Baylis <charles.baylis@linaro.org>
660 Backport from mainline
661 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
664 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
666 * config/arm/ldmstm.md: Regenerate.
668 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
671 * config/arm/predicates.md (arm_hard_general_register_operand):
673 (arm_hard_register_operand): Remove.
674 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
676 * config/arm/ldmstm.md: Regenerate.
678 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
681 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
682 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
683 vfp_hard_register_operand.
685 2014-01-17 Kugan Vivekanandarajah <kuganv@linaro.org>
687 Backport from mainline
688 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
689 Kugan Vivekanandarajah <kuganv@linaro.org>
692 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
695 2014-01-17 Terry Guo <terry.guo@arm.com>
698 * config/arm/arm.md (prefetch): Set insn type attribute to load1.
700 2014-01-16 Jakub Jelinek <jakub@redhat.com>
703 * config/i386/i386.c (ix86_expand_builtin): If target doesn't
704 satisfy operand 0 predicate for gathers, use a new pseudo as
707 2014-01-16 Richard Henderson <rth@redhat.com>
710 * reginfo.c (global_regs_decl): Globalize.
711 * rtl.h (global_regs_decl): Declare.
712 * ira.c (do_reload): Diagnose frame_pointer_needed and it
713 reserved via global_regs.
715 2014-01-16 Peter Bergner <bergner@vnet.ibm.com>
717 Backport from mainline
718 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
720 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
721 VALID_AVX256_REG_OR_OI_MODE.
723 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
726 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
727 looking for widest mode.
729 2014-01-16 Marek Polacek <polacek@redhat.com>
731 Backported from mainline
732 2014-01-16 Marek Polacek <polacek@redhat.com>
735 * gimple-low.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
736 it is error_mark_node.
738 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
741 * config/s390/s390.c (s390_preferred_reload_class): Don't return
742 ADDR_REGS for invalid symrefs in non-PIC code.
744 2014-01-14 Uros Bizjak <ubizjak@gmail.com>
747 2014-01-08 Uros Bizjak <ubizjak@gmail.com>
749 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
750 from prefetch_block tune setting.
752 2014-01-13 Jakub Jelinek <jakub@redhat.com>
754 Backported from mainline
755 2014-01-10 Jakub Jelinek <jakub@redhat.com>
757 PR tree-optimization/59745
758 * tree-predcom.c (tree_predictive_commoning_loop): Call
759 free_affine_expand_cache if giving up because components is NULL.
761 2014-01-10 Yufeng Zhang <yufeng.zhang@arm.com>
763 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
764 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
765 rtx is const0_rtx or not.
767 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
769 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
770 extraction in good case.
772 2014-01-10 Huacai Chen <chenhc@lemote.com>
774 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
775 kernel strings for Loongson-2E/2F/3A.
777 2014-01-10 Richard Biener <rguenther@suse.de>
779 PR tree-optimization/59715
780 * tree-flow.h (split_critical_edges): Declare.
781 * tree-cfg.c (split_critical_edges): Export.
782 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
784 2014-01-09 Richard Sandiford <rdsandiford@googlemail.com>
786 * config/mips/mips.h (ISA_HAS_WSBH): Define.
787 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
789 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
791 2014-01-09 Richard Sandiford <rdsandiford@googlemail.com>
793 PR rtl-optimization/59137
794 * reorg.c (steal_delay_list_from_target): Call update_block for
796 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
798 2014-01-09 Richard Sandiford <rdsandiford@googlemail.com>
801 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
803 * config/mips/mips.c (mips_truncated_op_cost): New function.
804 (mips_rtx_costs): Adjust test for BADDU.
805 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
807 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
809 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
810 (*baddu_si): ...this new pattern.
812 2014-01-09 Richard Biener <rguenther@suse.de>
814 Backport from mainline
815 2013-11-18 Richard Biener <rguenther@suse.de>
817 PR tree-optimization/59125
818 PR tree-optimization/54570
819 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
820 is not complete do not treat component-references with offset zero
821 but different fields as equal.
822 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
823 (compute_object_sizes): Apply TLC. Propagate the constant
824 results into all uses and fold their stmts.
825 * passes.def (pass_all_optimizations): Move pass_object_sizes
826 after the first pass_forwprop and before pass_fre.
828 2013-12-03 Jakub Jelinek <jakub@redhat.com>
830 PR tree-optimization/59362
831 * tree-object-size.c (object_sizes): Change into array of
832 vec<unsigned HOST_WIDE_INT>.
833 (compute_builtin_object_size): Check computed bitmap for
834 non-NULL instead of object_sizes. Call safe_grow on object_sizes
835 vector if new SSA_NAMEs appeared.
836 (init_object_sizes): Check computed bitmap for non-NULL.
837 Call safe_grow on object_sizes elements instead of initializing
839 (fini_object_sizes): Call release on object_sizes elements, don't
842 2014-01-09 Richard Earnshaw <rearnsha@arm.com>
844 PR rtl-optimization/54300
845 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
846 outputs in a single-set are killed from the value chains.
848 2014-01-09 Jakub Jelinek <jakub@redhat.com>
850 PR rtl-optimization/59724
851 * ifcvt.c (cond_exec_process_if_block): Don't call
852 flow_find_head_matching_sequence with 0 longest_match.
853 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
854 non-active insns if !stop_after.
855 (try_head_merge_bb): Revert 2014-01-07 changes.
857 2014-01-09 Hans-Peter Nilsson <hp@axis.com>
859 Backport from mainline
860 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
863 * config/cris/predicates.md (cris_nonsp_register_operand):
864 New define_predicate.
865 * config/cris/cris.md: Replace register_operand with
866 cris_nonsp_register_operand for destinations in all
867 define_splits where a register is set more than once.
869 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
871 Backport from mainline
872 2013-12-25 H.J. Lu <hongjiu.lu@intel.com>
875 * config/i386/i386.c (struct ptt): Add a field for processor name.
876 (processor_target_table): Sync with processor_type. Add
878 (cpu_names): Removed.
879 (ix86_option_override_internal): Default x_ix86_tune_string
880 to processor_target_table[TARGET_CPU_DEFAULT].name.
881 (ix86_function_specific_print): Assert arch and tune <
882 PROCESSOR_max. Use processor_target_table to print arch and
884 * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
886 (target_cpu_default): Removed.
887 (processor_type): Reordered.
889 2014-01-08 Uros Bizjak <ubizjak@gmail.com>
891 Backport from mainline
892 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
894 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
895 from prefetch_block tune setting.
896 (nocona_cost): Correct size of prefetch block to 64.
898 2014-01-08 Martin Jambor <mjambor@suse.cz>
901 * ipa-prop.c (ipa_compute_jump_functions): Bail out if not optimizing.
902 (parm_preserved_before_stmt_p): Assume modification present when not
905 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
908 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
909 for 14-bit register offsets when INT14_OK_STRICT is false.
911 2014-01-07 Roland Stigge <stigge@antcom.de>
912 Michael Meissner <meissner@linux.vnet.ibm.com>
915 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
916 Only check TFmode for SPE constants. Don't check TImode or TDmode.
918 2014-01-07 Jakub Jelinek <jakub@redhat.com>
920 PR rtl-optimization/58668
921 * cfgcleanup.c (flow_find_cross_jump): Don't count
922 any jumps if dir_p is NULL. Remove p1 variable and make USE/CLOBBER
923 check consistent with other places.
924 (flow_find_head_matching_sequence): Don't count USE or CLOBBER insns.
925 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
927 * ifcvt.c (count_bb_insns): Don't count USE or CLOBBER insns.
929 2014-01-07 Mike Stump <mikestump@comcast.net>
930 Jakub Jelinek <jakub@redhat.com>
933 * tree.h (struct tree_optimization_option): Change optabs
934 type from unsigned char * to void *.
935 * optabs.c (init_tree_optimization_optabs): Adjust
936 TREE_OPTIMIZATION_OPTABS initialization.
938 2014-01-07 Jakub Jelinek <jakub@redhat.com>
940 Backported from mainline
941 2013-12-16 Jakub Jelinek <jakub@redhat.com>
945 * gimple.h (walk_stmt_load_store_addr_fn): New typedef.
946 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
948 * gimple.c (walk_stmt_load_store_ops): Likewise.
949 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
950 calls to supply the gimple operand containing the base tree
951 as an extra argument.
952 * tree-ssa-ter.c (find_ssaname, find_ssaname_in_store): New helper
954 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
955 same_root_var if USE is used somewhere in the stores of the stmt.
956 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
957 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
958 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
959 check_ipa_store): Likewise.
960 * gimple.c (gimple_ior_addresses_taken_1): Likewise.
961 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
962 (verify_non_ssa_vars, visit_bb): Adjust their callers.
963 * cfgexpand.c (add_scope_conflicts_1): Use
964 walk_stmt_load_store_addr_fn type for visit variable.
965 (visit_op, visit_conflict): Remove name of the stmt
966 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
967 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
968 argument and ATTRIBUTE_UNUSED.
969 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
970 unnamed tree argument.
972 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
974 * config/m68k/m68k.c (handle_move_double): Handle pushes with
975 overlapping registers also for registers other than the stack
978 2014-01-03 Jakub Jelinek <jakub@redhat.com>
981 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
984 2014-01-01 Jakub Jelinek <jakub@redhat.com>
986 PR rtl-optimization/59647
987 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
988 new_rtx into UNSIGNED_FLOAT rtxes.
990 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
992 * doc/invoke.texi (output file options): Document -fada-spec-parent.
994 2013-12-26 Uros Bizjak <ubizjak@gmail.com>
996 * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
998 2013-12-20 Jakub Jelinek <jakub@redhat.com>
1001 Backported from mainline
1002 2013-08-19 Dehao Chen <dehao@google.com>
1004 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
1006 2013-12-19 James Greenhalgh <james.greenhalgh@arm.com>
1008 Backport from Mainline.
1009 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1011 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
1013 (cmhi): Rename to...
1015 * config/aarch64/aarch64-simd.md
1016 (simd_mode): Add SF.
1017 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
1018 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
1019 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
1020 (cstore<mode>_neg): ...This.
1021 * config/aarch64/iterators.md
1023 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
1025 (UCOMPARISONS): Likewise.
1026 (optab): Add missing comparisons.
1034 (V_cmp_result): Add DF, SF modes.
1035 (v_cmp_result): Likewise.
1038 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
1040 Partial Backport from mainline.
1041 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1043 * config/aarch64/arm_neon.h
1044 (vc<eq, lt, le, gt, ge, tst><qsd>_<u><8,16,32,64>): Remap
1045 to builtins or C as appropriate.
1047 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
1048 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1050 Backport from mainline
1051 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
1052 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
1054 (s390_hotpatch_trampoline_halfwords_max): New constant
1055 (s390_hotpatch_trampoline_halfwords): New static variable
1056 (get_hotpatch_attribute): New function
1057 (s390_handle_hotpatch_attribute): New function
1058 (s390_attribute_table): New target specific attribute table to implement
1059 the hotpatch attribute
1060 (s390_option_override): Parse hotpatch options
1061 (s390_function_num_hotpatch_trampoline_halfwords): New function
1062 (s390_can_inline_p): Implement target hook to
1063 suppress hotpatching for explicitly inlined functions
1064 (s390_asm_output_function_label): Generate hotpatch prologue
1065 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table
1066 (TARGET_CAN_INLINE_P): Define to implement target hook
1067 * config/s390/s390.opt (mhotpatch): New options -mhotpatch, -mhotpatch=
1068 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
1070 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
1071 function label generation for hotpatching
1072 (FUNCTION_BOUNDARY): Align functions to eight bytes
1073 * doc/extend.texi: Document hotpatch attribute
1074 * doc/invoke.texi: Document -mhotpatch option
1076 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
1078 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
1080 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
1083 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
1084 values if necessary.
1086 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1089 * gimplify.c (omp_check_private): Add copyprivate argument, if it
1090 is true, don't check omp_privatize_by_reference.
1091 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
1092 decl is private in outer context. Adjust omp_check_private caller.
1094 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1096 PR rtl-optimization/58295
1097 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
1098 WORD_REGISTER_OPERATIONS targets.
1100 2013-12-10 Kai Tietz <ktietz@redhat.com>
1103 * config/i386/i386.c (ix86_expand_prologue): Address saved
1104 registers stack-relative, not via frame-pointer.
1106 2013-12-09 Alan Modra <amodra@gmail.com>
1109 2013-12-05 Alan Modra <amodra@gmail.com>
1110 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
1112 <recursive call for build != host>: Clear GMPINC. Don't bother
1114 * configure: Regenerate.
1116 2013-12-08 Uros Bizjak <ubizjak@gmail.com>
1118 Backport from mainline
1119 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
1122 * config/i386/i386.c (type_natural_mode): Properly handle
1123 size 8 for !TARGET_64BIT.
1125 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
1127 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
1129 2013-12-06 Jakub Jelinek <jakub@redhat.com>
1131 PR tree-optimization/59388
1132 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
1133 gimplify tem after stmt rather than before it.
1135 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1137 Backport from mainline
1138 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
1142 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1143 Prefix function names with 'sh_'. Make them non-static.
1144 * config/sh/sh-protos.h (sh_disp_addr_displacement,
1145 sh_max_mov_insn_displacement): Add declarations.
1146 * config/sh/constraints.md (Q): Reject QImode.
1147 (Sdd): Use match_code "mem".
1148 (Snd): Fix erroneous matching of non-memory operands.
1149 * config/sh/predicates.md (short_displacement_mem_operand): New
1151 (general_movsrc_operand): Disallow PC relative QImode loads.
1152 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1153 (*movqi, *movhi): Merge both insns into...
1154 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
1155 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
1156 on the operand types.
1158 2013-12-06 Richard Biener <rguenther@suse.de>
1160 Backport from mainline
1161 2013-11-29 Richard Biener <rguenther@suse.de>
1163 PR tree-optimization/59334
1164 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
1167 2013-11-28 Richard Biener <rguenther@suse.de>
1169 PR tree-optimization/59330
1170 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
1171 and fix delayed marking of free calls not necessary.
1173 2013-12-06 Richard Biener <rguenther@suse.de>
1175 Backport from mainline
1176 2013-11-27 Richard Biener <rguenther@suse.de>
1178 PR tree-optimization/59288
1179 * tree-vect-loop.c (get_initial_def_for_induction): Do not
1180 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1182 2013-11-19 Richard Biener <rguenther@suse.de>
1184 PR tree-optimization/59164
1185 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust
1186 check whether we can create an epilogue loop to reflect the
1187 cases where we create one.
1189 2013-09-05 Richard Biener <rguenther@suse.de>
1191 PR tree-optimization/58137
1192 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1193 Do not create vectors of pointers.
1194 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
1195 types for the components of the vector initializer.
1196 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
1197 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
1199 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1203 * config/sh/sh.md (*cbranch_t): Check that there are no labels between
1204 the s1 insn and the testing insn. Remove REG_DEAD note from s1 insn.
1206 2013-12-05 Richard Biener <rguenther@suse.de>
1208 Backport from mainline
1209 2013-11-19 Richard Biener <rguenther@suse.de>
1212 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
1213 loads into stmts that may clobber it.
1215 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1217 PR rtl-optimization/58726
1218 * combine.c (force_to_mode): Fix comment typo. Don't destructively
1219 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
1221 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1222 Uros Bizjak <ubizjak@gmail.com>
1225 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
1226 !TARGET_AVX there is misaligned MEM operand with vector mode
1227 and get_attr_ssememalign is 0, return false.
1228 (ix86_expand_special_args_builtin): Add get_pointer_alignment
1229 computed alignment and for non-temporal loads/stores also
1230 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
1231 * config/i386/sse.md
1232 (<sse>_loadu<ssemodesuffix><avxsizesuffix>,
1233 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
1234 <sse2>_loaddqu<avxsizesuffix>,
1235 <sse2>_storedqu<avxsizesuffix>, <sse3>_lddqu<avxsizesuffix>,
1236 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
1237 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
1238 *vec_interleave_highv2df, *vec_interleave_lowv2df,
1239 *vec_extractv2df_1_sse, sse2_loadhpd, sse2_loadlpd, sse2_movsd,
1240 sse4_1_<code>v8qiv8hi2, sse4_1_<code>v4qiv4si2,
1241 sse4_1_<code>v4hiv4si2, sse4_1_<code>v2qiv2di2,
1242 sse4_1_<code>v2hiv2di2, sse4_1_<code>v2siv2di2, sse4_2_pcmpestr,
1243 *sse4_2_pcmpestr_unaligned, sse4_2_pcmpestri, sse4_2_pcmpestrm,
1244 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned,
1245 sse4_2_pcmpistri, sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add
1246 ssememalign attribute.
1247 * config/i386/i386.md (ssememalign): New define_attr.
1249 2013-12-03 Jakub Jelinek <jakub@redhat.com>
1252 * gimplify.c (nonlocal_vla_vars): New variable.
1253 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
1254 nonlocal_vla_vars chain.
1255 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
1256 if outer_bind has DECL_INITIAL (current_function_decl) block.
1259 * optabs.c (emit_conditional_move): Save and restore
1260 pending_stack_adjust and stack_pointer_delta if cmove can't be used.
1262 2013-12-02 Jakub Jelinek <jakub@redhat.com>
1264 PR tree-optimization/59358
1265 * tree-vrp.c (union_ranges): To check for the partially
1266 overlapping ranges or adjacent ranges, also compare *vr0max
1269 2013-12-02 Richard Biener <rguenther@suse.de>
1271 PR tree-optimization/59139
1272 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
1273 code in get_val_for.
1274 (get_val_for): Use gcc_checking_asserts.
1276 2013-11-27 Tom de Vries <tom@codesourcery.com>
1277 Marc Glisse <marc.glisse@inria.fr>
1280 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1282 * gimplify.c (gimple_fold_indirect_ref): Same.
1284 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
1286 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
1289 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1291 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
1293 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1295 Backport from mainline
1296 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1298 * config/arm/iterators.md (vrint_conds): New int attribute.
1299 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
1300 (smax<mode>3): Likewise.
1301 (smin<mode>3): Likewise.
1303 2013-11-28 Uros Bizjak <ubizjak@gmail.com>
1305 Backport from mainline
1306 2013-11-27 Uros Bizjak <ubizjak@gmail.com>
1307 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1310 * gcc.target/i386/xop-frczX.c: New test.
1312 2013-11-28 Terry Guo <terry.guo@arm.com>
1314 Backport mainline r205391
1315 2013-11-26 Terry Guo <terry.guo@arm.com>
1317 * config/arm/arm.c (require_pic_register): Handle high pic base
1318 register for thumb-1.
1319 (arm_load_pic_register): Also initialize high pic base register.
1320 * doc/invoke.texi: Update documentation for option -mpic-register.
1322 2013-11-27 Jakub Jelinek <jakub@redhat.com>
1324 Backported from mainline
1325 2013-11-26 Jakub Jelinek <jakub@redhat.com>
1327 PR tree-optimization/59014
1328 * tree-vrp.c (register_edge_assert_for_1): Don't look
1329 through conversions from non-integral types or through
1330 narrowing conversions.
1332 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1335 * expr.c (emit_group_store): Don't write past the end of the structure.
1336 (store_bit_field): Fix formatting.
1338 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
1340 Backport from mainline
1341 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
1343 * config/sparc/t-rtems: Add leon3 multilibs.
1345 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
1347 Backport from mainline
1348 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
1350 * configure.ac: Add GAS check for LEON instructions on SPARC.
1351 * configure: Regenerate.
1352 * config.in: Likewise.
1353 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
1355 * config/sparc/sparc.opt (LEON, LEON3): New masks.
1356 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
1358 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
1359 (AS_LEON_FLAG): New macro.
1360 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
1361 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
1362 Deal with LEON and LEON3 for the memory model.
1363 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
1364 (atomic_compare_and_swap<mode>_1): Likewise.
1365 (*atomic_compare_and_swap<mode>_1): Likewise.
1367 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
1369 Backport from mainline
1370 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
1372 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
1374 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
1376 Backport from mainline
1377 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
1379 * config.gcc (sparc*-*-*): Accept leon3 processor.
1380 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
1381 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
1382 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
1383 * config/sparc/sparc.opt (enum processor_type): Add leon3.
1384 (mfix-ut699): Adjust comment.
1385 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
1386 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
1387 (CPP_CPU_SPEC): Likewise.
1388 (ASM_CPU_SPEC): Likewise.
1389 * config/sparc/sparc.c (leon3_cost): New constant.
1390 (sparc_option_override): Add leon3 support.
1391 (mem_ref): New function.
1392 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
1393 (sparc_do_work_around_errata): Look into the instruction in the delay
1394 slot and adjust accordingly. Add fix for the data cache nullify issues
1395 of the UT699. Change insertion position for the NOP.
1396 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
1397 (leon3_load): New reservation.
1398 (leon_store): Bump latency to 2.
1399 (grfpu): New automaton.
1400 (grfpu_alu): New unit.
1401 (grfpu_ds): Likewise.
1402 (leon_fp_alu): Adjust.
1403 (leon_fp_mult): Delete.
1404 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
1405 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
1406 * config/sparc/sparc.md (cpu): Add leon3.
1407 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
1409 (atomic_test_and_set): Likewise.
1412 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
1414 Backport from mainline
1415 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
1417 * config/sparc/sparc.c: Include tree-pass.h.
1418 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
1419 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
1420 head of file. Change return type. Split off gate function.
1421 (sparc_gate_work_around_errata): New function.
1422 (pass_work_around_errata): New pass definition.
1423 (insert_pass_work_around_errata) New pass insert definition to
1424 insert pass_work_around_errata just after delayed-branch scheduling.
1425 (sparc_option_override): Insert the pass.
1426 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
1428 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
1430 Backport from mainline
1431 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1433 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
1434 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
1435 mode if the instruction isn't available in the original mode.
1436 * config/sparc/sparc.opt (mfix-ut699): New option.
1437 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
1438 (divdf3): Turn into expander.
1439 (divdf3_nofix): New insn.
1440 (divdf3_fix): Likewise.
1441 (divsf3): Disable if -mfix-ut699.
1442 (sqrtdf2): Turn into expander.
1443 (sqrtdf2_nofix): New insn.
1444 (sqrtdf2_fix): Likewise.
1445 (sqrtsf2): Disable if -mfix-ut699.
1447 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
1449 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1451 2013-11-21 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1454 Backport from mainline: r197467 and r198999.
1455 2013-04-03 Jeff Law <law@redhat.com>
1457 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
1458 (lra-eliminations.o): Likewise.
1460 2013-05-16 Jeff Law <law@redhat.com>
1462 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1464 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
1467 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1468 Make sure neg2_ovf is set before being used.
1470 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1471 Dominik Vogt <vogt@linux.vnet.ibm.com>
1473 Backport from mainline
1474 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
1475 int comparisons with an out of range condition code.
1476 (s390_optimize_nonescaping_tx): Skip empty BBs.
1477 Generate the new tbegin RTX when removing the FPR clobbers (with
1479 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
1480 result before doing the retry calculations.
1481 (s390_init_builtins): Make tbegin "returns_twice" and tabort
1483 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
1484 the TDB setting part of an tbegin.
1485 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
1486 ("tx_assist"): Set unused argument to an immediate zero instead of
1487 loading zero into a GPR and pass it as argument.
1488 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
1489 Remove inline and related attributes.
1490 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
1491 (__TM_is_illegal, __TM_is_footprint_exceeded)
1492 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value
1495 2013-11-19 Uros Bizjak <ubizjak@gmail.com>
1497 Backport from mainline
1498 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
1500 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
1501 ix86_address_subreg_operand. Move subreg checks to
1502 ix86_validate_address_register. Move address override check to
1503 ix86_legitimate_address_p.
1504 (ix86_validate_address_register): New function.
1505 (ix86_legitimate_address_p): Call ix86_validate_address_register
1506 to validate base and index registers. Add address override check
1507 from ix86_decompose_address.
1508 (ix86_decompose_address): Remove.
1510 Backport from mainline
1511 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
1514 * config/i386/i386.c (ix86_address_subreg_operand): Do not
1515 reject non-integer subregs.
1516 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
1517 Move check for invalid x32 constant addresses ...
1518 (ix86_legitimate_address_p): ... here.
1520 2013-11-19 Richard Biener <rguenther@suse.de>
1522 Backport from mainline
1523 2013-11-07 Richard Biener <rguenther@suse.de>
1525 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
1527 2013-11-19 Richard Biener <rguenther@suse.de>
1529 PR tree-optimization/57517
1530 * tree-predcom.c (combinable_refs_p): Verify the combination
1531 is always executed when the refs are.
1533 2013-11-19 Richard Biener <rguenther@suse.de>
1535 Backport from mainline
1536 2013-11-05 Richard Biener <rguenther@suse.de>
1539 * tree-dfa.c (get_ref_base_and_extent): Merge common code
1540 in MEM_REF and TARGET_MEM_REF handling. Make sure to
1541 process trailing array detection before diving into the
1542 view-converted object (and possibly apply some extra offset).
1544 2013-11-18 Richard Biener <rguenther@suse.de>
1546 Backport from mainline
1547 2013-10-21 Richard Biener <rguenther@suse.de>
1549 PR tree-optimization/58794
1550 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
1551 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
1553 2013-10-21 Richard Biener <rguenther@suse.de>
1556 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
1557 to (T) X for sign-changing conversions (or no conversion).
1559 2013-11-06 Richard Biener <rguenther@suse.de>
1561 PR tree-optimization/58653
1562 * tree-predcom.c (ref_at_iteration): Rewrite to generate
1564 (prepare_initializers_chain): Adjust.
1566 PR tree-optimization/59047
1567 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses
1570 2013-10-15 Richard Biener <rguenther@suse.de>
1572 PR tree-optimization/58143
1573 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
1575 (rewrite_to_defined_overflow): Likewise.
1576 (move_computations_dom_walker::before_dom): Rewrite stmts
1577 with undefined signed overflow that are not always executed
1578 into unsigned arithmetic.
1580 2013-11-14 Uros Bizjak <ubizjak@gmail.com>
1582 Backport from mainline
1583 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
1585 * mode-switching.c (optimize_mode_switching): Mark block as
1586 nontransparent, if last_mode at block exit is different from no_mode.
1588 Backport from mainline
1589 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
1592 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
1593 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
1594 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
1595 RTXes that return in AVX256 register.
1597 2013-11-14 Jakub Jelinek <jakub@redhat.com>
1598 Uros Bizjak <ubizjak@gmail.com>
1601 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
1602 operands[2] satisfies_constraint_Z that might have bit 31 set.
1604 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
1606 Backported from mainline
1607 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
1610 * config/i386/i386.c (initial_ix86_tune_features): Set
1611 X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
1612 X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for m_HASWELL.
1614 2013-11-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1616 Backported from mainline
1617 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1620 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage
1622 2013-11-11 Jakub Jelinek <jakub@redhat.com>
1624 Backported from mainline
1625 2013-11-06 Jakub Jelinek <jakub@redhat.com>
1628 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
1629 (expand_assignment): If *bitpos is negative, set *offset
1630 and adjust *bitpos, so that it is not negative.
1632 2013-11-05 Jakub Jelinek <jakub@redhat.com>
1634 PR rtl-optimization/58997
1635 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
1636 get_iv_value to be in iv->mode rather than iv->extend_mode.
1637 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
1638 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
1639 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
1642 2013-11-10 Karlson2k <k2k@narod.ru>
1643 Kai Tietz <ktietz@redhat.com>
1647 * configure.ac: Adding for exported symbols check
1648 and for rdynamic-check executable-extension.
1649 * configure: Regenerated.
1651 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
1654 * config/i386/i386.md (push peepholer/splitter): Use Pmode
1655 with stack_pointer_rtx.
1657 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
1659 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
1661 2013-11-05 Jakub Jelinek <jakub@redhat.com>
1663 PR tree-optimization/58984
1664 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
1665 set *SIZE_P if non-NULL on success.
1666 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
1668 (ipcp_transform_function): Likewise. Punt if size of access
1669 is different from TYPE_SIZE on v->value's type.
1671 2013-11-03 H.J. Lu <hongjiu.lu@intel.com>
1673 Backport from mainline
1674 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
1677 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
1678 (ix86_expand_movmem): Replace copy_addr_to_reg with
1679 ix86_copy_addr_to_reg.
1680 (ix86_expand_setmem): Likewise.
1682 2013-10-29 Uros Bizjak <ubizjak@gmail.com>
1684 Backport from mainline
1685 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
1687 PR rtl-optimization/58079
1688 * combine.c (combine_simplify_rtx): Avoid using SUBST if
1689 simplify_comparison has widened a comparison with an integer.
1691 2013-10-29 Martin Jambor <mjambor@suse.cz>
1694 Backport from mainline
1695 2013-05-09 Martin Jambor <mjambor@suse.cz>
1698 * gimple-fold.c (canonicalize_constructor_val): Call
1699 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1701 Backport from mainline
1702 2013-03-16 Jan Hubicka <jh@suse.cz>
1704 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1705 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1706 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1707 of cgraph_get_create_node.
1708 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1710 2013-10-28 Tom de Vries <tom@codesourcery.com>
1712 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
1713 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
1715 2013-10-26 Uros Bizjak <ubizjak@gmail.com>
1717 Backport from mainline
1718 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
1721 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
1722 Remove CCCmode handling.
1723 <case LTU>: Return 'c' suffix for CCCmode.
1724 <case GEU>: Return 'nc' suffix for CCCmode.
1725 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
1726 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
1727 (*sub<mode>3_cc_overflow): Ditto.
1728 (*subsi3_zext_cc_overflow): Ditto.
1730 2013-10-26 Uros Bizjak <ubizjak@gmail.com>
1732 Backport from mainline
1733 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
1736 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
1737 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
1738 and SI_REG for 64bit SYSV ABI targets.
1740 2013-08-25 Richard Henderson <rth@twiddle.net>
1743 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
1744 instead of create_convert_operand_to.
1745 (maybe_emit_sync_lock_test_and_set): Likewise.
1746 (expand_atomic_compare_and_swap): Likewise.
1747 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
1749 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
1751 PR rtl-optimization/58831
1752 * alias.c (init_alias_analysis): At the beginning of each iteration, set
1753 the reg_seen[N] bit if static_reg_base_value[N] is non-null.
1755 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
1757 * recog.c (search_ofs): New static variable moved from...
1758 (peep2_find_free_register): ...here.
1759 (peephole2_optimize): Initialize it.
1761 2013-10-24 David Edelsohn <dje.gcc@gmail.com>
1763 Backport from mainline
1764 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
1767 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
1768 TARGET_32BIT final condition.
1769 (mulsi3_internal2 and splitter): Same.
1771 2013-10-23 Tom de Vries <tom@codesourcery.com>
1773 PR tree-optimization/58805
1774 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
1776 2013-10-23 Richard Biener <rguenther@suse.de>
1778 Backport from mainline
1779 2013-06-24 Richard Biener <rguenther@suse.de>
1781 PR tree-optimization/57488
1782 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
1784 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1786 Backport from mainline
1787 2013-10-16 Ganesh Gopalasubramanian
1788 <Ganesh.Gopalasubramanian@amd.com>
1790 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
1793 2013-10-16 Jakub Jelinek <jakub@redhat.com>
1795 * BASE-VER: Set to 4.8.3.
1796 * DEV-PHASE: Set to prerelease.
1798 2013-10-16 Release Manager
1800 * GCC 4.8.2 released.
1802 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
1804 Backport from mainline.
1805 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
1807 * config/aarch64/arm_neon.h
1808 (vtbx<1,3>_<psu>8): Fix register constriants.
1810 2013-10-10 Jakub Jelinek <jakub@redhat.com>
1813 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
1814 if any labels are in FALLTHRU_BB, use a special label emitted
1815 immediately after the asm goto insn rather than label_rtx
1817 (expand_asm_stmt): Adjust caller.
1818 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
1819 edge if the last insn in predecessor is a jump with single successor,
1820 but it isn't simplejump_p.
1822 2013-10-09 Jakub Jelinek <jakub@redhat.com>
1824 Backport from mainline
1825 2013-09-26 Richard Biener <rguenther@suse.de>
1827 PR tree-optimization/58539
1828 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
1829 the fact that debug statements are not taking part in loop-closed
1832 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1834 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
1835 loop to work also for 31bit ABI.
1836 Save the stack pointer for frame_size > 0.
1838 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1840 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
1841 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
1842 constraint letters from expanders.
1843 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
1844 retry count to general_operand.
1845 ("tabort"): Give operand 0 a mode.
1846 ("tabort_1"): Add mode and constraint letter for operand 0.
1847 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
1849 2013-10-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
1851 Backport from mainline.
1854 * config/aarch64/aarch64.md (*add_<shift>_<mode>)
1855 (*add_<shift>_si_uxtw,*add_mul_imm_<mode>)
1856 (*sub_<shift>_<mode>)
1857 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
1858 Remove k constraint.
1860 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
1862 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
1864 2013-10-01 Jakub Jelinek <jakub@redhat.com>
1865 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1868 * config/s390/s390.c (s390_chunkify_start): Handle tablejump_p first,
1869 continue when done, for other jumps look through PARALLEL
1872 2013-09-30 Jakub Jelinek <jakub@redhat.com>
1875 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
1876 optimization, punt if sign_bit_p looked through any zero extension.
1878 2013-09-27 Paulo Matos <pmatos@broadcom.com>
1880 Backport from mainline.
1883 2013-03-27 Richard Biener <rguenther@suse.de>
1885 PR tree-optimization/56716
1886 * tree-ssa-structalias.c (perform_var_substitution): Adjust
1887 dumping for ref nodes.
1889 2013-09-27 Paulo Matos <pmatos@broadcom.com>
1891 Backport from mainline.
1893 2013-09-27 Paulo Matos <pmatos@broadcom.com>
1895 * gcc.dg/pr58463.c: New test.
1897 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
1899 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
1900 assignment statements.
1902 2013-09-23 Alan Modra <amodra@gmail.com>
1905 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
1907 2013-09-23 Alan Modra <amodra@gmail.com>
1909 * config/rs6000/predicates.md (add_cint_operand): New.
1910 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
1911 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
1912 using add_cint_operand.
1913 (largetoc_high_plus_aix): Likewise.
1914 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
1916 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
1919 * config/pa/pa.c (pa_option_override): Disable auto increment and
1920 decrement instructions until reload is completed.
1922 * config/pa/pa.md: In "scc" insn patterns, change output template to
1923 handle const0_rtx in reg_or_0_operand operands.
1925 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1927 * omp-low.c (expand_omp_sections): Always pass len - 1 to
1928 GOMP_sections_start, even if !exit_reachable.
1930 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
1932 * arm.c (arm_expand_prologue): Validate architecture supports
1933 LDRD/STRD before accepting tuning preferences.
1934 (arm_expand_epilogue): Likewise.
1936 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
1937 Paolo Carlini <paolo.carlini@oracle.com>
1940 * doc/implement-cxx.texi: Fix references to the C++ standards.
1942 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1944 PR tree-optimization/58088
1945 * fold-const.c (mask_with_trailing_zeros): New function.
1946 (fold_binary_loc): Make sure we don't recurse infinitely
1947 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
1948 Use mask_with_trailing_zeros where appropriate.
1950 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
1953 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
1956 2013-09-13 Christian Bruel <christian.bruel@st.com>
1959 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
1961 2013-09-11 Andi Kleen <ak@linux.intel.com>
1963 Backport from mainline
1964 * doc/extend.texi: Use __atomic_store_n instead of
1965 __atomic_store in HLE example.
1967 2013-09-11 Andi Kleen <ak@linux.intel.com>
1969 Backport from mainline
1970 * doc/extend.texi: Dont use __atomic_clear in HLE
1973 2013-09-11 Andi Kleen <ak@linux.intel.com>
1975 Backport from mainline
1976 * doc/extend.texi: Document that __atomic_clear and
1977 __atomic_test_and_set should only be used with bool.
1979 2013-09-11 Richard Biener <rguenther@suse.de>
1982 * passes.c (init_optimization_passes): Split critical edges
1983 before late uninit warning pass in the -Og pipeline.
1985 2013-09-11 Jakub Jelinek <jakub@redhat.com>
1987 PR tree-optimization/58385
1988 * fold-const.c (build_range_check): If both low and high are NULL,
1989 use omit_one_operand_loc to preserve exp side-effects.
1991 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
1994 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
1995 support conditional execution.
1996 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
1998 2013-09-10 Jakub Jelinek <jakub@redhat.com>
2000 PR rtl-optimization/58365
2001 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
2002 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
2005 2013-09-09 Jakub Jelinek <jakub@redhat.com>
2007 PR tree-optimization/58364
2008 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
2009 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
2010 the current range can't be an unconditional true or false.
2012 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2015 Backport from mainline
2016 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2018 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2019 Use gen_int_mode rather than GEN_INT.
2021 2013-09-09 Richard Biener <rguenther@suse.de>
2023 Backport from mainline
2024 2013-08-27 Richard Biener <rguenther@suse.de>
2026 PR tree-optimization/57521
2027 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
2028 one edge is non-critical.
2029 (find_phi_replacement_condition): Make sure to use a non-critical
2030 edge. Cleanup and remove old bug workarounds.
2031 (bb_postdominates_preds): Remove.
2032 (if_convertible_loop_p_1): Do not compute post-dominators.
2033 (combine_blocks): Do not free post-dominators.
2034 (main_tree_if_conversion): Likewise.
2036 2013-09-09 Richard Biener <rguenther@suse.de>
2038 Backport from mainline
2039 2013-09-03 Richard Biener <rguenther@suse.de>
2042 * fold-const.c (negate_expr_p): Fix division case.
2043 (negate_expr): Likewise.
2045 2013-09-09 Richard Biener <rguenther@suse.de>
2047 Backport from mainline
2048 2013-08-29 Richard Biener <rguenther@suse.de>
2050 PR tree-optimization/57685
2051 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
2052 single-use operands to avoid exponential complexity.
2054 2013-09-09 Richard Biener <rguenther@suse.de>
2056 Backport from mainline
2057 2013-08-30 Richard Biener <rguenther@suse.de>
2059 PR tree-optimization/58223
2060 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
2061 (has_anti_or_output_dependence): ... this and adjust to also
2062 look for output dependences.
2063 (mark_nodes_having_upstream_mem_writes): Adjust.
2064 (rdg_flag_uses): Likewise.
2066 2013-09-03 Richard Biener <rguenther@suse.de>
2068 Backport from mainline
2069 2013-08-29 Richard Biener <rguenther@suse.de>
2071 PR tree-optimization/58246
2072 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
2073 handle the dominance check inside a basic-block.
2075 2013-09-03 Richard Biener <rguenther@suse.de>
2077 Backport from mainline
2078 2013-08-30 Richard Biener <rguenther@suse.de>
2080 PR tree-optimization/58228
2081 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
2082 allow invariant loads in nested loop vectorization.
2084 2013-09-03 Richard Biener <rguenther@suse.de>
2086 Backport from mainline
2087 2013-08-30 Richard Biener <rguenther@suse.de>
2089 PR tree-optimization/58010
2090 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
2091 assert that we have a loop-closed PHI.
2093 2013-09-01 Uros Bizjak <ubizjak@gmail.com>
2095 Backport from mainline
2096 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
2098 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
2099 "cmp" RTX before signed_comparison_operator check to account
2102 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
2104 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
2106 2013-08-30 Jakub Jelinek <jakub@redhat.com>
2108 PR tree-optimization/58277
2109 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
2110 after seeing too many stmts with vdef in between dombb and current
2111 bb, invalidate everything.
2113 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
2115 Backport from mainline
2116 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
2119 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
2121 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
2122 rtx (*) (rtx, ...) with insn_gen_fn.
2123 * genoutput.c (output_insn_data): Cast gen_? function pointers to
2124 insn_gen_fn::stored_funcptr. Add initializer braces.
2126 Backport from mainline
2127 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
2130 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
2131 (rs6000_emit_swdiv_high_precision, rs6000_emit_swdiv_low_precision,
2132 rs6000_emit_swrsqrt): Don't cast result of GEN_FCN to gen_2arg_fn_t.
2134 2013-08-29 Jakub Jelinek <jakub@redhat.com>
2136 Backported from mainline
2137 2013-05-27 Richard Biener <rguenther@suse.de>
2140 PR tree-optimization/57417
2141 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2143 (set_ssa_val_to): Compare addresses using
2144 get_addr_base_and_unit_offset.
2146 PR tree-optimization/57396
2147 * tree-affine.c (double_int_constant_multiple_p): Properly
2148 return false for val == 0 and div != 0.
2150 PR tree-optimization/57343
2151 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2152 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2153 (number_of_iterations_cond): Do not build the folded tree.
2155 2013-08-28 Jakub Jelinek <jakub@redhat.com>
2158 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
2160 2013-08-28 Richard Biener <rguenther@suse.de>
2162 Backport from mainline
2163 2013-06-24 Richard Biener <rguenther@suse.de>
2166 * passes.c (init_optimization_passes): Move pass_fold_builtins
2167 and pass_dce earlier with -Og.
2169 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
2171 Backport from mainline
2172 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
2174 * config/i386/driver-i386.c (host_detect_local_cpu): Update
2175 Haswell processor detection.
2177 Backport from mainline
2178 2013-08-27 Christian Widmer <shadow@umbrox.de>
2181 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
2182 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
2183 AVX2 capable processors.
2185 2013-08-23 Jakub Jelinek <jakub@redhat.com>
2188 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
2189 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
2191 PR tree-optimization/58209
2192 * tree-tailcall.c (find_tail_calls): Give up for pointer result types
2193 if m or a is non-NULL.
2195 2013-08-21 Richard Earnshaw <rearnsha@arm.com>
2198 * arm.c (aapcs_vfp_allocate): Decompose the argument if the
2199 suggested mode for the assignment isn't compatible with the
2202 2013-08-20 Alan Modra <amodra@gmail.com>
2205 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
2206 (rs6000_emit_epilogue): Likewise.
2208 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
2209 Jakub Jelinek <jakub@redhat.com>
2211 Backport from mainline
2212 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
2213 destination and source operands.
2215 2013-08-18 Jakub Jelinek <jakub@redhat.com>
2217 PR tree-optimization/58006
2218 * tree-parloops.c (take_address_of): Don't ICE if get_name
2220 (eliminate_local_variables_stmt): Remove clobber stmts.
2222 2013-08-16 Jakub Jelinek <jakub@redhat.com>
2224 PR tree-optimization/58164
2225 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
2226 walk gimple_goto_dest of GIMPLE_GOTO.
2228 PR tree-optimization/58165
2229 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
2230 bi_call must be the last stmt in a bb, don't split_block, instead
2231 use fallthru edge from it and give up if there is none.
2232 Release conds vector when returning early.
2234 2013-08-15 David Given <dg@cowlark.com>
2236 Backport from mainline
2237 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
2239 * lra-constraints.c (process_alt_operands): Use #if HAVE_ATTR_enable
2242 2013-08-14 Jakub Jelinek <jakub@redhat.com>
2244 PR tree-optimization/58145
2245 * tree-sra.c (build_ref_for_offset): If prev_base has
2246 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
2248 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2250 * config/s390/htmxlintrin.h: Add file missing from last commit.
2251 * config/s390/htmintrin.h: Likewise.
2252 * config/s390/s390intrin.h: Likewise.
2254 2013-08-14 Uros Bizjak <ubizjak@gmail.com>
2256 Backport from mainline
2257 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
2259 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
2260 when Pmode != word_mode. Add length_address attribute.
2261 (sse3_monitor_<mode>): Merge from sse3_monitor and
2262 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
2263 Pmode != word_mode. Update insn length attribute.
2264 * config/i386/i386.c (ix86_option_override_internal): Update
2265 ix86_gen_monitor selection for merged sse3_monitor insn.
2267 2013-08-14 Jakub Jelinek <jakub@redhat.com>
2268 Alexandre Oliva <aoliva@redhat.com>
2271 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
2272 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
2273 there also UNSPEC_PLTOFF.
2275 2013-08-13 Jakub Jelinek <jakub@redhat.com>
2278 * asan.c (instrument_strlen_call): Fix typo in comment.
2279 Use char * type even for the lhs of POINTER_PLUS_EXPR.
2281 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
2283 Backport from mainline
2284 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2286 PR rtl-optimization/57459
2287 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2288 type when setting live regs.
2290 2013-08-13 Marek Polacek <polacek@redhat.com>
2291 Jakub Jelinek <jakub@redhat.com>
2293 PR tree-optimization/57980
2294 * tree-tailcall.c (process_assignment): Return false
2295 when not dealing with integers or floats.
2297 2013-08-12 Andrew Haley <aph@redhat.com>
2299 Backport from mainline:
2300 * 2013-07-11 Andreas Schwab <schwab@suse.de>
2302 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
2304 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
2306 Backport from mainline
2307 2013-08-12 Perez Read <netfirewall@gmail.com>
2310 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
2311 operand 0 for intel asm alternative.
2312 (*movabs<mode>_2): Ditto for operand 1.
2314 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2316 Backport from mainline:
2317 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2319 * config/arm/neon.md (vcond): Fix floating-point vector
2320 comparisons against 0.
2322 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2324 Backport from mainline:
2325 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2327 * config/arm/neon.md (movmisalign<mode>): Disable when we
2328 don't allow unaligned accesses.
2329 (*movmisalign<mode>_neon_store): Likewise.
2330 (*movmisalign<mode>_neon_load): Likewise.
2331 (*movmisalign<mode>_neon_store): Likewise.
2332 (*movmisalign<mode>_neon_load): Likewise.
2334 2013-08-06 Martin Jambor <mjambor@suse.cz>
2337 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
2338 MEM_REF has proper alignment information.
2340 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
2342 PR rtl-optimization/57708
2343 * recog.c (peep2_find_free_register): Validate all regs in a
2346 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
2348 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
2349 the implied StoreLoad barrier for atomic operations if before.
2351 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2353 Backports from mainline:
2354 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2356 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
2357 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
2358 (struct machine_function): Add tbegin_p.
2359 (s390_canonicalize_comparison): Fold CC mode compares to
2360 conditional jump if possible.
2361 (s390_emit_jump): Return the emitted jump.
2362 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
2363 Handle CCRAWmode compares.
2364 (s390_option_override): Default to -mhtm if available.
2365 (s390_reg_clobbered_rtx): Handle floating point regs as well.
2366 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
2367 FPRs instead of df_regs_ever_live_p.
2368 (s390_optimize_nonescaping_tx): New function.
2369 (s390_init_frame_layout): Extend clobbered_regs array to cover
2371 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
2372 (s390_expand_tbegin): New function.
2373 (enum s390_builtin): New enum definition.
2374 (code_for_builtin): New array definition.
2375 (s390_init_builtins): New function.
2376 (s390_expand_builtin): New function.
2377 (TARGET_INIT_BUILTINS): Define.
2378 (TARGET_EXPAND_BUILTIN): Define.
2379 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
2380 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
2381 (s390_alc_comparison): Likewise.
2382 * config/s390/s390-modes.def: Add CCRAWmode.
2383 * config/s390/s390.h (processor_flags): Add PF_TX.
2384 (TARGET_CPU_HTM): Define macro.
2385 (TARGET_HTM): Define macro.
2386 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
2387 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
2388 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
2389 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
2390 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
2392 (TBEGIN_MASK, TBEGINC_MASK): New constants.
2393 ("*cc_to_int"): Move up.
2394 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
2395 constants other than 0.
2396 ("*ccraw_to_int"): New insn and splitter definition.
2397 ("tbegin", "tbegin_nofloat", "tbegin_retry")
2398 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
2399 ("tx_assist"): New expander.
2400 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
2401 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
2402 * config/s390/s390.opt: Add -mhtm option.
2403 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
2404 * config/s390/htmxlintrin.h: New file.
2405 * config/s390/htmintrin.h: New file.
2406 * config/s390/s390intrin.h: New file.
2407 * doc/extend.texi: Document htm builtins.
2408 * config.gcc: Add the new header files to extra_headers.
2410 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2412 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
2413 enabled without -march=zEC12.
2414 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
2417 2013-08-01 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2419 Backport from mainline
2420 2013-05-13 Ganesh Gopalasubramanian
2421 <Ganesh.Gopalasubramanian@amd.com>
2423 * config/i386/i386.c (processor_target_table): Modified default
2424 alignment values for AMD BD and BT architectures.
2426 2013-07-31 Sriraman Tallam <tmsriram@google.com>
2428 * config/i386/i386.c (dispatch_function_versions): Fix array
2429 indexing of function_version_info to match actual_versions.
2431 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
2433 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
2434 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
2436 2013-07-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2438 Backport from mainline
2439 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2441 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
2443 2013-07-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2445 * config/s390/linux-unwind.h: Use the proper dwarf to hard reg
2446 mapping for FPRs when creating the fallback framestate.
2448 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2450 * config/s390/s390.md ("movcc"): Swap load and store instructions.
2452 2013-07-25 Terry Guo <terry.guo@arm.com>
2454 Backport from mainline:
2455 2013-07-25 Terry Guo <terry.guo@arm.com>
2457 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
2458 shift_add/shift_sub0/shift_sub1 RTXs.
2460 2013-07-22 Iain Sandoe <iain@codesourcery.com>
2462 Backport from mainline:
2463 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
2465 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
2466 it is not needed after split.
2468 2013-07-20 Iain Sandoe <iain@codesourcery.com>
2471 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
2472 second label for nonlocal goto receivers. Don't output pic base labels
2473 unless we're producing PIC; mark that action unreachable().
2474 (ix86_save_reg): If the function contains a nonlocal label, save the
2476 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
2477 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
2478 (update_pic_label_number_if_needed): New.
2479 (machopic_output_function_base_name): Adjust for nonlocal receiver
2481 (machopic_should_output_picbase_label): New.
2482 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
2483 (nonlocal_goto_receiver): New insn and split.
2485 2013-07-19 Wei Mi <wmi@google.com>
2487 Backport from mainline:
2488 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
2489 Wei Mi <wmi@google.com>
2491 PR rtl-optimization/57878
2492 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
2493 top. Promote lra_assert to gcc_assert.
2494 (reload_pseudo_compare_func): Check regs first for reload pseudos.
2496 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
2498 Backport from 2013-07-19 trunk r201051.
2501 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
2502 * config/avr/avr.md (adjust_len): Add `round'.
2503 * config/avr/avr-protos.h (avr_out_round): New prototype.
2504 (avr_out_plus): Add `out_label' argument.
2505 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
2506 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
2507 Handle the case where `insn' is just a pattern.
2508 (avr_out_bitop): Handle the case where `insn' is just a pattern.
2509 (avr_out_round): New function.
2510 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
2512 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
2514 * config/i386/bmiintrin.h (_bextr_u32): New.
2515 (_bextr_u64): Ditto.
2520 (_blsmsk_u32): Ditto.
2521 (_blsmsk_u64): Ditto.
2522 (_tzcnt_u32): Ditto.
2523 (_tzcnt_u64): Ditto.
2525 2013-07-17 James Greenhalgh <james.greenhalgh@arm.com>
2527 Backport From mainline:
2528 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
2530 * config/aarch64/aarch64-builtins.c
2531 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
2532 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
2534 * config/aarch64/aarch64-simd.md
2535 (aarch64_ld1<VALL:mode>): New.
2536 (aarch64_st1<VALL:mode>): Likewise.
2537 * config/aarch64/arm_neon.h
2538 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
2540 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
2542 Backport from 2013-07-11 trunk r200901.
2545 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
2546 name seen by assembler/linker if available.
2548 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
2550 Backport from 2013-07-10 trunk r200872.
2553 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
2556 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
2558 Backport from 2013-07-10 trunk r200870.
2561 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
2562 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
2563 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
2564 Remove duplicate devices.
2565 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
2566 * config/avr/t-multilib: Regenerate.
2567 * config/avr/avr-tables.opt: Regenerate.
2568 * doc/avr-mmcu.texi: Regenerate.
2570 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
2573 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
2575 2013-07-09 Joseph Myers <joseph@codesourcery.com>
2577 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
2578 adjust register size for TDmode and TFmode for VSX registers.
2580 2013-07-08 Kai Tietz <ktietz@redhat.com>
2582 Backport from mainline
2584 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
2585 hook_bool_const_tree_true.
2587 2013-07-08 Uros Bizjak <ubizjak@gmail.com>
2589 Backport from mainline
2590 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
2592 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
2593 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
2595 Backport from mainline
2596 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
2598 * config/i386/sse.md (sse_movlhps): Change alternative 3
2599 of operand 2 to "m".
2601 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
2603 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
2605 2013-07-08 Jakub Jelinek <jakub@redhat.com>
2607 PR rtl-optimization/57829
2608 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
2609 mask bits outside of mode are just sign-extension from mode to HWI.
2611 2013-07-03 Jakub Jelinek <jakub@redhat.com>
2614 * config/i386/predicates.md (vsib_address_operand): Disallow
2615 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
2617 2013-06-30 Terry Guo <terry.guo@arm.com>
2619 Backport from mainline
2620 2013-03-27 Bin Cheng <bin.cheng@arm.com>
2623 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
2624 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
2627 2013-06-28 Jakub Jelinek <jakub@redhat.com>
2630 * config/i386/i386.c (ix86_expand_builtin): If target == NULL
2631 and mode is VOIDmode, don't create a VOIDmode pseudo to copy result
2634 2013-06-27 Jakub Jelinek <jakub@redhat.com>
2637 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
2638 constraints of operand 1 and 2.
2641 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
2642 to match RTL canonicalization. Swap predicates and
2643 constraints of operand 1 and 2.
2645 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
2646 decl before the loop, initialize to NULL.
2647 (vectorizable_load): Initialize ptr_incr to NULL.
2649 2013-06-24 Martin Jambor <mjambor@suse.cz>
2651 PR tree-optimization/57358
2652 * ipa-prop.c (parm_ref_data_preserved_p): Always return true when
2655 2013-06-24 Alan Modra <amodra@gmail.com>
2657 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
2658 (gen_easy_altivec_constant): Likewise.
2659 * config/rs6000/predicates.md (easy_vector_constant_add_self,
2660 easy_vector_constant_msb): Likewise.
2662 2013-06-21 Uros Bizjak <ubizjak@gmail.com>
2664 Backport from mainline
2665 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
2668 * config/i386/i386.c (construct_container): Report error if
2669 long double is used with disabled x87 float returns.
2671 2013-06-20 Wei Mi <wmi@google.com>
2673 Backport from mainline
2674 2013-06-19 Wei Mi <wmi@google.com>
2676 PR rtl-optimization/57518
2677 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2678 if regno is used in paradoxical subreg.
2679 (update_equiv_regs): Check pdx_subregs[regno] before
2680 set a reg to be equivalent with a mem.
2683 2013-06-20 David Edelsohn <dje.gcc@gmail.com>
2685 Backport from mainline
2686 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
2689 * collect2.c (collect_atexit): New.
2690 (collect_exit): Delete.
2691 (main): Register collect_atexit with atexit.
2692 (collect_wait): Change collect_exit to exit.
2694 * collect2.h (collect_exit): Delete.
2695 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2697 2013-06-19 Matthias Klose <doko@ubuntu.com>
2700 * file-find.h (find_a_file): Add a mode parameter.
2701 * file-find.c (find_a_file): Likewise.
2702 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2703 with X_OK for the executables.
2704 * collect2.c (main): Call find_a_file with X_OK.
2706 2013-06-19 Igor Zamyatin <igor.zamyatin@intel.com>
2708 * doc/invoke.texi (core-avx2): Document.
2709 (atom): Updated with MOVBE.
2711 2013-06-19 Jakub Jelinek <jakub@redhat.com>
2714 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2715 PERSONALITY in $PATH derived prefixes.
2717 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
2720 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2721 that now in C++ the value is correct per the C++ standards.
2723 2013-06-19 Alan Modra <amodra@gmail.com>
2725 Apply mainline patches
2726 2013-06-13 Alan Modra <amodra@gmail.com>
2727 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2728 * config/rs6000/rs6000.md (signbittf2): New insn.
2729 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2730 (abstf2_internal, cmptf_internal2): Likewise.
2731 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2733 2013-06-11 Anton Blanchard <anton@samba.org>
2734 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2735 correct shift value in little-endian mode.
2737 2013-06-07 Alan Modra <amodra@gmail.com>
2738 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2741 2013-06-04 Alan Modra <amodra@gmail.com>
2742 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2745 2013-05-10 Alan Modra <amodra@gmail.com>
2746 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2747 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2748 * configure: Regenerate.
2750 2013-05-09 Alan Modra <amodra@gmail.com>
2751 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2753 * configure: Regenerate.
2755 2013-05-07 Anton Blanchard <anton@samba.org>
2756 * configure.ac (HAVE_LD_LARGE_TOC): Use right linker emulation
2757 for powerpc64 little endian.
2758 * configure: Regenerate.
2760 2013-05-06 Alan Modra <amodra@gmail.com>
2761 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2762 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2763 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2764 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2765 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2766 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2768 2013-05-06 Alan Modra <amodra@gmail.com>
2769 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2770 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2771 (DEFAULT_ASM_ENDIAN): Define.
2772 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2773 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2774 Update -K PIC clause from sysv4.h.
2775 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2776 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2778 2013-05-06 Alan Modra <amodra@gmail.com>
2779 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2780 twice for little-endian.
2781 (ashrdi3_no_power, ashrdi3): Support little-endian.
2783 2013-04-25 Alan Modra <amodra@gmail.com>
2784 * config.gcc: Support little-endian powerpc-linux targets.
2785 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2786 (LINK_OS_LINUX_SPEC): Define.
2787 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2788 Preserve MASK_LITTLE_ENDIAN.
2789 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2790 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
2791 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
2792 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
2793 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
2794 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
2795 Correct fp word order for little-endian. Don't shift toc entries
2796 smaller than a word for little-endian.
2797 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
2798 (bswapdi2 splits): Correct low-part subreg for little-endian.
2799 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
2800 low/high where such is correct only for be.
2801 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
2802 little-endian for -mcall-aixdesc.
2804 2013-06-12 Martin Jambor <mjambor@suse.cz>
2806 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2807 within bounds at the beginning of the function.
2809 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2811 PR tree-optimization/57537
2812 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2813 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2815 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
2817 Backport from mainline
2818 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
2820 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
2821 cmp_code to construct REG_EQUAL note.
2823 2013-06-10 Oleg Endo <olegendo@gcc.gnu.org>
2825 Backport from mainline
2826 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
2829 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2830 (*fmasf4, *fmasf4_media): New insns.
2832 2013-06-09 Jakub Jelinek <jakub@redhat.com>
2835 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
2836 that operands[2] doesn't overlap with operands[0].
2838 2013-06-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2840 * recog.c (offsettable_address_addr_space_p): Fix calculation of
2841 address mode. Move pointer mode initialization to the same place.
2843 2013-06-07 Sofiane Naci <sofiane.naci@arm.com>
2845 Backport from mainline
2846 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2848 2013-06-07 Uros Bizjak <ubizjak@gmail.com>
2850 Backport from mainline
2851 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
2853 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2854 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2856 Backport from mainline
2857 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
2860 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2861 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2862 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2864 2013-06-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2866 Backport from mainline.
2867 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2869 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2871 2013-06-03 James Greenhalgh <james.greenhalgh@arm.com>
2873 Backport from mainline.
2874 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2876 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2877 format specifier in 'X' case.
2879 2013-05-31 Richard Henderson <rth@redhat.com>
2882 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2883 (ix86_reorg): Call it.
2885 2012-05-31 Jakub Jelinek <jakub@redhat.com>
2887 * BASE-VER: Set to 4.8.2.
2888 * DEV-PHASE: Set to prerelease.
2890 2013-05-31 Release Manager
2892 * GCC 4.8.1 released.
2894 2013-05-24 Greta Yorsh <Greta.Yorsh@arm.com>
2896 Backport from mainline
2897 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2900 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2901 generating simple_return for naked functions.
2903 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2906 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2907 that index is not negative.
2909 2013-05-23 Martin Jambor <mjambor@suse.cz>
2912 * tree.h (contains_bitfld_component_ref_p): Declare.
2913 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2914 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its caller.
2915 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2916 not access a bit-field. Assert all final offsets are byte-aligned.
2918 2013-05-23 Richard Biener <rguenther@suse.de>
2920 PR rtl-optimization/57341
2921 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2922 instead of true_dependence.
2924 2013-05-23 Jakub Jelinek <jakub@redhat.com>
2927 * expmed.c (store_split_bit_field): If op0 is a REG or
2928 SUBREG of a REG, don't lower unit. Handle unit not being
2929 always BITS_PER_WORD.
2931 2013-05-22 Uros Bizjak <ubizjak@gmail.com>
2934 * config/i386/i386.md (*movti_internal_rex64): Emit movaps/movups
2935 for non-sse2 targets.
2936 (*movti_internal): Simplify mode attribute calculation.
2938 2013-05-22 Richard Biener <rguenther@suse.de>
2940 Backport from mainline
2941 2013-05-21 Richard Biener <rguenther@suse.de>
2943 PR tree-optimization/57318
2944 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2945 estimate stmts with side-effects as likely eliminated.
2947 2013-05-21 Richard Biener <rguenther@suse.de>
2949 PR tree-optimization/57330
2950 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2951 preserve the call stmts fntype.
2953 2013-05-21 Richard Biener <rguenther@suse.de>
2955 PR tree-optimization/57303
2956 * tree-ssa-sink.c (statement_sink_location): Properly handle
2959 2013-05-21 Magnus Granberg <baldrick@free.fr>
2962 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2964 2013-05-21 Eric Botcazou <ebotcazou@adacore.com>
2966 Backport from mainline
2967 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2969 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2970 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2972 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2974 PR rtl-optimization/57281
2975 PR rtl-optimization/57300
2976 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2977 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2978 what the other splitter did if the registers are dead.
2980 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
2982 Backport from mainline
2983 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2985 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2986 cache parameters using detect_caches_amd also for CYRIX,
2987 NSC and TM2 signatures.
2989 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2990 Dzianis Kahanovich <mahatma@eu.by>
2994 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2995 VIA/Centaur processors and determine their cache parameters
2996 using detect_caches_amd.
2998 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
3000 * config/i386/i386.c (ix86_option_override_internal): Update
3001 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
3002 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3003 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3004 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3006 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3008 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3010 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3013 PR tree-optimization/57051
3014 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3015 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3017 2013-05-16 Jakub Jelinek <jakub@redhat.com>
3019 * omp-low.c (extract_omp_for_data): For collapsed loops,
3020 if at least one of the loops is known at compile time to
3021 iterate zero times, set count to 0.
3022 (expand_omp_regimplify_p): New function.
3023 (expand_omp_for_generic): For collapsed loops, if at least
3024 one of the loops isn't known to iterate at least once,
3025 add runtime check with setting count to 0.
3026 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3027 For unsigned types if it isn't known at compile time that
3028 the loop will iterate at least once, add runtime check to bypass
3029 the whole loop if initial condition isn't true.
3031 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3034 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3035 the case when both op0 and op1 have VOIDmode.
3037 2013-05-13 Jakub Jelinek <jakub@redhat.com>
3039 PR tree-optimization/57230
3040 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3043 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
3045 * config/epiphany/epiphany.c (epiphany_init): Check size of
3046 NUM_MODES_FOR_MODE_SWITCHING.
3047 (epiphany_expand_prologue):
3048 Remove CONFIG_REGNUM initial value handling code.
3049 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3050 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3051 (emit_set_fp_mode, epiphany_mode_after): Likewise.
3052 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3053 Don't return 1 for FP_MODE_NONE.
3054 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3055 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3056 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3057 * config/epiphany/epiphany.md (save_config): New pattern.
3059 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
3061 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3062 Add mthumb/march=armv7-a multilib.
3063 Add mthumb/march=armv7-r multilib.
3064 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3066 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
3069 * config/v850/t-rtems: Add more multilibs.
3071 2013-05-10 Richard Biener <rguenther@suse.de>
3073 PR tree-optimization/57214
3074 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3075 not propagate from SSA names that occur in abnormal PHI nodes.
3077 2013-05-10 Alan Modra <amodra@gmail.com>
3080 * varasm.c (default_elf_select_section): Move !DECL_P check..
3081 (get_named_section): ..to here before calling get_section_name.
3083 (default_section_type_flags): Add DECL_P check.
3084 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3085 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3087 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
3089 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3090 When using gen_stack_adjust_str with a register offset, add a
3091 REG_FRAME_RELATED_EXPR note.
3093 2013-05-09 Martin Jambor <mjambor@suse.cz>
3096 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
3097 * ipa-cp.c (find_aggregate_values_for_callers_subset): Fill in the
3098 by_ref flag of ipa_agg_replacement_value structures.
3099 (known_aggs_to_agg_replacement_list): Likewise.
3100 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
3101 (read_agg_replacement_chain): Likewise.
3102 (ipcp_transform_function): Also check that by_ref flags match.
3104 2013-05-08 Diego Novillo <dnovillo@google.com>
3110 2012-08-17 Diego Novillo <dnovillo@google.com>
3113 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3114 * config.in: Regenerate.
3115 * configure: Regenerate.
3116 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is
3119 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
3121 PR tree-optimization/57200
3122 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3123 Only call inform if the preceding warning_at returns true.
3125 2013-05-07 Jakub Jelinek <jakub@redhat.com>
3127 PR tree-optimization/57149
3128 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3129 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3130 collect_phi_def_edges, execute_late_warn_uninitialized): Use
3131 uninit_undefined_value_p instead of ssa_undefined_value_p.
3134 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3135 for modifier == EXPAND_INITIALIZER.
3137 2013-05-07 Richard Biener <rguenther@suse.de>
3139 Backport from mainline
3140 2013-05-06 Richard Biener <rguenther@suse.de>
3142 PR tree-optimization/57185
3143 * tree-parloops.c (add_field_for_reduction): Handle anonymous
3146 2013-04-19 Richard Biener <rguenther@suse.de>
3148 PR tree-optimization/57000
3149 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
3151 2013-05-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3154 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3157 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
3158 to save TFmode registers and DImode to save TImode registers for
3159 caller save operations.
3160 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
3161 mark being partially clobbered since they only use the first
3164 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
3165 and TDmode only use the upper 64-bits of each VSX register.
3167 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3170 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3172 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
3174 Backport from mainline
3175 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
3178 * config/i386/i386.c (add_parameter_dependencies): Add dependence
3179 between "first_arg" and "insn", not "last" and "insn".
3181 2013-05-03 Jakub Jelinek <jakub@redhat.com>
3183 PR rtl-optimization/57130
3184 * combine.c (make_compound_operation) <case SUBREG>: Pass
3185 SET instead of COMPARE as in_code to the recursive call
3188 Backported from mainline
3189 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3191 PR tree-optimization/57051
3192 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3193 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3196 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
3198 * fold-const.c (fold_binary_loc): Call const_binop also for mixed
3199 vector-scalar operations.
3201 2013-05-03 Marek Polacek <polacek@redhat.com>
3203 Backport from mainline
3204 2013-04-25 Marek Polacek <polacek@redhat.com>
3206 PR tree-optimization/57066
3207 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
3209 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3211 Backport from mainline
3212 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3214 * lra-constraints.c (process_alt_operands): Add checking alt
3215 number to choose the best alternative.
3217 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
3220 * lra-constraints.c (best_small_class_operands_num): Remove.
3221 (process_alt_operands): Remove small_class_operands_num. Take
3222 small classes operands into losers and only if the operand is not
3223 matched. Modify debugging output.
3224 (curr_insn_transform): Remove best_small_class_operands_num.
3227 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3229 Backport from mainline
3230 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3233 * lra-constraints.c (process_alt_operands): Discourage a bit more
3234 using memory for pseudos. Print cost dump for alternatives.
3235 Modify cost values for conflicts with early clobbers.
3236 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3238 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3240 Backport from mainline
3241 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3243 PR rtl-optimizations/57046
3244 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3245 for multi-reg splits.
3247 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3249 Backport from mainline
3250 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
3253 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
3254 a set sp if no stack realignment.
3256 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3258 Backport from mainline
3259 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
3261 PR rtl-optimization/56999
3262 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
3264 (lra_coalesce): Remove split_origin_bitmap and related code.
3265 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
3266 ranges if necessary.
3268 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3270 Backport from mainline
3271 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3273 PR rtl-optimization/56847
3274 * lra-constraints.c (process_alt_operands): Discourage alternative
3275 with non-matche doffsettable memory constraint fro memory with
3278 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3280 Backport from mainline
3281 2013-03-28 Ian Bolton <ian.bolton@arm.com>
3283 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
3284 record only when desired or required.
3286 2013-04-30 Jakub Jelinek <jakub@redhat.com>
3288 PR tree-optimization/57104
3289 * tsan.c (instrument_expr): Don't instrument accesses to
3290 DECL_HARD_REGISTER VAR_DECLs.
3292 2013-04-30 Uros Bizjak <ubizjak@gmail.com>
3294 Backport from mainline
3295 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3298 * config/i386/i386.md (*zero_extendsidi2_rex64): Add "!" to m->?*y
3300 (*zero_extendsidi2): Ditto.
3302 Backport from mainline
3303 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3306 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3308 2013-04-29 Richard Biener <rguenther@suse.de>
3311 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3313 (move_stmt_r): Remove redundant checking.
3315 2013-04-29 Christian Bruel <christian.bruel@st.com>
3318 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3320 2013-04-29 Jakub Jelinek <jakub@redhat.com>
3322 PR tree-optimization/57083
3323 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3324 non-singleton shift count range, zero extend low_bound for uns case.
3326 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
3328 * stor-layout.c (finalize_size_functions): Allocate a structure and
3329 reset cfun before dumping the functions.
3331 2013-04-27 Jakub Jelinek <jakub@redhat.com>
3334 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3335 use xop_pmacsdqh if uns_p.
3336 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3337 the immediate rotate count.
3339 2013-04-25 Jakub Jelinek <jakub@redhat.com>
3341 PR rtl-optimization/57003
3342 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3343 call note_stores with kill_clobbered_value callback again after
3344 killing regs_invalidated_by_call.
3346 2013-04-25 Ian Bolton <ian.bolton@arm.com>
3348 Backported from mainline.
3349 2013-03-22 Ian Bolton <ian.bolton@arm.com>
3351 * config/aarch64/aarch64.c (aarch64_print_operand): New
3352 format specifier for printing a constant in hex.
3353 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
3354 format specifier for printing second operand.
3356 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3358 Backported from mainline.
3359 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3361 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3362 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3363 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3365 2013-04-24 Greta Yorsh <Greta.Yorsh@arm.com>
3367 Backported from mainline.
3369 * config/arm/arm.c (load_multiple_sequence): Require SP
3370 as base register for loads if SP is in the register list.
3372 2013-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3373 Steven Bosscher <steven@gcc.gnu.org>
3375 Backported from mainline.
3376 PR rtl-optimization/56605
3377 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
3379 2013-04-22 Marek Polacek <polacek@redhat.com>
3381 Backported from mainline.
3382 2013-04-22 Marek Polacek <polacek@redhat.com>
3385 * tsan.c (instrument_expr): Don't instrument expression
3386 in case its size is zero.
3388 2013-04-22 Yufeng Zhang <yufeng.zhang@arm.com>
3390 Backported from mainline.
3391 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
3392 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
3393 (aarch64_start_file): Use the new function.
3395 2013-04-18 Jakub Jelinek <jakub@redhat.com>
3397 PR tree-optimization/56984
3398 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
3399 and (x >> M) >= N don't register any assertion if N << M is the
3402 2013-04-17 David Edelsohn <dje.gcc@gmail.com>
3405 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3407 2013-04-15 Jakub Jelinek <jakub@redhat.com>
3409 PR tree-optimization/56962
3410 * gimple-ssa-strength-reduction.c (record_increment): Only set
3411 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3412 either rhs1 or rhs2 is equal to c->base_expr.
3414 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3416 * emit-rtl.c (reset_all_used_flags): New function.
3417 (verify_rtl_sharing): Call reset_all_used_flags before and after
3418 performing the checks.
3420 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
3423 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3424 (S_MODES): Set H_MODE bit.
3425 (SF_MODES): Set only S_MODE and SF_MODE bits.
3426 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3427 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3428 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3429 <MODE_FLOAT>: Likewise.
3431 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
3434 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
3435 lra_in_progress for return.
3437 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3439 PR tree-optimization/56918
3440 PR tree-optimization/56920
3441 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
3442 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
3443 argument to rshift method.
3445 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3447 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as
3450 2013-04-11 Marek Polacek <polacek@redhat.com>
3452 PR tree-optimization/48184
3453 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum
3456 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
3458 Backported from mainline.
3459 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
3461 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
3462 floating-point vector comparisons against 0.
3464 2013-04-11 Jakub Jelinek <jakub@redhat.com>
3466 PR tree-optimization/56899
3467 * fold-const.c (extract_muldiv_1): Apply distributive law
3468 only if TYPE_OVERFLOW_WRAPS (ctype).
3470 2013-04-10 David S. Miller <davem@davemloft.net>
3472 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
3473 or -mcpu=hypersparc.
3475 2013-04-10 Jakub Jelinek <jakub@redhat.com>
3477 Backported from mainline
3478 2013-04-09 Jakub Jelinek <jakub@redhat.com>
3481 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3482 expand_omp_for_static_chunk): Use simple_p = true in
3483 force_gimple_operand_gsi calls when assigning to addressable decls.
3485 2013-04-09 Marek Polacek <polacek@redhat.com>
3487 PR tree-optimization/48762
3488 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum
3491 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3493 * config/s390/s390.c (s390_expand_insv): Only accept insertions
3496 2013-04-08 Marek Polacek <polacek@redhat.com>
3498 PR rtl-optimization/48182
3499 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
3502 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3505 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
3506 nuses, make sure we have a label.
3508 2013-04-04 Ian Lance Taylor <iant@google.com>
3510 Backport from mainline:
3511 * doc/standards.texi (Standards): The Go frontend supports the Go
3512 1 language standard.
3514 2013-04-04 Marek Polacek <polacek@redhat.com>
3516 Backport from mainline:
3517 2013-04-04 Marek Polacek <polacek@redhat.com>
3519 PR tree-optimization/48186
3520 * predict.c (maybe_hot_frequency_p): Return false if
3521 HOT_BB_FREQUENCY_FRACTION is 0.
3522 (cgraph_maybe_hot_edge_p): Likewise.
3524 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3526 Backport from mainline:
3527 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3530 * config/arm/iterators.md (v_cmp_result): New mode attribute.
3531 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
3533 2013-04-04 Richard Biener <rguenther@suse.de>
3535 PR tree-optimization/56837
3536 * tree-loop-distribution.c (classify_partition): For non-zero
3537 values require that the value has the same precision as its
3538 mode to be useful as memset value.
3540 2013-04-03 Roland McGrath <mcgrathr@google.com>
3542 Backport from mainline:
3543 2013-03-26 Roland McGrath <mcgrathr@google.com>
3545 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
3546 than fprintf with a non-constant, non-format string.
3548 2013-04-03 Marek Polacek <polacek@redhat.com>
3550 Backport from mainline:
3551 2013-04-03 Marek Polacek <polacek@redhat.com>
3554 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN
3557 2013-04-03 Richard Biener <rguenther@suse.de>
3559 PR tree-optimization/56817
3560 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3562 (tree_unroll_loops_completely_1): ... new function to manually
3563 walk the loop tree, properly defering outer loops of unrolled
3564 loops to later iterations.
3566 2013-04-02 Jakub Jelinek <jakub@redhat.com>
3568 PR rtl-optimization/56745
3569 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
3570 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
3572 2013-04-02 Wei Mi <wmi@google.com>
3574 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
3575 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
3576 *<rotate_insn><mode>3_mask in i386.md.
3578 2013-04-01 Wei Mi <wmi@google.com>
3580 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
3581 Truncate operand 2 using %b asm operand modifier.
3582 (*<shift_insn><mode>3_mask): Ditto.
3583 (*<rotate_insn><mode>3_mask): Ditto.
3585 2013-04-01 Uros Bizjak <ubizjak@gmail.com>
3587 * config/i386/i386.md (*movsf_internal): Change type of
3588 alternatives 3,4 to imov.
3590 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
3593 * doc/invoke.texi ([-fwhole-program]): Fix typo.
3595 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
3597 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
3598 Fix declaration name.
3600 2013-03-28 Gerald Pfeifer <gerald@pfeifer.com>
3602 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
3603 * doc/extend.texi (Named Address Spaces): Ditto.
3604 (Variable Attributes): Ditto.
3606 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
3608 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
3609 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
3612 2013-03-27 Walter Lee <walt@tilera.com>
3614 Backport from mainline:
3615 2013-03-27 Walter Lee <walt@tilera.com>
3617 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3618 double-decrement of next_scratch_regno.
3620 2013-03-27 Walter Lee <walt@tilera.com>
3622 Backport from mainline:
3623 2013-03-27 Walter Lee <walt@tilera.com>
3625 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3627 (insn_v1mulus): Ditto.
3628 (insn_v2muls): Ditto.
3630 2013-03-27 Walter Lee <walt@tilera.com>
3632 Backport from mainline:
3633 2013-03-27 Walter Lee <walt@tilera.com>
3635 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
3637 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
3639 2013-03-27 Walter Lee <walt@tilera.com>
3641 Backport from mainline:
3642 2013-03-27 Walter Lee <walt@tilera.com>
3644 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
3645 (*sibcall_value): Ditto.
3647 2013-03-27 Walter Lee <walt@tilera.com>
3649 Backport from mainline:
3650 2013-03-27 Walter Lee <walt@tilera.com>
3652 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
3653 (insn_mnz_v8qi): ... this ...
3654 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
3656 (insn_v<n>mnz): Replaced by ...
3657 (insn_v1mnz): ... this ...
3658 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
3660 (insn_mz_<mode>): Replaced by ...
3661 (insn_mz_v8qi): ... this ...
3662 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
3664 (insn_v<n>mz): Replaced by ...
3665 (insn_v1mz): ... this ...
3666 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
3669 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
3671 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
3673 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
3675 * config/rtems.opt: Add -pthread option.
3677 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
3679 * config/aarch64/aarch64.c (aarch64_classify_address): Support
3680 PC-relative load in SI modes and above only.
3682 2013-03-26 Walter Lee <walt@tilera.com>
3684 Backport from mainline:
3685 2013-03-26 Walter Lee <walt@tilera.com>
3687 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
3688 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
3690 2013-03-26 Walter Lee <walt@tilera.com>
3692 Backport from mainline:
3693 2013-03-25 Walter Lee <walt@tilera.com>
3695 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
3696 TILEGX_INSN_SHUFFLEBYTES1.
3697 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
3699 (tilegx_builtins): Ditto.
3700 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
3702 2013-03-26 Walter Lee <walt@tilera.com>
3704 Backport from mainline:
3705 2013-03-25 Walter Lee <walt@tilera.com>
3707 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
3708 tests for constraint J, K, N, P.
3710 2013-03-26 Walter Lee <walt@tilera.com>
3712 Backport from mainline:
3713 2013-03-25 Walter Lee <walt@tilera.com>
3715 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
3716 Use indirect/pcrel encoding.
3717 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
3720 2013-03-25 Richard Biener <rguenther@suse.de>
3723 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
3724 must-not-throw stmt location.
3726 2012-03-22 Jakub Jelinek <jakub@redhat.com>
3728 * BASE-VER: Set to 4.8.1.
3729 * DEV-PHASE: Set to prerelease.
3731 2013-03-22 Release Manager
3733 * GCC 4.8.0 released.
3735 2013-03-21 Walter Lee <walt@tilera.com>
3737 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
3739 2013-03-21 Mark Wielaard <mjw@redhat.com>
3741 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
3743 2013-03-20 Richard Biener <rguenther@suse.de>
3745 PR tree-optimization/56661
3746 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
3747 the result does not have to be distinct.
3749 2013-03-20 Jakub Jelinek <jakub@redhat.com>
3751 PR tree-optimization/56635
3752 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Give up
3753 if lhs of then_assign and else_assign don't have compatible types.
3755 2013-03-17 Jakub Jelinek <jakub@redhat.com>
3758 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
3759 class names. Remove trailing comma after "ALL_REGS".
3761 2013-03-16 Jakub Jelinek <jakub@redhat.com>
3763 * DEV-PHASE: Set to prerelease.
3765 2013-03-14 Andi Kleen <ak@linux.intel.com>
3768 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
3769 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
3770 Document _x* TSX intrinsics.
3772 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
3773 David Holsgrove <david.holsgrove@xilinx.com>
3775 * configure.ac: Add MicroBlaze TLS support detection.
3776 * configure: Regenerate.
3777 * config/microblaze/microblaze-protos.h
3778 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
3779 symbol_mentioned_p, label_mentioned_p): Add prototypes.
3780 * config/microblaze/microblaze.c (microblaze_address_type): Add
3781 ADDRESS_TLS and tls_reloc address types.
3782 (microblaze_address_info): Add tls_reloc.
3783 (TARGET_HAVE_TLS): Define.
3784 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
3785 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
3786 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
3787 load_tls_operand, microblaze_call_tls_get_addr,
3788 microblaze_legitimize_tls_address): New functions.
3789 (microblaze_classify_unspec): Handle UNSPEC_TLS.
3790 (get_base_reg): Use microblaze_tls_symbol_p.
3791 (microblaze_classify_address): Handle TLS.
3792 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
3793 label_mentioned_p and microblaze_tls_referenced_p.
3794 (microblaze_legitimize_address): Handle TLS.
3795 (microblaze_address_insns): Handle ADDRESS_TLS.
3796 (pic_address_needs_scratch): Handle TLS.
3797 (print_operand_address): Handle TLS.
3798 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
3799 (microblaze_expand_move): Handle TLS.
3800 (microblaze_legitimate_constant_p): Check
3801 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
3802 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3803 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
3804 (PIC_OFFSET_TABLE_REGNUM): Set.
3805 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
3806 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
3807 (addsi3, movsi_internal2, movdf_internal): Update constraints
3808 * config/microblaze/predicates.md (arith_plus_operand): Define
3809 (move_operand): Redefine as move_src_operand, check
3810 microblaze_tls_referenced_p.
3812 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3814 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
3815 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
3817 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3819 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
3822 2013-03-14 Jakub Jelinek <jakub@redhat.com>
3824 PR tree-optimization/53265
3825 * common.opt (Waggressive-loop-optimizations): New option.
3826 * tree-ssa-loop-niter.c: Include tree-pass.h.
3827 (do_warn_aggressive_loop_optimizations): New function.
3828 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
3829 if number_of_latch_executions returned constant.
3830 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
3831 early. If number_of_latch_executions returned constant, set
3832 nb_iterations_upper_bound back to it.
3833 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
3835 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
3836 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
3838 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
3839 (MULTILIB_OSDIRNAMES): Set.
3840 * genmultilib: If defaultosdirname doesn't start with :: , set
3841 defaultosdirname2 instead, clear it and emit two . multilib_raw
3842 entries instead of just one.
3844 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
3846 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3847 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
3848 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3849 (SUBTARGET_OVERRIDE_OPTIONS): New.
3851 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
3854 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
3855 (musermode): Convert to Var(TARGET_USERMODE).
3856 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
3857 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
3858 * config/sh/sh.c (sh_option_override): Use
3859 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
3860 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
3862 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
3864 (udivsi3_i4_single, divsi3_i4_single): Use
3865 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
3867 2013-03-13 Dave Korn <dave.korn.cygwin@....>
3869 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
3872 2013-03-13 Richard Biener <rguenther@suse.de>
3874 PR tree-optimization/56608
3875 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
3876 calls when vectorizing basic-blocks.
3878 2013-03-13 Jakub Jelinek <jakub@redhat.com>
3881 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
3884 2013-03-12 Jakub Jelinek <jakub@redhat.com>
3886 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
3888 2013-03-11 Jan Hubicka <jh@suse.cz>
3891 * lto-streamer-out.c (output_symbol_p): Skip references from
3892 constructors of external variables.
3894 2013-03-11 Jan Hubicka <jh@suse.cz>
3897 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3899 * emit-rtl.c (verify_rtx_sharing): Likewise.
3900 (copy_insn_1): Likewise.
3901 * rtl.c (copy_rtx): Likewise.
3903 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
3906 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3907 output_operand_lossage message.
3909 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
3912 * arm.c (shift_op): Validate RTL pattern on the fly.
3913 (arm_print_operand, case 'S'): Don't use shift_operator to validate
3916 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3919 * config/pa/pa.md (call_value): Check for calls to powf and direct to
3920 new call patterns that clobber %fr12.
3921 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3922 split and postreload patterns.
3923 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3924 registers %fr12 and %fr12R as call used.
3926 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
3928 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3929 (canon_address, record_store, replace_read, check_mem_read_rtx,
3930 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
3931 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
3932 rest_of_handle_dse): Likewise.
3934 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3937 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
3939 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
3940 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
3941 (save_optabs_if_changed): Replace with...
3942 (init_tree_optimization_optabs): ...this.
3943 * optabs.c (save_optabs_if_changed): Rename to...
3944 (init_tree_optimization_optabs): ...this. Take the optimization node
3945 as argument. Do nothing if the base optabs are already correct.
3946 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
3947 to recompute optabs.
3948 * function.h (function): Remove optabs field.
3949 * function.c (invoke_set_current_function_hook): Call
3950 init_tree_optimization_optabs. Use the result to initialize
3953 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
3955 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
3956 if GTMA_HAS_NO_INSTRUMENTATION.
3957 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
3958 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
3959 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
3960 * gimple-pretty-print.c (dump_gimple_transaction): Handle
3961 GTMA_HAS_NO_INSTRUMENTATION.
3963 2013-03-08 Jakub Jelinek <jakub@redhat.com>
3965 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
3968 2013-03-08 Marek Polacek <polacek@redhat.com>
3969 Jakub Jelinek <jakub@redhat.com>
3971 PR tree-optimization/56478
3972 * predict.c (is_comparison_with_loop_invariant_p): Change the
3973 type of loop_step to tree.
3974 (predict_loops): Adjust.
3975 (predict_iv_comparison): Perform the computations on double_ints.
3977 2013-03-08 Richard Biener <rguenther@suse.de>
3979 PR tree-optimization/56570
3980 * tree-cfg.c (verify_expr_location_1): Verify locations for
3982 * tree-sra.c (create_access_replacement): Strip locations
3983 from DECL_DEBUG_EXPRs.
3985 2013-03-08 Richard Biener <rguenther@suse.de>
3987 * tree-inline.c (expand_call_inline): Do not associate
3988 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
3989 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
3991 2013-03-08 Richard Biener <rguenther@suse.de>
3993 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
3994 or block changes with -Og. Fix for location / block encoding
3995 changes and PHI arguments with locations.
3997 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
3999 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
4001 (struct output_info): Likewise.
4002 (register_overhead): Remove bad gcc_assert.
4003 (bitmap_find_bit): If there is only a single bitmap element, do not
4004 count a miss as a search.
4005 (print_statistics): Update for counter type changes.
4006 (dump_bitmap_statistics): Likewise. Print headers such that they
4007 are properly lined up with the printed counters.
4009 2013-03-07 Jakub Jelinek <jakub@redhat.com>
4011 PR tree-optimization/56559
4012 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
4013 check that it has only a single use.
4015 2013-03-07 Richard Biener <rguenther@suse.de>
4017 * doc/invoke.texi (fwhole-program): Discourage use in combination
4020 2013-03-06 Jakub Jelinek <jakub@redhat.com>
4022 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
4024 PR tree-optimization/56539
4025 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
4026 instead of GSI_CONTINUE_LINKING as last argument to
4027 force_gimple_operand_gsi. Adjust function comment.
4029 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
4033 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
4034 promoted mode, convert the result back to the original mode.
4036 2013-03-06 Richard Biener <rguenther@suse.de>
4039 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
4040 (insert_updated_phi_nodes_compare_uids): New function.
4041 (update_ssa): Sort symbols_to_rename after UID before
4042 traversing it to insert PHI nodes.
4044 2013-03-06 Richard Biener <rguenther@suse.de>
4047 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
4048 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
4051 2013-02-13 Richard Biener <rguenther@suse.de>
4054 * varasm.c (output_constant_def_1): Get the decl representing
4055 the constant as argument.
4056 (output_constant_def): Wrap output_constant_def_1.
4057 (make_decl_rtl): Use output_constant_def_1 with the decl
4058 representing the constant.
4059 (build_constant_desc): Optionally re-use a decl already
4060 representing the constant.
4061 (tree_output_constant_def): Adjust.
4063 2013-03-06 Joey Ye <joey.ye@arm.com>
4066 * gcc.c (convert_white_space): New function.
4067 (main): Handles white space in function name.
4069 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
4072 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
4073 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
4074 to SH_DIV_CALL_TABLE for TARGET_SH2.
4075 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
4077 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
4080 2013-03-05 Sterling Augustine <saugustine@google.com>
4081 Cary Coutant <ccoutant@google.com>
4084 * dwarf2out.c (resolve_addr): Don't call
4085 remove_loc_list_addr_table_entries a second time for the same
4088 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4091 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
4092 (avoid_complex_debug_insns): New function.
4093 (expand_debug_locations): Call it.
4095 PR rtl-optimization/56484
4096 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
4097 lifetimes of hard registers on small register class machines.
4099 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
4101 * config/microblaze/microblaze-protos.h: Rename
4102 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
4103 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
4105 (microblaze_fast_interrupt_function_p): New function.
4106 (microblaze_is_interrupt_handler): Rename to
4107 microblaze_is_interrupt_variant and add fast_interrupt check.
4108 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
4109 (save_restore_insns): Likewise.
4110 (compute_frame_size): Likewise.
4111 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
4112 (microblaze_globalize_label): Likewise.
4113 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
4114 * config/microblaze/microblaze.md: Use wrapper
4115 microblaze_is_interrupt_variant.
4117 2013-03-05 Kai Tietz <ktietz@redhat.com>
4119 * sdbout.c (sdbout_one_type): Switch to current function's section
4120 supporting cold/hot.
4122 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
4124 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
4127 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4130 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
4131 if VALGRIND_GET_VBITS is defined, temporarily make object
4132 memory all defined, and restore previous valgrind addressability
4133 and definability afterwards. Free this_object at the end.
4136 * lra.c (lra): Call lra_clear_live_ranges if live_p,
4137 right before calling lra_create_live_ranges, also call it
4138 when clearing live_p. Only call lra_clear_live_ranges
4139 at the end if live_p.
4142 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
4144 2013-03-05 Richard Biener <rguenther@suse.de>
4146 PR tree-optimization/56521
4147 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
4150 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
4153 * except.h (remove_unreachable_eh_regions): New prototype.
4154 * except.c (remove_eh_handler_splicer): New function, split out
4155 of remove_eh_handler.
4156 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
4157 warning about running it on many EH regions one at a time.
4158 (remove_unreachable_eh_regions_worker): New function, walk the
4159 EH tree in depth-first order and remove non-marked regions.
4160 (remove_unreachable_eh_regions): New function.
4161 * tree-eh.c (mark_reachable_handlers): New function, split out
4162 from remove_unreachable_handlers.
4163 (remove_unreachable_handlers): Use mark_reachable_handlers and
4164 remove_unreachable_eh_regions.
4165 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
4166 and remove_unreachable_eh_regions.
4168 2013-03-05 Richard Biener <rguenther@suse.de>
4171 * loop-init.c (fix_loop_structure): Remove loops in two stages,
4172 not freeing them until the end.
4174 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4176 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
4178 2013-03-05 Richard Biener <rguenther@suse.de>
4180 PR tree-optimization/56270
4181 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
4182 of loads after scheduling an SLP instance.
4184 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4186 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
4188 (check_gcc_parallelize): Run guality.exp as a separate job from
4189 vect.exp with unsorted.exp and $(dg_target_exps) separately from
4190 struct-layout-1.exp with stackalign.exp.
4192 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
4195 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
4196 load_index sbitmap even if some bit in it isn't set.
4199 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
4200 (discover_iteration_bound_by_body_walk): Change queues to
4201 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
4202 spelling in comment. Call safe_push on queues[bound_index] directly.
4203 Release queues[queue_index] in every iteration unconditionally.
4204 Release bounds vector.
4207 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
4208 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
4209 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
4212 2013-03-05 Richard Biener <rguenther@suse.de>
4215 * tree-inline.c (remap_blocks_to_null): New function.
4216 (expand_call_inline): When expanding a call stmt without
4217 an associated block inline remap all callee blocks to NULL.
4219 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4221 PR rtl-optimization/56494
4222 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
4223 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
4224 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
4227 * sel-sched-ir.c (free_sched_pools): Release
4228 succs_info_pool.stack[succs_info_pool.max_top] vectors too
4229 if succs_info_pool.max_top isn't -1.
4232 * opts.c (opts_obstack, opts_concat): Moved to...
4233 * opts-common.c (opts_obstack, opts_concat): ... here.
4235 2013-03-04 Jakub Jelinek <jakub@redhat.com>
4238 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
4240 2013-03-04 Martin Jambor <mjambor@suse.cz>
4242 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
4243 all appropriate places.
4245 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
4247 PR tree-optimization/56424
4248 * ipa-split.c (split_function): Do not set the RSO flag if result is
4249 not by reference and its type is a register type.
4251 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
4253 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New.
4254 (microblaze_legitimate_pic_operand): Likewise.
4255 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): Call
4256 new function microblaze_legitimate_pic_operand.
4257 * config/microblaze/microblaze-protos.h
4258 (microblaze_legitimate_pic_operand): Declare.
4260 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4262 * config/microblaze/predicates.md (call_insn_simple_operand):
4263 New predicate for supported rtx code types.
4264 * config/microblaze/microblaze.md (call_internal1): Use
4265 call_insn_simple_operand predicate.
4267 2013-03-04 Jakub Jelinek <jakub@redhat.com>
4270 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
4271 partitions.ordered_remove.
4274 * tree-vect-stmts.c (vectorizable_conversion): Don't call
4275 vec_oprnds0.create (1) for modifier == NONE.
4278 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
4279 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
4280 vec_oprnds1 right before pushing anything to it for
4284 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
4285 set nbbs to 0 instead of having separate code path.
4286 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
4287 instead of false as last argument if returning NULL.
4289 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
4291 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
4292 the attribute is now called "target" instead of "option".
4293 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
4294 * doc/tm.texi.in (Target Attributes): Likewise document the correct
4295 attribute/pragma name for TARGET_OPTION_VALID_P and
4296 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
4297 * doc/tm.texi: Regenerated.
4299 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
4301 * config/microblaze/microblaze.c:
4302 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
4303 * config/microblaze/microblaze.h: Add -mxl-reorder to
4305 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
4306 instructions emitted if TARGET_REORDER.
4307 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
4308 or 0 for -m/-mno case, but initialises as 2 to detect default use case
4311 2013-03-01 Xinliang David Li <davidxl@google.com>
4313 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
4316 2013-03-01 Jakub Jelinek <jakub@redhat.com>
4319 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
4320 vector even when returning true. Fix up function comment formatting.
4323 * ira-build.c (ira_loop_nodes_count): New variable.
4324 (create_loop_tree_nodes): Initialize it.
4325 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
4328 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
4329 method on dr_chain and result_chain.
4330 * tree-vect-stmts.c (vectorizable_store): Only call
4331 result_chain.create if j == 0.
4334 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
4335 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
4336 before overwriting it.
4338 2013-03-01 Tobias Burnus <burnus@net-b.de>
4340 * doc/extended.texi (C Extensions): Change order in @menu
4342 (Other MIPS Built-in Functions): Move last MIPS entry before
4343 "picoChip Built-in Functions".
4344 (SH Built-in Functions): Move after RX Built-in Functions.
4345 * doc/gcc.texi (Introduction): Change order in @menu to match @node.
4346 * doc/md.texi (Constraints): Ditto.
4347 * gty.texi (Type Information): Ditto.
4348 (User-provided marking routines for template types): Make subsection.
4349 * doc/invoke.texi (AArch64 Options): Move before
4350 "Adapteva Epiphany Options".
4352 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4353 Jakub Jelinek <jakub@redhat.com>
4356 * asan.c (gate_asan): Lookup no_sanitize_address instead of
4357 no_address_safety_analysis attribute.
4358 * doc/extend.texi (no_address_safety_attribute): Rename to
4359 no_sanitize_address attribute, mention no_address_safety_analysis
4360 attribute as deprecated alias.
4362 2013-02-28 Jakub Jelinek <jakub@redhat.com>
4365 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
4366 type to vec<vec<tree> > *.
4367 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
4368 to be vec<tree> instead of vec<tree> *, set vec_defs
4369 to vNULL and call vec_defs.create (number_of_vects), adjust other
4371 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
4372 vectorizable_condition): Adjust vect_get_slp_defs callers.
4374 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4376 * config/aarch64/aarch64.c
4377 (aarch64_float_const_representable): Remove unused variable.
4379 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4381 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
4383 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4385 * config/aarch64/aarch64-builtins.c
4386 (aarch64_init_simd_builtins): Make static.
4388 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
4390 * config/aarch64/aarch64.c
4391 (aarch64_simd_make_constant): Make static.
4393 2013-02-28 Martin Jambor <mjambor@suse.cz>
4395 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
4396 with no initialization to the RHS of debug statements.
4398 2013-02-28 Martin Jambor <mjambor@suse.cz>
4400 PR tree-optimization/56294
4401 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
4403 (get_access_replacement): Do not call create_access_replacement.
4404 Assert a replacement exists.
4405 (get_repl_default_def_ssa_name): Create the replacement declaration
4408 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4410 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
4413 2013-02-28 Marek Polacek <polacek@redhat.com>
4415 PR rtl-optimization/56466
4416 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
4417 if we're changing a loop.
4418 (peel_loops_completely): Likewise.
4420 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
4423 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
4425 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
4428 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
4429 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
4430 INTX_FTYPE_FX, FX_FTYPE_INTX.
4431 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
4433 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
4435 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
4436 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
4437 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
4438 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
4439 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
4440 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
4441 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
4442 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
4443 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
4444 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
4445 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
4446 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
4447 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
4448 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
4449 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
4450 (avrxmega6): Increase max flash segments from 5 to 6.
4451 * config/avr/t-multilib: Regenerate.
4452 * config/avr/avr-tables.opt: Regenerate.
4453 * doc/avr-mmcu.texi: Regenerate.
4455 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
4457 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
4458 (avr_device_to_arch): Rename to avr_device_to_ld.
4459 (avr_device_to_as): New prototype.
4460 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
4461 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
4462 * config/avr/driver-avr.c (avr_device_to_as): New.
4463 (avr_device_to_arch): Rename to avr_device_to_ld.
4465 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4468 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
4469 method on dr_chain and result_chain.
4472 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
4473 pointer_set_destroy on not_executed_last_iteration.
4476 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
4479 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
4480 FOR_EACH_DEFINED_FUNCTION when freeing state.
4483 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
4485 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
4489 * ipa-cp.c (decide_whether_version_node): Call vec_free on
4490 known_aggs[i].items and release known_aggs vector.
4493 * ipa-reference.c (propagate): Free node_info even for alias nodes.
4495 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4497 * config/microblaze/microblaze.c (microblaze_emit_compare):
4498 Use xor for EQ/NE comparisions.
4499 * config/microblaze/microblaze.md (cstoresf4): Add constraints
4500 (cbranchsf4): Adjust operator to comparison_operator.
4502 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4505 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
4507 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
4508 vec_safe_push, always update *slot.
4509 (redirect_edge_var_map_clear): Use vec_free.
4510 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
4511 (free_var_map_entry): Use vec_free.
4512 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
4513 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
4515 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
4518 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
4519 when the may_trap_p bit of the exprs being merged differs.
4520 Reorder tests for speculativeness in the logical and operator.
4522 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4524 * incpath.c (add_standard_paths): Use reconcat instead of concat
4525 where appropriate and avoid leaking memory.
4527 * opts.h: Include obstack.h.
4528 (opts_concat): New prototype.
4529 (opts_obstack): New declaration.
4530 * opts.c (opts_concat): New function.
4531 (opts_obstack): New variable.
4532 (init_options_struct): Call gcc_init_obstack on opts_obstack.
4533 (finish_options): Use opts_concat instead of concat
4534 and XOBNEWVEC instead of XNEWVEC.
4535 * opts-common.c (generate_canonical_option, decode_cmdline_option,
4536 generate_option): Likewise.
4537 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
4538 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
4541 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
4542 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
4544 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4547 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
4549 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4551 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
4552 (arm_block_move_unaligned_straight): Likewise.
4553 (arm_adjust_block_mem): Likewise.
4555 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4558 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
4559 temp, cond and label.
4560 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
4563 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
4564 * config/c6x/c6x.h (dbx_register_map): Update declaration.
4567 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
4568 of prologue/epilogue functions.
4571 * config/tilegx/tilegx.c (tilegx_expand_prologue):
4572 Remove unused variable cfa_offset.
4573 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
4576 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
4577 type promotion to unsigned.
4580 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
4581 for HOST_WIDE_INT of 32 bit / same size as int.
4582 (arm_block_move_unaligned_straight): Likewise.
4583 (arm_adjust_block_mem): Likewise.
4586 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
4589 2013-02-26 Marek Polacek <polacek@redhat.com>
4591 PR tree-optimization/56426
4592 * tree-ssa-loop.c (tree_ssa_loop_init): Always call
4595 2013-02-26 Richard Biener <rguenther@suse.de>
4598 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
4599 unused variable loops.
4601 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4603 PR tree-optimization/56448
4604 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
4605 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
4606 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
4607 later operands of the references, or even first operand for
4608 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
4610 PR tree-optimization/56443
4611 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
4612 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
4613 to type_for_mode langhook.
4615 2013-02-25 Matt Turner <mattst88@gmail.com>
4617 * doc/invoke.texi: Document r4700.
4619 2013-02-25 Richard Biener <rguenther@suse.de>
4621 PR tree-optimization/56175
4622 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
4624 (simplify_bitwise_binary): ... here. Also guard the conversion
4625 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
4627 2013-02-25 Catherine Moore <clm@codesourcery.com>
4630 2013-02-24 Catherine Moore <clm@codesourcery.com>
4631 Maciej W. Rozycki <macro@codesourcery.com>
4632 Tom de Vries <tom@codesourcery.com>
4633 Nathan Sidwell <nathan@codesourcery.com>
4634 Iain Sandoe <iain@codesourcery.com>
4635 Nathan Froyd <froydnj@codesourcery.com>
4636 Chao-ying Fu <fu@mips.com>
4638 * doc/extend.texi (micromips, nomicromips, nocompression):
4639 Document new function attributes.
4640 * doc/invoke.texi (minterlink-compressed, mmicromips,
4641 m14k, m14ke, m14kec): Document new options.
4642 (minterlink-mips16): Update documentation.
4643 * doc/md.texi (ZC, ZD): Document new constraints.
4644 * configure.ac (gcc_cv_as_micromips): Check if linker
4645 supports the .set micromips directive.
4646 * configure: Regenerate.
4647 * config.in: Regenerate.
4648 * config/mips/mips-tables.opt: Regenerate.
4649 * config/mips/micromips.md: New file.
4650 * constraints.md (ZC, AD): New constraints.
4651 * config/mips/predicates.md (movep_src_register): New predicate.
4652 (movep_src_operand): New predicate.
4653 (non_volatile_mem_operand): New predicate.
4654 * config/mips/mips.md (multimem): New type.
4655 (length): Differentiate between 17-bit and 18-bit branch offsets.
4656 (MOVEP1, MOVEP2): New mode iterator.
4657 (mov_<load>l): Use ZC constraint.
4658 (mov_<load>r): Likewise.
4659 (mov_<store>l): Likewise.
4660 (mov_<store>r): Likewise.
4661 (*branch_equality<mode>_inverted): Add microMIPS support.
4662 (*branch_equality<mode>): Likewise.
4663 (*jump_absolute): Likewise.
4664 (indirect_jump_<mode>): Likewise.
4665 (tablejump_<mode>): Likewise.
4666 (<optab>_internal): Likewise.
4667 (sibcall_internal): Likewise.
4668 (sibcall_value_internal): Likewise.
4669 (prefetch): Use constraint ZD.
4670 * config/mips/mips.opt (minterlink-compressed): New option.
4671 (minterlink-mips16): Now an alias for minterlink-compressed.
4672 (mmicromips): New option.
4673 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4674 (compare_and_swap_12): Likewise.
4675 (sync_add<mode>): Likewise.
4676 (sync_<optab>_12): Likewise.
4677 (sync_old_<optab>_12): Likewise.
4678 (sync_new_<optab>_12): Likewise.
4679 (sync_nand_12): Likewise.
4680 (sync_old_nand_12): Likewise.
4681 (sync_new_nand_12): Likewise.
4682 (sync_sub<mode>): Likewise.
4683 (sync_old_add<mode>): Likewise.
4684 (sync_old_sub<mode>): Likewise.
4685 (sync_new_add<mode>): Likewise.
4686 (sync_new_sub<mode>): Likewise.
4687 (sync_<optab><mode>): Likewise.
4688 (sync_old_<optab><mode>): Likewise.
4689 (sync_new_<optab><mode>): Likewise.
4690 (sync_nand<mode>): Likewise.
4691 (sync_old_nand<mode>): Likewise.
4692 (sync_new_nand<mode>): Likewise.
4693 (sync_lock_test_and_set<mode>): Likewise.
4694 (test_and_set_12): Likewise.
4695 (atomic_compare_and_swap<mode>): Likewise.
4696 (atomic_exchange<mode>_llsc): Likewise.
4697 (atomic_fetch_add<mode>_llsc): Likewise.
4698 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4699 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4700 (umips_save_restore_pattern_p): Likewise.
4701 (umips_load_store_pair_p): Likewise.
4702 (umips_output_load_store_pair): Likewise.
4703 (umips_movep_target_p): Likewise.
4704 (umips_12bit_offset_address_p): Likewise.
4705 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4706 (mips_base_mips16): Rename this...
4707 (mips_base_compression_flags): ...to this. Update all uses.
4708 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4709 (mips_mips16_decl_p): Delete.
4710 (mips_nomips16_decl_p): Delete.
4711 (mips_get_compress_on_flags): New function.
4712 (mips_get_compress_off_flags): New function.
4713 (mips_get_compress_mode): New function.
4714 (mips_get_compress_on_name): New function.
4715 (mips_get_compress_off_name): New function.
4716 (mips_insert_attributes): Support multiple compression types.
4717 (mips_merge_decl_attributes): Likewise.
4718 (umips_12bit_offset_address_p): New function.
4719 (mips_start_function_definition): Emit .set micromips directive.
4720 (mips_call_may_need_jalx_p): New function.
4721 (mips_function_ok_for_sibcall): Add microMIPS support.
4722 (mips_print_operand_punctuation): Support short delay slots and
4724 (umips_swm_mask, umips_swm_encoding): New.
4725 (umips_build_save_restore): New function.
4726 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4727 (was_mips16_p): Remove.
4728 (old_compression_mode): New.
4729 (mips_set_compression_mode): New function.
4730 (mips_set_current_function): Add microMIPS support.
4731 (mips_option_override): Likewise.
4732 (umips_save_restore_pattern_p): New function.
4733 (umips_output_save_restore): New function.
4734 (umips_load_store_pair_p_1): New function.
4735 (umips_load_store_pair_p): New function.
4736 (umips_output_load_store_pair_1): New function.
4737 (umips_output_load_store_pair): New function.
4738 (umips_movep_target_p) New function.
4739 (mips_prepare_pch_save): Add microMIPS support.
4740 * config/mips/mips.h (TARGET_COMPRESSION): New.
4741 (TARGET_CPU_CPP_BUILTINS): Update macro
4742 to use new compression flags and to support microMIPS.
4743 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4744 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4745 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4746 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4747 (ASM_SPEC): Support mmicromips and mno-micromips.
4748 (M16STORE_REG_P): New macro.
4749 (MIPS_CALL): Support TARGET_MICROMIPS.
4750 (MICROMIPS_J): New macro.
4751 (mips_base_mips16): Rename this...
4752 (mips_base_compression_flags): ...to this.
4753 (UMIPS_12BIT_OFFSET_P): New macro.
4754 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4755 (MULTILIB_DIRNAMES): Likewise.
4757 2013-02-25 Tom de Vries <tom@codesourcery.com>
4759 PR rtl-optimization/56131
4760 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
4761 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
4762 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
4764 2013-02-25 Tobias Burnus <burnus@net-b.de>
4766 * doc/invoke.texi (-fsanitize=): Move from optimization
4767 to debugging options.
4769 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
4771 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
4773 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
4774 Alexander Monakov <amonakov@ispras.ru>
4777 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
4778 flush pending lists also on non-jumps. Adjust comment.
4780 2013-02-24 Catherine Moore <clm@codesourcery.com>
4781 Maciej W. Rozycki <macro@codesourcery.com>
4782 Tom de Vries <tom@codesourcery.com>
4783 Nathan Sidwell <nathan@codesourcery.com>
4784 Iain Sandoe <iain@codesourcery.com>
4785 Nathan Froyd <froydnj@codesourcery.com>
4786 Chao-ying Fu <fu@mips.com>
4788 * doc/extend.texi (micromips, nomicromips, nocompression):
4789 Document new function attributes.
4790 * doc/invoke.texi (minterlink-compressed, mmicromips,
4791 m14k, m14ke, m14kec): Document new options.
4792 (minterlink-mips16): Update documentation.
4793 * doc/md.texi (ZC, ZD): Document new constraints.
4794 * configure.ac (gcc_cv_as_micromips): Check if linker
4795 supports the .set micromips directive.
4796 * configure: Regenerate.
4797 * config.in: Regenerate.
4798 * config/mips/mips-tables.opt: Regenerate.
4799 * config/mips/micromips.md: New file.
4800 * constraints.md (ZC, AD): New constraints.
4801 * config/mips/predicates.md (movep_src_register): New predicate.
4802 (movep_src_operand): New predicate.
4803 (non_volatile_mem_operand): New predicate.
4804 * config/mips/mips.md (multimem): New type.
4805 (length): Differentiate between 17-bit and 18-bit branch offsets.
4806 (MOVEP1, MOVEP2): New mode iterator.
4807 (mov_<load>l): Use ZC constraint.
4808 (mov_<load>r): Likewise.
4809 (mov_<store>l): Likewise.
4810 (mov_<store>r): Likewise.
4811 (*branch_equality<mode>_inverted): Add microMIPS support.
4812 (*branch_equality<mode>): Likewise.
4813 (*jump_absolute): Likewise.
4814 (indirect_jump_<mode>): Likewise.
4815 (tablejump_<mode>): Likewise.
4816 (<optab>_internal): Likewise.
4817 (sibcall_internal): Likewise.
4818 (sibcall_value_internal): Likewise.
4819 (prefetch): Use constraint ZD.
4820 * config/mips/mips.opt (minterlink-compressed): New option.
4821 (minterlink-mips16): Now an alias for minterlink-compressed.
4822 (mmicromips): New option.
4823 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4824 (compare_and_swap_12): Likewise.
4825 (sync_add<mode>): Likewise.
4826 (sync_<optab>_12): Likewise.
4827 (sync_old_<optab>_12): Likewise.
4828 (sync_new_<optab>_12): Likewise.
4829 (sync_nand_12): Likewise.
4830 (sync_old_nand_12): Likewise.
4831 (sync_new_nand_12): Likewise.
4832 (sync_sub<mode>): Likewise.
4833 (sync_old_add<mode>): Likewise.
4834 (sync_old_sub<mode>): Likewise.
4835 (sync_new_add<mode>): Likewise.
4836 (sync_new_sub<mode>): Likewise.
4837 (sync_<optab><mode>): Likewise.
4838 (sync_old_<optab><mode>): Likewise.
4839 (sync_new_<optab><mode>): Likewise.
4840 (sync_nand<mode>): Likewise.
4841 (sync_old_nand<mode>): Likewise.
4842 (sync_new_nand<mode>): Likewise.
4843 (sync_lock_test_and_set<mode>): Likewise.
4844 (test_and_set_12): Likewise.
4845 (atomic_compare_and_swap<mode>): Likewise.
4846 (atomic_exchange<mode>_llsc): Likewise.
4847 (atomic_fetch_add<mode>_llsc): Likewise.
4848 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4849 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4850 (umips_save_restore_pattern_p): Likewise.
4851 (umips_load_store_pair_p): Likewise.
4852 (umips_output_load_store_pair): Likewise.
4853 (umips_movep_target_p): Likewise.
4854 (umips_12bit_offset_address_p): Likewise.
4855 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4856 (mips_base_mips16): Rename this...
4857 (mips_base_compression_flags): ...to this. Update all uses.
4858 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4859 (mips_mips16_decl_p): Delete.
4860 (mips_nomips16_decl_p): Delete.
4861 (mips_get_compress_on_flags): New function.
4862 (mips_get_compress_off_flags): New function.
4863 (mips_get_compress_mode): New function.
4864 (mips_get_compress_on_name): New function.
4865 (mips_get_compress_off_name): New function.
4866 (mips_insert_attributes): Support multiple compression types.
4867 (mips_merge_decl_attributes): Likewise.
4868 (umips_12bit_offset_address_p): New function.
4869 (mips_start_function_definition): Emit .set micromips directive.
4870 (mips_call_may_need_jalx_p): New function.
4871 (mips_function_ok_for_sibcall): Add microMIPS support.
4872 (mips_print_operand_punctuation): Support short delay slots and
4874 (umips_swm_mask, umips_swm_encoding): New.
4875 (umips_build_save_restore): New function.
4876 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4877 (was_mips16_p): Remove.
4878 (old_compression_mode): New.
4879 (mips_set_compression_mode): New function.
4880 (mips_set_current_function): Add microMIPS support.
4881 (mips_option_override): Likewise.
4882 (umips_save_restore_pattern_p): New function.
4883 (umips_output_save_restore): New function.
4884 (umips_load_store_pair_p_1): New function.
4885 (umips_load_store_pair_p): New function.
4886 (umips_output_load_store_pair_1): New function.
4887 (umips_output_load_store_pair): New function.
4888 (umips_movep_target_p) New function.
4889 (mips_prepare_pch_save): Add microMIPS support.
4890 * config/mips/mips.h (TARGET_COMPRESSION): New.
4891 (TARGET_CPU_CPP_BUILTINS): Update macro
4892 to use new compression flags and to support microMIPS.
4893 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4894 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4895 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4896 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4897 (ASM_SPEC): Support mmicromips and mno-micromips.
4898 (M16STORE_REG_P): New macro.
4899 (MIPS_CALL): Support TARGET_MICROMIPS.
4900 (MICROMIPS_J): New macro.
4901 (mips_base_mips16): Rename this...
4902 (mips_base_compression_flags): ...to this.
4903 (UMIPS_12BIT_OFFSET_P): New macro.
4904 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4905 (MULTILIB_DIRNAMES): Likewise.
4907 2013-02-24 Jakub Jelinek <jakub@redhat.com>
4910 * target-globals.c (save_target_globals): For init_reg_sets and
4911 target_reinit remporarily set this_fn_optabs to this_target_optabs.
4913 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
4915 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4916 * config/aarch64/t-aarch64
4917 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4919 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
4922 * lra-constraints.c (process_alt_operands): Reload operand
4923 conflicting with earlier clobber only if no more other conflicting
4926 2013-02-22 Jakub Jelinek <jakub@redhat.com>
4929 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
4930 if not linking a shared library.
4932 2013-02-22 Seth LaForge <sethml@google.com>
4934 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
4936 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
4938 * config/arm/arm.md (split for extendsidi): Update condition.
4939 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
4940 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
4941 (qhs_zextenddi_cstr): Likewise.
4943 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4946 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
4947 avoid signed wrapping.
4948 (expand_mult): Handle properly multiplication by
4949 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
4950 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
4951 in the compiler if coeff is HOST_WIDE_INT_MIN.
4952 (expand_divmod): Don't make ext_op1 static, change it's type to uhwi.
4953 Avoid undefined behavior in -INTVAL (op1).
4955 PR rtl-optimization/50339
4956 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
4958 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
4959 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
4960 into splitting_ashiftrt field.
4961 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
4963 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
4966 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
4969 * trans-mem.c (execute_tm_mark): Do not expand transactions that
4970 are sure to go irrevocable.
4972 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
4974 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
4975 scalars are valid operands.
4977 2013-02-21 Martin Jambor <mjambor@suse.cz>
4979 PR tree-optimization/56310
4980 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
4981 only matching indices and non-negative final offsets.
4982 (intersect_aggregates_with_edge): Pass src_idx to
4983 agg_replacements_to_vector. Pass src_idx insstead of index to
4984 intersect_with_agg_replacements.
4986 2013-02-21 Martin Jambor <mjambor@suse.cz>
4988 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
4989 instead of hard-wired defaults.
4991 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
4993 * doc/invoke.texi (MIPS Options): Update documentation of the
4994 floating-point multiply-accumulate instruction restrictions.
4996 2013-02-21 Kostya Serebryany <kcc@google.com>
4998 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
4999 asan_shadow_offset on x86_64 linux.
5001 2013-02-21 Richard Biener <rguenther@suse.de>
5003 PR tree-optimization/56415
5005 2013-02-11 Richard Biener <rguenther@suse.de>
5007 PR tree-optimization/56273
5008 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5011 2013-02-21 Jakub Jelinek <jakub@redhat.com>
5014 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
5018 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
5019 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
5021 2013-02-20 Jan Hubicka <jh@suse.cz>
5023 PR tree-optimization/56265
5024 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when
5025 target is referenced for first time.
5027 2013-02-20 Richard Biener <rguenther@suse.de>
5029 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
5030 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
5031 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5032 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
5033 not return anything.
5034 (rename_ssa_copies): Do not remove unused locals.
5035 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
5036 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
5037 * passes.c (execute_function_todo): Do not schedule unused locals
5038 removal if cleanup_tree_cfg did something.
5039 * tree-ssa-live.c (remove_unused_locals): Dump statistics
5040 about the number of removed locals.
5042 2013-02-20 Richard Biener <rguenther@suse.de>
5044 PR tree-optimization/56398
5045 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
5048 2013-02-20 Martin Jambor <mjambor@suse.cz>
5050 PR tree-optimization/55334
5051 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
5052 restricted pointers to arrays.
5054 2013-02-20 Richard Biener <rguenther@suse.de>
5055 Jakub Jelinek <jakub@redhat.com>
5057 PR tree-optimization/56396
5058 * tree-ssa-ccp.c (n_const_val): New static variable.
5059 (get_value): Return NULL for SSA names we don't have a lattice
5061 (ccp_initialize): Initialize n_const_val.
5062 * tree-ssa-copy.c (n_copy_of): New static variable.
5063 (init_copy_prop): Initialize n_copy_of.
5064 (get_value): Return NULL_TREE for SSA names we don't have a
5067 2013-02-20 Martin Jambor <mjambor@suse.cz>
5069 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
5071 2013-02-20 Richard Biener <rguenther@suse.de>
5073 * genpreds.c (write_lookup_constraint): Do not compare first
5074 letter of the constraint again.
5076 2013-02-20 Richard Biener <rguenther@suse.de>
5078 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
5080 (get_use_iv_cost): Terminate hashtable walk when coming across
5083 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
5085 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
5086 reassociation for avx2 targets.
5088 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5090 * config/microblaze/microblaze.c: microblaze_has_clz = 0
5091 Add version check for v8.10.a to enable microblaze_has_clz
5092 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
5093 version and TARGET_PATTERN_COMPARE check
5094 * config/microblaze/microblaze.md: New clzsi2 instruction
5096 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5098 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
5099 function before branching.
5101 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
5103 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
5105 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
5107 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
5110 * sel-sched.c: Include ira.h.
5111 (implicit_clobber_conflict_p): New function.
5112 (moveup_expr): Use it.
5113 * Makefile.in (sel-sched.o): Depend on ira.h.
5115 2013-02-19 Richard Biener <rguenther@suse.de>
5117 PR tree-optimization/56384
5118 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
5119 (vn_hash_type): Split out from ...
5120 (vn_hash_constant_with_type): ... here.
5121 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
5122 (vn_phi_eq): Compare types from vn_phi_s structure.
5123 (vn_phi_lookup): Populate vn_phi_s type.
5124 (vn_phi_insert): Likewise.
5126 2013-02-19 Jakub Jelinek <jakub@redhat.com>
5128 PR tree-optimization/56350
5129 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
5130 if haven't found reduction or nested cycle operand, rather than
5131 asserting we must find it.
5133 PR tree-optimization/56381
5134 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
5137 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
5138 Jakub Jelinek <jakub@redhat.com>
5141 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
5142 (swap_optab_enable): Same.
5143 (init_all_optabs): Use argument instead of global.
5144 * tree.h (struct tree_optimization_option): New field target_optabs.
5145 * expr.h (init_all_optabs): Add argument to prototype.
5146 (TREE_OPTIMIZATION_OPTABS): New.
5147 (save_optabs_if_changed): Protoize.
5148 * optabs.h: Declare this_fn_optabs.
5149 * optabs.c (save_optabs_if_changed): New.
5150 Declare this_fn_optabs.
5151 (init_optabs): Add argument to init_all_optabs() call.
5152 * function.c (invoke_set_current_function_hook): Handle per
5154 * function.h (struct function): New field optabs.
5155 * config/mips/mips.c (mips_set_mips16_mode): Handle when
5156 optimization_current_node has changed.
5157 * target-globals.h (save_target_globals_default_opts): Protoize.
5158 * target-globals.c (save_target_globals_default_opts): New.
5160 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5163 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
5164 registers %fr12 and %fr12R as call used.
5167 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
5168 and HImode, require all displacements to be an integer multiple of
5170 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
5171 only allow QImode and HImode when reload is in progress and strict is
5172 true. Likewise for symbolic addresses. Use base14_operand to check
5173 displacements in REG+BASE addresses.
5175 2013-02-18 Richard Biener <rguenther@suse.de>
5177 PR tree-optimization/56366
5178 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5179 handle sign-conversion of outer-loop initial induction value.
5181 2013-02-18 Richard Biener <rguenther@suse.de>
5184 * cfghooks.c (merge_blocks): If we merge a latch into another
5185 block adjust references to it.
5186 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
5187 (verify_loop_structure): Verify that a recorded latch is in fact
5190 2013-02-18 Richard Biener <rguenther@suse.de>
5192 PR tree-optimization/56321
5193 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
5194 order SSA name release and virtual operand unlinking.
5196 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5198 * config/microblaze/microblaze.md (save_stack_block): Define.
5199 (restore_stack_block): Likewise.
5201 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5203 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
5204 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
5205 * config/microblaze/microblaze.c (microblaze_option_override):
5206 Bail out early for PIC modes when target does not support PIC.
5208 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5210 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
5211 Replace with a microblaze version.
5212 (microblaze_trampoline_init): Adapt for microblaze.
5213 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
5216 2013-02-16 Jakub Jelinek <jakub@redhat.com>
5217 Dodji Seketeli <dodji@redhat.com>
5220 * asan.c (get_mem_refs_of_builtin_call): White space and style
5222 (instrument_mem_region_access): Do not forget to always put
5223 instrumentation of the of 'base' and 'base + len' in a "if (len !=
5224 0) statement, even for cases where either 'base' or 'base + len'
5225 are not instrumented -- because they have been previously
5226 instrumented. Simplify the logic by putting all the statements
5227 instrument 'base + len' inside a sequence, and then insert that
5228 sequence right before the current insertion point. Then, to
5229 instrument 'base + len', just get an iterator on that statement.
5230 And do not forget to update the pointer to iterator the function
5231 received as argument.
5233 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
5235 PR rtl-optimization/56348
5236 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
5238 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
5240 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
5241 (clean_graph_dump_file): Pass base to start_graph_dump.
5243 2013-02-14 Richard Henderson <rth@redhat.com>
5246 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
5248 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
5250 * collect2-aix.h: Define F_LOADONLY.
5252 2013-02-14 Richard Biener <rguenther@suse.de>
5255 * varasm.c (output_constant_def_1): Get the decl representing
5256 the constant as argument.
5257 (output_constant_def): Wrap output_constant_def_1.
5258 (make_decl_rtl): Use output_constant_def_1 with the decl
5259 representing the constant.
5260 (build_constant_desc): Optionally re-use a decl already
5261 representing the constant.
5262 (tree_output_constant_def): Adjust.
5264 2013-02-14 Dodji Seketeli <dodji@redhat.com>
5267 * asan.c (instrument_builtin_call): Really put the length of the
5268 second source argument into src1_len.
5270 2013-02-13 Jakub Jelinek <jakub@redhat.com>
5272 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
5273 argument. If it is false, don't create edge from then_bb to
5275 (insert_if_then_before_iter): Pass true to it.
5276 (build_check_stmt): Pass false to it.
5277 (transform_statements): Flush hash table only on extended basic
5278 block boundaries, rather than at the beginning of every bb.
5279 Don't flush hash table on nonfreeing_call_p calls.
5280 * tree-flow.h (nonfreeing_call_p): New prototype.
5281 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
5283 2013-02-13 David S. Miller <davem@davemloft.net>
5285 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
5287 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
5290 * ira.c (max_regno_before_ira): Move from ...
5292 (fix_reg_equiv_init): Use max_regno_before_ira instead of
5295 2013-02-13 Jakub Jelinek <jakub@redhat.com>
5297 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
5299 2013-02-13 Richard Biener <rguenther@suse.de>
5302 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
5303 globals in MEM_REFs.
5305 2013-02-13 Richard Biener <rguenther@suse.de>
5307 * loop-init.c (loop_optimizer_init): Clear loop state when
5308 re-initializing preserved loops.
5309 * loop-unswitch.c (unswitch_single_loop): Return whether
5310 we unswitched the loop. Do not verify loop state here.
5311 (unswitch_loops): When we unswitched a loop discover new
5314 2013-02-13 Kostya Serebryany <kcc@google.com>
5316 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
5318 * sanitizer.def: Rename __asan_init to __asan_init_v1.
5320 2013-02-12 Dodji Seketeli <dodji@redhat.com>
5322 Avoid instrumenting duplicated memory access in the same basic block
5323 * Makefile.in (asan.o): Add new dependency on hash-table.h
5324 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
5325 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
5326 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
5327 (free_mem_ref_resources, has_mem_ref_been_instrumented)
5328 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
5329 (get_mem_ref_of_assignment): New functions.
5330 (get_mem_refs_of_builtin_call): Extract from
5331 instrument_builtin_call and tweak a little bit to make it fit with
5333 (instrument_builtin_call): Use the new
5334 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
5335 of is_gimple_builtin_call.
5336 (instrument_derefs, instrument_mem_region_access): Insert the
5337 instrumented memory reference into the hash table.
5338 (maybe_instrument_assignment): Renamed instrument_assignment into
5339 this, and change it to advance the iterator when instrumentation
5340 actually happened and return true in that case. This makes it
5341 homogeneous with maybe_instrument_assignment, and thus give a
5342 chance to callers to be more 'regular'.
5343 (transform_statements): Clear the memory reference hash table
5344 whenever we enter a new BB, when we cross a function call, or when
5345 we are done transforming statements. Use
5346 maybe_instrument_assignment instead of instrumentation. No more
5347 need to special case maybe_instrument_assignment and advance the
5348 iterator after calling it; it's now handled just like
5349 maybe_instrument_call. Update comment.
5351 2013-02-13 Richard Biener <rguenther@suse.de>
5353 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
5354 Fix loop discovery code.
5356 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
5359 * lra-constraints.c (process_alt_operands): Match early clobber
5360 operand with itself. Check conflicts with earlyclobber only if
5361 the operand is not reloaded. Prefer to reload conflicting operand
5362 if earlyclobber and matching operands are the same.
5364 2013-02-12 Richard Biener <rguenther@suse.de>
5367 * lto-streamer-out.c (write_symbol): Do not output symbols
5368 for hard register variables.
5370 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
5373 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
5374 (umulsidi3_insn, mulsidi3_insn): New insns.
5376 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
5378 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
5379 (struct tune_params): Add vec_costs field.
5380 * config/arm/arm.c (arm_builtin_vectorization_cost)
5381 (arm_add_stmt_cost): New functions.
5382 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
5383 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
5384 (arm_default_vec_cost): New struct of type cpu_vec_costs.
5385 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
5386 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
5387 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
5388 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
5390 2013-02-12 Richard Biener <rguenther@suse.de>
5393 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
5394 decls again if possible.
5396 2013-02-12 Richard Biener <rguenther@suse.de>
5399 * tree-ssa.c (verify_ssa_name): Fix check, move
5400 SSA_NAME_IN_FREE_LIST check up.
5402 2013-02-12 Jakub Jelinek <jakub@redhat.com>
5403 Steven Bosscher <steven@gcc.gnu.org>
5405 PR rtl-optimization/56151
5406 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
5407 equal to op0 or op1, and last_insn pattern is CODE operation
5408 with MEM dest and one of the operands matches that MEM.
5410 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
5412 * doc/extend.texi: Document Function Multiversioning and "default"
5413 parameter string to target attribute.
5414 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
5415 target attribute parameter is "default".
5416 (ix86_compare_version_priority): Remove checks for target attribute.
5417 (ix86_mangle_function_version_assembler_name): Change error to sorry.
5418 Remove check for target attribute equal to NULL. Add assert.
5419 (ix86_generate_version_dispatcher_body): Change error to sorry.
5421 2013-02-11 Iain Sandoe <iain@codesourcery.com>
5422 Jack Howarth <howarth@bromo.med.uc.edu>
5423 Patrick Marlier <patrick.marlier@gmail.com>
5426 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
5427 define ENDFILE_SPEC as TM_DESTRUCTOR.
5428 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
5430 2013-02-11 Alexander Potapenko <glider@google.com>
5431 Jack Howarth <howarth@bromo.med.uc.edu>
5432 Jakub Jelinek <jakub@redhat.com>
5435 * config/darwin.c (cdtor_record): Rename ctor_record.
5436 (sort_cdtor_records): Rename sort_ctor_records.
5437 (finalize_dtors): New routine to sort destructors by
5438 priority before use in assemble_integer.
5439 (machopic_asm_out_destructor): Use finalize_dtors if needed.
5441 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
5443 PR rtl-optimization/56275
5444 * simplify-rtx.c (avoid_constant_pool_reference): Check that
5445 offset is non-negative and less than cmode size before
5446 calling simplify_subreg.
5448 2013-02-11 Richard Biener <rguenther@suse.de>
5450 PR tree-optimization/56264
5451 * cfgloop.h (fix_loop_structure): Adjust prototype.
5452 * loop-init.c (fix_loop_structure): Return the number of
5453 newly discovered loops.
5454 * tree-cfgcleanup.c (repair_loop_structures): When new loops
5455 are discovered, do a full loop-closed SSA rewrite.
5457 2013-02-11 Richard Biener <rguenther@suse.de>
5459 PR tree-optimization/56273
5460 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5462 (check_array_ref): Fix missing newline in dumps.
5463 (search_for_addr_array): Likewise.
5465 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
5467 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
5469 2013-02-09 Jakub Jelinek <jakub@redhat.com>
5472 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
5474 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
5476 PR rtl-optimization/56246
5477 * lra-constraints.c (simplify_operand_subreg): Try to reuse
5479 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
5480 constraints are satisfied.
5482 2013-02-08 Jeff Law <law@redhat.com>
5485 * emit-rtl.c (reg_is_parm_p): New function.
5486 * regs.h (reg_is_parm_p): New prototype.
5487 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
5488 callee-clobbered registers.
5490 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5493 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
5494 If there is no implicit builtin declaration, just return NULL.
5496 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5498 * config/i386/sse.md (FMAMODEM): New mode iterator.
5499 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
5500 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
5502 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5504 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
5505 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
5506 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
5508 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5510 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
5511 (microblaze*-*-elf): Likewise.
5512 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
5514 * config/microblaze/microblaze-c.c: Add builtin defines for
5515 _LITTLE_ENDIAN and _BIG_ENDIAN.
5516 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
5517 add to TARGET_DEFAULT flags.
5518 Expand ASM_SPEC and LINK_SPEC.
5519 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
5520 * config/microblaze/microblaze.md: Update extendsidi2 and
5521 movdi_internal instructions to use low-order / high-order reg
5523 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
5524 options and inversemask / mask of LITTLE_ENDIAN.
5525 * config/microblaze/t-microblaze: Expand multilib options to
5526 include mlittle-endian (le) and update exceptions patterns.
5528 2013-02-08 Jakub Jelinek <jakub@redhat.com>
5530 PR rtl-optimization/56195
5531 * lra-constraints.c (get_reload_reg): Don't reuse regs
5532 if they have smaller mode than requested, if they have
5533 wider mode than requested, try to return a SUBREG.
5535 PR tree-optimization/56250
5536 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
5537 if type is unsigned and code isn't MULT_EXPR.
5539 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5541 PR tree-optimization/56064
5542 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
5543 bits according to mode.
5544 * fixed-value.h (fixed_from_double_int)
5545 (const_fixed_from_double_int): Adjust comments.
5547 2013-02-08 Richard Biener <rguenther@suse.de>
5550 * lto-streamer.h (struct data_in): Remove current_file, current_line
5551 and current_col members.
5552 * lto-streamer-out.c (lto_output_location): Stream changed bits
5553 en-block for efficiency.
5554 * lto-streamer-in.c (clear_line_info): Remove.
5555 (lto_input_location): Cache current file, line and column
5556 globally via local statics. Read changed bits en-block.
5557 (input_function): Do not call clear_line_info.
5558 (lto_read_body): Likewise.
5559 (lto_input_toplevel_asms): Likewise.
5561 2013-02-08 Michael Matz <matz@suse.de>
5563 PR tree-optimization/52448
5564 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
5565 (nt_call_phase): New static.
5566 (add_or_mark_expr): Only mark accesses with newer phase than any
5568 (nonfreeing_call_p): New.
5569 (nt_init_block): Update nt_call_phase, mark blocks as visited.
5570 (nt_fini_block): Keep blocks marked as visited.
5571 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
5573 2013-02-08 Richard Biener <rguenther@suse.de>
5575 * ira.c (ira): Free broken dominator information.
5577 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5579 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
5581 2013-02-08 Marek Polacek <polacek@redhat.com>
5583 * cfgloop.c (verify_loop_structure): Add more checking of headers.
5585 2013-02-08 Richard Biener <rguenther@suse.de>
5588 * cfgloop.h (flow_loops_find): Adjust.
5589 (bb_loop_header_p): Declare.
5590 * cfgloop.c (bb_loop_header_p): New function split out from ...
5591 (flow_loops_find): ... here. Adjust function signature,
5592 support incremental loop structure update.
5593 (verify_loop_structure): Cleanup. Verify a loop is a loop.
5594 * cfgloopmanip.c (fix_loop_structure): Move ...
5595 * loop-init.c (fix_loop_structure): ... here.
5596 (apply_loop_flags): Split out from ...
5597 (loop_optimizer_init): ... here.
5598 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
5599 in incremental mode, only remove dead loops here.
5601 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5604 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
5605 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
5606 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
5607 (*round<mode>3.libgcc): New insns for fixed-modes.
5608 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
5609 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
5610 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
5611 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
5612 implementations. Define to __builtin_avr_absFX,
5613 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
5614 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
5615 __builtin_avr_countlsFX, respectively.
5616 * config/avr/avr-c.c (target.h): Include it.
5617 (enum avr_builtin_id): New enum.
5618 (avr_resolve_overloaded_builtin): New static function.
5619 (avr_register_target_pragmas): Use it to set
5620 targetm.resolve_overloaded_builtin.
5621 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
5622 tree nodes used by DEF_BUILTIN.
5623 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
5624 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
5625 <AVR_BUILTIN_xxBITS>: Same.
5627 2013-02-08 Richard Biener <rguenther@suse.de>
5629 * cfgloop.c (verify_loop_structure): Properly handle
5630 a loop exiting to another loop header.
5631 * ira-int.h (ira_loops): Remove.
5632 * ira.c (ira_loops): Remove.
5633 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
5634 (do_reload): Use loop_optimizer_finalize.
5635 * ira-build.c (create_loop_tree_nodes): Use get_loops and
5636 number_of_loops to access the loop tree.
5637 (more_one_region_p): Likewise.
5638 (finish_loop_tree_nodes): Likewise.
5639 (rebuild_regno_allocno_maps): Likewise.
5640 (mark_loops_for_removal): Likewise.
5641 (mark_all_loops_for_removal): Likewise.
5642 (remove_unnecessary_regions): Likewise.
5643 (ira_build): Likewise.
5644 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5646 2013-02-08 Richard Biener <rguenther@suse.de>
5648 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
5649 * ipa-pure-const.c (analyze_function): Avoid calling
5650 mark_irreducible_loops twice.
5651 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
5653 2013-02-07 David S. Miller <davem@davemloft.net>
5655 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
5657 * var-tracking.c (vt_add_function_parameter): Test the presence of
5658 HAVE_window_save properly and do not remap argument registers when
5659 we have a leaf function.
5661 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
5664 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
5666 * config/i386/i386.c (ix86_print_operand): Ditto.
5668 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5670 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5672 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5674 PR rtl-optimization/56225
5675 * lra-constraints.c (process_alt_operands): Check that reload hard
5676 reg can hold value for strict_low_part.
5678 2013-02-07 Jakub Jelinek <jakub@redhat.com>
5681 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
5682 dwarf2out_end_function.
5683 (in_first_function_p, maybe_at_text_label_p,
5684 first_loclabel_num_not_at_text_label): New variables.
5685 (dwarf2out_var_location): In the first function find out
5686 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
5687 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
5690 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
5692 PR rtl-optimization/56178
5693 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
5694 SUBREG of a register. Tidy up related block of code.
5695 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
5696 note if the source is a register or a SUBREG of a register.
5698 2013-02-07 Jakub Jelinek <jakub@redhat.com>
5701 * config/rs6000/rs6000.md (ptrm): New mode attr.
5702 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
5703 call_value_indirect_aix<pttrsize>,
5704 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
5707 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5709 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
5710 if -bnortl. Convert to strcmp and strncmp.
5712 2013-02-07 Alan Modra <amodra@gmail.com>
5715 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
5716 addresses won't wrap when offsetting.
5717 (rs6000_secondary_reload): Provide secondary reloads needed for
5718 wrapping LO_SUM addresses.
5720 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
5722 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
5723 MACH, just __MACH__.
5725 2013-02-06 Richard Biener <rguenther@suse.de>
5727 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
5728 instead of calling fix_loop_structure.
5730 2013-02-06 Jakub Jelinek <jakub@redhat.com>
5733 * omp-low.c (use_pointer_for_field): Return false if
5734 lower_send_shared_vars doesn't generate any copy-out code.
5736 2013-02-06 Tom de Vries <tom@codesourcery.com>
5738 PR rtl-optimization/56131
5739 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
5740 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
5741 of the label is NULL. Add comment.
5743 2013-02-05 Jakub Jelinek <jakub@redhat.com>
5745 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
5748 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
5749 (STATIC_LIBTSAN_LIBS): Likewise.
5750 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
5751 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
5752 is defined, don't add anything else beyond that.
5753 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
5754 (LINK_COMMAND_SPEC): Use them.
5756 PR tree-optimization/56205
5757 * tree-stdarg.c (check_all_va_list_escapes): Return true if
5758 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
5759 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
5761 2013-02-05 Richard Biener <rguenther@suse.de>
5763 PR tree-optimization/53342
5764 PR tree-optimization/53185
5765 * tree-vectorizer.h (vect_check_strided_load): Remove.
5766 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
5767 not disallow peeling for vectorized strided loads.
5768 (vect_check_strided_load): Make static and simplify.
5769 (vect_analyze_data_refs): Adjust.
5770 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
5771 correctly when vectorizing strided loads.
5773 2013-02-05 Richard Biener <rguenther@suse.de>
5775 * doc/install.texi: Refer to ISL, not PPL.
5777 2013-02-05 Jan Hubicka <jh@suse.cz>
5779 PR tree-optimization/55789
5780 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
5782 2013-02-05 Jan Hubicka <jh@suse.cz>
5784 PR tree-optimization/55789
5785 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
5786 the dead call anyway.
5788 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
5791 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
5793 2013-02-04 Alexander Potapenko <glider@google.com>
5794 Jack Howarth <howarth@bromo.med.uc.edu>
5795 Jakub Jelinek <jakub@redhat.com>
5798 * config/darwin.c (sort_ctor_records): Stabilized qsort
5799 on constructor priority by using original position.
5800 (finalize_ctors): New routine to sort constructors by
5801 priority before use in assemble_integer.
5802 (machopic_asm_out_constructor): Use finalize_ctors if needed.
5804 2013-02-04 Jakub Jelinek <jakub@redhat.com>
5807 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
5808 about visibility on artificial decls.
5809 * config/sol2.c (solaris_assemble_visibility): Likewise.
5811 2013-02-04 Kai Tietz <ktietz@redhat.com>
5814 * config/i386/i386.c (function_value_ms_64): Add additional valtype
5815 argument and improve checking of return-argument types for 16-byte
5817 (ix86_function_value_1): Add additional valtype argument on call
5818 of function_value_64.
5819 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
5820 handling infunction_value_64 function.
5822 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5824 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
5826 2013-02-04 Richard Biener <rguenther@suse.de>
5828 PR tree-optimization/56188
5829 * tree-ssa-structalias.c (label_visit): Consider case with
5830 initially non-empty points-to set.
5831 (perform_var_substitution): Dump node mapping and clean up.
5833 2013-02-04 Richard Guenther <rguenther@suse.de>
5836 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
5837 node prevail as last resort.
5838 (lto_symtab_merge_decls): Remove guard on LTRANS here.
5839 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
5841 2013-02-04 Richard Biener <rguenther@suse.de>
5843 PR tree-optimization/56113
5844 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
5846 (equiv_class_lookup_or_add): ... this.
5847 (label_visit): Adjust and fix error in previous patch.
5848 (perform_var_substitution): Adjust.
5850 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
5852 * config/sh/divtab.c: Fix formatting and comments throughout the file.
5853 * config/sh/sh4-300.md: Likewise.
5854 * config/sh/sh4a.md: Likewise.
5855 * config/sh/constraints.md: Likewise.
5856 * config/sh/sh.md: Likewise.
5857 * config/sh/netbsd-elf.h: Likewise.
5858 * config/sh/predicates.md: Likewise.
5859 * config/sh/sh-protos.h: Likewise.
5860 * config/sh/ushmedia.h: Likewise.
5861 * config/sh/linux.h: Likewise.
5862 * config/sh/sh.c: Likewise.
5863 * config/sh/superh.h: Likewise.
5864 * config/sh/elf.h: Likewise.
5865 * config/sh/sh4.md: Likewise.
5866 * config/sh/sh.h: Likewise.
5868 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5870 * config/pa/constraints.md: Adjust unused letters. Change "T"
5871 constraint to match_test floating_point_store_memory_operand().
5872 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
5873 (base14_operand): New.
5874 (floating_point_store_memory_operand): New.
5875 (integer_store_memory_operand): Revise to use base14_operand and
5876 reg_plus_base_memory_operand.
5877 (move_dest_operand): Allow symbolic_memory_operands.
5878 (symbolic_memory_operand): Check for LO_SOM.
5879 (symbolic_operand): Change default case to break.
5880 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
5881 CONST_DOUBLE values to be reloaded by putting them into memory when
5882 the destination is a floating point register.
5883 (movdf): Remove code to handle CONST_DOUBLE.
5885 (reload_indf_r1): New.
5886 (reload_insf_r1): New.
5887 Consistently use "Q" and "T" constraints with integer and floating
5888 point move instructions, respectively.
5889 (movdi): Remove FAIL.
5890 Change predicate for source operand unamed DImode move from
5891 general_operand to move_src_operand.
5892 (umulsidi3): Change predicate for destination operand to
5894 Likewise for similar unamed patterns.
5895 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5896 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5897 (hppa_legitimize_address): Simplify mask calculation.
5898 (pa_emit_move_sequence): Revised handling of secondary reloads from
5899 REG+D addresses for floating point loads and stores. Directly handle
5900 loading CONST0_RTX (mode) to a floating point register.
5901 (pa_secondary_reload): Handle reloading DF and SFmode constant values
5902 to floating point registers. Don't restrict secondary reloads to
5903 floating point registers to integer modes. Revise some comments and
5905 (TARGET_LEGITIMATE_ADDRESS_P): Define.
5906 (pa_legitimate_address_p): New.
5907 (pa_legitimize_reload_address): New.
5908 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5909 (STRICT_REG_OK_FOR_BASE_P): New.
5910 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
5911 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5913 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
5914 Andrew Dixie <andrewd@gentrack.com>
5916 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5919 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
5921 * expmed.c (extract_bit_field_1): Pass the full width of the
5922 structure to get_best_reg_extraction_insn.
5924 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5927 * configure.ac (use_cxa_atexit): Add AIX.
5928 * configure: Regenerate.
5930 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5932 2013-02-01 Jakub Jelinek <jakub@redhat.com>
5935 * final.c (need_profile_function): New variable.
5936 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
5937 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
5938 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
5939 notes, targetm.asm_out.function_prologue doesn't emit anything,
5940 HAVE_prologue and profiler should be emitted before prologue,
5941 set need_profile_function instead of emitting it.
5942 (final_scan_insn): If need_profile_function, emit
5943 profile_function on the first NOTE_INSN_BASIC_BLOCK or
5944 NOTE_INSN_FUNCTION_BEG note.
5946 2013-02-01 Richard Henderson <rth@redhat.com>
5948 * config/rs6000/rs6000.md (smulditi3): New.
5951 * config/alpha/alpha.md (umulditi3): New.
5953 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5955 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
5956 (ASM_OUTPUT_ALIGNED_LOCAL): New.
5958 2013-02-01 Richard Biener <rguenther@suse.de>
5960 PR tree-optimization/56113
5961 * tree-ssa-structalias.c (label_visit): Reduce work for
5962 single-predecessor nodes.
5964 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
5966 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
5967 range isn't testing for zero.
5969 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
5972 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
5974 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
5975 Nick Clifton <nickc@redhat.com>
5977 * config/v850/constraints.md (Q): Define as a memory constraint.
5978 * config/v850/predicates.md (label_ref_operand): New predicate.
5979 (e3v5_shift_operand): New predicate.
5980 (ior_operator): New predicate.
5981 * config/v850/t-v850: Add e3v5 multilib.
5982 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
5983 (v850_gen_movdi): Prototype.
5984 * config/v850/v850.c: Add support for e3v5 architecture.
5985 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
5987 (construct_save_jarl): Add e3v5 long JARL support.
5988 (v850_adjust_insn_length): New function. Adjust length of call
5989 insns when using e3v5 instructions.
5990 (v850_gen_movdi): New function: Generate instructions to move a
5992 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
5993 (CPP_SPEC): Define __v850e3v5__ as appropriate.
5994 (TARGET_USE_FPU): Enable for e3v5.
5995 (CONST_OK_FOR_W): New macro.
5996 (ADJUST_INSN_LENGTH): Define.
5997 * config/v850/v850.md (UNSPEC_LOOP): Define.
5998 (attr cpu): Add v850e3v5.
5999 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
6000 (movdi): New pattern.
6001 (movdi_internal): New pattern.
6002 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
6003 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
6004 (cstoresf4): Likewise.
6005 (cstoredf4): Likewise.
6006 (insv): New pattern.
6007 (rotlso3_a): New pattern.
6008 (rotlsi3_b): New pattern
6009 (rotlsi3_v850e3v5): New pattern.
6010 (doloop_begin): New pattern.
6011 (fix_loop_counter): New pattern.
6012 (doloop_end): New pattern.
6013 (branch_normal): Add e3v5 long branch support.
6014 (branch_invert): Likewise.
6015 (branch_z_normal): Likewise.
6016 (branch_z_invert): Likewise.
6017 (branch_nz_normal): Likewise.
6018 (branch_nz_invert): Likewise.
6019 (call_internal_short): Add e3v5 register-indirect JARL support.
6020 (call_internal_long): Likewise.
6021 (call_value_internal_short): Likewise.
6022 (call_value_internal_long): Likewise.
6023 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
6024 (mloop): New option.
6025 * config.gcc: Add support for configuring v840e3v5 target.
6026 * doc/invoke.texi: Document new v850 specific command line options.
6028 2013-01-31 Paul Koning <ni1d@arrl.net>
6032 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
6033 children if parent is a class.
6034 (prune_unused_types_prune): Don't add DW_AT_declaration.
6036 2013-01-31 Richard Biener <rguenther@suse.de>
6038 PR tree-optimization/56157
6039 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
6040 match up operand with SLP child.
6042 2013-01-31 Jason Merrill <jason@redhat.com>
6045 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
6046 parameters the first time.
6047 (gen_scheduled_generic_parms_dies): Check completeness here.
6049 2013-01-31 Richard Biener <rguenther@suse.de>
6052 * common.opt (faggressive-loop-optimizations): New flag,
6054 * doc/invoke.texi (faggressive-loop-optimizations): Document.
6055 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
6056 infer_loop_bounds_from_undefined by it.
6058 2013-01-31 Richard Biener <rguenther@suse.de>
6060 PR tree-optimization/56150
6061 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
6062 visit virtual operands.
6063 (find_uses_to_rename_bb): Likewise.
6065 2013-01-31 Richard Biener <rguenther@suse.de>
6067 PR tree-optimization/56150
6068 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
6069 mixed store non-store stmts.
6071 2013-01-30 Jakub Jelinek <jakub@redhat.com>
6074 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
6075 LIBASAN_EARLY_SPEC is defined.
6076 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
6077 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
6079 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
6082 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
6083 invalid args instead of ICEing on it.
6084 (ix86_valid_target_attribute_tree): Return error_mark_node if
6085 ix86_valid_target_attribute_inner_p failed.
6086 (ix86_valid_target_attribute_p): Return false only if
6087 ix86_valid_target_attribute_tree returned error_mark_node. Allow
6088 target("default") attribute.
6089 (sorted_attr_string): Change argument from const char * to tree,
6090 merge in all target attribute arguments rather than just one.
6091 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
6092 instead of free. Avoid using strcat.
6093 (ix86_mangle_function_version_assembler_name): Mangle
6094 target("default") as if no target attribute is present. Adjust
6095 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
6096 instead of xmalloc and XDELETEVEC instead of free.
6097 (ix86_function_versions): Don't return true if one of the decls
6098 doesn't have target attribute. If they don't and one of the decls
6099 is DECL_FUNCTION_VERSIONED, report an error. Adjust
6100 sorted_attr_string caller. Use XDELETEVEC instead of free.
6101 (ix86_supports_function_versions): Remove.
6102 (make_name): Fix up formatting.
6103 (make_dispatcher_decl): Remove resolver_name and its initialization.
6104 Avoid leaking memory.
6105 (is_function_default_version): Return true if there is
6106 target("default") attribute rather than no target attribute at all.
6107 (make_resolver_func): Avoid leaking memory.
6108 (ix86_generate_version_dispatcher_body): Likewise.
6109 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
6110 * target.def (supports_function_versions): Remove.
6111 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
6112 * doc/tm.texi: Regenerated.
6114 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
6116 PR rtl-optimization/56144
6117 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
6118 for values with side effects.
6120 2013-01-30 Richard Biener <rguenther@suse.de>
6122 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
6123 (sparseset_pop): Likewise.
6124 * cfganal.c (compute_idf): Likewise. Increase work-stack size
6125 to be able to use quick_push in the worker loop.
6127 2013-01-30 Marek Polacek <polacek@redhat.com>
6129 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
6131 2013-01-30 Richard Biener <rguenther@suse.de>
6134 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
6136 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
6138 PR tree-optimization/56064
6139 * fixed-value.c (fixed_from_double_int): New function.
6140 * fixed-value.h (fixed_from_double_int): New prototype.
6141 (const_fixed_from_double_int): New static inline function.
6142 * fold-const.c (native_interpret_fixed): New static function.
6143 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
6144 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
6145 (native_encode_fixed): New static function.
6146 (native_encode_expr) <FIXED_CST>: Use it.
6147 (native_interpret_int): Move double_int worker code to...
6148 * double-int.c (double_int::from_buffer): ...this new static method.
6149 * double-int.h (double_int::from_buffer): Prototype it.
6151 2013-01-30 Richard Biener <rguenther@suse.de>
6153 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
6154 New pointer-map and obstack.
6155 (init_alias_vars): Allocate pointer-map and obstack.
6156 (delete_points_to_sets): Free them.
6157 (find_what_var_points_to): Cache result.
6158 (find_what_p_points_to): Adjust for changed interface of
6159 find_what_var_points_to.
6160 (compute_points_to_sets): Likewise.
6161 (ipa_pta_execute): Likewise.
6163 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6165 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
6166 * configure: Regenerate.
6167 * config.in: Regenerate.
6168 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
6169 #nobits/#progbits if supported.
6171 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
6174 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
6175 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
6176 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
6178 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6180 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
6181 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
6183 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6185 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
6186 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
6188 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6190 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
6192 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
6193 * config/arm/cortex-a7.md: New bypasses using
6194 arm_mac_accumulator_is_result.
6196 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6198 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
6199 (cortex_a7_neon_mla): Likewise.
6200 (cortex_a7_fpfmad): New reservation.
6201 (cortex_a7_fpmacs): Use ffmas and update required units.
6202 (cortex_a7_fpmuld): Update required units and latency.
6203 (cortex_a7_fpmacd): Likewise.
6204 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
6205 (cortex_a7_neon). Likewise.
6206 (bypass) Update participating units.
6208 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6210 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
6211 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
6213 * config/arm/vfp11.md (vfp_farith): Use ffmas.
6214 (vfp_fmul): Use ffmad.
6215 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
6216 (cortex_r4_fmacd): Use ffmad.
6217 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
6218 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
6219 (cortex_a9_fmacd): Use ffmad.
6220 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
6221 (cortex_a8_vfp_macd): Use ffmad.
6222 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
6223 (cortex_a5_fpmacd): Use ffmad.
6224 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
6225 (cortex_a15_vfp_macd): Use ffmad.
6226 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
6228 2013-01-29 Jason Merrill <jason@redhat.com>
6231 * varasm.c (default_assemble_visibility): Don't warn about
6232 visibility on artificial decls.
6234 2013-01-29 Richard Biener <rguenther@suse.de>
6236 PR tree-optimization/56113
6237 * tree-ssa-structalias.c (equiv_class_lookup): Also return
6239 (label_visit): Free duplicate bitmaps and record the leader instead.
6240 (perform_var_substitution): Adjust.
6242 2013-01-29 Richard Biener <rguenther@suse.de>
6244 PR tree-optimization/55270
6245 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
6246 the CFG, schedule loops for fixup.
6248 2013-01-29 Nick Clifton <nickc@redhat.com>
6250 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
6253 2013-01-28 Leif Ekblad <leif@rdos.net>
6255 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
6256 * config/i386/i386.h (TARGET_RDOS): New macro.
6257 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
6258 * config/i386/i386.c (ix86_option_override_internal): For 64bit
6259 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
6260 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
6261 DEFAULT_LARGE_SECTION_THRESHOLD.
6262 * config/i386/i386.md (R14_REG, R15_REG): New constants.
6263 * config/i386/rdos.h: New file.
6264 * config/i386/rdos64.h: New file.
6266 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
6269 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
6272 2013-01-28 Jakub Jelinek <jakub@redhat.com>
6274 PR rtl-optimization/56117
6275 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
6276 call cselib_lookup_from_insn on the MEM before calling
6277 add_insn_mem_dependence.
6279 2013-01-28 Richard Biener <rguenther@suse.de>
6281 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
6282 to a stmt that didn't have one.
6283 (copy_phis_for_bb): Likewise for PHI arguments.
6284 (copy_debug_stmt): Likewise for debug stmts.
6286 2013-01-28 Richard Biener <rguenther@suse.de>
6288 PR tree-optimization/56034
6289 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
6290 (partition_builtin_p): Adjust.
6291 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
6292 it is the last partition.
6293 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
6294 up the vertex for the definition.
6295 (classify_partition): Classify whether a partition is a
6296 PKIND_REDUCTION, thus has uses outside of the loop.
6297 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
6298 Merge all PKIND_REDUCTION partitions into the last partition.
6299 (tree_loop_distribution): Seed partitions from reductions as well.
6301 2013-01-28 Jakub Jelinek <jakub@redhat.com>
6303 PR tree-optimization/56125
6304 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
6305 pow(x,c) into sqrt(x) * powi(x, n/2) or
6306 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
6307 optimizing for size.
6308 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
6309 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
6312 PR tree-optimization/56094
6313 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
6314 to UNKNOWN_LOCATION while gimplifying expr.
6316 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
6319 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
6320 operand 0 in movabs insn template for -masm=intel asm alternative.
6321 (*movabs<mode>_2): Ditto for operand 1.
6323 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
6326 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
6329 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6331 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
6334 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6336 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
6337 Undef to avoid warning.
6339 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6341 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
6342 * configure: Regenerate.
6344 2013-01-25 Jakub Jelinek <jakub@redhat.com>
6346 PR tree-optimization/56098
6347 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
6348 for stmts with volatile ops.
6349 (cond_store_replacement): Don't optimize if assign has volatile ops.
6350 (cond_if_else_store_replacement_1): Don't optimize if either
6351 then_assign or else_assign have volatile ops.
6352 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
6355 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
6357 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
6359 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
6361 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
6362 missing ':' in asm example.
6364 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
6366 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
6367 entries into lane and laneq entries.
6368 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
6369 Remove AdvSIMD scalar modes.
6370 (aarch64_sq<r>dmulh_laneq<mode>): New.
6371 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
6373 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
6374 builtin implementations to relfect changes in RTL in aarch64-simd.md.
6375 * config/aarch64/iterators.md (VCOND): New.
6378 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
6381 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
6382 Add NULL LIBNAME argument to existing definitions.
6383 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
6384 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
6385 * config/avr/avr.c (DEF_BUILTIN): Same.
6386 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
6387 (avr_expand_builtin): Expand to a vanilla call if a libgcc
6388 implementation is available (DECL_ASSEMBLER_NAME is set).
6389 (avr_fold_absfx): New static function.
6390 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
6391 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
6392 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
6394 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
6395 (abshk, absk, abslk, absllk): Provide as static inline functions.
6397 2013-01-25 Marek Polacek <polacek@redhat.com>
6399 PR tree-optimization/56035
6400 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
6402 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
6404 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
6405 (*movtf_internal_rex64): Add (!o,C) alternative
6406 (*movxf_internal_rex64): Ditto.
6407 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
6409 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
6411 * doc/invoke.texi: fix typo.
6412 * doc/objc.texi: fix typo.
6414 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
6416 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
6417 for the first two alternatives.
6419 2013-01-24 Diego Novillo <dnovillo@google.com>
6421 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
6422 (ggc-zone.o): Remove.
6423 * configure.ac: Remove option --with-gc.
6424 * configure: Re-generate.
6425 * doc/install.texi: Remove documentation for --with-gc.
6426 * gengtype.c (write_enum_defn): Remove. Update all users.
6427 (write_Types_process_field): Remove generation of gt_e_* argument.
6428 (output_type_enum): Remove. Update all users.
6429 (write_enum_defn): Remove. Update all users.
6430 (enum alloc_zone): Remove. Update all users.
6431 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
6432 * ggc-common.c (ggc_splay_alloc): Remove first argument.
6434 (struct ptr_data): Remove field TYPE. Update all users.
6435 (gt_pch_note_object): Remove argument TYPE. Update all users.
6436 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
6438 * ggc-none.c (ggc_alloc_typed_stat): Remove.
6439 (struct alloc_zone): Remove.
6440 (ggc_internal_alloc_zone_stat): Remove.
6441 (ggc_internal_cleared_alloc_zone_stat): Remove.
6442 * ggc-page.c (ggc_alloc_typed_stat): Remove.
6443 (ggc_pch_count_object): Remove last argument. Update all users.
6444 (ggc_pch_alloc_object): Remove last argument. Update all users.
6445 (struct alloc_zone): Remove.
6446 * ggc-zone.c: Remove.
6447 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
6448 (struct alloc_zone): Remove.
6449 (ggc_alloc_typed_stat): Remove.
6450 (ggc_alloc_typed): Remove.
6451 (ggc_splay_alloc): Remove first argument.
6452 (rtl_zone): Remove. Update all users.
6453 (tree_zone): Remove. Update all users.
6454 (tree_id_zone): Remove. Update all users.
6455 (ggc_internal_zone_alloc_stat): Remove. Update all users.
6456 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
6457 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
6458 * tree-ssanames.c: Remove references to zone allocator in comments.
6460 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
6462 * config/avr/avr.c (avr_out_fract): Make register numbers that
6463 might be outside of source operand signed.
6465 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
6467 * config/i386/constraints.md (Yf): New constraint.
6468 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
6469 of f constraint to conditionaly disable x87 register preferences.
6470 (*movdf_internal): Ditto.
6471 (*movsf_internal): Ditto.
6473 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
6476 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
6477 that have operands with impossible constraints.
6478 Add a FIXME for a speed-up opportunity.
6479 * lra-constraints.c (process_alt_operands): Verify that a class
6480 selected from constraints on asms is valid for the operand mode.
6481 (curr_insn_transform): Remove incorrect comment.
6483 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
6485 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
6486 TOC operand is a valid symbol ref in the constant pool.
6488 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6490 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
6492 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
6495 * config/avr/stdfix.h: New file.
6496 * t-avr (stdfix-gcc.h): New rule to build it.
6497 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
6499 2013-01-23 Kostya Serebryany <kcc@google.com>
6501 * config/darwin.h: remove dependency on
6502 CoreFoundation (asan on Mac OS).
6504 2013-01-23 Jakub Jelinek <jakub@redhat.com>
6507 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
6508 instead of cmpdi_operand for first comparison operand.
6509 Don't assert that comparison operands aren't both constants.
6511 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6513 * doc/install.texi (Downloading the Source): Update references to
6514 downloading separate components.
6516 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6518 * doc/extend.texi (__int128): Improve grammar.
6520 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
6523 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
6524 alternative to (o,r).
6525 (*movdi_internal_rex64): Remove (!o,n) alternative.
6526 (DImode immediate->memory splitter): Remove.
6527 (DImode immediate->memory peephole2): Remove.
6528 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
6529 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
6530 alternative to (!o,*r).
6531 (*movtf_internal_sse): New pattern.
6532 (*movxf_internal_rex64): New pattern.
6533 (*movxf_internal): Disable for TARGET_64BIT.
6534 (*movdf_internal_rex64): Remove (!o,F) alternative.
6536 2013-01-22 Jakub Jelinek <jakub@redhat.com>
6539 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
6540 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
6541 * tree-vect-loop-manip.c (find_loop_location): Also ignore
6542 stmt locations where LOCATION_LOCUS of the stmt location is
6543 UNKNOWN_LOCATION or BUILTINS_LOCATION.
6546 * config/i386/i386.md (UNSPEC_STOS): New.
6547 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
6548 *strsetqi_1): Add UNSPEC_STOS.
6550 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
6553 * doc/invoke.texi: Remove left over -Wsynth example.
6555 2013-01-21 Jakub Jelinek <jakub@redhat.com>
6557 PR tree-optimization/56051
6558 * fold-const.c (fold_binary_loc): Don't fold
6559 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
6560 a narrowing conversion, or widening conversion from signed
6563 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
6565 PR rtl-optimization/56023
6566 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
6567 dependent on debug instruction.
6569 2013-01-21 Martin Jambor <mjambor@suse.cz>
6572 * function.c (allocate_struct_function): Call
6573 invoke_set_current_function_hook earlier.
6575 2013-01-21 Jakub Jelinek <jakub@redhat.com>
6577 * reload1.c (init_reload): Only initialize reload_obstack
6578 during the first call.
6580 2013-01-21 Marek Polacek <polacek@redhat.com>
6582 * cfgloop.c (verify_loop_structure): Fix up grammar.
6584 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
6586 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
6587 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
6589 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6592 * config/arm/marvell-pj4.md: Update copyright year.
6593 Fix up use of alu to alu_reg and simple_alu_imm.
6595 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
6597 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
6599 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
6602 * lra-constraints.c (curr_insn_transform): Don't reuse original
6603 insn for secondary memory move when memory mode should be different.
6605 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6607 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
6608 atomic_storedi_1): New patterns.
6610 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6612 btver2 pipeline descriptions.
6613 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
6615 * config/i386/i386.md (btver2_decode): New type attributes.
6616 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
6618 * config/i386/btver2.md: New file describing btver2 pipelines.
6620 2013-01-19 Andrew Pinski <apinski@cavium.com>
6622 PR tree-optimization/52631
6623 * tree-ssa-sccvn (visit_use): Before looking up the original
6624 statement, try looking up the simplified expression.
6626 2013-01-19 Anthony Green <green@moxielogic.com>
6628 * config/moxie/moxie.c (moxie_expand_prologue): Set
6629 current_function_static_stack_size.
6631 2013-01-18 Jakub Jelinek <jakub@redhat.com>
6633 PR tree-optimization/56029
6634 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
6635 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
6637 2013-01-18 Sharad Singhai <singhai@google.com>
6639 PR tree-optimization/55995
6640 * dumpfile.c (dump_loc): Print location only if available.
6641 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
6643 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
6646 * lra-constraints.c (curr_insn_transform): Reuse original insn for
6647 secondary memory move.
6648 (inherit_reload_reg): Use rclass instead of cl for
6649 check_secondary_memory_needed_p.
6651 2013-01-18 Jakub Jelinek <jakub@redhat.com>
6654 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
6655 the case where writing real complex part of target modifies op1.
6657 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
6659 * config/aarch64/aarch64-simd.md
6660 (aarch64_vcond_internal<mode>): Handle unordered cases.
6661 * config/aarch64/iterators.md (v_cmp_result): New.
6663 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
6664 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6666 * config/arm/marvell-pj4.md: New file.
6667 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
6668 * config/arm/arm.md (generic_sched): Add marvell_pj4.
6669 (generic_vfp): Likewise.
6670 * config/arm/arm-cores.def: Add marvell-pj4.
6671 * config/arm/arm-tune.md: Regenerate.
6672 * config/arm/arm-tables.opt: Regenerate.
6673 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
6674 * doc/invoke.texi: Document marvell-pj4.
6676 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
6678 * config/aarch64/arm_neon.h: Map scalar types to standard types.
6680 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6685 * var-tracking.c (negative_power_of_two_p): New.
6686 (global_get_addr_cache, local_get_addr_cache): New.
6687 (get_addr_from_global_cache, get_addr_from_local_cache): New.
6688 (vt_canonicalize_addr): Rewrite using the above. Adjust the
6690 (vt_stack_offset_p): Remove.
6691 (vt_canon_true_dep): Always canonicalize loc's address.
6692 (clobber_overlapping_mems): Make sure we have a MEM.
6693 (local_get_addr_clear_given_value): New.
6694 (val_reset): Clear local cached entries.
6695 (compute_bb_dataflow): Create and release the local cache.
6696 Disable duplicate MEMs clobbering.
6697 (emit_notes_in_bb): Clobber MEMs likewise.
6698 (vt_emit_notes): Create and release the local cache.
6699 (vt_initialize, vt_finalize): Create and release the global
6700 cache, respectively.
6701 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
6703 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6706 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
6707 not found in the symtab.
6709 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6712 PR rtl-optimization/55547
6713 PR rtl-optimization/53827
6716 * alias.c (offset_overlap_p): New, factored out of...
6717 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
6718 the conservative special case for symbolic constants. Don't
6719 adjust zero sizes on alignment.
6721 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
6723 PR rtl-optimization/52573
6724 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
6725 REG_UNUSED for the same register.
6727 2013-01-17 Richard Biener <rguenther@suse.de>
6728 Marek Polacek <polacek@redhat.com>
6730 PR rtl-optimization/55833
6731 * loop-unswitch.c (unswitch_loops): Move loop verification...
6732 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
6733 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
6734 Set it to true when we're removing a loop from hierarchy tree in
6735 an irreducible region.
6736 (fix_bb_placements): Adjust caller.
6737 (fix_loop_placements): Likewise.
6739 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
6741 * config/avr/builtins.def (DEF_BUILTIN): Factor out
6742 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
6743 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
6744 Remove ID. Adjust comments.
6745 * config/avr/avr-c.c (avr_builtin_name): Remove.
6746 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
6747 * config/avr/avr.c (avr_tolower): New static function.
6748 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
6749 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
6750 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
6753 2013-01-17 Jan Hubicka <jh@suse.cz>
6755 PR tree-optimization/55273
6756 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
6758 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
6761 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
6762 store through atomic_store<mode>_1.
6763 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
6765 2013-01-17 Martin Jambor <mjambor@suse.cz>
6767 PR tree-optimizations/55264
6768 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
6769 for virtual methods.
6770 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
6771 virtual methods before inlining is over.
6772 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
6774 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
6777 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
6779 PR rtl-optimization/56005
6780 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
6781 pending reads for prefetch.
6783 2013-01-16 Ian Bolton <ian.bolton@arm.com>
6785 * config/aarch64/aarch64.md
6786 (*cstoresi_neg_uxtw): New pattern.
6787 (*cmovsi_insn_uxtw): New pattern.
6788 (*<optab>si3_uxtw): New pattern.
6789 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
6790 (*<optab>si3_insn_uxtw): New pattern.
6791 (*bswapsi2_uxtw): New pattern.
6793 2013-01-16 Richard Biener <rguenther@suse.de>
6795 * tree-inline.c (tree_function_versioning): Remove set but
6796 never used variable.
6798 2013-01-16 Richard Biener <rguenther@suse.de>
6800 PR tree-optimization/55964
6801 * tree-flow.h (rename_variables_in_loop): Remove.
6802 (rename_variables_in_bb): Likewise.
6803 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
6804 (copy_loop_before): Adjust and delete update-ssa status.
6805 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
6806 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
6807 (rename_variables_in_loop): Remove.
6808 (slpeel_update_phis_for_duplicate_loop): Likewise.
6809 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
6810 use available cfg machinery instead of duplicating it.
6811 Update PHI nodes and perform poor-mans SSA update here.
6812 (slpeel_tree_peel_loop_to_edge): Adjust.
6814 2013-01-16 Richard Biener <rguenther@suse.de>
6816 PR tree-optimization/54767
6817 PR tree-optimization/53465
6818 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
6819 (vrp_visit_phi_node): For PHI arguments coming via backedges
6820 drop all symbolical range information.
6821 (execute_vrp): Compute backedges.
6823 2013-01-16 Richard Biener <rguenther@suse.de>
6825 * doc/install.texi: Update CLooG and ISL requirements to
6828 2013-01-16 Christian Bruel <christian.bruel@st.com>
6831 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
6832 (broken_move): Handle UNSPECV_SP_SWITCH_B.
6833 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
6835 2013-01-16 DJ Delorie <dj@redhat.com>
6837 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
6838 (UNSPECV_SP_SWITCH_E): New.
6839 (sp_switch_1): Change to an unspec.
6840 (sp_switch_2): Change to an unspec. Don't use post-inc when we
6843 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
6845 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
6846 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
6847 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
6848 (expand_mem_thread_fence): Ditto.
6849 (expand_mem_signal_fence): Ditto.
6850 (expand_atomic_load): Ditto.
6851 (expand_atomic_store): Ditto.
6853 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
6855 PR rtl-optimization/55547
6856 PR rtl-optimization/53827
6859 * alias.c (memrefs_conflict_p): Set sizes to negative after
6862 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6865 * function.c (thread_prologue_and_epilogue_insns): Always
6866 add crtl->drap_reg to set_up_by_prologue.set, even if
6867 stack_realign_drap is false.
6869 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6871 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
6872 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
6873 *call): Fix indention.
6875 2013-01-15 Tom de Vries <tom@codesourcery.com>
6878 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
6881 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
6883 PR rtl-optimization/55153
6884 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
6886 2013-01-15 Martin Jambor <mjambor@suse.cz>
6888 PR tree-optimization/55920
6889 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
6890 accesses as grp_to_be_debug_replaced.
6892 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6894 PR tree-optimization/55920
6895 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6896 there is non-useless type conversion needed from debug rhs to lhs,
6897 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6899 2013-01-15 Joseph Myers <joseph@codesourcery.com>
6900 Mikael Pettersson <mikpe@it.uu.se>
6903 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6905 (ASM_OUTPUT_CASE_LABEL): Remove.
6906 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6907 * final.c (shorten_branches): Update alignment of labels before
6908 jump tables if CASE_VECTOR_SHORTEN_MODE.
6910 2013-01-15 Richard Biener <rguenther@suse.de>
6913 * system.h: Do not include gmp.h for building host tools.
6915 2013-01-15 Richard Biener <rguenther@suse.de>
6918 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6919 account for bitpos when computing alignment.
6921 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
6923 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6924 (ix86_target_macros_internal): Likewise.
6926 * config/i386/i386.c (m_CORE2I7): Removed.
6927 (m_CORE_HASWELL): New macro.
6928 (m_CORE_ALL): Likewise.
6929 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6930 (initial_ix86_arch_features): Likewise.
6931 (processor_target_table): Initializations for Core avx2.
6932 (cpu_names): New names "core-avx2".
6933 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
6934 PROCESSOR_CORE_HASWELL.
6935 (ix86_issue_rate): New case.
6936 (ia32_multipass_dfa_lookahead): Likewise.
6937 (ix86_sched_init_global): Likewise.
6939 * config/i386/i386.h (TARGET_HASWELL): New macro.
6940 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
6941 (processor_type): New PROCESSOR_HASWELL.
6943 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6945 PR tree-optimization/55955
6946 * tree-vect-loop.c (vectorizable_reduction): Give up early on
6947 *SHIFT_EXPR and *ROTATE_EXPR codes.
6949 PR tree-optimization/48766
6950 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
6951 -ftrapv disable -fwrapv.
6953 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6956 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
6957 etc. to 1 and not to __flash.
6958 Use LL suffix for __INT24_MAX__ with -mint8.
6959 Use ULL suffix for __UINT24_MAX__ with -mint8.
6961 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6963 * config/avr/avr-arch.h
6964 (struct base_arch_s): Use typedef avr_arch_t instead.
6965 (struct arch_info_s): Use typedef avr_arch_info_t instead.
6966 (struct mcu_type_s): Use typedef avr_mcu_t instead.
6967 * config/avr/avr.c: Same.
6968 * config/avr/avr-devices.c: Same.
6969 * config/avr/driver-avr.c: Same.
6970 * config/avr/gen-avr-mmcu-texi.c: Same.
6971 * config/avr/avr-mcus.def: Adjust comment.
6973 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
6975 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
6976 * config/aarch64/iterators.md (VALLDI): New.
6978 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
6979 Andi Kleen <ak@linux.intel.com>
6982 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
6983 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
6986 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6988 * config/avr/avr-stdint.h: Remove trailing blanks.
6989 * config/avr/avr-log.h: Same.
6990 * config/avr/avr-arch.h: Same.
6991 * config/avr/avr-devices.c: Same.
6992 * config/avr/avr-dimode.md: Same.
6993 * config/avr/predicates.md: Same.
6994 * config/avr/avr-c.c: Same. And fix typo.
6996 * config/avr/avr-protos.h: Same. And:
6997 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
6998 (init_cumulative_args): Rename to avr_init_cumulative_args.
6999 (expand_prologue): Rename to avr_expand_prologue.
7000 (expand_epilogue): Rename to avr_expand_epilogue.
7001 (adjust_insn_length): Rename to avr_adjust_insn_length.
7002 (notice_update_cc): Rename to avr_notice_update_cc.
7003 (final_prescan_insn): Rename to avr_final_prescan_insn.
7004 * config/avr/avr.c: Same.
7005 * config/avr/avr.h: Same.
7006 * config/avr/avr.md: Remove trailing blanks.
7007 (prologue): Use avr_expand_prologue.
7008 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
7010 2013-01-14 Richard Biener <rguenther@suse.de>
7012 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
7013 verify_location, collect_subblocks): New functions.
7014 (verify_gimple_in_cfg): Verify that locations only reference
7015 BLOCKs in the functions BLOCK tree.
7017 2013-01-14 Richard Biener <rguenther@suse.de>
7019 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
7021 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
7023 (insert_out_of_ssa_copy_on_edge): Likewise.
7024 (rewrite_close_phi_out_of_ssa): Likewise.
7025 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
7027 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
7028 propagated constants.
7029 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
7032 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7034 * config/avr/avr-modes.def: Add GPL copyright notice.
7036 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
7038 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
7039 MEMMODEL_MASK to determine memory model.
7040 (atomic_store<mode>): Ditto from operands[2].
7041 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
7043 2013-01-13 Jakub Jelinek <jakub@redhat.com>
7046 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
7047 (fold_gimple_assign): Don't call unshare_expr here.
7048 (fold_ctor_reference): Call unshare_expr.
7050 2013-01-13 Terry Guo <terry.guo@arm.com>
7052 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
7053 * doc/fragments.texi: Document MULTILIB_REUSE.
7054 * gcc.c (multilib_reuse): New internal spec.
7055 (set_multilib_dir): Also search multilib from multilib_reuse.
7056 * genmultilib (tmpmultilib3): Refactor code.
7057 (tmpmultilib4): Ditto.
7058 (multilib_reuse): New multilib argument.
7060 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
7062 * Makefile.in: Update copyright.
7064 2013-01-12 Tom de Vries <tom@codesourcery.com>
7067 * calls.c (expand_call): Check if arg_nr is valid.
7069 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7071 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
7072 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
7073 documentation. Add missing '__' in front of
7074 __builtin_ia32_packssdw256.
7076 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7079 * config/s390/s390.c (s390_preferred_reload_class): Do not return
7080 NO_REGS for larl operands.
7081 (s390_reload_larl_operand): Use s390_load_address instead of
7084 2013-01-11 Richard Biener <rguenther@suse.de>
7086 * tree-cfg.c (verify_node_sharing_1): Split out from ...
7087 (verify_node_sharing): ... here.
7088 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
7090 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
7092 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
7093 Substitute TREECHECKING.
7094 * configure: Regenerate.
7095 * Makefile.in (TREECHECKING): New.
7097 2013-01-11 Richard Guenther <rguenther@suse.de>
7099 PR tree-optimization/44061
7100 * tree-vrp.c (extract_range_basic): Compute zero as
7101 value-range for __builtin_constant_p of function parameters.
7103 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
7105 Update copyright years.
7107 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
7109 PR rtl-optimization/55672
7110 * lra-eliminations.c (mark_not_eliminable): Permit addition with
7111 const to be eliminable.
7113 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
7115 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
7116 * configure: Regenerate.
7118 2013-01-10 Richard Biener <rguenther@suse.de>
7120 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
7122 2013-01-10 Richard Biener <rguenther@suse.de>
7125 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
7126 locations for virtual PHI arguments.
7127 (rewrite_update_phi_arguments): Likewise.
7129 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
7131 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
7134 2013-01-10 Jakub Jelinek <jakub@redhat.com>
7136 PR tree-optimization/55921
7137 * tree-complex.c (expand_complex_asm): New function.
7138 (expand_complex_operations_1): Call it for GIMPLE_ASM.
7140 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7143 * config/s390/s390.c (s390_symref_operand_p)
7144 (s390_loadrelative_operand_p): Merge the two functions.
7145 (s390_check_qrst_address, print_operand_address): Add parameters
7146 to s390_loadrelative_operand_p invokation.
7147 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
7148 (s390_reload_larl_operand, s390_secondary_reload): Use
7149 s390_loadrelative_operand_p instead of s390_symref_operand_p.
7150 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
7152 2013-01-09 Mike Stump <mikestump@comcast.net>
7154 * dse.c (record_store): Remove unnecessary assert.
7156 2013-01-09 Jan Hubicka <jh@suse.cz>
7158 PR tree-optimization/55569
7159 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
7160 * cfgloop.h (scale_loop_profile): Likewise.
7162 2013-01-09 Jan Hubicka <jh@suse.cz>
7165 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
7167 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
7169 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
7172 * expr.h (maybe_emit_group_store): Declare.
7173 * expr.c (maybe_emit_group_store): New function.
7174 * builtins.c (expand_builtin_int_roundingfn): Call it.
7175 (expand_builtin_int_roundingfn_2): Likewise.
7177 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
7179 PR rtl-optimization/55829
7180 * lra-constraints.c (match_reload): Add code for absent output.
7181 (curr_insn_transform): Add code for reloads of matched inputs
7184 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
7186 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
7187 attribute of movddup insn to DF.
7188 (*vec_interleave_lowv2df): Ditto.
7189 (vec_dupv2df): Ditto.
7191 2013-01-09 Jan Hubicka <jh@suse.cz>
7193 PR tree-optimiation/55875
7194 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
7195 EVERY_ITERATION parameter.
7196 (number_of_iterations_exit): Check if exit is executed every iteration.
7197 (idx_infer_loop_bounds): Similarly here.
7198 (n_of_executions_at_most): Simplify
7199 to only test for cases where statement is dominated by the
7200 particular bound; handle correctly the "postdominance" test.
7201 (scev_probably_wraps_p): Use max loop iterations info
7202 as a global bound first.
7204 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
7205 Nick Clifton <nickc@redhat.com>
7207 * config/v850/v850.md (cbranchsf4): New pattern.
7208 (cstoresf4): New pattern.
7209 (cbranchdf4): New pattern.
7210 (cstoredf4): New pattern.
7211 (movsicc): Disallow floating point comparisons.
7212 (cmpsf_le_insn): Fix order of operators.
7213 (cmpsf_lt_insn): Likewise.
7214 (cmpsf_eq_insn): Likewise.
7215 (cmpdf_le_insn): Likewise.
7216 (cmpdf_lt_insn): Likewise.
7217 (cmpdf_eq_insn): Likewise.
7218 (cmpsf_ge_insn): Use LE comparison.
7219 (cmpdf_ge_insn): Likewise.
7220 (cmpsf_gt_insn): Use LT comparison.
7221 (cmpdf_gt_insn): Likewise.
7222 (cmpsf_ne_insn): Delete pattern.
7223 (cmpdf_ne_insn): Delete pattern.
7224 * config/v850/v850.c (v850_gen_float_compare): Use
7225 gen_cmpdf_eq_insn for NE comparison.
7226 (v850_float_z_comparison_operator)
7227 (v850_float_nz_comparison_operator): Move from here ...
7228 * config/v850/predicates.md: ... to here. Move GT and GE
7229 comparisons into v850_float_z_comparison_operator.
7230 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
7232 (v850_float_nz_comparison_operator): Likewise.
7234 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7236 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
7237 with calls to gen_insvsi/gen_insvdi.
7239 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7241 * config/i386/i386.c (initial_ix86_tune_features): Set up
7242 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
7244 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
7245 Jakub Jelinek <jakub@redhat.com>
7247 PR tree-optimization/48189
7248 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
7249 If nitercst is 0, don't predict the exit edge.
7251 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7253 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
7254 in asm_fprintf with reg_names.
7255 (aarch64_print_operand_address): Likewise.
7256 (aarch64_return_addr): Likewise.
7257 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
7259 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7261 * config/pa/pa.h (VAL_U6_BITS_P): Define.
7262 (INT_U6_BITS): Likewise.
7263 * config/pa/predicates.md (uint6_operand): New predicate.
7264 (shift5_operand, shift6_operand): Likewise.
7265 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
7267 (lshrdi3): Use shift6_operand.
7268 (shrpsi4, shrpdi4): New insn patterns.
7269 (extzv): Delete expander.
7270 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
7271 predicates in unamed zero extract patterns. Tighten common constraint.
7272 (extv): Delete expander.
7273 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
7274 predicates in unamed sign extract patterns. Tighten common constraint.
7275 (insv): Delete expander.
7276 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
7277 predicates in unamed insert patterns. Tighten common constraint.
7278 Change uint32_operand predicate to uint6_operand predicate in unamed
7279 DImode pattern to insert constant values of type 1...1xxxx.
7281 2013-01-04 Jan Hubicka <jh@suse.cz>
7283 PR tree-optimization/55823
7284 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
7287 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7288 Uros Bizjak <ubizjak@gmail.com>
7290 PR rtl-optimization/55845
7291 * df-problems.c (can_move_insns_across): Stop scanning at
7292 volatile_insn_p source instruction or give up if
7293 across_from .. across_to range contains any volatile_insn_p
7296 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
7298 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
7299 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
7301 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7302 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
7304 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7307 * asan.c (asan_clear_shadow): New function.
7308 (asan_emit_stack_protection): Use it.
7310 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
7312 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
7313 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
7314 with tab instead of space.
7316 2013-01-08 Nick Clifton <nickc@redhat.com>
7318 * config/rl78/rl78.c (rl78_expand_prologue): Always select
7319 register bank 0 at the start of an interrupt handler.
7320 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
7323 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
7325 * config/aarch64/aarch64-simd.md
7326 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
7327 (aarch64_simd_bsl): Likewise.
7328 (aarch64_vcond_internal<mode>): Likewise.
7329 (vcond<mode><mode>): Likewise.
7330 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
7331 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
7333 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
7335 * config/aarch64/aarch64-builtins.c
7336 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
7338 2013-01-08 Martin Jambor <mjambor@suse.cz>
7341 * tree-sra.c (analyze_access_subtree): Return true also after
7342 potentially creating a debug-only replacement.
7344 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7347 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
7349 PR tree-optimization/54120
7350 * tree-vrp.c (range_fits_type_p): Don't allow
7351 src_precision < precision from signed vr to unsigned_p
7352 if vr->min or vr->max is negative.
7353 (simplify_float_conversion_using_ranges): Test can_float_p
7354 against CODE_FOR_nothing.
7356 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7357 Richard Biener <rguenther@suse.de>
7360 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
7361 types instead of just INTEGER_TYPE types.
7363 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
7365 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
7368 2013-01-07 Steve Ellcey <sellcey@mips.com>
7371 * config/mips/mips.opt: Change mad to mmad to match documentation.
7373 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7376 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
7379 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7382 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
7383 (avr_addrspace_t): Add .section_name field.
7384 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
7386 (avr_addrspace): Same. Initialize .section_name. Remove last
7387 NULL entry. Put __memx into .progmemx.data.
7388 (progmem_section_prefix): Remove.
7389 (avr_asm_init_sections): No need to initialize progmem_section.
7390 (avr_asm_named_section): Use avr_addrspace[].section_name to get
7391 section name prefix.
7392 (avr_asm_select_section): Ditto. And use get_unnamed_section to
7393 retrieve the progmem section.
7394 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
7395 boundary to run over avr_addrspace[].
7396 (avr_register_target_pragmas): Ditto.
7398 2013-01-06 Jakub Jelinek <jakub@redhat.com>
7400 * varasm.c (output_constant_def_contents): For asan_protect_global
7401 protected strings, adjust DECL_ALIGN if needed, before testing for
7403 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
7404 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
7406 (output_object_block): For asan protected decls, emit asan padding
7407 after their contents.
7408 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
7409 (asan_finish_file): Test it here instead.
7411 2013-01-07 Nick Clifton <nickc@redhat.com>
7412 Matthias Klose <doko@debian.org>
7413 Doug Kwan <dougkwan@google.com>
7414 H.J. Lu <hongjiu.lu@intel.com>
7417 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
7419 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
7421 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
7423 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
7425 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
7427 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7430 * doc/install.texi (Cross-Compiler-Specific Options): Document
7433 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
7435 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
7436 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
7437 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
7438 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
7439 vqmovun_high_s64): Fix source operand number and update copyright.
7441 2013-01-07 Richard Biener <rguenther@suse.de>
7444 * gimple.h (gimple_call_builtin_p): New overload.
7445 * gimple.c (validate_call): New function.
7446 (gimple_call_builtin_p): Likewise.
7447 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7448 Use gimple_call_builtin_p.
7449 (find_func_clobbers): Likewise.
7450 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
7451 (strlen_optimize_stmt): Likewise.
7453 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7455 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
7456 (vld1q_dup_*): Likewise.
7458 (vld1q_*): Likewise.
7459 (vld1_lane_*): Likewise.
7460 (vld1q_lane_*): Likewise.
7462 2013-01-07 Richard Biener <rguenther@suse.de>
7464 * lto-streamer.h (LTO_minor_version): Bump to 2.
7466 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
7468 * config/aarch64/aarch64-protos.h
7469 (aarch64_const_double_zero_rtx_p): Rename to...
7470 (aarch64_float_const_zero_rtx_p): ...this.
7471 (aarch64_float_const_representable_p): New.
7472 (aarch64_output_simd_mov_immediate): Likewise.
7473 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
7474 move immediate case.
7475 * config/aarch64/aarch64.c
7476 (aarch64_const_double_zero_rtx_p): Rename to...
7477 (aarch64_float_const_zero_rtx_p): ...this.
7478 (aarch64_print_operand): Allow printing of new constants.
7479 (aarch64_valid_floating_const): New.
7480 (aarch64_legitimate_constant_p): Check for valid floating-point
7482 (aarch64_simd_valid_immediate): Likewise.
7483 (aarch64_vect_float_const_representable_p): New.
7484 (aarch64_float_const_representable_p): Likewise.
7485 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
7486 (aarch64_output_simd_mov_immediate): New.
7487 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
7488 (*movdf_aarch64): Likewise.
7489 * config/aarch64/constraints.md (Ufc): New.
7490 (Y): call aarch64_float_const_zero_rtx.
7491 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
7493 2013-01-07 Richard Biener <rguenther@suse.de>
7495 PR tree-optimization/55888
7496 PR tree-optimization/55862
7497 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
7498 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
7499 not if it is contained therein.
7501 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7503 * config/avr/t-avr: Typo.
7505 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7508 * config/avr/t-avr: Don't automatically rebuild
7509 $(srcdir)/config/avr/t-multilib
7510 $(srcdir)/config/avr/avr-tables.opt
7511 $(srcdir)/doc/avr-mmcu.texi
7512 (avr-mcus): New phony target to build them on request.
7513 (s-avr-mlib, s-avr-mmcu-texi): Remove.
7514 * avr/avr-mcus.def: Adjust comments.
7516 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
7518 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
7520 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7522 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
7524 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7526 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
7528 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
7530 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
7531 to generate profiling.
7532 * config/rs6000/aix64.h (LIB_SPEC): Same.
7534 2013-01-04 Andrew Pinski <apinski@cavium.com>
7536 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
7538 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
7540 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
7542 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
7544 (ix86_expand_move): Ditto.
7545 (ix86_zero_extend_to_Pmode): Ditto.
7546 (ix86_expand_call): Ditto.
7547 (ix86_expand_special_args_builtin): Ditto.
7548 (ix86_expand_builtin): Ditto.
7550 2013-01-04 Richard Biener <rguenther@suse.de>
7552 PR tree-optimization/55862
7553 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
7554 translating them through PHI nodes.
7556 2013-01-04 Martin Jambor <mjambor@suse.cz>
7558 PR tree-optimization/55755
7559 * tree-sra.c (sra_modify_assign): Do not check that an access has no
7560 children when trying to avoid producing a VIEW_CONVERT_EXPR.
7562 2013-01-04 Marek Polacek <polacek@redhat.com>
7565 * opts.c (default_options_optimization): Clarify error message.
7567 2013-01-04 Richard Biener <rguenther@suse.de>
7570 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
7573 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7576 * config/pa/pa.md (movsi): Revert previous change.
7577 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
7580 2013-01-03 Richard Henderson <rth@redhat.com>
7582 * config/i386/i386.c (ix86_expand_move): Always assign to op1
7583 after eliminating TLS symbols.
7585 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
7588 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
7589 * graphite-poly.c (debug_gmp_value): Likewise.
7591 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
7594 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
7595 selected code model, define __code_mode_small__, __code_model_medium__,
7596 __code_model_large__, __code_model_32__ or __code_model_kernel__.
7597 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
7598 xchg temporary register with %k. Declare temporary register as
7600 [__x86_64__]: For medium and large code models, preserve %rbx register.
7602 2013-01-03 Richard Biener <rguenther@suse.de>
7604 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
7605 (dump_subscript): Adjust.
7606 (finalize_ddr_dependent): Do not dump redundant info.
7607 (analyze_siv_subscript): Adjust.
7608 (subscript_dependence_tester): Likewise.
7609 (compute_affine_dependence): Likewise.
7611 2013-01-03 Richard Biener <rguenther@suse.de>
7614 2013-01-03 Richard Biener <rguenther@suse.de>
7616 PR tree-optimization/55857
7617 * tree-vect-stmts.c (vectorizable_load): Do not setup
7618 re-alignment for invariant loads.
7620 2013-01-02 Richard Biener <rguenther@suse.de>
7622 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7623 invariant load do not generate a vector load from the scalar location.
7625 2013-01-03 Richard Biener <rguenther@suse.de>
7627 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
7628 for not vectorizing.
7629 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7630 not build INDIRECT_REFs, call get_name once only.
7631 (vect_create_data_ref_ptr): Likewise. Dump base object kind
7632 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
7634 2013-01-03 Richard Biener <rguenther@suse.de>
7636 PR tree-optimization/55857
7637 * tree-vect-stmts.c (vectorizable_load): Do not setup
7638 re-alignment for invariant loads.
7640 2013-01-03 Richard Biener <rguenther@suse.de>
7643 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
7644 prefer a built-in decl.
7646 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7648 * gcc.c (process_command): Update copyright notice dates.
7649 * gcov.c (print_version): Likewise.
7650 * gcov-dump.c (print_version): Likewise.
7652 PR rtl-optimization/55838
7653 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
7654 iv0.step, iv1.step and step.
7656 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7657 Marc Glisse <marc.glisse@inria.fr>
7659 PR tree-optimization/55832
7660 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
7661 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
7662 integer_{one,zero}_node.
7664 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7667 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
7668 * var-tracking.c (reverse_op): Don't add reverse ops to
7669 VALUEs that have already
7670 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
7672 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
7674 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
7676 2013-01-02 Teresa Johnson <tejohnson@google.com>
7678 * dumpfile.c (dump_loc): Print filename with location.
7679 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
7680 new location_t parameter to emit complete unroll message with
7682 (canonicalize_loop_induction_variables): Compute loops location
7683 and pass to try_unroll_loop_completely.
7684 * loop-unroll.c (report_unroll_peel): New function.
7685 (peel_loops_completely): Use new dump format with location
7686 for main dumpfile message, and invoke report_unroll_peel on success.
7687 (decide_unrolling_and_peeling): Ditto.
7688 (decide_peel_once_rolling): Remove old dumpfile message subsumed
7689 by report_unroll_peel.
7690 (decide_peel_completely): Ditto.
7691 (decide_unroll_constant_iterations): Ditto.
7692 (decide_unroll_runtime_iterations): Ditto.
7693 (decide_peel_simple): Ditto.
7694 (decide_unroll_stupid): Ditto.
7695 * cfgloop.c (get_loop_location): New function.
7696 * cfgloop.h (get_loop_location): Declare.
7698 2013-01-02 Sriraman Tallam <tmsriram@google.com>
7700 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
7703 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7706 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
7707 BLKmode objects when EXPAND_MEMORY is specified.
7709 2013-01-02 Sriraman Tallam <tmsriram@google.com>
7711 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
7713 (fold_builtin_cpu): Do not share cpu model decls across statements.
7715 2013-01-02 Jason Merrill <jason@redhat.com>
7718 * tree.c (build_array_type_1): Revert earlier change.
7720 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
7722 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
7724 * config/aarch64/aarch64-tune.md: Re-generate.
7726 2013-01-02 Richard Biener <rguenther@suse.de>
7728 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7729 invariant load do not generate a vector load from the scalar location.
7731 2013-01-02 Richard Biener <rguenther@suse.de>
7734 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
7735 * configure: Regenerate.
7737 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7739 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
7740 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
7741 (expand_builtin_int_roundingfn_2): Keep the original target around
7742 for the fallback case.
7744 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7746 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
7747 to be clear for sign changes.
7749 2013-01-01 Jan Hubicka <jh@suse.cz>
7751 * ipa-inline-analysis.c: Fix formatting.
7753 2013-01-01 Jakub Jelinek <jakub@redhat.com>
7755 PR tree-optimization/55831
7756 * tree-vect-loop.c (get_initial_def_for_induction): Use
7757 gsi_after_labels instead of gsi_start_bb.
7759 Copyright (C) 2013 Free Software Foundation, Inc.
7761 Copying and distribution of this file, with or without modification,
7762 are permitted in any medium without royalty provided the copyright
7763 notice and this notice are preserved.