1 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
4 2014-01-30 Jakub Jelinek <jakub@redhat.com>
6 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
8 2014-01-31 Richard Henderson <rth@redhat.com>
11 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
12 until after else_eh is processed.
14 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
16 Backport from mainline
17 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
18 comparison_operator with ordered_comparison_operator.
20 2014-01-25 Walter Lee <walt@tilera.com>
22 Backport from mainline
23 2014-01-25 Walter Lee <walt@tilera.com>
25 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
26 avoid clobbering a live register.
28 2014-01-25 Walter Lee <walt@tilera.com>
30 Backport from mainline
31 2014-01-25 Walter Lee <walt@tilera.com>
33 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
35 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
36 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
38 2014-01-25 Walter Lee <walt@tilera.com>
40 Backport from mainline
41 2014-01-25 Walter Lee <walt@tilera.com>
43 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
44 insns before bundling.
45 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
47 2014-01-25 Walter Lee <walt@tilera.com>
49 Backport from mainline
50 2014-01-25 Walter Lee <walt@tilera.com>
52 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
53 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
54 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
56 2014-01-25 Walter Lee <walt@tilera.com>
58 Backport from mainline
59 2014-01-25 Walter Lee <walt@tilera.com>
61 * config/tilepro/tilepro.md (ctzdi2): Use register_operand
66 2014-01-25 Walter Lee <walt@tilera.com>
68 Backport from mainline
69 2014-01-25 Walter Lee <walt@tilera.com>
71 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
72 (TARGET_EXPAND_TO_RTL_HOOK): Define.
74 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
76 Backport from mainline
77 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
80 * config/i386/i386.md (pushsf splitter): Get stack adjustment
81 from push operand if code of push isn't PRE_DEC.
83 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
85 Backport from mainline.
86 * config/microblaze/microblaze.md: Add trap insn and attribute
88 2014-01-23 Marek Polacek <polacek@redhat.com>
90 Backport from mainline
91 2013-10-21 Marek Polacek <polacek@redhat.com>
94 * fold-const.c (fold_range_test): Return 0 if the type is not
97 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
99 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
101 2014-01-22 Uros Bizjak <ubizjak@gmail.com>
103 Backport from mainline
104 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
106 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
107 for SImode_address_operand operands, having only a REG argument.
109 2014-01-20 Jakub Jelinek <jakub@redhat.com>
112 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
113 if operands[1] is a REG or ZERO_EXTEND of a REG.
115 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
116 H.J. Lu <hongjiu.lu@intel.com>
119 * config/i386/i386.md (*lea<mode>): Zero-extend return register
120 to DImode for zero-extended addresses.
122 2014-01-21 Andrew Pinski <apinski@cavium.com>
123 Steve Ellcey <sellcey@mips.com>
126 * config/mips/mips.c (mips_print_operand): Check operand mode instead
129 2014-01-21 Andrey Belevantsev <abel@ispras.ru>
131 Backport from mainline
132 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
134 PR rtl-optimization/57422
135 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
138 2014-01-20 Jakub Jelinek <jakub@redhat.com>
141 * tree.h (fold_builtin_strcat): New prototype.
142 * builtins.c (fold_builtin_strcat): No longer static. Add len
143 argument, if non-NULL, don't call c_strlen. Optimize
144 directly into __builtin_memcpy instead of __builtin_strcpy.
145 (fold_builtin_2): Adjust fold_builtin_strcat caller.
146 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
148 2014-01-20 Richard Biener <rguenther@suse.de>
151 * builtins.c (fold_builtin_strcat): Remove case better handled
152 by tree-ssa-strlen.c.
154 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
156 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
157 long non-pic millicode calls.
159 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
161 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
162 call to $$dyncall when TARGET_LONG_CALLS is true.
164 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
166 Backport from mainline
167 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
170 * config/i386/i386.c (type_natural_mode): Add a bool parameter
171 to indicate if type is used for function return value. Warn
172 ABI change if the vector mode isn't available for function
174 (ix86_function_arg_advance): Pass false to type_natural_mode.
175 (ix86_function_arg): Likewise.
176 (ix86_gimplify_va_arg): Likewise.
177 (function_arg_32): Don't warn ABI change.
178 (ix86_function_value): Pass true to type_natural_mode.
179 (ix86_return_in_memory): Likewise.
180 (ix86_struct_value_rtx): Removed.
181 (TARGET_STRUCT_VALUE_RTX): Likewise.
183 2014-01-17 Charles Baylis <charles.baylis@linaro.org>
185 Backport from mainline
186 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
189 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
191 * config/arm/ldmstm.md: Regenerate.
193 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
196 * config/arm/predicates.md (arm_hard_general_register_operand):
198 (arm_hard_register_operand): Remove.
199 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
201 * config/arm/ldmstm.md: Regenerate.
203 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
206 * config/arm/predicates.md (vfp_hard_register_operand): New predicate.
207 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
208 vfp_hard_register_operand.
210 2014-01-17 Kugan Vivekanandarajah <kuganv@linaro.org>
212 Backport from mainline
213 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
214 Kugan Vivekanandarajah <kuganv@linaro.org>
217 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
220 2014-01-17 Terry Guo <terry.guo@arm.com>
223 * config/arm/arm.md (prefetch): Set insn type attribute to load1.
225 2014-01-16 Jakub Jelinek <jakub@redhat.com>
228 * config/i386/i386.c (ix86_expand_builtin): If target doesn't
229 satisfy operand 0 predicate for gathers, use a new pseudo as
232 2014-01-16 Richard Henderson <rth@redhat.com>
235 * reginfo.c (global_regs_decl): Globalize.
236 * rtl.h (global_regs_decl): Declare.
237 * ira.c (do_reload): Diagnose frame_pointer_needed and it
238 reserved via global_regs.
240 2014-01-16 Peter Bergner <bergner@vnet.ibm.com>
242 Backport from mainline
243 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
245 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
246 VALID_AVX256_REG_OR_OI_MODE.
248 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
251 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
252 looking for widest mode.
254 2014-01-16 Marek Polacek <polacek@redhat.com>
256 Backported from mainline
257 2014-01-16 Marek Polacek <polacek@redhat.com>
260 * gimple-low.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
261 it is error_mark_node.
263 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
266 * config/s390/s390.c (s390_preferred_reload_class): Don't return
267 ADDR_REGS for invalid symrefs in non-PIC code.
269 2014-01-14 Uros Bizjak <ubizjak@gmail.com>
272 2014-01-08 Uros Bizjak <ubizjak@gmail.com>
274 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
275 from prefetch_block tune setting.
277 2014-01-13 Jakub Jelinek <jakub@redhat.com>
279 Backported from mainline
280 2014-01-10 Jakub Jelinek <jakub@redhat.com>
282 PR tree-optimization/59745
283 * tree-predcom.c (tree_predictive_commoning_loop): Call
284 free_affine_expand_cache if giving up because components is NULL.
286 2014-01-10 Yufeng Zhang <yufeng.zhang@arm.com>
288 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
289 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
290 rtx is const0_rtx or not.
292 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
294 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
295 extraction in good case.
297 2014-01-10 Huacai Chen <chenhc@lemote.com>
299 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
300 kernel strings for Loongson-2E/2F/3A.
302 2014-01-10 Richard Biener <rguenther@suse.de>
304 PR tree-optimization/59715
305 * tree-flow.h (split_critical_edges): Declare.
306 * tree-cfg.c (split_critical_edges): Export.
307 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
309 2014-01-09 Richard Sandiford <rdsandiford@googlemail.com>
311 * config/mips/mips.h (ISA_HAS_WSBH): Define.
312 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
314 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
316 2014-01-09 Richard Sandiford <rdsandiford@googlemail.com>
318 PR rtl-optimization/59137
319 * reorg.c (steal_delay_list_from_target): Call update_block for
321 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
323 2014-01-09 Richard Sandiford <rdsandiford@googlemail.com>
326 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
328 * config/mips/mips.c (mips_truncated_op_cost): New function.
329 (mips_rtx_costs): Adjust test for BADDU.
330 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
332 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
334 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
335 (*baddu_si): ...this new pattern.
337 2014-01-09 Richard Biener <rguenther@suse.de>
339 Backport from mainline
340 2013-11-18 Richard Biener <rguenther@suse.de>
342 PR tree-optimization/59125
343 PR tree-optimization/54570
344 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
345 is not complete do not treat component-references with offset zero
346 but different fields as equal.
347 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
348 (compute_object_sizes): Apply TLC. Propagate the constant
349 results into all uses and fold their stmts.
350 * passes.def (pass_all_optimizations): Move pass_object_sizes
351 after the first pass_forwprop and before pass_fre.
353 2013-12-03 Jakub Jelinek <jakub@redhat.com>
355 PR tree-optimization/59362
356 * tree-object-size.c (object_sizes): Change into array of
357 vec<unsigned HOST_WIDE_INT>.
358 (compute_builtin_object_size): Check computed bitmap for
359 non-NULL instead of object_sizes. Call safe_grow on object_sizes
360 vector if new SSA_NAMEs appeared.
361 (init_object_sizes): Check computed bitmap for non-NULL.
362 Call safe_grow on object_sizes elements instead of initializing
364 (fini_object_sizes): Call release on object_sizes elements, don't
367 2014-01-09 Richard Earnshaw <rearnsha@arm.com>
369 PR rtl-optimization/54300
370 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
371 outputs in a single-set are killed from the value chains.
373 2014-01-09 Jakub Jelinek <jakub@redhat.com>
375 PR rtl-optimization/59724
376 * ifcvt.c (cond_exec_process_if_block): Don't call
377 flow_find_head_matching_sequence with 0 longest_match.
378 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
379 non-active insns if !stop_after.
380 (try_head_merge_bb): Revert 2014-01-07 changes.
382 2014-01-09 Hans-Peter Nilsson <hp@axis.com>
384 Backport from mainline
385 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
388 * config/cris/predicates.md (cris_nonsp_register_operand):
389 New define_predicate.
390 * config/cris/cris.md: Replace register_operand with
391 cris_nonsp_register_operand for destinations in all
392 define_splits where a register is set more than once.
394 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
396 Backport from mainline
397 2013-12-25 H.J. Lu <hongjiu.lu@intel.com>
400 * config/i386/i386.c (struct ptt): Add a field for processor name.
401 (processor_target_table): Sync with processor_type. Add
403 (cpu_names): Removed.
404 (ix86_option_override_internal): Default x_ix86_tune_string
405 to processor_target_table[TARGET_CPU_DEFAULT].name.
406 (ix86_function_specific_print): Assert arch and tune <
407 PROCESSOR_max. Use processor_target_table to print arch and
409 * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
411 (target_cpu_default): Removed.
412 (processor_type): Reordered.
414 2014-01-08 Uros Bizjak <ubizjak@gmail.com>
416 Backport from mainline
417 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
419 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
420 from prefetch_block tune setting.
421 (nocona_cost): Correct size of prefetch block to 64.
423 2014-01-08 Martin Jambor <mjambor@suse.cz>
426 * ipa-prop.c (ipa_compute_jump_functions): Bail out if not optimizing.
427 (parm_preserved_before_stmt_p): Assume modification present when not
430 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
433 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
434 for 14-bit register offsets when INT14_OK_STRICT is false.
436 2014-01-07 Roland Stigge <stigge@antcom.de>
437 Michael Meissner <meissner@linux.vnet.ibm.com>
440 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
441 Only check TFmode for SPE constants. Don't check TImode or TDmode.
443 2014-01-07 Jakub Jelinek <jakub@redhat.com>
445 PR rtl-optimization/58668
446 * cfgcleanup.c (flow_find_cross_jump): Don't count
447 any jumps if dir_p is NULL. Remove p1 variable and make USE/CLOBBER
448 check consistent with other places.
449 (flow_find_head_matching_sequence): Don't count USE or CLOBBER insns.
450 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
452 * ifcvt.c (count_bb_insns): Don't count USE or CLOBBER insns.
454 2014-01-07 Mike Stump <mikestump@comcast.net>
455 Jakub Jelinek <jakub@redhat.com>
458 * tree.h (struct tree_optimization_option): Change optabs
459 type from unsigned char * to void *.
460 * optabs.c (init_tree_optimization_optabs): Adjust
461 TREE_OPTIMIZATION_OPTABS initialization.
463 2014-01-07 Jakub Jelinek <jakub@redhat.com>
465 Backported from mainline
466 2013-12-16 Jakub Jelinek <jakub@redhat.com>
470 * gimple.h (walk_stmt_load_store_addr_fn): New typedef.
471 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
473 * gimple.c (walk_stmt_load_store_ops): Likewise.
474 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
475 calls to supply the gimple operand containing the base tree
476 as an extra argument.
477 * tree-ssa-ter.c (find_ssaname, find_ssaname_in_store): New helper
479 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
480 same_root_var if USE is used somewhere in the stores of the stmt.
481 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
482 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
483 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
484 check_ipa_store): Likewise.
485 * gimple.c (gimple_ior_addresses_taken_1): Likewise.
486 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
487 (verify_non_ssa_vars, visit_bb): Adjust their callers.
488 * cfgexpand.c (add_scope_conflicts_1): Use
489 walk_stmt_load_store_addr_fn type for visit variable.
490 (visit_op, visit_conflict): Remove name of the stmt
491 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
492 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
493 argument and ATTRIBUTE_UNUSED.
494 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
495 unnamed tree argument.
497 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
499 * config/m68k/m68k.c (handle_move_double): Handle pushes with
500 overlapping registers also for registers other than the stack
503 2014-01-03 Jakub Jelinek <jakub@redhat.com>
506 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
509 2014-01-01 Jakub Jelinek <jakub@redhat.com>
511 PR rtl-optimization/59647
512 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
513 new_rtx into UNSIGNED_FLOAT rtxes.
515 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
517 * doc/invoke.texi (output file options): Document -fada-spec-parent.
519 2013-12-26 Uros Bizjak <ubizjak@gmail.com>
521 * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
523 2013-12-20 Jakub Jelinek <jakub@redhat.com>
526 Backported from mainline
527 2013-08-19 Dehao Chen <dehao@google.com>
529 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
531 2013-12-19 James Greenhalgh <james.greenhalgh@arm.com>
533 Backport from Mainline.
534 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
536 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
540 * config/aarch64/aarch64-simd.md
542 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
543 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
544 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
545 (cstore<mode>_neg): ...This.
546 * config/aarch64/iterators.md
548 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
550 (UCOMPARISONS): Likewise.
551 (optab): Add missing comparisons.
559 (V_cmp_result): Add DF, SF modes.
560 (v_cmp_result): Likewise.
563 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
565 Partial Backport from mainline.
566 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
568 * config/aarch64/arm_neon.h
569 (vc<eq, lt, le, gt, ge, tst><qsd>_<u><8,16,32,64>): Remap
570 to builtins or C as appropriate.
572 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
573 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
575 Backport from mainline
576 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
577 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
579 (s390_hotpatch_trampoline_halfwords_max): New constant
580 (s390_hotpatch_trampoline_halfwords): New static variable
581 (get_hotpatch_attribute): New function
582 (s390_handle_hotpatch_attribute): New function
583 (s390_attribute_table): New target specific attribute table to implement
584 the hotpatch attribute
585 (s390_option_override): Parse hotpatch options
586 (s390_function_num_hotpatch_trampoline_halfwords): New function
587 (s390_can_inline_p): Implement target hook to
588 suppress hotpatching for explicitly inlined functions
589 (s390_asm_output_function_label): Generate hotpatch prologue
590 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table
591 (TARGET_CAN_INLINE_P): Define to implement target hook
592 * config/s390/s390.opt (mhotpatch): New options -mhotpatch, -mhotpatch=
593 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
595 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
596 function label generation for hotpatching
597 (FUNCTION_BOUNDARY): Align functions to eight bytes
598 * doc/extend.texi: Document hotpatch attribute
599 * doc/invoke.texi: Document -mhotpatch option
601 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
603 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
605 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
608 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
611 2013-12-12 Jakub Jelinek <jakub@redhat.com>
614 * gimplify.c (omp_check_private): Add copyprivate argument, if it
615 is true, don't check omp_privatize_by_reference.
616 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
617 decl is private in outer context. Adjust omp_check_private caller.
619 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
621 PR rtl-optimization/58295
622 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
623 WORD_REGISTER_OPERATIONS targets.
625 2013-12-10 Kai Tietz <ktietz@redhat.com>
628 * config/i386/i386.c (ix86_expand_prologue): Address saved
629 registers stack-relative, not via frame-pointer.
631 2013-12-09 Alan Modra <amodra@gmail.com>
634 2013-12-05 Alan Modra <amodra@gmail.com>
635 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
637 <recursive call for build != host>: Clear GMPINC. Don't bother
639 * configure: Regenerate.
641 2013-12-08 Uros Bizjak <ubizjak@gmail.com>
643 Backport from mainline
644 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
647 * config/i386/i386.c (type_natural_mode): Properly handle
648 size 8 for !TARGET_64BIT.
650 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
652 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
654 2013-12-06 Jakub Jelinek <jakub@redhat.com>
656 PR tree-optimization/59388
657 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
658 gimplify tem after stmt rather than before it.
660 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
662 Backport from mainline
663 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
667 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
668 Prefix function names with 'sh_'. Make them non-static.
669 * config/sh/sh-protos.h (sh_disp_addr_displacement,
670 sh_max_mov_insn_displacement): Add declarations.
671 * config/sh/constraints.md (Q): Reject QImode.
672 (Sdd): Use match_code "mem".
673 (Snd): Fix erroneous matching of non-memory operands.
674 * config/sh/predicates.md (short_displacement_mem_operand): New
676 (general_movsrc_operand): Disallow PC relative QImode loads.
677 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
678 (*movqi, *movhi): Merge both insns into...
679 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
680 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
681 on the operand types.
683 2013-12-06 Richard Biener <rguenther@suse.de>
685 Backport from mainline
686 2013-11-29 Richard Biener <rguenther@suse.de>
688 PR tree-optimization/59334
689 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
692 2013-11-28 Richard Biener <rguenther@suse.de>
694 PR tree-optimization/59330
695 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
696 and fix delayed marking of free calls not necessary.
698 2013-12-06 Richard Biener <rguenther@suse.de>
700 Backport from mainline
701 2013-11-27 Richard Biener <rguenther@suse.de>
703 PR tree-optimization/59288
704 * tree-vect-loop.c (get_initial_def_for_induction): Do not
705 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
707 2013-11-19 Richard Biener <rguenther@suse.de>
709 PR tree-optimization/59164
710 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust
711 check whether we can create an epilogue loop to reflect the
712 cases where we create one.
714 2013-09-05 Richard Biener <rguenther@suse.de>
716 PR tree-optimization/58137
717 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
718 Do not create vectors of pointers.
719 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
720 types for the components of the vector initializer.
721 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
722 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
724 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
728 * config/sh/sh.md (*cbranch_t): Check that there are no labels between
729 the s1 insn and the testing insn. Remove REG_DEAD note from s1 insn.
731 2013-12-05 Richard Biener <rguenther@suse.de>
733 Backport from mainline
734 2013-11-19 Richard Biener <rguenther@suse.de>
737 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
738 loads into stmts that may clobber it.
740 2013-12-04 Jakub Jelinek <jakub@redhat.com>
742 PR rtl-optimization/58726
743 * combine.c (force_to_mode): Fix comment typo. Don't destructively
744 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
746 2013-12-04 Jakub Jelinek <jakub@redhat.com>
747 Uros Bizjak <ubizjak@gmail.com>
750 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
751 !TARGET_AVX there is misaligned MEM operand with vector mode
752 and get_attr_ssememalign is 0, return false.
753 (ix86_expand_special_args_builtin): Add get_pointer_alignment
754 computed alignment and for non-temporal loads/stores also
755 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
757 (<sse>_loadu<ssemodesuffix><avxsizesuffix>,
758 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
759 <sse2>_loaddqu<avxsizesuffix>,
760 <sse2>_storedqu<avxsizesuffix>, <sse3>_lddqu<avxsizesuffix>,
761 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
762 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
763 *vec_interleave_highv2df, *vec_interleave_lowv2df,
764 *vec_extractv2df_1_sse, sse2_loadhpd, sse2_loadlpd, sse2_movsd,
765 sse4_1_<code>v8qiv8hi2, sse4_1_<code>v4qiv4si2,
766 sse4_1_<code>v4hiv4si2, sse4_1_<code>v2qiv2di2,
767 sse4_1_<code>v2hiv2di2, sse4_1_<code>v2siv2di2, sse4_2_pcmpestr,
768 *sse4_2_pcmpestr_unaligned, sse4_2_pcmpestri, sse4_2_pcmpestrm,
769 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned,
770 sse4_2_pcmpistri, sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add
771 ssememalign attribute.
772 * config/i386/i386.md (ssememalign): New define_attr.
774 2013-12-03 Jakub Jelinek <jakub@redhat.com>
777 * gimplify.c (nonlocal_vla_vars): New variable.
778 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
779 nonlocal_vla_vars chain.
780 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
781 if outer_bind has DECL_INITIAL (current_function_decl) block.
784 * optabs.c (emit_conditional_move): Save and restore
785 pending_stack_adjust and stack_pointer_delta if cmove can't be used.
787 2013-12-02 Jakub Jelinek <jakub@redhat.com>
789 PR tree-optimization/59358
790 * tree-vrp.c (union_ranges): To check for the partially
791 overlapping ranges or adjacent ranges, also compare *vr0max
794 2013-12-02 Richard Biener <rguenther@suse.de>
796 PR tree-optimization/59139
797 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
799 (get_val_for): Use gcc_checking_asserts.
801 2013-11-27 Tom de Vries <tom@codesourcery.com>
802 Marc Glisse <marc.glisse@inria.fr>
805 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
807 * gimplify.c (gimple_fold_indirect_ref): Same.
809 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
811 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
814 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
816 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
818 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
820 Backport from mainline
821 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
823 * config/arm/iterators.md (vrint_conds): New int attribute.
824 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
825 (smax<mode>3): Likewise.
826 (smin<mode>3): Likewise.
828 2013-11-28 Uros Bizjak <ubizjak@gmail.com>
830 Backport from mainline
831 2013-11-27 Uros Bizjak <ubizjak@gmail.com>
832 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
835 * gcc.target/i386/xop-frczX.c: New test.
837 2013-11-28 Terry Guo <terry.guo@arm.com>
839 Backport mainline r205391
840 2013-11-26 Terry Guo <terry.guo@arm.com>
842 * config/arm/arm.c (require_pic_register): Handle high pic base
843 register for thumb-1.
844 (arm_load_pic_register): Also initialize high pic base register.
845 * doc/invoke.texi: Update documentation for option -mpic-register.
847 2013-11-27 Jakub Jelinek <jakub@redhat.com>
849 Backported from mainline
850 2013-11-26 Jakub Jelinek <jakub@redhat.com>
852 PR tree-optimization/59014
853 * tree-vrp.c (register_edge_assert_for_1): Don't look
854 through conversions from non-integral types or through
855 narrowing conversions.
857 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
860 * expr.c (emit_group_store): Don't write past the end of the structure.
861 (store_bit_field): Fix formatting.
863 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
865 Backport from mainline
866 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
868 * config/sparc/t-rtems: Add leon3 multilibs.
870 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
872 Backport from mainline
873 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
875 * configure.ac: Add GAS check for LEON instructions on SPARC.
876 * configure: Regenerate.
877 * config.in: Likewise.
878 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
880 * config/sparc/sparc.opt (LEON, LEON3): New masks.
881 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
883 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
884 (AS_LEON_FLAG): New macro.
885 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
886 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
887 Deal with LEON and LEON3 for the memory model.
888 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
889 (atomic_compare_and_swap<mode>_1): Likewise.
890 (*atomic_compare_and_swap<mode>_1): Likewise.
892 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
894 Backport from mainline
895 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
897 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
899 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
901 Backport from mainline
902 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
904 * config.gcc (sparc*-*-*): Accept leon3 processor.
905 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
906 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
907 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
908 * config/sparc/sparc.opt (enum processor_type): Add leon3.
909 (mfix-ut699): Adjust comment.
910 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
911 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
912 (CPP_CPU_SPEC): Likewise.
913 (ASM_CPU_SPEC): Likewise.
914 * config/sparc/sparc.c (leon3_cost): New constant.
915 (sparc_option_override): Add leon3 support.
916 (mem_ref): New function.
917 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
918 (sparc_do_work_around_errata): Look into the instruction in the delay
919 slot and adjust accordingly. Add fix for the data cache nullify issues
920 of the UT699. Change insertion position for the NOP.
921 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
922 (leon3_load): New reservation.
923 (leon_store): Bump latency to 2.
924 (grfpu): New automaton.
925 (grfpu_alu): New unit.
926 (grfpu_ds): Likewise.
927 (leon_fp_alu): Adjust.
928 (leon_fp_mult): Delete.
929 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
930 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
931 * config/sparc/sparc.md (cpu): Add leon3.
932 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
934 (atomic_test_and_set): Likewise.
937 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
939 Backport from mainline
940 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
942 * config/sparc/sparc.c: Include tree-pass.h.
943 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
944 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
945 head of file. Change return type. Split off gate function.
946 (sparc_gate_work_around_errata): New function.
947 (pass_work_around_errata): New pass definition.
948 (insert_pass_work_around_errata) New pass insert definition to
949 insert pass_work_around_errata just after delayed-branch scheduling.
950 (sparc_option_override): Insert the pass.
951 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
953 2013-11-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
955 Backport from mainline
956 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
958 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
959 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
960 mode if the instruction isn't available in the original mode.
961 * config/sparc/sparc.opt (mfix-ut699): New option.
962 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
963 (divdf3): Turn into expander.
964 (divdf3_nofix): New insn.
965 (divdf3_fix): Likewise.
966 (divsf3): Disable if -mfix-ut699.
967 (sqrtdf2): Turn into expander.
968 (sqrtdf2_nofix): New insn.
969 (sqrtdf2_fix): Likewise.
970 (sqrtsf2): Disable if -mfix-ut699.
972 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
974 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
976 2013-11-21 Zhenqiang Chen <zhenqiang.chen@linaro.org>
979 Backport from mainline: r197467 and r198999.
980 2013-04-03 Jeff Law <law@redhat.com>
982 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
983 (lra-eliminations.o): Likewise.
985 2013-05-16 Jeff Law <law@redhat.com>
987 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
989 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
992 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
993 Make sure neg2_ovf is set before being used.
995 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
996 Dominik Vogt <vogt@linux.vnet.ibm.com>
998 Backport from mainline
999 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
1000 int comparisons with an out of range condition code.
1001 (s390_optimize_nonescaping_tx): Skip empty BBs.
1002 Generate the new tbegin RTX when removing the FPR clobbers (with
1004 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
1005 result before doing the retry calculations.
1006 (s390_init_builtins): Make tbegin "returns_twice" and tabort
1008 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
1009 the TDB setting part of an tbegin.
1010 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
1011 ("tx_assist"): Set unused argument to an immediate zero instead of
1012 loading zero into a GPR and pass it as argument.
1013 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
1014 Remove inline and related attributes.
1015 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
1016 (__TM_is_illegal, __TM_is_footprint_exceeded)
1017 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value
1020 2013-11-19 Uros Bizjak <ubizjak@gmail.com>
1022 Backport from mainline
1023 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
1025 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
1026 ix86_address_subreg_operand. Move subreg checks to
1027 ix86_validate_address_register. Move address override check to
1028 ix86_legitimate_address_p.
1029 (ix86_validate_address_register): New function.
1030 (ix86_legitimate_address_p): Call ix86_validate_address_register
1031 to validate base and index registers. Add address override check
1032 from ix86_decompose_address.
1033 (ix86_decompose_address): Remove.
1035 Backport from mainline
1036 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
1039 * config/i386/i386.c (ix86_address_subreg_operand): Do not
1040 reject non-integer subregs.
1041 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
1042 Move check for invalid x32 constant addresses ...
1043 (ix86_legitimate_address_p): ... here.
1045 2013-11-19 Richard Biener <rguenther@suse.de>
1047 Backport from mainline
1048 2013-11-07 Richard Biener <rguenther@suse.de>
1050 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
1052 2013-11-19 Richard Biener <rguenther@suse.de>
1054 PR tree-optimization/57517
1055 * tree-predcom.c (combinable_refs_p): Verify the combination
1056 is always executed when the refs are.
1058 2013-11-19 Richard Biener <rguenther@suse.de>
1060 Backport from mainline
1061 2013-11-05 Richard Biener <rguenther@suse.de>
1064 * tree-dfa.c (get_ref_base_and_extent): Merge common code
1065 in MEM_REF and TARGET_MEM_REF handling. Make sure to
1066 process trailing array detection before diving into the
1067 view-converted object (and possibly apply some extra offset).
1069 2013-11-18 Richard Biener <rguenther@suse.de>
1071 Backport from mainline
1072 2013-10-21 Richard Biener <rguenther@suse.de>
1074 PR tree-optimization/58794
1075 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
1076 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
1078 2013-10-21 Richard Biener <rguenther@suse.de>
1081 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
1082 to (T) X for sign-changing conversions (or no conversion).
1084 2013-11-06 Richard Biener <rguenther@suse.de>
1086 PR tree-optimization/58653
1087 * tree-predcom.c (ref_at_iteration): Rewrite to generate
1089 (prepare_initializers_chain): Adjust.
1091 PR tree-optimization/59047
1092 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses
1095 2013-10-15 Richard Biener <rguenther@suse.de>
1097 PR tree-optimization/58143
1098 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
1100 (rewrite_to_defined_overflow): Likewise.
1101 (move_computations_dom_walker::before_dom): Rewrite stmts
1102 with undefined signed overflow that are not always executed
1103 into unsigned arithmetic.
1105 2013-11-14 Uros Bizjak <ubizjak@gmail.com>
1107 Backport from mainline
1108 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
1110 * mode-switching.c (optimize_mode_switching): Mark block as
1111 nontransparent, if last_mode at block exit is different from no_mode.
1113 Backport from mainline
1114 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
1117 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
1118 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
1119 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
1120 RTXes that return in AVX256 register.
1122 2013-11-14 Jakub Jelinek <jakub@redhat.com>
1123 Uros Bizjak <ubizjak@gmail.com>
1126 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
1127 operands[2] satisfies_constraint_Z that might have bit 31 set.
1129 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
1131 Backported from mainline
1132 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
1135 * config/i386/i386.c (initial_ix86_tune_features): Set
1136 X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
1137 X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for m_HASWELL.
1139 2013-11-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1141 Backported from mainline
1142 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1145 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage
1147 2013-11-11 Jakub Jelinek <jakub@redhat.com>
1149 Backported from mainline
1150 2013-11-06 Jakub Jelinek <jakub@redhat.com>
1153 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
1154 (expand_assignment): If *bitpos is negative, set *offset
1155 and adjust *bitpos, so that it is not negative.
1157 2013-11-05 Jakub Jelinek <jakub@redhat.com>
1159 PR rtl-optimization/58997
1160 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
1161 get_iv_value to be in iv->mode rather than iv->extend_mode.
1162 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
1163 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
1164 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
1167 2013-11-10 Karlson2k <k2k@narod.ru>
1168 Kai Tietz <ktietz@redhat.com>
1172 * configure.ac: Adding for exported symbols check
1173 and for rdynamic-check executable-extension.
1174 * configure: Regenerated.
1176 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
1179 * config/i386/i386.md (push peepholer/splitter): Use Pmode
1180 with stack_pointer_rtx.
1182 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
1184 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
1186 2013-11-05 Jakub Jelinek <jakub@redhat.com>
1188 PR tree-optimization/58984
1189 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
1190 set *SIZE_P if non-NULL on success.
1191 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
1193 (ipcp_transform_function): Likewise. Punt if size of access
1194 is different from TYPE_SIZE on v->value's type.
1196 2013-11-03 H.J. Lu <hongjiu.lu@intel.com>
1198 Backport from mainline
1199 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
1202 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
1203 (ix86_expand_movmem): Replace copy_addr_to_reg with
1204 ix86_copy_addr_to_reg.
1205 (ix86_expand_setmem): Likewise.
1207 2013-10-29 Uros Bizjak <ubizjak@gmail.com>
1209 Backport from mainline
1210 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
1212 PR rtl-optimization/58079
1213 * combine.c (combine_simplify_rtx): Avoid using SUBST if
1214 simplify_comparison has widened a comparison with an integer.
1216 2013-10-29 Martin Jambor <mjambor@suse.cz>
1219 Backport from mainline
1220 2013-05-09 Martin Jambor <mjambor@suse.cz>
1223 * gimple-fold.c (canonicalize_constructor_val): Call
1224 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1226 Backport from mainline
1227 2013-03-16 Jan Hubicka <jh@suse.cz>
1229 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1230 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1231 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1232 of cgraph_get_create_node.
1233 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1235 2013-10-28 Tom de Vries <tom@codesourcery.com>
1237 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
1238 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
1240 2013-10-26 Uros Bizjak <ubizjak@gmail.com>
1242 Backport from mainline
1243 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
1246 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
1247 Remove CCCmode handling.
1248 <case LTU>: Return 'c' suffix for CCCmode.
1249 <case GEU>: Return 'nc' suffix for CCCmode.
1250 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
1251 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
1252 (*sub<mode>3_cc_overflow): Ditto.
1253 (*subsi3_zext_cc_overflow): Ditto.
1255 2013-10-26 Uros Bizjak <ubizjak@gmail.com>
1257 Backport from mainline
1258 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
1261 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
1262 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
1263 and SI_REG for 64bit SYSV ABI targets.
1265 2013-08-25 Richard Henderson <rth@twiddle.net>
1268 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
1269 instead of create_convert_operand_to.
1270 (maybe_emit_sync_lock_test_and_set): Likewise.
1271 (expand_atomic_compare_and_swap): Likewise.
1272 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
1274 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
1276 PR rtl-optimization/58831
1277 * alias.c (init_alias_analysis): At the beginning of each iteration, set
1278 the reg_seen[N] bit if static_reg_base_value[N] is non-null.
1280 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
1282 * recog.c (search_ofs): New static variable moved from...
1283 (peep2_find_free_register): ...here.
1284 (peephole2_optimize): Initialize it.
1286 2013-10-24 David Edelsohn <dje.gcc@gmail.com>
1288 Backport from mainline
1289 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
1292 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
1293 TARGET_32BIT final condition.
1294 (mulsi3_internal2 and splitter): Same.
1296 2013-10-23 Tom de Vries <tom@codesourcery.com>
1298 PR tree-optimization/58805
1299 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
1301 2013-10-23 Richard Biener <rguenther@suse.de>
1303 Backport from mainline
1304 2013-06-24 Richard Biener <rguenther@suse.de>
1306 PR tree-optimization/57488
1307 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
1309 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1311 Backport from mainline
1312 2013-10-16 Ganesh Gopalasubramanian
1313 <Ganesh.Gopalasubramanian@amd.com>
1315 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
1318 2013-10-16 Jakub Jelinek <jakub@redhat.com>
1320 * BASE-VER: Set to 4.8.3.
1321 * DEV-PHASE: Set to prerelease.
1323 2013-10-16 Release Manager
1325 * GCC 4.8.2 released.
1327 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
1329 Backport from mainline.
1330 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
1332 * config/aarch64/arm_neon.h
1333 (vtbx<1,3>_<psu>8): Fix register constriants.
1335 2013-10-10 Jakub Jelinek <jakub@redhat.com>
1338 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
1339 if any labels are in FALLTHRU_BB, use a special label emitted
1340 immediately after the asm goto insn rather than label_rtx
1342 (expand_asm_stmt): Adjust caller.
1343 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
1344 edge if the last insn in predecessor is a jump with single successor,
1345 but it isn't simplejump_p.
1347 2013-10-09 Jakub Jelinek <jakub@redhat.com>
1349 Backport from mainline
1350 2013-09-26 Richard Biener <rguenther@suse.de>
1352 PR tree-optimization/58539
1353 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
1354 the fact that debug statements are not taking part in loop-closed
1357 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1359 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
1360 loop to work also for 31bit ABI.
1361 Save the stack pointer for frame_size > 0.
1363 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1365 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
1366 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
1367 constraint letters from expanders.
1368 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
1369 retry count to general_operand.
1370 ("tabort"): Give operand 0 a mode.
1371 ("tabort_1"): Add mode and constraint letter for operand 0.
1372 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
1374 2013-10-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
1376 Backport from mainline.
1379 * config/aarch64/aarch64.md (*add_<shift>_<mode>)
1380 (*add_<shift>_si_uxtw,*add_mul_imm_<mode>)
1381 (*sub_<shift>_<mode>)
1382 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
1383 Remove k constraint.
1385 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
1387 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
1389 2013-10-01 Jakub Jelinek <jakub@redhat.com>
1390 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1393 * config/s390/s390.c (s390_chunkify_start): Handle tablejump_p first,
1394 continue when done, for other jumps look through PARALLEL
1397 2013-09-30 Jakub Jelinek <jakub@redhat.com>
1400 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
1401 optimization, punt if sign_bit_p looked through any zero extension.
1403 2013-09-27 Paulo Matos <pmatos@broadcom.com>
1405 Backport from mainline.
1408 2013-03-27 Richard Biener <rguenther@suse.de>
1410 PR tree-optimization/56716
1411 * tree-ssa-structalias.c (perform_var_substitution): Adjust
1412 dumping for ref nodes.
1414 2013-09-27 Paulo Matos <pmatos@broadcom.com>
1416 Backport from mainline.
1418 2013-09-27 Paulo Matos <pmatos@broadcom.com>
1420 * gcc.dg/pr58463.c: New test.
1422 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
1424 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
1425 assignment statements.
1427 2013-09-23 Alan Modra <amodra@gmail.com>
1430 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
1432 2013-09-23 Alan Modra <amodra@gmail.com>
1434 * config/rs6000/predicates.md (add_cint_operand): New.
1435 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
1436 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
1437 using add_cint_operand.
1438 (largetoc_high_plus_aix): Likewise.
1439 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
1441 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
1444 * config/pa/pa.c (pa_option_override): Disable auto increment and
1445 decrement instructions until reload is completed.
1447 * config/pa/pa.md: In "scc" insn patterns, change output template to
1448 handle const0_rtx in reg_or_0_operand operands.
1450 2013-09-19 Jakub Jelinek <jakub@redhat.com>
1452 * omp-low.c (expand_omp_sections): Always pass len - 1 to
1453 GOMP_sections_start, even if !exit_reachable.
1455 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
1457 * arm.c (arm_expand_prologue): Validate architecture supports
1458 LDRD/STRD before accepting tuning preferences.
1459 (arm_expand_epilogue): Likewise.
1461 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
1462 Paolo Carlini <paolo.carlini@oracle.com>
1465 * doc/implement-cxx.texi: Fix references to the C++ standards.
1467 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1469 PR tree-optimization/58088
1470 * fold-const.c (mask_with_trailing_zeros): New function.
1471 (fold_binary_loc): Make sure we don't recurse infinitely
1472 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
1473 Use mask_with_trailing_zeros where appropriate.
1475 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
1478 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
1481 2013-09-13 Christian Bruel <christian.bruel@st.com>
1484 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
1486 2013-09-11 Andi Kleen <ak@linux.intel.com>
1488 Backport from mainline
1489 * doc/extend.texi: Use __atomic_store_n instead of
1490 __atomic_store in HLE example.
1492 2013-09-11 Andi Kleen <ak@linux.intel.com>
1494 Backport from mainline
1495 * doc/extend.texi: Dont use __atomic_clear in HLE
1498 2013-09-11 Andi Kleen <ak@linux.intel.com>
1500 Backport from mainline
1501 * doc/extend.texi: Document that __atomic_clear and
1502 __atomic_test_and_set should only be used with bool.
1504 2013-09-11 Richard Biener <rguenther@suse.de>
1507 * passes.c (init_optimization_passes): Split critical edges
1508 before late uninit warning pass in the -Og pipeline.
1510 2013-09-11 Jakub Jelinek <jakub@redhat.com>
1512 PR tree-optimization/58385
1513 * fold-const.c (build_range_check): If both low and high are NULL,
1514 use omit_one_operand_loc to preserve exp side-effects.
1516 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
1519 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
1520 support conditional execution.
1521 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
1523 2013-09-10 Jakub Jelinek <jakub@redhat.com>
1525 PR rtl-optimization/58365
1526 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
1527 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
1530 2013-09-09 Jakub Jelinek <jakub@redhat.com>
1532 PR tree-optimization/58364
1533 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
1534 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
1535 the current range can't be an unconditional true or false.
1537 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1540 Backport from mainline
1541 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1543 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
1544 Use gen_int_mode rather than GEN_INT.
1546 2013-09-09 Richard Biener <rguenther@suse.de>
1548 Backport from mainline
1549 2013-08-27 Richard Biener <rguenther@suse.de>
1551 PR tree-optimization/57521
1552 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
1553 one edge is non-critical.
1554 (find_phi_replacement_condition): Make sure to use a non-critical
1555 edge. Cleanup and remove old bug workarounds.
1556 (bb_postdominates_preds): Remove.
1557 (if_convertible_loop_p_1): Do not compute post-dominators.
1558 (combine_blocks): Do not free post-dominators.
1559 (main_tree_if_conversion): Likewise.
1561 2013-09-09 Richard Biener <rguenther@suse.de>
1563 Backport from mainline
1564 2013-09-03 Richard Biener <rguenther@suse.de>
1567 * fold-const.c (negate_expr_p): Fix division case.
1568 (negate_expr): Likewise.
1570 2013-09-09 Richard Biener <rguenther@suse.de>
1572 Backport from mainline
1573 2013-08-29 Richard Biener <rguenther@suse.de>
1575 PR tree-optimization/57685
1576 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
1577 single-use operands to avoid exponential complexity.
1579 2013-09-09 Richard Biener <rguenther@suse.de>
1581 Backport from mainline
1582 2013-08-30 Richard Biener <rguenther@suse.de>
1584 PR tree-optimization/58223
1585 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
1586 (has_anti_or_output_dependence): ... this and adjust to also
1587 look for output dependences.
1588 (mark_nodes_having_upstream_mem_writes): Adjust.
1589 (rdg_flag_uses): Likewise.
1591 2013-09-03 Richard Biener <rguenther@suse.de>
1593 Backport from mainline
1594 2013-08-29 Richard Biener <rguenther@suse.de>
1596 PR tree-optimization/58246
1597 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
1598 handle the dominance check inside a basic-block.
1600 2013-09-03 Richard Biener <rguenther@suse.de>
1602 Backport from mainline
1603 2013-08-30 Richard Biener <rguenther@suse.de>
1605 PR tree-optimization/58228
1606 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
1607 allow invariant loads in nested loop vectorization.
1609 2013-09-03 Richard Biener <rguenther@suse.de>
1611 Backport from mainline
1612 2013-08-30 Richard Biener <rguenther@suse.de>
1614 PR tree-optimization/58010
1615 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
1616 assert that we have a loop-closed PHI.
1618 2013-09-01 Uros Bizjak <ubizjak@gmail.com>
1620 Backport from mainline
1621 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
1623 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
1624 "cmp" RTX before signed_comparison_operator check to account
1627 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
1629 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
1631 2013-08-30 Jakub Jelinek <jakub@redhat.com>
1633 PR tree-optimization/58277
1634 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
1635 after seeing too many stmts with vdef in between dombb and current
1636 bb, invalidate everything.
1638 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
1640 Backport from mainline
1641 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
1644 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
1646 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
1647 rtx (*) (rtx, ...) with insn_gen_fn.
1648 * genoutput.c (output_insn_data): Cast gen_? function pointers to
1649 insn_gen_fn::stored_funcptr. Add initializer braces.
1651 Backport from mainline
1652 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
1655 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
1656 (rs6000_emit_swdiv_high_precision, rs6000_emit_swdiv_low_precision,
1657 rs6000_emit_swrsqrt): Don't cast result of GEN_FCN to gen_2arg_fn_t.
1659 2013-08-29 Jakub Jelinek <jakub@redhat.com>
1661 Backported from mainline
1662 2013-05-27 Richard Biener <rguenther@suse.de>
1665 PR tree-optimization/57417
1666 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1668 (set_ssa_val_to): Compare addresses using
1669 get_addr_base_and_unit_offset.
1671 PR tree-optimization/57396
1672 * tree-affine.c (double_int_constant_multiple_p): Properly
1673 return false for val == 0 and div != 0.
1675 PR tree-optimization/57343
1676 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1677 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1678 (number_of_iterations_cond): Do not build the folded tree.
1680 2013-08-28 Jakub Jelinek <jakub@redhat.com>
1683 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
1685 2013-08-28 Richard Biener <rguenther@suse.de>
1687 Backport from mainline
1688 2013-06-24 Richard Biener <rguenther@suse.de>
1691 * passes.c (init_optimization_passes): Move pass_fold_builtins
1692 and pass_dce earlier with -Og.
1694 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
1696 Backport from mainline
1697 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
1699 * config/i386/driver-i386.c (host_detect_local_cpu): Update
1700 Haswell processor detection.
1702 Backport from mainline
1703 2013-08-27 Christian Widmer <shadow@umbrox.de>
1706 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
1707 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
1708 AVX2 capable processors.
1710 2013-08-23 Jakub Jelinek <jakub@redhat.com>
1713 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
1714 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
1716 PR tree-optimization/58209
1717 * tree-tailcall.c (find_tail_calls): Give up for pointer result types
1718 if m or a is non-NULL.
1720 2013-08-21 Richard Earnshaw <rearnsha@arm.com>
1723 * arm.c (aapcs_vfp_allocate): Decompose the argument if the
1724 suggested mode for the assignment isn't compatible with the
1727 2013-08-20 Alan Modra <amodra@gmail.com>
1730 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
1731 (rs6000_emit_epilogue): Likewise.
1733 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
1734 Jakub Jelinek <jakub@redhat.com>
1736 Backport from mainline
1737 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
1738 destination and source operands.
1740 2013-08-18 Jakub Jelinek <jakub@redhat.com>
1742 PR tree-optimization/58006
1743 * tree-parloops.c (take_address_of): Don't ICE if get_name
1745 (eliminate_local_variables_stmt): Remove clobber stmts.
1747 2013-08-16 Jakub Jelinek <jakub@redhat.com>
1749 PR tree-optimization/58164
1750 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
1751 walk gimple_goto_dest of GIMPLE_GOTO.
1753 PR tree-optimization/58165
1754 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
1755 bi_call must be the last stmt in a bb, don't split_block, instead
1756 use fallthru edge from it and give up if there is none.
1757 Release conds vector when returning early.
1759 2013-08-15 David Given <dg@cowlark.com>
1761 Backport from mainline
1762 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
1764 * lra-constraints.c (process_alt_operands): Use #if HAVE_ATTR_enable
1767 2013-08-14 Jakub Jelinek <jakub@redhat.com>
1769 PR tree-optimization/58145
1770 * tree-sra.c (build_ref_for_offset): If prev_base has
1771 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
1773 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1775 * config/s390/htmxlintrin.h: Add file missing from last commit.
1776 * config/s390/htmintrin.h: Likewise.
1777 * config/s390/s390intrin.h: Likewise.
1779 2013-08-14 Uros Bizjak <ubizjak@gmail.com>
1781 Backport from mainline
1782 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
1784 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
1785 when Pmode != word_mode. Add length_address attribute.
1786 (sse3_monitor_<mode>): Merge from sse3_monitor and
1787 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
1788 Pmode != word_mode. Update insn length attribute.
1789 * config/i386/i386.c (ix86_option_override_internal): Update
1790 ix86_gen_monitor selection for merged sse3_monitor insn.
1792 2013-08-14 Jakub Jelinek <jakub@redhat.com>
1793 Alexandre Oliva <aoliva@redhat.com>
1796 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
1797 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
1798 there also UNSPEC_PLTOFF.
1800 2013-08-13 Jakub Jelinek <jakub@redhat.com>
1803 * asan.c (instrument_strlen_call): Fix typo in comment.
1804 Use char * type even for the lhs of POINTER_PLUS_EXPR.
1806 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
1808 Backport from mainline
1809 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1811 PR rtl-optimization/57459
1812 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1813 type when setting live regs.
1815 2013-08-13 Marek Polacek <polacek@redhat.com>
1816 Jakub Jelinek <jakub@redhat.com>
1818 PR tree-optimization/57980
1819 * tree-tailcall.c (process_assignment): Return false
1820 when not dealing with integers or floats.
1822 2013-08-12 Andrew Haley <aph@redhat.com>
1824 Backport from mainline:
1825 * 2013-07-11 Andreas Schwab <schwab@suse.de>
1827 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
1829 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
1831 Backport from mainline
1832 2013-08-12 Perez Read <netfirewall@gmail.com>
1835 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
1836 operand 0 for intel asm alternative.
1837 (*movabs<mode>_2): Ditto for operand 1.
1839 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1841 Backport from mainline:
1842 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1844 * config/arm/neon.md (vcond): Fix floating-point vector
1845 comparisons against 0.
1847 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1849 Backport from mainline:
1850 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1852 * config/arm/neon.md (movmisalign<mode>): Disable when we
1853 don't allow unaligned accesses.
1854 (*movmisalign<mode>_neon_store): Likewise.
1855 (*movmisalign<mode>_neon_load): Likewise.
1856 (*movmisalign<mode>_neon_store): Likewise.
1857 (*movmisalign<mode>_neon_load): Likewise.
1859 2013-08-06 Martin Jambor <mjambor@suse.cz>
1862 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
1863 MEM_REF has proper alignment information.
1865 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
1867 PR rtl-optimization/57708
1868 * recog.c (peep2_find_free_register): Validate all regs in a
1871 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
1873 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
1874 the implied StoreLoad barrier for atomic operations if before.
1876 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1878 Backports from mainline:
1879 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1881 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1882 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1883 (struct machine_function): Add tbegin_p.
1884 (s390_canonicalize_comparison): Fold CC mode compares to
1885 conditional jump if possible.
1886 (s390_emit_jump): Return the emitted jump.
1887 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1888 Handle CCRAWmode compares.
1889 (s390_option_override): Default to -mhtm if available.
1890 (s390_reg_clobbered_rtx): Handle floating point regs as well.
1891 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1892 FPRs instead of df_regs_ever_live_p.
1893 (s390_optimize_nonescaping_tx): New function.
1894 (s390_init_frame_layout): Extend clobbered_regs array to cover
1896 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1897 (s390_expand_tbegin): New function.
1898 (enum s390_builtin): New enum definition.
1899 (code_for_builtin): New array definition.
1900 (s390_init_builtins): New function.
1901 (s390_expand_builtin): New function.
1902 (TARGET_INIT_BUILTINS): Define.
1903 (TARGET_EXPAND_BUILTIN): Define.
1904 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
1905 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1906 (s390_alc_comparison): Likewise.
1907 * config/s390/s390-modes.def: Add CCRAWmode.
1908 * config/s390/s390.h (processor_flags): Add PF_TX.
1909 (TARGET_CPU_HTM): Define macro.
1910 (TARGET_HTM): Define macro.
1911 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1912 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1913 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1914 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
1915 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
1917 (TBEGIN_MASK, TBEGINC_MASK): New constants.
1918 ("*cc_to_int"): Move up.
1919 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1920 constants other than 0.
1921 ("*ccraw_to_int"): New insn and splitter definition.
1922 ("tbegin", "tbegin_nofloat", "tbegin_retry")
1923 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1924 ("tx_assist"): New expander.
1925 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1926 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1927 * config/s390/s390.opt: Add -mhtm option.
1928 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1929 * config/s390/htmxlintrin.h: New file.
1930 * config/s390/htmintrin.h: New file.
1931 * config/s390/s390intrin.h: New file.
1932 * doc/extend.texi: Document htm builtins.
1933 * config.gcc: Add the new header files to extra_headers.
1935 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1937 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
1938 enabled without -march=zEC12.
1939 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
1942 2013-08-01 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1944 Backport from mainline
1945 2013-05-13 Ganesh Gopalasubramanian
1946 <Ganesh.Gopalasubramanian@amd.com>
1948 * config/i386/i386.c (processor_target_table): Modified default
1949 alignment values for AMD BD and BT architectures.
1951 2013-07-31 Sriraman Tallam <tmsriram@google.com>
1953 * config/i386/i386.c (dispatch_function_versions): Fix array
1954 indexing of function_version_info to match actual_versions.
1956 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
1958 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
1959 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
1961 2013-07-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1963 Backport from mainline
1964 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1966 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
1968 2013-07-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1970 * config/s390/linux-unwind.h: Use the proper dwarf to hard reg
1971 mapping for FPRs when creating the fallback framestate.
1973 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1975 * config/s390/s390.md ("movcc"): Swap load and store instructions.
1977 2013-07-25 Terry Guo <terry.guo@arm.com>
1979 Backport from mainline:
1980 2013-07-25 Terry Guo <terry.guo@arm.com>
1982 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
1983 shift_add/shift_sub0/shift_sub1 RTXs.
1985 2013-07-22 Iain Sandoe <iain@codesourcery.com>
1987 Backport from mainline:
1988 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
1990 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
1991 it is not needed after split.
1993 2013-07-20 Iain Sandoe <iain@codesourcery.com>
1996 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
1997 second label for nonlocal goto receivers. Don't output pic base labels
1998 unless we're producing PIC; mark that action unreachable().
1999 (ix86_save_reg): If the function contains a nonlocal label, save the
2001 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
2002 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
2003 (update_pic_label_number_if_needed): New.
2004 (machopic_output_function_base_name): Adjust for nonlocal receiver
2006 (machopic_should_output_picbase_label): New.
2007 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
2008 (nonlocal_goto_receiver): New insn and split.
2010 2013-07-19 Wei Mi <wmi@google.com>
2012 Backport from mainline:
2013 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
2014 Wei Mi <wmi@google.com>
2016 PR rtl-optimization/57878
2017 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
2018 top. Promote lra_assert to gcc_assert.
2019 (reload_pseudo_compare_func): Check regs first for reload pseudos.
2021 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
2023 Backport from 2013-07-19 trunk r201051.
2026 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
2027 * config/avr/avr.md (adjust_len): Add `round'.
2028 * config/avr/avr-protos.h (avr_out_round): New prototype.
2029 (avr_out_plus): Add `out_label' argument.
2030 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
2031 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
2032 Handle the case where `insn' is just a pattern.
2033 (avr_out_bitop): Handle the case where `insn' is just a pattern.
2034 (avr_out_round): New function.
2035 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
2037 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
2039 * config/i386/bmiintrin.h (_bextr_u32): New.
2040 (_bextr_u64): Ditto.
2045 (_blsmsk_u32): Ditto.
2046 (_blsmsk_u64): Ditto.
2047 (_tzcnt_u32): Ditto.
2048 (_tzcnt_u64): Ditto.
2050 2013-07-17 James Greenhalgh <james.greenhalgh@arm.com>
2052 Backport From mainline:
2053 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
2055 * config/aarch64/aarch64-builtins.c
2056 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
2057 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
2059 * config/aarch64/aarch64-simd.md
2060 (aarch64_ld1<VALL:mode>): New.
2061 (aarch64_st1<VALL:mode>): Likewise.
2062 * config/aarch64/arm_neon.h
2063 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
2065 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
2067 Backport from 2013-07-11 trunk r200901.
2070 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
2071 name seen by assembler/linker if available.
2073 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
2075 Backport from 2013-07-10 trunk r200872.
2078 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
2081 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
2083 Backport from 2013-07-10 trunk r200870.
2086 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
2087 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
2088 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
2089 Remove duplicate devices.
2090 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
2091 * config/avr/t-multilib: Regenerate.
2092 * config/avr/avr-tables.opt: Regenerate.
2093 * doc/avr-mmcu.texi: Regenerate.
2095 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
2098 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
2100 2013-07-09 Joseph Myers <joseph@codesourcery.com>
2102 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
2103 adjust register size for TDmode and TFmode for VSX registers.
2105 2013-07-08 Kai Tietz <ktietz@redhat.com>
2107 Backport from mainline
2109 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
2110 hook_bool_const_tree_true.
2112 2013-07-08 Uros Bizjak <ubizjak@gmail.com>
2114 Backport from mainline
2115 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
2117 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
2118 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
2120 Backport from mainline
2121 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
2123 * config/i386/sse.md (sse_movlhps): Change alternative 3
2124 of operand 2 to "m".
2126 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
2128 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
2130 2013-07-08 Jakub Jelinek <jakub@redhat.com>
2132 PR rtl-optimization/57829
2133 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
2134 mask bits outside of mode are just sign-extension from mode to HWI.
2136 2013-07-03 Jakub Jelinek <jakub@redhat.com>
2139 * config/i386/predicates.md (vsib_address_operand): Disallow
2140 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
2142 2013-06-30 Terry Guo <terry.guo@arm.com>
2144 Backport from mainline
2145 2013-03-27 Bin Cheng <bin.cheng@arm.com>
2148 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
2149 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
2152 2013-06-28 Jakub Jelinek <jakub@redhat.com>
2155 * config/i386/i386.c (ix86_expand_builtin): If target == NULL
2156 and mode is VOIDmode, don't create a VOIDmode pseudo to copy result
2159 2013-06-27 Jakub Jelinek <jakub@redhat.com>
2162 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
2163 constraints of operand 1 and 2.
2166 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
2167 to match RTL canonicalization. Swap predicates and
2168 constraints of operand 1 and 2.
2170 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
2171 decl before the loop, initialize to NULL.
2172 (vectorizable_load): Initialize ptr_incr to NULL.
2174 2013-06-24 Martin Jambor <mjambor@suse.cz>
2176 PR tree-optimization/57358
2177 * ipa-prop.c (parm_ref_data_preserved_p): Always return true when
2180 2013-06-24 Alan Modra <amodra@gmail.com>
2182 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
2183 (gen_easy_altivec_constant): Likewise.
2184 * config/rs6000/predicates.md (easy_vector_constant_add_self,
2185 easy_vector_constant_msb): Likewise.
2187 2013-06-21 Uros Bizjak <ubizjak@gmail.com>
2189 Backport from mainline
2190 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
2193 * config/i386/i386.c (construct_container): Report error if
2194 long double is used with disabled x87 float returns.
2196 2013-06-20 Wei Mi <wmi@google.com>
2198 Backport from mainline
2199 2013-06-19 Wei Mi <wmi@google.com>
2201 PR rtl-optimization/57518
2202 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2203 if regno is used in paradoxical subreg.
2204 (update_equiv_regs): Check pdx_subregs[regno] before
2205 set a reg to be equivalent with a mem.
2208 2013-06-20 David Edelsohn <dje.gcc@gmail.com>
2210 Backport from mainline
2211 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
2214 * collect2.c (collect_atexit): New.
2215 (collect_exit): Delete.
2216 (main): Register collect_atexit with atexit.
2217 (collect_wait): Change collect_exit to exit.
2219 * collect2.h (collect_exit): Delete.
2220 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2222 2013-06-19 Matthias Klose <doko@ubuntu.com>
2225 * file-find.h (find_a_file): Add a mode parameter.
2226 * file-find.c (find_a_file): Likewise.
2227 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2228 with X_OK for the executables.
2229 * collect2.c (main): Call find_a_file with X_OK.
2231 2013-06-19 Igor Zamyatin <igor.zamyatin@intel.com>
2233 * doc/invoke.texi (core-avx2): Document.
2234 (atom): Updated with MOVBE.
2236 2013-06-19 Jakub Jelinek <jakub@redhat.com>
2239 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2240 PERSONALITY in $PATH derived prefixes.
2242 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
2245 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2246 that now in C++ the value is correct per the C++ standards.
2248 2013-06-19 Alan Modra <amodra@gmail.com>
2250 Apply mainline patches
2251 2013-06-13 Alan Modra <amodra@gmail.com>
2252 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2253 * config/rs6000/rs6000.md (signbittf2): New insn.
2254 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2255 (abstf2_internal, cmptf_internal2): Likewise.
2256 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2258 2013-06-11 Anton Blanchard <anton@samba.org>
2259 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2260 correct shift value in little-endian mode.
2262 2013-06-07 Alan Modra <amodra@gmail.com>
2263 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2266 2013-06-04 Alan Modra <amodra@gmail.com>
2267 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2270 2013-05-10 Alan Modra <amodra@gmail.com>
2271 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2272 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2273 * configure: Regenerate.
2275 2013-05-09 Alan Modra <amodra@gmail.com>
2276 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2278 * configure: Regenerate.
2280 2013-05-07 Anton Blanchard <anton@samba.org>
2281 * configure.ac (HAVE_LD_LARGE_TOC): Use right linker emulation
2282 for powerpc64 little endian.
2283 * configure: Regenerate.
2285 2013-05-06 Alan Modra <amodra@gmail.com>
2286 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2287 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2288 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2289 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2290 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2291 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2293 2013-05-06 Alan Modra <amodra@gmail.com>
2294 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2295 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2296 (DEFAULT_ASM_ENDIAN): Define.
2297 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2298 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2299 Update -K PIC clause from sysv4.h.
2300 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2301 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2303 2013-05-06 Alan Modra <amodra@gmail.com>
2304 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2305 twice for little-endian.
2306 (ashrdi3_no_power, ashrdi3): Support little-endian.
2308 2013-04-25 Alan Modra <amodra@gmail.com>
2309 * config.gcc: Support little-endian powerpc-linux targets.
2310 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2311 (LINK_OS_LINUX_SPEC): Define.
2312 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2313 Preserve MASK_LITTLE_ENDIAN.
2314 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2315 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
2316 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
2317 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
2318 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
2319 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
2320 Correct fp word order for little-endian. Don't shift toc entries
2321 smaller than a word for little-endian.
2322 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
2323 (bswapdi2 splits): Correct low-part subreg for little-endian.
2324 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
2325 low/high where such is correct only for be.
2326 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
2327 little-endian for -mcall-aixdesc.
2329 2013-06-12 Martin Jambor <mjambor@suse.cz>
2331 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2332 within bounds at the beginning of the function.
2334 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2336 PR tree-optimization/57537
2337 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2338 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2340 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
2342 Backport from mainline
2343 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
2345 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
2346 cmp_code to construct REG_EQUAL note.
2348 2013-06-10 Oleg Endo <olegendo@gcc.gnu.org>
2350 Backport from mainline
2351 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
2354 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2355 (*fmasf4, *fmasf4_media): New insns.
2357 2013-06-09 Jakub Jelinek <jakub@redhat.com>
2360 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
2361 that operands[2] doesn't overlap with operands[0].
2363 2013-06-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2365 * recog.c (offsettable_address_addr_space_p): Fix calculation of
2366 address mode. Move pointer mode initialization to the same place.
2368 2013-06-07 Sofiane Naci <sofiane.naci@arm.com>
2370 Backport from mainline
2371 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2373 2013-06-07 Uros Bizjak <ubizjak@gmail.com>
2375 Backport from mainline
2376 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
2378 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2379 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2381 Backport from mainline
2382 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
2385 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2386 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2387 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2389 2013-06-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2391 Backport from mainline.
2392 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2394 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2396 2013-06-03 James Greenhalgh <james.greenhalgh@arm.com>
2398 Backport from mainline.
2399 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2401 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2402 format specifier in 'X' case.
2404 2013-05-31 Richard Henderson <rth@redhat.com>
2407 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2408 (ix86_reorg): Call it.
2410 2012-05-31 Jakub Jelinek <jakub@redhat.com>
2412 * BASE-VER: Set to 4.8.2.
2413 * DEV-PHASE: Set to prerelease.
2415 2013-05-31 Release Manager
2417 * GCC 4.8.1 released.
2419 2013-05-24 Greta Yorsh <Greta.Yorsh@arm.com>
2421 Backport from mainline
2422 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2425 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2426 generating simple_return for naked functions.
2428 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2431 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2432 that index is not negative.
2434 2013-05-23 Martin Jambor <mjambor@suse.cz>
2437 * tree.h (contains_bitfld_component_ref_p): Declare.
2438 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2439 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its caller.
2440 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2441 not access a bit-field. Assert all final offsets are byte-aligned.
2443 2013-05-23 Richard Biener <rguenther@suse.de>
2445 PR rtl-optimization/57341
2446 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2447 instead of true_dependence.
2449 2013-05-23 Jakub Jelinek <jakub@redhat.com>
2452 * expmed.c (store_split_bit_field): If op0 is a REG or
2453 SUBREG of a REG, don't lower unit. Handle unit not being
2454 always BITS_PER_WORD.
2456 2013-05-22 Uros Bizjak <ubizjak@gmail.com>
2459 * config/i386/i386.md (*movti_internal_rex64): Emit movaps/movups
2460 for non-sse2 targets.
2461 (*movti_internal): Simplify mode attribute calculation.
2463 2013-05-22 Richard Biener <rguenther@suse.de>
2465 Backport from mainline
2466 2013-05-21 Richard Biener <rguenther@suse.de>
2468 PR tree-optimization/57318
2469 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2470 estimate stmts with side-effects as likely eliminated.
2472 2013-05-21 Richard Biener <rguenther@suse.de>
2474 PR tree-optimization/57330
2475 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2476 preserve the call stmts fntype.
2478 2013-05-21 Richard Biener <rguenther@suse.de>
2480 PR tree-optimization/57303
2481 * tree-ssa-sink.c (statement_sink_location): Properly handle
2484 2013-05-21 Magnus Granberg <baldrick@free.fr>
2487 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2489 2013-05-21 Eric Botcazou <ebotcazou@adacore.com>
2491 Backport from mainline
2492 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2494 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2495 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2497 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2499 PR rtl-optimization/57281
2500 PR rtl-optimization/57300
2501 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2502 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2503 what the other splitter did if the registers are dead.
2505 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
2507 Backport from mainline
2508 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2510 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2511 cache parameters using detect_caches_amd also for CYRIX,
2512 NSC and TM2 signatures.
2514 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2515 Dzianis Kahanovich <mahatma@eu.by>
2519 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2520 VIA/Centaur processors and determine their cache parameters
2521 using detect_caches_amd.
2523 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
2525 * config/i386/i386.c (ix86_option_override_internal): Update
2526 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
2527 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
2528 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
2529 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
2531 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
2533 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2535 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2538 PR tree-optimization/57051
2539 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2540 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2542 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2544 * omp-low.c (extract_omp_for_data): For collapsed loops,
2545 if at least one of the loops is known at compile time to
2546 iterate zero times, set count to 0.
2547 (expand_omp_regimplify_p): New function.
2548 (expand_omp_for_generic): For collapsed loops, if at least
2549 one of the loops isn't known to iterate at least once,
2550 add runtime check with setting count to 0.
2551 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2552 For unsigned types if it isn't known at compile time that
2553 the loop will iterate at least once, add runtime check to bypass
2554 the whole loop if initial condition isn't true.
2556 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2559 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2560 the case when both op0 and op1 have VOIDmode.
2562 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2564 PR tree-optimization/57230
2565 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2568 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2570 * config/epiphany/epiphany.c (epiphany_init): Check size of
2571 NUM_MODES_FOR_MODE_SWITCHING.
2572 (epiphany_expand_prologue):
2573 Remove CONFIG_REGNUM initial value handling code.
2574 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2575 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2576 (emit_set_fp_mode, epiphany_mode_after): Likewise.
2577 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2578 Don't return 1 for FP_MODE_NONE.
2579 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2580 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2581 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2582 * config/epiphany/epiphany.md (save_config): New pattern.
2584 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2586 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2587 Add mthumb/march=armv7-a multilib.
2588 Add mthumb/march=armv7-r multilib.
2589 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2591 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2594 * config/v850/t-rtems: Add more multilibs.
2596 2013-05-10 Richard Biener <rguenther@suse.de>
2598 PR tree-optimization/57214
2599 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2600 not propagate from SSA names that occur in abnormal PHI nodes.
2602 2013-05-10 Alan Modra <amodra@gmail.com>
2605 * varasm.c (default_elf_select_section): Move !DECL_P check..
2606 (get_named_section): ..to here before calling get_section_name.
2608 (default_section_type_flags): Add DECL_P check.
2609 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2610 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2612 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2614 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2615 When using gen_stack_adjust_str with a register offset, add a
2616 REG_FRAME_RELATED_EXPR note.
2618 2013-05-09 Martin Jambor <mjambor@suse.cz>
2621 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2622 * ipa-cp.c (find_aggregate_values_for_callers_subset): Fill in the
2623 by_ref flag of ipa_agg_replacement_value structures.
2624 (known_aggs_to_agg_replacement_list): Likewise.
2625 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2626 (read_agg_replacement_chain): Likewise.
2627 (ipcp_transform_function): Also check that by_ref flags match.
2629 2013-05-08 Diego Novillo <dnovillo@google.com>
2635 2012-08-17 Diego Novillo <dnovillo@google.com>
2638 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2639 * config.in: Regenerate.
2640 * configure: Regenerate.
2641 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is
2644 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2646 PR tree-optimization/57200
2647 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2648 Only call inform if the preceding warning_at returns true.
2650 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2652 PR tree-optimization/57149
2653 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2654 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2655 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2656 uninit_undefined_value_p instead of ssa_undefined_value_p.
2659 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2660 for modifier == EXPAND_INITIALIZER.
2662 2013-05-07 Richard Biener <rguenther@suse.de>
2664 Backport from mainline
2665 2013-05-06 Richard Biener <rguenther@suse.de>
2667 PR tree-optimization/57185
2668 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2671 2013-04-19 Richard Biener <rguenther@suse.de>
2673 PR tree-optimization/57000
2674 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
2676 2013-05-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2679 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2682 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2683 to save TFmode registers and DImode to save TImode registers for
2684 caller save operations.
2685 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2686 mark being partially clobbered since they only use the first
2689 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2690 and TDmode only use the upper 64-bits of each VSX register.
2692 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2695 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2697 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2699 Backport from mainline
2700 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2703 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2704 between "first_arg" and "insn", not "last" and "insn".
2706 2013-05-03 Jakub Jelinek <jakub@redhat.com>
2708 PR rtl-optimization/57130
2709 * combine.c (make_compound_operation) <case SUBREG>: Pass
2710 SET instead of COMPARE as in_code to the recursive call
2713 Backported from mainline
2714 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2716 PR tree-optimization/57051
2717 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2718 and VEC_RSHIFT_EXPR if shift count is a multiple of element
2721 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
2723 * fold-const.c (fold_binary_loc): Call const_binop also for mixed
2724 vector-scalar operations.
2726 2013-05-03 Marek Polacek <polacek@redhat.com>
2728 Backport from mainline
2729 2013-04-25 Marek Polacek <polacek@redhat.com>
2731 PR tree-optimization/57066
2732 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
2734 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2736 Backport from mainline
2737 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2739 * lra-constraints.c (process_alt_operands): Add checking alt
2740 number to choose the best alternative.
2742 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2745 * lra-constraints.c (best_small_class_operands_num): Remove.
2746 (process_alt_operands): Remove small_class_operands_num. Take
2747 small classes operands into losers and only if the operand is not
2748 matched. Modify debugging output.
2749 (curr_insn_transform): Remove best_small_class_operands_num.
2752 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2754 Backport from mainline
2755 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2758 * lra-constraints.c (process_alt_operands): Discourage a bit more
2759 using memory for pseudos. Print cost dump for alternatives.
2760 Modify cost values for conflicts with early clobbers.
2761 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
2763 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2765 Backport from mainline
2766 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2768 PR rtl-optimizations/57046
2769 * lra-constraints (split_reg): Set up lra_risky_transformations_p
2770 for multi-reg splits.
2772 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2774 Backport from mainline
2775 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
2778 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
2779 a set sp if no stack realignment.
2781 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2783 Backport from mainline
2784 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
2786 PR rtl-optimization/56999
2787 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
2789 (lra_coalesce): Remove split_origin_bitmap and related code.
2790 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
2791 ranges if necessary.
2793 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2795 Backport from mainline
2796 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2798 PR rtl-optimization/56847
2799 * lra-constraints.c (process_alt_operands): Discourage alternative
2800 with non-matche doffsettable memory constraint fro memory with
2803 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2805 Backport from mainline
2806 2013-03-28 Ian Bolton <ian.bolton@arm.com>
2808 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
2809 record only when desired or required.
2811 2013-04-30 Jakub Jelinek <jakub@redhat.com>
2813 PR tree-optimization/57104
2814 * tsan.c (instrument_expr): Don't instrument accesses to
2815 DECL_HARD_REGISTER VAR_DECLs.
2817 2013-04-30 Uros Bizjak <ubizjak@gmail.com>
2819 Backport from mainline
2820 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2823 * config/i386/i386.md (*zero_extendsidi2_rex64): Add "!" to m->?*y
2825 (*zero_extendsidi2): Ditto.
2827 Backport from mainline
2828 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2831 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
2833 2013-04-29 Richard Biener <rguenther@suse.de>
2836 * tree-cfg.c (move_stmt_op): Fix condition under which to update
2838 (move_stmt_r): Remove redundant checking.
2840 2013-04-29 Christian Bruel <christian.bruel@st.com>
2843 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2845 2013-04-29 Jakub Jelinek <jakub@redhat.com>
2847 PR tree-optimization/57083
2848 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2849 non-singleton shift count range, zero extend low_bound for uns case.
2851 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
2853 * stor-layout.c (finalize_size_functions): Allocate a structure and
2854 reset cfun before dumping the functions.
2856 2013-04-27 Jakub Jelinek <jakub@redhat.com>
2859 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2860 use xop_pmacsdqh if uns_p.
2861 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2862 the immediate rotate count.
2864 2013-04-25 Jakub Jelinek <jakub@redhat.com>
2866 PR rtl-optimization/57003
2867 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2868 call note_stores with kill_clobbered_value callback again after
2869 killing regs_invalidated_by_call.
2871 2013-04-25 Ian Bolton <ian.bolton@arm.com>
2873 Backported from mainline.
2874 2013-03-22 Ian Bolton <ian.bolton@arm.com>
2876 * config/aarch64/aarch64.c (aarch64_print_operand): New
2877 format specifier for printing a constant in hex.
2878 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
2879 format specifier for printing second operand.
2881 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
2883 Backported from mainline.
2884 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
2886 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2887 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2888 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2890 2013-04-24 Greta Yorsh <Greta.Yorsh@arm.com>
2892 Backported from mainline.
2894 * config/arm/arm.c (load_multiple_sequence): Require SP
2895 as base register for loads if SP is in the register list.
2897 2013-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2898 Steven Bosscher <steven@gcc.gnu.org>
2900 Backported from mainline.
2901 PR rtl-optimization/56605
2902 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
2904 2013-04-22 Marek Polacek <polacek@redhat.com>
2906 Backported from mainline.
2907 2013-04-22 Marek Polacek <polacek@redhat.com>
2910 * tsan.c (instrument_expr): Don't instrument expression
2911 in case its size is zero.
2913 2013-04-22 Yufeng Zhang <yufeng.zhang@arm.com>
2915 Backported from mainline.
2916 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
2917 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
2918 (aarch64_start_file): Use the new function.
2920 2013-04-18 Jakub Jelinek <jakub@redhat.com>
2922 PR tree-optimization/56984
2923 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
2924 and (x >> M) >= N don't register any assertion if N << M is the
2927 2013-04-17 David Edelsohn <dje.gcc@gmail.com>
2930 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2932 2013-04-15 Jakub Jelinek <jakub@redhat.com>
2934 PR tree-optimization/56962
2935 * gimple-ssa-strength-reduction.c (record_increment): Only set
2936 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
2937 either rhs1 or rhs2 is equal to c->base_expr.
2939 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2941 * emit-rtl.c (reset_all_used_flags): New function.
2942 (verify_rtl_sharing): Call reset_all_used_flags before and after
2943 performing the checks.
2945 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
2948 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
2949 (S_MODES): Set H_MODE bit.
2950 (SF_MODES): Set only S_MODE and SF_MODE bits.
2951 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
2952 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
2953 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
2954 <MODE_FLOAT>: Likewise.
2956 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
2959 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
2960 lra_in_progress for return.
2962 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2964 PR tree-optimization/56918
2965 PR tree-optimization/56920
2966 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
2967 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
2968 argument to rshift method.
2970 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2972 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as
2975 2013-04-11 Marek Polacek <polacek@redhat.com>
2977 PR tree-optimization/48184
2978 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum
2981 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2983 Backported from mainline.
2984 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2986 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
2987 floating-point vector comparisons against 0.
2989 2013-04-11 Jakub Jelinek <jakub@redhat.com>
2991 PR tree-optimization/56899
2992 * fold-const.c (extract_muldiv_1): Apply distributive law
2993 only if TYPE_OVERFLOW_WRAPS (ctype).
2995 2013-04-10 David S. Miller <davem@davemloft.net>
2997 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
2998 or -mcpu=hypersparc.
3000 2013-04-10 Jakub Jelinek <jakub@redhat.com>
3002 Backported from mainline
3003 2013-04-09 Jakub Jelinek <jakub@redhat.com>
3006 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3007 expand_omp_for_static_chunk): Use simple_p = true in
3008 force_gimple_operand_gsi calls when assigning to addressable decls.
3010 2013-04-09 Marek Polacek <polacek@redhat.com>
3012 PR tree-optimization/48762
3013 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum
3016 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3018 * config/s390/s390.c (s390_expand_insv): Only accept insertions
3021 2013-04-08 Marek Polacek <polacek@redhat.com>
3023 PR rtl-optimization/48182
3024 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
3027 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3030 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
3031 nuses, make sure we have a label.
3033 2013-04-04 Ian Lance Taylor <iant@google.com>
3035 Backport from mainline:
3036 * doc/standards.texi (Standards): The Go frontend supports the Go
3037 1 language standard.
3039 2013-04-04 Marek Polacek <polacek@redhat.com>
3041 Backport from mainline:
3042 2013-04-04 Marek Polacek <polacek@redhat.com>
3044 PR tree-optimization/48186
3045 * predict.c (maybe_hot_frequency_p): Return false if
3046 HOT_BB_FREQUENCY_FRACTION is 0.
3047 (cgraph_maybe_hot_edge_p): Likewise.
3049 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3051 Backport from mainline:
3052 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3055 * config/arm/iterators.md (v_cmp_result): New mode attribute.
3056 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
3058 2013-04-04 Richard Biener <rguenther@suse.de>
3060 PR tree-optimization/56837
3061 * tree-loop-distribution.c (classify_partition): For non-zero
3062 values require that the value has the same precision as its
3063 mode to be useful as memset value.
3065 2013-04-03 Roland McGrath <mcgrathr@google.com>
3067 Backport from mainline:
3068 2013-03-26 Roland McGrath <mcgrathr@google.com>
3070 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
3071 than fprintf with a non-constant, non-format string.
3073 2013-04-03 Marek Polacek <polacek@redhat.com>
3075 Backport from mainline:
3076 2013-04-03 Marek Polacek <polacek@redhat.com>
3079 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN
3082 2013-04-03 Richard Biener <rguenther@suse.de>
3084 PR tree-optimization/56817
3085 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3087 (tree_unroll_loops_completely_1): ... new function to manually
3088 walk the loop tree, properly defering outer loops of unrolled
3089 loops to later iterations.
3091 2013-04-02 Jakub Jelinek <jakub@redhat.com>
3093 PR rtl-optimization/56745
3094 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
3095 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
3097 2013-04-02 Wei Mi <wmi@google.com>
3099 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
3100 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
3101 *<rotate_insn><mode>3_mask in i386.md.
3103 2013-04-01 Wei Mi <wmi@google.com>
3105 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
3106 Truncate operand 2 using %b asm operand modifier.
3107 (*<shift_insn><mode>3_mask): Ditto.
3108 (*<rotate_insn><mode>3_mask): Ditto.
3110 2013-04-01 Uros Bizjak <ubizjak@gmail.com>
3112 * config/i386/i386.md (*movsf_internal): Change type of
3113 alternatives 3,4 to imov.
3115 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
3118 * doc/invoke.texi ([-fwhole-program]): Fix typo.
3120 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
3122 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
3123 Fix declaration name.
3125 2013-03-28 Gerald Pfeifer <gerald@pfeifer.com>
3127 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
3128 * doc/extend.texi (Named Address Spaces): Ditto.
3129 (Variable Attributes): Ditto.
3131 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
3133 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
3134 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
3137 2013-03-27 Walter Lee <walt@tilera.com>
3139 Backport from mainline:
3140 2013-03-27 Walter Lee <walt@tilera.com>
3142 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3143 double-decrement of next_scratch_regno.
3145 2013-03-27 Walter Lee <walt@tilera.com>
3147 Backport from mainline:
3148 2013-03-27 Walter Lee <walt@tilera.com>
3150 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3152 (insn_v1mulus): Ditto.
3153 (insn_v2muls): Ditto.
3155 2013-03-27 Walter Lee <walt@tilera.com>
3157 Backport from mainline:
3158 2013-03-27 Walter Lee <walt@tilera.com>
3160 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
3162 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
3164 2013-03-27 Walter Lee <walt@tilera.com>
3166 Backport from mainline:
3167 2013-03-27 Walter Lee <walt@tilera.com>
3169 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
3170 (*sibcall_value): Ditto.
3172 2013-03-27 Walter Lee <walt@tilera.com>
3174 Backport from mainline:
3175 2013-03-27 Walter Lee <walt@tilera.com>
3177 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
3178 (insn_mnz_v8qi): ... this ...
3179 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
3181 (insn_v<n>mnz): Replaced by ...
3182 (insn_v1mnz): ... this ...
3183 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
3185 (insn_mz_<mode>): Replaced by ...
3186 (insn_mz_v8qi): ... this ...
3187 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
3189 (insn_v<n>mz): Replaced by ...
3190 (insn_v1mz): ... this ...
3191 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
3194 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
3196 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
3198 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
3200 * config/rtems.opt: Add -pthread option.
3202 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
3204 * config/aarch64/aarch64.c (aarch64_classify_address): Support
3205 PC-relative load in SI modes and above only.
3207 2013-03-26 Walter Lee <walt@tilera.com>
3209 Backport from mainline:
3210 2013-03-26 Walter Lee <walt@tilera.com>
3212 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
3213 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
3215 2013-03-26 Walter Lee <walt@tilera.com>
3217 Backport from mainline:
3218 2013-03-25 Walter Lee <walt@tilera.com>
3220 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
3221 TILEGX_INSN_SHUFFLEBYTES1.
3222 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
3224 (tilegx_builtins): Ditto.
3225 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
3227 2013-03-26 Walter Lee <walt@tilera.com>
3229 Backport from mainline:
3230 2013-03-25 Walter Lee <walt@tilera.com>
3232 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
3233 tests for constraint J, K, N, P.
3235 2013-03-26 Walter Lee <walt@tilera.com>
3237 Backport from mainline:
3238 2013-03-25 Walter Lee <walt@tilera.com>
3240 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
3241 Use indirect/pcrel encoding.
3242 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
3245 2013-03-25 Richard Biener <rguenther@suse.de>
3248 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
3249 must-not-throw stmt location.
3251 2012-03-22 Jakub Jelinek <jakub@redhat.com>
3253 * BASE-VER: Set to 4.8.1.
3254 * DEV-PHASE: Set to prerelease.
3256 2013-03-22 Release Manager
3258 * GCC 4.8.0 released.
3260 2013-03-21 Walter Lee <walt@tilera.com>
3262 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
3264 2013-03-21 Mark Wielaard <mjw@redhat.com>
3266 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
3268 2013-03-20 Richard Biener <rguenther@suse.de>
3270 PR tree-optimization/56661
3271 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
3272 the result does not have to be distinct.
3274 2013-03-20 Jakub Jelinek <jakub@redhat.com>
3276 PR tree-optimization/56635
3277 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Give up
3278 if lhs of then_assign and else_assign don't have compatible types.
3280 2013-03-17 Jakub Jelinek <jakub@redhat.com>
3283 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
3284 class names. Remove trailing comma after "ALL_REGS".
3286 2013-03-16 Jakub Jelinek <jakub@redhat.com>
3288 * DEV-PHASE: Set to prerelease.
3290 2013-03-14 Andi Kleen <ak@linux.intel.com>
3293 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
3294 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
3295 Document _x* TSX intrinsics.
3297 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
3298 David Holsgrove <david.holsgrove@xilinx.com>
3300 * configure.ac: Add MicroBlaze TLS support detection.
3301 * configure: Regenerate.
3302 * config/microblaze/microblaze-protos.h
3303 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
3304 symbol_mentioned_p, label_mentioned_p): Add prototypes.
3305 * config/microblaze/microblaze.c (microblaze_address_type): Add
3306 ADDRESS_TLS and tls_reloc address types.
3307 (microblaze_address_info): Add tls_reloc.
3308 (TARGET_HAVE_TLS): Define.
3309 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
3310 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
3311 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
3312 load_tls_operand, microblaze_call_tls_get_addr,
3313 microblaze_legitimize_tls_address): New functions.
3314 (microblaze_classify_unspec): Handle UNSPEC_TLS.
3315 (get_base_reg): Use microblaze_tls_symbol_p.
3316 (microblaze_classify_address): Handle TLS.
3317 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
3318 label_mentioned_p and microblaze_tls_referenced_p.
3319 (microblaze_legitimize_address): Handle TLS.
3320 (microblaze_address_insns): Handle ADDRESS_TLS.
3321 (pic_address_needs_scratch): Handle TLS.
3322 (print_operand_address): Handle TLS.
3323 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
3324 (microblaze_expand_move): Handle TLS.
3325 (microblaze_legitimate_constant_p): Check
3326 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
3327 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3328 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
3329 (PIC_OFFSET_TABLE_REGNUM): Set.
3330 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
3331 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
3332 (addsi3, movsi_internal2, movdf_internal): Update constraints
3333 * config/microblaze/predicates.md (arith_plus_operand): Define
3334 (move_operand): Redefine as move_src_operand, check
3335 microblaze_tls_referenced_p.
3337 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3339 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
3340 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
3342 2013-03-14 Ian Bolton <ian.bolton@arm.com>
3344 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
3347 2013-03-14 Jakub Jelinek <jakub@redhat.com>
3349 PR tree-optimization/53265
3350 * common.opt (Waggressive-loop-optimizations): New option.
3351 * tree-ssa-loop-niter.c: Include tree-pass.h.
3352 (do_warn_aggressive_loop_optimizations): New function.
3353 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
3354 if number_of_latch_executions returned constant.
3355 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
3356 early. If number_of_latch_executions returned constant, set
3357 nb_iterations_upper_bound back to it.
3358 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
3360 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
3361 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
3363 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
3364 (MULTILIB_OSDIRNAMES): Set.
3365 * genmultilib: If defaultosdirname doesn't start with :: , set
3366 defaultosdirname2 instead, clear it and emit two . multilib_raw
3367 entries instead of just one.
3369 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
3371 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3372 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
3373 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
3374 (SUBTARGET_OVERRIDE_OPTIONS): New.
3376 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
3379 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
3380 (musermode): Convert to Var(TARGET_USERMODE).
3381 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
3382 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
3383 * config/sh/sh.c (sh_option_override): Use
3384 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
3385 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
3387 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
3389 (udivsi3_i4_single, divsi3_i4_single): Use
3390 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
3392 2013-03-13 Dave Korn <dave.korn.cygwin@....>
3394 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
3397 2013-03-13 Richard Biener <rguenther@suse.de>
3399 PR tree-optimization/56608
3400 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
3401 calls when vectorizing basic-blocks.
3403 2013-03-13 Jakub Jelinek <jakub@redhat.com>
3406 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
3409 2013-03-12 Jakub Jelinek <jakub@redhat.com>
3411 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
3413 2013-03-11 Jan Hubicka <jh@suse.cz>
3416 * lto-streamer-out.c (output_symbol_p): Skip references from
3417 constructors of external variables.
3419 2013-03-11 Jan Hubicka <jh@suse.cz>
3422 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
3424 * emit-rtl.c (verify_rtx_sharing): Likewise.
3425 (copy_insn_1): Likewise.
3426 * rtl.c (copy_rtx): Likewise.
3428 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
3431 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
3432 output_operand_lossage message.
3434 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
3437 * arm.c (shift_op): Validate RTL pattern on the fly.
3438 (arm_print_operand, case 'S'): Don't use shift_operator to validate
3441 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3444 * config/pa/pa.md (call_value): Check for calls to powf and direct to
3445 new call patterns that clobber %fr12.
3446 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
3447 split and postreload patterns.
3448 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
3449 registers %fr12 and %fr12R as call used.
3451 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
3453 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
3454 (canon_address, record_store, replace_read, check_mem_read_rtx,
3455 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
3456 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
3457 rest_of_handle_dse): Likewise.
3459 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3462 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
3464 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
3465 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
3466 (save_optabs_if_changed): Replace with...
3467 (init_tree_optimization_optabs): ...this.
3468 * optabs.c (save_optabs_if_changed): Rename to...
3469 (init_tree_optimization_optabs): ...this. Take the optimization node
3470 as argument. Do nothing if the base optabs are already correct.
3471 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
3472 to recompute optabs.
3473 * function.h (function): Remove optabs field.
3474 * function.c (invoke_set_current_function_hook): Call
3475 init_tree_optimization_optabs. Use the result to initialize
3478 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
3480 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
3481 if GTMA_HAS_NO_INSTRUMENTATION.
3482 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
3483 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
3484 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
3485 * gimple-pretty-print.c (dump_gimple_transaction): Handle
3486 GTMA_HAS_NO_INSTRUMENTATION.
3488 2013-03-08 Jakub Jelinek <jakub@redhat.com>
3490 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
3493 2013-03-08 Marek Polacek <polacek@redhat.com>
3494 Jakub Jelinek <jakub@redhat.com>
3496 PR tree-optimization/56478
3497 * predict.c (is_comparison_with_loop_invariant_p): Change the
3498 type of loop_step to tree.
3499 (predict_loops): Adjust.
3500 (predict_iv_comparison): Perform the computations on double_ints.
3502 2013-03-08 Richard Biener <rguenther@suse.de>
3504 PR tree-optimization/56570
3505 * tree-cfg.c (verify_expr_location_1): Verify locations for
3507 * tree-sra.c (create_access_replacement): Strip locations
3508 from DECL_DEBUG_EXPRs.
3510 2013-03-08 Richard Biener <rguenther@suse.de>
3512 * tree-inline.c (expand_call_inline): Do not associate
3513 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
3514 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
3516 2013-03-08 Richard Biener <rguenther@suse.de>
3518 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
3519 or block changes with -Og. Fix for location / block encoding
3520 changes and PHI arguments with locations.
3522 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
3524 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
3526 (struct output_info): Likewise.
3527 (register_overhead): Remove bad gcc_assert.
3528 (bitmap_find_bit): If there is only a single bitmap element, do not
3529 count a miss as a search.
3530 (print_statistics): Update for counter type changes.
3531 (dump_bitmap_statistics): Likewise. Print headers such that they
3532 are properly lined up with the printed counters.
3534 2013-03-07 Jakub Jelinek <jakub@redhat.com>
3536 PR tree-optimization/56559
3537 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
3538 check that it has only a single use.
3540 2013-03-07 Richard Biener <rguenther@suse.de>
3542 * doc/invoke.texi (fwhole-program): Discourage use in combination
3545 2013-03-06 Jakub Jelinek <jakub@redhat.com>
3547 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
3549 PR tree-optimization/56539
3550 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
3551 instead of GSI_CONTINUE_LINKING as last argument to
3552 force_gimple_operand_gsi. Adjust function comment.
3554 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
3558 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
3559 promoted mode, convert the result back to the original mode.
3561 2013-03-06 Richard Biener <rguenther@suse.de>
3564 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
3565 (insert_updated_phi_nodes_compare_uids): New function.
3566 (update_ssa): Sort symbols_to_rename after UID before
3567 traversing it to insert PHI nodes.
3569 2013-03-06 Richard Biener <rguenther@suse.de>
3572 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3573 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
3576 2013-02-13 Richard Biener <rguenther@suse.de>
3579 * varasm.c (output_constant_def_1): Get the decl representing
3580 the constant as argument.
3581 (output_constant_def): Wrap output_constant_def_1.
3582 (make_decl_rtl): Use output_constant_def_1 with the decl
3583 representing the constant.
3584 (build_constant_desc): Optionally re-use a decl already
3585 representing the constant.
3586 (tree_output_constant_def): Adjust.
3588 2013-03-06 Joey Ye <joey.ye@arm.com>
3591 * gcc.c (convert_white_space): New function.
3592 (main): Handles white space in function name.
3594 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
3597 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
3598 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
3599 to SH_DIV_CALL_TABLE for TARGET_SH2.
3600 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
3602 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
3605 2013-03-05 Sterling Augustine <saugustine@google.com>
3606 Cary Coutant <ccoutant@google.com>
3609 * dwarf2out.c (resolve_addr): Don't call
3610 remove_loc_list_addr_table_entries a second time for the same
3613 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3616 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
3617 (avoid_complex_debug_insns): New function.
3618 (expand_debug_locations): Call it.
3620 PR rtl-optimization/56484
3621 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
3622 lifetimes of hard registers on small register class machines.
3624 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3626 * config/microblaze/microblaze-protos.h: Rename
3627 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
3628 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
3630 (microblaze_fast_interrupt_function_p): New function.
3631 (microblaze_is_interrupt_handler): Rename to
3632 microblaze_is_interrupt_variant and add fast_interrupt check.
3633 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
3634 (save_restore_insns): Likewise.
3635 (compute_frame_size): Likewise.
3636 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
3637 (microblaze_globalize_label): Likewise.
3638 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
3639 * config/microblaze/microblaze.md: Use wrapper
3640 microblaze_is_interrupt_variant.
3642 2013-03-05 Kai Tietz <ktietz@redhat.com>
3644 * sdbout.c (sdbout_one_type): Switch to current function's section
3645 supporting cold/hot.
3647 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
3649 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
3652 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3655 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
3656 if VALGRIND_GET_VBITS is defined, temporarily make object
3657 memory all defined, and restore previous valgrind addressability
3658 and definability afterwards. Free this_object at the end.
3661 * lra.c (lra): Call lra_clear_live_ranges if live_p,
3662 right before calling lra_create_live_ranges, also call it
3663 when clearing live_p. Only call lra_clear_live_ranges
3664 at the end if live_p.
3667 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
3669 2013-03-05 Richard Biener <rguenther@suse.de>
3671 PR tree-optimization/56521
3672 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
3675 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
3678 * except.h (remove_unreachable_eh_regions): New prototype.
3679 * except.c (remove_eh_handler_splicer): New function, split out
3680 of remove_eh_handler.
3681 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
3682 warning about running it on many EH regions one at a time.
3683 (remove_unreachable_eh_regions_worker): New function, walk the
3684 EH tree in depth-first order and remove non-marked regions.
3685 (remove_unreachable_eh_regions): New function.
3686 * tree-eh.c (mark_reachable_handlers): New function, split out
3687 from remove_unreachable_handlers.
3688 (remove_unreachable_handlers): Use mark_reachable_handlers and
3689 remove_unreachable_eh_regions.
3690 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
3691 and remove_unreachable_eh_regions.
3693 2013-03-05 Richard Biener <rguenther@suse.de>
3696 * loop-init.c (fix_loop_structure): Remove loops in two stages,
3697 not freeing them until the end.
3699 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3701 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
3703 2013-03-05 Richard Biener <rguenther@suse.de>
3705 PR tree-optimization/56270
3706 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
3707 of loads after scheduling an SLP instance.
3709 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3711 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
3713 (check_gcc_parallelize): Run guality.exp as a separate job from
3714 vect.exp with unsorted.exp and $(dg_target_exps) separately from
3715 struct-layout-1.exp with stackalign.exp.
3717 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
3720 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
3721 load_index sbitmap even if some bit in it isn't set.
3724 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
3725 (discover_iteration_bound_by_body_walk): Change queues to
3726 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
3727 spelling in comment. Call safe_push on queues[bound_index] directly.
3728 Release queues[queue_index] in every iteration unconditionally.
3729 Release bounds vector.
3732 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
3733 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
3734 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
3737 2013-03-05 Richard Biener <rguenther@suse.de>
3740 * tree-inline.c (remap_blocks_to_null): New function.
3741 (expand_call_inline): When expanding a call stmt without
3742 an associated block inline remap all callee blocks to NULL.
3744 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3746 PR rtl-optimization/56494
3747 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
3748 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
3749 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
3752 * sel-sched-ir.c (free_sched_pools): Release
3753 succs_info_pool.stack[succs_info_pool.max_top] vectors too
3754 if succs_info_pool.max_top isn't -1.
3757 * opts.c (opts_obstack, opts_concat): Moved to...
3758 * opts-common.c (opts_obstack, opts_concat): ... here.
3760 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3763 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
3765 2013-03-04 Martin Jambor <mjambor@suse.cz>
3767 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
3768 all appropriate places.
3770 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
3772 PR tree-optimization/56424
3773 * ipa-split.c (split_function): Do not set the RSO flag if result is
3774 not by reference and its type is a register type.
3776 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
3778 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New.
3779 (microblaze_legitimate_pic_operand): Likewise.
3780 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): Call
3781 new function microblaze_legitimate_pic_operand.
3782 * config/microblaze/microblaze-protos.h
3783 (microblaze_legitimate_pic_operand): Declare.
3785 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3787 * config/microblaze/predicates.md (call_insn_simple_operand):
3788 New predicate for supported rtx code types.
3789 * config/microblaze/microblaze.md (call_internal1): Use
3790 call_insn_simple_operand predicate.
3792 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3795 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
3796 partitions.ordered_remove.
3799 * tree-vect-stmts.c (vectorizable_conversion): Don't call
3800 vec_oprnds0.create (1) for modifier == NONE.
3803 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
3804 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
3805 vec_oprnds1 right before pushing anything to it for
3809 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
3810 set nbbs to 0 instead of having separate code path.
3811 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
3812 instead of false as last argument if returning NULL.
3814 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
3816 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
3817 the attribute is now called "target" instead of "option".
3818 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
3819 * doc/tm.texi.in (Target Attributes): Likewise document the correct
3820 attribute/pragma name for TARGET_OPTION_VALID_P and
3821 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
3822 * doc/tm.texi: Regenerated.
3824 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
3826 * config/microblaze/microblaze.c:
3827 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
3828 * config/microblaze/microblaze.h: Add -mxl-reorder to
3830 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
3831 instructions emitted if TARGET_REORDER.
3832 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
3833 or 0 for -m/-mno case, but initialises as 2 to detect default use case
3836 2013-03-01 Xinliang David Li <davidxl@google.com>
3838 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
3841 2013-03-01 Jakub Jelinek <jakub@redhat.com>
3844 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
3845 vector even when returning true. Fix up function comment formatting.
3848 * ira-build.c (ira_loop_nodes_count): New variable.
3849 (create_loop_tree_nodes): Initialize it.
3850 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
3853 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
3854 method on dr_chain and result_chain.
3855 * tree-vect-stmts.c (vectorizable_store): Only call
3856 result_chain.create if j == 0.
3859 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
3860 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
3861 before overwriting it.
3863 2013-03-01 Tobias Burnus <burnus@net-b.de>
3865 * doc/extended.texi (C Extensions): Change order in @menu
3867 (Other MIPS Built-in Functions): Move last MIPS entry before
3868 "picoChip Built-in Functions".
3869 (SH Built-in Functions): Move after RX Built-in Functions.
3870 * doc/gcc.texi (Introduction): Change order in @menu to match @node.
3871 * doc/md.texi (Constraints): Ditto.
3872 * gty.texi (Type Information): Ditto.
3873 (User-provided marking routines for template types): Make subsection.
3874 * doc/invoke.texi (AArch64 Options): Move before
3875 "Adapteva Epiphany Options".
3877 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3878 Jakub Jelinek <jakub@redhat.com>
3881 * asan.c (gate_asan): Lookup no_sanitize_address instead of
3882 no_address_safety_analysis attribute.
3883 * doc/extend.texi (no_address_safety_attribute): Rename to
3884 no_sanitize_address attribute, mention no_address_safety_analysis
3885 attribute as deprecated alias.
3887 2013-02-28 Jakub Jelinek <jakub@redhat.com>
3890 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
3891 type to vec<vec<tree> > *.
3892 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
3893 to be vec<tree> instead of vec<tree> *, set vec_defs
3894 to vNULL and call vec_defs.create (number_of_vects), adjust other
3896 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
3897 vectorizable_condition): Adjust vect_get_slp_defs callers.
3899 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3901 * config/aarch64/aarch64.c
3902 (aarch64_float_const_representable): Remove unused variable.
3904 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3906 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
3908 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3910 * config/aarch64/aarch64-builtins.c
3911 (aarch64_init_simd_builtins): Make static.
3913 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
3915 * config/aarch64/aarch64.c
3916 (aarch64_simd_make_constant): Make static.
3918 2013-02-28 Martin Jambor <mjambor@suse.cz>
3920 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
3921 with no initialization to the RHS of debug statements.
3923 2013-02-28 Martin Jambor <mjambor@suse.cz>
3925 PR tree-optimization/56294
3926 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
3928 (get_access_replacement): Do not call create_access_replacement.
3929 Assert a replacement exists.
3930 (get_repl_default_def_ssa_name): Create the replacement declaration
3933 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3935 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
3938 2013-02-28 Marek Polacek <polacek@redhat.com>
3940 PR rtl-optimization/56466
3941 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
3942 if we're changing a loop.
3943 (peel_loops_completely): Likewise.
3945 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
3948 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
3950 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3953 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
3954 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
3955 INTX_FTYPE_FX, FX_FTYPE_INTX.
3956 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
3958 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3960 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
3961 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
3962 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
3963 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
3964 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
3965 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
3966 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
3967 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
3968 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
3969 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
3970 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
3971 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
3972 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
3973 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
3974 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
3975 (avrxmega6): Increase max flash segments from 5 to 6.
3976 * config/avr/t-multilib: Regenerate.
3977 * config/avr/avr-tables.opt: Regenerate.
3978 * doc/avr-mmcu.texi: Regenerate.
3980 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
3982 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
3983 (avr_device_to_arch): Rename to avr_device_to_ld.
3984 (avr_device_to_as): New prototype.
3985 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
3986 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
3987 * config/avr/driver-avr.c (avr_device_to_as): New.
3988 (avr_device_to_arch): Rename to avr_device_to_ld.
3990 2013-02-27 Jakub Jelinek <jakub@redhat.com>
3993 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
3994 method on dr_chain and result_chain.
3997 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
3998 pointer_set_destroy on not_executed_last_iteration.
4001 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
4004 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
4005 FOR_EACH_DEFINED_FUNCTION when freeing state.
4008 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
4010 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
4014 * ipa-cp.c (decide_whether_version_node): Call vec_free on
4015 known_aggs[i].items and release known_aggs vector.
4018 * ipa-reference.c (propagate): Free node_info even for alias nodes.
4020 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4022 * config/microblaze/microblaze.c (microblaze_emit_compare):
4023 Use xor for EQ/NE comparisions.
4024 * config/microblaze/microblaze.md (cstoresf4): Add constraints
4025 (cbranchsf4): Adjust operator to comparison_operator.
4027 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4030 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
4032 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
4033 vec_safe_push, always update *slot.
4034 (redirect_edge_var_map_clear): Use vec_free.
4035 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
4036 (free_var_map_entry): Use vec_free.
4037 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
4038 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
4040 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
4043 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
4044 when the may_trap_p bit of the exprs being merged differs.
4045 Reorder tests for speculativeness in the logical and operator.
4047 2013-02-27 Jakub Jelinek <jakub@redhat.com>
4049 * incpath.c (add_standard_paths): Use reconcat instead of concat
4050 where appropriate and avoid leaking memory.
4052 * opts.h: Include obstack.h.
4053 (opts_concat): New prototype.
4054 (opts_obstack): New declaration.
4055 * opts.c (opts_concat): New function.
4056 (opts_obstack): New variable.
4057 (init_options_struct): Call gcc_init_obstack on opts_obstack.
4058 (finish_options): Use opts_concat instead of concat
4059 and XOBNEWVEC instead of XNEWVEC.
4060 * opts-common.c (generate_canonical_option, decode_cmdline_option,
4061 generate_option): Likewise.
4062 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
4063 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
4066 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
4067 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
4069 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4072 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
4074 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4076 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
4077 (arm_block_move_unaligned_straight): Likewise.
4078 (arm_adjust_block_mem): Likewise.
4080 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
4083 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
4084 temp, cond and label.
4085 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
4088 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
4089 * config/c6x/c6x.h (dbx_register_map): Update declaration.
4092 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
4093 of prologue/epilogue functions.
4096 * config/tilegx/tilegx.c (tilegx_expand_prologue):
4097 Remove unused variable cfa_offset.
4098 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
4101 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
4102 type promotion to unsigned.
4105 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
4106 for HOST_WIDE_INT of 32 bit / same size as int.
4107 (arm_block_move_unaligned_straight): Likewise.
4108 (arm_adjust_block_mem): Likewise.
4111 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
4114 2013-02-26 Marek Polacek <polacek@redhat.com>
4116 PR tree-optimization/56426
4117 * tree-ssa-loop.c (tree_ssa_loop_init): Always call
4120 2013-02-26 Richard Biener <rguenther@suse.de>
4123 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
4124 unused variable loops.
4126 2013-02-26 Jakub Jelinek <jakub@redhat.com>
4128 PR tree-optimization/56448
4129 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
4130 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
4131 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
4132 later operands of the references, or even first operand for
4133 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
4135 PR tree-optimization/56443
4136 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
4137 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
4138 to type_for_mode langhook.
4140 2013-02-25 Matt Turner <mattst88@gmail.com>
4142 * doc/invoke.texi: Document r4700.
4144 2013-02-25 Richard Biener <rguenther@suse.de>
4146 PR tree-optimization/56175
4147 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
4149 (simplify_bitwise_binary): ... here. Also guard the conversion
4150 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
4152 2013-02-25 Catherine Moore <clm@codesourcery.com>
4155 2013-02-24 Catherine Moore <clm@codesourcery.com>
4156 Maciej W. Rozycki <macro@codesourcery.com>
4157 Tom de Vries <tom@codesourcery.com>
4158 Nathan Sidwell <nathan@codesourcery.com>
4159 Iain Sandoe <iain@codesourcery.com>
4160 Nathan Froyd <froydnj@codesourcery.com>
4161 Chao-ying Fu <fu@mips.com>
4163 * doc/extend.texi (micromips, nomicromips, nocompression):
4164 Document new function attributes.
4165 * doc/invoke.texi (minterlink-compressed, mmicromips,
4166 m14k, m14ke, m14kec): Document new options.
4167 (minterlink-mips16): Update documentation.
4168 * doc/md.texi (ZC, ZD): Document new constraints.
4169 * configure.ac (gcc_cv_as_micromips): Check if linker
4170 supports the .set micromips directive.
4171 * configure: Regenerate.
4172 * config.in: Regenerate.
4173 * config/mips/mips-tables.opt: Regenerate.
4174 * config/mips/micromips.md: New file.
4175 * constraints.md (ZC, AD): New constraints.
4176 * config/mips/predicates.md (movep_src_register): New predicate.
4177 (movep_src_operand): New predicate.
4178 (non_volatile_mem_operand): New predicate.
4179 * config/mips/mips.md (multimem): New type.
4180 (length): Differentiate between 17-bit and 18-bit branch offsets.
4181 (MOVEP1, MOVEP2): New mode iterator.
4182 (mov_<load>l): Use ZC constraint.
4183 (mov_<load>r): Likewise.
4184 (mov_<store>l): Likewise.
4185 (mov_<store>r): Likewise.
4186 (*branch_equality<mode>_inverted): Add microMIPS support.
4187 (*branch_equality<mode>): Likewise.
4188 (*jump_absolute): Likewise.
4189 (indirect_jump_<mode>): Likewise.
4190 (tablejump_<mode>): Likewise.
4191 (<optab>_internal): Likewise.
4192 (sibcall_internal): Likewise.
4193 (sibcall_value_internal): Likewise.
4194 (prefetch): Use constraint ZD.
4195 * config/mips/mips.opt (minterlink-compressed): New option.
4196 (minterlink-mips16): Now an alias for minterlink-compressed.
4197 (mmicromips): New option.
4198 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4199 (compare_and_swap_12): Likewise.
4200 (sync_add<mode>): Likewise.
4201 (sync_<optab>_12): Likewise.
4202 (sync_old_<optab>_12): Likewise.
4203 (sync_new_<optab>_12): Likewise.
4204 (sync_nand_12): Likewise.
4205 (sync_old_nand_12): Likewise.
4206 (sync_new_nand_12): Likewise.
4207 (sync_sub<mode>): Likewise.
4208 (sync_old_add<mode>): Likewise.
4209 (sync_old_sub<mode>): Likewise.
4210 (sync_new_add<mode>): Likewise.
4211 (sync_new_sub<mode>): Likewise.
4212 (sync_<optab><mode>): Likewise.
4213 (sync_old_<optab><mode>): Likewise.
4214 (sync_new_<optab><mode>): Likewise.
4215 (sync_nand<mode>): Likewise.
4216 (sync_old_nand<mode>): Likewise.
4217 (sync_new_nand<mode>): Likewise.
4218 (sync_lock_test_and_set<mode>): Likewise.
4219 (test_and_set_12): Likewise.
4220 (atomic_compare_and_swap<mode>): Likewise.
4221 (atomic_exchange<mode>_llsc): Likewise.
4222 (atomic_fetch_add<mode>_llsc): Likewise.
4223 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4224 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4225 (umips_save_restore_pattern_p): Likewise.
4226 (umips_load_store_pair_p): Likewise.
4227 (umips_output_load_store_pair): Likewise.
4228 (umips_movep_target_p): Likewise.
4229 (umips_12bit_offset_address_p): Likewise.
4230 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4231 (mips_base_mips16): Rename this...
4232 (mips_base_compression_flags): ...to this. Update all uses.
4233 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4234 (mips_mips16_decl_p): Delete.
4235 (mips_nomips16_decl_p): Delete.
4236 (mips_get_compress_on_flags): New function.
4237 (mips_get_compress_off_flags): New function.
4238 (mips_get_compress_mode): New function.
4239 (mips_get_compress_on_name): New function.
4240 (mips_get_compress_off_name): New function.
4241 (mips_insert_attributes): Support multiple compression types.
4242 (mips_merge_decl_attributes): Likewise.
4243 (umips_12bit_offset_address_p): New function.
4244 (mips_start_function_definition): Emit .set micromips directive.
4245 (mips_call_may_need_jalx_p): New function.
4246 (mips_function_ok_for_sibcall): Add microMIPS support.
4247 (mips_print_operand_punctuation): Support short delay slots and
4249 (umips_swm_mask, umips_swm_encoding): New.
4250 (umips_build_save_restore): New function.
4251 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4252 (was_mips16_p): Remove.
4253 (old_compression_mode): New.
4254 (mips_set_compression_mode): New function.
4255 (mips_set_current_function): Add microMIPS support.
4256 (mips_option_override): Likewise.
4257 (umips_save_restore_pattern_p): New function.
4258 (umips_output_save_restore): New function.
4259 (umips_load_store_pair_p_1): New function.
4260 (umips_load_store_pair_p): New function.
4261 (umips_output_load_store_pair_1): New function.
4262 (umips_output_load_store_pair): New function.
4263 (umips_movep_target_p) New function.
4264 (mips_prepare_pch_save): Add microMIPS support.
4265 * config/mips/mips.h (TARGET_COMPRESSION): New.
4266 (TARGET_CPU_CPP_BUILTINS): Update macro
4267 to use new compression flags and to support microMIPS.
4268 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4269 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4270 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4271 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4272 (ASM_SPEC): Support mmicromips and mno-micromips.
4273 (M16STORE_REG_P): New macro.
4274 (MIPS_CALL): Support TARGET_MICROMIPS.
4275 (MICROMIPS_J): New macro.
4276 (mips_base_mips16): Rename this...
4277 (mips_base_compression_flags): ...to this.
4278 (UMIPS_12BIT_OFFSET_P): New macro.
4279 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4280 (MULTILIB_DIRNAMES): Likewise.
4282 2013-02-25 Tom de Vries <tom@codesourcery.com>
4284 PR rtl-optimization/56131
4285 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
4286 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
4287 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
4289 2013-02-25 Tobias Burnus <burnus@net-b.de>
4291 * doc/invoke.texi (-fsanitize=): Move from optimization
4292 to debugging options.
4294 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
4296 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
4298 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
4299 Alexander Monakov <amonakov@ispras.ru>
4302 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
4303 flush pending lists also on non-jumps. Adjust comment.
4305 2013-02-24 Catherine Moore <clm@codesourcery.com>
4306 Maciej W. Rozycki <macro@codesourcery.com>
4307 Tom de Vries <tom@codesourcery.com>
4308 Nathan Sidwell <nathan@codesourcery.com>
4309 Iain Sandoe <iain@codesourcery.com>
4310 Nathan Froyd <froydnj@codesourcery.com>
4311 Chao-ying Fu <fu@mips.com>
4313 * doc/extend.texi (micromips, nomicromips, nocompression):
4314 Document new function attributes.
4315 * doc/invoke.texi (minterlink-compressed, mmicromips,
4316 m14k, m14ke, m14kec): Document new options.
4317 (minterlink-mips16): Update documentation.
4318 * doc/md.texi (ZC, ZD): Document new constraints.
4319 * configure.ac (gcc_cv_as_micromips): Check if linker
4320 supports the .set micromips directive.
4321 * configure: Regenerate.
4322 * config.in: Regenerate.
4323 * config/mips/mips-tables.opt: Regenerate.
4324 * config/mips/micromips.md: New file.
4325 * constraints.md (ZC, AD): New constraints.
4326 * config/mips/predicates.md (movep_src_register): New predicate.
4327 (movep_src_operand): New predicate.
4328 (non_volatile_mem_operand): New predicate.
4329 * config/mips/mips.md (multimem): New type.
4330 (length): Differentiate between 17-bit and 18-bit branch offsets.
4331 (MOVEP1, MOVEP2): New mode iterator.
4332 (mov_<load>l): Use ZC constraint.
4333 (mov_<load>r): Likewise.
4334 (mov_<store>l): Likewise.
4335 (mov_<store>r): Likewise.
4336 (*branch_equality<mode>_inverted): Add microMIPS support.
4337 (*branch_equality<mode>): Likewise.
4338 (*jump_absolute): Likewise.
4339 (indirect_jump_<mode>): Likewise.
4340 (tablejump_<mode>): Likewise.
4341 (<optab>_internal): Likewise.
4342 (sibcall_internal): Likewise.
4343 (sibcall_value_internal): Likewise.
4344 (prefetch): Use constraint ZD.
4345 * config/mips/mips.opt (minterlink-compressed): New option.
4346 (minterlink-mips16): Now an alias for minterlink-compressed.
4347 (mmicromips): New option.
4348 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4349 (compare_and_swap_12): Likewise.
4350 (sync_add<mode>): Likewise.
4351 (sync_<optab>_12): Likewise.
4352 (sync_old_<optab>_12): Likewise.
4353 (sync_new_<optab>_12): Likewise.
4354 (sync_nand_12): Likewise.
4355 (sync_old_nand_12): Likewise.
4356 (sync_new_nand_12): Likewise.
4357 (sync_sub<mode>): Likewise.
4358 (sync_old_add<mode>): Likewise.
4359 (sync_old_sub<mode>): Likewise.
4360 (sync_new_add<mode>): Likewise.
4361 (sync_new_sub<mode>): Likewise.
4362 (sync_<optab><mode>): Likewise.
4363 (sync_old_<optab><mode>): Likewise.
4364 (sync_new_<optab><mode>): Likewise.
4365 (sync_nand<mode>): Likewise.
4366 (sync_old_nand<mode>): Likewise.
4367 (sync_new_nand<mode>): Likewise.
4368 (sync_lock_test_and_set<mode>): Likewise.
4369 (test_and_set_12): Likewise.
4370 (atomic_compare_and_swap<mode>): Likewise.
4371 (atomic_exchange<mode>_llsc): Likewise.
4372 (atomic_fetch_add<mode>_llsc): Likewise.
4373 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4374 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4375 (umips_save_restore_pattern_p): Likewise.
4376 (umips_load_store_pair_p): Likewise.
4377 (umips_output_load_store_pair): Likewise.
4378 (umips_movep_target_p): Likewise.
4379 (umips_12bit_offset_address_p): Likewise.
4380 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4381 (mips_base_mips16): Rename this...
4382 (mips_base_compression_flags): ...to this. Update all uses.
4383 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4384 (mips_mips16_decl_p): Delete.
4385 (mips_nomips16_decl_p): Delete.
4386 (mips_get_compress_on_flags): New function.
4387 (mips_get_compress_off_flags): New function.
4388 (mips_get_compress_mode): New function.
4389 (mips_get_compress_on_name): New function.
4390 (mips_get_compress_off_name): New function.
4391 (mips_insert_attributes): Support multiple compression types.
4392 (mips_merge_decl_attributes): Likewise.
4393 (umips_12bit_offset_address_p): New function.
4394 (mips_start_function_definition): Emit .set micromips directive.
4395 (mips_call_may_need_jalx_p): New function.
4396 (mips_function_ok_for_sibcall): Add microMIPS support.
4397 (mips_print_operand_punctuation): Support short delay slots and
4399 (umips_swm_mask, umips_swm_encoding): New.
4400 (umips_build_save_restore): New function.
4401 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4402 (was_mips16_p): Remove.
4403 (old_compression_mode): New.
4404 (mips_set_compression_mode): New function.
4405 (mips_set_current_function): Add microMIPS support.
4406 (mips_option_override): Likewise.
4407 (umips_save_restore_pattern_p): New function.
4408 (umips_output_save_restore): New function.
4409 (umips_load_store_pair_p_1): New function.
4410 (umips_load_store_pair_p): New function.
4411 (umips_output_load_store_pair_1): New function.
4412 (umips_output_load_store_pair): New function.
4413 (umips_movep_target_p) New function.
4414 (mips_prepare_pch_save): Add microMIPS support.
4415 * config/mips/mips.h (TARGET_COMPRESSION): New.
4416 (TARGET_CPU_CPP_BUILTINS): Update macro
4417 to use new compression flags and to support microMIPS.
4418 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4419 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4420 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4421 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4422 (ASM_SPEC): Support mmicromips and mno-micromips.
4423 (M16STORE_REG_P): New macro.
4424 (MIPS_CALL): Support TARGET_MICROMIPS.
4425 (MICROMIPS_J): New macro.
4426 (mips_base_mips16): Rename this...
4427 (mips_base_compression_flags): ...to this.
4428 (UMIPS_12BIT_OFFSET_P): New macro.
4429 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4430 (MULTILIB_DIRNAMES): Likewise.
4432 2013-02-24 Jakub Jelinek <jakub@redhat.com>
4435 * target-globals.c (save_target_globals): For init_reg_sets and
4436 target_reinit remporarily set this_fn_optabs to this_target_optabs.
4438 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
4440 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
4441 * config/aarch64/t-aarch64
4442 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
4444 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
4447 * lra-constraints.c (process_alt_operands): Reload operand
4448 conflicting with earlier clobber only if no more other conflicting
4451 2013-02-22 Jakub Jelinek <jakub@redhat.com>
4454 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
4455 if not linking a shared library.
4457 2013-02-22 Seth LaForge <sethml@google.com>
4459 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
4461 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
4463 * config/arm/arm.md (split for extendsidi): Update condition.
4464 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
4465 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
4466 (qhs_zextenddi_cstr): Likewise.
4468 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4471 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
4472 avoid signed wrapping.
4473 (expand_mult): Handle properly multiplication by
4474 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
4475 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
4476 in the compiler if coeff is HOST_WIDE_INT_MIN.
4477 (expand_divmod): Don't make ext_op1 static, change it's type to uhwi.
4478 Avoid undefined behavior in -INTVAL (op1).
4480 PR rtl-optimization/50339
4481 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
4483 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
4484 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
4485 into splitting_ashiftrt field.
4486 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
4488 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
4491 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
4494 * trans-mem.c (execute_tm_mark): Do not expand transactions that
4495 are sure to go irrevocable.
4497 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
4499 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
4500 scalars are valid operands.
4502 2013-02-21 Martin Jambor <mjambor@suse.cz>
4504 PR tree-optimization/56310
4505 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
4506 only matching indices and non-negative final offsets.
4507 (intersect_aggregates_with_edge): Pass src_idx to
4508 agg_replacements_to_vector. Pass src_idx insstead of index to
4509 intersect_with_agg_replacements.
4511 2013-02-21 Martin Jambor <mjambor@suse.cz>
4513 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
4514 instead of hard-wired defaults.
4516 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
4518 * doc/invoke.texi (MIPS Options): Update documentation of the
4519 floating-point multiply-accumulate instruction restrictions.
4521 2013-02-21 Kostya Serebryany <kcc@google.com>
4523 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
4524 asan_shadow_offset on x86_64 linux.
4526 2013-02-21 Richard Biener <rguenther@suse.de>
4528 PR tree-optimization/56415
4530 2013-02-11 Richard Biener <rguenther@suse.de>
4532 PR tree-optimization/56273
4533 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4536 2013-02-21 Jakub Jelinek <jakub@redhat.com>
4539 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
4543 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
4544 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
4546 2013-02-20 Jan Hubicka <jh@suse.cz>
4548 PR tree-optimization/56265
4549 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when
4550 target is referenced for first time.
4552 2013-02-20 Richard Biener <rguenther@suse.de>
4554 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
4555 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
4556 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4557 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
4558 not return anything.
4559 (rename_ssa_copies): Do not remove unused locals.
4560 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
4561 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
4562 * passes.c (execute_function_todo): Do not schedule unused locals
4563 removal if cleanup_tree_cfg did something.
4564 * tree-ssa-live.c (remove_unused_locals): Dump statistics
4565 about the number of removed locals.
4567 2013-02-20 Richard Biener <rguenther@suse.de>
4569 PR tree-optimization/56398
4570 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
4573 2013-02-20 Martin Jambor <mjambor@suse.cz>
4575 PR tree-optimization/55334
4576 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
4577 restricted pointers to arrays.
4579 2013-02-20 Richard Biener <rguenther@suse.de>
4580 Jakub Jelinek <jakub@redhat.com>
4582 PR tree-optimization/56396
4583 * tree-ssa-ccp.c (n_const_val): New static variable.
4584 (get_value): Return NULL for SSA names we don't have a lattice
4586 (ccp_initialize): Initialize n_const_val.
4587 * tree-ssa-copy.c (n_copy_of): New static variable.
4588 (init_copy_prop): Initialize n_copy_of.
4589 (get_value): Return NULL_TREE for SSA names we don't have a
4592 2013-02-20 Martin Jambor <mjambor@suse.cz>
4594 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
4596 2013-02-20 Richard Biener <rguenther@suse.de>
4598 * genpreds.c (write_lookup_constraint): Do not compare first
4599 letter of the constraint again.
4601 2013-02-20 Richard Biener <rguenther@suse.de>
4603 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
4605 (get_use_iv_cost): Terminate hashtable walk when coming across
4608 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
4610 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
4611 reassociation for avx2 targets.
4613 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4615 * config/microblaze/microblaze.c: microblaze_has_clz = 0
4616 Add version check for v8.10.a to enable microblaze_has_clz
4617 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
4618 version and TARGET_PATTERN_COMPARE check
4619 * config/microblaze/microblaze.md: New clzsi2 instruction
4621 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4623 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
4624 function before branching.
4626 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4628 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
4630 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
4632 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
4635 * sel-sched.c: Include ira.h.
4636 (implicit_clobber_conflict_p): New function.
4637 (moveup_expr): Use it.
4638 * Makefile.in (sel-sched.o): Depend on ira.h.
4640 2013-02-19 Richard Biener <rguenther@suse.de>
4642 PR tree-optimization/56384
4643 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
4644 (vn_hash_type): Split out from ...
4645 (vn_hash_constant_with_type): ... here.
4646 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
4647 (vn_phi_eq): Compare types from vn_phi_s structure.
4648 (vn_phi_lookup): Populate vn_phi_s type.
4649 (vn_phi_insert): Likewise.
4651 2013-02-19 Jakub Jelinek <jakub@redhat.com>
4653 PR tree-optimization/56350
4654 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
4655 if haven't found reduction or nested cycle operand, rather than
4656 asserting we must find it.
4658 PR tree-optimization/56381
4659 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
4662 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
4663 Jakub Jelinek <jakub@redhat.com>
4666 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
4667 (swap_optab_enable): Same.
4668 (init_all_optabs): Use argument instead of global.
4669 * tree.h (struct tree_optimization_option): New field target_optabs.
4670 * expr.h (init_all_optabs): Add argument to prototype.
4671 (TREE_OPTIMIZATION_OPTABS): New.
4672 (save_optabs_if_changed): Protoize.
4673 * optabs.h: Declare this_fn_optabs.
4674 * optabs.c (save_optabs_if_changed): New.
4675 Declare this_fn_optabs.
4676 (init_optabs): Add argument to init_all_optabs() call.
4677 * function.c (invoke_set_current_function_hook): Handle per
4679 * function.h (struct function): New field optabs.
4680 * config/mips/mips.c (mips_set_mips16_mode): Handle when
4681 optimization_current_node has changed.
4682 * target-globals.h (save_target_globals_default_opts): Protoize.
4683 * target-globals.c (save_target_globals_default_opts): New.
4685 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4688 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
4689 registers %fr12 and %fr12R as call used.
4692 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
4693 and HImode, require all displacements to be an integer multiple of
4695 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
4696 only allow QImode and HImode when reload is in progress and strict is
4697 true. Likewise for symbolic addresses. Use base14_operand to check
4698 displacements in REG+BASE addresses.
4700 2013-02-18 Richard Biener <rguenther@suse.de>
4702 PR tree-optimization/56366
4703 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4704 handle sign-conversion of outer-loop initial induction value.
4706 2013-02-18 Richard Biener <rguenther@suse.de>
4709 * cfghooks.c (merge_blocks): If we merge a latch into another
4710 block adjust references to it.
4711 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
4712 (verify_loop_structure): Verify that a recorded latch is in fact
4715 2013-02-18 Richard Biener <rguenther@suse.de>
4717 PR tree-optimization/56321
4718 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
4719 order SSA name release and virtual operand unlinking.
4721 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4723 * config/microblaze/microblaze.md (save_stack_block): Define.
4724 (restore_stack_block): Likewise.
4726 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4728 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
4729 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
4730 * config/microblaze/microblaze.c (microblaze_option_override):
4731 Bail out early for PIC modes when target does not support PIC.
4733 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4735 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
4736 Replace with a microblaze version.
4737 (microblaze_trampoline_init): Adapt for microblaze.
4738 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
4741 2013-02-16 Jakub Jelinek <jakub@redhat.com>
4742 Dodji Seketeli <dodji@redhat.com>
4745 * asan.c (get_mem_refs_of_builtin_call): White space and style
4747 (instrument_mem_region_access): Do not forget to always put
4748 instrumentation of the of 'base' and 'base + len' in a "if (len !=
4749 0) statement, even for cases where either 'base' or 'base + len'
4750 are not instrumented -- because they have been previously
4751 instrumented. Simplify the logic by putting all the statements
4752 instrument 'base + len' inside a sequence, and then insert that
4753 sequence right before the current insertion point. Then, to
4754 instrument 'base + len', just get an iterator on that statement.
4755 And do not forget to update the pointer to iterator the function
4756 received as argument.
4758 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
4760 PR rtl-optimization/56348
4761 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
4763 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
4765 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
4766 (clean_graph_dump_file): Pass base to start_graph_dump.
4768 2013-02-14 Richard Henderson <rth@redhat.com>
4771 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
4773 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
4775 * collect2-aix.h: Define F_LOADONLY.
4777 2013-02-14 Richard Biener <rguenther@suse.de>
4780 * varasm.c (output_constant_def_1): Get the decl representing
4781 the constant as argument.
4782 (output_constant_def): Wrap output_constant_def_1.
4783 (make_decl_rtl): Use output_constant_def_1 with the decl
4784 representing the constant.
4785 (build_constant_desc): Optionally re-use a decl already
4786 representing the constant.
4787 (tree_output_constant_def): Adjust.
4789 2013-02-14 Dodji Seketeli <dodji@redhat.com>
4792 * asan.c (instrument_builtin_call): Really put the length of the
4793 second source argument into src1_len.
4795 2013-02-13 Jakub Jelinek <jakub@redhat.com>
4797 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
4798 argument. If it is false, don't create edge from then_bb to
4800 (insert_if_then_before_iter): Pass true to it.
4801 (build_check_stmt): Pass false to it.
4802 (transform_statements): Flush hash table only on extended basic
4803 block boundaries, rather than at the beginning of every bb.
4804 Don't flush hash table on nonfreeing_call_p calls.
4805 * tree-flow.h (nonfreeing_call_p): New prototype.
4806 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
4808 2013-02-13 David S. Miller <davem@davemloft.net>
4810 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
4812 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
4815 * ira.c (max_regno_before_ira): Move from ...
4817 (fix_reg_equiv_init): Use max_regno_before_ira instead of
4820 2013-02-13 Jakub Jelinek <jakub@redhat.com>
4822 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
4824 2013-02-13 Richard Biener <rguenther@suse.de>
4827 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
4828 globals in MEM_REFs.
4830 2013-02-13 Richard Biener <rguenther@suse.de>
4832 * loop-init.c (loop_optimizer_init): Clear loop state when
4833 re-initializing preserved loops.
4834 * loop-unswitch.c (unswitch_single_loop): Return whether
4835 we unswitched the loop. Do not verify loop state here.
4836 (unswitch_loops): When we unswitched a loop discover new
4839 2013-02-13 Kostya Serebryany <kcc@google.com>
4841 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
4843 * sanitizer.def: Rename __asan_init to __asan_init_v1.
4845 2013-02-12 Dodji Seketeli <dodji@redhat.com>
4847 Avoid instrumenting duplicated memory access in the same basic block
4848 * Makefile.in (asan.o): Add new dependency on hash-table.h
4849 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
4850 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
4851 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
4852 (free_mem_ref_resources, has_mem_ref_been_instrumented)
4853 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
4854 (get_mem_ref_of_assignment): New functions.
4855 (get_mem_refs_of_builtin_call): Extract from
4856 instrument_builtin_call and tweak a little bit to make it fit with
4858 (instrument_builtin_call): Use the new
4859 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
4860 of is_gimple_builtin_call.
4861 (instrument_derefs, instrument_mem_region_access): Insert the
4862 instrumented memory reference into the hash table.
4863 (maybe_instrument_assignment): Renamed instrument_assignment into
4864 this, and change it to advance the iterator when instrumentation
4865 actually happened and return true in that case. This makes it
4866 homogeneous with maybe_instrument_assignment, and thus give a
4867 chance to callers to be more 'regular'.
4868 (transform_statements): Clear the memory reference hash table
4869 whenever we enter a new BB, when we cross a function call, or when
4870 we are done transforming statements. Use
4871 maybe_instrument_assignment instead of instrumentation. No more
4872 need to special case maybe_instrument_assignment and advance the
4873 iterator after calling it; it's now handled just like
4874 maybe_instrument_call. Update comment.
4876 2013-02-13 Richard Biener <rguenther@suse.de>
4878 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4879 Fix loop discovery code.
4881 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
4884 * lra-constraints.c (process_alt_operands): Match early clobber
4885 operand with itself. Check conflicts with earlyclobber only if
4886 the operand is not reloaded. Prefer to reload conflicting operand
4887 if earlyclobber and matching operands are the same.
4889 2013-02-12 Richard Biener <rguenther@suse.de>
4892 * lto-streamer-out.c (write_symbol): Do not output symbols
4893 for hard register variables.
4895 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
4898 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
4899 (umulsidi3_insn, mulsidi3_insn): New insns.
4901 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
4903 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
4904 (struct tune_params): Add vec_costs field.
4905 * config/arm/arm.c (arm_builtin_vectorization_cost)
4906 (arm_add_stmt_cost): New functions.
4907 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
4908 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
4909 (arm_default_vec_cost): New struct of type cpu_vec_costs.
4910 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4911 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
4912 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
4913 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
4915 2013-02-12 Richard Biener <rguenther@suse.de>
4918 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
4919 decls again if possible.
4921 2013-02-12 Richard Biener <rguenther@suse.de>
4924 * tree-ssa.c (verify_ssa_name): Fix check, move
4925 SSA_NAME_IN_FREE_LIST check up.
4927 2013-02-12 Jakub Jelinek <jakub@redhat.com>
4928 Steven Bosscher <steven@gcc.gnu.org>
4930 PR rtl-optimization/56151
4931 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
4932 equal to op0 or op1, and last_insn pattern is CODE operation
4933 with MEM dest and one of the operands matches that MEM.
4935 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
4937 * doc/extend.texi: Document Function Multiversioning and "default"
4938 parameter string to target attribute.
4939 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
4940 target attribute parameter is "default".
4941 (ix86_compare_version_priority): Remove checks for target attribute.
4942 (ix86_mangle_function_version_assembler_name): Change error to sorry.
4943 Remove check for target attribute equal to NULL. Add assert.
4944 (ix86_generate_version_dispatcher_body): Change error to sorry.
4946 2013-02-11 Iain Sandoe <iain@codesourcery.com>
4947 Jack Howarth <howarth@bromo.med.uc.edu>
4948 Patrick Marlier <patrick.marlier@gmail.com>
4951 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
4952 define ENDFILE_SPEC as TM_DESTRUCTOR.
4953 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
4955 2013-02-11 Alexander Potapenko <glider@google.com>
4956 Jack Howarth <howarth@bromo.med.uc.edu>
4957 Jakub Jelinek <jakub@redhat.com>
4960 * config/darwin.c (cdtor_record): Rename ctor_record.
4961 (sort_cdtor_records): Rename sort_ctor_records.
4962 (finalize_dtors): New routine to sort destructors by
4963 priority before use in assemble_integer.
4964 (machopic_asm_out_destructor): Use finalize_dtors if needed.
4966 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
4968 PR rtl-optimization/56275
4969 * simplify-rtx.c (avoid_constant_pool_reference): Check that
4970 offset is non-negative and less than cmode size before
4971 calling simplify_subreg.
4973 2013-02-11 Richard Biener <rguenther@suse.de>
4975 PR tree-optimization/56264
4976 * cfgloop.h (fix_loop_structure): Adjust prototype.
4977 * loop-init.c (fix_loop_structure): Return the number of
4978 newly discovered loops.
4979 * tree-cfgcleanup.c (repair_loop_structures): When new loops
4980 are discovered, do a full loop-closed SSA rewrite.
4982 2013-02-11 Richard Biener <rguenther@suse.de>
4984 PR tree-optimization/56273
4985 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4987 (check_array_ref): Fix missing newline in dumps.
4988 (search_for_addr_array): Likewise.
4990 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
4992 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
4994 2013-02-09 Jakub Jelinek <jakub@redhat.com>
4997 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
4999 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
5001 PR rtl-optimization/56246
5002 * lra-constraints.c (simplify_operand_subreg): Try to reuse
5004 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
5005 constraints are satisfied.
5007 2013-02-08 Jeff Law <law@redhat.com>
5010 * emit-rtl.c (reg_is_parm_p): New function.
5011 * regs.h (reg_is_parm_p): New prototype.
5012 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
5013 callee-clobbered registers.
5015 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5018 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
5019 If there is no implicit builtin declaration, just return NULL.
5021 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5023 * config/i386/sse.md (FMAMODEM): New mode iterator.
5024 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
5025 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
5027 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5029 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
5030 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
5031 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
5033 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5035 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
5036 (microblaze*-*-elf): Likewise.
5037 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
5039 * config/microblaze/microblaze-c.c: Add builtin defines for
5040 _LITTLE_ENDIAN and _BIG_ENDIAN.
5041 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
5042 add to TARGET_DEFAULT flags.
5043 Expand ASM_SPEC and LINK_SPEC.
5044 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
5045 * config/microblaze/microblaze.md: Update extendsidi2 and
5046 movdi_internal instructions to use low-order / high-order reg
5048 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
5049 options and inversemask / mask of LITTLE_ENDIAN.
5050 * config/microblaze/t-microblaze: Expand multilib options to
5051 include mlittle-endian (le) and update exceptions patterns.
5053 2013-02-08 Jakub Jelinek <jakub@redhat.com>
5055 PR rtl-optimization/56195
5056 * lra-constraints.c (get_reload_reg): Don't reuse regs
5057 if they have smaller mode than requested, if they have
5058 wider mode than requested, try to return a SUBREG.
5060 PR tree-optimization/56250
5061 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
5062 if type is unsigned and code isn't MULT_EXPR.
5064 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5066 PR tree-optimization/56064
5067 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
5068 bits according to mode.
5069 * fixed-value.h (fixed_from_double_int)
5070 (const_fixed_from_double_int): Adjust comments.
5072 2013-02-08 Richard Biener <rguenther@suse.de>
5075 * lto-streamer.h (struct data_in): Remove current_file, current_line
5076 and current_col members.
5077 * lto-streamer-out.c (lto_output_location): Stream changed bits
5078 en-block for efficiency.
5079 * lto-streamer-in.c (clear_line_info): Remove.
5080 (lto_input_location): Cache current file, line and column
5081 globally via local statics. Read changed bits en-block.
5082 (input_function): Do not call clear_line_info.
5083 (lto_read_body): Likewise.
5084 (lto_input_toplevel_asms): Likewise.
5086 2013-02-08 Michael Matz <matz@suse.de>
5088 PR tree-optimization/52448
5089 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
5090 (nt_call_phase): New static.
5091 (add_or_mark_expr): Only mark accesses with newer phase than any
5093 (nonfreeing_call_p): New.
5094 (nt_init_block): Update nt_call_phase, mark blocks as visited.
5095 (nt_fini_block): Keep blocks marked as visited.
5096 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
5098 2013-02-08 Richard Biener <rguenther@suse.de>
5100 * ira.c (ira): Free broken dominator information.
5102 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
5104 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
5106 2013-02-08 Marek Polacek <polacek@redhat.com>
5108 * cfgloop.c (verify_loop_structure): Add more checking of headers.
5110 2013-02-08 Richard Biener <rguenther@suse.de>
5113 * cfgloop.h (flow_loops_find): Adjust.
5114 (bb_loop_header_p): Declare.
5115 * cfgloop.c (bb_loop_header_p): New function split out from ...
5116 (flow_loops_find): ... here. Adjust function signature,
5117 support incremental loop structure update.
5118 (verify_loop_structure): Cleanup. Verify a loop is a loop.
5119 * cfgloopmanip.c (fix_loop_structure): Move ...
5120 * loop-init.c (fix_loop_structure): ... here.
5121 (apply_loop_flags): Split out from ...
5122 (loop_optimizer_init): ... here.
5123 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
5124 in incremental mode, only remove dead loops here.
5126 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
5129 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
5130 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
5131 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
5132 (*round<mode>3.libgcc): New insns for fixed-modes.
5133 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
5134 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
5135 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
5136 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
5137 implementations. Define to __builtin_avr_absFX,
5138 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
5139 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
5140 __builtin_avr_countlsFX, respectively.
5141 * config/avr/avr-c.c (target.h): Include it.
5142 (enum avr_builtin_id): New enum.
5143 (avr_resolve_overloaded_builtin): New static function.
5144 (avr_register_target_pragmas): Use it to set
5145 targetm.resolve_overloaded_builtin.
5146 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
5147 tree nodes used by DEF_BUILTIN.
5148 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
5149 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
5150 <AVR_BUILTIN_xxBITS>: Same.
5152 2013-02-08 Richard Biener <rguenther@suse.de>
5154 * cfgloop.c (verify_loop_structure): Properly handle
5155 a loop exiting to another loop header.
5156 * ira-int.h (ira_loops): Remove.
5157 * ira.c (ira_loops): Remove.
5158 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
5159 (do_reload): Use loop_optimizer_finalize.
5160 * ira-build.c (create_loop_tree_nodes): Use get_loops and
5161 number_of_loops to access the loop tree.
5162 (more_one_region_p): Likewise.
5163 (finish_loop_tree_nodes): Likewise.
5164 (rebuild_regno_allocno_maps): Likewise.
5165 (mark_loops_for_removal): Likewise.
5166 (mark_all_loops_for_removal): Likewise.
5167 (remove_unnecessary_regions): Likewise.
5168 (ira_build): Likewise.
5169 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5171 2013-02-08 Richard Biener <rguenther@suse.de>
5173 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
5174 * ipa-pure-const.c (analyze_function): Avoid calling
5175 mark_irreducible_loops twice.
5176 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
5178 2013-02-07 David S. Miller <davem@davemloft.net>
5180 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
5182 * var-tracking.c (vt_add_function_parameter): Test the presence of
5183 HAVE_window_save properly and do not remap argument registers when
5184 we have a leaf function.
5186 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
5189 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
5191 * config/i386/i386.c (ix86_print_operand): Ditto.
5193 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5195 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5197 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
5199 PR rtl-optimization/56225
5200 * lra-constraints.c (process_alt_operands): Check that reload hard
5201 reg can hold value for strict_low_part.
5203 2013-02-07 Jakub Jelinek <jakub@redhat.com>
5206 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
5207 dwarf2out_end_function.
5208 (in_first_function_p, maybe_at_text_label_p,
5209 first_loclabel_num_not_at_text_label): New variables.
5210 (dwarf2out_var_location): In the first function find out
5211 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
5212 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
5215 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
5217 PR rtl-optimization/56178
5218 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
5219 SUBREG of a register. Tidy up related block of code.
5220 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
5221 note if the source is a register or a SUBREG of a register.
5223 2013-02-07 Jakub Jelinek <jakub@redhat.com>
5226 * config/rs6000/rs6000.md (ptrm): New mode attr.
5227 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
5228 call_value_indirect_aix<pttrsize>,
5229 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
5232 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5234 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
5235 if -bnortl. Convert to strcmp and strncmp.
5237 2013-02-07 Alan Modra <amodra@gmail.com>
5240 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
5241 addresses won't wrap when offsetting.
5242 (rs6000_secondary_reload): Provide secondary reloads needed for
5243 wrapping LO_SUM addresses.
5245 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
5247 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
5248 MACH, just __MACH__.
5250 2013-02-06 Richard Biener <rguenther@suse.de>
5252 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
5253 instead of calling fix_loop_structure.
5255 2013-02-06 Jakub Jelinek <jakub@redhat.com>
5258 * omp-low.c (use_pointer_for_field): Return false if
5259 lower_send_shared_vars doesn't generate any copy-out code.
5261 2013-02-06 Tom de Vries <tom@codesourcery.com>
5263 PR rtl-optimization/56131
5264 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
5265 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
5266 of the label is NULL. Add comment.
5268 2013-02-05 Jakub Jelinek <jakub@redhat.com>
5270 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
5273 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
5274 (STATIC_LIBTSAN_LIBS): Likewise.
5275 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
5276 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
5277 is defined, don't add anything else beyond that.
5278 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
5279 (LINK_COMMAND_SPEC): Use them.
5281 PR tree-optimization/56205
5282 * tree-stdarg.c (check_all_va_list_escapes): Return true if
5283 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
5284 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
5286 2013-02-05 Richard Biener <rguenther@suse.de>
5288 PR tree-optimization/53342
5289 PR tree-optimization/53185
5290 * tree-vectorizer.h (vect_check_strided_load): Remove.
5291 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
5292 not disallow peeling for vectorized strided loads.
5293 (vect_check_strided_load): Make static and simplify.
5294 (vect_analyze_data_refs): Adjust.
5295 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
5296 correctly when vectorizing strided loads.
5298 2013-02-05 Richard Biener <rguenther@suse.de>
5300 * doc/install.texi: Refer to ISL, not PPL.
5302 2013-02-05 Jan Hubicka <jh@suse.cz>
5304 PR tree-optimization/55789
5305 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
5307 2013-02-05 Jan Hubicka <jh@suse.cz>
5309 PR tree-optimization/55789
5310 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
5311 the dead call anyway.
5313 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
5316 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
5318 2013-02-04 Alexander Potapenko <glider@google.com>
5319 Jack Howarth <howarth@bromo.med.uc.edu>
5320 Jakub Jelinek <jakub@redhat.com>
5323 * config/darwin.c (sort_ctor_records): Stabilized qsort
5324 on constructor priority by using original position.
5325 (finalize_ctors): New routine to sort constructors by
5326 priority before use in assemble_integer.
5327 (machopic_asm_out_constructor): Use finalize_ctors if needed.
5329 2013-02-04 Jakub Jelinek <jakub@redhat.com>
5332 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
5333 about visibility on artificial decls.
5334 * config/sol2.c (solaris_assemble_visibility): Likewise.
5336 2013-02-04 Kai Tietz <ktietz@redhat.com>
5339 * config/i386/i386.c (function_value_ms_64): Add additional valtype
5340 argument and improve checking of return-argument types for 16-byte
5342 (ix86_function_value_1): Add additional valtype argument on call
5343 of function_value_64.
5344 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
5345 handling infunction_value_64 function.
5347 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5349 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
5351 2013-02-04 Richard Biener <rguenther@suse.de>
5353 PR tree-optimization/56188
5354 * tree-ssa-structalias.c (label_visit): Consider case with
5355 initially non-empty points-to set.
5356 (perform_var_substitution): Dump node mapping and clean up.
5358 2013-02-04 Richard Guenther <rguenther@suse.de>
5361 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
5362 node prevail as last resort.
5363 (lto_symtab_merge_decls): Remove guard on LTRANS here.
5364 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
5366 2013-02-04 Richard Biener <rguenther@suse.de>
5368 PR tree-optimization/56113
5369 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
5371 (equiv_class_lookup_or_add): ... this.
5372 (label_visit): Adjust and fix error in previous patch.
5373 (perform_var_substitution): Adjust.
5375 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
5377 * config/sh/divtab.c: Fix formatting and comments throughout the file.
5378 * config/sh/sh4-300.md: Likewise.
5379 * config/sh/sh4a.md: Likewise.
5380 * config/sh/constraints.md: Likewise.
5381 * config/sh/sh.md: Likewise.
5382 * config/sh/netbsd-elf.h: Likewise.
5383 * config/sh/predicates.md: Likewise.
5384 * config/sh/sh-protos.h: Likewise.
5385 * config/sh/ushmedia.h: Likewise.
5386 * config/sh/linux.h: Likewise.
5387 * config/sh/sh.c: Likewise.
5388 * config/sh/superh.h: Likewise.
5389 * config/sh/elf.h: Likewise.
5390 * config/sh/sh4.md: Likewise.
5391 * config/sh/sh.h: Likewise.
5393 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5395 * config/pa/constraints.md: Adjust unused letters. Change "T"
5396 constraint to match_test floating_point_store_memory_operand().
5397 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
5398 (base14_operand): New.
5399 (floating_point_store_memory_operand): New.
5400 (integer_store_memory_operand): Revise to use base14_operand and
5401 reg_plus_base_memory_operand.
5402 (move_dest_operand): Allow symbolic_memory_operands.
5403 (symbolic_memory_operand): Check for LO_SOM.
5404 (symbolic_operand): Change default case to break.
5405 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
5406 CONST_DOUBLE values to be reloaded by putting them into memory when
5407 the destination is a floating point register.
5408 (movdf): Remove code to handle CONST_DOUBLE.
5410 (reload_indf_r1): New.
5411 (reload_insf_r1): New.
5412 Consistently use "Q" and "T" constraints with integer and floating
5413 point move instructions, respectively.
5414 (movdi): Remove FAIL.
5415 Change predicate for source operand unamed DImode move from
5416 general_operand to move_src_operand.
5417 (umulsidi3): Change predicate for destination operand to
5419 Likewise for similar unamed patterns.
5420 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
5421 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
5422 (hppa_legitimize_address): Simplify mask calculation.
5423 (pa_emit_move_sequence): Revised handling of secondary reloads from
5424 REG+D addresses for floating point loads and stores. Directly handle
5425 loading CONST0_RTX (mode) to a floating point register.
5426 (pa_secondary_reload): Handle reloading DF and SFmode constant values
5427 to floating point registers. Don't restrict secondary reloads to
5428 floating point registers to integer modes. Revise some comments and
5430 (TARGET_LEGITIMATE_ADDRESS_P): Define.
5431 (pa_legitimate_address_p): New.
5432 (pa_legitimize_reload_address): New.
5433 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
5434 (STRICT_REG_OK_FOR_BASE_P): New.
5435 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
5436 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
5438 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
5439 Andrew Dixie <andrewd@gentrack.com>
5441 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
5444 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
5446 * expmed.c (extract_bit_field_1): Pass the full width of the
5447 structure to get_best_reg_extraction_insn.
5449 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5452 * configure.ac (use_cxa_atexit): Add AIX.
5453 * configure: Regenerate.
5455 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
5457 2013-02-01 Jakub Jelinek <jakub@redhat.com>
5460 * final.c (need_profile_function): New variable.
5461 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
5462 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
5463 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
5464 notes, targetm.asm_out.function_prologue doesn't emit anything,
5465 HAVE_prologue and profiler should be emitted before prologue,
5466 set need_profile_function instead of emitting it.
5467 (final_scan_insn): If need_profile_function, emit
5468 profile_function on the first NOTE_INSN_BASIC_BLOCK or
5469 NOTE_INSN_FUNCTION_BEG note.
5471 2013-02-01 Richard Henderson <rth@redhat.com>
5473 * config/rs6000/rs6000.md (smulditi3): New.
5476 * config/alpha/alpha.md (umulditi3): New.
5478 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
5480 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
5481 (ASM_OUTPUT_ALIGNED_LOCAL): New.
5483 2013-02-01 Richard Biener <rguenther@suse.de>
5485 PR tree-optimization/56113
5486 * tree-ssa-structalias.c (label_visit): Reduce work for
5487 single-predecessor nodes.
5489 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
5491 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
5492 range isn't testing for zero.
5494 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
5497 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
5499 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
5500 Nick Clifton <nickc@redhat.com>
5502 * config/v850/constraints.md (Q): Define as a memory constraint.
5503 * config/v850/predicates.md (label_ref_operand): New predicate.
5504 (e3v5_shift_operand): New predicate.
5505 (ior_operator): New predicate.
5506 * config/v850/t-v850: Add e3v5 multilib.
5507 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
5508 (v850_gen_movdi): Prototype.
5509 * config/v850/v850.c: Add support for e3v5 architecture.
5510 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
5512 (construct_save_jarl): Add e3v5 long JARL support.
5513 (v850_adjust_insn_length): New function. Adjust length of call
5514 insns when using e3v5 instructions.
5515 (v850_gen_movdi): New function: Generate instructions to move a
5517 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
5518 (CPP_SPEC): Define __v850e3v5__ as appropriate.
5519 (TARGET_USE_FPU): Enable for e3v5.
5520 (CONST_OK_FOR_W): New macro.
5521 (ADJUST_INSN_LENGTH): Define.
5522 * config/v850/v850.md (UNSPEC_LOOP): Define.
5523 (attr cpu): Add v850e3v5.
5524 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
5525 (movdi): New pattern.
5526 (movdi_internal): New pattern.
5527 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
5528 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
5529 (cstoresf4): Likewise.
5530 (cstoredf4): Likewise.
5531 (insv): New pattern.
5532 (rotlso3_a): New pattern.
5533 (rotlsi3_b): New pattern
5534 (rotlsi3_v850e3v5): New pattern.
5535 (doloop_begin): New pattern.
5536 (fix_loop_counter): New pattern.
5537 (doloop_end): New pattern.
5538 (branch_normal): Add e3v5 long branch support.
5539 (branch_invert): Likewise.
5540 (branch_z_normal): Likewise.
5541 (branch_z_invert): Likewise.
5542 (branch_nz_normal): Likewise.
5543 (branch_nz_invert): Likewise.
5544 (call_internal_short): Add e3v5 register-indirect JARL support.
5545 (call_internal_long): Likewise.
5546 (call_value_internal_short): Likewise.
5547 (call_value_internal_long): Likewise.
5548 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
5549 (mloop): New option.
5550 * config.gcc: Add support for configuring v840e3v5 target.
5551 * doc/invoke.texi: Document new v850 specific command line options.
5553 2013-01-31 Paul Koning <ni1d@arrl.net>
5557 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
5558 children if parent is a class.
5559 (prune_unused_types_prune): Don't add DW_AT_declaration.
5561 2013-01-31 Richard Biener <rguenther@suse.de>
5563 PR tree-optimization/56157
5564 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
5565 match up operand with SLP child.
5567 2013-01-31 Jason Merrill <jason@redhat.com>
5570 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
5571 parameters the first time.
5572 (gen_scheduled_generic_parms_dies): Check completeness here.
5574 2013-01-31 Richard Biener <rguenther@suse.de>
5577 * common.opt (faggressive-loop-optimizations): New flag,
5579 * doc/invoke.texi (faggressive-loop-optimizations): Document.
5580 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
5581 infer_loop_bounds_from_undefined by it.
5583 2013-01-31 Richard Biener <rguenther@suse.de>
5585 PR tree-optimization/56150
5586 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
5587 visit virtual operands.
5588 (find_uses_to_rename_bb): Likewise.
5590 2013-01-31 Richard Biener <rguenther@suse.de>
5592 PR tree-optimization/56150
5593 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
5594 mixed store non-store stmts.
5596 2013-01-30 Jakub Jelinek <jakub@redhat.com>
5599 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
5600 LIBASAN_EARLY_SPEC is defined.
5601 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
5602 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
5604 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
5607 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
5608 invalid args instead of ICEing on it.
5609 (ix86_valid_target_attribute_tree): Return error_mark_node if
5610 ix86_valid_target_attribute_inner_p failed.
5611 (ix86_valid_target_attribute_p): Return false only if
5612 ix86_valid_target_attribute_tree returned error_mark_node. Allow
5613 target("default") attribute.
5614 (sorted_attr_string): Change argument from const char * to tree,
5615 merge in all target attribute arguments rather than just one.
5616 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
5617 instead of free. Avoid using strcat.
5618 (ix86_mangle_function_version_assembler_name): Mangle
5619 target("default") as if no target attribute is present. Adjust
5620 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
5621 instead of xmalloc and XDELETEVEC instead of free.
5622 (ix86_function_versions): Don't return true if one of the decls
5623 doesn't have target attribute. If they don't and one of the decls
5624 is DECL_FUNCTION_VERSIONED, report an error. Adjust
5625 sorted_attr_string caller. Use XDELETEVEC instead of free.
5626 (ix86_supports_function_versions): Remove.
5627 (make_name): Fix up formatting.
5628 (make_dispatcher_decl): Remove resolver_name and its initialization.
5629 Avoid leaking memory.
5630 (is_function_default_version): Return true if there is
5631 target("default") attribute rather than no target attribute at all.
5632 (make_resolver_func): Avoid leaking memory.
5633 (ix86_generate_version_dispatcher_body): Likewise.
5634 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
5635 * target.def (supports_function_versions): Remove.
5636 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
5637 * doc/tm.texi: Regenerated.
5639 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
5641 PR rtl-optimization/56144
5642 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
5643 for values with side effects.
5645 2013-01-30 Richard Biener <rguenther@suse.de>
5647 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
5648 (sparseset_pop): Likewise.
5649 * cfganal.c (compute_idf): Likewise. Increase work-stack size
5650 to be able to use quick_push in the worker loop.
5652 2013-01-30 Marek Polacek <polacek@redhat.com>
5654 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
5656 2013-01-30 Richard Biener <rguenther@suse.de>
5659 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
5661 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
5663 PR tree-optimization/56064
5664 * fixed-value.c (fixed_from_double_int): New function.
5665 * fixed-value.h (fixed_from_double_int): New prototype.
5666 (const_fixed_from_double_int): New static inline function.
5667 * fold-const.c (native_interpret_fixed): New static function.
5668 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
5669 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
5670 (native_encode_fixed): New static function.
5671 (native_encode_expr) <FIXED_CST>: Use it.
5672 (native_interpret_int): Move double_int worker code to...
5673 * double-int.c (double_int::from_buffer): ...this new static method.
5674 * double-int.h (double_int::from_buffer): Prototype it.
5676 2013-01-30 Richard Biener <rguenther@suse.de>
5678 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
5679 New pointer-map and obstack.
5680 (init_alias_vars): Allocate pointer-map and obstack.
5681 (delete_points_to_sets): Free them.
5682 (find_what_var_points_to): Cache result.
5683 (find_what_p_points_to): Adjust for changed interface of
5684 find_what_var_points_to.
5685 (compute_points_to_sets): Likewise.
5686 (ipa_pta_execute): Likewise.
5688 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5690 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
5691 * configure: Regenerate.
5692 * config.in: Regenerate.
5693 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
5694 #nobits/#progbits if supported.
5696 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
5699 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
5700 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
5701 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
5703 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5705 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
5706 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
5708 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5710 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
5711 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
5713 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5715 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
5717 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
5718 * config/arm/cortex-a7.md: New bypasses using
5719 arm_mac_accumulator_is_result.
5721 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5723 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
5724 (cortex_a7_neon_mla): Likewise.
5725 (cortex_a7_fpfmad): New reservation.
5726 (cortex_a7_fpmacs): Use ffmas and update required units.
5727 (cortex_a7_fpmuld): Update required units and latency.
5728 (cortex_a7_fpmacd): Likewise.
5729 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
5730 (cortex_a7_neon). Likewise.
5731 (bypass) Update participating units.
5733 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
5735 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
5736 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
5738 * config/arm/vfp11.md (vfp_farith): Use ffmas.
5739 (vfp_fmul): Use ffmad.
5740 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
5741 (cortex_r4_fmacd): Use ffmad.
5742 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
5743 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
5744 (cortex_a9_fmacd): Use ffmad.
5745 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
5746 (cortex_a8_vfp_macd): Use ffmad.
5747 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
5748 (cortex_a5_fpmacd): Use ffmad.
5749 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
5750 (cortex_a15_vfp_macd): Use ffmad.
5751 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
5753 2013-01-29 Jason Merrill <jason@redhat.com>
5756 * varasm.c (default_assemble_visibility): Don't warn about
5757 visibility on artificial decls.
5759 2013-01-29 Richard Biener <rguenther@suse.de>
5761 PR tree-optimization/56113
5762 * tree-ssa-structalias.c (equiv_class_lookup): Also return
5764 (label_visit): Free duplicate bitmaps and record the leader instead.
5765 (perform_var_substitution): Adjust.
5767 2013-01-29 Richard Biener <rguenther@suse.de>
5769 PR tree-optimization/55270
5770 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
5771 the CFG, schedule loops for fixup.
5773 2013-01-29 Nick Clifton <nickc@redhat.com>
5775 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
5778 2013-01-28 Leif Ekblad <leif@rdos.net>
5780 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
5781 * config/i386/i386.h (TARGET_RDOS): New macro.
5782 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
5783 * config/i386/i386.c (ix86_option_override_internal): For 64bit
5784 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
5785 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
5786 DEFAULT_LARGE_SECTION_THRESHOLD.
5787 * config/i386/i386.md (R14_REG, R15_REG): New constants.
5788 * config/i386/rdos.h: New file.
5789 * config/i386/rdos64.h: New file.
5791 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
5794 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
5797 2013-01-28 Jakub Jelinek <jakub@redhat.com>
5799 PR rtl-optimization/56117
5800 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
5801 call cselib_lookup_from_insn on the MEM before calling
5802 add_insn_mem_dependence.
5804 2013-01-28 Richard Biener <rguenther@suse.de>
5806 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
5807 to a stmt that didn't have one.
5808 (copy_phis_for_bb): Likewise for PHI arguments.
5809 (copy_debug_stmt): Likewise for debug stmts.
5811 2013-01-28 Richard Biener <rguenther@suse.de>
5813 PR tree-optimization/56034
5814 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
5815 (partition_builtin_p): Adjust.
5816 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
5817 it is the last partition.
5818 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
5819 up the vertex for the definition.
5820 (classify_partition): Classify whether a partition is a
5821 PKIND_REDUCTION, thus has uses outside of the loop.
5822 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
5823 Merge all PKIND_REDUCTION partitions into the last partition.
5824 (tree_loop_distribution): Seed partitions from reductions as well.
5826 2013-01-28 Jakub Jelinek <jakub@redhat.com>
5828 PR tree-optimization/56125
5829 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
5830 pow(x,c) into sqrt(x) * powi(x, n/2) or
5831 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
5832 optimizing for size.
5833 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
5834 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
5837 PR tree-optimization/56094
5838 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
5839 to UNKNOWN_LOCATION while gimplifying expr.
5841 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
5844 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
5845 operand 0 in movabs insn template for -masm=intel asm alternative.
5846 (*movabs<mode>_2): Ditto for operand 1.
5848 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
5851 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
5854 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5856 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
5859 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5861 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
5862 Undef to avoid warning.
5864 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5866 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
5867 * configure: Regenerate.
5869 2013-01-25 Jakub Jelinek <jakub@redhat.com>
5871 PR tree-optimization/56098
5872 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
5873 for stmts with volatile ops.
5874 (cond_store_replacement): Don't optimize if assign has volatile ops.
5875 (cond_if_else_store_replacement_1): Don't optimize if either
5876 then_assign or else_assign have volatile ops.
5877 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
5880 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5882 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
5884 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5886 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
5887 missing ':' in asm example.
5889 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
5891 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
5892 entries into lane and laneq entries.
5893 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
5894 Remove AdvSIMD scalar modes.
5895 (aarch64_sq<r>dmulh_laneq<mode>): New.
5896 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
5898 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
5899 builtin implementations to relfect changes in RTL in aarch64-simd.md.
5900 * config/aarch64/iterators.md (VCOND): New.
5903 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
5906 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
5907 Add NULL LIBNAME argument to existing definitions.
5908 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
5909 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
5910 * config/avr/avr.c (DEF_BUILTIN): Same.
5911 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
5912 (avr_expand_builtin): Expand to a vanilla call if a libgcc
5913 implementation is available (DECL_ASSEMBLER_NAME is set).
5914 (avr_fold_absfx): New static function.
5915 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
5916 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
5917 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
5919 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
5920 (abshk, absk, abslk, absllk): Provide as static inline functions.
5922 2013-01-25 Marek Polacek <polacek@redhat.com>
5924 PR tree-optimization/56035
5925 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
5927 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
5929 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
5930 (*movtf_internal_rex64): Add (!o,C) alternative
5931 (*movxf_internal_rex64): Ditto.
5932 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
5934 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
5936 * doc/invoke.texi: fix typo.
5937 * doc/objc.texi: fix typo.
5939 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
5941 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
5942 for the first two alternatives.
5944 2013-01-24 Diego Novillo <dnovillo@google.com>
5946 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
5947 (ggc-zone.o): Remove.
5948 * configure.ac: Remove option --with-gc.
5949 * configure: Re-generate.
5950 * doc/install.texi: Remove documentation for --with-gc.
5951 * gengtype.c (write_enum_defn): Remove. Update all users.
5952 (write_Types_process_field): Remove generation of gt_e_* argument.
5953 (output_type_enum): Remove. Update all users.
5954 (write_enum_defn): Remove. Update all users.
5955 (enum alloc_zone): Remove. Update all users.
5956 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
5957 * ggc-common.c (ggc_splay_alloc): Remove first argument.
5959 (struct ptr_data): Remove field TYPE. Update all users.
5960 (gt_pch_note_object): Remove argument TYPE. Update all users.
5961 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
5963 * ggc-none.c (ggc_alloc_typed_stat): Remove.
5964 (struct alloc_zone): Remove.
5965 (ggc_internal_alloc_zone_stat): Remove.
5966 (ggc_internal_cleared_alloc_zone_stat): Remove.
5967 * ggc-page.c (ggc_alloc_typed_stat): Remove.
5968 (ggc_pch_count_object): Remove last argument. Update all users.
5969 (ggc_pch_alloc_object): Remove last argument. Update all users.
5970 (struct alloc_zone): Remove.
5971 * ggc-zone.c: Remove.
5972 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
5973 (struct alloc_zone): Remove.
5974 (ggc_alloc_typed_stat): Remove.
5975 (ggc_alloc_typed): Remove.
5976 (ggc_splay_alloc): Remove first argument.
5977 (rtl_zone): Remove. Update all users.
5978 (tree_zone): Remove. Update all users.
5979 (tree_id_zone): Remove. Update all users.
5980 (ggc_internal_zone_alloc_stat): Remove. Update all users.
5981 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
5982 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
5983 * tree-ssanames.c: Remove references to zone allocator in comments.
5985 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
5987 * config/avr/avr.c (avr_out_fract): Make register numbers that
5988 might be outside of source operand signed.
5990 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
5992 * config/i386/constraints.md (Yf): New constraint.
5993 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
5994 of f constraint to conditionaly disable x87 register preferences.
5995 (*movdf_internal): Ditto.
5996 (*movsf_internal): Ditto.
5998 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
6001 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
6002 that have operands with impossible constraints.
6003 Add a FIXME for a speed-up opportunity.
6004 * lra-constraints.c (process_alt_operands): Verify that a class
6005 selected from constraints on asms is valid for the operand mode.
6006 (curr_insn_transform): Remove incorrect comment.
6008 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
6010 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
6011 TOC operand is a valid symbol ref in the constant pool.
6013 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6015 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
6017 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
6020 * config/avr/stdfix.h: New file.
6021 * t-avr (stdfix-gcc.h): New rule to build it.
6022 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
6024 2013-01-23 Kostya Serebryany <kcc@google.com>
6026 * config/darwin.h: remove dependency on
6027 CoreFoundation (asan on Mac OS).
6029 2013-01-23 Jakub Jelinek <jakub@redhat.com>
6032 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
6033 instead of cmpdi_operand for first comparison operand.
6034 Don't assert that comparison operands aren't both constants.
6036 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6038 * doc/install.texi (Downloading the Source): Update references to
6039 downloading separate components.
6041 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
6043 * doc/extend.texi (__int128): Improve grammar.
6045 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
6048 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
6049 alternative to (o,r).
6050 (*movdi_internal_rex64): Remove (!o,n) alternative.
6051 (DImode immediate->memory splitter): Remove.
6052 (DImode immediate->memory peephole2): Remove.
6053 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
6054 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
6055 alternative to (!o,*r).
6056 (*movtf_internal_sse): New pattern.
6057 (*movxf_internal_rex64): New pattern.
6058 (*movxf_internal): Disable for TARGET_64BIT.
6059 (*movdf_internal_rex64): Remove (!o,F) alternative.
6061 2013-01-22 Jakub Jelinek <jakub@redhat.com>
6064 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
6065 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
6066 * tree-vect-loop-manip.c (find_loop_location): Also ignore
6067 stmt locations where LOCATION_LOCUS of the stmt location is
6068 UNKNOWN_LOCATION or BUILTINS_LOCATION.
6071 * config/i386/i386.md (UNSPEC_STOS): New.
6072 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
6073 *strsetqi_1): Add UNSPEC_STOS.
6075 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
6078 * doc/invoke.texi: Remove left over -Wsynth example.
6080 2013-01-21 Jakub Jelinek <jakub@redhat.com>
6082 PR tree-optimization/56051
6083 * fold-const.c (fold_binary_loc): Don't fold
6084 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
6085 a narrowing conversion, or widening conversion from signed
6088 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
6090 PR rtl-optimization/56023
6091 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
6092 dependent on debug instruction.
6094 2013-01-21 Martin Jambor <mjambor@suse.cz>
6097 * function.c (allocate_struct_function): Call
6098 invoke_set_current_function_hook earlier.
6100 2013-01-21 Jakub Jelinek <jakub@redhat.com>
6102 * reload1.c (init_reload): Only initialize reload_obstack
6103 during the first call.
6105 2013-01-21 Marek Polacek <polacek@redhat.com>
6107 * cfgloop.c (verify_loop_structure): Fix up grammar.
6109 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
6111 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
6112 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
6114 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6117 * config/arm/marvell-pj4.md: Update copyright year.
6118 Fix up use of alu to alu_reg and simple_alu_imm.
6120 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
6122 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
6124 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
6127 * lra-constraints.c (curr_insn_transform): Don't reuse original
6128 insn for secondary memory move when memory mode should be different.
6130 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6132 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
6133 atomic_storedi_1): New patterns.
6135 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6137 btver2 pipeline descriptions.
6138 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
6140 * config/i386/i386.md (btver2_decode): New type attributes.
6141 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
6143 * config/i386/btver2.md: New file describing btver2 pipelines.
6145 2013-01-19 Andrew Pinski <apinski@cavium.com>
6147 PR tree-optimization/52631
6148 * tree-ssa-sccvn (visit_use): Before looking up the original
6149 statement, try looking up the simplified expression.
6151 2013-01-19 Anthony Green <green@moxielogic.com>
6153 * config/moxie/moxie.c (moxie_expand_prologue): Set
6154 current_function_static_stack_size.
6156 2013-01-18 Jakub Jelinek <jakub@redhat.com>
6158 PR tree-optimization/56029
6159 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
6160 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
6162 2013-01-18 Sharad Singhai <singhai@google.com>
6164 PR tree-optimization/55995
6165 * dumpfile.c (dump_loc): Print location only if available.
6166 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
6168 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
6171 * lra-constraints.c (curr_insn_transform): Reuse original insn for
6172 secondary memory move.
6173 (inherit_reload_reg): Use rclass instead of cl for
6174 check_secondary_memory_needed_p.
6176 2013-01-18 Jakub Jelinek <jakub@redhat.com>
6179 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
6180 the case where writing real complex part of target modifies op1.
6182 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
6184 * config/aarch64/aarch64-simd.md
6185 (aarch64_vcond_internal<mode>): Handle unordered cases.
6186 * config/aarch64/iterators.md (v_cmp_result): New.
6188 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
6189 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6191 * config/arm/marvell-pj4.md: New file.
6192 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
6193 * config/arm/arm.md (generic_sched): Add marvell_pj4.
6194 (generic_vfp): Likewise.
6195 * config/arm/arm-cores.def: Add marvell-pj4.
6196 * config/arm/arm-tune.md: Regenerate.
6197 * config/arm/arm-tables.opt: Regenerate.
6198 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
6199 * doc/invoke.texi: Document marvell-pj4.
6201 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
6203 * config/aarch64/arm_neon.h: Map scalar types to standard types.
6205 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6210 * var-tracking.c (negative_power_of_two_p): New.
6211 (global_get_addr_cache, local_get_addr_cache): New.
6212 (get_addr_from_global_cache, get_addr_from_local_cache): New.
6213 (vt_canonicalize_addr): Rewrite using the above. Adjust the
6215 (vt_stack_offset_p): Remove.
6216 (vt_canon_true_dep): Always canonicalize loc's address.
6217 (clobber_overlapping_mems): Make sure we have a MEM.
6218 (local_get_addr_clear_given_value): New.
6219 (val_reset): Clear local cached entries.
6220 (compute_bb_dataflow): Create and release the local cache.
6221 Disable duplicate MEMs clobbering.
6222 (emit_notes_in_bb): Clobber MEMs likewise.
6223 (vt_emit_notes): Create and release the local cache.
6224 (vt_initialize, vt_finalize): Create and release the global
6225 cache, respectively.
6226 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
6228 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6231 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
6232 not found in the symtab.
6234 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
6237 PR rtl-optimization/55547
6238 PR rtl-optimization/53827
6241 * alias.c (offset_overlap_p): New, factored out of...
6242 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
6243 the conservative special case for symbolic constants. Don't
6244 adjust zero sizes on alignment.
6246 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
6248 PR rtl-optimization/52573
6249 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
6250 REG_UNUSED for the same register.
6252 2013-01-17 Richard Biener <rguenther@suse.de>
6253 Marek Polacek <polacek@redhat.com>
6255 PR rtl-optimization/55833
6256 * loop-unswitch.c (unswitch_loops): Move loop verification...
6257 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
6258 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
6259 Set it to true when we're removing a loop from hierarchy tree in
6260 an irreducible region.
6261 (fix_bb_placements): Adjust caller.
6262 (fix_loop_placements): Likewise.
6264 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
6266 * config/avr/builtins.def (DEF_BUILTIN): Factor out
6267 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
6268 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
6269 Remove ID. Adjust comments.
6270 * config/avr/avr-c.c (avr_builtin_name): Remove.
6271 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
6272 * config/avr/avr.c (avr_tolower): New static function.
6273 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
6274 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
6275 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
6278 2013-01-17 Jan Hubicka <jh@suse.cz>
6280 PR tree-optimization/55273
6281 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
6283 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
6286 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
6287 store through atomic_store<mode>_1.
6288 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
6290 2013-01-17 Martin Jambor <mjambor@suse.cz>
6292 PR tree-optimizations/55264
6293 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
6294 for virtual methods.
6295 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
6296 virtual methods before inlining is over.
6297 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
6299 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
6302 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
6304 PR rtl-optimization/56005
6305 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
6306 pending reads for prefetch.
6308 2013-01-16 Ian Bolton <ian.bolton@arm.com>
6310 * config/aarch64/aarch64.md
6311 (*cstoresi_neg_uxtw): New pattern.
6312 (*cmovsi_insn_uxtw): New pattern.
6313 (*<optab>si3_uxtw): New pattern.
6314 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
6315 (*<optab>si3_insn_uxtw): New pattern.
6316 (*bswapsi2_uxtw): New pattern.
6318 2013-01-16 Richard Biener <rguenther@suse.de>
6320 * tree-inline.c (tree_function_versioning): Remove set but
6321 never used variable.
6323 2013-01-16 Richard Biener <rguenther@suse.de>
6325 PR tree-optimization/55964
6326 * tree-flow.h (rename_variables_in_loop): Remove.
6327 (rename_variables_in_bb): Likewise.
6328 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
6329 (copy_loop_before): Adjust and delete update-ssa status.
6330 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
6331 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
6332 (rename_variables_in_loop): Remove.
6333 (slpeel_update_phis_for_duplicate_loop): Likewise.
6334 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
6335 use available cfg machinery instead of duplicating it.
6336 Update PHI nodes and perform poor-mans SSA update here.
6337 (slpeel_tree_peel_loop_to_edge): Adjust.
6339 2013-01-16 Richard Biener <rguenther@suse.de>
6341 PR tree-optimization/54767
6342 PR tree-optimization/53465
6343 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
6344 (vrp_visit_phi_node): For PHI arguments coming via backedges
6345 drop all symbolical range information.
6346 (execute_vrp): Compute backedges.
6348 2013-01-16 Richard Biener <rguenther@suse.de>
6350 * doc/install.texi: Update CLooG and ISL requirements to
6353 2013-01-16 Christian Bruel <christian.bruel@st.com>
6356 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
6357 (broken_move): Handle UNSPECV_SP_SWITCH_B.
6358 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
6360 2013-01-16 DJ Delorie <dj@redhat.com>
6362 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
6363 (UNSPECV_SP_SWITCH_E): New.
6364 (sp_switch_1): Change to an unspec.
6365 (sp_switch_2): Change to an unspec. Don't use post-inc when we
6368 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
6370 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
6371 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
6372 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
6373 (expand_mem_thread_fence): Ditto.
6374 (expand_mem_signal_fence): Ditto.
6375 (expand_atomic_load): Ditto.
6376 (expand_atomic_store): Ditto.
6378 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
6380 PR rtl-optimization/55547
6381 PR rtl-optimization/53827
6384 * alias.c (memrefs_conflict_p): Set sizes to negative after
6387 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6390 * function.c (thread_prologue_and_epilogue_insns): Always
6391 add crtl->drap_reg to set_up_by_prologue.set, even if
6392 stack_realign_drap is false.
6394 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6396 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
6397 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
6398 *call): Fix indention.
6400 2013-01-15 Tom de Vries <tom@codesourcery.com>
6403 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
6406 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
6408 PR rtl-optimization/55153
6409 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
6411 2013-01-15 Martin Jambor <mjambor@suse.cz>
6413 PR tree-optimization/55920
6414 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
6415 accesses as grp_to_be_debug_replaced.
6417 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6419 PR tree-optimization/55920
6420 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
6421 there is non-useless type conversion needed from debug rhs to lhs,
6422 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
6424 2013-01-15 Joseph Myers <joseph@codesourcery.com>
6425 Mikael Pettersson <mikpe@it.uu.se>
6428 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
6430 (ASM_OUTPUT_CASE_LABEL): Remove.
6431 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
6432 * final.c (shorten_branches): Update alignment of labels before
6433 jump tables if CASE_VECTOR_SHORTEN_MODE.
6435 2013-01-15 Richard Biener <rguenther@suse.de>
6438 * system.h: Do not include gmp.h for building host tools.
6440 2013-01-15 Richard Biener <rguenther@suse.de>
6443 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
6444 account for bitpos when computing alignment.
6446 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
6448 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
6449 (ix86_target_macros_internal): Likewise.
6451 * config/i386/i386.c (m_CORE2I7): Removed.
6452 (m_CORE_HASWELL): New macro.
6453 (m_CORE_ALL): Likewise.
6454 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
6455 (initial_ix86_arch_features): Likewise.
6456 (processor_target_table): Initializations for Core avx2.
6457 (cpu_names): New names "core-avx2".
6458 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
6459 PROCESSOR_CORE_HASWELL.
6460 (ix86_issue_rate): New case.
6461 (ia32_multipass_dfa_lookahead): Likewise.
6462 (ix86_sched_init_global): Likewise.
6464 * config/i386/i386.h (TARGET_HASWELL): New macro.
6465 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
6466 (processor_type): New PROCESSOR_HASWELL.
6468 2013-01-15 Jakub Jelinek <jakub@redhat.com>
6470 PR tree-optimization/55955
6471 * tree-vect-loop.c (vectorizable_reduction): Give up early on
6472 *SHIFT_EXPR and *ROTATE_EXPR codes.
6474 PR tree-optimization/48766
6475 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
6476 -ftrapv disable -fwrapv.
6478 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6481 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
6482 etc. to 1 and not to __flash.
6483 Use LL suffix for __INT24_MAX__ with -mint8.
6484 Use ULL suffix for __UINT24_MAX__ with -mint8.
6486 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6488 * config/avr/avr-arch.h
6489 (struct base_arch_s): Use typedef avr_arch_t instead.
6490 (struct arch_info_s): Use typedef avr_arch_info_t instead.
6491 (struct mcu_type_s): Use typedef avr_mcu_t instead.
6492 * config/avr/avr.c: Same.
6493 * config/avr/avr-devices.c: Same.
6494 * config/avr/driver-avr.c: Same.
6495 * config/avr/gen-avr-mmcu-texi.c: Same.
6496 * config/avr/avr-mcus.def: Adjust comment.
6498 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
6500 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
6501 * config/aarch64/iterators.md (VALLDI): New.
6503 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
6504 Andi Kleen <ak@linux.intel.com>
6507 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
6508 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
6511 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6513 * config/avr/avr-stdint.h: Remove trailing blanks.
6514 * config/avr/avr-log.h: Same.
6515 * config/avr/avr-arch.h: Same.
6516 * config/avr/avr-devices.c: Same.
6517 * config/avr/avr-dimode.md: Same.
6518 * config/avr/predicates.md: Same.
6519 * config/avr/avr-c.c: Same. And fix typo.
6521 * config/avr/avr-protos.h: Same. And:
6522 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
6523 (init_cumulative_args): Rename to avr_init_cumulative_args.
6524 (expand_prologue): Rename to avr_expand_prologue.
6525 (expand_epilogue): Rename to avr_expand_epilogue.
6526 (adjust_insn_length): Rename to avr_adjust_insn_length.
6527 (notice_update_cc): Rename to avr_notice_update_cc.
6528 (final_prescan_insn): Rename to avr_final_prescan_insn.
6529 * config/avr/avr.c: Same.
6530 * config/avr/avr.h: Same.
6531 * config/avr/avr.md: Remove trailing blanks.
6532 (prologue): Use avr_expand_prologue.
6533 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
6535 2013-01-14 Richard Biener <rguenther@suse.de>
6537 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
6538 verify_location, collect_subblocks): New functions.
6539 (verify_gimple_in_cfg): Verify that locations only reference
6540 BLOCKs in the functions BLOCK tree.
6542 2013-01-14 Richard Biener <rguenther@suse.de>
6544 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
6546 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
6548 (insert_out_of_ssa_copy_on_edge): Likewise.
6549 (rewrite_close_phi_out_of_ssa): Likewise.
6550 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
6552 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
6553 propagated constants.
6554 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
6557 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
6559 * config/avr/avr-modes.def: Add GPL copyright notice.
6561 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
6563 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
6564 MEMMODEL_MASK to determine memory model.
6565 (atomic_store<mode>): Ditto from operands[2].
6566 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
6568 2013-01-13 Jakub Jelinek <jakub@redhat.com>
6571 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
6572 (fold_gimple_assign): Don't call unshare_expr here.
6573 (fold_ctor_reference): Call unshare_expr.
6575 2013-01-13 Terry Guo <terry.guo@arm.com>
6577 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
6578 * doc/fragments.texi: Document MULTILIB_REUSE.
6579 * gcc.c (multilib_reuse): New internal spec.
6580 (set_multilib_dir): Also search multilib from multilib_reuse.
6581 * genmultilib (tmpmultilib3): Refactor code.
6582 (tmpmultilib4): Ditto.
6583 (multilib_reuse): New multilib argument.
6585 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
6587 * Makefile.in: Update copyright.
6589 2013-01-12 Tom de Vries <tom@codesourcery.com>
6592 * calls.c (expand_call): Check if arg_nr is valid.
6594 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6596 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
6597 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
6598 documentation. Add missing '__' in front of
6599 __builtin_ia32_packssdw256.
6601 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6604 * config/s390/s390.c (s390_preferred_reload_class): Do not return
6605 NO_REGS for larl operands.
6606 (s390_reload_larl_operand): Use s390_load_address instead of
6609 2013-01-11 Richard Biener <rguenther@suse.de>
6611 * tree-cfg.c (verify_node_sharing_1): Split out from ...
6612 (verify_node_sharing): ... here.
6613 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
6615 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
6617 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
6618 Substitute TREECHECKING.
6619 * configure: Regenerate.
6620 * Makefile.in (TREECHECKING): New.
6622 2013-01-11 Richard Guenther <rguenther@suse.de>
6624 PR tree-optimization/44061
6625 * tree-vrp.c (extract_range_basic): Compute zero as
6626 value-range for __builtin_constant_p of function parameters.
6628 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
6630 Update copyright years.
6632 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
6634 PR rtl-optimization/55672
6635 * lra-eliminations.c (mark_not_eliminable): Permit addition with
6636 const to be eliminable.
6638 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
6640 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
6641 * configure: Regenerate.
6643 2013-01-10 Richard Biener <rguenther@suse.de>
6645 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
6647 2013-01-10 Richard Biener <rguenther@suse.de>
6650 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
6651 locations for virtual PHI arguments.
6652 (rewrite_update_phi_arguments): Likewise.
6654 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
6656 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
6659 2013-01-10 Jakub Jelinek <jakub@redhat.com>
6661 PR tree-optimization/55921
6662 * tree-complex.c (expand_complex_asm): New function.
6663 (expand_complex_operations_1): Call it for GIMPLE_ASM.
6665 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6668 * config/s390/s390.c (s390_symref_operand_p)
6669 (s390_loadrelative_operand_p): Merge the two functions.
6670 (s390_check_qrst_address, print_operand_address): Add parameters
6671 to s390_loadrelative_operand_p invokation.
6672 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
6673 (s390_reload_larl_operand, s390_secondary_reload): Use
6674 s390_loadrelative_operand_p instead of s390_symref_operand_p.
6675 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
6677 2013-01-09 Mike Stump <mikestump@comcast.net>
6679 * dse.c (record_store): Remove unnecessary assert.
6681 2013-01-09 Jan Hubicka <jh@suse.cz>
6683 PR tree-optimization/55569
6684 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
6685 * cfgloop.h (scale_loop_profile): Likewise.
6687 2013-01-09 Jan Hubicka <jh@suse.cz>
6690 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
6692 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
6694 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
6697 * expr.h (maybe_emit_group_store): Declare.
6698 * expr.c (maybe_emit_group_store): New function.
6699 * builtins.c (expand_builtin_int_roundingfn): Call it.
6700 (expand_builtin_int_roundingfn_2): Likewise.
6702 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
6704 PR rtl-optimization/55829
6705 * lra-constraints.c (match_reload): Add code for absent output.
6706 (curr_insn_transform): Add code for reloads of matched inputs
6709 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
6711 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
6712 attribute of movddup insn to DF.
6713 (*vec_interleave_lowv2df): Ditto.
6714 (vec_dupv2df): Ditto.
6716 2013-01-09 Jan Hubicka <jh@suse.cz>
6718 PR tree-optimiation/55875
6719 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
6720 EVERY_ITERATION parameter.
6721 (number_of_iterations_exit): Check if exit is executed every iteration.
6722 (idx_infer_loop_bounds): Similarly here.
6723 (n_of_executions_at_most): Simplify
6724 to only test for cases where statement is dominated by the
6725 particular bound; handle correctly the "postdominance" test.
6726 (scev_probably_wraps_p): Use max loop iterations info
6727 as a global bound first.
6729 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
6730 Nick Clifton <nickc@redhat.com>
6732 * config/v850/v850.md (cbranchsf4): New pattern.
6733 (cstoresf4): New pattern.
6734 (cbranchdf4): New pattern.
6735 (cstoredf4): New pattern.
6736 (movsicc): Disallow floating point comparisons.
6737 (cmpsf_le_insn): Fix order of operators.
6738 (cmpsf_lt_insn): Likewise.
6739 (cmpsf_eq_insn): Likewise.
6740 (cmpdf_le_insn): Likewise.
6741 (cmpdf_lt_insn): Likewise.
6742 (cmpdf_eq_insn): Likewise.
6743 (cmpsf_ge_insn): Use LE comparison.
6744 (cmpdf_ge_insn): Likewise.
6745 (cmpsf_gt_insn): Use LT comparison.
6746 (cmpdf_gt_insn): Likewise.
6747 (cmpsf_ne_insn): Delete pattern.
6748 (cmpdf_ne_insn): Delete pattern.
6749 * config/v850/v850.c (v850_gen_float_compare): Use
6750 gen_cmpdf_eq_insn for NE comparison.
6751 (v850_float_z_comparison_operator)
6752 (v850_float_nz_comparison_operator): Move from here ...
6753 * config/v850/predicates.md: ... to here. Move GT and GE
6754 comparisons into v850_float_z_comparison_operator.
6755 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
6757 (v850_float_nz_comparison_operator): Likewise.
6759 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6761 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
6762 with calls to gen_insvsi/gen_insvdi.
6764 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6766 * config/i386/i386.c (initial_ix86_tune_features): Set up
6767 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
6769 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
6770 Jakub Jelinek <jakub@redhat.com>
6772 PR tree-optimization/48189
6773 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
6774 If nitercst is 0, don't predict the exit edge.
6776 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6778 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
6779 in asm_fprintf with reg_names.
6780 (aarch64_print_operand_address): Likewise.
6781 (aarch64_return_addr): Likewise.
6782 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
6784 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6786 * config/pa/pa.h (VAL_U6_BITS_P): Define.
6787 (INT_U6_BITS): Likewise.
6788 * config/pa/predicates.md (uint6_operand): New predicate.
6789 (shift5_operand, shift6_operand): Likewise.
6790 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
6792 (lshrdi3): Use shift6_operand.
6793 (shrpsi4, shrpdi4): New insn patterns.
6794 (extzv): Delete expander.
6795 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
6796 predicates in unamed zero extract patterns. Tighten common constraint.
6797 (extv): Delete expander.
6798 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
6799 predicates in unamed sign extract patterns. Tighten common constraint.
6800 (insv): Delete expander.
6801 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
6802 predicates in unamed insert patterns. Tighten common constraint.
6803 Change uint32_operand predicate to uint6_operand predicate in unamed
6804 DImode pattern to insert constant values of type 1...1xxxx.
6806 2013-01-04 Jan Hubicka <jh@suse.cz>
6808 PR tree-optimization/55823
6809 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
6812 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6813 Uros Bizjak <ubizjak@gmail.com>
6815 PR rtl-optimization/55845
6816 * df-problems.c (can_move_insns_across): Stop scanning at
6817 volatile_insn_p source instruction or give up if
6818 across_from .. across_to range contains any volatile_insn_p
6821 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
6823 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
6824 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
6826 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
6827 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
6829 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6832 * asan.c (asan_clear_shadow): New function.
6833 (asan_emit_stack_protection): Use it.
6835 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
6837 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
6838 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
6839 with tab instead of space.
6841 2013-01-08 Nick Clifton <nickc@redhat.com>
6843 * config/rl78/rl78.c (rl78_expand_prologue): Always select
6844 register bank 0 at the start of an interrupt handler.
6845 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
6848 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
6850 * config/aarch64/aarch64-simd.md
6851 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
6852 (aarch64_simd_bsl): Likewise.
6853 (aarch64_vcond_internal<mode>): Likewise.
6854 (vcond<mode><mode>): Likewise.
6855 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
6856 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
6858 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
6860 * config/aarch64/aarch64-builtins.c
6861 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
6863 2013-01-08 Martin Jambor <mjambor@suse.cz>
6866 * tree-sra.c (analyze_access_subtree): Return true also after
6867 potentially creating a debug-only replacement.
6869 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6872 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
6874 PR tree-optimization/54120
6875 * tree-vrp.c (range_fits_type_p): Don't allow
6876 src_precision < precision from signed vr to unsigned_p
6877 if vr->min or vr->max is negative.
6878 (simplify_float_conversion_using_ranges): Test can_float_p
6879 against CODE_FOR_nothing.
6881 2013-01-08 Jakub Jelinek <jakub@redhat.com>
6882 Richard Biener <rguenther@suse.de>
6885 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
6886 types instead of just INTEGER_TYPE types.
6888 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
6890 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
6893 2013-01-07 Steve Ellcey <sellcey@mips.com>
6896 * config/mips/mips.opt: Change mad to mmad to match documentation.
6898 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6901 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
6904 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6907 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
6908 (avr_addrspace_t): Add .section_name field.
6909 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
6911 (avr_addrspace): Same. Initialize .section_name. Remove last
6912 NULL entry. Put __memx into .progmemx.data.
6913 (progmem_section_prefix): Remove.
6914 (avr_asm_init_sections): No need to initialize progmem_section.
6915 (avr_asm_named_section): Use avr_addrspace[].section_name to get
6916 section name prefix.
6917 (avr_asm_select_section): Ditto. And use get_unnamed_section to
6918 retrieve the progmem section.
6919 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
6920 boundary to run over avr_addrspace[].
6921 (avr_register_target_pragmas): Ditto.
6923 2013-01-06 Jakub Jelinek <jakub@redhat.com>
6925 * varasm.c (output_constant_def_contents): For asan_protect_global
6926 protected strings, adjust DECL_ALIGN if needed, before testing for
6928 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
6929 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
6931 (output_object_block): For asan protected decls, emit asan padding
6932 after their contents.
6933 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
6934 (asan_finish_file): Test it here instead.
6936 2013-01-07 Nick Clifton <nickc@redhat.com>
6937 Matthias Klose <doko@debian.org>
6938 Doug Kwan <dougkwan@google.com>
6939 H.J. Lu <hongjiu.lu@intel.com>
6942 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
6944 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
6946 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
6948 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
6950 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
6952 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
6955 * doc/install.texi (Cross-Compiler-Specific Options): Document
6958 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
6960 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
6961 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
6962 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
6963 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
6964 vqmovun_high_s64): Fix source operand number and update copyright.
6966 2013-01-07 Richard Biener <rguenther@suse.de>
6969 * gimple.h (gimple_call_builtin_p): New overload.
6970 * gimple.c (validate_call): New function.
6971 (gimple_call_builtin_p): Likewise.
6972 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6973 Use gimple_call_builtin_p.
6974 (find_func_clobbers): Likewise.
6975 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
6976 (strlen_optimize_stmt): Likewise.
6978 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
6980 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
6981 (vld1q_dup_*): Likewise.
6983 (vld1q_*): Likewise.
6984 (vld1_lane_*): Likewise.
6985 (vld1q_lane_*): Likewise.
6987 2013-01-07 Richard Biener <rguenther@suse.de>
6989 * lto-streamer.h (LTO_minor_version): Bump to 2.
6991 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
6993 * config/aarch64/aarch64-protos.h
6994 (aarch64_const_double_zero_rtx_p): Rename to...
6995 (aarch64_float_const_zero_rtx_p): ...this.
6996 (aarch64_float_const_representable_p): New.
6997 (aarch64_output_simd_mov_immediate): Likewise.
6998 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
6999 move immediate case.
7000 * config/aarch64/aarch64.c
7001 (aarch64_const_double_zero_rtx_p): Rename to...
7002 (aarch64_float_const_zero_rtx_p): ...this.
7003 (aarch64_print_operand): Allow printing of new constants.
7004 (aarch64_valid_floating_const): New.
7005 (aarch64_legitimate_constant_p): Check for valid floating-point
7007 (aarch64_simd_valid_immediate): Likewise.
7008 (aarch64_vect_float_const_representable_p): New.
7009 (aarch64_float_const_representable_p): Likewise.
7010 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
7011 (aarch64_output_simd_mov_immediate): New.
7012 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
7013 (*movdf_aarch64): Likewise.
7014 * config/aarch64/constraints.md (Ufc): New.
7015 (Y): call aarch64_float_const_zero_rtx.
7016 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
7018 2013-01-07 Richard Biener <rguenther@suse.de>
7020 PR tree-optimization/55888
7021 PR tree-optimization/55862
7022 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
7023 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
7024 not if it is contained therein.
7026 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7028 * config/avr/t-avr: Typo.
7030 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
7033 * config/avr/t-avr: Don't automatically rebuild
7034 $(srcdir)/config/avr/t-multilib
7035 $(srcdir)/config/avr/avr-tables.opt
7036 $(srcdir)/doc/avr-mmcu.texi
7037 (avr-mcus): New phony target to build them on request.
7038 (s-avr-mlib, s-avr-mmcu-texi): Remove.
7039 * avr/avr-mcus.def: Adjust comments.
7041 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
7043 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
7045 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7047 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
7049 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
7051 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
7053 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
7055 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
7056 to generate profiling.
7057 * config/rs6000/aix64.h (LIB_SPEC): Same.
7059 2013-01-04 Andrew Pinski <apinski@cavium.com>
7061 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
7063 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
7065 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
7067 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
7069 (ix86_expand_move): Ditto.
7070 (ix86_zero_extend_to_Pmode): Ditto.
7071 (ix86_expand_call): Ditto.
7072 (ix86_expand_special_args_builtin): Ditto.
7073 (ix86_expand_builtin): Ditto.
7075 2013-01-04 Richard Biener <rguenther@suse.de>
7077 PR tree-optimization/55862
7078 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
7079 translating them through PHI nodes.
7081 2013-01-04 Martin Jambor <mjambor@suse.cz>
7083 PR tree-optimization/55755
7084 * tree-sra.c (sra_modify_assign): Do not check that an access has no
7085 children when trying to avoid producing a VIEW_CONVERT_EXPR.
7087 2013-01-04 Marek Polacek <polacek@redhat.com>
7090 * opts.c (default_options_optimization): Clarify error message.
7092 2013-01-04 Richard Biener <rguenther@suse.de>
7095 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
7098 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7101 * config/pa/pa.md (movsi): Revert previous change.
7102 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
7105 2013-01-03 Richard Henderson <rth@redhat.com>
7107 * config/i386/i386.c (ix86_expand_move): Always assign to op1
7108 after eliminating TLS symbols.
7110 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
7113 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
7114 * graphite-poly.c (debug_gmp_value): Likewise.
7116 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
7119 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
7120 selected code model, define __code_mode_small__, __code_model_medium__,
7121 __code_model_large__, __code_model_32__ or __code_model_kernel__.
7122 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
7123 xchg temporary register with %k. Declare temporary register as
7125 [__x86_64__]: For medium and large code models, preserve %rbx register.
7127 2013-01-03 Richard Biener <rguenther@suse.de>
7129 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
7130 (dump_subscript): Adjust.
7131 (finalize_ddr_dependent): Do not dump redundant info.
7132 (analyze_siv_subscript): Adjust.
7133 (subscript_dependence_tester): Likewise.
7134 (compute_affine_dependence): Likewise.
7136 2013-01-03 Richard Biener <rguenther@suse.de>
7139 2013-01-03 Richard Biener <rguenther@suse.de>
7141 PR tree-optimization/55857
7142 * tree-vect-stmts.c (vectorizable_load): Do not setup
7143 re-alignment for invariant loads.
7145 2013-01-02 Richard Biener <rguenther@suse.de>
7147 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7148 invariant load do not generate a vector load from the scalar location.
7150 2013-01-03 Richard Biener <rguenther@suse.de>
7152 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
7153 for not vectorizing.
7154 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7155 not build INDIRECT_REFs, call get_name once only.
7156 (vect_create_data_ref_ptr): Likewise. Dump base object kind
7157 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
7159 2013-01-03 Richard Biener <rguenther@suse.de>
7161 PR tree-optimization/55857
7162 * tree-vect-stmts.c (vectorizable_load): Do not setup
7163 re-alignment for invariant loads.
7165 2013-01-03 Richard Biener <rguenther@suse.de>
7168 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
7169 prefer a built-in decl.
7171 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7173 * gcc.c (process_command): Update copyright notice dates.
7174 * gcov.c (print_version): Likewise.
7175 * gcov-dump.c (print_version): Likewise.
7177 PR rtl-optimization/55838
7178 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
7179 iv0.step, iv1.step and step.
7181 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7182 Marc Glisse <marc.glisse@inria.fr>
7184 PR tree-optimization/55832
7185 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
7186 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
7187 integer_{one,zero}_node.
7189 2013-01-03 Jakub Jelinek <jakub@redhat.com>
7192 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
7193 * var-tracking.c (reverse_op): Don't add reverse ops to
7194 VALUEs that have already
7195 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
7197 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
7199 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
7201 2013-01-02 Teresa Johnson <tejohnson@google.com>
7203 * dumpfile.c (dump_loc): Print filename with location.
7204 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
7205 new location_t parameter to emit complete unroll message with
7207 (canonicalize_loop_induction_variables): Compute loops location
7208 and pass to try_unroll_loop_completely.
7209 * loop-unroll.c (report_unroll_peel): New function.
7210 (peel_loops_completely): Use new dump format with location
7211 for main dumpfile message, and invoke report_unroll_peel on success.
7212 (decide_unrolling_and_peeling): Ditto.
7213 (decide_peel_once_rolling): Remove old dumpfile message subsumed
7214 by report_unroll_peel.
7215 (decide_peel_completely): Ditto.
7216 (decide_unroll_constant_iterations): Ditto.
7217 (decide_unroll_runtime_iterations): Ditto.
7218 (decide_peel_simple): Ditto.
7219 (decide_unroll_stupid): Ditto.
7220 * cfgloop.c (get_loop_location): New function.
7221 * cfgloop.h (get_loop_location): Declare.
7223 2013-01-02 Sriraman Tallam <tmsriram@google.com>
7225 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
7228 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7231 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
7232 BLKmode objects when EXPAND_MEMORY is specified.
7234 2013-01-02 Sriraman Tallam <tmsriram@google.com>
7236 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
7238 (fold_builtin_cpu): Do not share cpu model decls across statements.
7240 2013-01-02 Jason Merrill <jason@redhat.com>
7243 * tree.c (build_array_type_1): Revert earlier change.
7245 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
7247 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
7249 * config/aarch64/aarch64-tune.md: Re-generate.
7251 2013-01-02 Richard Biener <rguenther@suse.de>
7253 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
7254 invariant load do not generate a vector load from the scalar location.
7256 2013-01-02 Richard Biener <rguenther@suse.de>
7259 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
7260 * configure: Regenerate.
7262 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7264 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
7265 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
7266 (expand_builtin_int_roundingfn_2): Keep the original target around
7267 for the fallback case.
7269 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7271 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
7272 to be clear for sign changes.
7274 2013-01-01 Jan Hubicka <jh@suse.cz>
7276 * ipa-inline-analysis.c: Fix formatting.
7278 2013-01-01 Jakub Jelinek <jakub@redhat.com>
7280 PR tree-optimization/55831
7281 * tree-vect-loop.c (get_initial_def_for_induction): Use
7282 gsi_after_labels instead of gsi_start_bb.
7284 Copyright (C) 2013 Free Software Foundation, Inc.
7286 Copying and distribution of this file, with or without modification,
7287 are permitted in any medium without royalty provided the copyright
7288 notice and this notice are preserved.