1 2014-01-09 Richard Biener <rguenther@suse.de>
4 2013-11-18 Richard Biener <rguenther@suse.de>
6 PR tree-optimization/59125
7 PR tree-optimization/54570
8 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
9 is not complete do not treat component-references with offset zero
10 but different fields as equal.
11 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
12 (compute_object_sizes): Apply TLC. Propagate the constant
13 results into all uses and fold their stmts.
14 * passes.def (pass_all_optimizations): Move pass_object_sizes
15 after the first pass_forwprop and before pass_fre.
17 2013-12-03 Jakub Jelinek <jakub@redhat.com>
19 PR tree-optimization/59362
20 * tree-object-size.c (object_sizes): Change into array of
21 vec<unsigned HOST_WIDE_INT>.
22 (compute_builtin_object_size): Check computed bitmap for
23 non-NULL instead of object_sizes. Call safe_grow on object_sizes
24 vector if new SSA_NAMEs appeared.
25 (init_object_sizes): Check computed bitmap for non-NULL.
26 Call safe_grow on object_sizes elements instead of initializing
28 (fini_object_sizes): Call release on object_sizes elements, don't
31 2014-01-09 Richard Earnshaw <rearnsha@arm.com>
33 PR rtl-optimization/54300
34 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
35 outputs in a single-set are killed from the value chains.
37 2014-01-09 Jakub Jelinek <jakub@redhat.com>
39 PR rtl-optimization/59724
40 * ifcvt.c (cond_exec_process_if_block): Don't call
41 flow_find_head_matching_sequence with 0 longest_match.
42 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
43 non-active insns if !stop_after.
44 (try_head_merge_bb): Revert 2014-01-07 changes.
46 2014-01-09 Hans-Peter Nilsson <hp@axis.com>
48 Backport from mainline
49 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
52 * config/cris/predicates.md (cris_nonsp_register_operand):
54 * config/cris/cris.md: Replace register_operand with
55 cris_nonsp_register_operand for destinations in all
56 define_splits where a register is set more than once.
58 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
60 Backport from mainline
61 2013-12-25 H.J. Lu <hongjiu.lu@intel.com>
64 * config/i386/i386.c (struct ptt): Add a field for processor
66 (processor_target_table): Sync with processor_type. Add
69 (ix86_option_override_internal): Default x_ix86_tune_string
70 to processor_target_table[TARGET_CPU_DEFAULT].name.
71 (ix86_function_specific_print): Assert arch and tune <
72 PROCESSOR_max. Use processor_target_table to print arch and
74 * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
76 (target_cpu_default): Removed.
77 (processor_type): Reordered.
79 2014-01-08 Uros Bizjak <ubizjak@gmail.com>
81 Backport from mainline
82 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
84 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
85 from prefetch_block tune setting.
86 (nocona_cost): Correct size of prefetch block to 64.
88 2014-01-08 Martin Jambor <mjambor@suse.cz>
91 * ipa-prop.c (ipa_compute_jump_functions): Bail out if not optimizing.
92 (parm_preserved_before_stmt_p): Assume modification present when not
95 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
98 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
99 for 14-bit register offsets when INT14_OK_STRICT is false.
101 2014-01-07 Roland Stigge <stigge@antcom.de>
102 Michael Meissner <meissner@linux.vnet.ibm.com>
105 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
106 Only check TFmode for SPE constants. Don't check TImode or TDmode.
108 2014-01-07 Jakub Jelinek <jakub@redhat.com>
110 PR rtl-optimization/58668
111 * cfgcleanup.c (flow_find_cross_jump): Don't count
112 any jumps if dir_p is NULL. Remove p1 variable and make USE/CLOBBER
113 check consistent with other places.
114 (flow_find_head_matching_sequence): Don't count USE or CLOBBER insns.
115 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
117 * ifcvt.c (count_bb_insns): Don't count USE or CLOBBER insns.
119 2014-01-07 Mike Stump <mikestump@comcast.net>
120 Jakub Jelinek <jakub@redhat.com>
123 * tree.h (struct tree_optimization_option): Change optabs
124 type from unsigned char * to void *.
125 * optabs.c (init_tree_optimization_optabs): Adjust
126 TREE_OPTIMIZATION_OPTABS initialization.
128 2014-01-07 Jakub Jelinek <jakub@redhat.com>
130 Backported from mainline
131 2013-12-16 Jakub Jelinek <jakub@redhat.com>
135 * gimple.h (walk_stmt_load_store_addr_fn): New typedef.
136 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
138 * gimple.c (walk_stmt_load_store_ops): Likewise.
139 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
140 calls to supply the gimple operand containing the base tree
141 as an extra argument.
142 * tree-ssa-ter.c (find_ssaname, find_ssaname_in_store): New helper
144 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
145 same_root_var if USE is used somewhere in the stores of the stmt.
146 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
147 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
148 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
149 check_ipa_store): Likewise.
150 * gimple.c (gimple_ior_addresses_taken_1): Likewise.
151 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
152 (verify_non_ssa_vars, visit_bb): Adjust their callers.
153 * cfgexpand.c (add_scope_conflicts_1): Use
154 walk_stmt_load_store_addr_fn type for visit variable.
155 (visit_op, visit_conflict): Remove name of the stmt
156 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
157 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
158 argument and ATTRIBUTE_UNUSED.
159 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
160 unnamed tree argument.
162 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
164 * config/m68k/m68k.c (handle_move_double): Handle pushes with
165 overlapping registers also for registers other than the stack
168 2014-01-03 Jakub Jelinek <jakub@redhat.com>
171 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
174 2014-01-01 Jakub Jelinek <jakub@redhat.com>
176 PR rtl-optimization/59647
177 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
178 new_rtx into UNSIGNED_FLOAT rtxes.
180 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
182 * doc/invoke.texi (output file options): Document -fada-spec-parent.
184 2013-12-26 Uros Bizjak <ubizjak@gmail.com>
186 * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
188 2013-12-20 Jakub Jelinek <jakub@redhat.com>
191 Backported from mainline
192 2013-08-19 Dehao Chen <dehao@google.com>
194 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
196 2013-12-19 James Greenhalgh <james.greenhalgh@arm.com>
198 Backport from Mainline.
199 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
201 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
205 * config/aarch64/aarch64-simd.md
207 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
208 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
209 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
210 (cstore<mode>_neg): ...This.
211 * config/aarch64/iterators.md
213 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
215 (UCOMPARISONS): Likewise.
216 (optab): Add missing comparisons.
224 (V_cmp_result): Add DF, SF modes.
225 (v_cmp_result): Likewise.
228 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
230 Partial Backport from mainline.
231 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
233 * config/aarch64/arm_neon.h
234 (vc<eq, lt, le, gt, ge, tst><qsd>_<u><8,16,32,64>): Remap
235 to builtins or C as appropriate.
237 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
238 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
240 Backport from mainline
241 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
242 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
244 (s390_hotpatch_trampoline_halfwords_max): New constant
245 (s390_hotpatch_trampoline_halfwords): New static variable
246 (get_hotpatch_attribute): New function
247 (s390_handle_hotpatch_attribute): New function
248 (s390_attribute_table): New target specific attribute table to implement
249 the hotpatch attribute
250 (s390_option_override): Parse hotpatch options
251 (s390_function_num_hotpatch_trampoline_halfwords): New function
252 (s390_can_inline_p): Implement target hook to
253 suppress hotpatching for explicitly inlined functions
254 (s390_asm_output_function_label): Generate hotpatch prologue
255 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table
256 (TARGET_CAN_INLINE_P): Define to implement target hook
257 * config/s390/s390.opt (mhotpatch): New options -mhotpatch, -mhotpatch=
258 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
260 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
261 function label generation for hotpatching
262 (FUNCTION_BOUNDARY): Align functions to eight bytes
263 * doc/extend.texi: Document hotpatch attribute
264 * doc/invoke.texi: Document -mhotpatch option
266 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
268 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
270 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
273 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
276 2013-12-12 Jakub Jelinek <jakub@redhat.com>
279 * gimplify.c (omp_check_private): Add copyprivate argument, if it
280 is true, don't check omp_privatize_by_reference.
281 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
282 decl is private in outer context. Adjust omp_check_private caller.
284 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
286 PR rtl-optimization/58295
287 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
288 WORD_REGISTER_OPERATIONS targets.
290 2013-12-10 Kai Tietz <ktietz@redhat.com>
293 * config/i386/i386.c (ix86_expand_prologue): Address saved
294 registers stack-relative, not via frame-pointer.
296 2013-12-09 Alan Modra <amodra@gmail.com>
299 2013-12-05 Alan Modra <amodra@gmail.com>
300 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
302 <recursive call for build != host>: Clear GMPINC. Don't bother
304 * configure: Regenerate.
306 2013-12-08 Uros Bizjak <ubizjak@gmail.com>
308 Backport from mainline
309 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
312 * config/i386/i386.c (type_natural_mode): Properly handle
313 size 8 for !TARGET_64BIT.
315 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
317 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
319 2013-12-06 Jakub Jelinek <jakub@redhat.com>
321 PR tree-optimization/59388
322 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
323 gimplify tem after stmt rather than before it.
325 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
327 Backport from mainline
328 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
332 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
333 Prefix function names with 'sh_'. Make them non-static.
334 * config/sh/sh-protos.h (sh_disp_addr_displacement,
335 sh_max_mov_insn_displacement): Add declarations.
336 * config/sh/constraints.md (Q): Reject QImode.
337 (Sdd): Use match_code "mem".
338 (Snd): Fix erroneous matching of non-memory operands.
339 * config/sh/predicates.md (short_displacement_mem_operand): New
341 (general_movsrc_operand): Disallow PC relative QImode loads.
342 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
343 (*movqi, *movhi): Merge both insns into...
344 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
345 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
346 on the operand types.
348 2013-12-06 Richard Biener <rguenther@suse.de>
350 Backport from mainline
351 2013-11-29 Richard Biener <rguenther@suse.de>
353 PR tree-optimization/59334
354 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
357 2013-11-28 Richard Biener <rguenther@suse.de>
359 PR tree-optimization/59330
360 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
361 and fix delayed marking of free calls not necessary.
363 2013-12-06 Richard Biener <rguenther@suse.de>
365 Backport from mainline
366 2013-11-27 Richard Biener <rguenther@suse.de>
368 PR tree-optimization/59288
369 * tree-vect-loop.c (get_initial_def_for_induction): Do not
370 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
372 2013-11-19 Richard Biener <rguenther@suse.de>
374 PR tree-optimization/59164
375 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust
376 check whether we can create an epilogue loop to reflect the
377 cases where we create one.
379 2013-09-05 Richard Biener <rguenther@suse.de>
381 PR tree-optimization/58137
382 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
383 Do not create vectors of pointers.
384 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
385 types for the components of the vector initializer.
386 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
387 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
389 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
393 * config/sh/sh.md (*cbranch_t): Check that there are no labels between
394 the s1 insn and the testing insn. Remove REG_DEAD note from s1 insn.
396 2013-12-05 Richard Biener <rguenther@suse.de>
398 Backport from mainline
399 2013-11-19 Richard Biener <rguenther@suse.de>
402 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
403 loads into stmts that may clobber it.
405 2013-12-04 Jakub Jelinek <jakub@redhat.com>
407 PR rtl-optimization/58726
408 * combine.c (force_to_mode): Fix comment typo. Don't destructively
409 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
411 2013-12-04 Jakub Jelinek <jakub@redhat.com>
412 Uros Bizjak <ubizjak@gmail.com>
415 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
416 !TARGET_AVX there is misaligned MEM operand with vector mode
417 and get_attr_ssememalign is 0, return false.
418 (ix86_expand_special_args_builtin): Add get_pointer_alignment
419 computed alignment and for non-temporal loads/stores also
420 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
422 (<sse>_loadu<ssemodesuffix><avxsizesuffix>,
423 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
424 <sse2>_loaddqu<avxsizesuffix>,
425 <sse2>_storedqu<avxsizesuffix>, <sse3>_lddqu<avxsizesuffix>,
426 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
427 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
428 *vec_interleave_highv2df, *vec_interleave_lowv2df,
429 *vec_extractv2df_1_sse, sse2_loadhpd, sse2_loadlpd, sse2_movsd,
430 sse4_1_<code>v8qiv8hi2, sse4_1_<code>v4qiv4si2,
431 sse4_1_<code>v4hiv4si2, sse4_1_<code>v2qiv2di2,
432 sse4_1_<code>v2hiv2di2, sse4_1_<code>v2siv2di2, sse4_2_pcmpestr,
433 *sse4_2_pcmpestr_unaligned, sse4_2_pcmpestri, sse4_2_pcmpestrm,
434 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned,
435 sse4_2_pcmpistri, sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add
436 ssememalign attribute.
437 * config/i386/i386.md (ssememalign): New define_attr.
439 2013-12-03 Jakub Jelinek <jakub@redhat.com>
442 * gimplify.c (nonlocal_vla_vars): New variable.
443 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
444 nonlocal_vla_vars chain.
445 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
446 if outer_bind has DECL_INITIAL (current_function_decl) block.
449 * optabs.c (emit_conditional_move): Save and restore
450 pending_stack_adjust and stack_pointer_delta if cmove can't be used.
452 2013-12-02 Jakub Jelinek <jakub@redhat.com>
454 PR tree-optimization/59358
455 * tree-vrp.c (union_ranges): To check for the partially
456 overlapping ranges or adjacent ranges, also compare *vr0max
459 2013-12-02 Richard Biener <rguenther@suse.de>
461 PR tree-optimization/59139
462 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
464 (get_val_for): Use gcc_checking_asserts.
466 2013-11-27 Tom de Vries <tom@codesourcery.com>
467 Marc Glisse <marc.glisse@inria.fr>
470 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
472 * gimplify.c (gimple_fold_indirect_ref): Same.
474 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
476 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
479 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
481 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
483 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
485 Backport from mainline
486 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
488 * config/arm/iterators.md (vrint_conds): New int attribute.
489 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
490 (smax<mode>3): Likewise.
491 (smin<mode>3): Likewise.
493 2013-11-28 Uros Bizjak <ubizjak@gmail.com>
495 Backport from mainline
496 2013-11-27 Uros Bizjak <ubizjak@gmail.com>
497 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
500 * gcc.target/i386/xop-frczX.c: New test.
502 2013-11-28 Terry Guo <terry.guo@arm.com>
504 Backport mainline r205391
505 2013-11-26 Terry Guo <terry.guo@arm.com>
507 * config/arm/arm.c (require_pic_register): Handle high pic base
508 register for thumb-1.
509 (arm_load_pic_register): Also initialize high pic base register.
510 * doc/invoke.texi: Update documentation for option -mpic-register.
512 2013-11-27 Jakub Jelinek <jakub@redhat.com>
514 Backported from mainline
515 2013-11-26 Jakub Jelinek <jakub@redhat.com>
517 PR tree-optimization/59014
518 * tree-vrp.c (register_edge_assert_for_1): Don't look
519 through conversions from non-integral types or through
520 narrowing conversions.
522 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
525 * expr.c (emit_group_store): Don't write past the end of the structure.
526 (store_bit_field): Fix formatting.
528 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
530 Backport from mainline
531 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
533 * config/sparc/t-rtems: Add leon3 multilibs.
535 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
537 Backport from mainline
538 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
540 * configure.ac: Add GAS check for LEON instructions on SPARC.
541 * configure: Regenerate.
542 * config.in: Likewise.
543 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
545 * config/sparc/sparc.opt (LEON, LEON3): New masks.
546 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
548 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
549 (AS_LEON_FLAG): New macro.
550 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
551 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
552 Deal with LEON and LEON3 for the memory model.
553 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
554 (atomic_compare_and_swap<mode>_1): Likewise.
555 (*atomic_compare_and_swap<mode>_1): Likewise.
557 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
559 Backport from mainline
560 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
562 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
564 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
566 Backport from mainline
567 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
569 * config.gcc (sparc*-*-*): Accept leon3 processor.
570 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
571 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
572 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
573 * config/sparc/sparc.opt (enum processor_type): Add leon3.
574 (mfix-ut699): Adjust comment.
575 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
576 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
577 (CPP_CPU_SPEC): Likewise.
578 (ASM_CPU_SPEC): Likewise.
579 * config/sparc/sparc.c (leon3_cost): New constant.
580 (sparc_option_override): Add leon3 support.
581 (mem_ref): New function.
582 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
583 (sparc_do_work_around_errata): Look into the instruction in the delay
584 slot and adjust accordingly. Add fix for the data cache nullify issues
585 of the UT699. Change insertion position for the NOP.
586 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
587 (leon3_load): New reservation.
588 (leon_store): Bump latency to 2.
589 (grfpu): New automaton.
590 (grfpu_alu): New unit.
591 (grfpu_ds): Likewise.
592 (leon_fp_alu): Adjust.
593 (leon_fp_mult): Delete.
594 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
595 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
596 * config/sparc/sparc.md (cpu): Add leon3.
597 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
599 (atomic_test_and_set): Likewise.
602 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
604 Backport from mainline
605 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
607 * config/sparc/sparc.c: Include tree-pass.h.
608 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
609 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
610 head of file. Change return type. Split off gate function.
611 (sparc_gate_work_around_errata): New function.
612 (pass_work_around_errata): New pass definition.
613 (insert_pass_work_around_errata) New pass insert definition to
614 insert pass_work_around_errata just after delayed-branch scheduling.
615 (sparc_option_override): Insert the pass.
616 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
618 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
620 Backport from mainline
621 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
623 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
624 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
625 mode if the instruction isn't available in the original mode.
626 * config/sparc/sparc.opt (mfix-ut699): New option.
627 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
628 (divdf3): Turn into expander.
629 (divdf3_nofix): New insn.
630 (divdf3_fix): Likewise.
631 (divsf3): Disable if -mfix-ut699.
632 (sqrtdf2): Turn into expander.
633 (sqrtdf2_nofix): New insn.
634 (sqrtdf2_fix): Likewise.
635 (sqrtsf2): Disable if -mfix-ut699.
637 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
639 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
641 2013-11-21 Zhenqiang Chen <zhenqiang.chen@linaro.org>
644 Backport from mainline: r197467 and r198999.
645 2013-04-03 Jeff Law <law@redhat.com>
647 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
648 (lra-eliminations.o): Likewise.
650 2013-05-16 Jeff Law <law@redhat.com>
652 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
654 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
657 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
658 Make sure neg2_ovf is set before being used.
660 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
661 Dominik Vogt <vogt@linux.vnet.ibm.com>
663 Backport from mainline
664 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
665 int comparisons with an out of range condition code.
666 (s390_optimize_nonescaping_tx): Skip empty BBs.
667 Generate the new tbegin RTX when removing the FPR clobbers (with
669 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
670 result before doing the retry calculations.
671 (s390_init_builtins): Make tbegin "returns_twice" and tabort
673 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
674 the TDB setting part of an tbegin.
675 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
676 ("tx_assist"): Set unused argument to an immediate zero instead of
677 loading zero into a GPR and pass it as argument.
678 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
679 Remove inline and related attributes.
680 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
681 (__TM_is_illegal, __TM_is_footprint_exceeded)
682 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value
685 2013-11-19 Uros Bizjak <ubizjak@gmail.com>
687 Backport from mainline
688 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
690 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
691 ix86_address_subreg_operand. Move subreg checks to
692 ix86_validate_address_register. Move address override check to
693 ix86_legitimate_address_p.
694 (ix86_validate_address_register): New function.
695 (ix86_legitimate_address_p): Call ix86_validate_address_register
696 to validate base and index registers. Add address override check
697 from ix86_decompose_address.
698 (ix86_decompose_address): Remove.
700 Backport from mainline
701 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
704 * config/i386/i386.c (ix86_address_subreg_operand): Do not
705 reject non-integer subregs.
706 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
707 Move check for invalid x32 constant addresses ...
708 (ix86_legitimate_address_p): ... here.
710 2013-11-19 Richard Biener <rguenther@suse.de>
712 Backport from mainline
713 2013-11-07 Richard Biener <rguenther@suse.de>
715 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
717 2013-11-19 Richard Biener <rguenther@suse.de>
719 PR tree-optimization/57517
720 * tree-predcom.c (combinable_refs_p): Verify the combination
721 is always executed when the refs are.
723 2013-11-19 Richard Biener <rguenther@suse.de>
725 Backport from mainline
726 2013-11-05 Richard Biener <rguenther@suse.de>
729 * tree-dfa.c (get_ref_base_and_extent): Merge common code
730 in MEM_REF and TARGET_MEM_REF handling. Make sure to
731 process trailing array detection before diving into the
732 view-converted object (and possibly apply some extra offset).
734 2013-11-18 Richard Biener <rguenther@suse.de>
736 Backport from mainline
737 2013-10-21 Richard Biener <rguenther@suse.de>
739 PR tree-optimization/58794
740 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
741 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
743 2013-10-21 Richard Biener <rguenther@suse.de>
746 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
747 to (T) X for sign-changing conversions (or no conversion).
749 2013-11-06 Richard Biener <rguenther@suse.de>
751 PR tree-optimization/58653
752 * tree-predcom.c (ref_at_iteration): Rewrite to generate
754 (prepare_initializers_chain): Adjust.
756 PR tree-optimization/59047
757 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses
760 2013-10-15 Richard Biener <rguenther@suse.de>
762 PR tree-optimization/58143
763 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
765 (rewrite_to_defined_overflow): Likewise.
766 (move_computations_dom_walker::before_dom): Rewrite stmts
767 with undefined signed overflow that are not always executed
768 into unsigned arithmetic.
770 2013-11-14 Uros Bizjak <ubizjak@gmail.com>
772 Backport from mainline
773 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
775 * mode-switching.c (optimize_mode_switching): Mark block as
776 nontransparent, if last_mode at block exit is different from no_mode.
778 Backport from mainline
779 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
782 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
783 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
784 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
785 RTXes that return in AVX256 register.
787 2013-11-14 Jakub Jelinek <jakub@redhat.com>
788 Uros Bizjak <ubizjak@gmail.com>
791 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
792 operands[2] satisfies_constraint_Z that might have bit 31 set.
794 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
796 Backported from mainline
797 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
800 * config/i386/i386.c (initial_ix86_tune_features): Set
801 X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
802 X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for m_HASWELL.
804 2013-11-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
806 Backported from mainline
807 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
810 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage
812 2013-11-11 Jakub Jelinek <jakub@redhat.com>
814 Backported from mainline
815 2013-11-06 Jakub Jelinek <jakub@redhat.com>
818 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
819 (expand_assignment): If *bitpos is negative, set *offset
820 and adjust *bitpos, so that it is not negative.
822 2013-11-05 Jakub Jelinek <jakub@redhat.com>
824 PR rtl-optimization/58997
825 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
826 get_iv_value to be in iv->mode rather than iv->extend_mode.
827 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
828 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
829 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
832 2013-11-10 Karlson2k <k2k@narod.ru>
833 Kai Tietz <ktietz@redhat.com>
837 * configure.ac: Adding for exported symbols check
838 and for rdynamic-check executable-extension.
839 * configure: Regenerated.
841 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
844 * config/i386/i386.md (push peepholer/splitter): Use Pmode
845 with stack_pointer_rtx.
847 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
849 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
851 2013-11-05 Jakub Jelinek <jakub@redhat.com>
853 PR tree-optimization/58984
854 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
855 set *SIZE_P if non-NULL on success.
856 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
858 (ipcp_transform_function): Likewise. Punt if size of access
859 is different from TYPE_SIZE on v->value's type.
861 2013-11-03 H.J. Lu <hongjiu.lu@intel.com>
863 Backport from mainline
864 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
867 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
868 (ix86_expand_movmem): Replace copy_addr_to_reg with
869 ix86_copy_addr_to_reg.
870 (ix86_expand_setmem): Likewise.
872 2013-10-29 Uros Bizjak <ubizjak@gmail.com>
874 Backport from mainline
875 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
877 PR rtl-optimization/58079
878 * combine.c (combine_simplify_rtx): Avoid using SUBST if
879 simplify_comparison has widened a comparison with an integer.
881 2013-10-29 Martin Jambor <mjambor@suse.cz>
884 Backport from mainline
885 2013-05-09 Martin Jambor <mjambor@suse.cz>
888 * gimple-fold.c (canonicalize_constructor_val): Call
889 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
891 Backport from mainline
892 2013-03-16 Jan Hubicka <jh@suse.cz>
894 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
895 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
896 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
897 of cgraph_get_create_node.
898 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
900 2013-10-28 Tom de Vries <tom@codesourcery.com>
902 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
903 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
905 2013-10-26 Uros Bizjak <ubizjak@gmail.com>
907 Backport from mainline
908 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
911 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
912 Remove CCCmode handling.
913 <case LTU>: Return 'c' suffix for CCCmode.
914 <case GEU>: Return 'nc' suffix for CCCmode.
915 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
916 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
917 (*sub<mode>3_cc_overflow): Ditto.
918 (*subsi3_zext_cc_overflow): Ditto.
920 2013-10-26 Uros Bizjak <ubizjak@gmail.com>
922 Backport from mainline
923 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
926 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
927 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
928 and SI_REG for 64bit SYSV ABI targets.
930 2013-08-25 Richard Henderson <rth@twiddle.net>
933 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
934 instead of create_convert_operand_to.
935 (maybe_emit_sync_lock_test_and_set): Likewise.
936 (expand_atomic_compare_and_swap): Likewise.
937 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
939 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
941 PR rtl-optimization/58831
942 * alias.c (init_alias_analysis): At the beginning of each iteration, set
943 the reg_seen[N] bit if static_reg_base_value[N] is non-null.
945 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
947 * recog.c (search_ofs): New static variable moved from...
948 (peep2_find_free_register): ...here.
949 (peephole2_optimize): Initialize it.
951 2013-10-24 David Edelsohn <dje.gcc@gmail.com>
953 Backport from mainline
954 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
957 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
958 TARGET_32BIT final condition.
959 (mulsi3_internal2 and splitter): Same.
961 2013-10-23 Tom de Vries <tom@codesourcery.com>
963 PR tree-optimization/58805
964 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
966 2013-10-23 Richard Biener <rguenther@suse.de>
968 Backport from mainline
969 2013-06-24 Richard Biener <rguenther@suse.de>
971 PR tree-optimization/57488
972 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
974 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
976 Backport from mainline
977 2013-10-16 Ganesh Gopalasubramanian
978 <Ganesh.Gopalasubramanian@amd.com>
980 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
983 2013-10-16 Jakub Jelinek <jakub@redhat.com>
985 * BASE-VER: Set to 4.8.3.
986 * DEV-PHASE: Set to prerelease.
988 2013-10-16 Release Manager
990 * GCC 4.8.2 released.
992 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
994 Backport from mainline.
995 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
997 * config/aarch64/arm_neon.h
998 (vtbx<1,3>_<psu>8): Fix register constriants.
1000 2013-10-10 Jakub Jelinek <jakub@redhat.com>
1003 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
1004 if any labels are in FALLTHRU_BB, use a special label emitted
1005 immediately after the asm goto insn rather than label_rtx
1007 (expand_asm_stmt): Adjust caller.
1008 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
1009 edge if the last insn in predecessor is a jump with single successor,
1010 but it isn't simplejump_p.
1012 2013-10-09 Jakub Jelinek <jakub@redhat.com>
1014 Backport from mainline
1015 2013-09-26 Richard Biener <rguenther@suse.de>
1017 PR tree-optimization/58539
1018 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
1019 the fact that debug statements are not taking part in loop-closed
1022 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1024 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
1025 loop to work also for 31bit ABI.
1026 Save the stack pointer for frame_size > 0.
1028 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1030 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
1031 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
1032 constraint letters from expanders.
1033 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
1034 retry count to general_operand.
1035 ("tabort"): Give operand 0 a mode.
1036 ("tabort_1"): Add mode and constraint letter for operand 0.
1037 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
1039 2013-10-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
1041 Backport from mainline.
1044 * config/aarch64/aarch64.md (*add_<shift>_<mode>)
1045 (*add_<shift>_si_uxtw,*add_mul_imm_<mode>)
1046 (*sub_<shift>_<mode>)
1047 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
1048 Remove k constraint.
1050 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
1052 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
1054 2013-10-01 Jakub Jelinek <jakub@redhat.com>
1055 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1058 * config/s390/s390.c (s390_chunkify_start): Handle tablejump_p first,
1059 continue when done, for other jumps look through PARALLEL
1062 2013-09-30 Jakub Jelinek <jakub@redhat.com>
1065 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
1066 optimization, punt if sign_bit_p looked through any zero extension.
1068 2013-09-27 Paulo Matos <pmatos@broadcom.com>
1070 Backport from mainline.
1073 2013-03-27 Richard Biener <rguenther@suse.de>
1075 PR tree-optimization/56716
1076 * tree-ssa-structalias.c (perform_var_substitution): Adjust
1077 dumping for ref nodes.
1079 2013-09-27 Paulo Matos <pmatos@broadcom.com>
1081 Backport from mainline.
1083 2013-09-27 Paulo Matos <pmatos@broadcom.com>
1085 * gcc.dg/pr58463.c: New test.
1087 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
1089 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
1090 assignment statements.
1092 2013-09-23 Alan Modra <amodra@gmail.com>
1095 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
1097 2013-09-23 Alan Modra <amodra@gmail.com>
1099 * config/rs6000/predicates.md (add_cint_operand): New.
1100 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
1101 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
1102 using add_cint_operand.
1103 (largetoc_high_plus_aix): Likewise.
1104 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
1106 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
1109 * config/pa/pa.c (pa_option_override): Disable auto increment and
1110 decrement instructions until reload is completed.
1112 * config/pa/pa.md: In "scc" insn patterns, change output template to
1113 handle const0_rtx in reg_or_0_operand operands.
1115 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1117 * omp-low.c (expand_omp_sections): Always pass len - 1 to
1118 GOMP_sections_start, even if !exit_reachable.
1120 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
1122 * arm.c (arm_expand_prologue): Validate architecture supports
1123 LDRD/STRD before accepting tuning preferences.
1124 (arm_expand_epilogue): Likewise.
1126 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
1127 Paolo Carlini <paolo.carlini@oracle.com>
1130 * doc/implement-cxx.texi: Fix references to the C++ standards.
1132 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1134 PR tree-optimization/58088
1135 * fold-const.c (mask_with_trailing_zeros): New function.
1136 (fold_binary_loc): Make sure we don't recurse infinitely
1137 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
1138 Use mask_with_trailing_zeros where appropriate.
1140 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
1143 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
1146 2013-09-13 Christian Bruel <christian.bruel@st.com>
1149 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
1151 2013-09-11 Andi Kleen <ak@linux.intel.com>
1153 Backport from mainline
1154 * doc/extend.texi: Use __atomic_store_n instead of
1155 __atomic_store in HLE example.
1157 2013-09-11 Andi Kleen <ak@linux.intel.com>
1159 Backport from mainline
1160 * doc/extend.texi: Dont use __atomic_clear in HLE
1163 2013-09-11 Andi Kleen <ak@linux.intel.com>
1165 Backport from mainline
1166 * doc/extend.texi: Document that __atomic_clear and
1167 __atomic_test_and_set should only be used with bool.
1169 2013-09-11 Richard Biener <rguenther@suse.de>
1172 * passes.c (init_optimization_passes): Split critical edges
1173 before late uninit warning pass in the -Og pipeline.
1175 2013-09-11 Jakub Jelinek <jakub@redhat.com>
1177 PR tree-optimization/58385
1178 * fold-const.c (build_range_check): If both low and high are NULL,
1179 use omit_one_operand_loc to preserve exp side-effects.
1181 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
1184 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
1185 support conditional execution.
1186 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
1188 2013-09-10 Jakub Jelinek <jakub@redhat.com>
1190 PR rtl-optimization/58365
1191 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
1192 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
1195 2013-09-09 Jakub Jelinek <jakub@redhat.com>
1197 PR tree-optimization/58364
1198 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
1199 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
1200 the current range can't be an unconditional true or false.
1202 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1205 Backport from mainline
1206 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1208 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
1209 Use gen_int_mode rather than GEN_INT.
1211 2013-09-09 Richard Biener <rguenther@suse.de>
1213 Backport from mainline
1214 2013-08-27 Richard Biener <rguenther@suse.de>
1216 PR tree-optimization/57521
1217 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
1218 one edge is non-critical.
1219 (find_phi_replacement_condition): Make sure to use a non-critical
1220 edge. Cleanup and remove old bug workarounds.
1221 (bb_postdominates_preds): Remove.
1222 (if_convertible_loop_p_1): Do not compute post-dominators.
1223 (combine_blocks): Do not free post-dominators.
1224 (main_tree_if_conversion): Likewise.
1226 2013-09-09 Richard Biener <rguenther@suse.de>
1228 Backport from mainline
1229 2013-09-03 Richard Biener <rguenther@suse.de>
1232 * fold-const.c (negate_expr_p): Fix division case.
1233 (negate_expr): Likewise.
1235 2013-09-09 Richard Biener <rguenther@suse.de>
1237 Backport from mainline
1238 2013-08-29 Richard Biener <rguenther@suse.de>
1240 PR tree-optimization/57685
1241 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
1242 single-use operands to avoid exponential complexity.
1244 2013-09-09 Richard Biener <rguenther@suse.de>
1246 Backport from mainline
1247 2013-08-30 Richard Biener <rguenther@suse.de>
1249 PR tree-optimization/58223
1250 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
1251 (has_anti_or_output_dependence): ... this and adjust to also
1252 look for output dependences.
1253 (mark_nodes_having_upstream_mem_writes): Adjust.
1254 (rdg_flag_uses): Likewise.
1256 2013-09-03 Richard Biener <rguenther@suse.de>
1258 Backport from mainline
1259 2013-08-29 Richard Biener <rguenther@suse.de>
1261 PR tree-optimization/58246
1262 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
1263 handle the dominance check inside a basic-block.
1265 2013-09-03 Richard Biener <rguenther@suse.de>
1267 Backport from mainline
1268 2013-08-30 Richard Biener <rguenther@suse.de>
1270 PR tree-optimization/58228
1271 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
1272 allow invariant loads in nested loop vectorization.
1274 2013-09-03 Richard Biener <rguenther@suse.de>
1276 Backport from mainline
1277 2013-08-30 Richard Biener <rguenther@suse.de>
1279 PR tree-optimization/58010
1280 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
1281 assert that we have a loop-closed PHI.
1283 2013-09-01 Uros Bizjak <ubizjak@gmail.com>
1285 Backport from mainline
1286 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
1288 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
1289 "cmp" RTX before signed_comparison_operator check to account
1292 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
1294 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
1296 2013-08-30 Jakub Jelinek <jakub@redhat.com>
1298 PR tree-optimization/58277
1299 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
1300 after seeing too many stmts with vdef in between dombb and current
1301 bb, invalidate everything.
1303 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
1305 Backport from mainline
1306 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
1309 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
1311 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
1312 rtx (*) (rtx, ...) with insn_gen_fn.
1313 * genoutput.c (output_insn_data): Cast gen_? function pointers to
1314 insn_gen_fn::stored_funcptr. Add initializer braces.
1316 Backport from mainline
1317 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
1320 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
1321 (rs6000_emit_swdiv_high_precision, rs6000_emit_swdiv_low_precision,
1322 rs6000_emit_swrsqrt): Don't cast result of GEN_FCN to gen_2arg_fn_t.
1324 2013-08-29 Jakub Jelinek <jakub@redhat.com>
1326 Backported from mainline
1327 2013-05-27 Richard Biener <rguenther@suse.de>
1330 PR tree-optimization/57417
1331 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1333 (set_ssa_val_to): Compare addresses using
1334 get_addr_base_and_unit_offset.
1336 PR tree-optimization/57396
1337 * tree-affine.c (double_int_constant_multiple_p): Properly
1338 return false for val == 0 and div != 0.
1340 PR tree-optimization/57343
1341 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1342 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1343 (number_of_iterations_cond): Do not build the folded tree.
1345 2013-08-28 Jakub Jelinek <jakub@redhat.com>
1348 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
1350 2013-08-28 Richard Biener <rguenther@suse.de>
1352 Backport from mainline
1353 2013-06-24 Richard Biener <rguenther@suse.de>
1356 * passes.c (init_optimization_passes): Move pass_fold_builtins
1357 and pass_dce earlier with -Og.
1359 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
1361 Backport from mainline
1362 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
1364 * config/i386/driver-i386.c (host_detect_local_cpu): Update
1365 Haswell processor detection.
1367 Backport from mainline
1368 2013-08-27 Christian Widmer <shadow@umbrox.de>
1371 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
1372 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
1373 AVX2 capable processors.
1375 2013-08-23 Jakub Jelinek <jakub@redhat.com>
1378 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
1379 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
1381 PR tree-optimization/58209
1382 * tree-tailcall.c (find_tail_calls): Give up for pointer result types
1383 if m or a is non-NULL.
1385 2013-08-21 Richard Earnshaw <rearnsha@arm.com>
1388 * arm.c (aapcs_vfp_allocate): Decompose the argument if the
1389 suggested mode for the assignment isn't compatible with the
1392 2013-08-20 Alan Modra <amodra@gmail.com>
1395 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
1396 (rs6000_emit_epilogue): Likewise.
1398 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
1399 Jakub Jelinek <jakub@redhat.com>
1401 Backport from mainline
1402 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
1403 destination and source operands.
1405 2013-08-18 Jakub Jelinek <jakub@redhat.com>
1407 PR tree-optimization/58006
1408 * tree-parloops.c (take_address_of): Don't ICE if get_name
1410 (eliminate_local_variables_stmt): Remove clobber stmts.
1412 2013-08-16 Jakub Jelinek <jakub@redhat.com>
1414 PR tree-optimization/58164
1415 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
1416 walk gimple_goto_dest of GIMPLE_GOTO.
1418 PR tree-optimization/58165
1419 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
1420 bi_call must be the last stmt in a bb, don't split_block, instead
1421 use fallthru edge from it and give up if there is none.
1422 Release conds vector when returning early.
1424 2013-08-15 David Given <dg@cowlark.com>
1426 Backport from mainline
1427 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
1429 * lra-constraints.c (process_alt_operands): Use #if HAVE_ATTR_enable
1432 2013-08-14 Jakub Jelinek <jakub@redhat.com>
1434 PR tree-optimization/58145
1435 * tree-sra.c (build_ref_for_offset): If prev_base has
1436 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
1438 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1440 * config/s390/htmxlintrin.h: Add file missing from last commit.
1441 * config/s390/htmintrin.h: Likewise.
1442 * config/s390/s390intrin.h: Likewise.
1444 2013-08-14 Uros Bizjak <ubizjak@gmail.com>
1446 Backport from mainline
1447 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
1449 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
1450 when Pmode != word_mode. Add length_address attribute.
1451 (sse3_monitor_<mode>): Merge from sse3_monitor and
1452 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
1453 Pmode != word_mode. Update insn length attribute.
1454 * config/i386/i386.c (ix86_option_override_internal): Update
1455 ix86_gen_monitor selection for merged sse3_monitor insn.
1457 2013-08-14 Jakub Jelinek <jakub@redhat.com>
1458 Alexandre Oliva <aoliva@redhat.com>
1461 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
1462 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
1463 there also UNSPEC_PLTOFF.
1465 2013-08-13 Jakub Jelinek <jakub@redhat.com>
1468 * asan.c (instrument_strlen_call): Fix typo in comment.
1469 Use char * type even for the lhs of POINTER_PLUS_EXPR.
1471 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
1473 Backport from mainline
1474 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1476 PR rtl-optimization/57459
1477 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1478 type when setting live regs.
1480 2013-08-13 Marek Polacek <polacek@redhat.com>
1481 Jakub Jelinek <jakub@redhat.com>
1483 PR tree-optimization/57980
1484 * tree-tailcall.c (process_assignment): Return false
1485 when not dealing with integers or floats.
1487 2013-08-12 Andrew Haley <aph@redhat.com>
1489 Backport from mainline:
1490 * 2013-07-11 Andreas Schwab <schwab@suse.de>
1492 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
1494 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
1496 Backport from mainline
1497 2013-08-12 Perez Read <netfirewall@gmail.com>
1500 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
1501 operand 0 for intel asm alternative.
1502 (*movabs<mode>_2): Ditto for operand 1.
1504 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1506 Backport from mainline:
1507 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1509 * config/arm/neon.md (vcond): Fix floating-point vector
1510 comparisons against 0.
1512 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1514 Backport from mainline:
1515 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1517 * config/arm/neon.md (movmisalign<mode>): Disable when we
1518 don't allow unaligned accesses.
1519 (*movmisalign<mode>_neon_store): Likewise.
1520 (*movmisalign<mode>_neon_load): Likewise.
1521 (*movmisalign<mode>_neon_store): Likewise.
1522 (*movmisalign<mode>_neon_load): Likewise.
1524 2013-08-06 Martin Jambor <mjambor@suse.cz>
1527 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
1528 MEM_REF has proper alignment information.
1530 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
1532 PR rtl-optimization/57708
1533 * recog.c (peep2_find_free_register): Validate all regs in a
1536 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
1538 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
1539 the implied StoreLoad barrier for atomic operations if before.
1541 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1543 Backports from mainline:
1544 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1546 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1547 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1548 (struct machine_function): Add tbegin_p.
1549 (s390_canonicalize_comparison): Fold CC mode compares to
1550 conditional jump if possible.
1551 (s390_emit_jump): Return the emitted jump.
1552 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1553 Handle CCRAWmode compares.
1554 (s390_option_override): Default to -mhtm if available.
1555 (s390_reg_clobbered_rtx): Handle floating point regs as well.
1556 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1557 FPRs instead of df_regs_ever_live_p.
1558 (s390_optimize_nonescaping_tx): New function.
1559 (s390_init_frame_layout): Extend clobbered_regs array to cover
1561 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1562 (s390_expand_tbegin): New function.
1563 (enum s390_builtin): New enum definition.
1564 (code_for_builtin): New array definition.
1565 (s390_init_builtins): New function.
1566 (s390_expand_builtin): New function.
1567 (TARGET_INIT_BUILTINS): Define.
1568 (TARGET_EXPAND_BUILTIN): Define.
1569 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
1570 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1571 (s390_alc_comparison): Likewise.
1572 * config/s390/s390-modes.def: Add CCRAWmode.
1573 * config/s390/s390.h (processor_flags): Add PF_TX.
1574 (TARGET_CPU_HTM): Define macro.
1575 (TARGET_HTM): Define macro.
1576 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1577 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1578 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1579 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
1580 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
1582 (TBEGIN_MASK, TBEGINC_MASK): New constants.
1583 ("*cc_to_int"): Move up.
1584 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1585 constants other than 0.
1586 ("*ccraw_to_int"): New insn and splitter definition.
1587 ("tbegin", "tbegin_nofloat", "tbegin_retry")
1588 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1589 ("tx_assist"): New expander.
1590 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1591 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1592 * config/s390/s390.opt: Add -mhtm option.
1593 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1594 * config/s390/htmxlintrin.h: New file.
1595 * config/s390/htmintrin.h: New file.
1596 * config/s390/s390intrin.h: New file.
1597 * doc/extend.texi: Document htm builtins.
1598 * config.gcc: Add the new header files to extra_headers.
1600 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1602 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
1603 enabled without -march=zEC12.
1604 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
1607 2013-08-01 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1609 Backport from mainline
1610 2013-05-13 Ganesh Gopalasubramanian
1611 <Ganesh.Gopalasubramanian@amd.com>
1613 * config/i386/i386.c (processor_target_table): Modified default
1614 alignment values for AMD BD and BT architectures.
1616 2013-07-31 Sriraman Tallam <tmsriram@google.com>
1618 * config/i386/i386.c (dispatch_function_versions): Fix array
1619 indexing of function_version_info to match actual_versions.
1621 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
1623 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
1624 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
1626 2013-07-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1628 Backport from mainline
1629 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1631 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
1633 2013-07-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1635 * config/s390/linux-unwind.h: Use the proper dwarf to hard reg
1636 mapping for FPRs when creating the fallback framestate.
1638 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1640 * config/s390/s390.md ("movcc"): Swap load and store instructions.
1642 2013-07-25 Terry Guo <terry.guo@arm.com>
1644 Backport from mainline:
1645 2013-07-25 Terry Guo <terry.guo@arm.com>
1647 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
1648 shift_add/shift_sub0/shift_sub1 RTXs.
1650 2013-07-22 Iain Sandoe <iain@codesourcery.com>
1652 Backport from mainline:
1653 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
1655 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
1656 it is not needed after split.
1658 2013-07-20 Iain Sandoe <iain@codesourcery.com>
1661 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
1662 second label for nonlocal goto receivers. Don't output pic base labels
1663 unless we're producing PIC; mark that action unreachable().
1664 (ix86_save_reg): If the function contains a nonlocal label, save the
1666 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
1667 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
1668 (update_pic_label_number_if_needed): New.
1669 (machopic_output_function_base_name): Adjust for nonlocal receiver
1671 (machopic_should_output_picbase_label): New.
1672 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
1673 (nonlocal_goto_receiver): New insn and split.
1675 2013-07-19 Wei Mi <wmi@google.com>
1677 Backport from mainline:
1678 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
1679 Wei Mi <wmi@google.com>
1681 PR rtl-optimization/57878
1682 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
1683 top. Promote lra_assert to gcc_assert.
1684 (reload_pseudo_compare_func): Check regs first for reload pseudos.
1686 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
1688 Backport from 2013-07-19 trunk r201051.
1691 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
1692 * config/avr/avr.md (adjust_len): Add `round'.
1693 * config/avr/avr-protos.h (avr_out_round): New prototype.
1694 (avr_out_plus): Add `out_label' argument.
1695 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
1696 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
1697 Handle the case where `insn' is just a pattern.
1698 (avr_out_bitop): Handle the case where `insn' is just a pattern.
1699 (avr_out_round): New function.
1700 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
1702 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
1704 * config/i386/bmiintrin.h (_bextr_u32): New.
1705 (_bextr_u64): Ditto.
1710 (_blsmsk_u32): Ditto.
1711 (_blsmsk_u64): Ditto.
1712 (_tzcnt_u32): Ditto.
1713 (_tzcnt_u64): Ditto.
1715 2013-07-17 James Greenhalgh <james.greenhalgh@arm.com>
1717 Backport From mainline:
1718 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1720 * config/aarch64/aarch64-builtins.c
1721 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1722 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1724 * config/aarch64/aarch64-simd.md
1725 (aarch64_ld1<VALL:mode>): New.
1726 (aarch64_st1<VALL:mode>): Likewise.
1727 * config/aarch64/arm_neon.h
1728 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1730 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
1732 Backport from 2013-07-11 trunk r200901.
1735 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
1736 name seen by assembler/linker if available.
1738 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1740 Backport from 2013-07-10 trunk r200872.
1743 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
1746 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1748 Backport from 2013-07-10 trunk r200870.
1751 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
1752 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
1753 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
1754 Remove duplicate devices.
1755 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
1756 * config/avr/t-multilib: Regenerate.
1757 * config/avr/avr-tables.opt: Regenerate.
1758 * doc/avr-mmcu.texi: Regenerate.
1760 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1763 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
1765 2013-07-09 Joseph Myers <joseph@codesourcery.com>
1767 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
1768 adjust register size for TDmode and TFmode for VSX registers.
1770 2013-07-08 Kai Tietz <ktietz@redhat.com>
1772 Backport from mainline
1774 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
1775 hook_bool_const_tree_true.
1777 2013-07-08 Uros Bizjak <ubizjak@gmail.com>
1779 Backport from mainline
1780 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
1782 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1783 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1785 Backport from mainline
1786 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1788 * config/i386/sse.md (sse_movlhps): Change alternative 3
1789 of operand 2 to "m".
1791 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
1793 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
1795 2013-07-08 Jakub Jelinek <jakub@redhat.com>
1797 PR rtl-optimization/57829
1798 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
1799 mask bits outside of mode are just sign-extension from mode to HWI.
1801 2013-07-03 Jakub Jelinek <jakub@redhat.com>
1804 * config/i386/predicates.md (vsib_address_operand): Disallow
1805 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1807 2013-06-30 Terry Guo <terry.guo@arm.com>
1809 Backport from mainline
1810 2013-03-27 Bin Cheng <bin.cheng@arm.com>
1813 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
1814 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
1817 2013-06-28 Jakub Jelinek <jakub@redhat.com>
1820 * config/i386/i386.c (ix86_expand_builtin): If target == NULL
1821 and mode is VOIDmode, don't create a VOIDmode pseudo to copy result
1824 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1827 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1828 constraints of operand 1 and 2.
1831 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1832 to match RTL canonicalization. Swap predicates and
1833 constraints of operand 1 and 2.
1835 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1836 decl before the loop, initialize to NULL.
1837 (vectorizable_load): Initialize ptr_incr to NULL.
1839 2013-06-24 Martin Jambor <mjambor@suse.cz>
1841 PR tree-optimization/57358
1842 * ipa-prop.c (parm_ref_data_preserved_p): Always return true when
1845 2013-06-24 Alan Modra <amodra@gmail.com>
1847 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
1848 (gen_easy_altivec_constant): Likewise.
1849 * config/rs6000/predicates.md (easy_vector_constant_add_self,
1850 easy_vector_constant_msb): Likewise.
1852 2013-06-21 Uros Bizjak <ubizjak@gmail.com>
1854 Backport from mainline
1855 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
1858 * config/i386/i386.c (construct_container): Report error if
1859 long double is used with disabled x87 float returns.
1861 2013-06-20 Wei Mi <wmi@google.com>
1863 Backport from mainline
1864 2013-06-19 Wei Mi <wmi@google.com>
1866 PR rtl-optimization/57518
1867 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1868 if regno is used in paradoxical subreg.
1869 (update_equiv_regs): Check pdx_subregs[regno] before
1870 set a reg to be equivalent with a mem.
1873 2013-06-20 David Edelsohn <dje.gcc@gmail.com>
1875 Backport from mainline
1876 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
1879 * collect2.c (collect_atexit): New.
1880 (collect_exit): Delete.
1881 (main): Register collect_atexit with atexit.
1882 (collect_wait): Change collect_exit to exit.
1884 * collect2.h (collect_exit): Delete.
1885 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1887 2013-06-19 Matthias Klose <doko@ubuntu.com>
1890 * file-find.h (find_a_file): Add a mode parameter.
1891 * file-find.c (find_a_file): Likewise.
1892 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1893 with X_OK for the executables.
1894 * collect2.c (main): Call find_a_file with X_OK.
1896 2013-06-19 Igor Zamyatin <igor.zamyatin@intel.com>
1898 * doc/invoke.texi (core-avx2): Document.
1899 (atom): Updated with MOVBE.
1901 2013-06-19 Jakub Jelinek <jakub@redhat.com>
1904 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1905 PERSONALITY in $PATH derived prefixes.
1907 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1910 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1911 that now in C++ the value is correct per the C++ standards.
1913 2013-06-19 Alan Modra <amodra@gmail.com>
1915 Apply mainline patches
1916 2013-06-13 Alan Modra <amodra@gmail.com>
1917 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1918 * config/rs6000/rs6000.md (signbittf2): New insn.
1919 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1920 (abstf2_internal, cmptf_internal2): Likewise.
1921 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1923 2013-06-11 Anton Blanchard <anton@samba.org>
1924 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1925 correct shift value in little-endian mode.
1927 2013-06-07 Alan Modra <amodra@gmail.com>
1928 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1931 2013-06-04 Alan Modra <amodra@gmail.com>
1932 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1935 2013-05-10 Alan Modra <amodra@gmail.com>
1936 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1937 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1938 * configure: Regenerate.
1940 2013-05-09 Alan Modra <amodra@gmail.com>
1941 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
1943 * configure: Regenerate.
1945 2013-05-07 Anton Blanchard <anton@samba.org>
1946 * configure.ac (HAVE_LD_LARGE_TOC): Use right linker emulation
1947 for powerpc64 little endian.
1948 * configure: Regenerate.
1950 2013-05-06 Alan Modra <amodra@gmail.com>
1951 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
1952 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
1953 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
1954 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
1955 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1956 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
1958 2013-05-06 Alan Modra <amodra@gmail.com>
1959 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
1960 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
1961 (DEFAULT_ASM_ENDIAN): Define.
1962 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1963 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
1964 Update -K PIC clause from sysv4.h.
1965 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
1966 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
1968 2013-05-06 Alan Modra <amodra@gmail.com>
1969 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
1970 twice for little-endian.
1971 (ashrdi3_no_power, ashrdi3): Support little-endian.
1973 2013-04-25 Alan Modra <amodra@gmail.com>
1974 * config.gcc: Support little-endian powerpc-linux targets.
1975 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
1976 (LINK_OS_LINUX_SPEC): Define.
1977 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
1978 Preserve MASK_LITTLE_ENDIAN.
1979 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
1980 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
1981 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
1982 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
1983 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
1984 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
1985 Correct fp word order for little-endian. Don't shift toc entries
1986 smaller than a word for little-endian.
1987 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
1988 (bswapdi2 splits): Correct low-part subreg for little-endian.
1989 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
1990 low/high where such is correct only for be.
1991 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
1992 little-endian for -mcall-aixdesc.
1994 2013-06-12 Martin Jambor <mjambor@suse.cz>
1996 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1997 within bounds at the beginning of the function.
1999 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2001 PR tree-optimization/57537
2002 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2003 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2005 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
2007 Backport from mainline
2008 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
2010 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
2011 cmp_code to construct REG_EQUAL note.
2013 2013-06-10 Oleg Endo <olegendo@gcc.gnu.org>
2015 Backport from mainline
2016 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
2019 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2020 (*fmasf4, *fmasf4_media): New insns.
2022 2013-06-09 Jakub Jelinek <jakub@redhat.com>
2025 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
2026 that operands[2] doesn't overlap with operands[0].
2028 2013-06-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2030 * recog.c (offsettable_address_addr_space_p): Fix calculation of
2031 address mode. Move pointer mode initialization to the same place.
2033 2013-06-07 Sofiane Naci <sofiane.naci@arm.com>
2035 Backport from mainline
2036 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2038 2013-06-07 Uros Bizjak <ubizjak@gmail.com>
2040 Backport from mainline
2041 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
2043 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2044 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2046 Backport from mainline
2047 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
2050 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2051 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2052 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2054 2013-06-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2056 Backport from mainline.
2057 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2059 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2061 2013-06-03 James Greenhalgh <james.greenhalgh@arm.com>
2063 Backport from mainline.
2064 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2066 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2067 format specifier in 'X' case.
2069 2013-05-31 Richard Henderson <rth@redhat.com>
2072 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2073 (ix86_reorg): Call it.
2075 2012-05-31 Jakub Jelinek <jakub@redhat.com>
2077 * BASE-VER: Set to 4.8.2.
2078 * DEV-PHASE: Set to prerelease.
2080 2013-05-31 Release Manager
2082 * GCC 4.8.1 released.
2084 2013-05-24 Greta Yorsh <Greta.Yorsh@arm.com>
2086 Backport from mainline
2087 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2090 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2091 generating simple_return for naked functions.
2093 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2096 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2097 that index is not negative.
2099 2013-05-23 Martin Jambor <mjambor@suse.cz>
2102 * tree.h (contains_bitfld_component_ref_p): Declare.
2103 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2104 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its caller.
2105 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2106 not access a bit-field. Assert all final offsets are byte-aligned.
2108 2013-05-23 Richard Biener <rguenther@suse.de>
2110 PR rtl-optimization/57341
2111 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2112 instead of true_dependence.
2114 2013-05-23 Jakub Jelinek <jakub@redhat.com>
2117 * expmed.c (store_split_bit_field): If op0 is a REG or
2118 SUBREG of a REG, don't lower unit. Handle unit not being
2119 always BITS_PER_WORD.
2121 2013-05-22 Uros Bizjak <ubizjak@gmail.com>
2124 * config/i386/i386.md (*movti_internal_rex64): Emit movaps/movups
2125 for non-sse2 targets.
2126 (*movti_internal): Simplify mode attribute calculation.
2128 2013-05-22 Richard Biener <rguenther@suse.de>
2130 Backport from mainline
2131 2013-05-21 Richard Biener <rguenther@suse.de>
2133 PR tree-optimization/57318
2134 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2135 estimate stmts with side-effects as likely eliminated.
2137 2013-05-21 Richard Biener <rguenther@suse.de>
2139 PR tree-optimization/57330
2140 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2141 preserve the call stmts fntype.
2143 2013-05-21 Richard Biener <rguenther@suse.de>
2145 PR tree-optimization/57303
2146 * tree-ssa-sink.c (statement_sink_location): Properly handle
2149 2013-05-21 Magnus Granberg <baldrick@free.fr>
2152 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2154 2013-05-21 Eric Botcazou <ebotcazou@adacore.com>
2156 Backport from mainline
2157 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2159 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2160 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2162 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2164 PR rtl-optimization/57281
2165 PR rtl-optimization/57300
2166 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2167 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2168 what the other splitter did if the registers are dead.
2170 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
2172 Backport from mainline
2173 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2175 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2176 cache parameters using detect_caches_amd also for CYRIX,
2177 NSC and TM2 signatures.
2179 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2180 Dzianis Kahanovich <mahatma@eu.by>
2184 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2185 VIA/Centaur processors and determine their cache parameters
2186 using detect_caches_amd.
2188 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
2190 * config/i386/i386.c (ix86_option_override_internal): Update
2191 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
2192 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
2193 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
2194 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
2196 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
2198 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2200 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2203 PR tree-optimization/57051
2204 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2205 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2207 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2209 * omp-low.c (extract_omp_for_data): For collapsed loops,
2210 if at least one of the loops is known at compile time to
2211 iterate zero times, set count to 0.
2212 (expand_omp_regimplify_p): New function.
2213 (expand_omp_for_generic): For collapsed loops, if at least
2214 one of the loops isn't known to iterate at least once,
2215 add runtime check with setting count to 0.
2216 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2217 For unsigned types if it isn't known at compile time that
2218 the loop will iterate at least once, add runtime check to bypass
2219 the whole loop if initial condition isn't true.
2221 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2224 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2225 the case when both op0 and op1 have VOIDmode.
2227 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2229 PR tree-optimization/57230
2230 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2233 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2235 * config/epiphany/epiphany.c (epiphany_init): Check size of
2236 NUM_MODES_FOR_MODE_SWITCHING.
2237 (epiphany_expand_prologue):
2238 Remove CONFIG_REGNUM initial value handling code.
2239 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2240 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2241 (emit_set_fp_mode, epiphany_mode_after): Likewise.
2242 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2243 Don't return 1 for FP_MODE_NONE.
2244 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2245 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2246 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2247 * config/epiphany/epiphany.md (save_config): New pattern.
2249 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2251 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2252 Add mthumb/march=armv7-a multilib.
2253 Add mthumb/march=armv7-r multilib.
2254 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2256 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2259 * config/v850/t-rtems: Add more multilibs.
2261 2013-05-10 Richard Biener <rguenther@suse.de>
2263 PR tree-optimization/57214
2264 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2265 not propagate from SSA names that occur in abnormal PHI nodes.
2267 2013-05-10 Alan Modra <amodra@gmail.com>
2270 * varasm.c (default_elf_select_section): Move !DECL_P check..
2271 (get_named_section): ..to here before calling get_section_name.
2273 (default_section_type_flags): Add DECL_P check.
2274 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2275 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2277 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2279 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2280 When using gen_stack_adjust_str with a register offset, add a
2281 REG_FRAME_RELATED_EXPR note.
2283 2013-05-09 Martin Jambor <mjambor@suse.cz>
2286 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2287 * ipa-cp.c (find_aggregate_values_for_callers_subset): Fill in the
2288 by_ref flag of ipa_agg_replacement_value structures.
2289 (known_aggs_to_agg_replacement_list): Likewise.
2290 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2291 (read_agg_replacement_chain): Likewise.
2292 (ipcp_transform_function): Also check that by_ref flags match.
2294 2013-05-08 Diego Novillo <dnovillo@google.com>
2300 2012-08-17 Diego Novillo <dnovillo@google.com>
2303 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2304 * config.in: Regenerate.
2305 * configure: Regenerate.
2306 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is
2309 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2311 PR tree-optimization/57200
2312 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2313 Only call inform if the preceding warning_at returns true.
2315 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2317 PR tree-optimization/57149
2318 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2319 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2320 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2321 uninit_undefined_value_p instead of ssa_undefined_value_p.
2324 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2325 for modifier == EXPAND_INITIALIZER.
2327 2013-05-07 Richard Biener <rguenther@suse.de>
2329 Backport from mainline
2330 2013-05-06 Richard Biener <rguenther@suse.de>
2332 PR tree-optimization/57185
2333 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2336 2013-04-19 Richard Biener <rguenther@suse.de>
2338 PR tree-optimization/57000
2339 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
2341 2013-05-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2344 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2347 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2348 to save TFmode registers and DImode to save TImode registers for
2349 caller save operations.
2350 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2351 mark being partially clobbered since they only use the first
2354 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2355 and TDmode only use the upper 64-bits of each VSX register.
2357 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2360 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2362 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2364 Backport from mainline
2365 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2368 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2369 between "first_arg" and "insn", not "last" and "insn".
2371 2013-05-03 Jakub Jelinek <jakub@redhat.com>
2373 PR rtl-optimization/57130
2374 * combine.c (make_compound_operation) <case SUBREG>: Pass
2375 SET instead of COMPARE as in_code to the recursive call
2378 Backported from mainline
2379 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2381 PR tree-optimization/57051
2382 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2383 and VEC_RSHIFT_EXPR if shift count is a multiple of element
2386 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
2388 * fold-const.c (fold_binary_loc): Call const_binop also for mixed
2389 vector-scalar operations.
2391 2013-05-03 Marek Polacek <polacek@redhat.com>
2393 Backport from mainline
2394 2013-04-25 Marek Polacek <polacek@redhat.com>
2396 PR tree-optimization/57066
2397 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
2399 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2401 Backport from mainline
2402 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2404 * lra-constraints.c (process_alt_operands): Add checking alt
2405 number to choose the best alternative.
2407 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2410 * lra-constraints.c (best_small_class_operands_num): Remove.
2411 (process_alt_operands): Remove small_class_operands_num. Take
2412 small classes operands into losers and only if the operand is not
2413 matched. Modify debugging output.
2414 (curr_insn_transform): Remove best_small_class_operands_num.
2417 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2419 Backport from mainline
2420 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2423 * lra-constraints.c (process_alt_operands): Discourage a bit more
2424 using memory for pseudos. Print cost dump for alternatives.
2425 Modify cost values for conflicts with early clobbers.
2426 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
2428 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2430 Backport from mainline
2431 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2433 PR rtl-optimizations/57046
2434 * lra-constraints (split_reg): Set up lra_risky_transformations_p
2435 for multi-reg splits.
2437 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2439 Backport from mainline
2440 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
2443 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
2444 a set sp if no stack realignment.
2446 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2448 Backport from mainline
2449 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
2451 PR rtl-optimization/56999
2452 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
2454 (lra_coalesce): Remove split_origin_bitmap and related code.
2455 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
2456 ranges if necessary.
2458 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2460 Backport from mainline
2461 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2463 PR rtl-optimization/56847
2464 * lra-constraints.c (process_alt_operands): Discourage alternative
2465 with non-matche doffsettable memory constraint fro memory with
2468 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2470 Backport from mainline
2471 2013-03-28 Ian Bolton <ian.bolton@arm.com>
2473 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
2474 record only when desired or required.
2476 2013-04-30 Jakub Jelinek <jakub@redhat.com>
2478 PR tree-optimization/57104
2479 * tsan.c (instrument_expr): Don't instrument accesses to
2480 DECL_HARD_REGISTER VAR_DECLs.
2482 2013-04-30 Uros Bizjak <ubizjak@gmail.com>
2484 Backport from mainline
2485 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2488 * config/i386/i386.md (*zero_extendsidi2_rex64): Add "!" to m->?*y
2490 (*zero_extendsidi2): Ditto.
2492 Backport from mainline
2493 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2496 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
2498 2013-04-29 Richard Biener <rguenther@suse.de>
2501 * tree-cfg.c (move_stmt_op): Fix condition under which to update
2503 (move_stmt_r): Remove redundant checking.
2505 2013-04-29 Christian Bruel <christian.bruel@st.com>
2508 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2510 2013-04-29 Jakub Jelinek <jakub@redhat.com>
2512 PR tree-optimization/57083
2513 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2514 non-singleton shift count range, zero extend low_bound for uns case.
2516 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
2518 * stor-layout.c (finalize_size_functions): Allocate a structure and
2519 reset cfun before dumping the functions.
2521 2013-04-27 Jakub Jelinek <jakub@redhat.com>
2524 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2525 use xop_pmacsdqh if uns_p.
2526 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2527 the immediate rotate count.
2529 2013-04-25 Jakub Jelinek <jakub@redhat.com>
2531 PR rtl-optimization/57003
2532 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2533 call note_stores with kill_clobbered_value callback again after
2534 killing regs_invalidated_by_call.
2536 2013-04-25 Ian Bolton <ian.bolton@arm.com>
2538 Backported from mainline.
2539 2013-03-22 Ian Bolton <ian.bolton@arm.com>
2541 * config/aarch64/aarch64.c (aarch64_print_operand): New
2542 format specifier for printing a constant in hex.
2543 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
2544 format specifier for printing second operand.
2546 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
2548 Backported from mainline.
2549 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
2551 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2552 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2553 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2555 2013-04-24 Greta Yorsh <Greta.Yorsh@arm.com>
2557 Backported from mainline.
2559 * config/arm/arm.c (load_multiple_sequence): Require SP
2560 as base register for loads if SP is in the register list.
2562 2013-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2563 Steven Bosscher <steven@gcc.gnu.org>
2565 Backported from mainline.
2566 PR rtl-optimization/56605
2567 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
2569 2013-04-22 Marek Polacek <polacek@redhat.com>
2571 Backported from mainline.
2572 2013-04-22 Marek Polacek <polacek@redhat.com>
2575 * tsan.c (instrument_expr): Don't instrument expression
2576 in case its size is zero.
2578 2013-04-22 Yufeng Zhang <yufeng.zhang@arm.com>
2580 Backported from mainline.
2581 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
2582 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
2583 (aarch64_start_file): Use the new function.
2585 2013-04-18 Jakub Jelinek <jakub@redhat.com>
2587 PR tree-optimization/56984
2588 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
2589 and (x >> M) >= N don't register any assertion if N << M is the
2592 2013-04-17 David Edelsohn <dje.gcc@gmail.com>
2595 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2597 2013-04-15 Jakub Jelinek <jakub@redhat.com>
2599 PR tree-optimization/56962
2600 * gimple-ssa-strength-reduction.c (record_increment): Only set
2601 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
2602 either rhs1 or rhs2 is equal to c->base_expr.
2604 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2606 * emit-rtl.c (reset_all_used_flags): New function.
2607 (verify_rtl_sharing): Call reset_all_used_flags before and after
2608 performing the checks.
2610 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
2613 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
2614 (S_MODES): Set H_MODE bit.
2615 (SF_MODES): Set only S_MODE and SF_MODE bits.
2616 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
2617 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
2618 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
2619 <MODE_FLOAT>: Likewise.
2621 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
2624 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
2625 lra_in_progress for return.
2627 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2629 PR tree-optimization/56918
2630 PR tree-optimization/56920
2631 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
2632 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
2633 argument to rshift method.
2635 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2637 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as
2640 2013-04-11 Marek Polacek <polacek@redhat.com>
2642 PR tree-optimization/48184
2643 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum
2646 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2648 Backported from mainline.
2649 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2651 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
2652 floating-point vector comparisons against 0.
2654 2013-04-11 Jakub Jelinek <jakub@redhat.com>
2656 PR tree-optimization/56899
2657 * fold-const.c (extract_muldiv_1): Apply distributive law
2658 only if TYPE_OVERFLOW_WRAPS (ctype).
2660 2013-04-10 David S. Miller <davem@davemloft.net>
2662 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
2663 or -mcpu=hypersparc.
2665 2013-04-10 Jakub Jelinek <jakub@redhat.com>
2667 Backported from mainline
2668 2013-04-09 Jakub Jelinek <jakub@redhat.com>
2671 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
2672 expand_omp_for_static_chunk): Use simple_p = true in
2673 force_gimple_operand_gsi calls when assigning to addressable decls.
2675 2013-04-09 Marek Polacek <polacek@redhat.com>
2677 PR tree-optimization/48762
2678 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum
2681 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2683 * config/s390/s390.c (s390_expand_insv): Only accept insertions
2686 2013-04-08 Marek Polacek <polacek@redhat.com>
2688 PR rtl-optimization/48182
2689 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
2692 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2695 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
2696 nuses, make sure we have a label.
2698 2013-04-04 Ian Lance Taylor <iant@google.com>
2700 Backport from mainline:
2701 * doc/standards.texi (Standards): The Go frontend supports the Go
2702 1 language standard.
2704 2013-04-04 Marek Polacek <polacek@redhat.com>
2706 Backport from mainline:
2707 2013-04-04 Marek Polacek <polacek@redhat.com>
2709 PR tree-optimization/48186
2710 * predict.c (maybe_hot_frequency_p): Return false if
2711 HOT_BB_FREQUENCY_FRACTION is 0.
2712 (cgraph_maybe_hot_edge_p): Likewise.
2714 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2716 Backport from mainline:
2717 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2720 * config/arm/iterators.md (v_cmp_result): New mode attribute.
2721 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
2723 2013-04-04 Richard Biener <rguenther@suse.de>
2725 PR tree-optimization/56837
2726 * tree-loop-distribution.c (classify_partition): For non-zero
2727 values require that the value has the same precision as its
2728 mode to be useful as memset value.
2730 2013-04-03 Roland McGrath <mcgrathr@google.com>
2732 Backport from mainline:
2733 2013-03-26 Roland McGrath <mcgrathr@google.com>
2735 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
2736 than fprintf with a non-constant, non-format string.
2738 2013-04-03 Marek Polacek <polacek@redhat.com>
2740 Backport from mainline:
2741 2013-04-03 Marek Polacek <polacek@redhat.com>
2744 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN
2747 2013-04-03 Richard Biener <rguenther@suse.de>
2749 PR tree-optimization/56817
2750 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2752 (tree_unroll_loops_completely_1): ... new function to manually
2753 walk the loop tree, properly defering outer loops of unrolled
2754 loops to later iterations.
2756 2013-04-02 Jakub Jelinek <jakub@redhat.com>
2758 PR rtl-optimization/56745
2759 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
2760 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
2762 2013-04-02 Wei Mi <wmi@google.com>
2764 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
2765 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
2766 *<rotate_insn><mode>3_mask in i386.md.
2768 2013-04-01 Wei Mi <wmi@google.com>
2770 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
2771 Truncate operand 2 using %b asm operand modifier.
2772 (*<shift_insn><mode>3_mask): Ditto.
2773 (*<rotate_insn><mode>3_mask): Ditto.
2775 2013-04-01 Uros Bizjak <ubizjak@gmail.com>
2777 * config/i386/i386.md (*movsf_internal): Change type of
2778 alternatives 3,4 to imov.
2780 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
2783 * doc/invoke.texi ([-fwhole-program]): Fix typo.
2785 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
2787 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
2788 Fix declaration name.
2790 2013-03-28 Gerald Pfeifer <gerald@pfeifer.com>
2792 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
2793 * doc/extend.texi (Named Address Spaces): Ditto.
2794 (Variable Attributes): Ditto.
2796 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
2798 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
2799 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
2802 2013-03-27 Walter Lee <walt@tilera.com>
2804 Backport from mainline:
2805 2013-03-27 Walter Lee <walt@tilera.com>
2807 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
2808 double-decrement of next_scratch_regno.
2810 2013-03-27 Walter Lee <walt@tilera.com>
2812 Backport from mainline:
2813 2013-03-27 Walter Lee <walt@tilera.com>
2815 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
2817 (insn_v1mulus): Ditto.
2818 (insn_v2muls): Ditto.
2820 2013-03-27 Walter Lee <walt@tilera.com>
2822 Backport from mainline:
2823 2013-03-27 Walter Lee <walt@tilera.com>
2825 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
2827 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
2829 2013-03-27 Walter Lee <walt@tilera.com>
2831 Backport from mainline:
2832 2013-03-27 Walter Lee <walt@tilera.com>
2834 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
2835 (*sibcall_value): Ditto.
2837 2013-03-27 Walter Lee <walt@tilera.com>
2839 Backport from mainline:
2840 2013-03-27 Walter Lee <walt@tilera.com>
2842 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
2843 (insn_mnz_v8qi): ... this ...
2844 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
2846 (insn_v<n>mnz): Replaced by ...
2847 (insn_v1mnz): ... this ...
2848 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
2850 (insn_mz_<mode>): Replaced by ...
2851 (insn_mz_v8qi): ... this ...
2852 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
2854 (insn_v<n>mz): Replaced by ...
2855 (insn_v1mz): ... this ...
2856 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
2859 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
2861 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
2863 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
2865 * config/rtems.opt: Add -pthread option.
2867 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
2869 * config/aarch64/aarch64.c (aarch64_classify_address): Support
2870 PC-relative load in SI modes and above only.
2872 2013-03-26 Walter Lee <walt@tilera.com>
2874 Backport from mainline:
2875 2013-03-26 Walter Lee <walt@tilera.com>
2877 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
2878 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
2880 2013-03-26 Walter Lee <walt@tilera.com>
2882 Backport from mainline:
2883 2013-03-25 Walter Lee <walt@tilera.com>
2885 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
2886 TILEGX_INSN_SHUFFLEBYTES1.
2887 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
2889 (tilegx_builtins): Ditto.
2890 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
2892 2013-03-26 Walter Lee <walt@tilera.com>
2894 Backport from mainline:
2895 2013-03-25 Walter Lee <walt@tilera.com>
2897 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
2898 tests for constraint J, K, N, P.
2900 2013-03-26 Walter Lee <walt@tilera.com>
2902 Backport from mainline:
2903 2013-03-25 Walter Lee <walt@tilera.com>
2905 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
2906 Use indirect/pcrel encoding.
2907 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
2910 2013-03-25 Richard Biener <rguenther@suse.de>
2913 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
2914 must-not-throw stmt location.
2916 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2918 * BASE-VER: Set to 4.8.1.
2919 * DEV-PHASE: Set to prerelease.
2921 2013-03-22 Release Manager
2923 * GCC 4.8.0 released.
2925 2013-03-21 Walter Lee <walt@tilera.com>
2927 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
2929 2013-03-21 Mark Wielaard <mjw@redhat.com>
2931 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
2933 2013-03-20 Richard Biener <rguenther@suse.de>
2935 PR tree-optimization/56661
2936 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
2937 the result does not have to be distinct.
2939 2013-03-20 Jakub Jelinek <jakub@redhat.com>
2941 PR tree-optimization/56635
2942 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Give up
2943 if lhs of then_assign and else_assign don't have compatible types.
2945 2013-03-17 Jakub Jelinek <jakub@redhat.com>
2948 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
2949 class names. Remove trailing comma after "ALL_REGS".
2951 2013-03-16 Jakub Jelinek <jakub@redhat.com>
2953 * DEV-PHASE: Set to prerelease.
2955 2013-03-14 Andi Kleen <ak@linux.intel.com>
2958 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
2959 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
2960 Document _x* TSX intrinsics.
2962 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
2963 David Holsgrove <david.holsgrove@xilinx.com>
2965 * configure.ac: Add MicroBlaze TLS support detection.
2966 * configure: Regenerate.
2967 * config/microblaze/microblaze-protos.h
2968 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
2969 symbol_mentioned_p, label_mentioned_p): Add prototypes.
2970 * config/microblaze/microblaze.c (microblaze_address_type): Add
2971 ADDRESS_TLS and tls_reloc address types.
2972 (microblaze_address_info): Add tls_reloc.
2973 (TARGET_HAVE_TLS): Define.
2974 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
2975 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
2976 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
2977 load_tls_operand, microblaze_call_tls_get_addr,
2978 microblaze_legitimize_tls_address): New functions.
2979 (microblaze_classify_unspec): Handle UNSPEC_TLS.
2980 (get_base_reg): Use microblaze_tls_symbol_p.
2981 (microblaze_classify_address): Handle TLS.
2982 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
2983 label_mentioned_p and microblaze_tls_referenced_p.
2984 (microblaze_legitimize_address): Handle TLS.
2985 (microblaze_address_insns): Handle ADDRESS_TLS.
2986 (pic_address_needs_scratch): Handle TLS.
2987 (print_operand_address): Handle TLS.
2988 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
2989 (microblaze_expand_move): Handle TLS.
2990 (microblaze_legitimate_constant_p): Check
2991 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
2992 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2993 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
2994 (PIC_OFFSET_TABLE_REGNUM): Set.
2995 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
2996 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
2997 (addsi3, movsi_internal2, movdf_internal): Update constraints
2998 * config/microblaze/predicates.md (arith_plus_operand): Define
2999 (move_operand): Redefine as move_src_operand, check
3000 microblaze_tls_referenced_p.
3002 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3004 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
3005 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
3007 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3009 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
3012 2013-03-14 Jakub Jelinek <jakub@redhat.com>
3014 PR tree-optimization/53265
3015 * common.opt (Waggressive-loop-optimizations): New option.
3016 * tree-ssa-loop-niter.c: Include tree-pass.h.
3017 (do_warn_aggressive_loop_optimizations): New function.
3018 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
3019 if number_of_latch_executions returned constant.
3020 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
3021 early. If number_of_latch_executions returned constant, set
3022 nb_iterations_upper_bound back to it.
3023 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
3025 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
3026 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
3028 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
3029 (MULTILIB_OSDIRNAMES): Set.
3030 * genmultilib: If defaultosdirname doesn't start with :: , set
3031 defaultosdirname2 instead, clear it and emit two . multilib_raw
3032 entries instead of just one.
3034 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
3036 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3037 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
3038 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3039 (SUBTARGET_OVERRIDE_OPTIONS): New.
3041 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
3044 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
3045 (musermode): Convert to Var(TARGET_USERMODE).
3046 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
3047 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
3048 * config/sh/sh.c (sh_option_override): Use
3049 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
3050 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
3052 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
3054 (udivsi3_i4_single, divsi3_i4_single): Use
3055 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
3057 2013-03-13 Dave Korn <dave.korn.cygwin@....>
3059 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
3062 2013-03-13 Richard Biener <rguenther@suse.de>
3064 PR tree-optimization/56608
3065 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
3066 calls when vectorizing basic-blocks.
3068 2013-03-13 Jakub Jelinek <jakub@redhat.com>
3071 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
3074 2013-03-12 Jakub Jelinek <jakub@redhat.com>
3076 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
3078 2013-03-11 Jan Hubicka <jh@suse.cz>
3081 * lto-streamer-out.c (output_symbol_p): Skip references from
3082 constructors of external variables.
3084 2013-03-11 Jan Hubicka <jh@suse.cz>
3087 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3089 * emit-rtl.c (verify_rtx_sharing): Likewise.
3090 (copy_insn_1): Likewise.
3091 * rtl.c (copy_rtx): Likewise.
3093 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
3096 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3097 output_operand_lossage message.
3099 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
3102 * arm.c (shift_op): Validate RTL pattern on the fly.
3103 (arm_print_operand, case 'S'): Don't use shift_operator to validate
3106 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3109 * config/pa/pa.md (call_value): Check for calls to powf and direct to
3110 new call patterns that clobber %fr12.
3111 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3112 split and postreload patterns.
3113 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3114 registers %fr12 and %fr12R as call used.
3116 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
3118 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3119 (canon_address, record_store, replace_read, check_mem_read_rtx,
3120 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
3121 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
3122 rest_of_handle_dse): Likewise.
3124 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3127 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
3129 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
3130 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
3131 (save_optabs_if_changed): Replace with...
3132 (init_tree_optimization_optabs): ...this.
3133 * optabs.c (save_optabs_if_changed): Rename to...
3134 (init_tree_optimization_optabs): ...this. Take the optimization node
3135 as argument. Do nothing if the base optabs are already correct.
3136 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
3137 to recompute optabs.
3138 * function.h (function): Remove optabs field.
3139 * function.c (invoke_set_current_function_hook): Call
3140 init_tree_optimization_optabs. Use the result to initialize
3143 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
3145 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
3146 if GTMA_HAS_NO_INSTRUMENTATION.
3147 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
3148 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
3149 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
3150 * gimple-pretty-print.c (dump_gimple_transaction): Handle
3151 GTMA_HAS_NO_INSTRUMENTATION.
3153 2013-03-08 Jakub Jelinek <jakub@redhat.com>
3155 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
3158 2013-03-08 Marek Polacek <polacek@redhat.com>
3159 Jakub Jelinek <jakub@redhat.com>
3161 PR tree-optimization/56478
3162 * predict.c (is_comparison_with_loop_invariant_p): Change the
3163 type of loop_step to tree.
3164 (predict_loops): Adjust.
3165 (predict_iv_comparison): Perform the computations on double_ints.
3167 2013-03-08 Richard Biener <rguenther@suse.de>
3169 PR tree-optimization/56570
3170 * tree-cfg.c (verify_expr_location_1): Verify locations for
3172 * tree-sra.c (create_access_replacement): Strip locations
3173 from DECL_DEBUG_EXPRs.
3175 2013-03-08 Richard Biener <rguenther@suse.de>
3177 * tree-inline.c (expand_call_inline): Do not associate
3178 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
3179 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
3181 2013-03-08 Richard Biener <rguenther@suse.de>
3183 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
3184 or block changes with -Og. Fix for location / block encoding
3185 changes and PHI arguments with locations.
3187 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
3189 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
3191 (struct output_info): Likewise.
3192 (register_overhead): Remove bad gcc_assert.
3193 (bitmap_find_bit): If there is only a single bitmap element, do not
3194 count a miss as a search.
3195 (print_statistics): Update for counter type changes.
3196 (dump_bitmap_statistics): Likewise. Print headers such that they
3197 are properly lined up with the printed counters.
3199 2013-03-07 Jakub Jelinek <jakub@redhat.com>
3201 PR tree-optimization/56559
3202 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
3203 check that it has only a single use.
3205 2013-03-07 Richard Biener <rguenther@suse.de>
3207 * doc/invoke.texi (fwhole-program): Discourage use in combination
3210 2013-03-06 Jakub Jelinek <jakub@redhat.com>
3212 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
3214 PR tree-optimization/56539
3215 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
3216 instead of GSI_CONTINUE_LINKING as last argument to
3217 force_gimple_operand_gsi. Adjust function comment.
3219 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
3223 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
3224 promoted mode, convert the result back to the original mode.
3226 2013-03-06 Richard Biener <rguenther@suse.de>
3229 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
3230 (insert_updated_phi_nodes_compare_uids): New function.
3231 (update_ssa): Sort symbols_to_rename after UID before
3232 traversing it to insert PHI nodes.
3234 2013-03-06 Richard Biener <rguenther@suse.de>
3237 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3238 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
3241 2013-02-13 Richard Biener <rguenther@suse.de>
3244 * varasm.c (output_constant_def_1): Get the decl representing
3245 the constant as argument.
3246 (output_constant_def): Wrap output_constant_def_1.
3247 (make_decl_rtl): Use output_constant_def_1 with the decl
3248 representing the constant.
3249 (build_constant_desc): Optionally re-use a decl already
3250 representing the constant.
3251 (tree_output_constant_def): Adjust.
3253 2013-03-06 Joey Ye <joey.ye@arm.com>
3256 * gcc.c (convert_white_space): New function.
3257 (main): Handles white space in function name.
3259 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
3262 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
3263 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
3264 to SH_DIV_CALL_TABLE for TARGET_SH2.
3265 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
3267 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
3270 2013-03-05 Sterling Augustine <saugustine@google.com>
3271 Cary Coutant <ccoutant@google.com>
3274 * dwarf2out.c (resolve_addr): Don't call
3275 remove_loc_list_addr_table_entries a second time for the same
3278 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3281 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
3282 (avoid_complex_debug_insns): New function.
3283 (expand_debug_locations): Call it.
3285 PR rtl-optimization/56484
3286 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
3287 lifetimes of hard registers on small register class machines.
3289 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3291 * config/microblaze/microblaze-protos.h: Rename
3292 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
3293 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
3295 (microblaze_fast_interrupt_function_p): New function.
3296 (microblaze_is_interrupt_handler): Rename to
3297 microblaze_is_interrupt_variant and add fast_interrupt check.
3298 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
3299 (save_restore_insns): Likewise.
3300 (compute_frame_size): Likewise.
3301 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
3302 (microblaze_globalize_label): Likewise.
3303 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
3304 * config/microblaze/microblaze.md: Use wrapper
3305 microblaze_is_interrupt_variant.
3307 2013-03-05 Kai Tietz <ktietz@redhat.com>
3309 * sdbout.c (sdbout_one_type): Switch to current function's section
3310 supporting cold/hot.
3312 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3314 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
3317 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3320 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
3321 if VALGRIND_GET_VBITS is defined, temporarily make object
3322 memory all defined, and restore previous valgrind addressability
3323 and definability afterwards. Free this_object at the end.
3326 * lra.c (lra): Call lra_clear_live_ranges if live_p,
3327 right before calling lra_create_live_ranges, also call it
3328 when clearing live_p. Only call lra_clear_live_ranges
3329 at the end if live_p.
3332 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
3334 2013-03-05 Richard Biener <rguenther@suse.de>
3336 PR tree-optimization/56521
3337 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
3340 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
3343 * except.h (remove_unreachable_eh_regions): New prototype.
3344 * except.c (remove_eh_handler_splicer): New function, split out
3345 of remove_eh_handler.
3346 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
3347 warning about running it on many EH regions one at a time.
3348 (remove_unreachable_eh_regions_worker): New function, walk the
3349 EH tree in depth-first order and remove non-marked regions.
3350 (remove_unreachable_eh_regions): New function.
3351 * tree-eh.c (mark_reachable_handlers): New function, split out
3352 from remove_unreachable_handlers.
3353 (remove_unreachable_handlers): Use mark_reachable_handlers and
3354 remove_unreachable_eh_regions.
3355 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
3356 and remove_unreachable_eh_regions.
3358 2013-03-05 Richard Biener <rguenther@suse.de>
3361 * loop-init.c (fix_loop_structure): Remove loops in two stages,
3362 not freeing them until the end.
3364 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3366 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
3368 2013-03-05 Richard Biener <rguenther@suse.de>
3370 PR tree-optimization/56270
3371 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
3372 of loads after scheduling an SLP instance.
3374 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3376 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
3378 (check_gcc_parallelize): Run guality.exp as a separate job from
3379 vect.exp with unsorted.exp and $(dg_target_exps) separately from
3380 struct-layout-1.exp with stackalign.exp.
3382 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
3385 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
3386 load_index sbitmap even if some bit in it isn't set.
3389 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
3390 (discover_iteration_bound_by_body_walk): Change queues to
3391 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
3392 spelling in comment. Call safe_push on queues[bound_index] directly.
3393 Release queues[queue_index] in every iteration unconditionally.
3394 Release bounds vector.
3397 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
3398 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
3399 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
3402 2013-03-05 Richard Biener <rguenther@suse.de>
3405 * tree-inline.c (remap_blocks_to_null): New function.
3406 (expand_call_inline): When expanding a call stmt without
3407 an associated block inline remap all callee blocks to NULL.
3409 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3411 PR rtl-optimization/56494
3412 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
3413 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
3414 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
3417 * sel-sched-ir.c (free_sched_pools): Release
3418 succs_info_pool.stack[succs_info_pool.max_top] vectors too
3419 if succs_info_pool.max_top isn't -1.
3422 * opts.c (opts_obstack, opts_concat): Moved to...
3423 * opts-common.c (opts_obstack, opts_concat): ... here.
3425 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3428 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
3430 2013-03-04 Martin Jambor <mjambor@suse.cz>
3432 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
3433 all appropriate places.
3435 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
3437 PR tree-optimization/56424
3438 * ipa-split.c (split_function): Do not set the RSO flag if result is
3439 not by reference and its type is a register type.
3441 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
3443 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New.
3444 (microblaze_legitimate_pic_operand): Likewise.
3445 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): Call
3446 new function microblaze_legitimate_pic_operand.
3447 * config/microblaze/microblaze-protos.h
3448 (microblaze_legitimate_pic_operand): Declare.
3450 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3452 * config/microblaze/predicates.md (call_insn_simple_operand):
3453 New predicate for supported rtx code types.
3454 * config/microblaze/microblaze.md (call_internal1): Use
3455 call_insn_simple_operand predicate.
3457 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3460 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
3461 partitions.ordered_remove.
3464 * tree-vect-stmts.c (vectorizable_conversion): Don't call
3465 vec_oprnds0.create (1) for modifier == NONE.
3468 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
3469 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
3470 vec_oprnds1 right before pushing anything to it for
3474 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
3475 set nbbs to 0 instead of having separate code path.
3476 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
3477 instead of false as last argument if returning NULL.
3479 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
3481 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
3482 the attribute is now called "target" instead of "option".
3483 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
3484 * doc/tm.texi.in (Target Attributes): Likewise document the correct
3485 attribute/pragma name for TARGET_OPTION_VALID_P and
3486 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
3487 * doc/tm.texi: Regenerated.
3489 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
3491 * config/microblaze/microblaze.c:
3492 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
3493 * config/microblaze/microblaze.h: Add -mxl-reorder to
3495 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
3496 instructions emitted if TARGET_REORDER.
3497 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
3498 or 0 for -m/-mno case, but initialises as 2 to detect default use case
3501 2013-03-01 Xinliang David Li <davidxl@google.com>
3503 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
3506 2013-03-01 Jakub Jelinek <jakub@redhat.com>
3509 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
3510 vector even when returning true. Fix up function comment formatting.
3513 * ira-build.c (ira_loop_nodes_count): New variable.
3514 (create_loop_tree_nodes): Initialize it.
3515 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
3518 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
3519 method on dr_chain and result_chain.
3520 * tree-vect-stmts.c (vectorizable_store): Only call
3521 result_chain.create if j == 0.
3524 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
3525 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
3526 before overwriting it.
3528 2013-03-01 Tobias Burnus <burnus@net-b.de>
3530 * doc/extended.texi (C Extensions): Change order in @menu
3532 (Other MIPS Built-in Functions): Move last MIPS entry before
3533 "picoChip Built-in Functions".
3534 (SH Built-in Functions): Move after RX Built-in Functions.
3535 * doc/gcc.texi (Introduction): Change order in @menu to match @node.
3536 * doc/md.texi (Constraints): Ditto.
3537 * gty.texi (Type Information): Ditto.
3538 (User-provided marking routines for template types): Make subsection.
3539 * doc/invoke.texi (AArch64 Options): Move before
3540 "Adapteva Epiphany Options".
3542 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3543 Jakub Jelinek <jakub@redhat.com>
3546 * asan.c (gate_asan): Lookup no_sanitize_address instead of
3547 no_address_safety_analysis attribute.
3548 * doc/extend.texi (no_address_safety_attribute): Rename to
3549 no_sanitize_address attribute, mention no_address_safety_analysis
3550 attribute as deprecated alias.
3552 2013-02-28 Jakub Jelinek <jakub@redhat.com>
3555 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
3556 type to vec<vec<tree> > *.
3557 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
3558 to be vec<tree> instead of vec<tree> *, set vec_defs
3559 to vNULL and call vec_defs.create (number_of_vects), adjust other
3561 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
3562 vectorizable_condition): Adjust vect_get_slp_defs callers.
3564 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3566 * config/aarch64/aarch64.c
3567 (aarch64_float_const_representable): Remove unused variable.
3569 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3571 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
3573 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3575 * config/aarch64/aarch64-builtins.c
3576 (aarch64_init_simd_builtins): Make static.
3578 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3580 * config/aarch64/aarch64.c
3581 (aarch64_simd_make_constant): Make static.
3583 2013-02-28 Martin Jambor <mjambor@suse.cz>
3585 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
3586 with no initialization to the RHS of debug statements.
3588 2013-02-28 Martin Jambor <mjambor@suse.cz>
3590 PR tree-optimization/56294
3591 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
3593 (get_access_replacement): Do not call create_access_replacement.
3594 Assert a replacement exists.
3595 (get_repl_default_def_ssa_name): Create the replacement declaration
3598 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3600 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
3603 2013-02-28 Marek Polacek <polacek@redhat.com>
3605 PR rtl-optimization/56466
3606 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
3607 if we're changing a loop.
3608 (peel_loops_completely): Likewise.
3610 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
3613 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
3615 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3618 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
3619 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
3620 INTX_FTYPE_FX, FX_FTYPE_INTX.
3621 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
3623 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3625 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
3626 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
3627 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
3628 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
3629 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
3630 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
3631 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
3632 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
3633 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
3634 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
3635 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
3636 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
3637 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
3638 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
3639 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
3640 (avrxmega6): Increase max flash segments from 5 to 6.
3641 * config/avr/t-multilib: Regenerate.
3642 * config/avr/avr-tables.opt: Regenerate.
3643 * doc/avr-mmcu.texi: Regenerate.
3645 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3647 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
3648 (avr_device_to_arch): Rename to avr_device_to_ld.
3649 (avr_device_to_as): New prototype.
3650 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
3651 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
3652 * config/avr/driver-avr.c (avr_device_to_as): New.
3653 (avr_device_to_arch): Rename to avr_device_to_ld.
3655 2013-02-27 Jakub Jelinek <jakub@redhat.com>
3658 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
3659 method on dr_chain and result_chain.
3662 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
3663 pointer_set_destroy on not_executed_last_iteration.
3666 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
3669 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
3670 FOR_EACH_DEFINED_FUNCTION when freeing state.
3673 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
3675 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
3679 * ipa-cp.c (decide_whether_version_node): Call vec_free on
3680 known_aggs[i].items and release known_aggs vector.
3683 * ipa-reference.c (propagate): Free node_info even for alias nodes.
3685 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3687 * config/microblaze/microblaze.c (microblaze_emit_compare):
3688 Use xor for EQ/NE comparisions.
3689 * config/microblaze/microblaze.md (cstoresf4): Add constraints
3690 (cbranchsf4): Adjust operator to comparison_operator.
3692 2013-02-27 Jakub Jelinek <jakub@redhat.com>
3695 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
3697 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
3698 vec_safe_push, always update *slot.
3699 (redirect_edge_var_map_clear): Use vec_free.
3700 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
3701 (free_var_map_entry): Use vec_free.
3702 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
3703 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
3705 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
3708 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
3709 when the may_trap_p bit of the exprs being merged differs.
3710 Reorder tests for speculativeness in the logical and operator.
3712 2013-02-27 Jakub Jelinek <jakub@redhat.com>
3714 * incpath.c (add_standard_paths): Use reconcat instead of concat
3715 where appropriate and avoid leaking memory.
3717 * opts.h: Include obstack.h.
3718 (opts_concat): New prototype.
3719 (opts_obstack): New declaration.
3720 * opts.c (opts_concat): New function.
3721 (opts_obstack): New variable.
3722 (init_options_struct): Call gcc_init_obstack on opts_obstack.
3723 (finish_options): Use opts_concat instead of concat
3724 and XOBNEWVEC instead of XNEWVEC.
3725 * opts-common.c (generate_canonical_option, decode_cmdline_option,
3726 generate_option): Likewise.
3727 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
3728 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
3731 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
3732 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
3734 2013-02-26 Jakub Jelinek <jakub@redhat.com>
3737 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
3739 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
3741 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
3742 (arm_block_move_unaligned_straight): Likewise.
3743 (arm_adjust_block_mem): Likewise.
3745 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
3748 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
3749 temp, cond and label.
3750 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
3753 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
3754 * config/c6x/c6x.h (dbx_register_map): Update declaration.
3757 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
3758 of prologue/epilogue functions.
3761 * config/tilegx/tilegx.c (tilegx_expand_prologue):
3762 Remove unused variable cfa_offset.
3763 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
3766 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
3767 type promotion to unsigned.
3770 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
3771 for HOST_WIDE_INT of 32 bit / same size as int.
3772 (arm_block_move_unaligned_straight): Likewise.
3773 (arm_adjust_block_mem): Likewise.
3776 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
3779 2013-02-26 Marek Polacek <polacek@redhat.com>
3781 PR tree-optimization/56426
3782 * tree-ssa-loop.c (tree_ssa_loop_init): Always call
3785 2013-02-26 Richard Biener <rguenther@suse.de>
3788 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
3789 unused variable loops.
3791 2013-02-26 Jakub Jelinek <jakub@redhat.com>
3793 PR tree-optimization/56448
3794 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
3795 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
3796 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
3797 later operands of the references, or even first operand for
3798 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
3800 PR tree-optimization/56443
3801 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
3802 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
3803 to type_for_mode langhook.
3805 2013-02-25 Matt Turner <mattst88@gmail.com>
3807 * doc/invoke.texi: Document r4700.
3809 2013-02-25 Richard Biener <rguenther@suse.de>
3811 PR tree-optimization/56175
3812 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
3814 (simplify_bitwise_binary): ... here. Also guard the conversion
3815 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
3817 2013-02-25 Catherine Moore <clm@codesourcery.com>
3820 2013-02-24 Catherine Moore <clm@codesourcery.com>
3821 Maciej W. Rozycki <macro@codesourcery.com>
3822 Tom de Vries <tom@codesourcery.com>
3823 Nathan Sidwell <nathan@codesourcery.com>
3824 Iain Sandoe <iain@codesourcery.com>
3825 Nathan Froyd <froydnj@codesourcery.com>
3826 Chao-ying Fu <fu@mips.com>
3828 * doc/extend.texi (micromips, nomicromips, nocompression):
3829 Document new function attributes.
3830 * doc/invoke.texi (minterlink-compressed, mmicromips,
3831 m14k, m14ke, m14kec): Document new options.
3832 (minterlink-mips16): Update documentation.
3833 * doc/md.texi (ZC, ZD): Document new constraints.
3834 * configure.ac (gcc_cv_as_micromips): Check if linker
3835 supports the .set micromips directive.
3836 * configure: Regenerate.
3837 * config.in: Regenerate.
3838 * config/mips/mips-tables.opt: Regenerate.
3839 * config/mips/micromips.md: New file.
3840 * constraints.md (ZC, AD): New constraints.
3841 * config/mips/predicates.md (movep_src_register): New predicate.
3842 (movep_src_operand): New predicate.
3843 (non_volatile_mem_operand): New predicate.
3844 * config/mips/mips.md (multimem): New type.
3845 (length): Differentiate between 17-bit and 18-bit branch offsets.
3846 (MOVEP1, MOVEP2): New mode iterator.
3847 (mov_<load>l): Use ZC constraint.
3848 (mov_<load>r): Likewise.
3849 (mov_<store>l): Likewise.
3850 (mov_<store>r): Likewise.
3851 (*branch_equality<mode>_inverted): Add microMIPS support.
3852 (*branch_equality<mode>): Likewise.
3853 (*jump_absolute): Likewise.
3854 (indirect_jump_<mode>): Likewise.
3855 (tablejump_<mode>): Likewise.
3856 (<optab>_internal): Likewise.
3857 (sibcall_internal): Likewise.
3858 (sibcall_value_internal): Likewise.
3859 (prefetch): Use constraint ZD.
3860 * config/mips/mips.opt (minterlink-compressed): New option.
3861 (minterlink-mips16): Now an alias for minterlink-compressed.
3862 (mmicromips): New option.
3863 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3864 (compare_and_swap_12): Likewise.
3865 (sync_add<mode>): Likewise.
3866 (sync_<optab>_12): Likewise.
3867 (sync_old_<optab>_12): Likewise.
3868 (sync_new_<optab>_12): Likewise.
3869 (sync_nand_12): Likewise.
3870 (sync_old_nand_12): Likewise.
3871 (sync_new_nand_12): Likewise.
3872 (sync_sub<mode>): Likewise.
3873 (sync_old_add<mode>): Likewise.
3874 (sync_old_sub<mode>): Likewise.
3875 (sync_new_add<mode>): Likewise.
3876 (sync_new_sub<mode>): Likewise.
3877 (sync_<optab><mode>): Likewise.
3878 (sync_old_<optab><mode>): Likewise.
3879 (sync_new_<optab><mode>): Likewise.
3880 (sync_nand<mode>): Likewise.
3881 (sync_old_nand<mode>): Likewise.
3882 (sync_new_nand<mode>): Likewise.
3883 (sync_lock_test_and_set<mode>): Likewise.
3884 (test_and_set_12): Likewise.
3885 (atomic_compare_and_swap<mode>): Likewise.
3886 (atomic_exchange<mode>_llsc): Likewise.
3887 (atomic_fetch_add<mode>_llsc): Likewise.
3888 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3889 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3890 (umips_save_restore_pattern_p): Likewise.
3891 (umips_load_store_pair_p): Likewise.
3892 (umips_output_load_store_pair): Likewise.
3893 (umips_movep_target_p): Likewise.
3894 (umips_12bit_offset_address_p): Likewise.
3895 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3896 (mips_base_mips16): Rename this...
3897 (mips_base_compression_flags): ...to this. Update all uses.
3898 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3899 (mips_mips16_decl_p): Delete.
3900 (mips_nomips16_decl_p): Delete.
3901 (mips_get_compress_on_flags): New function.
3902 (mips_get_compress_off_flags): New function.
3903 (mips_get_compress_mode): New function.
3904 (mips_get_compress_on_name): New function.
3905 (mips_get_compress_off_name): New function.
3906 (mips_insert_attributes): Support multiple compression types.
3907 (mips_merge_decl_attributes): Likewise.
3908 (umips_12bit_offset_address_p): New function.
3909 (mips_start_function_definition): Emit .set micromips directive.
3910 (mips_call_may_need_jalx_p): New function.
3911 (mips_function_ok_for_sibcall): Add microMIPS support.
3912 (mips_print_operand_punctuation): Support short delay slots and
3914 (umips_swm_mask, umips_swm_encoding): New.
3915 (umips_build_save_restore): New function.
3916 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3917 (was_mips16_p): Remove.
3918 (old_compression_mode): New.
3919 (mips_set_compression_mode): New function.
3920 (mips_set_current_function): Add microMIPS support.
3921 (mips_option_override): Likewise.
3922 (umips_save_restore_pattern_p): New function.
3923 (umips_output_save_restore): New function.
3924 (umips_load_store_pair_p_1): New function.
3925 (umips_load_store_pair_p): New function.
3926 (umips_output_load_store_pair_1): New function.
3927 (umips_output_load_store_pair): New function.
3928 (umips_movep_target_p) New function.
3929 (mips_prepare_pch_save): Add microMIPS support.
3930 * config/mips/mips.h (TARGET_COMPRESSION): New.
3931 (TARGET_CPU_CPP_BUILTINS): Update macro
3932 to use new compression flags and to support microMIPS.
3933 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3934 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3935 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3936 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3937 (ASM_SPEC): Support mmicromips and mno-micromips.
3938 (M16STORE_REG_P): New macro.
3939 (MIPS_CALL): Support TARGET_MICROMIPS.
3940 (MICROMIPS_J): New macro.
3941 (mips_base_mips16): Rename this...
3942 (mips_base_compression_flags): ...to this.
3943 (UMIPS_12BIT_OFFSET_P): New macro.
3944 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3945 (MULTILIB_DIRNAMES): Likewise.
3947 2013-02-25 Tom de Vries <tom@codesourcery.com>
3949 PR rtl-optimization/56131
3950 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
3951 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
3952 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
3954 2013-02-25 Tobias Burnus <burnus@net-b.de>
3956 * doc/invoke.texi (-fsanitize=): Move from optimization
3957 to debugging options.
3959 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
3961 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
3963 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
3964 Alexander Monakov <amonakov@ispras.ru>
3967 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
3968 flush pending lists also on non-jumps. Adjust comment.
3970 2013-02-24 Catherine Moore <clm@codesourcery.com>
3971 Maciej W. Rozycki <macro@codesourcery.com>
3972 Tom de Vries <tom@codesourcery.com>
3973 Nathan Sidwell <nathan@codesourcery.com>
3974 Iain Sandoe <iain@codesourcery.com>
3975 Nathan Froyd <froydnj@codesourcery.com>
3976 Chao-ying Fu <fu@mips.com>
3978 * doc/extend.texi (micromips, nomicromips, nocompression):
3979 Document new function attributes.
3980 * doc/invoke.texi (minterlink-compressed, mmicromips,
3981 m14k, m14ke, m14kec): Document new options.
3982 (minterlink-mips16): Update documentation.
3983 * doc/md.texi (ZC, ZD): Document new constraints.
3984 * configure.ac (gcc_cv_as_micromips): Check if linker
3985 supports the .set micromips directive.
3986 * configure: Regenerate.
3987 * config.in: Regenerate.
3988 * config/mips/mips-tables.opt: Regenerate.
3989 * config/mips/micromips.md: New file.
3990 * constraints.md (ZC, AD): New constraints.
3991 * config/mips/predicates.md (movep_src_register): New predicate.
3992 (movep_src_operand): New predicate.
3993 (non_volatile_mem_operand): New predicate.
3994 * config/mips/mips.md (multimem): New type.
3995 (length): Differentiate between 17-bit and 18-bit branch offsets.
3996 (MOVEP1, MOVEP2): New mode iterator.
3997 (mov_<load>l): Use ZC constraint.
3998 (mov_<load>r): Likewise.
3999 (mov_<store>l): Likewise.
4000 (mov_<store>r): Likewise.
4001 (*branch_equality<mode>_inverted): Add microMIPS support.
4002 (*branch_equality<mode>): Likewise.
4003 (*jump_absolute): Likewise.
4004 (indirect_jump_<mode>): Likewise.
4005 (tablejump_<mode>): Likewise.
4006 (<optab>_internal): Likewise.
4007 (sibcall_internal): Likewise.
4008 (sibcall_value_internal): Likewise.
4009 (prefetch): Use constraint ZD.
4010 * config/mips/mips.opt (minterlink-compressed): New option.
4011 (minterlink-mips16): Now an alias for minterlink-compressed.
4012 (mmicromips): New option.
4013 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4014 (compare_and_swap_12): Likewise.
4015 (sync_add<mode>): Likewise.
4016 (sync_<optab>_12): Likewise.
4017 (sync_old_<optab>_12): Likewise.
4018 (sync_new_<optab>_12): Likewise.
4019 (sync_nand_12): Likewise.
4020 (sync_old_nand_12): Likewise.
4021 (sync_new_nand_12): Likewise.
4022 (sync_sub<mode>): Likewise.
4023 (sync_old_add<mode>): Likewise.
4024 (sync_old_sub<mode>): Likewise.
4025 (sync_new_add<mode>): Likewise.
4026 (sync_new_sub<mode>): Likewise.
4027 (sync_<optab><mode>): Likewise.
4028 (sync_old_<optab><mode>): Likewise.
4029 (sync_new_<optab><mode>): Likewise.
4030 (sync_nand<mode>): Likewise.
4031 (sync_old_nand<mode>): Likewise.
4032 (sync_new_nand<mode>): Likewise.
4033 (sync_lock_test_and_set<mode>): Likewise.
4034 (test_and_set_12): Likewise.
4035 (atomic_compare_and_swap<mode>): Likewise.
4036 (atomic_exchange<mode>_llsc): Likewise.
4037 (atomic_fetch_add<mode>_llsc): Likewise.
4038 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4039 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4040 (umips_save_restore_pattern_p): Likewise.
4041 (umips_load_store_pair_p): Likewise.
4042 (umips_output_load_store_pair): Likewise.
4043 (umips_movep_target_p): Likewise.
4044 (umips_12bit_offset_address_p): Likewise.
4045 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4046 (mips_base_mips16): Rename this...
4047 (mips_base_compression_flags): ...to this. Update all uses.
4048 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4049 (mips_mips16_decl_p): Delete.
4050 (mips_nomips16_decl_p): Delete.
4051 (mips_get_compress_on_flags): New function.
4052 (mips_get_compress_off_flags): New function.
4053 (mips_get_compress_mode): New function.
4054 (mips_get_compress_on_name): New function.
4055 (mips_get_compress_off_name): New function.
4056 (mips_insert_attributes): Support multiple compression types.
4057 (mips_merge_decl_attributes): Likewise.
4058 (umips_12bit_offset_address_p): New function.
4059 (mips_start_function_definition): Emit .set micromips directive.
4060 (mips_call_may_need_jalx_p): New function.
4061 (mips_function_ok_for_sibcall): Add microMIPS support.
4062 (mips_print_operand_punctuation): Support short delay slots and
4064 (umips_swm_mask, umips_swm_encoding): New.
4065 (umips_build_save_restore): New function.
4066 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4067 (was_mips16_p): Remove.
4068 (old_compression_mode): New.
4069 (mips_set_compression_mode): New function.
4070 (mips_set_current_function): Add microMIPS support.
4071 (mips_option_override): Likewise.
4072 (umips_save_restore_pattern_p): New function.
4073 (umips_output_save_restore): New function.
4074 (umips_load_store_pair_p_1): New function.
4075 (umips_load_store_pair_p): New function.
4076 (umips_output_load_store_pair_1): New function.
4077 (umips_output_load_store_pair): New function.
4078 (umips_movep_target_p) New function.
4079 (mips_prepare_pch_save): Add microMIPS support.
4080 * config/mips/mips.h (TARGET_COMPRESSION): New.
4081 (TARGET_CPU_CPP_BUILTINS): Update macro
4082 to use new compression flags and to support microMIPS.
4083 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4084 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4085 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4086 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4087 (ASM_SPEC): Support mmicromips and mno-micromips.
4088 (M16STORE_REG_P): New macro.
4089 (MIPS_CALL): Support TARGET_MICROMIPS.
4090 (MICROMIPS_J): New macro.
4091 (mips_base_mips16): Rename this...
4092 (mips_base_compression_flags): ...to this.
4093 (UMIPS_12BIT_OFFSET_P): New macro.
4094 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4095 (MULTILIB_DIRNAMES): Likewise.
4097 2013-02-24 Jakub Jelinek <jakub@redhat.com>
4100 * target-globals.c (save_target_globals): For init_reg_sets and
4101 target_reinit remporarily set this_fn_optabs to this_target_optabs.
4103 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
4105 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4106 * config/aarch64/t-aarch64
4107 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4109 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
4112 * lra-constraints.c (process_alt_operands): Reload operand
4113 conflicting with earlier clobber only if no more other conflicting
4116 2013-02-22 Jakub Jelinek <jakub@redhat.com>
4119 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
4120 if not linking a shared library.
4122 2013-02-22 Seth LaForge <sethml@google.com>
4124 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
4126 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
4128 * config/arm/arm.md (split for extendsidi): Update condition.
4129 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
4130 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
4131 (qhs_zextenddi_cstr): Likewise.
4133 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4136 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
4137 avoid signed wrapping.
4138 (expand_mult): Handle properly multiplication by
4139 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
4140 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
4141 in the compiler if coeff is HOST_WIDE_INT_MIN.
4142 (expand_divmod): Don't make ext_op1 static, change it's type to uhwi.
4143 Avoid undefined behavior in -INTVAL (op1).
4145 PR rtl-optimization/50339
4146 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
4148 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
4149 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
4150 into splitting_ashiftrt field.
4151 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
4153 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
4156 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
4159 * trans-mem.c (execute_tm_mark): Do not expand transactions that
4160 are sure to go irrevocable.
4162 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
4164 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
4165 scalars are valid operands.
4167 2013-02-21 Martin Jambor <mjambor@suse.cz>
4169 PR tree-optimization/56310
4170 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
4171 only matching indices and non-negative final offsets.
4172 (intersect_aggregates_with_edge): Pass src_idx to
4173 agg_replacements_to_vector. Pass src_idx insstead of index to
4174 intersect_with_agg_replacements.
4176 2013-02-21 Martin Jambor <mjambor@suse.cz>
4178 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
4179 instead of hard-wired defaults.
4181 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
4183 * doc/invoke.texi (MIPS Options): Update documentation of the
4184 floating-point multiply-accumulate instruction restrictions.
4186 2013-02-21 Kostya Serebryany <kcc@google.com>
4188 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
4189 asan_shadow_offset on x86_64 linux.
4191 2013-02-21 Richard Biener <rguenther@suse.de>
4193 PR tree-optimization/56415
4195 2013-02-11 Richard Biener <rguenther@suse.de>
4197 PR tree-optimization/56273
4198 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4201 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4204 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
4208 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
4209 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
4211 2013-02-20 Jan Hubicka <jh@suse.cz>
4213 PR tree-optimization/56265
4214 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when
4215 target is referenced for first time.
4217 2013-02-20 Richard Biener <rguenther@suse.de>
4219 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
4220 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
4221 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4222 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
4223 not return anything.
4224 (rename_ssa_copies): Do not remove unused locals.
4225 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
4226 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
4227 * passes.c (execute_function_todo): Do not schedule unused locals
4228 removal if cleanup_tree_cfg did something.
4229 * tree-ssa-live.c (remove_unused_locals): Dump statistics
4230 about the number of removed locals.
4232 2013-02-20 Richard Biener <rguenther@suse.de>
4234 PR tree-optimization/56398
4235 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
4238 2013-02-20 Martin Jambor <mjambor@suse.cz>
4240 PR tree-optimization/55334
4241 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
4242 restricted pointers to arrays.
4244 2013-02-20 Richard Biener <rguenther@suse.de>
4245 Jakub Jelinek <jakub@redhat.com>
4247 PR tree-optimization/56396
4248 * tree-ssa-ccp.c (n_const_val): New static variable.
4249 (get_value): Return NULL for SSA names we don't have a lattice
4251 (ccp_initialize): Initialize n_const_val.
4252 * tree-ssa-copy.c (n_copy_of): New static variable.
4253 (init_copy_prop): Initialize n_copy_of.
4254 (get_value): Return NULL_TREE for SSA names we don't have a
4257 2013-02-20 Martin Jambor <mjambor@suse.cz>
4259 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
4261 2013-02-20 Richard Biener <rguenther@suse.de>
4263 * genpreds.c (write_lookup_constraint): Do not compare first
4264 letter of the constraint again.
4266 2013-02-20 Richard Biener <rguenther@suse.de>
4268 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
4270 (get_use_iv_cost): Terminate hashtable walk when coming across
4273 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
4275 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
4276 reassociation for avx2 targets.
4278 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4280 * config/microblaze/microblaze.c: microblaze_has_clz = 0
4281 Add version check for v8.10.a to enable microblaze_has_clz
4282 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
4283 version and TARGET_PATTERN_COMPARE check
4284 * config/microblaze/microblaze.md: New clzsi2 instruction
4286 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4288 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
4289 function before branching.
4291 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4293 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
4295 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
4297 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4300 * sel-sched.c: Include ira.h.
4301 (implicit_clobber_conflict_p): New function.
4302 (moveup_expr): Use it.
4303 * Makefile.in (sel-sched.o): Depend on ira.h.
4305 2013-02-19 Richard Biener <rguenther@suse.de>
4307 PR tree-optimization/56384
4308 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
4309 (vn_hash_type): Split out from ...
4310 (vn_hash_constant_with_type): ... here.
4311 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
4312 (vn_phi_eq): Compare types from vn_phi_s structure.
4313 (vn_phi_lookup): Populate vn_phi_s type.
4314 (vn_phi_insert): Likewise.
4316 2013-02-19 Jakub Jelinek <jakub@redhat.com>
4318 PR tree-optimization/56350
4319 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
4320 if haven't found reduction or nested cycle operand, rather than
4321 asserting we must find it.
4323 PR tree-optimization/56381
4324 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
4327 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
4328 Jakub Jelinek <jakub@redhat.com>
4331 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
4332 (swap_optab_enable): Same.
4333 (init_all_optabs): Use argument instead of global.
4334 * tree.h (struct tree_optimization_option): New field target_optabs.
4335 * expr.h (init_all_optabs): Add argument to prototype.
4336 (TREE_OPTIMIZATION_OPTABS): New.
4337 (save_optabs_if_changed): Protoize.
4338 * optabs.h: Declare this_fn_optabs.
4339 * optabs.c (save_optabs_if_changed): New.
4340 Declare this_fn_optabs.
4341 (init_optabs): Add argument to init_all_optabs() call.
4342 * function.c (invoke_set_current_function_hook): Handle per
4344 * function.h (struct function): New field optabs.
4345 * config/mips/mips.c (mips_set_mips16_mode): Handle when
4346 optimization_current_node has changed.
4347 * target-globals.h (save_target_globals_default_opts): Protoize.
4348 * target-globals.c (save_target_globals_default_opts): New.
4350 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4353 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
4354 registers %fr12 and %fr12R as call used.
4357 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
4358 and HImode, require all displacements to be an integer multiple of
4360 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
4361 only allow QImode and HImode when reload is in progress and strict is
4362 true. Likewise for symbolic addresses. Use base14_operand to check
4363 displacements in REG+BASE addresses.
4365 2013-02-18 Richard Biener <rguenther@suse.de>
4367 PR tree-optimization/56366
4368 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4369 handle sign-conversion of outer-loop initial induction value.
4371 2013-02-18 Richard Biener <rguenther@suse.de>
4374 * cfghooks.c (merge_blocks): If we merge a latch into another
4375 block adjust references to it.
4376 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
4377 (verify_loop_structure): Verify that a recorded latch is in fact
4380 2013-02-18 Richard Biener <rguenther@suse.de>
4382 PR tree-optimization/56321
4383 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
4384 order SSA name release and virtual operand unlinking.
4386 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4388 * config/microblaze/microblaze.md (save_stack_block): Define.
4389 (restore_stack_block): Likewise.
4391 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4393 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
4394 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
4395 * config/microblaze/microblaze.c (microblaze_option_override):
4396 Bail out early for PIC modes when target does not support PIC.
4398 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4400 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
4401 Replace with a microblaze version.
4402 (microblaze_trampoline_init): Adapt for microblaze.
4403 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
4406 2013-02-16 Jakub Jelinek <jakub@redhat.com>
4407 Dodji Seketeli <dodji@redhat.com>
4410 * asan.c (get_mem_refs_of_builtin_call): White space and style
4412 (instrument_mem_region_access): Do not forget to always put
4413 instrumentation of the of 'base' and 'base + len' in a "if (len !=
4414 0) statement, even for cases where either 'base' or 'base + len'
4415 are not instrumented -- because they have been previously
4416 instrumented. Simplify the logic by putting all the statements
4417 instrument 'base + len' inside a sequence, and then insert that
4418 sequence right before the current insertion point. Then, to
4419 instrument 'base + len', just get an iterator on that statement.
4420 And do not forget to update the pointer to iterator the function
4421 received as argument.
4423 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
4425 PR rtl-optimization/56348
4426 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
4428 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
4430 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
4431 (clean_graph_dump_file): Pass base to start_graph_dump.
4433 2013-02-14 Richard Henderson <rth@redhat.com>
4436 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
4438 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
4440 * collect2-aix.h: Define F_LOADONLY.
4442 2013-02-14 Richard Biener <rguenther@suse.de>
4445 * varasm.c (output_constant_def_1): Get the decl representing
4446 the constant as argument.
4447 (output_constant_def): Wrap output_constant_def_1.
4448 (make_decl_rtl): Use output_constant_def_1 with the decl
4449 representing the constant.
4450 (build_constant_desc): Optionally re-use a decl already
4451 representing the constant.
4452 (tree_output_constant_def): Adjust.
4454 2013-02-14 Dodji Seketeli <dodji@redhat.com>
4457 * asan.c (instrument_builtin_call): Really put the length of the
4458 second source argument into src1_len.
4460 2013-02-13 Jakub Jelinek <jakub@redhat.com>
4462 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
4463 argument. If it is false, don't create edge from then_bb to
4465 (insert_if_then_before_iter): Pass true to it.
4466 (build_check_stmt): Pass false to it.
4467 (transform_statements): Flush hash table only on extended basic
4468 block boundaries, rather than at the beginning of every bb.
4469 Don't flush hash table on nonfreeing_call_p calls.
4470 * tree-flow.h (nonfreeing_call_p): New prototype.
4471 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
4473 2013-02-13 David S. Miller <davem@davemloft.net>
4475 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
4477 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
4480 * ira.c (max_regno_before_ira): Move from ...
4482 (fix_reg_equiv_init): Use max_regno_before_ira instead of
4485 2013-02-13 Jakub Jelinek <jakub@redhat.com>
4487 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
4489 2013-02-13 Richard Biener <rguenther@suse.de>
4492 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
4493 globals in MEM_REFs.
4495 2013-02-13 Richard Biener <rguenther@suse.de>
4497 * loop-init.c (loop_optimizer_init): Clear loop state when
4498 re-initializing preserved loops.
4499 * loop-unswitch.c (unswitch_single_loop): Return whether
4500 we unswitched the loop. Do not verify loop state here.
4501 (unswitch_loops): When we unswitched a loop discover new
4504 2013-02-13 Kostya Serebryany <kcc@google.com>
4506 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
4508 * sanitizer.def: Rename __asan_init to __asan_init_v1.
4510 2013-02-12 Dodji Seketeli <dodji@redhat.com>
4512 Avoid instrumenting duplicated memory access in the same basic block
4513 * Makefile.in (asan.o): Add new dependency on hash-table.h
4514 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
4515 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
4516 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
4517 (free_mem_ref_resources, has_mem_ref_been_instrumented)
4518 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
4519 (get_mem_ref_of_assignment): New functions.
4520 (get_mem_refs_of_builtin_call): Extract from
4521 instrument_builtin_call and tweak a little bit to make it fit with
4523 (instrument_builtin_call): Use the new
4524 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
4525 of is_gimple_builtin_call.
4526 (instrument_derefs, instrument_mem_region_access): Insert the
4527 instrumented memory reference into the hash table.
4528 (maybe_instrument_assignment): Renamed instrument_assignment into
4529 this, and change it to advance the iterator when instrumentation
4530 actually happened and return true in that case. This makes it
4531 homogeneous with maybe_instrument_assignment, and thus give a
4532 chance to callers to be more 'regular'.
4533 (transform_statements): Clear the memory reference hash table
4534 whenever we enter a new BB, when we cross a function call, or when
4535 we are done transforming statements. Use
4536 maybe_instrument_assignment instead of instrumentation. No more
4537 need to special case maybe_instrument_assignment and advance the
4538 iterator after calling it; it's now handled just like
4539 maybe_instrument_call. Update comment.
4541 2013-02-13 Richard Biener <rguenther@suse.de>
4543 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4544 Fix loop discovery code.
4546 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
4549 * lra-constraints.c (process_alt_operands): Match early clobber
4550 operand with itself. Check conflicts with earlyclobber only if
4551 the operand is not reloaded. Prefer to reload conflicting operand
4552 if earlyclobber and matching operands are the same.
4554 2013-02-12 Richard Biener <rguenther@suse.de>
4557 * lto-streamer-out.c (write_symbol): Do not output symbols
4558 for hard register variables.
4560 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
4563 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
4564 (umulsidi3_insn, mulsidi3_insn): New insns.
4566 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
4568 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
4569 (struct tune_params): Add vec_costs field.
4570 * config/arm/arm.c (arm_builtin_vectorization_cost)
4571 (arm_add_stmt_cost): New functions.
4572 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
4573 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
4574 (arm_default_vec_cost): New struct of type cpu_vec_costs.
4575 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4576 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
4577 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
4578 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
4580 2013-02-12 Richard Biener <rguenther@suse.de>
4583 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
4584 decls again if possible.
4586 2013-02-12 Richard Biener <rguenther@suse.de>
4589 * tree-ssa.c (verify_ssa_name): Fix check, move
4590 SSA_NAME_IN_FREE_LIST check up.
4592 2013-02-12 Jakub Jelinek <jakub@redhat.com>
4593 Steven Bosscher <steven@gcc.gnu.org>
4595 PR rtl-optimization/56151
4596 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
4597 equal to op0 or op1, and last_insn pattern is CODE operation
4598 with MEM dest and one of the operands matches that MEM.
4600 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
4602 * doc/extend.texi: Document Function Multiversioning and "default"
4603 parameter string to target attribute.
4604 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
4605 target attribute parameter is "default".
4606 (ix86_compare_version_priority): Remove checks for target attribute.
4607 (ix86_mangle_function_version_assembler_name): Change error to sorry.
4608 Remove check for target attribute equal to NULL. Add assert.
4609 (ix86_generate_version_dispatcher_body): Change error to sorry.
4611 2013-02-11 Iain Sandoe <iain@codesourcery.com>
4612 Jack Howarth <howarth@bromo.med.uc.edu>
4613 Patrick Marlier <patrick.marlier@gmail.com>
4616 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
4617 define ENDFILE_SPEC as TM_DESTRUCTOR.
4618 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
4620 2013-02-11 Alexander Potapenko <glider@google.com>
4621 Jack Howarth <howarth@bromo.med.uc.edu>
4622 Jakub Jelinek <jakub@redhat.com>
4625 * config/darwin.c (cdtor_record): Rename ctor_record.
4626 (sort_cdtor_records): Rename sort_ctor_records.
4627 (finalize_dtors): New routine to sort destructors by
4628 priority before use in assemble_integer.
4629 (machopic_asm_out_destructor): Use finalize_dtors if needed.
4631 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
4633 PR rtl-optimization/56275
4634 * simplify-rtx.c (avoid_constant_pool_reference): Check that
4635 offset is non-negative and less than cmode size before
4636 calling simplify_subreg.
4638 2013-02-11 Richard Biener <rguenther@suse.de>
4640 PR tree-optimization/56264
4641 * cfgloop.h (fix_loop_structure): Adjust prototype.
4642 * loop-init.c (fix_loop_structure): Return the number of
4643 newly discovered loops.
4644 * tree-cfgcleanup.c (repair_loop_structures): When new loops
4645 are discovered, do a full loop-closed SSA rewrite.
4647 2013-02-11 Richard Biener <rguenther@suse.de>
4649 PR tree-optimization/56273
4650 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4652 (check_array_ref): Fix missing newline in dumps.
4653 (search_for_addr_array): Likewise.
4655 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
4657 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
4659 2013-02-09 Jakub Jelinek <jakub@redhat.com>
4662 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
4664 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
4666 PR rtl-optimization/56246
4667 * lra-constraints.c (simplify_operand_subreg): Try to reuse
4669 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
4670 constraints are satisfied.
4672 2013-02-08 Jeff Law <law@redhat.com>
4675 * emit-rtl.c (reg_is_parm_p): New function.
4676 * regs.h (reg_is_parm_p): New prototype.
4677 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
4678 callee-clobbered registers.
4680 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4683 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
4684 If there is no implicit builtin declaration, just return NULL.
4686 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
4688 * config/i386/sse.md (FMAMODEM): New mode iterator.
4689 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
4690 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
4692 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
4694 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
4695 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
4696 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
4698 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4700 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
4701 (microblaze*-*-elf): Likewise.
4702 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
4704 * config/microblaze/microblaze-c.c: Add builtin defines for
4705 _LITTLE_ENDIAN and _BIG_ENDIAN.
4706 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
4707 add to TARGET_DEFAULT flags.
4708 Expand ASM_SPEC and LINK_SPEC.
4709 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
4710 * config/microblaze/microblaze.md: Update extendsidi2 and
4711 movdi_internal instructions to use low-order / high-order reg
4713 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
4714 options and inversemask / mask of LITTLE_ENDIAN.
4715 * config/microblaze/t-microblaze: Expand multilib options to
4716 include mlittle-endian (le) and update exceptions patterns.
4718 2013-02-08 Jakub Jelinek <jakub@redhat.com>
4720 PR rtl-optimization/56195
4721 * lra-constraints.c (get_reload_reg): Don't reuse regs
4722 if they have smaller mode than requested, if they have
4723 wider mode than requested, try to return a SUBREG.
4725 PR tree-optimization/56250
4726 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
4727 if type is unsigned and code isn't MULT_EXPR.
4729 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
4731 PR tree-optimization/56064
4732 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
4733 bits according to mode.
4734 * fixed-value.h (fixed_from_double_int)
4735 (const_fixed_from_double_int): Adjust comments.
4737 2013-02-08 Richard Biener <rguenther@suse.de>
4740 * lto-streamer.h (struct data_in): Remove current_file, current_line
4741 and current_col members.
4742 * lto-streamer-out.c (lto_output_location): Stream changed bits
4743 en-block for efficiency.
4744 * lto-streamer-in.c (clear_line_info): Remove.
4745 (lto_input_location): Cache current file, line and column
4746 globally via local statics. Read changed bits en-block.
4747 (input_function): Do not call clear_line_info.
4748 (lto_read_body): Likewise.
4749 (lto_input_toplevel_asms): Likewise.
4751 2013-02-08 Michael Matz <matz@suse.de>
4753 PR tree-optimization/52448
4754 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
4755 (nt_call_phase): New static.
4756 (add_or_mark_expr): Only mark accesses with newer phase than any
4758 (nonfreeing_call_p): New.
4759 (nt_init_block): Update nt_call_phase, mark blocks as visited.
4760 (nt_fini_block): Keep blocks marked as visited.
4761 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
4763 2013-02-08 Richard Biener <rguenther@suse.de>
4765 * ira.c (ira): Free broken dominator information.
4767 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
4769 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
4771 2013-02-08 Marek Polacek <polacek@redhat.com>
4773 * cfgloop.c (verify_loop_structure): Add more checking of headers.
4775 2013-02-08 Richard Biener <rguenther@suse.de>
4778 * cfgloop.h (flow_loops_find): Adjust.
4779 (bb_loop_header_p): Declare.
4780 * cfgloop.c (bb_loop_header_p): New function split out from ...
4781 (flow_loops_find): ... here. Adjust function signature,
4782 support incremental loop structure update.
4783 (verify_loop_structure): Cleanup. Verify a loop is a loop.
4784 * cfgloopmanip.c (fix_loop_structure): Move ...
4785 * loop-init.c (fix_loop_structure): ... here.
4786 (apply_loop_flags): Split out from ...
4787 (loop_optimizer_init): ... here.
4788 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
4789 in incremental mode, only remove dead loops here.
4791 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
4794 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
4795 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
4796 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
4797 (*round<mode>3.libgcc): New insns for fixed-modes.
4798 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
4799 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
4800 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
4801 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
4802 implementations. Define to __builtin_avr_absFX,
4803 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
4804 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
4805 __builtin_avr_countlsFX, respectively.
4806 * config/avr/avr-c.c (target.h): Include it.
4807 (enum avr_builtin_id): New enum.
4808 (avr_resolve_overloaded_builtin): New static function.
4809 (avr_register_target_pragmas): Use it to set
4810 targetm.resolve_overloaded_builtin.
4811 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
4812 tree nodes used by DEF_BUILTIN.
4813 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
4814 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
4815 <AVR_BUILTIN_xxBITS>: Same.
4817 2013-02-08 Richard Biener <rguenther@suse.de>
4819 * cfgloop.c (verify_loop_structure): Properly handle
4820 a loop exiting to another loop header.
4821 * ira-int.h (ira_loops): Remove.
4822 * ira.c (ira_loops): Remove.
4823 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
4824 (do_reload): Use loop_optimizer_finalize.
4825 * ira-build.c (create_loop_tree_nodes): Use get_loops and
4826 number_of_loops to access the loop tree.
4827 (more_one_region_p): Likewise.
4828 (finish_loop_tree_nodes): Likewise.
4829 (rebuild_regno_allocno_maps): Likewise.
4830 (mark_loops_for_removal): Likewise.
4831 (mark_all_loops_for_removal): Likewise.
4832 (remove_unnecessary_regions): Likewise.
4833 (ira_build): Likewise.
4834 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4836 2013-02-08 Richard Biener <rguenther@suse.de>
4838 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
4839 * ipa-pure-const.c (analyze_function): Avoid calling
4840 mark_irreducible_loops twice.
4841 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
4843 2013-02-07 David S. Miller <davem@davemloft.net>
4845 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
4847 * var-tracking.c (vt_add_function_parameter): Test the presence of
4848 HAVE_window_save properly and do not remap argument registers when
4849 we have a leaf function.
4851 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
4854 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
4856 * config/i386/i386.c (ix86_print_operand): Ditto.
4858 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
4860 * lra-constraints.c (process_alt_operands): Fix recently added comment.
4862 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
4864 PR rtl-optimization/56225
4865 * lra-constraints.c (process_alt_operands): Check that reload hard
4866 reg can hold value for strict_low_part.
4868 2013-02-07 Jakub Jelinek <jakub@redhat.com>
4871 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
4872 dwarf2out_end_function.
4873 (in_first_function_p, maybe_at_text_label_p,
4874 first_loclabel_num_not_at_text_label): New variables.
4875 (dwarf2out_var_location): In the first function find out
4876 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
4877 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
4880 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
4882 PR rtl-optimization/56178
4883 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
4884 SUBREG of a register. Tidy up related block of code.
4885 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
4886 note if the source is a register or a SUBREG of a register.
4888 2013-02-07 Jakub Jelinek <jakub@redhat.com>
4891 * config/rs6000/rs6000.md (ptrm): New mode attr.
4892 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
4893 call_value_indirect_aix<pttrsize>,
4894 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
4897 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4899 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
4900 if -bnortl. Convert to strcmp and strncmp.
4902 2013-02-07 Alan Modra <amodra@gmail.com>
4905 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
4906 addresses won't wrap when offsetting.
4907 (rs6000_secondary_reload): Provide secondary reloads needed for
4908 wrapping LO_SUM addresses.
4910 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
4912 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
4913 MACH, just __MACH__.
4915 2013-02-06 Richard Biener <rguenther@suse.de>
4917 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
4918 instead of calling fix_loop_structure.
4920 2013-02-06 Jakub Jelinek <jakub@redhat.com>
4923 * omp-low.c (use_pointer_for_field): Return false if
4924 lower_send_shared_vars doesn't generate any copy-out code.
4926 2013-02-06 Tom de Vries <tom@codesourcery.com>
4928 PR rtl-optimization/56131
4929 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
4930 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
4931 of the label is NULL. Add comment.
4933 2013-02-05 Jakub Jelinek <jakub@redhat.com>
4935 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
4938 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
4939 (STATIC_LIBTSAN_LIBS): Likewise.
4940 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
4941 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
4942 is defined, don't add anything else beyond that.
4943 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
4944 (LINK_COMMAND_SPEC): Use them.
4946 PR tree-optimization/56205
4947 * tree-stdarg.c (check_all_va_list_escapes): Return true if
4948 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
4949 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
4951 2013-02-05 Richard Biener <rguenther@suse.de>
4953 PR tree-optimization/53342
4954 PR tree-optimization/53185
4955 * tree-vectorizer.h (vect_check_strided_load): Remove.
4956 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
4957 not disallow peeling for vectorized strided loads.
4958 (vect_check_strided_load): Make static and simplify.
4959 (vect_analyze_data_refs): Adjust.
4960 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
4961 correctly when vectorizing strided loads.
4963 2013-02-05 Richard Biener <rguenther@suse.de>
4965 * doc/install.texi: Refer to ISL, not PPL.
4967 2013-02-05 Jan Hubicka <jh@suse.cz>
4969 PR tree-optimization/55789
4970 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
4972 2013-02-05 Jan Hubicka <jh@suse.cz>
4974 PR tree-optimization/55789
4975 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
4976 the dead call anyway.
4978 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
4981 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
4983 2013-02-04 Alexander Potapenko <glider@google.com>
4984 Jack Howarth <howarth@bromo.med.uc.edu>
4985 Jakub Jelinek <jakub@redhat.com>
4988 * config/darwin.c (sort_ctor_records): Stabilized qsort
4989 on constructor priority by using original position.
4990 (finalize_ctors): New routine to sort constructors by
4991 priority before use in assemble_integer.
4992 (machopic_asm_out_constructor): Use finalize_ctors if needed.
4994 2013-02-04 Jakub Jelinek <jakub@redhat.com>
4997 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
4998 about visibility on artificial decls.
4999 * config/sol2.c (solaris_assemble_visibility): Likewise.
5001 2013-02-04 Kai Tietz <ktietz@redhat.com>
5004 * config/i386/i386.c (function_value_ms_64): Add additional valtype
5005 argument and improve checking of return-argument types for 16-byte
5007 (ix86_function_value_1): Add additional valtype argument on call
5008 of function_value_64.
5009 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
5010 handling infunction_value_64 function.
5012 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5014 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
5016 2013-02-04 Richard Biener <rguenther@suse.de>
5018 PR tree-optimization/56188
5019 * tree-ssa-structalias.c (label_visit): Consider case with
5020 initially non-empty points-to set.
5021 (perform_var_substitution): Dump node mapping and clean up.
5023 2013-02-04 Richard Guenther <rguenther@suse.de>
5026 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
5027 node prevail as last resort.
5028 (lto_symtab_merge_decls): Remove guard on LTRANS here.
5029 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
5031 2013-02-04 Richard Biener <rguenther@suse.de>
5033 PR tree-optimization/56113
5034 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
5036 (equiv_class_lookup_or_add): ... this.
5037 (label_visit): Adjust and fix error in previous patch.
5038 (perform_var_substitution): Adjust.
5040 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
5042 * config/sh/divtab.c: Fix formatting and comments throughout the file.
5043 * config/sh/sh4-300.md: Likewise.
5044 * config/sh/sh4a.md: Likewise.
5045 * config/sh/constraints.md: Likewise.
5046 * config/sh/sh.md: Likewise.
5047 * config/sh/netbsd-elf.h: Likewise.
5048 * config/sh/predicates.md: Likewise.
5049 * config/sh/sh-protos.h: Likewise.
5050 * config/sh/ushmedia.h: Likewise.
5051 * config/sh/linux.h: Likewise.
5052 * config/sh/sh.c: Likewise.
5053 * config/sh/superh.h: Likewise.
5054 * config/sh/elf.h: Likewise.
5055 * config/sh/sh4.md: Likewise.
5056 * config/sh/sh.h: Likewise.
5058 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5060 * config/pa/constraints.md: Adjust unused letters. Change "T"
5061 constraint to match_test floating_point_store_memory_operand().
5062 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
5063 (base14_operand): New.
5064 (floating_point_store_memory_operand): New.
5065 (integer_store_memory_operand): Revise to use base14_operand and
5066 reg_plus_base_memory_operand.
5067 (move_dest_operand): Allow symbolic_memory_operands.
5068 (symbolic_memory_operand): Check for LO_SOM.
5069 (symbolic_operand): Change default case to break.
5070 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
5071 CONST_DOUBLE values to be reloaded by putting them into memory when
5072 the destination is a floating point register.
5073 (movdf): Remove code to handle CONST_DOUBLE.
5075 (reload_indf_r1): New.
5076 (reload_insf_r1): New.
5077 Consistently use "Q" and "T" constraints with integer and floating
5078 point move instructions, respectively.
5079 (movdi): Remove FAIL.
5080 Change predicate for source operand unamed DImode move from
5081 general_operand to move_src_operand.
5082 (umulsidi3): Change predicate for destination operand to
5084 Likewise for similar unamed patterns.
5085 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5086 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5087 (hppa_legitimize_address): Simplify mask calculation.
5088 (pa_emit_move_sequence): Revised handling of secondary reloads from
5089 REG+D addresses for floating point loads and stores. Directly handle
5090 loading CONST0_RTX (mode) to a floating point register.
5091 (pa_secondary_reload): Handle reloading DF and SFmode constant values
5092 to floating point registers. Don't restrict secondary reloads to
5093 floating point registers to integer modes. Revise some comments and
5095 (TARGET_LEGITIMATE_ADDRESS_P): Define.
5096 (pa_legitimate_address_p): New.
5097 (pa_legitimize_reload_address): New.
5098 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5099 (STRICT_REG_OK_FOR_BASE_P): New.
5100 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
5101 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5103 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
5104 Andrew Dixie <andrewd@gentrack.com>
5106 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5109 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
5111 * expmed.c (extract_bit_field_1): Pass the full width of the
5112 structure to get_best_reg_extraction_insn.
5114 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5117 * configure.ac (use_cxa_atexit): Add AIX.
5118 * configure: Regenerate.
5120 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5122 2013-02-01 Jakub Jelinek <jakub@redhat.com>
5125 * final.c (need_profile_function): New variable.
5126 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
5127 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
5128 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
5129 notes, targetm.asm_out.function_prologue doesn't emit anything,
5130 HAVE_prologue and profiler should be emitted before prologue,
5131 set need_profile_function instead of emitting it.
5132 (final_scan_insn): If need_profile_function, emit
5133 profile_function on the first NOTE_INSN_BASIC_BLOCK or
5134 NOTE_INSN_FUNCTION_BEG note.
5136 2013-02-01 Richard Henderson <rth@redhat.com>
5138 * config/rs6000/rs6000.md (smulditi3): New.
5141 * config/alpha/alpha.md (umulditi3): New.
5143 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5145 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
5146 (ASM_OUTPUT_ALIGNED_LOCAL): New.
5148 2013-02-01 Richard Biener <rguenther@suse.de>
5150 PR tree-optimization/56113
5151 * tree-ssa-structalias.c (label_visit): Reduce work for
5152 single-predecessor nodes.
5154 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
5156 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
5157 range isn't testing for zero.
5159 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
5162 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
5164 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
5165 Nick Clifton <nickc@redhat.com>
5167 * config/v850/constraints.md (Q): Define as a memory constraint.
5168 * config/v850/predicates.md (label_ref_operand): New predicate.
5169 (e3v5_shift_operand): New predicate.
5170 (ior_operator): New predicate.
5171 * config/v850/t-v850: Add e3v5 multilib.
5172 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
5173 (v850_gen_movdi): Prototype.
5174 * config/v850/v850.c: Add support for e3v5 architecture.
5175 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
5177 (construct_save_jarl): Add e3v5 long JARL support.
5178 (v850_adjust_insn_length): New function. Adjust length of call
5179 insns when using e3v5 instructions.
5180 (v850_gen_movdi): New function: Generate instructions to move a
5182 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
5183 (CPP_SPEC): Define __v850e3v5__ as appropriate.
5184 (TARGET_USE_FPU): Enable for e3v5.
5185 (CONST_OK_FOR_W): New macro.
5186 (ADJUST_INSN_LENGTH): Define.
5187 * config/v850/v850.md (UNSPEC_LOOP): Define.
5188 (attr cpu): Add v850e3v5.
5189 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
5190 (movdi): New pattern.
5191 (movdi_internal): New pattern.
5192 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
5193 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
5194 (cstoresf4): Likewise.
5195 (cstoredf4): Likewise.
5196 (insv): New pattern.
5197 (rotlso3_a): New pattern.
5198 (rotlsi3_b): New pattern
5199 (rotlsi3_v850e3v5): New pattern.
5200 (doloop_begin): New pattern.
5201 (fix_loop_counter): New pattern.
5202 (doloop_end): New pattern.
5203 (branch_normal): Add e3v5 long branch support.
5204 (branch_invert): Likewise.
5205 (branch_z_normal): Likewise.
5206 (branch_z_invert): Likewise.
5207 (branch_nz_normal): Likewise.
5208 (branch_nz_invert): Likewise.
5209 (call_internal_short): Add e3v5 register-indirect JARL support.
5210 (call_internal_long): Likewise.
5211 (call_value_internal_short): Likewise.
5212 (call_value_internal_long): Likewise.
5213 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
5214 (mloop): New option.
5215 * config.gcc: Add support for configuring v840e3v5 target.
5216 * doc/invoke.texi: Document new v850 specific command line options.
5218 2013-01-31 Paul Koning <ni1d@arrl.net>
5222 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
5223 children if parent is a class.
5224 (prune_unused_types_prune): Don't add DW_AT_declaration.
5226 2013-01-31 Richard Biener <rguenther@suse.de>
5228 PR tree-optimization/56157
5229 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
5230 match up operand with SLP child.
5232 2013-01-31 Jason Merrill <jason@redhat.com>
5235 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
5236 parameters the first time.
5237 (gen_scheduled_generic_parms_dies): Check completeness here.
5239 2013-01-31 Richard Biener <rguenther@suse.de>
5242 * common.opt (faggressive-loop-optimizations): New flag,
5244 * doc/invoke.texi (faggressive-loop-optimizations): Document.
5245 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
5246 infer_loop_bounds_from_undefined by it.
5248 2013-01-31 Richard Biener <rguenther@suse.de>
5250 PR tree-optimization/56150
5251 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
5252 visit virtual operands.
5253 (find_uses_to_rename_bb): Likewise.
5255 2013-01-31 Richard Biener <rguenther@suse.de>
5257 PR tree-optimization/56150
5258 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
5259 mixed store non-store stmts.
5261 2013-01-30 Jakub Jelinek <jakub@redhat.com>
5264 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
5265 LIBASAN_EARLY_SPEC is defined.
5266 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
5267 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
5269 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
5272 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
5273 invalid args instead of ICEing on it.
5274 (ix86_valid_target_attribute_tree): Return error_mark_node if
5275 ix86_valid_target_attribute_inner_p failed.
5276 (ix86_valid_target_attribute_p): Return false only if
5277 ix86_valid_target_attribute_tree returned error_mark_node. Allow
5278 target("default") attribute.
5279 (sorted_attr_string): Change argument from const char * to tree,
5280 merge in all target attribute arguments rather than just one.
5281 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
5282 instead of free. Avoid using strcat.
5283 (ix86_mangle_function_version_assembler_name): Mangle
5284 target("default") as if no target attribute is present. Adjust
5285 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
5286 instead of xmalloc and XDELETEVEC instead of free.
5287 (ix86_function_versions): Don't return true if one of the decls
5288 doesn't have target attribute. If they don't and one of the decls
5289 is DECL_FUNCTION_VERSIONED, report an error. Adjust
5290 sorted_attr_string caller. Use XDELETEVEC instead of free.
5291 (ix86_supports_function_versions): Remove.
5292 (make_name): Fix up formatting.
5293 (make_dispatcher_decl): Remove resolver_name and its initialization.
5294 Avoid leaking memory.
5295 (is_function_default_version): Return true if there is
5296 target("default") attribute rather than no target attribute at all.
5297 (make_resolver_func): Avoid leaking memory.
5298 (ix86_generate_version_dispatcher_body): Likewise.
5299 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
5300 * target.def (supports_function_versions): Remove.
5301 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
5302 * doc/tm.texi: Regenerated.
5304 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
5306 PR rtl-optimization/56144
5307 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
5308 for values with side effects.
5310 2013-01-30 Richard Biener <rguenther@suse.de>
5312 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
5313 (sparseset_pop): Likewise.
5314 * cfganal.c (compute_idf): Likewise. Increase work-stack size
5315 to be able to use quick_push in the worker loop.
5317 2013-01-30 Marek Polacek <polacek@redhat.com>
5319 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
5321 2013-01-30 Richard Biener <rguenther@suse.de>
5324 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
5326 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
5328 PR tree-optimization/56064
5329 * fixed-value.c (fixed_from_double_int): New function.
5330 * fixed-value.h (fixed_from_double_int): New prototype.
5331 (const_fixed_from_double_int): New static inline function.
5332 * fold-const.c (native_interpret_fixed): New static function.
5333 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
5334 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
5335 (native_encode_fixed): New static function.
5336 (native_encode_expr) <FIXED_CST>: Use it.
5337 (native_interpret_int): Move double_int worker code to...
5338 * double-int.c (double_int::from_buffer): ...this new static method.
5339 * double-int.h (double_int::from_buffer): Prototype it.
5341 2013-01-30 Richard Biener <rguenther@suse.de>
5343 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
5344 New pointer-map and obstack.
5345 (init_alias_vars): Allocate pointer-map and obstack.
5346 (delete_points_to_sets): Free them.
5347 (find_what_var_points_to): Cache result.
5348 (find_what_p_points_to): Adjust for changed interface of
5349 find_what_var_points_to.
5350 (compute_points_to_sets): Likewise.
5351 (ipa_pta_execute): Likewise.
5353 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5355 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
5356 * configure: Regenerate.
5357 * config.in: Regenerate.
5358 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
5359 #nobits/#progbits if supported.
5361 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
5364 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
5365 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
5366 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
5368 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5370 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
5371 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
5373 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5375 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
5376 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
5378 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5380 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
5382 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
5383 * config/arm/cortex-a7.md: New bypasses using
5384 arm_mac_accumulator_is_result.
5386 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5388 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
5389 (cortex_a7_neon_mla): Likewise.
5390 (cortex_a7_fpfmad): New reservation.
5391 (cortex_a7_fpmacs): Use ffmas and update required units.
5392 (cortex_a7_fpmuld): Update required units and latency.
5393 (cortex_a7_fpmacd): Likewise.
5394 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
5395 (cortex_a7_neon). Likewise.
5396 (bypass) Update participating units.
5398 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5400 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
5401 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
5403 * config/arm/vfp11.md (vfp_farith): Use ffmas.
5404 (vfp_fmul): Use ffmad.
5405 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
5406 (cortex_r4_fmacd): Use ffmad.
5407 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
5408 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
5409 (cortex_a9_fmacd): Use ffmad.
5410 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
5411 (cortex_a8_vfp_macd): Use ffmad.
5412 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
5413 (cortex_a5_fpmacd): Use ffmad.
5414 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
5415 (cortex_a15_vfp_macd): Use ffmad.
5416 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
5418 2013-01-29 Jason Merrill <jason@redhat.com>
5421 * varasm.c (default_assemble_visibility): Don't warn about
5422 visibility on artificial decls.
5424 2013-01-29 Richard Biener <rguenther@suse.de>
5426 PR tree-optimization/56113
5427 * tree-ssa-structalias.c (equiv_class_lookup): Also return
5429 (label_visit): Free duplicate bitmaps and record the leader instead.
5430 (perform_var_substitution): Adjust.
5432 2013-01-29 Richard Biener <rguenther@suse.de>
5434 PR tree-optimization/55270
5435 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
5436 the CFG, schedule loops for fixup.
5438 2013-01-29 Nick Clifton <nickc@redhat.com>
5440 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
5443 2013-01-28 Leif Ekblad <leif@rdos.net>
5445 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
5446 * config/i386/i386.h (TARGET_RDOS): New macro.
5447 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
5448 * config/i386/i386.c (ix86_option_override_internal): For 64bit
5449 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
5450 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
5451 DEFAULT_LARGE_SECTION_THRESHOLD.
5452 * config/i386/i386.md (R14_REG, R15_REG): New constants.
5453 * config/i386/rdos.h: New file.
5454 * config/i386/rdos64.h: New file.
5456 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
5459 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
5462 2013-01-28 Jakub Jelinek <jakub@redhat.com>
5464 PR rtl-optimization/56117
5465 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
5466 call cselib_lookup_from_insn on the MEM before calling
5467 add_insn_mem_dependence.
5469 2013-01-28 Richard Biener <rguenther@suse.de>
5471 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
5472 to a stmt that didn't have one.
5473 (copy_phis_for_bb): Likewise for PHI arguments.
5474 (copy_debug_stmt): Likewise for debug stmts.
5476 2013-01-28 Richard Biener <rguenther@suse.de>
5478 PR tree-optimization/56034
5479 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
5480 (partition_builtin_p): Adjust.
5481 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
5482 it is the last partition.
5483 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
5484 up the vertex for the definition.
5485 (classify_partition): Classify whether a partition is a
5486 PKIND_REDUCTION, thus has uses outside of the loop.
5487 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
5488 Merge all PKIND_REDUCTION partitions into the last partition.
5489 (tree_loop_distribution): Seed partitions from reductions as well.
5491 2013-01-28 Jakub Jelinek <jakub@redhat.com>
5493 PR tree-optimization/56125
5494 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
5495 pow(x,c) into sqrt(x) * powi(x, n/2) or
5496 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
5497 optimizing for size.
5498 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
5499 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
5502 PR tree-optimization/56094
5503 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
5504 to UNKNOWN_LOCATION while gimplifying expr.
5506 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
5509 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
5510 operand 0 in movabs insn template for -masm=intel asm alternative.
5511 (*movabs<mode>_2): Ditto for operand 1.
5513 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
5516 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
5519 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5521 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
5524 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5526 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
5527 Undef to avoid warning.
5529 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5531 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
5532 * configure: Regenerate.
5534 2013-01-25 Jakub Jelinek <jakub@redhat.com>
5536 PR tree-optimization/56098
5537 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
5538 for stmts with volatile ops.
5539 (cond_store_replacement): Don't optimize if assign has volatile ops.
5540 (cond_if_else_store_replacement_1): Don't optimize if either
5541 then_assign or else_assign have volatile ops.
5542 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
5545 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5547 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
5549 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5551 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
5552 missing ':' in asm example.
5554 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
5556 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
5557 entries into lane and laneq entries.
5558 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
5559 Remove AdvSIMD scalar modes.
5560 (aarch64_sq<r>dmulh_laneq<mode>): New.
5561 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
5563 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
5564 builtin implementations to relfect changes in RTL in aarch64-simd.md.
5565 * config/aarch64/iterators.md (VCOND): New.
5568 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5571 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
5572 Add NULL LIBNAME argument to existing definitions.
5573 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
5574 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
5575 * config/avr/avr.c (DEF_BUILTIN): Same.
5576 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
5577 (avr_expand_builtin): Expand to a vanilla call if a libgcc
5578 implementation is available (DECL_ASSEMBLER_NAME is set).
5579 (avr_fold_absfx): New static function.
5580 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
5581 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
5582 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
5584 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
5585 (abshk, absk, abslk, absllk): Provide as static inline functions.
5587 2013-01-25 Marek Polacek <polacek@redhat.com>
5589 PR tree-optimization/56035
5590 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
5592 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
5594 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
5595 (*movtf_internal_rex64): Add (!o,C) alternative
5596 (*movxf_internal_rex64): Ditto.
5597 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
5599 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
5601 * doc/invoke.texi: fix typo.
5602 * doc/objc.texi: fix typo.
5604 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
5606 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
5607 for the first two alternatives.
5609 2013-01-24 Diego Novillo <dnovillo@google.com>
5611 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
5612 (ggc-zone.o): Remove.
5613 * configure.ac: Remove option --with-gc.
5614 * configure: Re-generate.
5615 * doc/install.texi: Remove documentation for --with-gc.
5616 * gengtype.c (write_enum_defn): Remove. Update all users.
5617 (write_Types_process_field): Remove generation of gt_e_* argument.
5618 (output_type_enum): Remove. Update all users.
5619 (write_enum_defn): Remove. Update all users.
5620 (enum alloc_zone): Remove. Update all users.
5621 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
5622 * ggc-common.c (ggc_splay_alloc): Remove first argument.
5624 (struct ptr_data): Remove field TYPE. Update all users.
5625 (gt_pch_note_object): Remove argument TYPE. Update all users.
5626 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
5628 * ggc-none.c (ggc_alloc_typed_stat): Remove.
5629 (struct alloc_zone): Remove.
5630 (ggc_internal_alloc_zone_stat): Remove.
5631 (ggc_internal_cleared_alloc_zone_stat): Remove.
5632 * ggc-page.c (ggc_alloc_typed_stat): Remove.
5633 (ggc_pch_count_object): Remove last argument. Update all users.
5634 (ggc_pch_alloc_object): Remove last argument. Update all users.
5635 (struct alloc_zone): Remove.
5636 * ggc-zone.c: Remove.
5637 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
5638 (struct alloc_zone): Remove.
5639 (ggc_alloc_typed_stat): Remove.
5640 (ggc_alloc_typed): Remove.
5641 (ggc_splay_alloc): Remove first argument.
5642 (rtl_zone): Remove. Update all users.
5643 (tree_zone): Remove. Update all users.
5644 (tree_id_zone): Remove. Update all users.
5645 (ggc_internal_zone_alloc_stat): Remove. Update all users.
5646 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
5647 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
5648 * tree-ssanames.c: Remove references to zone allocator in comments.
5650 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
5652 * config/avr/avr.c (avr_out_fract): Make register numbers that
5653 might be outside of source operand signed.
5655 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
5657 * config/i386/constraints.md (Yf): New constraint.
5658 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
5659 of f constraint to conditionaly disable x87 register preferences.
5660 (*movdf_internal): Ditto.
5661 (*movsf_internal): Ditto.
5663 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
5666 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
5667 that have operands with impossible constraints.
5668 Add a FIXME for a speed-up opportunity.
5669 * lra-constraints.c (process_alt_operands): Verify that a class
5670 selected from constraints on asms is valid for the operand mode.
5671 (curr_insn_transform): Remove incorrect comment.
5673 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
5675 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
5676 TOC operand is a valid symbol ref in the constant pool.
5678 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5680 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
5682 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
5685 * config/avr/stdfix.h: New file.
5686 * t-avr (stdfix-gcc.h): New rule to build it.
5687 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
5689 2013-01-23 Kostya Serebryany <kcc@google.com>
5691 * config/darwin.h: remove dependency on
5692 CoreFoundation (asan on Mac OS).
5694 2013-01-23 Jakub Jelinek <jakub@redhat.com>
5697 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
5698 instead of cmpdi_operand for first comparison operand.
5699 Don't assert that comparison operands aren't both constants.
5701 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
5703 * doc/install.texi (Downloading the Source): Update references to
5704 downloading separate components.
5706 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
5708 * doc/extend.texi (__int128): Improve grammar.
5710 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
5713 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
5714 alternative to (o,r).
5715 (*movdi_internal_rex64): Remove (!o,n) alternative.
5716 (DImode immediate->memory splitter): Remove.
5717 (DImode immediate->memory peephole2): Remove.
5718 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
5719 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
5720 alternative to (!o,*r).
5721 (*movtf_internal_sse): New pattern.
5722 (*movxf_internal_rex64): New pattern.
5723 (*movxf_internal): Disable for TARGET_64BIT.
5724 (*movdf_internal_rex64): Remove (!o,F) alternative.
5726 2013-01-22 Jakub Jelinek <jakub@redhat.com>
5729 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
5730 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
5731 * tree-vect-loop-manip.c (find_loop_location): Also ignore
5732 stmt locations where LOCATION_LOCUS of the stmt location is
5733 UNKNOWN_LOCATION or BUILTINS_LOCATION.
5736 * config/i386/i386.md (UNSPEC_STOS): New.
5737 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
5738 *strsetqi_1): Add UNSPEC_STOS.
5740 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
5743 * doc/invoke.texi: Remove left over -Wsynth example.
5745 2013-01-21 Jakub Jelinek <jakub@redhat.com>
5747 PR tree-optimization/56051
5748 * fold-const.c (fold_binary_loc): Don't fold
5749 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
5750 a narrowing conversion, or widening conversion from signed
5753 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
5755 PR rtl-optimization/56023
5756 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
5757 dependent on debug instruction.
5759 2013-01-21 Martin Jambor <mjambor@suse.cz>
5762 * function.c (allocate_struct_function): Call
5763 invoke_set_current_function_hook earlier.
5765 2013-01-21 Jakub Jelinek <jakub@redhat.com>
5767 * reload1.c (init_reload): Only initialize reload_obstack
5768 during the first call.
5770 2013-01-21 Marek Polacek <polacek@redhat.com>
5772 * cfgloop.c (verify_loop_structure): Fix up grammar.
5774 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
5776 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
5777 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
5779 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5782 * config/arm/marvell-pj4.md: Update copyright year.
5783 Fix up use of alu to alu_reg and simple_alu_imm.
5785 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
5787 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
5789 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
5792 * lra-constraints.c (curr_insn_transform): Don't reuse original
5793 insn for secondary memory move when memory mode should be different.
5795 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5797 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
5798 atomic_storedi_1): New patterns.
5800 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5802 btver2 pipeline descriptions.
5803 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
5805 * config/i386/i386.md (btver2_decode): New type attributes.
5806 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
5808 * config/i386/btver2.md: New file describing btver2 pipelines.
5810 2013-01-19 Andrew Pinski <apinski@cavium.com>
5812 PR tree-optimization/52631
5813 * tree-ssa-sccvn (visit_use): Before looking up the original
5814 statement, try looking up the simplified expression.
5816 2013-01-19 Anthony Green <green@moxielogic.com>
5818 * config/moxie/moxie.c (moxie_expand_prologue): Set
5819 current_function_static_stack_size.
5821 2013-01-18 Jakub Jelinek <jakub@redhat.com>
5823 PR tree-optimization/56029
5824 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
5825 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
5827 2013-01-18 Sharad Singhai <singhai@google.com>
5829 PR tree-optimization/55995
5830 * dumpfile.c (dump_loc): Print location only if available.
5831 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
5833 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
5836 * lra-constraints.c (curr_insn_transform): Reuse original insn for
5837 secondary memory move.
5838 (inherit_reload_reg): Use rclass instead of cl for
5839 check_secondary_memory_needed_p.
5841 2013-01-18 Jakub Jelinek <jakub@redhat.com>
5844 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
5845 the case where writing real complex part of target modifies op1.
5847 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
5849 * config/aarch64/aarch64-simd.md
5850 (aarch64_vcond_internal<mode>): Handle unordered cases.
5851 * config/aarch64/iterators.md (v_cmp_result): New.
5853 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
5854 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5856 * config/arm/marvell-pj4.md: New file.
5857 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
5858 * config/arm/arm.md (generic_sched): Add marvell_pj4.
5859 (generic_vfp): Likewise.
5860 * config/arm/arm-cores.def: Add marvell-pj4.
5861 * config/arm/arm-tune.md: Regenerate.
5862 * config/arm/arm-tables.opt: Regenerate.
5863 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
5864 * doc/invoke.texi: Document marvell-pj4.
5866 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
5868 * config/aarch64/arm_neon.h: Map scalar types to standard types.
5870 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
5875 * var-tracking.c (negative_power_of_two_p): New.
5876 (global_get_addr_cache, local_get_addr_cache): New.
5877 (get_addr_from_global_cache, get_addr_from_local_cache): New.
5878 (vt_canonicalize_addr): Rewrite using the above. Adjust the
5880 (vt_stack_offset_p): Remove.
5881 (vt_canon_true_dep): Always canonicalize loc's address.
5882 (clobber_overlapping_mems): Make sure we have a MEM.
5883 (local_get_addr_clear_given_value): New.
5884 (val_reset): Clear local cached entries.
5885 (compute_bb_dataflow): Create and release the local cache.
5886 Disable duplicate MEMs clobbering.
5887 (emit_notes_in_bb): Clobber MEMs likewise.
5888 (vt_emit_notes): Create and release the local cache.
5889 (vt_initialize, vt_finalize): Create and release the global
5890 cache, respectively.
5891 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
5893 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
5896 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
5897 not found in the symtab.
5899 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
5902 PR rtl-optimization/55547
5903 PR rtl-optimization/53827
5906 * alias.c (offset_overlap_p): New, factored out of...
5907 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
5908 the conservative special case for symbolic constants. Don't
5909 adjust zero sizes on alignment.
5911 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
5913 PR rtl-optimization/52573
5914 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
5915 REG_UNUSED for the same register.
5917 2013-01-17 Richard Biener <rguenther@suse.de>
5918 Marek Polacek <polacek@redhat.com>
5920 PR rtl-optimization/55833
5921 * loop-unswitch.c (unswitch_loops): Move loop verification...
5922 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
5923 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
5924 Set it to true when we're removing a loop from hierarchy tree in
5925 an irreducible region.
5926 (fix_bb_placements): Adjust caller.
5927 (fix_loop_placements): Likewise.
5929 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
5931 * config/avr/builtins.def (DEF_BUILTIN): Factor out
5932 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
5933 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
5934 Remove ID. Adjust comments.
5935 * config/avr/avr-c.c (avr_builtin_name): Remove.
5936 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
5937 * config/avr/avr.c (avr_tolower): New static function.
5938 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
5939 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
5940 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
5943 2013-01-17 Jan Hubicka <jh@suse.cz>
5945 PR tree-optimization/55273
5946 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
5948 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
5951 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
5952 store through atomic_store<mode>_1.
5953 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
5955 2013-01-17 Martin Jambor <mjambor@suse.cz>
5957 PR tree-optimizations/55264
5958 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
5959 for virtual methods.
5960 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
5961 virtual methods before inlining is over.
5962 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
5964 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
5967 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
5969 PR rtl-optimization/56005
5970 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
5971 pending reads for prefetch.
5973 2013-01-16 Ian Bolton <ian.bolton@arm.com>
5975 * config/aarch64/aarch64.md
5976 (*cstoresi_neg_uxtw): New pattern.
5977 (*cmovsi_insn_uxtw): New pattern.
5978 (*<optab>si3_uxtw): New pattern.
5979 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
5980 (*<optab>si3_insn_uxtw): New pattern.
5981 (*bswapsi2_uxtw): New pattern.
5983 2013-01-16 Richard Biener <rguenther@suse.de>
5985 * tree-inline.c (tree_function_versioning): Remove set but
5986 never used variable.
5988 2013-01-16 Richard Biener <rguenther@suse.de>
5990 PR tree-optimization/55964
5991 * tree-flow.h (rename_variables_in_loop): Remove.
5992 (rename_variables_in_bb): Likewise.
5993 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
5994 (copy_loop_before): Adjust and delete update-ssa status.
5995 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
5996 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
5997 (rename_variables_in_loop): Remove.
5998 (slpeel_update_phis_for_duplicate_loop): Likewise.
5999 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
6000 use available cfg machinery instead of duplicating it.
6001 Update PHI nodes and perform poor-mans SSA update here.
6002 (slpeel_tree_peel_loop_to_edge): Adjust.
6004 2013-01-16 Richard Biener <rguenther@suse.de>
6006 PR tree-optimization/54767
6007 PR tree-optimization/53465
6008 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
6009 (vrp_visit_phi_node): For PHI arguments coming via backedges
6010 drop all symbolical range information.
6011 (execute_vrp): Compute backedges.
6013 2013-01-16 Richard Biener <rguenther@suse.de>
6015 * doc/install.texi: Update CLooG and ISL requirements to
6018 2013-01-16 Christian Bruel <christian.bruel@st.com>
6021 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
6022 (broken_move): Handle UNSPECV_SP_SWITCH_B.
6023 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
6025 2013-01-16 DJ Delorie <dj@redhat.com>
6027 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
6028 (UNSPECV_SP_SWITCH_E): New.
6029 (sp_switch_1): Change to an unspec.
6030 (sp_switch_2): Change to an unspec. Don't use post-inc when we
6033 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
6035 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
6036 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
6037 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
6038 (expand_mem_thread_fence): Ditto.
6039 (expand_mem_signal_fence): Ditto.
6040 (expand_atomic_load): Ditto.
6041 (expand_atomic_store): Ditto.
6043 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
6045 PR rtl-optimization/55547
6046 PR rtl-optimization/53827
6049 * alias.c (memrefs_conflict_p): Set sizes to negative after
6052 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6055 * function.c (thread_prologue_and_epilogue_insns): Always
6056 add crtl->drap_reg to set_up_by_prologue.set, even if
6057 stack_realign_drap is false.
6059 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6061 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
6062 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
6063 *call): Fix indention.
6065 2013-01-15 Tom de Vries <tom@codesourcery.com>
6068 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
6071 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
6073 PR rtl-optimization/55153
6074 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
6076 2013-01-15 Martin Jambor <mjambor@suse.cz>
6078 PR tree-optimization/55920
6079 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
6080 accesses as grp_to_be_debug_replaced.
6082 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6084 PR tree-optimization/55920
6085 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6086 there is non-useless type conversion needed from debug rhs to lhs,
6087 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6089 2013-01-15 Joseph Myers <joseph@codesourcery.com>
6090 Mikael Pettersson <mikpe@it.uu.se>
6093 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6095 (ASM_OUTPUT_CASE_LABEL): Remove.
6096 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6097 * final.c (shorten_branches): Update alignment of labels before
6098 jump tables if CASE_VECTOR_SHORTEN_MODE.
6100 2013-01-15 Richard Biener <rguenther@suse.de>
6103 * system.h: Do not include gmp.h for building host tools.
6105 2013-01-15 Richard Biener <rguenther@suse.de>
6108 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6109 account for bitpos when computing alignment.
6111 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
6113 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6114 (ix86_target_macros_internal): Likewise.
6116 * config/i386/i386.c (m_CORE2I7): Removed.
6117 (m_CORE_HASWELL): New macro.
6118 (m_CORE_ALL): Likewise.
6119 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6120 (initial_ix86_arch_features): Likewise.
6121 (processor_target_table): Initializations for Core avx2.
6122 (cpu_names): New names "core-avx2".
6123 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
6124 PROCESSOR_CORE_HASWELL.
6125 (ix86_issue_rate): New case.
6126 (ia32_multipass_dfa_lookahead): Likewise.
6127 (ix86_sched_init_global): Likewise.
6129 * config/i386/i386.h (TARGET_HASWELL): New macro.
6130 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
6131 (processor_type): New PROCESSOR_HASWELL.
6133 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6135 PR tree-optimization/55955
6136 * tree-vect-loop.c (vectorizable_reduction): Give up early on
6137 *SHIFT_EXPR and *ROTATE_EXPR codes.
6139 PR tree-optimization/48766
6140 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
6141 -ftrapv disable -fwrapv.
6143 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6146 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
6147 etc. to 1 and not to __flash.
6148 Use LL suffix for __INT24_MAX__ with -mint8.
6149 Use ULL suffix for __UINT24_MAX__ with -mint8.
6151 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6153 * config/avr/avr-arch.h
6154 (struct base_arch_s): Use typedef avr_arch_t instead.
6155 (struct arch_info_s): Use typedef avr_arch_info_t instead.
6156 (struct mcu_type_s): Use typedef avr_mcu_t instead.
6157 * config/avr/avr.c: Same.
6158 * config/avr/avr-devices.c: Same.
6159 * config/avr/driver-avr.c: Same.
6160 * config/avr/gen-avr-mmcu-texi.c: Same.
6161 * config/avr/avr-mcus.def: Adjust comment.
6163 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
6165 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
6166 * config/aarch64/iterators.md (VALLDI): New.
6168 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
6169 Andi Kleen <ak@linux.intel.com>
6172 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
6173 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
6176 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6178 * config/avr/avr-stdint.h: Remove trailing blanks.
6179 * config/avr/avr-log.h: Same.
6180 * config/avr/avr-arch.h: Same.
6181 * config/avr/avr-devices.c: Same.
6182 * config/avr/avr-dimode.md: Same.
6183 * config/avr/predicates.md: Same.
6184 * config/avr/avr-c.c: Same. And fix typo.
6186 * config/avr/avr-protos.h: Same. And:
6187 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
6188 (init_cumulative_args): Rename to avr_init_cumulative_args.
6189 (expand_prologue): Rename to avr_expand_prologue.
6190 (expand_epilogue): Rename to avr_expand_epilogue.
6191 (adjust_insn_length): Rename to avr_adjust_insn_length.
6192 (notice_update_cc): Rename to avr_notice_update_cc.
6193 (final_prescan_insn): Rename to avr_final_prescan_insn.
6194 * config/avr/avr.c: Same.
6195 * config/avr/avr.h: Same.
6196 * config/avr/avr.md: Remove trailing blanks.
6197 (prologue): Use avr_expand_prologue.
6198 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
6200 2013-01-14 Richard Biener <rguenther@suse.de>
6202 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
6203 verify_location, collect_subblocks): New functions.
6204 (verify_gimple_in_cfg): Verify that locations only reference
6205 BLOCKs in the functions BLOCK tree.
6207 2013-01-14 Richard Biener <rguenther@suse.de>
6209 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
6211 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
6213 (insert_out_of_ssa_copy_on_edge): Likewise.
6214 (rewrite_close_phi_out_of_ssa): Likewise.
6215 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
6217 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
6218 propagated constants.
6219 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
6222 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6224 * config/avr/avr-modes.def: Add GPL copyright notice.
6226 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
6228 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
6229 MEMMODEL_MASK to determine memory model.
6230 (atomic_store<mode>): Ditto from operands[2].
6231 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
6233 2013-01-13 Jakub Jelinek <jakub@redhat.com>
6236 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
6237 (fold_gimple_assign): Don't call unshare_expr here.
6238 (fold_ctor_reference): Call unshare_expr.
6240 2013-01-13 Terry Guo <terry.guo@arm.com>
6242 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
6243 * doc/fragments.texi: Document MULTILIB_REUSE.
6244 * gcc.c (multilib_reuse): New internal spec.
6245 (set_multilib_dir): Also search multilib from multilib_reuse.
6246 * genmultilib (tmpmultilib3): Refactor code.
6247 (tmpmultilib4): Ditto.
6248 (multilib_reuse): New multilib argument.
6250 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
6252 * Makefile.in: Update copyright.
6254 2013-01-12 Tom de Vries <tom@codesourcery.com>
6257 * calls.c (expand_call): Check if arg_nr is valid.
6259 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6261 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
6262 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
6263 documentation. Add missing '__' in front of
6264 __builtin_ia32_packssdw256.
6266 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6269 * config/s390/s390.c (s390_preferred_reload_class): Do not return
6270 NO_REGS for larl operands.
6271 (s390_reload_larl_operand): Use s390_load_address instead of
6274 2013-01-11 Richard Biener <rguenther@suse.de>
6276 * tree-cfg.c (verify_node_sharing_1): Split out from ...
6277 (verify_node_sharing): ... here.
6278 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
6280 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
6282 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
6283 Substitute TREECHECKING.
6284 * configure: Regenerate.
6285 * Makefile.in (TREECHECKING): New.
6287 2013-01-11 Richard Guenther <rguenther@suse.de>
6289 PR tree-optimization/44061
6290 * tree-vrp.c (extract_range_basic): Compute zero as
6291 value-range for __builtin_constant_p of function parameters.
6293 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
6295 Update copyright years.
6297 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
6299 PR rtl-optimization/55672
6300 * lra-eliminations.c (mark_not_eliminable): Permit addition with
6301 const to be eliminable.
6303 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
6305 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
6306 * configure: Regenerate.
6308 2013-01-10 Richard Biener <rguenther@suse.de>
6310 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
6312 2013-01-10 Richard Biener <rguenther@suse.de>
6315 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
6316 locations for virtual PHI arguments.
6317 (rewrite_update_phi_arguments): Likewise.
6319 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
6321 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
6324 2013-01-10 Jakub Jelinek <jakub@redhat.com>
6326 PR tree-optimization/55921
6327 * tree-complex.c (expand_complex_asm): New function.
6328 (expand_complex_operations_1): Call it for GIMPLE_ASM.
6330 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6333 * config/s390/s390.c (s390_symref_operand_p)
6334 (s390_loadrelative_operand_p): Merge the two functions.
6335 (s390_check_qrst_address, print_operand_address): Add parameters
6336 to s390_loadrelative_operand_p invokation.
6337 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
6338 (s390_reload_larl_operand, s390_secondary_reload): Use
6339 s390_loadrelative_operand_p instead of s390_symref_operand_p.
6340 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
6342 2013-01-09 Mike Stump <mikestump@comcast.net>
6344 * dse.c (record_store): Remove unnecessary assert.
6346 2013-01-09 Jan Hubicka <jh@suse.cz>
6348 PR tree-optimization/55569
6349 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
6350 * cfgloop.h (scale_loop_profile): Likewise.
6352 2013-01-09 Jan Hubicka <jh@suse.cz>
6355 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
6357 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
6359 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
6362 * expr.h (maybe_emit_group_store): Declare.
6363 * expr.c (maybe_emit_group_store): New function.
6364 * builtins.c (expand_builtin_int_roundingfn): Call it.
6365 (expand_builtin_int_roundingfn_2): Likewise.
6367 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
6369 PR rtl-optimization/55829
6370 * lra-constraints.c (match_reload): Add code for absent output.
6371 (curr_insn_transform): Add code for reloads of matched inputs
6374 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
6376 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
6377 attribute of movddup insn to DF.
6378 (*vec_interleave_lowv2df): Ditto.
6379 (vec_dupv2df): Ditto.
6381 2013-01-09 Jan Hubicka <jh@suse.cz>
6383 PR tree-optimiation/55875
6384 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
6385 EVERY_ITERATION parameter.
6386 (number_of_iterations_exit): Check if exit is executed every iteration.
6387 (idx_infer_loop_bounds): Similarly here.
6388 (n_of_executions_at_most): Simplify
6389 to only test for cases where statement is dominated by the
6390 particular bound; handle correctly the "postdominance" test.
6391 (scev_probably_wraps_p): Use max loop iterations info
6392 as a global bound first.
6394 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
6395 Nick Clifton <nickc@redhat.com>
6397 * config/v850/v850.md (cbranchsf4): New pattern.
6398 (cstoresf4): New pattern.
6399 (cbranchdf4): New pattern.
6400 (cstoredf4): New pattern.
6401 (movsicc): Disallow floating point comparisons.
6402 (cmpsf_le_insn): Fix order of operators.
6403 (cmpsf_lt_insn): Likewise.
6404 (cmpsf_eq_insn): Likewise.
6405 (cmpdf_le_insn): Likewise.
6406 (cmpdf_lt_insn): Likewise.
6407 (cmpdf_eq_insn): Likewise.
6408 (cmpsf_ge_insn): Use LE comparison.
6409 (cmpdf_ge_insn): Likewise.
6410 (cmpsf_gt_insn): Use LT comparison.
6411 (cmpdf_gt_insn): Likewise.
6412 (cmpsf_ne_insn): Delete pattern.
6413 (cmpdf_ne_insn): Delete pattern.
6414 * config/v850/v850.c (v850_gen_float_compare): Use
6415 gen_cmpdf_eq_insn for NE comparison.
6416 (v850_float_z_comparison_operator)
6417 (v850_float_nz_comparison_operator): Move from here ...
6418 * config/v850/predicates.md: ... to here. Move GT and GE
6419 comparisons into v850_float_z_comparison_operator.
6420 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
6422 (v850_float_nz_comparison_operator): Likewise.
6424 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6426 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
6427 with calls to gen_insvsi/gen_insvdi.
6429 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6431 * config/i386/i386.c (initial_ix86_tune_features): Set up
6432 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
6434 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
6435 Jakub Jelinek <jakub@redhat.com>
6437 PR tree-optimization/48189
6438 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
6439 If nitercst is 0, don't predict the exit edge.
6441 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6443 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
6444 in asm_fprintf with reg_names.
6445 (aarch64_print_operand_address): Likewise.
6446 (aarch64_return_addr): Likewise.
6447 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
6449 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6451 * config/pa/pa.h (VAL_U6_BITS_P): Define.
6452 (INT_U6_BITS): Likewise.
6453 * config/pa/predicates.md (uint6_operand): New predicate.
6454 (shift5_operand, shift6_operand): Likewise.
6455 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
6457 (lshrdi3): Use shift6_operand.
6458 (shrpsi4, shrpdi4): New insn patterns.
6459 (extzv): Delete expander.
6460 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
6461 predicates in unamed zero extract patterns. Tighten common constraint.
6462 (extv): Delete expander.
6463 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
6464 predicates in unamed sign extract patterns. Tighten common constraint.
6465 (insv): Delete expander.
6466 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
6467 predicates in unamed insert patterns. Tighten common constraint.
6468 Change uint32_operand predicate to uint6_operand predicate in unamed
6469 DImode pattern to insert constant values of type 1...1xxxx.
6471 2013-01-04 Jan Hubicka <jh@suse.cz>
6473 PR tree-optimization/55823
6474 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
6477 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6478 Uros Bizjak <ubizjak@gmail.com>
6480 PR rtl-optimization/55845
6481 * df-problems.c (can_move_insns_across): Stop scanning at
6482 volatile_insn_p source instruction or give up if
6483 across_from .. across_to range contains any volatile_insn_p
6486 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
6488 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
6489 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
6491 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
6492 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
6494 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6497 * asan.c (asan_clear_shadow): New function.
6498 (asan_emit_stack_protection): Use it.
6500 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
6502 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
6503 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
6504 with tab instead of space.
6506 2013-01-08 Nick Clifton <nickc@redhat.com>
6508 * config/rl78/rl78.c (rl78_expand_prologue): Always select
6509 register bank 0 at the start of an interrupt handler.
6510 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
6513 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
6515 * config/aarch64/aarch64-simd.md
6516 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
6517 (aarch64_simd_bsl): Likewise.
6518 (aarch64_vcond_internal<mode>): Likewise.
6519 (vcond<mode><mode>): Likewise.
6520 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
6521 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
6523 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
6525 * config/aarch64/aarch64-builtins.c
6526 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
6528 2013-01-08 Martin Jambor <mjambor@suse.cz>
6531 * tree-sra.c (analyze_access_subtree): Return true also after
6532 potentially creating a debug-only replacement.
6534 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6537 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
6539 PR tree-optimization/54120
6540 * tree-vrp.c (range_fits_type_p): Don't allow
6541 src_precision < precision from signed vr to unsigned_p
6542 if vr->min or vr->max is negative.
6543 (simplify_float_conversion_using_ranges): Test can_float_p
6544 against CODE_FOR_nothing.
6546 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6547 Richard Biener <rguenther@suse.de>
6550 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
6551 types instead of just INTEGER_TYPE types.
6553 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
6555 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
6558 2013-01-07 Steve Ellcey <sellcey@mips.com>
6561 * config/mips/mips.opt: Change mad to mmad to match documentation.
6563 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6566 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
6569 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6572 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
6573 (avr_addrspace_t): Add .section_name field.
6574 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
6576 (avr_addrspace): Same. Initialize .section_name. Remove last
6577 NULL entry. Put __memx into .progmemx.data.
6578 (progmem_section_prefix): Remove.
6579 (avr_asm_init_sections): No need to initialize progmem_section.
6580 (avr_asm_named_section): Use avr_addrspace[].section_name to get
6581 section name prefix.
6582 (avr_asm_select_section): Ditto. And use get_unnamed_section to
6583 retrieve the progmem section.
6584 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
6585 boundary to run over avr_addrspace[].
6586 (avr_register_target_pragmas): Ditto.
6588 2013-01-06 Jakub Jelinek <jakub@redhat.com>
6590 * varasm.c (output_constant_def_contents): For asan_protect_global
6591 protected strings, adjust DECL_ALIGN if needed, before testing for
6593 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
6594 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
6596 (output_object_block): For asan protected decls, emit asan padding
6597 after their contents.
6598 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
6599 (asan_finish_file): Test it here instead.
6601 2013-01-07 Nick Clifton <nickc@redhat.com>
6602 Matthias Klose <doko@debian.org>
6603 Doug Kwan <dougkwan@google.com>
6604 H.J. Lu <hongjiu.lu@intel.com>
6607 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
6609 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
6611 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
6613 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
6615 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
6617 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6620 * doc/install.texi (Cross-Compiler-Specific Options): Document
6623 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
6625 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
6626 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
6627 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
6628 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
6629 vqmovun_high_s64): Fix source operand number and update copyright.
6631 2013-01-07 Richard Biener <rguenther@suse.de>
6634 * gimple.h (gimple_call_builtin_p): New overload.
6635 * gimple.c (validate_call): New function.
6636 (gimple_call_builtin_p): Likewise.
6637 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6638 Use gimple_call_builtin_p.
6639 (find_func_clobbers): Likewise.
6640 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
6641 (strlen_optimize_stmt): Likewise.
6643 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
6645 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
6646 (vld1q_dup_*): Likewise.
6648 (vld1q_*): Likewise.
6649 (vld1_lane_*): Likewise.
6650 (vld1q_lane_*): Likewise.
6652 2013-01-07 Richard Biener <rguenther@suse.de>
6654 * lto-streamer.h (LTO_minor_version): Bump to 2.
6656 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
6658 * config/aarch64/aarch64-protos.h
6659 (aarch64_const_double_zero_rtx_p): Rename to...
6660 (aarch64_float_const_zero_rtx_p): ...this.
6661 (aarch64_float_const_representable_p): New.
6662 (aarch64_output_simd_mov_immediate): Likewise.
6663 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
6664 move immediate case.
6665 * config/aarch64/aarch64.c
6666 (aarch64_const_double_zero_rtx_p): Rename to...
6667 (aarch64_float_const_zero_rtx_p): ...this.
6668 (aarch64_print_operand): Allow printing of new constants.
6669 (aarch64_valid_floating_const): New.
6670 (aarch64_legitimate_constant_p): Check for valid floating-point
6672 (aarch64_simd_valid_immediate): Likewise.
6673 (aarch64_vect_float_const_representable_p): New.
6674 (aarch64_float_const_representable_p): Likewise.
6675 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
6676 (aarch64_output_simd_mov_immediate): New.
6677 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
6678 (*movdf_aarch64): Likewise.
6679 * config/aarch64/constraints.md (Ufc): New.
6680 (Y): call aarch64_float_const_zero_rtx.
6681 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
6683 2013-01-07 Richard Biener <rguenther@suse.de>
6685 PR tree-optimization/55888
6686 PR tree-optimization/55862
6687 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
6688 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
6689 not if it is contained therein.
6691 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6693 * config/avr/t-avr: Typo.
6695 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6698 * config/avr/t-avr: Don't automatically rebuild
6699 $(srcdir)/config/avr/t-multilib
6700 $(srcdir)/config/avr/avr-tables.opt
6701 $(srcdir)/doc/avr-mmcu.texi
6702 (avr-mcus): New phony target to build them on request.
6703 (s-avr-mlib, s-avr-mmcu-texi): Remove.
6704 * avr/avr-mcus.def: Adjust comments.
6706 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
6708 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
6710 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
6712 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
6714 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
6716 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
6718 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
6720 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
6721 to generate profiling.
6722 * config/rs6000/aix64.h (LIB_SPEC): Same.
6724 2013-01-04 Andrew Pinski <apinski@cavium.com>
6726 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
6728 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6730 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
6732 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
6734 (ix86_expand_move): Ditto.
6735 (ix86_zero_extend_to_Pmode): Ditto.
6736 (ix86_expand_call): Ditto.
6737 (ix86_expand_special_args_builtin): Ditto.
6738 (ix86_expand_builtin): Ditto.
6740 2013-01-04 Richard Biener <rguenther@suse.de>
6742 PR tree-optimization/55862
6743 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
6744 translating them through PHI nodes.
6746 2013-01-04 Martin Jambor <mjambor@suse.cz>
6748 PR tree-optimization/55755
6749 * tree-sra.c (sra_modify_assign): Do not check that an access has no
6750 children when trying to avoid producing a VIEW_CONVERT_EXPR.
6752 2013-01-04 Marek Polacek <polacek@redhat.com>
6755 * opts.c (default_options_optimization): Clarify error message.
6757 2013-01-04 Richard Biener <rguenther@suse.de>
6760 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
6763 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6766 * config/pa/pa.md (movsi): Revert previous change.
6767 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
6770 2013-01-03 Richard Henderson <rth@redhat.com>
6772 * config/i386/i386.c (ix86_expand_move): Always assign to op1
6773 after eliminating TLS symbols.
6775 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
6778 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
6779 * graphite-poly.c (debug_gmp_value): Likewise.
6781 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
6784 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
6785 selected code model, define __code_mode_small__, __code_model_medium__,
6786 __code_model_large__, __code_model_32__ or __code_model_kernel__.
6787 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
6788 xchg temporary register with %k. Declare temporary register as
6790 [__x86_64__]: For medium and large code models, preserve %rbx register.
6792 2013-01-03 Richard Biener <rguenther@suse.de>
6794 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
6795 (dump_subscript): Adjust.
6796 (finalize_ddr_dependent): Do not dump redundant info.
6797 (analyze_siv_subscript): Adjust.
6798 (subscript_dependence_tester): Likewise.
6799 (compute_affine_dependence): Likewise.
6801 2013-01-03 Richard Biener <rguenther@suse.de>
6804 2013-01-03 Richard Biener <rguenther@suse.de>
6806 PR tree-optimization/55857
6807 * tree-vect-stmts.c (vectorizable_load): Do not setup
6808 re-alignment for invariant loads.
6810 2013-01-02 Richard Biener <rguenther@suse.de>
6812 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
6813 invariant load do not generate a vector load from the scalar location.
6815 2013-01-03 Richard Biener <rguenther@suse.de>
6817 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
6818 for not vectorizing.
6819 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
6820 not build INDIRECT_REFs, call get_name once only.
6821 (vect_create_data_ref_ptr): Likewise. Dump base object kind
6822 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
6824 2013-01-03 Richard Biener <rguenther@suse.de>
6826 PR tree-optimization/55857
6827 * tree-vect-stmts.c (vectorizable_load): Do not setup
6828 re-alignment for invariant loads.
6830 2013-01-03 Richard Biener <rguenther@suse.de>
6833 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
6834 prefer a built-in decl.
6836 2013-01-03 Jakub Jelinek <jakub@redhat.com>
6838 * gcc.c (process_command): Update copyright notice dates.
6839 * gcov.c (print_version): Likewise.
6840 * gcov-dump.c (print_version): Likewise.
6842 PR rtl-optimization/55838
6843 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
6844 iv0.step, iv1.step and step.
6846 2013-01-03 Jakub Jelinek <jakub@redhat.com>
6847 Marc Glisse <marc.glisse@inria.fr>
6849 PR tree-optimization/55832
6850 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
6851 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
6852 integer_{one,zero}_node.
6854 2013-01-03 Jakub Jelinek <jakub@redhat.com>
6857 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
6858 * var-tracking.c (reverse_op): Don't add reverse ops to
6859 VALUEs that have already
6860 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
6862 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
6864 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
6866 2013-01-02 Teresa Johnson <tejohnson@google.com>
6868 * dumpfile.c (dump_loc): Print filename with location.
6869 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
6870 new location_t parameter to emit complete unroll message with
6872 (canonicalize_loop_induction_variables): Compute loops location
6873 and pass to try_unroll_loop_completely.
6874 * loop-unroll.c (report_unroll_peel): New function.
6875 (peel_loops_completely): Use new dump format with location
6876 for main dumpfile message, and invoke report_unroll_peel on success.
6877 (decide_unrolling_and_peeling): Ditto.
6878 (decide_peel_once_rolling): Remove old dumpfile message subsumed
6879 by report_unroll_peel.
6880 (decide_peel_completely): Ditto.
6881 (decide_unroll_constant_iterations): Ditto.
6882 (decide_unroll_runtime_iterations): Ditto.
6883 (decide_peel_simple): Ditto.
6884 (decide_unroll_stupid): Ditto.
6885 * cfgloop.c (get_loop_location): New function.
6886 * cfgloop.h (get_loop_location): Declare.
6888 2013-01-02 Sriraman Tallam <tmsriram@google.com>
6890 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
6893 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6896 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
6897 BLKmode objects when EXPAND_MEMORY is specified.
6899 2013-01-02 Sriraman Tallam <tmsriram@google.com>
6901 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
6903 (fold_builtin_cpu): Do not share cpu model decls across statements.
6905 2013-01-02 Jason Merrill <jason@redhat.com>
6908 * tree.c (build_array_type_1): Revert earlier change.
6910 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
6912 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
6914 * config/aarch64/aarch64-tune.md: Re-generate.
6916 2013-01-02 Richard Biener <rguenther@suse.de>
6918 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
6919 invariant load do not generate a vector load from the scalar location.
6921 2013-01-02 Richard Biener <rguenther@suse.de>
6924 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
6925 * configure: Regenerate.
6927 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6929 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
6930 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
6931 (expand_builtin_int_roundingfn_2): Keep the original target around
6932 for the fallback case.
6934 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6936 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
6937 to be clear for sign changes.
6939 2013-01-01 Jan Hubicka <jh@suse.cz>
6941 * ipa-inline-analysis.c: Fix formatting.
6943 2013-01-01 Jakub Jelinek <jakub@redhat.com>
6945 PR tree-optimization/55831
6946 * tree-vect-loop.c (get_initial_def_for_induction): Use
6947 gsi_after_labels instead of gsi_start_bb.
6949 Copyright (C) 2013 Free Software Foundation, Inc.
6951 Copying and distribution of this file, with or without modification,
6952 are permitted in any medium without royalty provided the copyright
6953 notice and this notice are preserved.