1 2015-12-04 Release Manager
5 2015-11-28 Gerald Pfeifer <gerald@pfeifer.com>
7 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
8 Remove support for FreeBSD 5 and earlier.
10 2015-11-27 Jakub Jelinek <jakub@redhat.com>
12 PR tree-optimization/68552
13 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
14 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
17 2015-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
19 Backport from mainline
20 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
22 PR rtl-optimization/67037
23 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
25 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
27 Backport from mainline
28 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
30 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
31 both the symbol and the "dot" symbol for function descriptors. Fix
32 inversion for rename of symbols with dollar sign.
34 2015-11-26 Ilya Enkovich <enkovich.gnu@gmail.com>
36 Backport from mainline r230938.
37 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
40 * config/i386/i386.h (enum reg_class): Add
41 bounds registers to ALL_REGS.
43 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45 Backport from mainline
46 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
47 Bernd Schmidt <bschmidt@redhat.com>
49 PR rtl-optimization/67226
50 * calls.c (store_one_arg): Take into account
51 crtl->args.pretend_args_size when checking for overlap between
52 arg->value and argblock + arg->locate.offset during sibcall
55 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
57 PR rtl-optimization/67954
58 * lra-constraints.c (curr_insn_transform): Add check on scratch
59 pseudo when change class to NO_REGS. Add an assert.
61 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
63 Backport form mainline
64 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
65 Michael Meissner <meissner@linux.vnet.ibm.com>
67 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
68 (Fv2): New mode attribute to be used when ISA 2.07 instructions
69 are used on SF values, and ISA 2.06 instructions on DF values.
70 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
71 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
72 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
73 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
74 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
75 (fre<Fs>): Use <Fv2> instead of <Fv>.
76 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
77 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
78 (xsrdpi<mode>): Add support for the lround function.
79 (lround<mode>di2): Likewise.
80 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
81 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
82 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
83 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
85 2015-11-24 Andreas Tobler <andreast@gcc.gnu.org>
87 Backport from mainline
88 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
90 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
91 commit from r125920 for FreeBSD.
93 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
95 Backport from mainline r230796.
96 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
99 * gimple-fold.c: Include ipa-chkp.h.
100 (gimple_fold_builtin_memory_op): Don't fold call if we
101 are going to instrument it and it may copy pointers.
103 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
105 Backport from mainline
106 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
107 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
109 PR rtl-optimization/68194
110 PR rtl-optimization/68328
111 PR rtl-optimization/68185
112 * ree.c (combine_reaching_defs): Reject copy_needed case if
113 copies_list is not empty.
115 2015-11-24 Richard Biener <rguenther@suse.de>
118 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
121 2015-11-24 Jakub Jelinek <jakub@redhat.com>
124 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
125 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
127 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
128 whenever first is nelt or above. Don't mask expected with
131 2015-11-23 Michael Meissner <meissner@linux.vnet.ibm.com>
133 Backport from mainline
134 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
135 Peter Bergner <bergner@vnet.ibm.com>
138 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
139 allow registers, but provide insns for the combiner to create for
140 loads from memory. Separate VSX code from non-VSX code. For
141 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
142 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
143 so that registers come before memory operations. Drop support from
144 converting DFmode to TFmode, if the DFmode value is in a GPR
146 (extenddftf2_fprs): Likewise.
147 (extenddftf2_internal): Likewise.
148 (extenddftf2_vsx): Likewise.
149 (extendsftf2): In the expander, only allow registers, but provide
150 insns for the combiner to create for stores and loads.
152 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
154 Backport from mainline
155 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
158 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
161 2015-11-23 Martin Liska <mliska@suse.cz>
163 Backport from mainline
164 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
165 Martin Liska <mliska@suse.cz>
168 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
169 construction of arg_types.
170 (sem_function::sem_function): Likewise.
171 (sem_function::~sem_function): Remove destruction of arg_types.
172 (sem_function::compatible_parm_types_p): New function.
173 (sem_function::equals_wpa): Reorg matching of return values
175 (sem_function::equals_private): Reorg mathcing of argument types.
176 (sem_function::parse_tree_args): Remove.
177 (sem_function::param_used_p): New function.
178 * ipa-icf.h (init_wpa): Do not call it.
179 (parse_tree_args): Remove.
180 (compatible_parm_types_p): Declare.
181 (result_type): Remove.
183 (param_used_p): Declare.
185 2015-11-23 Richard Biener <rguenther@suse.de>
187 Backport from mainline
188 2015-10-29 Richard Biener <rguenther@suse.de>
191 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
192 unsigned conditonal negation to ABS_EXPR.
194 2015-11-22 Dominique d'Humieres <dominiq@lps.ens.fr>
196 Backport from mainline
197 2015-09-14 Manuel López-Ibáñe<manu@gcc.gnu.org>
200 * diagnostic.c (diagnostic_initialize): Do not set
201 some_warnings_are_errors.
202 (diagnostic_finish): Use DK_WERROR count instead.
203 (diagnostic_report_diagnostic): Do not set
204 some_warnings_are_errors.
205 * diagnostic.h (struct diagnostic_context): Remove
206 some_warnings_are_errors.
208 2015-11-21 Jakub Jelinek <jakub@redhat.com>
211 * tree-inline.c (copy_debug_stmt): If
212 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
213 in decl_debug_args, don't call remap_gimple_op_r on it.
215 2015-11-20 Jakub Jelinek <jakub@redhat.com>
218 * omp-low.c (expand_simd_clones): Call node->get_body () before
219 allocating stuff in GC.
221 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
223 * doc/md.texi (Standard Names): Move entry for addptr3 around,
224 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
225 glitch in entries for cbranch4 and jump.
227 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
229 Backport from mainline
230 * config/s390/s390.md ("bswaphi2"): New pattern.
232 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
234 Backport from mainline
235 * config/s390/s390.md (GPR1_REGNUM): New constant.
236 ("*trunc<BFP:mode><DFP_ALL:mode>2")
237 ("*trunc<DFP_ALL:mode><BFP:mode>2")
238 ("trunc<BFP:mode><DFP_ALL:mode>2")
239 ("trunc<DFP_ALL:mode><BFP:mode>2")
240 ("*extend<BFP:mode><DFP_ALL:mode>2")
241 ("*extend<DFP_ALL:mode><BFP:mode>2")
242 ("extend<BFP:mode><DFP_ALL:mode>2")
243 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
245 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
248 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
250 * configure: Regenerate.
252 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
255 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
256 (DTORS_SECTION_ASM_OP): Likewise.
258 2015-11-19 Jakub Jelinek <jakub@redhat.com>
260 PR rtl-optimization/68376
261 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
262 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
265 * config/i386/i386.md (simple_return): Disable if
266 ix86_static_chain_on_stack is true.
268 2015-11-18 Richard Henderson <rth@redhat.com>
270 Backport from mainline
272 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
273 sse check to the exact conditions of PR 67609.
275 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
276 narrowing subregs on SSE and MMX registers.
277 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
278 appear to be sub-words of multi-register pseudos must be rejected.
279 * doc/tm.texi: Regenerate.
281 2015-11-18 Richard Biener <rguenther@suse.de>
283 Backport from mainline
284 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
288 * ipa-polymorphic-call.c
289 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
290 issue when offset is out of range.
291 (contains_type_p): Fix out of range check, clear dynamic flag.
293 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
296 * ipa-polymorphic-call.c
297 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
298 instance offset with offset of outer type.
300 2015-10-12 Richard Biener <rguenther@suse.de>
303 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
304 code that analyzes IVs on each stmt but in a cheaper way avoiding
307 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
310 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
311 is negative we don't know the type.
312 (check_stmt_for_type_change): Skip constructors of non-polymorphic
313 types as those won't help devirutalization.
315 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
319 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
320 account when deciding what was the command-line status.
322 2015-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
324 Backport from mainline
325 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
328 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
329 offset from dstbase and use it appropriately in
330 adjust_automodify_address.
331 (arm_block_set_aligned_vect): Likewise.
333 2015-11-18 Richard Biener <rguenther@suse.de>
335 Backport from mainline
336 2015-10-28 Richard Biener <rguenther@suse.de>
339 * fold-const.c (negate_expr_p): We cannot negate plus or minus
340 if overflow is not wrapping. Likewise multiplication unless
341 one operand is constant and not power of two.
342 (fold_negate_expr): Adjust accordingly.
344 2015-10-26 Richard Biener <rguenther@suse.de>
345 Dominik Vogt <vogt@linux.vnet.ibm.com>
348 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
349 Properly prune ref->ref for accesses outside of ref.
351 2015-10-20 Richard Biener <rguenther@suse.de>
353 PR tree-optimization/68017
354 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
356 2015-09-23 Richard Biener <rguenther@suse.de>
359 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
360 undefined overflow unless they will cancel out.
362 2015-11-18 Jakub Jelinek <jakub@redhat.com>
364 PR tree-optimization/68157
365 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
366 pow_stmt or mul_stmt from stmt's uid.
367 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
369 2015-11-16 Charles Baylis <charles.baylis@linaro.org>
371 Backport from mainline r227407
373 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
374 in new callgraph edge.
376 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
378 Backport from mainline
379 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
380 Kaz Kojima <kkojima@gcc.gnu.org>
383 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
385 (*addsi3): Add another insn_and_split variant for reload.
387 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
390 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
391 assertion on the CFA register.
393 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
396 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
397 frame pointer for stack checking if non-call exceptions aren't used.
398 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
400 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
403 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
404 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
405 Delete VOIDmode case. Assert that mode is not VOIDmode.
406 * config/aarch64/predicates.md (const0_operand): Remove const_double
409 2015-11-10 James Greenhalgh <james.greenhalgh@arm.com>
411 Partial backport from trunk r228751.
412 PR tree-optimization/68238
413 2015-10-13 Richard Biener <rguenther@suse.de>
415 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Use
416 LOOP_VINFO_COMP_ALIAS_DDRS to estimate alias versioning cost.
418 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
421 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
422 not promote the mode for aggregate types.
424 2015-11-09 Mike Stump <mikestump@comcast.net>
427 * dwarf2out.c (get_full_len): Return a value based upon the actual
428 precision needed for the value.
429 (add_const_value_attribute): Use a maximal wide-int for
430 CONST_WIDE_INTs, not VOIDmode.
431 (output_die): Don't ever output NULL with printf.
433 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
434 BLKmode nor VOIDmode values.
436 2015-11-06 Vladimir Makarov <vmakarov@redhat.com>
438 PR rtl-optimization/68106
439 * lra-remat.c (input_regno_present_p): Process hard regs
440 explicitly present in machine description insns.
441 (call_used_input_regno_present_p): Ditto.
442 (calculate_gen_cands): Ditto.
445 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
447 * config/rs6000/freebsd64.h (ASM_SPEC32): Adapt spec to handle PIE
450 2015-11-02 Steve Ellcey <sellcey@imgtec.com>
452 Backport from mainline
453 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
454 Andrew Pinski <apinski@cavium.com>
456 PR rtl-optimization/67736
457 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
460 2015-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
462 Backport from mainline
463 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
466 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
467 operands[0] is a reg before taking its REGNO in split condition.
468 (*movdi_aarch64): Likewise.
470 2015-10-27 Caroline Tice <cmtice@google.com.
472 (from Richard Biener)
473 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
474 call to interative_hash_host_wide_int.
476 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
478 Backport from mainline
479 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
482 * optabs.c (expand_atomic_compare_and_swap): Handle case when
483 ptarget_oval or ptarget_bool are const0_rtx.
485 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
488 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
489 * config/arm/constraints.md (Dp): Update callsite.
490 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
492 2015-10-27 Martin Jambor <mjambor@suse.cz>
494 * tree-sra.c (replace_removed_params_ssa_names): Change type of
495 parameter stmt to gimple.
497 2015-10-26 Martin Jambor <mjambor@suse.cz>
499 Backport from mainline
500 2015-10-09 Martin Jambor <mjambor@suse.cz>
502 PR tree-optimization/67794
503 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
504 between types of statements but accept original definitions as a
506 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
507 iterate over definitions.
509 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
512 * dojump.c (do_compare_and_jump): Canonicalize both function and
515 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
517 Backport from mainline
518 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
521 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
522 already have a comparison result.
524 2015-10-22 Uros Bizjak <ubizjak@gmail.com>
526 Backport from mainline
527 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
530 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
531 for 64-bit MS_ABI targets also when default incoming stack boundary
534 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
536 Backport from mainline r229024
537 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
540 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
542 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
544 Backport from mainline
545 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
547 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
548 (struct int_traits): Likewise.
550 2015-10-16 Richard Sandiford <richard.sandiford@arm.com>
553 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
554 is zero- rather than sign-extended.
556 2015-10-15 Peter Bergner <bergner@vnet.ibm.com>
558 Backport from mainline
559 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
560 Torvald Riegel <triegel@redhat.com>
563 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
564 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
565 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
566 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
567 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
568 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
569 trechkpt, treclaim, tsr, ttest): New define_expands.
570 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
571 __TM_FENCE__ for htm.
572 * doc/extend.texi: Update documentation for htm builtins.
574 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
577 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
578 REG_CFA_EXPRESSION to aligned SSE stores.
580 2015-10-12 H.J. Lu <hongjiu.lu@intel.com>
583 * config/i386/i386.c (ix86_compute_frame_layout): Correct
584 stack alignment adjustment.
585 (ix86_expand_prologue): Likewise.
587 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
589 Backport from mainline
590 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
592 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
593 SSE register save area to 16 bytes only if the incoming stack
594 boundary is no less than 16 bytes.
596 Backport from mainline
597 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
600 * config/i386/i386.c (ix86_option_override_internal): Always use
601 8-byte minimum stack boundary in 64-bit mode.
602 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
603 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
604 Add a REG_CFA_EXPRESSION note if needed.
605 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
606 (ix86_handle_force_align_arg_pointer_attribute): New.
607 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
608 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
609 with ix86_handle_force_align_arg_pointer_attribute.
610 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
612 2015-10-12 H.J. Lu <hongjiu.lu@intel.com>
614 Backport from mainline
615 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
618 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
619 (ix86_set_current_function): This.
620 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
622 2015-10-12 Alexander Fomin <alexander.fomin@intel.com>
623 Kirill Yukhin <kirill.yukhin@intel.com>
626 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
627 split for upper-bank registers when target does not support
629 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
630 split when target does not support AVX512VL.
632 2015-10-12 Richard Biener <rguenther@suse.de>
634 Backport from mainline
635 2015-07-21 Mike Frysinger <vapier@gentoo.org>
636 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
638 * configure.ac: Add check for new options in isl-0.15.
639 * config.in, configure: Rebuilt.
640 * graphite-blocking.c: Include <isl/constraint.h>
641 * graphite-interchange.c, graphite-poly.c: Likewise.
642 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
643 * graphite.c: Likewise.
644 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
646 * graphite-dependences.c: Include <isl/constraint.h>.
647 (max_number_of_out_dimensions): Returns isl_stat.
648 (extend_schedule_1): Likewise
649 (extend_schedule): Corresponding changes.
650 * graphite-optimize-isl.c: Include <isl/constraint.h> and
652 (getSingleMap): Change return type of isl_stat.
653 (optimize_isl): Conditionally use
654 isl_options_set_schedule_serialize_sccs.
655 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
656 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
658 2015-10-10 Alexandre Oliva <aoliva@redhat.com>
661 * tree-inline.c (reset_debug_binding): New.
662 (reset_debug_bindings): Likewise.
663 (expand_call_inline): Call it.
665 2015-10-08 Jonathan Wakely <jwakely@redhat.com>
667 Backport from mainline
668 2015-09-17 Richard Henderson <rth@redhat.com>
671 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
672 pointers that encode the alignment of the object.
674 2015-10-06 Richard Biener <rguenther@suse.de>
676 Backport from mainline
677 2015-09-15 Richard Biener <rguenther@suse.de>
680 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
681 transfer EH info from old to new stmt.
682 (replace_call_with_value): Likewise.
683 (replace_call_with_call_and_fold): Likewise.
684 (gimple_fold_builtin_memory_op): Likewise.
685 (gimple_fold_builtin_memset): Likewise.
686 (gimple_fold_builtin_stpcpy): Likewise.
687 (gimple_fold_call): Likewise.
689 2015-09-24 Richard Biener <rguenther@suse.de>
692 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
695 2015-10-06 Kirill Yukhin <kirill.yukhin@intel.com>
697 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
698 (expand_vec_perm_even_odd_1): Handle V64QImode.
699 (ix86_expand_vec_perm_const_1): Try expansion with
700 expand_vec_perm_even_odd_trunc as well.
701 * config/i386/sse.md (VI124_AVX512F): Rename to ...
702 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
704 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
705 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
707 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
708 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
709 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
710 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
711 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
712 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
714 2015-10-05 Marek Polacek <polacek@redhat.com>
716 Backport from mainline
717 2015-10-05 Marek Polacek <polacek@redhat.com>
719 PR tree-optimization/67821
720 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
722 2015-10-03 Oleg Endo <olegendo@gcc.gnu.org>
724 Backport from mainline
725 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
728 * config/sh/sh.c (sh_override_options_after_change): New.
729 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
730 (sh_option_override): Move align_loops, align_jumps and
731 align_functions handling into sh_override_options_after_change.
733 2015-10-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
735 Backport from mainline
736 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
738 * config/s390/s390.c (s390_const_operand_ok): Add missing
741 2015-10-01 Marek Polacek <polacek@redhat.com>
743 Backport from mainline
744 2015-10-01 Marek Polacek <polacek@redhat.com>
746 PR tree-optimization/67769
747 * tree-ssa-phiopt.c (conditional_replacement): Call
748 reset_flow_sensitive_info_in_bb.
749 (minmax_replacement): Likewise.
750 (abs_replacement): Likewise.
752 2015-10-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
754 Backport from mainline
755 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
757 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
758 Check for ld -type pie on Solaris 11.x and 12.
759 * configure: Regenerate.
760 * config.in: Regenerate.
762 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
763 (STARTFILE_SPEC): Use it.
764 (ENDFILE_CRTEND_SPEC): Define.
765 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
766 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
767 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
768 (LINK_PIE_SPEC): Define.
769 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
770 (ENDFILE_ARCH_SPEC): Define.
771 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
773 2015-10-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
775 Backport from mainline
776 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
778 * configure.ac (gcc_cv_solaris_crts): New test.
779 * configure. Regenerate.
780 * config.in: Regenerate.
781 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
782 HAVE_SOLARIS_CRTS variant.
784 2015-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
786 Backport from mainline
787 2015-06-09 Shiva Chen <shiva0217@gmail.com>
789 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
790 (atomic_store<mode>): Likewise.
792 2015-09-30 H.J. Lu <hongjiu.lu@intel.com>
794 Backport from mainline
795 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
797 PR rtl-optimization/67029
798 * ira-color.c: Include "recog.h" before including "ira-int.h".
799 * target-globals.c: Likewise.
800 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
801 adds an alternative_mask argument and use it instead of
802 preferred_alternatives.
803 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
804 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
805 * sched-deps.c: Include "ira-int.h" after including "ira.h".
806 (sched_analyze_insn): Update call to
807 ira_implicitly_set_insn_hard_regs.
808 * sel-sched.c: Include "ira-int.h" after including "ira.h".
809 (implicit_clobber_conflict_p): Update call to
810 ira_implicitly_set_insn_hard_regs.
812 2015-09-30 Marek Polacek <polacek@redhat.com>
814 Backport from mainline
815 2015-09-30 Marek Polacek <polacek@redhat.com>
817 PR tree-optimization/67690
818 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
819 reset_flow_sensitive_info_in_bb.
820 * tree-ssa-tail-merge.c: Include "stringpool.h" and "tree-ssanames.h".
821 (replace_block_by): Call reset_flow_sensitive_info_in_bb.
822 * tree-ssanames.c: Include "gimple-iterator.h".
823 (reset_flow_sensitive_info_in_bb): New function.
824 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
826 2015-09-29 Vladimir Makarov <vmakarov@redhat.com>
828 Backport from mainline
829 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
832 * lra-remat.c (operand_to_remat): Prevent using insns with input
833 subregs processed separately by IRA.
835 2015-09-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
837 Backport from mainline
838 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
840 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
841 the vector element is bigger than 64 bit.
843 2015-09-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
845 Backport from mainline
846 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
848 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
849 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
851 2015-09-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
853 Backport from mainline
854 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
856 * config/s390/s390.c: Add V1TImode to constant pool modes.
858 2015-09-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
860 Backport from mainline
861 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
863 * config/s390/vx-builtins.md
864 ("vec_scatter_element<mode>_<non_vec_int>")
865 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
866 attribute with bhfgq.
868 2015-09-29 Andrew Pinski <apinski@cavium.com>
870 * config/aarch64/aarch64.md (prefetch):
871 Change the predicate of operand 0 to register_operand.
873 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
875 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
877 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
879 Backport from mainline
880 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
881 Kaz Kojima <kkojima@gcc.gnu.org>
884 * config/sh/sh-protos.h (sh_lra_p): Declare.
885 * config/sh/sh.c (sh_lra_p): Make non-static.
886 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
887 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
888 Expand into addsi3_scr if operands[2] if needed.
889 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
890 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
891 (addsi3_scr, *addsi3): New insn_and_split patterns.
893 2015-09-28 Richard Biener <rguenther@suse.de>
895 Backport from mainline
896 2015-08-03 Richard Biener <rguenther@suse.de>
898 PR tree-optimization/66917
899 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
901 (DR_VECT_AUX): New macro.
902 (set_dr_misalignment): Adjust.
903 (dr_misalignment): Likewise.
904 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
905 Compute whether the base is at least element aligned.
906 * tree-vect-stmts.c (ensure_base_align): Adjust.
907 (vectorizable_store): If the base is not element aligned
908 preserve alignment of the original access if misalignment is unknown.
909 (vectorizable_load): Likewise.
911 2015-09-16 Richard Biener <rguenther@suse.de>
914 * fold-const.c (extract_muldiv_1): Properly extend multiplication
915 result before builting a tree via wide_int_to_tree.
917 2015-09-28 Daniel Cederman <cederman@gaisler.com>
919 * config/sparc/driver-sparc.c: map LEON to leon3
921 2015-09-28 Daniel Cederman <cederman@gaisler.com>
923 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
924 and make it inverse to change default
925 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
927 * doc/invoke.texi: Document change of default
929 2015-09-28 Daniel Cederman <cederman@gaisler.com>
931 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
932 true on %f0 for a target without FPU.
933 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
935 (untyped_return): Do not load %f0 for a target without FPU.
937 2015-09-25 Tobias Burnus <burnus@net-b.de>
939 * doc/invoke.texi (-fsanitize): Minor wording tweak.
941 2015-09-25 Tobias Burnus <burnus@net-b.de>
943 * doc/invoke.texi (-fsanitize): Update URLs.
945 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
947 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
948 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
950 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
951 (pa_expand_compare_and_swap_loop): New.
952 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
953 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
954 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
955 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
956 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
959 2015-09-24 Alan Modra <amodra@gmail.com>
962 2015-09-02 Alan Modra <amodra@gmail.com>
963 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
964 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
965 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
967 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
969 Backport from mainline
970 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
973 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for overlapping
974 regs when matching the pattern.
976 2015-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
978 Backport from mainline
979 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
982 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
983 predicate. Set predicable_short_it attr to "no".
985 2015-09-23 Matthew Wahab <matthew.wahab@arm.com>
987 Backport from mainline
988 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
991 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
992 'lconst_atomic' with 'const_atomic'.
993 (atomic_fetch_<optab><mode>): Likewise.
994 (atomic_<optab>_fetch<mode>): Likewise.
995 * config/aarch64/iterators.md (lconst-atomic): Move below
999 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1001 Backport from mainline
1002 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
1004 * config/nios2/nios2.c (nios2_legitimize_address): When handling
1005 'reg + reloc' cases, allow first operand to be non-REG, and use
1006 force_reg() to enforce address pattern.
1008 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1010 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
1012 (define_insn "kunpcksi"): Ditto.
1013 (define_insn "kunpckdi"): Ditto.
1015 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
1017 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
1018 iterator instead of fixed modes.
1020 2015-09-21 Uros Bizjak <ubizjak@gmail.com>
1023 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
1024 the address to a register.
1026 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1028 Backport from mainline
1029 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
1032 * config/sh/sh.c (sh_remove_overlapping_post_inc,
1033 sh_peephole_emit_move_insn): Add new functions.
1034 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
1035 sh_peephole_emit_move_insn): Declere them.
1036 * config/sh/sh.md: Use them in various peephole2 patterns.
1038 2015-09-21 Richard Biener <rguenther@suse.de>
1040 Backport from mainline
1041 2015-07-08 Richard Biener <rguenther@suse.de>
1043 PR tree-optimization/66793
1044 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
1045 Properly split the block after stmts ending it.
1047 2015-08-05 Richard Biener <rguenther@suse.de>
1049 PR tree-optimization/67055
1050 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
1053 2015-08-05 Richard Biener <rguenther@suse.de>
1055 PR tree-optimization/67121
1056 * tree-if-conv.c (combine_blocks): Clear range-info produced
1057 by stmts no longer executed conditionally.
1059 2015-09-16 Richard Biener <rguenther@suse.de>
1062 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
1064 2015-07-22 Richard Biener <rguenther@suse.de>
1066 PR tree-optimization/66952
1067 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
1068 blocks we end up executing unconditionally reset all SSA
1069 info such as range and alignment.
1070 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
1071 * tree-ssanames.c (reset_flow_sensitive_info): New function.
1073 2015-09-15 Richard Biener <rguenther@suse.de>
1075 PR tree-optimization/67470
1076 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
1077 structure for PHI hoisting by inserting a forwarder block
1080 2015-09-21 Kaz Kojima <kkojima@gcc.gnu.org>
1082 Backport from mainline
1083 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
1086 * config/sh/sh.md (call_pcrel): Add early clobber to scratch
1088 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1090 2015-09-20 Oleg Endo <olegendo@gcc.gnu.org>
1092 Backport from mainline
1093 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
1096 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
1099 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
1101 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
1104 2015-09-18 John David Anglin <danglin@gcc.gnu.org>
1107 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
1108 sync_compare_and_swap_optab libcall to target_oval.
1110 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
1112 PR rtl-optimization/66790
1113 * df-problems.c (LIVE): Amend documentation.
1115 2015-09-17 Marek Polacek <polacek@redhat.com>
1117 Backport from mainline:
1118 2015-08-18 Marek Polacek <polacek@redhat.com>
1121 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
1122 if the call isn't valid.
1123 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
1124 gimple_call_builtin_p.
1125 (call_may_clobber_ref_p_1): Likewise.
1126 (stmt_kills_ref_p): Likewise.
1128 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
1130 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
1131 CONSTANT_P operands.
1133 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
1135 Backport from mainline
1136 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
1139 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
1140 missing simplify_gen_subreg.
1142 2015-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1144 Backport from mainline
1145 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1147 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
1150 2015-09-10 Jakub Jelinek <jakub@redhat.com>
1153 * gimplify.c (gimplify_omp_for): If inner stmt is not found
1154 for combined loop, assert seen_error () and return GS_ERROR.
1157 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
1158 if decl is already in outer->variables.
1161 * gimplify.c (gimplify_scan_omp_clauses): Instead of
1162 asserting that decl is not specified in octx->variables,
1163 break out of the loop if it is.
1166 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
1167 iterator is not explicitly determined, but is defined inside
1168 of the combined workshare region, handle it like if it has
1169 DECL_EXPR in OMP_FOR_PRE_BODY.
1171 2015-09-09 Marek Polacek <polacek@redhat.com>
1173 Backport from mainline:
1174 2015-09-09 Marek Polacek <polacek@redhat.com>
1177 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
1180 2015-09-09 Alan Modra <amodra@gmail.com>
1183 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
1184 reload replacement for PRE_MODIFY address reg.
1186 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
1188 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
1189 non-alphanumeric characters in the symbol name.
1191 2015-09-04 Jakub Jelinek <jakub@redhat.com>
1194 * tree-ssa-live.c: Include cfgloop.h.
1195 (remove_unused_locals): Clear loop->simduid if simduid is about
1196 to be removed from cfun->local_decls.
1198 2015-09-03 Richard Biener <rguenther@suse.de>
1201 * tree-ssa-structalias.c (ctor_for_analysis): New function.
1202 (create_variable_info_for_1): Use ctor_for_analysis instead
1204 (create_variable_info_for): Likewise.
1206 2015-09-02 Uros Bizjak <ubizjak@gmail.com>
1208 Backport from mainline:
1209 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
1212 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
1214 (UNSPEC_ADD_CARRY): Remove.
1215 (addqi3_cconly_overflow): New expander.
1216 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
1217 Adjust for changed add<mode>3_carry.
1218 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
1219 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
1220 (<plusminus_insn><mode>3_carry): Remove expander.
1221 (*<plusminus_insn><mode>3_carry): Split insn pattern to
1222 add<mode>3_carry and sub<mode>3_carry.
1223 (plusminus_carry_mnemonic): Remove code attribute.
1224 (add<mode>3_carry): Canonicalize insn pattern.
1225 (*addsi3_carry_zext): Ditto.
1226 (sub<mode>3_carry): Ditto.
1227 (*subsi3_carry_zext): Ditto.
1228 (adcx<mode>3): Remove insn pattern.
1229 (addcarry<mode>): New insn pattern.
1230 (subborrow<mode>): Ditto.
1231 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
1232 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
1233 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
1234 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
1235 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
1236 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
1237 Rewrite expander to not clobber carry flag chains.
1239 2015-09-02 Alan Modra <amodra@gmail.com>
1242 * config/rs6000/predicates.md (current_file_function_operand): Don't
1243 return true for weak symbols.
1244 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
1246 2015-08-31 Marek Polacek <polacek@redhat.com>
1248 Backport from mainline
1249 2015-08-27 Marek Polacek <polacek@redhat.com>
1252 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
1253 an entry into an irreducible region.
1255 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
1257 Backport from mainline:
1258 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
1260 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
1261 instead of a rotate.
1263 2015-08-26 Renlin Li <renlin.li@arm.com>
1265 Backport from mainline
1266 2015-08-24 Renlin Li <renlin.li@arm.com>
1268 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
1269 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
1270 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
1271 * config/arm/constraints.md ("j"): Add check for high code.
1273 2015-08-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
1275 Backport from mainline
1276 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
1278 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
1280 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1282 Back port from mainline:
1283 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1286 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
1287 -mefficient-unaligned-vsx on ISA 2.7.
1289 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
1290 option to a masked option.
1292 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
1293 logic for -mefficient-unaligned-vsx so that it is set via an arch
1294 ISA option, instead of being set if -mtune=power8 is set. Move
1295 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
1296 near other default option handling.
1298 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
1300 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
1301 Multiply argument avr_n_flash by 64 to match unit of "KiB".
1302 (avr_pgm_check_var_decl): Same.
1304 2015-08-18 Segher Boessenkool <segher@kernel.crashing.org>
1306 Backport from mainline:
1307 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
1309 PR rtl-optimization/67028
1310 * combine.c (simplify_comparison): Fix comment. Rearrange code.
1311 Add test to see if a const_int fits in the new mode.
1313 2015-08-17 Jason Merrill <jason@redhat.com>
1316 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
1317 (finalize_type_size): Respect TYPE_USER_ALIGN.
1318 (layout_type) [ARRAY_TYPE]: Likewise.
1320 2015-08-17 Yvan Roux <yvan.roux@linaro.org>
1322 Backport from mainline:
1323 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
1326 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
1327 to ARM core registers.
1329 2015-08-16 Uros Bizjak <ubizjak@gmail.com>
1331 Backport from mainline:
1332 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
1335 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
1336 execution guard when min_size is less than size_needed.
1338 2015-08-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
1340 Backport from mainline
1341 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
1343 PR tree-optimization/66828
1344 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
1345 from int64_t to uint64_t.
1347 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
1349 Backport from mainline
1350 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
1353 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
1354 currently_expanding_to_rtl is set.
1356 2015-08-07 Kirill Yukhin <kirill.yukhin@intel.com>
1358 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
1360 (define_attr "enabled"): Handle avx521vl and noavx512vl.
1361 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
1362 AVX-512 alternative out of SSE.
1363 (define_insn "*vec_concatv2df"): Ditto.
1365 2015-08-05 Matthew Wahab <matthew.wahab@arm.com>
1367 Backport from trunk:
1368 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
1371 * config/arm/arm.c (arm_split_compare_and_swap): For ARMv8,
1372 replace an initial acquire barrier with final barrier.
1374 2015-08-05 Matthew Wahab <matthew.wahab@arm.com>
1376 Backport from trunk:
1377 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
1380 * config/arm/arm.c (arm_split_atomic_op): For ARMv8, replace an
1381 initial acquire barrier with final barrier.
1383 2015-08-05 Matthew Wahab <matthew.wahab@arm.com>
1385 Backport from trunk.
1386 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
1389 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
1390 for __sync memory models, emit initial loads and final barriers as
1393 2015-08-05 Matthew Wahab <matthew.wahab@arm.com>
1395 Backport from trunk.
1396 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
1399 * config/aarch64/aarch64.c (aarch64_emit_post_barrier): New.
1400 (aarch64_split_atomic_op): Check for __sync memory models, emit
1401 appropriate initial loads and final barriers.
1403 2015-08-05 Matthew Wahab <matthew.wahab@arm.com>
1406 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
1409 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
1410 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
1411 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed)
1412 (is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel)
1413 (is_mm_seq_cst, is_mm_sync): New accessor functions.
1414 * builtins.c (expand_builtin_sync_operation)
1415 (expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
1416 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
1417 (get_memmodel, expand_builtin_atomic_compare_exchange)
1418 (expand_builtin_atomic_load, expand_builtin_atomic_store)
1419 (expand_builtin_atomic_clear): Use new accessor routines.
1420 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
1421 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
1422 (maybe_emit_sync_lock_test_and_set): Use new accessors and
1423 MEMMODEL_SYNC_ACQUIRE.
1424 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
1425 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load)
1426 (expand_atomic_store): Use new accessors.
1427 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
1428 * tsan.c (instrument_builtin_call): Update check for memory model beyond
1429 final enum to use MEMMODEL_LAST.
1430 * c-family/c-common.c: Use new accessor for memmodel_base.
1431 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
1433 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>)
1434 (arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>)
1435 (mem_thread_fence, *dmb): Likewise.
1436 * config/alpha/alpha.c (alpha_split_compare_and_swap)
1437 (alpha_split_compare_and_swap_12): Likewise.
1438 * config/arm/arm.c (arm_expand_compare_and_swap)
1439 (arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
1440 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>)
1441 (atomic_loaddi): Likewise.
1442 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
1444 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
1445 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
1447 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>)
1448 (atomic_store<mode>, atomic_compare_and_swap<mode>)
1449 (atomic_exchange<mode>): Use new accessors.
1450 * config/mips/mips.c (mips_process_sync_loop): Likewise.
1451 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
1452 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier)
1453 (rs6000_post_atomic_barrier): Add new cases.
1454 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
1455 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
1456 (atomic_load<mode>): Add new cases and use new accessors.
1457 (store_quadpti): Add new cases.
1458 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
1460 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
1461 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
1464 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1466 Backport from mainline:
1467 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1470 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
1471 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
1473 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
1476 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
1478 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
1480 Backport from mainline:
1481 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
1483 * config/rs6000/htm.md (tabort.): Restrict the source operand to
1484 using a base register.
1486 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
1489 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
1490 Adjust splits to match new pattern.
1492 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1494 Backport form mainline r226496.
1495 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1498 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
1499 (negmulsf3_vfp): Likewise.
1500 (muldf3negdf_vfp): Disable for -frounding-math.
1501 (mulsf3negsf_vfp): Likewise.
1502 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
1503 fix MULT cost with -frounding-math.
1505 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
1507 Backport form mainline
1508 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
1511 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
1513 2015-07-31 Vladimir Makarov <vmakarov@redhat.com>
1516 * lra-int.h (lra_substitute_pseudo): Add a parameter.
1517 (lra_substitute_pseudo_within_insn): Ditto.
1518 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
1520 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
1521 to lra_substitute_pseudo.
1522 * lra-lives.c (process_bb_lives): Add an argument to
1523 lra_substitute_pseudo_within_insn call.
1524 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
1525 argument to lra_substitute_pseudo and
1526 lra_substitute_pseudo_within_insn calls.
1527 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
1529 2015-07-27 Marek Polacek <polacek@redhat.com>
1531 Backport from mainline
1532 2015-07-27 Marek Polacek <polacek@redhat.com>
1534 * ipa-devirt.c (types_same_for_odr): Fix typo.
1536 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
1538 Backport from mainline
1539 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
1542 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
1543 T bit register modified_between_p check.
1545 2015-07-25 Tom de Vries <tom@codesourcery.com>
1547 backport from trunk:
1548 2015-07-24 Tom de Vries <tom@codesourcery.com>
1550 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
1551 flag_associative_math to FLOAT_TYPE_P. Honour
1552 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
1554 2015-07-25 Kaz Kojima <kkojima@gcc.gnu.org>
1556 Backport from mainline
1557 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
1560 * config/sh/sh.md (movdi): Split simple reg move to two movsi
1561 when the destination is R0.
1563 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1565 Backport from mainline r226159.
1566 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1568 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
1569 -shared, -symbolic, -rdynamic.
1571 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1573 Backport from mainline r226158.
1574 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1577 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
1578 -dynamic-linker within %{!static %{!shared, and -rdynamic within
1581 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
1583 Backport from mainline r226155.
1584 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
1587 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
1588 edge summary is available.
1590 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
1592 Backport from mainline:
1593 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
1595 PR rtl-optimization/66891
1596 * calls.c (expand_call): Wrap precompute_register_parameters with
1597 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
1599 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1602 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
1603 (*tls_local_dynamic_base_64_<mode>): Ditto.
1604 (*tls_local_dynamic_base_64_largepic): Ditto.
1605 (tls_global_dynamic_64_<mode>): Update expander pattern.
1606 (tls_local_dynamic_base_64_<mode>): Ditto.
1608 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1610 PR rtl-optimization/58066
1611 * calls.c (expand_call): Precompute register parameters before stack
1612 alignment is performed.
1614 2015-07-23 Martin Jambor <mjambor@suse.cz>
1616 Backport from mainline r225867.
1617 2015-07-16 Martin Jambor <mjambor@suse.cz>
1619 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
1620 all uses. Fix two typos in its general comment.
1621 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
1623 2015-07-23 Martin Jambor <mjambor@suse.cz>
1625 Backport from mainline r225838.
1626 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
1627 Martin Jambor <mjambor@suse.cz>
1630 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
1631 struct func_body_info* instead of struct ipa_node_params*, expecting
1632 fbi->info to be filled in. Replace throughout. Adjust call to
1633 ipa_load_from_parm_agg.
1634 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
1635 instead of struct ipa_node_params*. Adjust calls to other functions
1636 so that they pass either fbi or fbi->info.
1637 (set_switch_stmt_execution_predicate): Likewise.
1638 (will_be_nonconstant_predicate): Likewise.
1639 (compute_bb_predicates): Likewise.
1640 (estimate_function_body_sizes): Move asserts earlier. Fill in
1641 struct func_body_info, replace parms_info with fbi.info. Adjust
1642 calls to functions that now accept struct func_body_info.
1643 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
1644 (struct func_body_info): Likewise.
1645 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
1646 remove static. Adjust callers.
1647 (ipa_load_from_parm_agg): Remove.
1648 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
1649 (func_body_info): Likewise.
1650 (ipa_load_from_parm_agg): Adjust prototype.
1652 2015-07-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1654 Backport from mainline r224643.
1655 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
1657 PR middle-end/pr66581
1658 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
1659 reuse bounds created for abnormal ssa names.
1661 2015-07-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1663 Backport from mainline r224602.
1664 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1667 * function.c (assign_bounds): Add arguments assign_regs,
1668 assign_special, assign_bt.
1669 (assign_parms): For vararg functions handle bounds in BT
1670 and special slots after incoming vararg bounds.
1672 2015-07-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1674 Backport from mainline r224601.
1675 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1678 * cfgexpand.c (expand_return): Handle missing bounds.
1679 (expand_gimple_stmt_1): Likewise.
1680 * tree-chkp.c (chkp_expand_zero_bounds): New.
1681 * tree-chkp.h (chkp_expand_zero_bounds): New.
1683 2015-07-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1685 Backport from mainline r224600.
1686 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1689 * ipa-chkp.c (chkp_maybe_create_clone): Require
1690 functions to be instrumentable.
1691 * tree-chkp.c (chkp_replace_function_pointer): Use
1692 chkp_instrumentable_p instead of attribute check.
1694 2015-07-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1696 Backport from mainline r223215.
1697 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
1700 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
1701 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
1703 2015-07-23 Ilya Enkovich <ilya.enkovich@intel.com>
1705 Backport from mainline r223114.
1706 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
1709 * function.c (diddle_return_value_1): Process bounds first.
1710 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
1713 2015-07-23 Ilya Enkovich <ilya.enkovich@intel.com>
1715 Backport from mainline r223216.
1716 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
1718 * ipa-chkp.h (chkp_wrap_function): New.
1719 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
1720 (chkp_wrap_function_name): New.
1721 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
1722 to get wrapper name.
1723 * lto-cgraph.c: Include ipa-chkp.h.
1724 (input_cgraph_1): Avoid alias chain for wrappers.
1726 2015-07-23 Ilya Enkovich <ilya.enkovich@intel.com>
1728 Backport from mainline r224074.
1729 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
1731 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
1732 reference when cloning alias node.
1734 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
1736 Backport from 2015-07-21 trunk r226046.
1739 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
1740 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
1742 2015-07-21 Richard Biener <rguenther@suse.de>
1744 PR tree-optimization/66948
1745 * genmatch.c (capture_info::walk_match): Also recurse to
1746 captures. Properly compute expr state from captures of
1749 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
1752 * config/i386/i386.c (ix86_expand_pinsr): Reject insertions
1753 to misaligned positions.
1755 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
1758 * config/i386/i386.c (ix86_expand_pinsr): Reject non-lowpart
1761 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
1763 Backport from mainline:
1764 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
1766 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
1767 and gen_higpart instead of gen_rtx_SUBREG.
1768 * config/i386/i386.md
1769 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
1770 (read-modify peephole2): Use gen_lowpart instead of
1771 gen_rtx_SUBREG for operand 5.
1773 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
1775 Backport from mainline:
1776 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
1779 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
1780 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
1781 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
1782 {GENERAL,SSE,MMX}_REG_P where appropriate.
1784 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
1786 Backport from mainline:
1787 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1789 PR rtl-optimization/66838
1790 * postreload.c (reload_cse_move2add): Also process
1791 CALL_INSN_FUNCTION_USAGE when resetting information of
1792 call-clobbered registers.
1794 2015-07-16 Martin Liska <mliska@suse.cz>
1797 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
1798 dst_ctx if it does not exist.
1800 2015-07-16 Richard Biener <rguenther@suse.de>
1802 * BASE-VER: Set to 5.2.1.
1804 2015-07-16 Release Manager
1806 * GCC 5.2.0 released.
1808 2015-07-15 Renlin Li <renlin.li@arm.com>
1810 Backport from mainline.
1811 2015-07-13 Renlin Li <renlin.li@arm.com>
1814 * simplify-rtx.c (simplify_const_relational_operation): Add
1815 side_effects_p checks.
1817 2015-07-15 Thomas Schwinge <thomas@codesourcery.com>
1819 Backport trunk r225560:
1821 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
1824 * config/nvptx/mkoffload.c (main): Create an offload image only in
1825 64-bit configurations.
1827 Backport trunk r222583:
1829 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
1832 * config/nvptx/mkoffload.c (target_ilp32): New variable.
1833 (main): Set it depending on "-foffload-abi=[...]".
1834 (compile_native, main): Use it to pass "-m32" or "-m64" to the
1837 Backport trunk r223805:
1839 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
1841 * builtins.c (expand_builtin_acc_on_device): Mark parameters
1842 with ATTRIBUTE_UNUSED.
1844 Backport trunk r223801:
1846 2015-05-28 Julian Brown <julian@codesourcery.com>
1850 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
1851 sequence for !ACCEL_COMPILER.
1853 2015-07-14 Matthias Klose <doko@ubuntu.com>
1856 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
1858 2015-07-10 Jakub Jelinek <jakub@redhat.com>
1861 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
1862 or ORT_TASK contexts.
1863 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
1866 Backported from mainline
1867 2015-07-09 Jakub Jelinek <jakub@redhat.com>
1870 * tree-nested.c (get_static_chain): Or in a flag into
1871 info->static_chain_added.
1872 (get_frame_field, get_nonlocal_debug_decl): Likewise.
1873 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
1875 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
1876 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
1879 2015-07-10 Vladimir Makarov <vmakarov@redhat.com>
1881 Backport from mainline
1882 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
1884 PR rtl-optimization/66782
1885 * lra-int.h (struct lra_insn_recog_data): Add comment about
1886 clobbered hard regs for arg_hard_regs.
1887 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
1888 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
1889 Add condition for processing used hard regs.
1890 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
1891 Process clobbered hard regs.
1893 2015-07-10 Richard Biener <rguenther@suse.de>
1895 Backport from mainline
1896 2015-07-10 Richard Biener <rguenther@suse.de>
1898 PR tree-optimization/66823
1899 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
1902 2015-07-08 Richard Biener <rguenther@suse.de>
1905 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
1907 2015-07-08 Richard Biener <rguenther@suse.de>
1909 PR tree-optimization/66794
1910 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
1911 Free post-dominators.
1913 2015-07-10 Kaz Kojima <kkojima@gcc.gnu.org>
1915 Backport form mainline
1916 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
1919 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
1920 change for target/65249.
1922 2015-07-09 Iain Sandoe <iain@codesourcery.com>
1925 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
1926 names from preservation.
1928 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
1930 Backport from mainline r225465
1931 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
1934 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
1935 alignment attribute, exploring one level down for records and arrays.
1937 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
1939 Backport from mainline r225461
1940 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
1942 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
1944 2015-07-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1946 Backport from mainline r224725
1947 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1950 * config/rs6000/predicates.md (altivec_register_operand): Permit
1951 virtual stack registers.
1952 (vsx_register_operand): Likewise.
1953 (vfloat_operand): Likewise.
1954 (vint_operand): Likewise.
1955 (vlogical_operand): Likewise.
1957 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
1960 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
1961 of register_operand. Remove constraint.
1963 2015-07-03 Jack Howarth <howarth.at.gcc@gmail.com>
1966 * configure.ac: Fix filds and fildq test for 64-bit.
1967 * configure: Regenerated.
1969 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1971 Backport from mainline.
1972 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1974 PR tree-optimization/66119
1975 * toplev.c (process_options): Don't set up default values for
1976 the sra_max_scalarization_size_{speed,size} parameters.
1977 * tree-sra (analyze_all_variable_accesses): If no values
1978 have been set for the sra_max_scalarization_size_{speed,size}
1979 parameters, call get_move_ratio to get target defaults.
1981 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
1984 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
1985 is not actually the default on FreeBSD.
1987 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1989 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
1991 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1993 Backport from mainline
1994 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1996 * config/s390/s390-builtin-types.def: Add flag to indicate the
1997 options under which the function type is needed.
1998 * config/s390/s390-builtins.def: Add flag to indicate the options
1999 under which the builtin is enabled.
2000 * config/s390/s390-builtins.h: Add flags parameter to macro
2002 (bflags_for_builtin): New function.
2003 (flags_for_builtin): Renamed to ...
2004 (opflags_for_builtin): ... this.
2005 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
2006 flags_for_builtin to bflags_for_builtin and
2007 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
2008 * config/s390/s390.c: Add initialization of bflags_builtin and
2009 opflags_builtin arrays.
2010 Remove code for flags_builtin.
2011 (s390_init_builtins): Only create builtin function types if one of
2012 their flags is active.
2013 Only create builtins if all of their flags are active.
2014 (s390_expand_builtin): Rename flags_for_builtin to
2015 opflags_for_builtin.
2017 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2019 Backport from mainline
2020 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2022 * config/s390/vecintrin.h: Remove internal builtins.
2024 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2026 Backport from mainline
2027 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2029 * config/s390/s390.c (s390_secondary_reload): Fix check for
2030 GENERAL_REGS register class.
2032 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2034 Backport from mainline
2035 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2037 * config/s390/s390.c (s390_support_vector_misalignment): Call
2038 default implementation for !TARGET_VX.
2040 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2042 Backport from mainline
2043 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2045 * config/s390/s390.c (s390_legitimate_constant_p): Add
2048 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2050 Backport from mainline
2051 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2053 * config/s390/s390.c (s390_vector_abi): New variable definition.
2054 (s390_check_type_for_vector_abi): New function.
2055 (TARGET_ASM_FILE_END): New macro definition.
2056 (s390_asm_file_end): New function.
2057 (s390_function_arg): Call s390_check_type_for_vector_abi.
2058 (s390_gimplify_va_arg): Likewise.
2059 * configure: Regenerate.
2060 * configure.ac: Check for .gnu_attribute Binutils feature.
2062 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2064 Backport from mainline
2065 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2067 * config/s390/s390.c (s390_vector_bool_type_p): New function.
2068 (s390_invalid_binary_op): New function.
2069 (TARGET_INVALID_BINARY_OP): Define macro.
2071 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2073 Backport from mainline
2074 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2076 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
2077 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
2078 * config/s390/s390-builtin-types.def: New file.
2079 * config/s390/s390-builtins.def: New file.
2080 * config/s390/s390-builtins.h: New file.
2081 * config/s390/s390-c.c: New file.
2082 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
2083 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
2084 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
2085 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
2087 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
2089 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
2090 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
2091 variable definitions.
2092 (s390_const_operand_ok): New function.
2093 (s390_expand_builtin): Rewrite.
2094 (s390_init_builtins): New function.
2095 (s390_handle_vectorbool_attribute): New function.
2096 (s390_attribute_table): Add s390_vector_bool attribute.
2097 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
2098 (s390_branch_condition_mask): Generate masks for new modes.
2099 (s390_expand_vec_compare_cc): New function.
2100 (s390_mangle_type): Add mangling for vector bool types.
2101 (enum s390_builtin): Remove.
2102 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
2104 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
2105 s390_cpu_cpp_builtins.
2106 (REGISTER_TARGET_PRAGMAS): New macro.
2107 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
2108 (insn_cmp mode attribute): Add new CC modes.
2109 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
2110 (lcbb): New pattern definition.
2111 * config/s390/s390intrin.h: Include vecintrin.h.
2112 * config/s390/t-s390: New file.
2113 * config/s390/vecintrin.h: New file.
2114 * config/s390/vector.md: Include vx-builtins.md.
2115 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
2118 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2120 Backport from mainline
2121 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2123 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
2125 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
2126 (s390_select_ccmode): Likewise.
2127 (s390_canonicalize_comparison): Swap operands if necessary.
2128 (s390_expand_vec_compare_scalar): Expand DFmode compare using
2129 single element vector instructions.
2130 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
2131 (s390_branch_condition_mask): Generate CC masks for the new modes.
2132 * config/s390/s390.md (v0, vf, vd): New mode attributes.
2133 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
2134 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
2135 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
2136 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
2137 (*extend<DSF:mode><BFP:mode>2): New insn definition.
2138 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
2139 (extend<DSF:mode><BFP:mode>2): Turn into expander.
2140 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
2141 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
2142 (sqrt<mode>2): Add vector instruction.
2144 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2146 Backport from mainline
2147 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2149 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
2151 * config/s390/predicates.md (const0_operand, constm1_operand)
2152 (constable_operand): Accept vector operands.
2153 * config/s390/s390-modes.def: Add supported vector modes.
2154 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
2155 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
2156 (s390_bytemask_vector_p, s390_expand_vec_strlen)
2157 (s390_expand_vec_compare, s390_expand_vcond)
2158 (s390_expand_vec_init): Add prototypes.
2159 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
2160 (s390_vector_mode_supported_p): New function.
2161 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
2162 (s390_contiguous_bitmask_vector_p): New function.
2163 (s390_bytemask_vector_p): New function.
2164 (s390_split_ok_p): Vector regs don't work either.
2165 (regclass_map): Add VEC_REGS.
2166 (s390_legitimate_constant_p): Handle vector constants.
2167 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
2168 (legitimate_reload_vector_constant_p): New function.
2169 (s390_preferred_reload_class): Handle CONST_VECTOR.
2170 (s390_reload_symref_address): Likewise.
2171 (s390_secondary_reload): Vector memory instructions only support
2172 short displacements. Rename reload*_nonoffmem* to reload*_la*.
2173 (s390_emit_ccraw_jump): New function.
2174 (s390_expand_vec_strlen): New function.
2175 (s390_expand_vec_compare): New function.
2176 (s390_expand_vcond): New function.
2177 (s390_expand_vec_init): New function.
2178 (s390_dwarf_frame_reg_mode): New function.
2179 (print_operand): Handle addresses with 'O' and 'R' constraints.
2180 (NR_C_MODES, constant_modes): Add vector modes.
2181 (s390_output_pool_entry): Handle vector constants.
2182 (s390_hard_regno_mode_ok): Handle vector registers.
2183 (s390_class_max_nregs): Likewise.
2184 (s390_cannot_change_mode_class): New function.
2185 (s390_invalid_arg_for_unprototyped_fn): New function.
2186 (s390_function_arg_vector): New function.
2187 (s390_function_arg_float): Remove size variable.
2188 (s390_pass_by_reference): Handle vector arguments.
2189 (s390_function_arg_advance): Likewise.
2190 (s390_function_arg): Likewise.
2191 (s390_return_in_memory): Vector values are returned in a VR if
2193 (s390_function_and_libcall_value): Handle vector arguments.
2194 (s390_gimplify_va_arg): Likewise.
2195 (s390_call_saved_register_used): Consider the arguments named.
2196 (s390_conditional_register_usage): Disable v16-v31 for non-vec
2198 (s390_preferred_simd_mode): New function.
2199 (s390_support_vector_misalignment): New function.
2200 (s390_vector_alignment): New function.
2201 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
2202 (TARGET_VECTOR_MODE_SUPPORTED_P)
2203 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
2204 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
2205 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
2206 (TARGET_VECTOR_ALIGNMENT): Define target macro.
2207 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
2208 (FIRST_PSEUDO_REGISTER): Increase value.
2209 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
2210 (VECTOR_REG_P): Define macros.
2211 (FIXED_REGISTERS, CALL_USED_REGISTERS)
2212 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
2213 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
2214 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
2215 Add vector registers.
2216 (CANNOT_CHANGE_MODE_CLASS): Call C function.
2217 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
2218 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
2220 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
2221 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
2222 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
2223 (VR*_REGNUM): New constants.
2224 (ALL): New mode iterator.
2225 (INTALL): Remove mode iterator.
2227 (movti): Implement TImode moves for VRs.
2228 Disable TImode splitter for VR targets.
2229 Implement splitting TImode GPR<->VR moves.
2230 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
2231 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
2232 reload<mode>_la_in, reload<mode>_la_out.
2233 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
2234 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
2235 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
2236 (mov<mode> SF SD): Prefer lder, lde for loading.
2237 Add lrl and strl instructions.
2238 Add vector instructions.
2239 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
2240 Call s390_expand_vec_strlen on z13.
2241 (*cc_to_int): Change predicate to nonimmediate_operand.
2242 (addti3): Rename to *addti3. New expander.
2243 (subti3): Rename to *subti3. New expander.
2244 * config/s390/vector.md: New file.
2246 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2248 Backport from mainline
2249 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2251 * common/config/s390/s390-common.c (processor_flags_table): Add
2253 * config.gcc: Add z13.
2254 * config/s390/s390-opts.h (enum processor_type): Add
2256 * config/s390/s390.c (s390_adjust_priority): Check for
2258 (s390_reorg): Likewise.
2259 (s390_sched_reorder): Likewise.
2260 (s390_sched_variable_issue): Likewise.
2261 (s390_loop_unroll_adjust): Likewise.
2262 (s390_option_override): Likewise. Default to -mvx when available.
2263 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
2264 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
2265 (TARGET_VX_ABI): Define macros.
2267 (TARGET_DEFAULT): Add MASK_OPT_VX.
2268 * config/s390/s390.md ("cpu" attribute): Add z13.
2269 ("cpu_facility" attribute): Add vec.
2270 * config/s390/s390.opt (processor_type): Add z13.
2272 * doc/invoke.texi: Add z13 option for -march.
2274 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2276 Backport from mainline
2277 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2279 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
2281 2015-07-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2283 Backport from mainline
2284 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2286 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
2287 alternative_mask to uint64_t.
2289 2015-07-02 Jakub Jelinek <jakub@redhat.com>
2291 Backported from mainline
2292 2015-06-08 Jakub Jelinek <jakub@redhat.com>
2294 * genattrtab.c (insn_alternatives): Change type from int *
2296 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
2297 (get_attr_value): Change type of num_alt to uint64_t.
2298 (compute_alternative_mask): Change return type from
2299 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
2300 (make_alternative_compare, mk_attr_alt): Change argument type
2301 from int to uint64_t.
2302 (simplify_test_exp): Change type of i from int to uint64_t.
2303 Shift ((uint64_t) 1) instead of 1 up.
2304 (main): Adjust oballocvec first argument from int to uint64_t.
2305 Shift ((uint64_t) 1) instead of 1 up.
2307 2015-07-01 Kaz Kojima <kkojima@gcc.gnu.org>
2309 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
2311 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
2314 2015-07-01 David Malcolm <dmalcolm@redhat.com>
2316 Backport from mainline r225207
2317 2015-06-30 David Malcolm <dmalcolm@redhat.com>
2319 * typed-splay-tree.h: New file.
2321 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
2324 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
2325 to true if the function is nested and if not optimizing.
2326 (convert_local_omp_clauses): Initialize need_frame to true if the
2327 function contains nested functions and if not optimizing.
2329 2015-06-30 Jakub Jelinek <jakub@redhat.com>
2332 * omp-low.c (simd_clone_adjust): Handle addressable linear
2333 or uniform parameters or non-gimple type uniform parameters.
2335 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
2337 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
2338 -mfix-ut699 is not specified.
2339 (leon3_load): Rename into...
2340 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
2343 2015-06-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2345 Backport from mainline:
2346 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2349 * config/aarch64/geniterators.sh: Rewrite in awk.
2351 2015-06-27 James Greenhalgh <james.greenhalgh@arm.com>
2353 Backport from mainline r224672.
2354 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
2356 * config/vax/vax.md: Adjust sign/zero extend patterns to
2357 handle SUBREGs in operands[1].
2359 2015-06-27 Oleg Endo <olegendo@gcc.gnu.org>
2361 Backport from mainline
2362 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
2366 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
2367 the replacement insn will work.
2369 2015-06-26 Martin Jambor <mjambor@suse.cz>
2372 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
2373 NULL instead of calling dump_enabled_p.
2375 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
2376 Segher Boessenkool <segher@kernel.crashing.org>
2379 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
2380 before doing PUT_MODE or PUT_CODE on operands to avoid
2381 in-place RTX modification.
2383 2015-06-25 Andreas Tobler <andreast@gcc.gnu.org>
2385 Backport from mainline
2386 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
2388 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
2390 (FBSD_ENDFILE_SPEC): Likewise.
2391 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
2392 config/freebsd-spec.h.
2393 (ENDFILE_SPEC): Likewise.
2395 2015-06-25 Kaz Kojima <kkojima@gcc.gnu.org>
2397 Backport from mainline
2398 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
2401 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
2402 an additional element of the unspec vector. Modify indices
2404 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
2405 * config/sh/sh.c (prepare_move_operands): Pass incremented
2406 const_int to gen_GOTaddr2picreg.
2407 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
2409 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2411 Backport from mainline.
2412 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2414 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
2415 for negative numbers.
2417 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2420 * config/aarch64/aarch64.c (TARGET_RELAXED_ORDERING): Define.
2422 2015-06-24 Renlin Li <renlin.li@arm.com>
2424 Backport from mainline
2425 2015-06-24 Renlin Li <renlin.li@arm.com>
2427 * varasm.c (emit_local): Use unsigned int for align variable.
2429 2015-06-23 Richard Biener <rguenther@suse.de>
2431 Backport from mainline
2432 2015-06-09 Richard Biener <rguenther@suse.de>
2435 * tree-inline.c (insert_init_debug_bind): Unshare value.
2437 2015-06-23 Ludovic Courtès <ludo@gnu.org>
2440 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
2441 '-dynamic-linker' within %{!shared: ...}.
2443 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
2446 * lra-lives.c (process_bb_lives): Check insn copying the same
2447 reload pseudo and don't create a copy for it.
2449 2015-06-22 Richard Biener <rguenther@suse.de>
2451 Backport from mainline
2452 2015-06-08 Richard Biener <rguenther@suse.de>
2454 PR tree-optimization/66422
2455 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
2456 block after inserted gcc_unreachable.
2458 2015-06-21 Marek Polacek <polacek@redhat.com>
2460 Backport from mainline
2461 2015-06-20 Marek Polacek <polacek@redhat.com>
2463 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
2465 2015-06-18 Richard Biener <rguenther@suse.de>
2467 Backport from mainline
2468 2015-06-03 Richard Biener <rguenther@suse.de>
2470 PR tree-optimization/66375
2471 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
2472 add to the evolution before following SSA edges.
2474 2015-06-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2476 Backport from mainline r224414.
2477 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2479 * common/config/i386/i386-common.c
2480 (OPTION_MASK_ISA_MWAITX_SET): New.
2481 (ix86_handle_option): Handle mwaitx.
2482 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
2483 (x86_64-*-*): Likewise.
2484 * config/i386/mwaitxintrin.h: New header.
2485 * config/i386/cpuid.h (bit_MWAITX): Define.
2486 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2488 * config/i386/i386.opt (mwaitx): New.
2489 * config/i386/i386-builtin-types.def
2490 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
2491 * config/i386/i386-c.c: Define __MWAITX__ if needed.
2492 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
2494 (ix86_option_override_internal): Handle new option.
2495 (processor_alias_table): Added PTA_MWAITX.
2496 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
2497 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
2498 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
2499 IX86_BUILTIN_MONITORX built-ins.
2500 * config/i386/i386.h (TARGET_MWAITX): New.
2501 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
2503 (mwaitx): New pattern.
2504 (monitorx_<mode>): New pattern.
2505 * config/i386/x86intrin.h: Include mwaitxintrin.h.
2506 * doc/extend.texi: Document monitorx and mwaitx builtins.
2507 * doc/invoke.texi: Document -mmwaitx option.
2509 2015-06-17 Jakub Jelinek <jakub@redhat.com>
2512 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
2513 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
2514 and has_force_vectorize_loops flags from cfun into
2516 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
2517 if simduid is non-NULL.
2518 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
2519 * passes.def (pass_simduid_cleanup): Add new pass after loop
2521 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
2522 indirection from htab argument's type.
2523 (shrink_simd_arrays): New function.
2524 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
2525 Don't call adjust_simduid_builtins if there are no loops.
2526 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
2527 (pass_simduid_cleanup::execute): New method.
2528 (make_pass_simduid_cleanup): New function.
2530 2015-06-17 Ilya Enkovich <ilya.enkovich@intel.com>
2532 Backport from mainline r223929.
2533 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
2536 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
2537 redirection for instrumented calls.
2538 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
2539 (append_compiler_options): Append -fcheck-pointer-bounds.
2540 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
2541 (chkp_redirect_edge): New.
2542 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
2543 (chkp_redirect_edge): New.
2545 2015-06-17 Ilya Enkovich <ilya.enkovich@intel.com>
2547 Backport from mainline r224063.
2548 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
2550 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
2551 remove instumentation thunks calling reachable functions.
2552 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
2553 * lto/lto-partition.c (privatize_symbol_name_1): New.
2554 (privatize_symbol_name): Privatize both decl and orig_decl
2555 names for instrumented functions.
2556 * cgraph.c (cgraph_node::verify_node): Add transparent
2557 transparent alias chain check for instrumented node.
2559 2015-06-16 Jim Wilson <jim.wilson@linaro.org>
2561 Backport from mainline
2562 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
2565 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
2566 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
2567 (aarch64_secondary_reload): Likewise
2568 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
2570 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
2573 2015-06-16 Richard Biener <rguenther@suse.de>
2576 2015-06-01 Richard Biener <rguenther@suse.de>
2578 Backport from mainline
2579 2015-05-26 Michael Matz <matz@suse.de>
2582 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
2583 STMT_VINFO_VEC_STMT, also with SLP.
2585 2015-05-22 Richard Biener <rguenther@suse.de>
2587 PR tree-optimization/66251
2588 * tree-vect-stmts.c (vectorizable_conversion): Properly
2589 set STMT_VINFO_VEC_STMT even for the SLP case.
2591 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
2593 Backport from mainline:
2594 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
2596 * dbxout.c (xcoff_debug_hooks): Provide a function for
2597 register_main_translation_unit hook.
2599 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
2601 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
2604 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
2607 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
2608 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
2609 (*addx_extend_sp32): Fix pasto.
2610 (*subx_extend): Rename into...
2611 (*subx_extend_sp32): ...this.
2612 (*adddi3_extend_sp32): Add earlyclobber.
2613 (*subdi3_insn_sp32): Likewise.
2614 (*subdi3_extend_sp32): Likewise.
2615 (*and_not_di_sp32): Likewise.
2616 (*or_not_di_sp32): Likewise.
2617 (*xor_not_di_sp32): Likewise.
2618 (*negdi2_sp32): Likewise.
2619 (*one_cmpldi2_sp32): Likewise.
2621 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
2623 * debug.h (struct gcc_debug_hooks): Add a
2624 register_main_translation_unit hook.
2625 * debug.c (do_nothing_debug_hooks): Provide a function for this
2627 * dbxout.c (dbx_debug_hooks): Likewise.
2628 * sdbout.c (sdb_debug_hooks): Likewise.
2629 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2630 * dwarf2out.c (main_translation_unit): New global variable.
2631 (dwarf2out_register_main_translation_unit): New function
2632 implementing the new hook.
2633 (dwarf2_debug_hooks): Assign
2634 dwarf2out_register_main_translation_unit to this new hook.
2635 (dwarf2out_init): Associate any main translation unit to
2638 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
2641 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
2642 to prepare mask operand for AVX512 modes.
2644 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2646 Backport from mainline:
2647 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2650 * doc/md.texi (Machine Constraints): Document that on the PowerPC
2651 if you use a constraint that targets a VSX register, you must use
2652 %x<n> in the template.
2654 2015-06-10 Jakub Jelinek <jakub@redhat.com>
2657 * config/i386/i386.c (ix86_split_long_move): For collisions
2658 involving direct tls segment refs, move the UNSPEC_TP possibly
2659 wrapped in ZERO_EXTEND out of the address for lea, to each of
2662 2015-06-08 Uros Bizjak <ubizjak@gmail.com>
2664 Backport from mainline:
2665 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
2668 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
2669 to determine current function ABI.
2670 (ix86_function_value_regno_p): Ditto.
2672 2015-06-08 Tom de Vries <tom@codesourcery.com>
2674 backport from mainline:
2675 2015-06-08 Tom de Vries <tom@codesourcery.com>
2677 PR rtl-optimization/66444
2678 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
2681 2015-06-08 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2683 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
2685 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
2688 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
2689 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
2690 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
2692 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
2693 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
2694 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
2695 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
2696 and non iso if unix2003.
2698 2015-06-03 Richard Biener <rguenther@suse.de>
2700 Backport from mainline
2701 2015-06-02 Richard Biener <rguenther@suse.de>
2704 * dwarf2out.c (lookup_context_die): New function.
2705 (resolve_addr): Avoid forcing a full DIE for the
2706 target of a DW_TAG_GNU_call_site during late compilation.
2707 Instead create a stub DIE without a type if we have a
2708 context DIE present.
2710 2015-06-01 Richard Biener <rguenther@suse.de>
2712 PR tree-optimization/66280
2713 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
2716 2015-05-27 Richard Biener <rguenther@suse.de>
2718 PR tree-optimization/66272
2720 2014-08-15 Richard Biener <rguenther@suse.de>
2722 PR tree-optimization/62031
2723 * tree-data-ref.c (dr_analyze_indices): Do not set
2724 DR_UNCONSTRAINED_BASE.
2725 (dr_may_alias_p): All indirect accesses have to go the
2726 formerly DR_UNCONSTRAINED_BASE path.
2727 * tree-data-ref.h (struct indices): Remove
2728 unconstrained_base member.
2729 (DR_UNCONSTRAINED_BASE): Remove.
2731 2015-05-21 Richard Biener <rguenther@suse.de>
2734 * match.pd: Guard pattern optimzing (int)(float)int
2735 conversions to apply only on GIMPLE.
2737 2015-05-13 Richard Biener <rguenther@suse.de>
2739 PR tree-optimization/66123
2740 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
2743 2015-06-02 Renlin Li <renlin.li@arm.com>
2745 Backport from mainline
2746 2015-04-30 Renlin Li <renlin.li@arm.com>
2748 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
2749 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
2751 2015-06-02 Marek Polacek <polacek@redhat.com>
2753 Backport from mainline
2754 2015-06-02 Marek Polacek <polacek@redhat.com>
2757 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
2758 get_maxval_strlen does not produce an INTEGER_CST.
2760 2015-06-02 Alan Modra <amodra@gmail.com>
2762 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
2765 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
2767 Backport from mainline
2768 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2771 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
2774 2015-06-01 Richard Biener <rguenther@suse.de>
2776 Backport from mainline
2777 2015-05-26 Michael Matz <matz@suse.de>
2780 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
2781 STMT_VINFO_VEC_STMT, also with SLP.
2783 2015-05-22 Richard Biener <rguenther@suse.de>
2785 PR tree-optimization/66251
2786 * tree-vect-stmts.c (vectorizable_conversion): Properly
2787 set STMT_VINFO_VEC_STMT even for the SLP case.
2789 2015-05-28 Mike Frysinger <vapier@gentoo.org>
2791 * config/nios2/linux.h (CPP_SPEC): Define.
2793 2015-05-28 Mike Frysinger <vapier@gentoo.org>
2795 * config/microblaze/linux.h (CPP_SPEC): Define.
2797 2015-05-28 Mike Frysinger <vapier@gentoo.org>
2799 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
2800 -pthread is specified.
2802 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
2805 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
2806 REG_EQUAL note when doing insert.
2808 2015-05-27 Richard Biener <rguenther@suse.de>
2810 Backport from mainline
2811 2015-05-12 Richard Biener <rguenther@suse.de>
2813 PR tree-optimization/66101
2814 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
2815 fixup if we turn a loop exit edge to a fallthru edge.
2817 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
2820 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
2821 take into account the case that operands[1] and operands[2]
2822 are the same register.
2824 2015-05-22 Jakub Jelinek <jakub@redhat.com>
2826 Backported from mainline
2827 2015-05-21 Jakub Jelinek <jakub@redhat.com>
2829 PR tree-optimization/66233
2830 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
2833 2015-05-19 Jakub Jelinek <jakub@redhat.com>
2836 * tree.h (OMP_TEAMS_COMBINED): Define.
2837 * gimplify.c (enum gimplify_omp_var_data): Add
2838 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
2839 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
2840 (omp_notice_variable): Accept both ORT_TEAMS
2841 and ORT_COMBINED_TEAMS. Don't recurse if
2842 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
2843 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
2845 (omp_no_lastprivate): New function.
2846 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
2847 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
2848 notice_outer and set appropriate bits, otherwise make
2849 sure default(none) combined constructs won't complain.
2850 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
2851 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
2852 omp_no_lastprivate either remove the clause or turn it
2853 into OMP_CLAUSE_PRIVATE.
2854 (gimplify_omp_for): Fix up handling of implicit
2855 lastprivate or linear iterators.
2856 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
2858 * omp-low.c (lower_omp_for_lastprivate): For combined
2859 for simd use fd.loop.n2 from the for rather than simd.
2861 2015-05-13 Jakub Jelinek <jakub@redhat.com>
2864 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
2865 make sure it is never noreturn, even when the task body does not
2867 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
2868 right before GIMPLE_OMP_RETURN.
2869 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
2870 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
2871 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
2873 2015-05-21 Sandra Loosemore <sandra@codesourcery.com>
2875 Backport from mainline r223418:
2876 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
2877 to build a biarch toolchain again.
2879 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2881 Backport from mainline r223471
2882 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2885 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
2886 build_distinct_type_copy to copy bounds.
2888 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
2891 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
2892 QImode inner modes for TARGET_AVX512BW. Force mask operand
2893 to a register for AVX512F modes.
2895 2015-04-16 Jan Hubicka <hubicka@ucw.cz>
2898 * i386.c (ix86_function_sseregparm): Only return -1 if local function
2899 with implied regparm is called from -mno-sse function.
2900 (init_cumulative_args): Output error if ix86_function_sseregparm
2901 return -1 and SSE register would be needed.
2902 (function_arg_advance_32): Likewise.
2903 (function_arg_32): Likewise.
2904 * i386.h (ix86_args): Add decl field.
2906 2015-04-16 Jan Hubicka <hubicka@ucw.cz>
2909 * i386.c (ix86_function_sseregparm): Only return -1 if local function
2910 with implied regparm is called from -mno-sse function.
2911 (init_cumulative_args): Output error if ix86_function_sseregparm
2912 return -1 and SSE register would be needed.
2913 (function_arg_advance_32): Likewise.
2914 (function_arg_32): Likewise.
2915 * i386.h (ix86_args): Add decl field.
2916 * gcc.target/i386/pr66047.c: New testcase.
2918 2015-04-16 Jan Hubicka <hubicka@ucw.cz>
2921 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
2922 inlines across optimization boundary; be tolerant about COMDAT;
2923 allow inlining across -fstrict-aliasing boundary.
2925 2015-05-16 Segher Boessenkool <segher@kernel.crashing.org>
2927 Backport from mainline
2928 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
2930 PR rtl-optimization/30967
2931 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
2932 destination mode for the cost of scc patterns.
2934 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
2937 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
2938 replacements in memory addresses.
2939 (get_unaligned_address): Ditto.
2941 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2943 Backport from mainline
2944 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2947 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
2948 REG before taking its REGNO.
2950 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2952 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
2953 and zEC12_simple_fp.
2954 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
2957 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2959 Backport from mainline
2960 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2962 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
2964 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
2965 at '.'. Assert that there's enough space for everything.
2967 2015-05-12 Yvan Roux <yvan.roux@linaro.org>
2969 Backport from mainline.
2970 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
2972 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
2973 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
2974 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
2975 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
2976 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
2977 * configure: Regenerate.
2978 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
2979 * doc/install.texi (aarch64*-*-*): Document new
2980 --enable-fix-cortex-a53-843419 option.
2981 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
2982 and -mno-fix-cortex-a53-843419 options.
2984 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
2986 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
2987 when looking for memory references.
2989 2015-05-11 Jakub Jelinek <jakub@redhat.com>
2992 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
2993 default_binds_local_p_2.
2994 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
2995 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
2997 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
3000 * config/alpha/alpha.c (alpha_override_options_after_change): New.
3001 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3002 (alpha_override_options): Move align_loops, align_jumps and
3003 align_functions handling into alpha_override_options_after_change.
3005 2015-05-06 Uros Bizjak <ubizjak@gmail.com>
3008 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
3009 if rep_8byte stringop strategy was specified for 32-bit target.
3011 2015-05-06 Christian Bruel <christian.bruel@st.com>
3014 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
3015 align_jumps, align_functions into aarch64_override_options_after_change.
3017 2015-05-05 Peter Bergner <bergner@vnet.ibm.com>
3019 Backport from mainline.
3020 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
3023 * config/rs6000/htm.md: Remove all define_expands.
3024 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
3025 UNSPECV_HTM_TABORTWCI): Remove.
3026 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
3027 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
3028 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
3029 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
3030 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
3031 tabortwci_internal): Remove define_insns.
3032 (tabort<wd>c, tabort<wd>ci): New define_insns.
3033 (tabort): Use gpc_reg_operand.
3034 (tcheck): Remove operand.
3035 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
3036 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
3038 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
3039 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
3040 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
3041 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
3042 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
3043 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
3044 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
3045 (tcheck): Remove builtin argument.
3046 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
3048 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
3049 tabortdc and tabortdci builtins when not in 64-bit mode.
3050 Modify code to handle the loss of the HTM define_expands.
3051 Emit code to copy the CR register to TARGET.
3052 (htm_init_builtins): Modify code to handle the loss of the HTM
3054 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
3055 (RS6000_BTC_64BIT): Likewise.
3056 (RS6000_BTC_CR): New macro.
3057 * doc/extend.texi: Update documentation for htm builtins.
3059 2015-05-04 Jakub Jelinek <jakub@redhat.com>
3061 PR tree-optimization/65984
3062 * ubsan.c: Include tree-cfg.h.
3063 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
3064 stmt_could_throw_p test, rename can_throw variable to ends_bb.
3066 * Makefile.in (PATCHLEVEL_c): New variable.
3067 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
3068 expand the same way as if DEVPHASE_c was non-empty.
3070 2015-05-04 Kai Tietz <ktietz@redhat.com>
3072 Backmerge from trunk.
3075 * lto-wrapper.c (run_gcc): Open filename
3078 2015-04-30 Paolo Carlini <paolo.carlini@oracle.com>
3081 * doc/invoke.texi ([-Wnarrowing]): Update.
3083 2015-04-30 Alan Modra <amodra@gmail.com>
3088 * calls.c (load_register_parameters): Don't load past end of
3089 mem unless suitably aligned.
3091 2015-04-27 Jakub Jelinek <jakub@redhat.com>
3093 PR tree-optimization/65875
3094 * tree-vrp.c (update_value_range): If in is_new case setting
3095 old_vr to VR_VARYING, also set new_vr to it. Remove
3096 old_vr->type == VR_VARYING test.
3097 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
3098 SSA_PROP_INTERESTING if update_value_range returned true,
3099 but new range is VR_VARYING.
3101 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
3103 Backport from 2015-04-27 trunk r222459.
3107 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
3108 Add hint how to use own spec file.
3110 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3112 Backport from mainline
3113 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3116 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
3117 save to independent variables use the Save attribute. This will
3118 allow these options to be modified with the #pragma/attribute
3120 (-mallow-movmisalign): Likewise.
3121 (-mallow-df-permute): Likewise.
3122 (-msched-groups): Likewise.
3123 (-malways-hint): Likewise.
3124 (-malign-branch-targets): Likewise.
3125 (-mvectorize-builtins): Likewise.
3126 (-msave-toc-indirect): Likewise.
3128 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
3129 can be set via the #pragma/attribute target support.
3130 (rs6000_opt_vars): Likewise.
3131 (rs6000_inner_target_options): If VSX was set, also set
3132 -mno-avoid-indexed-addresses.
3134 2015-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3136 Backport from mainline r222385
3137 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3139 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
3140 asterisk from name so this can be generated directly.
3141 (*altivec_stvx_<mode>_internal): Likewise.
3142 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
3143 that this is never called during or after reload/lra.
3144 (rs6000_frame_related): Remove split_reg
3145 argument and logic that references it.
3146 (emit_frame_save): Remove last parameter from call to
3147 rs6000_frame_related.
3148 (rs6000_emit_prologue): Remove last parameter from eight calls to
3149 rs6000_frame_related. Force generation of stvx instruction for
3150 Altivec register saves. Remove split_reg handling, which is no
3152 (rs6000_emit_epilogue): Force generation of lvx instruction for
3153 Altivec register restores.
3155 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
3157 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
3158 Mark operand1 commutative.
3160 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3162 Backport from mainline r222362
3163 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3165 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
3166 TARGET_CRYPTO to TARGET_P8_VECTOR>
3167 (crypto_vpermxor_<mode>): Likewise.
3168 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
3169 (BU_CRYPTO_3A): Likewise.
3170 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
3171 (BU_CRYPTO_OVERLOAD_3A): New #define.
3172 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
3173 (VPMSUMH): Likewise.
3174 (VPMSUMW): Likewise.
3175 (VPMSUMD): Likewise.
3176 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
3177 (VPERMXOR_V4SI): Likewise.
3178 (VPERMXOR_V8HI): Likewise.
3179 (VPERMXOR_V16QI): Likewise.
3180 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
3181 BU_CRYPTO_OVERLOAD_2A.
3182 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
3183 BU_CRYPTO_OVERLOAD_3A.
3184 * config/rs6000/rs6000.opt (mcrypto): Change description of
3187 Backport from mainline r222362
3188 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3190 * config/rs6000/rs6000.opt (mcrypto): Change option description to
3191 match category changes in ISA 2.07B.
3193 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3195 Backport from mainline r222351
3196 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3198 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
3200 (insn_is_swappable_p): Return 1 for a convert from double to
3201 single precision when all of its uses are splats of BE element
3204 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3206 Backport from mainline r222349
3207 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3210 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
3211 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
3212 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
3214 (rs6000_builtin_mask_for_load): Return 0 for targets with
3215 efficient unaligned VSX accesses so that the vectorizer will use
3216 direct unaligned loads.
3217 (rs6000_builtin_support_vector_misalignment): Always return true
3218 for targets with efficient unaligned VSX accesses.
3219 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
3220 stores on targets with efficient unaligned VSX accesses is almost
3221 always the same as the cost of an aligned load or store, so model
3223 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
3224 unaligned vectors if we have efficient unaligned VSX accesses.
3225 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
3226 undocumented option.
3228 2015-04-23 Vladimir Makarov <vmakarov@redhat.com>
3230 Backport from trunk r222223.
3232 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
3234 PR rtl-optimization/65805
3235 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
3236 Don't use difference of offset and previous offset if
3237 update_sp_offset is non-zero.
3238 (eliminate_regs_in_insn): Ditto.
3239 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
3240 lra_eliminate_regs_1 call.
3241 * lra-constraints.c (get_equiv_with_elimination): Ditto.
3243 2015-04-22 Georg-Johann Lay <avr@gjlay.de>
3245 Backport from trunk r222179.
3247 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
3250 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
3251 to new AVR-LibC file layout (bug #44574).
3252 (*avrlibc_devicelib): Same.
3253 * config/avr/avr-mcus.def: Adjust comments.
3254 * config/avr/avr.opt (nodevicelib): Adjust help.
3256 2015-04-22 Jakub Jelinek <jakub@redhat.com>
3258 * BASE-VER: Set to 5.1.1.
3260 2015-04-22 Release Manager
3262 * GCC 5.1.0 released.
3264 2015-04-20 Jakub Jelinek <jakub@redhat.com>
3267 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
3269 2015-04-18 Gerald Pfeifer <gerald@pfeifer.com>
3271 * doc/plugins.texi: Rewrite first introductory paragraph.
3273 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
3276 * config/i386/i386.c (ix86_binds_local_p): Define only if
3277 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
3279 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3280 Jakub Jelinek <jakub@redhat.com>
3283 * config/rs6000/rs6000.c (rtx_is_swappable_p): Remove previous
3284 fix; ensure that a subsequent SH_NONE operand does not overwrite
3285 an existing *special value.
3287 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
3290 * output.h (default_binds_local_p_3): New.
3291 * varasm.c (default_binds_local_p_3): Make it public. Take an
3292 argument to indicate if common symbol may be local. If common
3293 symbol may be local, treat non-external variable as defined
3295 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
3296 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
3297 * config/i386/i386.c (ix86_binds_local_p): New.
3298 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
3301 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3304 * config/rs6000/rs6000.c (rtx_is_swappable_p): Handle case where
3305 vec_extract operation is wrapped in a PARALLEL with a CLOBBER.
3306 (adjust_extract): Likewise.
3308 2015-04-17 Jakub Jelinek <jakub@redhat.com>
3311 * dwarf2out.c (loc_list_from_tree): Return NULL
3312 for DEBUG_EXPR_DECL.
3314 2015-04-15 Jakub Jelinek <jakub@redhat.com>
3317 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
3318 and GIMPLE_PREDICT use break instead of return true. For
3319 GIMPLE_EH_DISPATCH, compare dispatch region.
3321 2015-04-14 Jakub Jelinek <jakub@redhat.com>
3323 PR rtl-optimization/65761
3324 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
3325 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
3327 2015-04-13 Jan Hubicka <hubicka@ucw.cz>
3328 Gerald Pfeifer <gerald@pfeifer.com>
3330 * doc/contrib.texi (Contributors): Add Martin Jambor and
3333 2015-04-12 Jakub Jelinek <jakub@redhat.com>
3335 * BASE-VER: Set to 5.0.1.
3336 * DEV-PHASE: Set to prerelease.
3338 PR tree-optimization/65747
3339 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
3340 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
3342 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
3344 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
3345 sentence. Improve grammar.
3347 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
3349 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
3351 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
3354 * ipa-inline-transform.c (speculation_removed): Remove static var.
3355 (check_speculations): New function.
3356 (clone_inlined_nodes): Do not check spculations.
3357 (inline_call): Call check_speculations.
3358 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
3359 consider non-invariants.
3361 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
3362 Martin Liska <mliska@suse.cz>
3365 * ipa-icf.c (sem_item::compare_cgraph_references): function and
3366 variable can not match.
3367 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
3368 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
3370 2015-04-11 Jakub Jelinek <jakub@redhat.com>
3372 PR tree-optimization/65735
3373 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
3374 Remove visited_phis argument, add visited_bbs, avoid recursing into the
3375 same bb rather than just into the same phi node.
3376 (thread_through_normal_block): Adjust caller.
3378 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
3380 * doc/contrib.texi (Contributors): Add Ira Rosen.
3382 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
3384 * gcov.c (find_source): Fix miswording in error message.
3385 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
3386 (ix86_expand_sse_comi_round): Fix typo in error message.
3388 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
3390 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
3392 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
3394 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
3396 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
3399 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
3400 Print bad_spills_num and insn_pseudos_num.
3402 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3405 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
3406 when creating +1 values for SImode.
3408 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
3411 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
3414 2015-04-10 Jakub Jelinek <jakub@redhat.com>
3415 Iain Sandoe <iain@codesourcery.com>
3418 * configure: Regenerate.
3420 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
3423 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
3425 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
3427 * doc/contrib.texi (Contributors): Add John Marino.
3429 2015-04-09 Jakub Jelinek <jakub@redhat.com>
3431 PR tree-optimization/65709
3432 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
3433 TREE_TYPE (TREE_TYPE (t)).
3435 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
3438 * lra-int.h (lra_bad_spill_regno_start): New.
3439 * lra.c (lra_bad_spill_regno_start): New.
3440 (lra): Set up lra_bad_spill_regno_start. Set up
3441 lra_constraint_new_regno_start unconditionally.
3442 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
3445 2015-04-09 Marek Polacek <polacek@redhat.com>
3446 Jakub Jelinek <jakub@redhat.com>
3449 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
3450 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
3453 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
3455 PR rtl-optimization/65693
3456 * combine.c (is_parallel_of_n_reg_sets): Move outside of
3459 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
3462 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
3463 device specs file if "device-specs%s" didn't resolve to a path.
3465 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
3468 * config/i386/i386.c (fixup_modeless_constant): New.
3469 (ix86_expand_args_builtin): Fixup modeless constant operand.
3470 (ix86_expand_round_builtin): Ditto.
3471 (ix86_expand_special_args_builtin): Ditto.
3472 (ix86_expand_builtin): Ditto.
3474 2015-04-09 Jakub Jelinek <jakub@redhat.com>
3477 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
3478 any pow2 integer in between 2 and 0x80000000U inclusive.
3480 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
3482 PR rtl-optimization/65693
3483 * combine.c (is_parallel_of_n_reg_sets): Change first argument
3484 from an rtx_insn * to an rtx.
3485 (try_combine): Adjust both callers. Use it once more.
3487 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
3489 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
3490 (chkp_make_static_const_bounds): Search existing
3491 symbol by assembler name. Use make_decl_one_only.
3492 (chkp_get_zero_bounds_var): Remove node search which
3493 is now performed in chkp_make_static_const_bounds.
3494 (chkp_get_none_bounds_var): Likewise.
3496 2015-04-08 Michael Witten <mfwitten@gmail.com>
3498 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
3501 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3503 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
3505 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
3507 * doc/extend.texi (__sync Builtins): Fix grammar.
3509 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3511 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
3513 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3515 * varasm.c (emit_local): Move definition of align.
3517 2015-04-08 Julian Brown <julian@codesourcery.com>
3519 * config/nvptx/mkoffload.c (process): Support variable mapping.
3521 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
3523 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
3525 (alpha_write_one_linkage): Correct typo.
3527 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
3529 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
3531 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
3533 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
3535 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
3537 * tree-chkp.h (chkp_insert_retbnd_call): New.
3538 * tree-chkp.c (chkp_insert_retbnd_call): New.
3539 * ipa-split.c (insert_bndret_call_after): Remove.
3540 (split_function): Use chkp_insert_retbnd_call.
3541 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
3542 bounds for instrumented functions.
3544 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
3547 * calls.c (initialize_argument_information): When producing tail
3548 call also turn SSA_NAMES passed by references to original PARM_DECLs
3550 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
3553 * lra-remat.c (do_remat): Process input and non-input insn
3554 registers separately.
3556 2015-04-07 Jakub Jelinek <jakub@redhat.com>
3559 * valtrack.c (debug_lowpart_subreg): New function.
3560 (dead_debug_insert_temp): Use it.
3563 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
3564 into signed HOST_WIDE_INT the same as negative bit_offset.
3566 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
3568 * ipa-comdats.c (ipa_comdats): Visit all thunks
3569 to set proper comdat group.
3571 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3574 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
3575 on constants for NEON VSTRUCT modes.
3577 2015-04-07 Jakub Jelinek <jakub@redhat.com>
3578 Iain Sandoe <iain@codesourcery.com>
3581 * configure: Regenerate.
3583 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3586 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
3587 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
3588 that LFD is used to load double constants instead of LFS. Add
3589 defaults for all costs structures. Add comments for missing
3590 initialization fields.
3591 (size32_cost): Likewise.
3592 (size64_cost): Likewise.
3593 (rs64a_cost): Likewise.
3594 (mpccore_cost): Likewise.
3595 (ppc403_cost): Likewise.
3596 (ppc405_cost): Likewise.
3597 (ppc440_cost): Likewise.
3598 (ppc476_cost): Likewise.
3599 (ppc601_cost): Likewise.
3600 (ppc603_cost): Likewise.
3601 (ppc604_cost): Likewise.
3602 (ppc604e_cost): Likewise.
3603 (ppc620_cost): Likewise.
3604 (ppc630_cost): Likewise.
3605 (ppccell_cost): Likewise.
3606 (ppc750_cost): Likewise.
3607 (ppc7450_cost): Likewise.
3608 (ppc8540_cost): Likewise.
3609 (ppce300c2c3_cost): Likewise.
3610 (ppce500mc_cost): Likewise.
3611 (ppce500mc64_cost): Likewise.
3612 (ppce5500_cost): Likewise.
3613 (ppce6500_cost): Likewise.
3614 (titan_cost): Likewise.
3615 (power4_cost): Likewise.
3616 (power6_cost): Likewise.
3617 (power7_cost): Likewise.
3618 (power8_cost): Likewise.
3619 (ppca2_cost): Likewise.
3620 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
3622 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
3623 instead of XXLOR to copy SFmode to clear out dirty bits created
3624 when SFmode denormals are generated.
3625 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
3626 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
3628 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
3630 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
3631 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
3632 * config/aarch64/aarch64-tune.md: Regenerate.
3634 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
3636 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
3637 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
3638 * config/arm/arm-cores.def (exynos-m1): New core.
3639 * config/arm/arm-tune.md: Regenerate.
3640 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
3641 * config/arm/bpabi.h: Likewise.
3643 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
3645 * ipa-cp (set_single_call_flag): Remove too
3648 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
3650 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
3651 GOMP_offload_unregister from the destructor.
3653 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
3655 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
3656 flags for instrumentation thunk.
3657 (chkp_produce_thunks): Likewise.
3659 2015-04-05 Martin Liska <mliska@suse.cz>
3662 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
3663 has computed data structure.
3664 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
3666 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
3668 * invoke.texi (inline-unit-growth): Increase growth to 20%
3669 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
3671 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
3674 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
3676 (lra_rematerialization_iter): New.
3677 * lra.c (lra): Initialize lra_rematerialization_iter.
3678 Stop updating lra_constraint_new_regno_start after switching of
3679 inheritance and rematerialization.
3680 * lra-remat.c (lra_rematerialization_iter): New.
3681 (lra_remat): Add printing pass iteration. Do rematerialization
3682 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
3684 2015-04-04 Richard Biener <rguenther@suse.de>
3686 PR tree-optimization/64909
3687 PR tree-optimization/65660
3688 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
3689 to take a cost vector for scalar iteration cost.
3690 (vect_get_single_scalar_iteration_cost): Likewise.
3691 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
3692 Compute the scalar iteration cost into a cost vector.
3693 (vect_get_known_peeling_cost): Use the scalar cost vector to
3694 account for the cost of the peeled iterations.
3695 (vect_estimate_min_profitable_iters): Likewise.
3696 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
3699 2015-04-04 Alan Modra <amodra@gmail.com>
3703 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
3704 0.0 constant unless TARGET_VSX.
3705 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
3708 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
3711 * ipa-inline-transform.c (inline_call): Skip sanity check to work
3714 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
3717 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
3718 speculative indirect edges to avoid ordering issue.
3720 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
3723 * ipa-inline.c (edge_badness): Add combined size to the denominator.
3725 2015-04-03 Jakub Jelinek <jakub@redhat.com>
3727 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
3728 TYPE_ARTIFICIAL on the .omp_data* types.
3730 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
3732 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
3733 instrumentation thunks.
3735 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
3737 * config/i386/i386.c (ix86_expand_call): Avoid nested
3738 PARALLEL in returned call value.
3740 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
3742 * lto-cgraph.c (input_cgraph_1): Always link instrumented
3743 assembler name with original one.
3745 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
3747 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
3749 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
3751 Revert parts of r216820.
3752 * config/i386/i386.md (movqi_internal): Correct type calculation
3753 for alternatives 3 and 5.
3755 2015-04-02 Jakub Jelinek <jakub@redhat.com>
3757 PR preprocessor/61977
3758 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
3759 predefine __vector/__bool/__pixel macros nor context sensitive
3761 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
3763 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
3765 * config/pa/pa.c (pa_output_move_double): Directly handle register
3766 indexed memory operand. Simplify handling of scaled register indexed
3769 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
3772 * config/i386/linux-common.h (MPX_SPEC): New.
3773 (CHKP_SPEC): Add MPX_SPEC.
3774 * doc/invoke.texi (-fcheck-pointer-boudns): Document
3775 possible issues with '-z bndplt' support in linker.
3777 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
3779 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
3780 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
3781 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
3782 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
3783 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
3785 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
3787 * config/i386/sync.md (UNSPEC_MOVA): Remove.
3788 (atomic_load<mode>): Change operand 0 predicate to
3789 nonimmediate_operand and fix up the destination when needed.
3791 (atomic_loaddi_fpu): Use UNSPEC_LDA.
3792 (atomic_store<mode>): Change operand 1 predicate to
3793 nonimmendate_operand and move the source to register when needed.
3795 (atomic_store<mode>_1): Use UNSPEC_STA.
3796 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
3797 Fix moves from memory operand. Use UNSPEC_STA.
3799 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3801 * expmed.c (strict_volatile_bitfield_p): Check that the access will
3802 not cross a MODESIZE boundary.
3803 (store_bit_field, extract_bit_field): Added assertions in the
3804 strict volatile bitfields code path.
3806 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
3809 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
3810 Increase args array size by one to avoid buffer overflow.
3812 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
3814 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
3816 * ipa-inline.c (edge_badness): Add wrapper penalty.
3817 (sum_callers): Move up.
3818 (inline_small_functions): Set single_caller.
3819 * ipa-inline.h (inline_summary): Add single_caller.
3820 * ipa-split.c (split_function): Set split_part.
3821 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
3822 * cgraph.h (cgraph_node): Add split_part.
3824 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
3827 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
3828 Do not split operands 0 and operands 2 to halfmode.
3829 (atomic_compare_and_swap<mode>): Update for
3830 atomic_compare_and_swap<dwi>_doubleword changes.
3832 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
3834 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
3835 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
3838 2015-03-31 Martin Liska <mliska@suse.cz>
3841 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
3842 has already filled up function summary.
3843 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
3845 2015-03-31 Richard Biener <rguenther@suse.de>
3847 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
3850 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
3852 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
3854 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
3855 (s390_asm_output_function_label): Adapt to new signature of
3856 s390_function_num_hotpatch_hw
3857 Optimise the code generating assembler output.
3858 Add comments to assembler file.
3860 2015-03-31 Richard Biener <rguenther@suse.de>
3863 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
3864 of the noreturn call so it is last and cleanup_control_flow_bb
3865 can do the CFG part.
3867 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
3870 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
3871 same_comdat_group for external symbols.
3872 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
3873 infinite same_comdat_group traversal loop.
3875 2015-03-31 Jakub Jelinek <jakub@redhat.com>
3878 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
3879 automatically to $headers.
3881 2015-03-30 Jakub Jelinek <jakub@redhat.com>
3884 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
3885 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
3887 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
3889 * ipa-prop.c (param_type_may_change_p): Likewise.
3890 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
3891 (remove_unused_scope_block_p): Add in_ctor_dtor_block
3892 argument. Before inlining, preserve
3893 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
3894 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
3896 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
3898 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
3901 * ipa-inline.c (edge_badness): Base denominator on callee's
3904 2015-03-27 Martin Jambor <mjambor@suse.cz>
3907 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
3908 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
3909 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
3910 node_calling_single_call.
3911 * ipa-cp.c (count_callers): New function.
3912 (set_single_call_flag): Likewise.
3913 (initialize_node_lattices): Count callers and set single_flag_call if
3915 (incorporate_penalties): New function.
3916 (good_cloning_opportunity_p): Use it, dump new flags.
3917 (propagate_constants_topo): Set node_within_scc flag if appropriate.
3918 * doc/invoke.texi (ipa-cp-recursion-penalty,
3919 ipa-cp-single-call-pentalty): Document.
3921 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
3924 * symtab.c (symtab_node::get_partitioning_class): Register vars
3926 * varpool.c (symbol_table::output_variables) Do not assemble unefined
3927 decls for non-symbols.
3929 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
3932 * output.h (default_binds_local_p_2): New.
3933 * varasm.c (default_binds_local_p_2): Renamed to ...
3934 (default_binds_local_p_3): This. Don't return true on protected
3935 data symbol if protected data may be external.
3936 (default_binds_local_p): Use default_binds_local_p_3.
3937 (default_binds_local_p_1): Likewise.
3938 (default_binds_local_p_2): New.
3939 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
3940 default_binds_local_p_2 if TARGET_MACHO is undefined.
3942 2015-03-27 Jakub Jelinek <jakub@redhat.com>
3945 * config/i386/i386.c (legitimize_pic_address): If base
3946 is SYMBOL_REF or LABEL_REF using %rip addressing, force
3947 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
3949 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
3952 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
3955 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
3958 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
3959 of optimized out indirect call.
3960 (redirect_to_unreachable): Always build symbol table node for
3961 BUILT_IN_UNREACHABLE
3963 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
3966 * ira-costs.c (record_reg_classes): Process all constraint string
3969 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
3971 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
3975 * config/c6x/constraints.md (S3): New constraint.
3976 * config/c6x/c6x.md (real_jump): Use it.
3978 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
3981 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
3982 do redirection if the call is not optimized out.
3984 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
3987 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
3988 (fchkp-check-incomplete-type): Add LTO.
3989 (fchkp-zero-input-bounds-for-main): Likewise.
3990 (fchkp-first-field-has-own-bounds): Likewise.
3991 (fchkp-narrow-bounds): Likewise.
3992 (fchkp-narrow-to-innermost-array): Likewise.
3993 (fchkp-use-static-bounds): Likewise.
3994 (fchkp-use-static-const-bounds): Likewise.
3995 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
3997 2015-03-27 Marek Polacek <polacek@redhat.com>
3999 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
4001 2015-03-27 Marek Polacek <polacek@redhat.com>
4004 * ubsan.c (ubsan_create_edge): New function.
4005 (instrument_bool_enum_load): Call it.
4006 (instrument_nonnull_arg): Likewise.
4007 (instrument_nonnull_return): Likewise.
4008 (instrument_object_size): Likewise.
4010 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4012 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
4015 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4018 * lto-streamer.h (class lto_location_cache): New.
4019 (struct data_in): Add location_cache.
4020 (lto_input_location): Update prototype.
4021 (stream_input_location_now): New.
4022 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
4023 pointer to location.
4024 (stream_input_location): Update.
4025 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
4026 (warn_odr): Apply location cache before warning.
4027 (lto_input_location): Update prototype.
4028 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
4029 Use stream_input_location_now.
4030 * lto-streamer-in.c (lto_location_cache::current_cache): New static
4032 (lto_location_cache::cmp_loc): New function.
4033 (lto_location_cache::apply_location_cache): New function.
4034 (lto_location_cache::accept_location_cache): New function.
4035 (lto_location_cache::revert_location_cache): New function.
4036 (lto_location_cache::input_location): New function.
4037 (lto_input_location): Do location caching.
4038 (stream_input_location_now): New function.
4039 (input_eh_region, input_struct_function_base): Use
4040 stream_input_location_now.
4041 (lto_data_in_create): use new.
4042 (lto_data_in_delete): Use delete.
4043 * tree-streamer-in.c (unpack_ts_block_value_fields,
4044 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
4045 lto_input_ts_exp_tree_pointers): Update for cached location api.
4047 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4050 * passes.def: Add pass_nothrow.
4051 * ipa-pure-const.c: (pass_data_nothrow): New.
4052 (pass_nothrow): New.
4053 (pass_nothrow::execute): New.
4054 (make_pass_nothrow): New.
4055 * tree-pass.h (make_pass_nothrow): Declare.
4057 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4059 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
4060 edge to change by speculation resolution or redirection.
4061 (edge_set_predicate): Likewise.
4062 (inline_summary_t::duplicate): Likewise.
4063 (remap_edge_summaries): Likewise.
4065 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4067 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
4069 (can_inline_edge_p): Relax option matching for always inline functions.
4071 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
4074 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
4075 Check operand 4 and operand 0 for equality.
4076 (avx512f_vextract<shuffletype>32x4_1_maskm):
4077 Check operand 6 and operand 0 for equality.
4078 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
4080 (vec_extract_hi_<mode>_maskm): Ditto.
4082 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4084 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
4085 dead calls back to live.
4086 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
4088 (cgraph_node::verify_node): ... here; verify only callee edges,
4090 * cif-code.def (CILK_SPAWN): New code.
4092 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
4094 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
4095 (edge_set_predicate): Use it to mark unreachable edges.
4096 (inline_summary_t::duplicate): Remove unnecesary code.
4097 (remap_edge_summaries): Likewise.
4098 (dump_inline_summary): Report contains_cilk_spawn.
4099 (compute_inline_parameters): Compute contains_cilk_spawn.
4100 (inline_read_section, inline_write_summary): Stream
4101 contains_cilk_spawn.
4102 * ipa-inline.c (can_inline_edge_p): Do not touch
4103 DECL_STRUCT_FUNCTION that may not be available;
4104 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
4105 remove check for callee_fun->can_throw_non_call_exceptions and
4106 replace it by optimization attribute check; check for flag_exceptions.
4107 * ipa-inline-transform.c (inline_call): Maintain
4108 DECL_FUNCTION_PERSONALITY
4109 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
4111 2015-03-26 Jakub Jelinek <jakub@redhat.com>
4113 PR tree-optimization/65551
4114 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
4115 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
4117 2015-03-26 Richard Biener <rguenther@suse.de>
4120 * tree-cfg.c (verify_gimple_call): Do not require a call to
4121 have no LHS if it wasn't recognized as control altering yet.
4123 2015-03-26 Jakub Jelinek <jakub@redhat.com>
4125 PR tree-optimization/64715
4126 * passes.def: Add another instance of pass_object_sizes before ccp1.
4127 * tree-object-size.c (pass_object_sizes::execute): In
4128 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
4129 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
4130 __bos result and the computed constant. Remove redundant
4131 checks, obsoleted by gimple_call_builtin_p test.
4133 * var-tracking.c (variable_tracking_main_1): Don't track
4134 variables for targetm.no_register_allocation targets.
4136 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
4138 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
4139 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
4141 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
4144 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
4145 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
4146 0.0 is correctly setup.
4147 (extenddftf2_internal): Likewise.
4149 2015-03-25 Sebastian Pop <s.pop@samsung.com>
4151 PR tree-optimization/65177
4152 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
4154 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
4155 edges not adjacent on the path to the original code.
4157 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
4160 * doc/install.texi (Building a native compiler): Document new
4161 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
4162 configuration assumes that the host supports the linker plugin.
4164 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
4167 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
4168 chain for generated call.
4170 2015-03-25 Richard Biener <rguenther@suse.de>
4172 * passes.c (pass_manager::execute_early_local_passes): Guard
4173 execution of pass_chkp_instrumentation_passes with
4174 flag_check_pointer_bounds.
4175 (pass_chkp_instrumentation_passes::gate): Likewise.
4177 2015-03-25 Martin Liska <mliska@suse.cz>
4179 PR tree-optimization/65538
4180 * symbol-summary.h (function_summary::~function_summary):
4181 Relese memory for allocated summaries.
4182 (function_summary::release): New function.
4184 2015-03-25 Jakub Jelinek <jakub@redhat.com>
4187 * lto-streamer-out.c (DFS::worklist): New struct.
4188 (DFS::worklist_vec): New data member.
4189 (DFS::next_dfs_num): Remove.
4190 (DFS::DFS): Rewritten using worklist instead of recursion,
4191 using most of code from DFS::DFS_write_tree.
4192 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
4193 pass it to DFS_write_tree calls.
4194 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
4195 quick initial checks push it into worklist_vec and return.
4197 2015-03-25 Richard Biener <rguenther@suse.de>
4200 * genmatch.c (expr::gen_transform): Re-write to avoid
4203 2015-03-25 Bin Cheng <bin.cheng@arm.com>
4205 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
4207 2015-03-25 Bin Cheng <bin.cheng@arm.com>
4209 * config/arm/arm.opt (print_tune_info): New option.
4210 * config/arm/arm.c (arm_print_tune_info): New function.
4211 (arm_file_start): Call arm_print_tune_info.
4212 * config/arm/arm-protos.h (struct tune_params): Add comment.
4213 * doc/invoke.texi (@item -mprint-tune-info): New item.
4214 (-mtune): mention it in ARM Option Summary.
4216 2015-03-25 DJ Delorie <dj@redhat.com>
4218 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
4221 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
4222 Martin Liska <mliska@suse.cz>
4224 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
4225 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
4226 (sem_item::add_type): New function.
4227 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
4228 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
4229 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
4230 (sem_function::equals_wpa): Fix typo.
4231 * ipa-icf.h (sem_item::add_type): New function.
4232 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
4235 2015-03-24 Jakub Jelinek <jakub@redhat.com>
4237 PR tree-optimization/65533
4238 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
4239 with swapped operands, call vect_free_slp_tree on
4240 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
4243 2015-03-24 Richard Biener <rguenther@suse.de>
4246 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
4247 for fixup if necessary.
4249 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
4251 * doc/extend.texi (Function Attributes): Add @cindex entries
4252 for all attributes and regularize their format. Delete text
4253 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
4254 information about "eightbit_data", "tiny_data", and "model"
4255 variable attributes to the Variable Attributes section. Fix
4256 some obvious typos and copy-editing issues.
4257 (Variable Attributes, Type Attributes): Likewise add/fix
4258 @cindex entries for all attributes.
4260 2015-03-23 Jakub Jelinek <jakub@redhat.com>
4263 * tree-chkp.c (chkp_build_returned_bound): Ignore
4264 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
4266 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
4269 * config/sh/predicates.md (simple_mem_operand,
4270 displacement_mem_operand): Add test for reg.
4271 (short_displacement_mem_operand): Test for displacement_mem_operand
4272 before invoking sh_disp_addr_displacement.
4273 * config/sh/constraints.md (Sdd, Sra): Simplify.
4274 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
4275 Remove redundant displacement_mem_operand tests.
4277 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
4280 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
4281 the same -mmcu=MCU more than once.
4283 2015-03-23 Jakub Jelinek <jakub@redhat.com>
4286 * ipa-devirt.c: Remove duplicate demangle.h include.
4289 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
4291 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
4292 REG_POINTER on *destptr after adjusting it for prologue size.
4295 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
4296 ultimate_alias_target ()->order ints instead of
4297 ultimate_alias_target () pointers.
4299 2015-03-23 Richard Biener <rguenther@suse.de>
4301 PR tree-optimization/65518
4302 * tree-vect-stmts.c (vectorizable_load): Reject single-element
4303 interleaving cases we generate absymal code for.
4305 2015-03-23 Richard Biener <rguenther@suse.de>
4307 PR tree-optimization/65494
4308 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
4310 (vect_analyze_slp_instance): But do that here, always and once.
4312 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4314 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
4315 adding T or multiplying by T+1 and subracting T.
4317 2015-03-22 Jeff Law <law@redhat.com>
4319 PR rtl-optimization/64317
4320 * Makefile.in (OBJS): Add gcse-common.c
4321 * gcse.c: Include gcse-common.h
4322 (struct modify_pair_s): Move structure definition to gcse-common.h
4323 (compute_transp): Move function to gcse-common.c.
4324 (canon_list_insert): Similarly.
4325 (record_last_mem_set_info): Break out some code and put it into
4326 gcse-common.c. Call into the new common code.
4327 (compute_local_properties): Pass additional arguments to compute_transp.
4328 * postreload-gcse.c: Include gcse-common.h and df.h
4329 (modify_mem_list_set, blocks_with_calls): New variables.
4330 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
4331 (get_bb_avail_insn): Pass in the expression index too.
4332 (alloc_mem): Allocate memory for the new bitmaps and lists.
4333 (free_mem): Free memory for the new bitmaps and lists.
4334 (insert_expr_in_table): Record a bitmap index for each entry we
4336 (record_last_mem_set_info): Call into common code in gcse-common.c.
4337 (get_bb_avail_insn): If no available insn was found in the requested
4338 BB. If BB has a single predecessor, see if the expression is
4339 transparent in BB and available in that single predecessor.
4340 (compute_expr_transp): New wrapper for compute_transp.
4341 (eliminate_partially_redundant_load): Pass expression's bitmap_index
4342 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
4343 (gcse_after_reload_main): If there are elements in the hash table,
4344 then compute transparency for all the elements in the hash table.
4345 * gcse-common.h: New file.
4346 * gcse-common.c: New file.
4348 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
4350 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
4352 (System Headers): Likewise.
4354 (Traditional macros): Likewise.
4355 (Invocation): Likewise.
4356 (Option Index): Likewise.
4357 * doc/cppopts.texi (-M): Likewise.
4358 (-finput-charset): Likewise.
4360 * doc.invoke.texi (AVR Options): Likewise.
4361 (V850 Options): Likewise.
4363 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
4366 * ipa-devirt.c: Include demangle.h
4367 (odr_type_d): Add field rtti_broken.
4368 (odr_subtypes_equivalent_p): Do not require name to match.
4369 (compare_virtual_tables): Fix typo; if type already has ODR violation,
4370 bypass the tests; be ready for function referneces in vtables that are
4371 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
4372 (warn_odr): Give up for nameless types.
4373 (warn_types_mismatch): Report mismatch in mangled names;
4374 report mismatch in anonymous namespaces; look into component types to
4375 give useful error; report when mismatch is dragged in from other ODR
4377 (odr_types_equivalent_p): Match types for being polymorphic; avoid
4378 duplicated diagnostics.
4379 (add_type_duplicate): Reorder checks so more informative ones come
4380 first; fix typo; do not output "the extra base is defined here" when
4382 (BINFO_N_BASE_BINFOS): Relax sanity check.
4384 2015-03-22 Martin Liska <mliska@suse.cz>
4385 Jakub Jelinek <jakub@redhat.com>
4387 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
4388 masks that can potentially include a builtin.
4389 (ix86_add_new_builtins): Introduce fast filter for isa values
4390 that cannot trigger builtin inclusion.
4392 2015-03-22 Martin Liska <mliska@suse.cz>
4394 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
4395 (sem_item::update_hash_by_local_refs): Likewise.
4396 (sem_variable::get_hash): Empty line is fixed.
4397 (sem_item_optimizer::execute): Include adding of hash references.
4398 (sem_item_optimizer::update_hash_by_addr_refs): New function.
4399 (sem_item_optimizer::build_hash_based_classes): Use local hash.
4400 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
4401 (sem_item::update_hash_by_local_refs): Likewise.
4403 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
4406 * ipa-comdats.c (enqueue_references): Walk through thunks.
4407 (ipa_comdats): Likewise.
4408 (set_comdat_group_1): New function.
4410 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
4413 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
4416 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
4417 Gerald Pfeifer <gerald@pfeifer.com>
4419 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
4421 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
4422 Sandra Loosemore <sandra@codesourcery.com>
4424 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
4425 function parameter declaration.
4426 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
4427 Update arguments to nios2_adjust_call_address().
4428 (sibcall_internal): Rename from *sibcall.
4429 (sibcall_value_internal): Rename from *sibcall_value.
4430 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
4431 (nios2_large_got_address): Add target temp reg parameter.
4432 (nios2_got_address): Adjust call to nios2_large_got_address, add
4433 force_reg around it.
4434 (nios2_load_pic_address): Add target temp reg parameter, replace call
4435 to nios2_got_address with corresponding code.
4436 (nios2_legitimize_constant_address): Update call to
4437 nios2_load_pic_address.
4438 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
4439 to use temp reg for PIC loading purposes.
4440 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
4441 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
4442 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
4444 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
4446 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
4447 usage of "the @option{...}".
4448 (-Wopenmp-simd): Likewise.
4449 (-fsanitize-recover): Likewise.
4450 (-fsanitize-undefined-trap-on-error): Likewise.
4452 (tracer-dynamic-coverage-feedback): Likewise.
4453 (reorder-block-duplicate-feedback): Likewise.
4454 (loop-unroll-jam-size): Likewise.
4457 (-mabs=legacy): Likewise.
4458 (-mupper-regs-df): Likewise.
4459 (-mupper-regs-sf): Likewise.
4460 (-mpointers-to-nested-functions): Likewise.
4462 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
4464 * doc/extend.texi (Cilk Plus Builtins): Add markup.
4466 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
4468 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
4469 additional index entries and cross-references.
4470 (-fchkp-check-incomplete-type): Likewise.
4471 (-fchkp-first-field-has-own-bounds): Likewise.
4472 (-fchkp-narrow-to-innermost-array): Likewise.
4473 (-fchkp-use-fast-string-functions): Likewise.
4474 (-fchkp-use-nochk-string-functions): Likewise.
4475 (-fchkp-use-static-const-bounds): Likewise.
4476 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
4477 (-fchkp-instrument-marked-only): Likewise.
4478 (-fchkp-use-wrappers): Likewise.
4479 (-static-libmpx): Likewise.
4480 (-static-libmpxwrappers): Likewise.
4481 * doc/extend.texi (bnd_legacy): Likewise.
4482 (bnd_instrument): Likewise.
4483 (bnd_variable_size): Likewise.
4484 (Pointer Bounds Checker builtins): Likewise.
4486 2015-03-21 Tom de Vries <tom@codesourcery.com>
4488 PR tree-optimization/65458
4489 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
4490 * cgraph.h (cgraph_node): Add parallelized_function field.
4491 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
4492 (input_overwrite_node): Read parallelized_function field.
4493 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
4494 parallelized_function on cgraph_node for child_fn.
4495 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
4496 Remove include of gt-tree-parloops.h.
4497 (parallelized_functions): Remove static variable.
4498 (parallelized_function_p): Rewrite using parallelized_function field of
4500 (create_loop_fn): Remove adding to parallelized_functions.
4501 * Makefile.in (GTFILES): Remove tree-parloops.c
4503 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
4505 PR rtl-optimization/64366
4506 * lra.c (lra_update_insn_regno_info): Consider regs in
4507 CALL_INSN_FUNCTION_USAGE memory.
4509 2015-03-20 Richard Biener <rguenther@suse.de>
4512 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
4513 for type comparison and gcc_checking_assert.
4514 (chrec_fold_plus_poly_poly): Likewise.
4515 (chrec_fold_multiply_poly_poly): Likewise.
4516 (chrec_convert_1): Likewise.
4517 * gimplify.c (gimplify_expr): Remove premature folding of
4518 &X + CST to &MEM[&X, CST].
4520 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
4522 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
4524 (ipa_inline): Recompute inline_failed codes.
4525 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
4526 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
4529 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
4531 PR rtl-optimization/60851
4532 * recog.c (constrain_operands): Accept a pseudo register before reload
4533 for LRA enabled targets.
4535 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4538 * config/rs6000/predicates.md (easy_fp_constant): Remove special
4539 -ffast-math handling that kept non-0 constants live in the RTL
4540 until reload. Remove logic testing the number of instructions it
4541 took to create a constant in a GPR that was never used, due to a
4542 test for soft-float earlier.
4543 (memory_fp_constant): Delete, no longer used.
4545 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
4546 alternatives for loading non-0 constants into GPRs for hard
4547 floating point that is no longer needed due to changes in
4548 easy_fp_constant. Add support for loading 0.0 into GPRs.
4549 (mov<mode>_hardfloat32): Likewise.
4550 (mov<mode>_hardfloat64): Likewise.
4551 (mov<mode>_64bit_dm): Likewise.
4552 (movtd_64bit_nodm): Likewise.
4553 (pre-reload move FP constant define_split): Delete define_split,
4554 since it is no longer used.
4555 (extenddftf2_internal): Remove GHF constraints that are not valid
4558 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
4560 PR rtl-optimization/63491
4561 * lra-constraints.c (check_and_process_move): Use src instead of
4562 sreg. Remove some dead code.
4564 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
4567 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
4568 (sem_variable::merge): Likewise.
4570 2015-03-19 Martin Liska <mliska@suse.cz>
4573 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
4574 all fields of cgraph_thunk_info.
4576 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
4578 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
4579 clone instrumented thunks.
4581 2015-03-19 Richard Biener <rguenther@suse.de>
4584 2015-03-10 Richard Biener <rguenther@suse.de>
4587 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
4588 * tree-ssa-coalesce.c: Include timevar.h.
4589 (attempt_coalesce): Handle graph being NULL.
4590 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
4591 Split out abnormal coalescing to ...
4592 (perform_abnormal_coalescing): ... this function.
4593 (coalesce_ssa_name): Perform abnormal coalescing without computing
4595 (verify_ssa_coalescing_worker): New function.
4596 (verify_ssa_coalescing): Likewise.
4598 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4599 Jakub Jelinek <jakub@redhat.com>
4602 * tsan.c (instrument_gimple): Clear tail call flag on
4605 2015-03-19 Jakub Jelinek <jakub@redhat.com>
4608 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
4609 call in the return bb.
4610 (find_split_points): Add RETURN_BB argument, don't call
4612 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
4613 if true append TSAN_FUNC_EXIT internal call after the call to
4614 the split off function.
4615 (execute_split_functions): Call find_return_bb here.
4616 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
4617 Adjust find_split_points and split_function calls.
4619 2015-03-18 DJ Delorie <dj@redhat.com>
4621 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
4622 (iorqi3_virt): Likewise.
4624 2015-03-18 Tom de Vries <tom@codesourcery.com>
4626 * tree-parloops.c (parallelize_loops): Make static.
4627 * tree-parloops.h (parallelize_loops): Remove extern declaration.
4629 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
4633 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
4635 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
4636 condition would be removed due to undefined behaviour.
4638 2015-03-18 Martin Liska <mliska@suse.cz>
4641 * cgraph.c (cgraph_node::get_create): Remove unnecessary
4642 xstrdup_for_dump wrapper.
4643 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
4645 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
4646 with xstrdup_for_dump.
4647 (sem_variable::equals): Likewise.
4648 (sem_item_optimizer::read_section): Use symtab_node::name instead of
4650 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
4651 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
4652 symtab_node::asm_name with xstrdup_for_dump.
4653 (congruence_class::dump): Use symtab_node::name instead of
4655 * ipa-icf.h (symtab_node::name): Remove.
4656 (symtab_node::asm_name): Likewise.
4658 2015-03-18 Jakub Jelinek <jakub@redhat.com>
4660 PR tree-optimization/65450
4661 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
4663 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
4664 it instead of duplicate_ssa_name_ptr_info.
4667 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
4669 2015-03-18 Richard Biener <rguenther@suse.de>
4671 * tree-data-ref.h (struct access_matrix): Remove.
4672 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
4673 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
4674 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
4675 (am_vector_index_for_loop): Likewise.
4676 (struct data_reference): Remove access_matrix member.
4677 (DR_ACCESS_MATRIX): Remove.
4678 (lambda_vector_new): Add comment.
4679 (lambda_matrix_new): Use XOBNEWVEC.
4681 2015-03-18 Richard Biener <rguenther@suse.de>
4683 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
4684 (pass_ch::execute): Cleanup the CFG only if we did sth.
4685 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
4687 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4689 * expmed.c (synth_mult): Use std::swap instead of manually
4690 swapping algorithms.
4692 2015-03-18 Jakub Jelinek <jakub@redhat.com>
4695 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
4697 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
4700 * config/avr/avr.opt (-nodevicelib): New option.
4701 * doc/invoke.texi (AVR Options): Document it.
4702 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
4703 libgcc.a, libc.a, libm.a.
4704 * config/avr/specs.h: Same.
4705 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
4706 which don't (directly) depend on the device. Print more help.
4707 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
4708 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
4709 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
4711 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
4712 for specs file name.
4713 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
4714 * config/avr/avr-mcus.def: Adjust initializers and comments.
4716 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
4718 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
4719 DECL_ONE_ONLY to check if decl is one only.
4720 * ipa-split.c (consider_split): Limit splitt of one only functions.
4722 2015-03-16 Jakub Jelinek <jakub@redhat.com>
4724 PR tree-optimization/65427
4725 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
4727 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
4729 2015-03-16 Marek Polacek <polacek@redhat.com>
4731 * cgraph.h (add_new_static_var): Remove declaration.
4732 * varpool.c (add_new_static_var): Remove function.
4734 2015-03-16 Jakub Jelinek <jakub@redhat.com>
4736 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
4737 instead of vec<tree> * with vec_alloc and release for args.
4741 * omp-low.c (delete_omp_context): Only splay_tree_delete
4742 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
4743 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
4745 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
4748 * cfgexpand.c (align_base): New function.
4749 (alloc_stack_frame_space): Call it.
4750 (expand_stack_vars): Align prev_frame to be sure
4751 data->asan_vec elements aligned properly.
4753 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
4756 * expr.c (store_field): Do not do a direct block copy if the source is
4757 a PARALLEL with BLKmode.
4759 2015-03-16 Tom de Vries <tom@codesourcery.com>
4763 2015-03-12 Tom de Vries <tom@codesourcery.com>
4765 PR rtl-optimization/64895
4766 * lra-lives.c (check_pseudos_live_through_calls): Use
4767 actual_call_used_reg_set instead of call_used_reg_set, if available.
4769 2015-03-16 Alan Modra <amodra@gmail.com>
4772 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
4773 Modify Z->r bswapdi splitter to use dest in place of scratch.
4774 In r->Z and Z->r bswapdi splitter rename word_high, word_low
4775 to word1, word2 and rearrange logic to suit.
4776 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
4777 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
4778 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
4779 Add one '?' on r->r. Modify Z->r splitter to avoid need for
4782 2015-03-14 Jakub Jelinek <jakub@redhat.com>
4784 PR tree-optimization/65369
4785 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
4786 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
4787 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
4789 PR tree-optimization/65418
4790 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
4791 are casts in the first PLUS_EXPR operand, ensure tbias and
4792 *totallowp are in the inner type.
4794 PR rtl-optimization/65401
4795 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
4796 argument. If true, adjust_address_nv of x with big-endian
4797 correction for the mode widening to GET_MODE (y).
4798 (make_field_assignment): Don't do MEM mode widening here.
4799 Use MEM_P instead of GET_CODE == MEM.
4801 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
4803 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
4806 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4809 * config/arm/arm.c (arm_gen_constant, AND case): Use
4810 ARM_SIGN_EXTEND when constructing AND mask.
4812 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
4814 * graph.c (print_graph_cfg): Make function names visible and append
4815 parenthesis to it. Also make groups of basic blocks belonging to the
4816 same function visible.
4818 2015-03-12 Richard Biener <rguenther@suse.de>
4821 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
4822 to avoid quadratic behavior with inline expansion splitting blocks.
4823 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
4824 with the successor if the predecessor will be merged with it.
4825 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
4826 entry block with its successor.
4828 2015-03-13 Richard Biener <rguenther@suse.de>
4831 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
4832 (cleanup_tree_cfg_1): Do not call it.
4833 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
4834 (fixup_noreturn_call): Mark the stmt as control altering.
4835 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
4837 (pass_data_fixup_cfg): Produce a dump file.
4838 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
4839 (need_noreturn_fixup): New global.
4840 (pass_dominator::execute): Fixup queued noreturn calls.
4841 (optimize_stmt): Queue calls that became noreturn for fixup.
4842 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
4843 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
4844 (el_to_fixup): New global.
4845 (eliminate_dom_walker::before_dom_childre): Queue calls that
4846 became noreturn for fixup.
4847 (eliminate): Fixup queued noreturn calls.
4848 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
4849 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
4850 (substitute_and_fold_dom_walker::before_dom_children): Queue
4851 alls that became noreturn for fixup.
4852 (substitute_and_fold): Fixup queued noreturn calls.
4854 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
4856 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
4857 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
4858 are building; for methods check ODR type of class they belong to if
4859 they may lead to a polymorphic call.
4860 (sem_function::compare_polymorphic_p): Be bit smarter about testing
4861 when function may lead to a polymorphic call.
4862 (sem_function::compare_type_list): Remove.
4863 (sem_variable::equals): Update use of compatible_types_p.
4864 (sem_variable::parse_tree_refs): Remove.
4865 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
4867 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
4869 (func_checker::compatible_polymorphic_types_p): Break out from ...
4870 (unc_checker::compatible_types_p): ... here.
4871 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
4873 (unc_checker::compatible_types_p): Update.
4874 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
4877 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4879 PR rtl-optimization/65235
4880 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
4881 When first element of vec_concat is const_int, calculate its size
4882 using second element.
4884 2015-03-12 Richard Biener <rguenther@suse.de>
4887 * fold-const.c (operand_equal_p): Fix ordering of resetting
4888 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
4890 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
4892 * config/s390/s390.c (s390_reorg): Move code to output nops after label
4894 (s390_asm_output_function_label): Likewise.
4895 * config/s390/s390.c (s390_asm_output_function_label):
4896 Fix function label alignment with -mhtopatch.
4897 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
4898 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
4899 ("nop_2_byte"): New define_insn.
4900 ("nop_4_byte"): Likewise.
4901 ("nop_6_byte"): Likewise.
4902 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
4903 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
4905 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
4908 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
4911 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
4914 * toplev.c (process_options): Restrict Pointer Bounds Checker
4915 usage with Address Sanitizer.
4917 2015-03-12 Richard Biener <rguenther@suse.de>
4919 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
4921 * omp-low.c (expand_omp_taskreg): Split block before removing
4923 (expand_omp_target): Likewise.
4924 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
4925 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
4926 stmt to split_block.
4928 2015-03-12 Tom de Vries <tom@codesourcery.com>
4930 PR rtl-optimization/64895
4931 * lra-lives.c (check_pseudos_live_through_calls): Use
4932 actual_call_used_reg_set instead of call_used_reg_set, if available.
4934 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
4936 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
4937 (cgraph_node::remove): Likewise.
4938 (cgraph_node::get_untransformed_body): Likewise.
4939 * varpool.c (varpool_node::remove): Likewise.
4940 (varpool_node::get_constructor): Add sanity check.
4942 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
4944 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
4946 (-fabi-compat-version): Likewise.
4947 (-ffriend-injection): Likewise.
4948 (-Wdeclaration-after-statement): Likewise.
4949 (-fomit-frame-pointer): Likewise.
4950 (-ftree-coalesce-inlined-vars): Likewise.
4951 (-fvisibility=): Likewise.
4952 * doc/extend.texi (Typeof): Likewise.
4953 (Zero Length): Likewise.
4954 (Escaped Newlines): Likewise.
4955 (Compound Literals): Likewise.
4956 (Function Attributes): Likewise.
4957 (Label Attributes): Likewise.
4958 (Type Attributes): Likewise.
4959 (Function Names): Likewise.
4960 (Other Builtins): Likewise.
4961 (Function Specific Option Pragmas): Likewise.
4962 (C++ Interface): Likewise.
4964 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
4966 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
4968 2015-03-11 Marek Polacek <polacek@redhat.com>
4970 PR tree-optimization/65388
4971 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
4973 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
4976 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
4977 * configure: Regenerate.
4978 * config.in: Regenerate.
4979 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
4980 [-mn-flash]: Document it.
4981 [__AVR_ARCH__]: Document avrtiny.
4983 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
4984 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
4985 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
4987 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4989 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
4991 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4994 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
4995 allow reloads of PLUS in floating point/VSX registers.
4997 2015-03-11 Junmo Park <junmoz.park@samsung.com>
4999 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
5001 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
5003 2015-03-11 Richard Biener <rguenther@suse.de>
5005 PR tree-optimization/65310
5006 * tree-sra.c (build_ref_for_offset): Also preserve larger
5009 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
5011 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
5013 2015-03-10 Jakub Jelinek <jakub@redhat.com>
5016 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
5018 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
5020 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
5022 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
5023 (sem_function::equals_wpa): ... here.
5025 2015-03-10 Marek Polacek <polacek@redhat.com>
5026 Jakub Jelinek <jakub@redhat.com>
5029 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
5030 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
5033 2015-03-10 Jakub Jelinek <jakub@redhat.com>
5036 * config/rs6000/t-linux: For powerpc64* target set
5037 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
5039 2015-03-10 Richard Biener <rguenther@suse.de>
5042 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
5043 for redirect_all_calls.
5045 2015-03-10 Marek Polacek <polacek@redhat.com>
5047 * gdbinit.in (pcfun): Define and document.
5049 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
5051 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
5052 of libgomp-plugin.h.
5053 (find_target_compiler): Support a case when the path to gcc is
5054 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
5055 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
5056 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
5058 (main): Use GCC_INSTALL_NAME as target_driver_name.
5059 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
5061 (mkoffload.o): Remove obsolete include path and defines.
5062 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
5064 2015-03-10 Richard Biener <rguenther@suse.de>
5067 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
5068 * tree-ssa-coalesce.c: Include timevar.h.
5069 (attempt_coalesce): Handle graph being NULL.
5070 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
5071 Split out abnormal coalescing to ...
5072 (perform_abnormal_coalescing): ... this function.
5073 (coalesce_ssa_name): Perform abnormal coalescing without computing
5075 (verify_ssa_coalescing_worker): New function.
5076 (verify_ssa_coalescing): Likewise.
5078 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
5081 * config.gcc (extra_options) [avr]: Remove.
5082 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
5083 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
5084 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
5086 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
5087 (-mmcu=): Add Var and MissingArgError properties.
5089 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
5090 * config/avr/t-multilib: Regenerate.
5091 * config/avr/specs.h: New file.
5092 * config/avr/driver-avr.c: New file.
5093 * config/avr/genopt.sh: Remove file.
5094 * config/avr/avr-tables.opt: Remove file.
5095 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
5096 * config/avr/avr-c.c: Same.
5098 (avr_current_device): Remove proto.
5099 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
5100 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
5101 (EXTRA_SPEC_FUNCTIONS): Define.
5102 (avr_devicespecs_file): New specs function proto.
5103 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
5104 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
5105 (avr_current_device): Remove definition and usage.
5106 (avr_set_core_architecture): New static function.
5107 (avr_option_override): Use it.
5108 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
5109 (mcu_name): New static array.
5110 (comparator, avr_archs_str, avr_mcus_str): New static functions.
5111 (avr_inform_devices, avr_inform_core_architectures): New functions.
5112 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
5113 (avrlibc.h) [WITH_AVRLIBC]: Include.
5114 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
5115 (print_mcu): Rewrite from scratch.
5116 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
5117 Forward to avr-specific specs defined in device-specs file.
5118 * config/avr/t-avr (driver-avr.o): New rule.
5119 (avr-devices.o): Depend on avr-arch.h.
5120 (avr-mcus): No more depend on avr-tables.opt.
5121 (avr-tables.opt): Remove rule.
5122 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
5124 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
5126 * c-family/c.opt (fchkp-use-wrappers): New.
5127 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
5128 (chkp_wrap_function): New.
5129 (chkp_build_instrumented_fndecl): Support wrapped
5131 * doc/invoke.texi (-fcheck-pointer-bounds): New.
5132 (-fchkp-check-incomplete-type): New.
5133 (-fchkp-first-field-has-own-bounds): New.
5134 (-fchkp-narrow-bounds): New.
5135 (-fchkp-narrow-to-innermost-array): New.
5136 (-fchkp-optimize): New.
5137 (-fchkp-use-fast-string-functions): New.
5138 (-fchkp-use-nochk-string-functions): New.
5139 (-fchkp-use-static-bounds): New.
5140 (-fchkp-use-static-const-bounds): New.
5141 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
5142 (-fchkp-check-read): New.
5143 (-fchkp-check-write): New.
5144 (-fchkp-store-bounds): New.
5145 (-fchkp-instrument-calls): New.
5146 (-fchkp-instrument-marked-only): New.
5147 (-fchkp-use-wrappers): New.
5148 (-static-libmpx): New.
5149 (-static-libmpxwrappers): New.
5151 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
5153 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
5154 (CHKP_SPEC): Add wrappers library.
5155 * c-family/c.opt (static-libmpxwrappers): New.
5157 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
5159 * config/i386/linux-common.h (LIBMPX_LIBS): New.
5162 * gcc.c (CHKP_SPEC): New.
5163 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
5164 * c-family/c.opt (static-libmpx): New.
5166 2015-03-10 Richard Biener <rguenther@suse.de>
5169 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
5171 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
5172 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
5173 (cgraph_add_edge_to_call_site_hash): Likewise.
5174 (cgraph_node::get_edge): Likewise.
5175 (cgraph_edge::set_call_stmt): Likewise.
5176 (cgraph_edge::remove_caller): Likewise.
5178 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
5180 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
5181 (callee_saved_gpr_regs_size): ... this.
5182 (callee_saved_regs_first_regno): Rename to ...
5183 (callee_saved_first_gpr_regno): ... this.
5184 (callee_saved_regs_last_regno) Rename to ...
5185 (callee_saved_last_gpr_regno): ... this.
5186 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
5188 (nds32_initial_elimination_offset): Likewise.
5189 (nds32_expand_prologue): Likewise.
5190 (nds32_expand_epilogue): Likewise.
5191 (nds32_expand_prologue_v3push): Likewise.
5192 (nds32_expand_epilogue_v3pop): Likewise.
5193 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
5194 Adjust renamed variables.
5195 (nds32_output_stack_pop): Likewise.
5197 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
5199 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
5202 2015-03-10 Jakub Jelinek <jakub@redhat.com>
5204 PR rtl-optimization/65321
5205 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
5207 * var-tracking.c (use_narrower_mode): Likewise.
5209 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
5211 PR tree-optimization/65355
5212 * varasm.c (notice_global_symbol): Do not produce RTL.
5213 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
5215 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
5216 check for section anchors.
5218 2015-03-10 Alan Modra <amodra@gmail.com>
5221 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
5222 to be single-arch by default. Set cpu_is_64bit for powerpc64
5223 given --with-cpu=native.
5224 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
5225 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
5227 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
5228 rs6000_isa_flags rather than TARGET_64BIT.
5230 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
5231 Kaz Kojima <kkojima@gcc.gnu.org>
5233 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
5235 2015-03-09 Jakub Jelinek <jakub@redhat.com>
5238 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
5239 on a TREE_BINFO, instead use BINFO_TYPE.
5241 2015-03-09 Richard Biener <rguenther@suse.de>
5244 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
5245 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
5246 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
5247 of that. When comparing dereferences compare alignment.
5248 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
5250 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
5252 * ipa-inline-analysis.c (check_callers): Check
5253 node->can_remove_if_no_direct_calls_and_refs_p.
5254 (growth_likely_positive): Reorganize to call
5255 can_remove_if_no_direct_calls_p later.
5256 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
5257 will_be_removed_from_program_if_no_direct_calls_p): Add
5258 will_inline parameter.
5259 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
5260 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
5261 Handle inliner case correctly.
5263 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
5265 PR tree-optimization/63743
5266 * cfgexpand.c (reorder_operands): Also reorder if only second operand
5267 had its definition forwarded by TER.
5269 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
5272 * ipa-utils.h (types_odr_comparable): Add strict argument.
5273 * ipa-devirt.c: Fix whitespace;
5274 (odr_hasher): Remove.
5275 (odr_name_hasher, odr_vtable_hasher): New hashers.
5276 (can_be_name_hashed_p): New predicate.
5277 (hash_type_name): remove.
5278 (hash_odr_name): New.
5279 (odr_name_hasher::hash): new.
5280 (can_be_vtable_hashed_p): New.
5281 (hash_odr_vtable): New.
5282 (odr_vtable_hasher::hash): New.
5283 (types_same_for_odr): Add strict parameter.
5284 (types_odr_comparable): Likewise.
5285 (odr_name_hasher::equal): New.
5286 (odr_vtable_hasher::equal): New.
5287 (odr_name_hasher::remove): New.
5288 (odr_hash_type): Change to hash_table<odr_name_hasher>.
5289 (odr_vtable_hash_type): New.
5290 (odr_vtable_hash): New.
5291 (odr_subtypes_equivalent_p): Do strict comparsion.
5292 (add_type_duplicate): Merge type names; cleanup; avoid type
5294 (register_odr_type): Initialize vtable hash.
5295 (build_type_inheritance_graph): Likewise
5296 (get_odr_type): Reorg to use two hashes.
5297 (dump_possible_polymorphic_call_targets): Move sanity check after debug
5299 (ipa_devirt): Dump type_inheritance_graph.
5300 (types_same_for_odr): Add strict mode.
5302 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
5305 * cgraph.h (symtab_node): Add definition_alignment,
5306 can_increase_alignment_p and increase_alignment.
5307 * symtab.c (symtab_node::can_increase_alignment_p,
5308 increase_alignment_1, symtab_node::increase_alignment,
5309 symtab_node::definition_alignment): New.
5310 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
5311 can_increase_alignment_p.
5312 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
5313 * tree-vect-stmts.c (ensure_base_align): Likewise.
5314 * varasm.c (function_section_1): Use definition_alignment.
5315 (assemble_start_function): Likewise.
5316 (emit_local): likewise.
5317 (build_constant_desc): Likewsie.
5318 (output_constant_def_contents): Likewise.
5319 (place_block_symbol): Likewise.
5320 (output_object_block): Likewise.
5322 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
5325 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
5326 when outputting debug.
5328 2015-03-07 Marek Polacek <polacek@redhat.com>
5329 Martin Uecker <uecker@eecs.berkeley.edu>
5332 * doc/invoke.texi: Update description of -fsanitize=bounds.
5334 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
5336 * tree-ssa-phiopt.c (neg_replacement): Remove.
5337 (tree_ssa_phiopt_worker): Remove negate optimization.
5339 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
5342 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
5344 2015-03-06 Richard Biener <rguenther@suse.de>
5347 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
5348 and liveout_obstack members.
5349 (calculate_live_on_exit): Remove.
5350 (calculate_live_ranges): Change declaration.
5351 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
5352 (new_tree_live_info): Adjust.
5353 (calculate_live_ranges): Delete livein when not wanted.
5354 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
5355 Deal with partly deleted live info.
5356 (loe_visit_block): Remove temporary bitmap by using
5357 bitmap_ior_and_compl_into.
5358 (live_worklist): Adjust accordingly.
5359 (calculate_live_on_exit): Make static.
5360 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
5361 we do not need livein.
5363 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
5365 * real.c (real_from_string): Fix typo in assertion.
5367 2015-03-06 Alex Velenko <alex.velenko@arm.com>
5369 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
5372 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
5374 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
5376 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
5379 * lra-assigns.c (find_hard_regno_for): Rename to
5380 find_hard_regno_for_1. Add a new parameter.
5381 (find_hard_regno_for): New function using find_hard_regno_for_1.
5383 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5385 PR rtl-optimization/65067
5386 * expmed.c (store_bit_field, extract_bit_field): Reworked the
5387 strict volatile bitfield handling.
5389 2015-03-05 Martin Liska <mliska@suse.cz>
5392 * ipa-icf.c (sem_variable::equals): Compare variables types.
5394 2015-03-05 Richard Henderson <rth@redhat.com>
5397 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
5398 correctly check weak symbol binding.
5400 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
5403 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
5406 2015-03-05 Martin Liska <mliska@suse.cz>
5408 * ipa-inline.c (inline_small_functions): Set default value to
5409 prevent warning during bootstrap.
5410 * tree.h: Add pragma guard that ignores false positives during
5413 2015-03-05 Richard Biener <rguenther@suse.de>
5415 PR tree-optimization/65310
5416 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5417 Properly preserve alignment of the base of the access.
5419 2015-03-05 Richard Biener <rguenther@suse.de>
5422 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
5423 Compare dependence info.
5425 2015-03-05 Richard Biener <rguenther@suse.de>
5428 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
5430 (walk_ssa_copies): Revert last chage. Instead do not walk
5431 SSA names registered for SSA update.
5433 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
5436 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
5437 vtable references for their containing type.
5438 (sem_function::equals_wpa): Compare TYPE_RESTRICT
5439 and type attributes.
5441 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
5443 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
5445 * stor-layout.c (finalize_record_size): Revert latest change.
5447 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
5449 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
5451 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
5453 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
5454 for correct comdat handling.
5455 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
5457 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
5458 (used_from_object_file_p_worker): Remove.
5459 (cgraph_node::only_called_directly_or_alised): Add
5460 used_from_object_file_p.
5461 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
5462 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
5463 can_remove_if_no_direct_calls_and_refs_p.
5465 2015-03-04 Nick Clifton <nickc@redhat.com>
5467 * config/rl78/rl78.h (enum reg_class): Remove real registers from
5468 General register class.
5469 * config/rl78/rl78-real.md: Replace general register constraints
5470 with real+virtual register constraints.
5472 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5474 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
5475 from checking for -mhtm option.
5477 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
5479 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
5480 (struct ipa_sra_check_caller_data): Add has_thunk field.
5481 (ipa_sra_check_caller): Check for thunk.
5482 (ipa_sra_preliminary_function_checks): Give up on function with
5484 (ipa_early_sra): Use call_for_symbol_and_aliases.
5486 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
5489 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
5490 called for __stack_chk_guard symbol.
5492 2015-03-03 DJ Delorie <dj@redhat.com>
5494 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
5496 (*addhi3_real): Likewise.
5497 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
5498 pattern to match incrementing memory.
5499 * config/rl78/predicates.md (rl78_1_2_operand): New.
5500 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
5501 it's the same and only mem.
5502 (rl78_alloc_physical_registers_op2): If there's effectively only
5503 one MEM, transcode it into HL.
5504 (rl78_far_p): Reject addresses that aren't legitimate.
5506 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
5508 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
5511 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
5513 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
5515 Implement call0 ABI for xtensa
5516 * config/xtensa/constraints.md ("a" constraint): Include stack
5517 pointer in case of call0 ABI.
5518 ("q" constraint): Make empty in case of call0 ABI.
5519 ("D" constraint): Include stack pointer in case of call0 ABI.
5520 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
5521 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
5523 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
5525 (xtensa_regno_to_class): Make it a local variable in the
5526 function xtensa_regno_to_class.
5527 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
5528 macro, function prototype and implementation.
5529 (reg_nonleaf_alloc_order): Make it a local variable in the
5530 function order_regs_for_local_alloc.
5531 (xtensa_conditional_register_usage): New function.
5532 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
5533 (xtensa_valid_move): Allow direct moves to stack pointer
5534 register in call0 ABI.
5535 (xtensa_setup_frame_addresses): Only spill register windows in
5537 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
5538 call0 ABI respectively.
5539 (xtensa_function_arg_1): Only mark a7 register for copying in
5541 (xtensa_call_save_reg): New function.
5542 (compute_frame_size): Add space for callee saved register
5543 storage to the frame size in call0 ABI.
5544 (xtensa_expand_prologue): Generate code to set up stack frame
5545 and save callee-saved registers in call0 ABI.
5546 (xtensa_expand_epilogue): New function.
5547 (xtensa_set_return_address): New function.
5548 (xtensa_return_addr): Calculate return address in call0 ABI.
5549 (xtensa_builtin_saveregs): Only mark a7 register for copying and
5550 emit copying code in windowed ABI.
5551 (order_regs_for_local_alloc): Add preferred register allocation
5552 order for non-leaf function in call0 ABI.
5553 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
5554 (xtensa_asm_trampoline_template): Add trampoline generation for
5556 (xtensa_trampoline_init): Add trampoline initialization for
5558 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
5560 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
5561 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
5562 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
5563 ABI call-used registers.
5564 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
5565 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
5567 (REG_CLASS_CONTENTS): Include all registers into the preferred
5568 reload registers set, adjust the set in the
5569 xtensa_conditional_register_usage.
5570 (xtensa_regno_to_class): Drop variable declaration.
5571 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
5573 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
5575 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
5576 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
5577 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
5578 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
5579 location in call0 ABI.
5580 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
5581 stack adjustment size when handling exception.
5582 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
5583 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
5585 ("return" pattern): Generate ret.n/ret in call0 ABI.
5586 ("epilogue" pattern): Expand epilogue.
5587 ("nonlocal_goto" pattern): Use default in call0 ABI.
5588 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
5589 emit eh_set_a0_* depending on ABI.
5590 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
5591 ("eh_set_a0_call0", "blockage"): New patterns.
5593 2015-03-03 Martin Liska <mliska@suse.cz>
5596 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
5598 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5601 * config/rs6000/rs6000-tables.opt: Regenerate table.
5603 2015-03-03 Renlin Li <renlin.li@arm.com>
5605 * doc/md.texi (@item ^): Change ? into ^.
5607 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
5609 * doc/tm.texi: Regenerated.
5611 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
5613 * builtins.c (expand_builtin_return_addr): Add
5614 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
5616 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
5618 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
5620 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
5622 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
5625 2015-03-03 Martin Jambor <mjambor@suse.cz>
5626 Eric Botcazou <ebotcazou@adacore.com>
5628 * tree-sra.c (ipa_sra_check_caller_data): New type.
5629 (has_caller_p): Removed.
5630 (ipa_sra_check_caller): New function.
5631 (ipa_sra_preliminary_function_checks): Use it.
5633 2015-03-03 Martin Liska <mliska@suse.cz>
5635 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
5636 instead of if branch.
5638 2015-03-03 Martin Liska <mliska@suse.cz>
5641 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
5643 2015-03-23 Jeff Law <law@redhat.com>
5645 PR tree-optimization/65241
5646 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
5647 hash table if INSERT is true.
5649 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
5652 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
5654 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
5657 * config/avr/avr.c (context.h, tree-pass.h): Include them.
5658 (avr_pass_data_recompute_notes): New static variable.
5659 (avr_pass_recompute_notes): New class.
5660 (avr_register_passes): New static function.
5661 (avr_option_override): Call it.
5663 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
5665 Fix various problems with specs file generation.
5668 * config.gcc (extra_gcc_objs) [avr]: Remove.
5669 * config/avr/driver-avr.c: Remove file.
5670 * config/avr/t-avr (driver-avr.o): Remove rule.
5671 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
5672 INCLUDES to build. Depend on TM_H.
5673 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
5674 build warnings. Fix non-matching types and non-existing %-codes.
5676 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
5677 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
5678 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
5679 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
5680 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
5681 (LIBGCC_SPEC): Remove definitions.
5683 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
5685 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
5686 to create a register in testing mode.
5688 2015-03-03 Martin Liska <mliska@suse.cz>
5689 Jan Hubicka <hubicka@ucw.cz>
5692 * cgraph.c (cgraph_node::has_thunk_p): New function.
5693 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
5694 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
5695 (sem_function::merge): Assert is changed.
5697 2015-03-03 Martin Liska <mliska@suse.cz>
5698 Martin Jambor <mjambor@suse.cz>
5701 * ipa-icf.c (sem_item_optimizer::execute): Change function
5702 return value to boolean.
5703 (sem_item_optimizer::merge_classes): Likewise.
5704 (ipa_icf_driver): Return TODO_remove_functions in case there's
5705 a merge operation processed.
5706 * ipa-icf.h: Change function return value to boolean.
5708 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5711 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
5712 processor type for 64-bit little endian PowerPC.
5714 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
5715 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
5716 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
5717 printing built-in mask so it does not pass NULL pointers.
5719 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
5722 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
5725 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
5726 !ISA_HAS_FP_CONDMOVE.
5728 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
5730 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
5733 2015-03-02 Ulrich Drepper <drepper@gmail.com>
5735 * doc/invoke.texi (Options for Code Generation Conventions):
5736 Fix URL of DSO paper.
5738 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
5741 * ipa-inline.c (check_callers): Looks for recursion.
5742 (inline_to_all_callers): Give up on uninlinable or recursive edges.
5743 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
5744 summary of inline clones.
5745 (do_estimate_growth_1): Fix recursion check.
5747 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
5750 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
5753 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
5754 Aldy Hernandez <aldyh@redhat.com>
5757 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
5758 when checking TYPE_BINFO.
5760 2015-03-02 Richard Biener <rguenther@suse.de>
5763 * ipa-icf-gimple.c: Include builtins.h.
5764 (func_checker::compare_memory_operand): Compare base alignment.
5766 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
5769 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
5770 are never passed by reference.
5772 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
5775 * tree-chkp.c (chkp_check_lower): Don't check against
5776 zero bounds for already instrumented functions.
5777 (chkp_check_upper): Likewise.
5778 (chkp_fini): Clean pass local data to avoid wrong reusage.
5780 2015-02-28 Martin Liska <mliska@suse.cz>
5781 Jan Hubicka <hubicka@ucw.cz>
5783 * ipa-icf.c (sem_variable::equals): Improve debug output;
5784 get variable constructor.
5785 (sem_variable::parse): Do not filter out too early; give up on
5786 volatile and register vars.
5787 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
5789 * ipa-icf.h (sem_variable::init): Do not set ctor.
5790 (sem_variable::ctor): Remove.
5792 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
5795 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
5797 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
5799 * ipa-icf.c: Include stor-layout.h
5800 (sem_function::compare_cgraph_references): Rename to ...
5801 (sem_item::compare_cgraph_references): ... this one.
5802 (sem_variable::equals_wpa): New function
5803 (sem_variable::equals): Do not check stuff already verified by
5805 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
5806 * ipa-icf.h (sem_item): Add compare_cgraph_references.
5807 (sem_function): Remove compare_cgraph_references.
5808 (sem_variable): Turns equals_wpa into non-inline.
5810 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
5812 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
5813 (sem_item::add_expr): New function.
5814 (sem_function::hash_stmt): Handle operands of most statements.
5815 (sem_variable::get_hash): Hash the actual constructor.
5816 * ipa-icf.h (sem_item): Add add_expr.
5817 (sem_function): Update prototype of hash_stmt
5819 2015-02-28 Martin Liska <mliska@suse.cz>
5820 Jan Hubicka <hubicka@ucw.cz>
5823 * ipa-icf-gimple.c (func_checker::compare_function_decl):
5825 (func_checker::compare_variable_decl): Skip symtab vars.
5826 (func_checker::compare_cst_or_decl): Update.
5827 * ipa-icf.c (sem_function::parse): Do not consider aliases.
5828 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
5829 use correct symtab predicates.
5830 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
5831 (sem_variable::parse): Update comment.
5832 (sem_item_optimizer::build_graph): Consider ultimate aliases
5835 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
5837 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
5840 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
5842 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
5843 (sem_variable::merge) Likewise.
5845 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
5847 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
5848 target; also match flag_ipa_devirt.
5850 2015-03-01 Martin Liska <mliska@suse.cz>
5851 Jan Hubicka <hubicka@ucw.cz>
5853 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
5854 Validate variable alignment.
5855 * ipa-icf.c (sem_function::equals_private): Be more precise
5856 about non-common function attributes.
5857 (sem_variable::equals): Likewise.
5859 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
5862 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
5863 across COMDAT group boundary.
5865 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
5868 * ipa-icf.c (clear_decl_rtl): New function.
5869 (sem_function::merge): Clear RTL before forming alias.
5870 (sem_variable::merge): Clear RTL before forming alias.
5872 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
5875 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
5877 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
5879 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
5882 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
5884 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
5885 a typo in the description.
5887 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
5890 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
5891 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
5892 * lra-constraints.c: Include "params.h".
5893 (EBB_PROBABILITY_CUTOFF): Use
5894 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
5895 (lra_inheritance): Use '<' instead of '<=' for
5896 EBB_PROBABILITY_CUTOFF.
5897 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
5900 2015-02-27 Martin Liska <mliska@suse.cz>
5902 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
5903 vector length condition.
5905 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
5907 * doc/extend.texi (x86 transactional memory intrinsics):
5908 Reorganize discussion of _xbegin. Clarify that the return
5909 value is a bit mask. Expand example and move to end of section.
5911 2015-02-26 Jakub Jelinek <jakub@redhat.com>
5912 Aldy Hernandez <aldyh@redhat.com>
5914 PR rtl-optimization/65220
5915 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
5917 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
5920 * lra-remat.c (update_scratch_ops): New.
5921 (do_remat): Call it.
5922 * lra.c (lra_register_new_scratch_op): New. Take code from ...
5923 (remove_scratches): ... here.
5924 * lra-int.h (lra_register_new_scratch_op): New prototype.
5926 2015-02-27 Marek Polacek <polacek@redhat.com>
5929 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
5930 -Wformat-signedness anymore.
5932 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5934 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
5936 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
5938 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5940 * config/s390/s390.c (enum s390_builtin):
5941 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
5942 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
5943 (s390_init_builtins): Generate new builtin functions.
5944 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
5945 (s390_sfpc, s390_efpc): New pattern definitions.
5947 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5949 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
5950 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
5951 (s390_builtin_decls): New array.
5952 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
5953 (s390_builtin_decl): New function.
5954 (TARGET_BUILTIN_DECL): Define macro.
5956 2015-02-27 Richard Biener <rguenther@suse.de>
5959 * builtins.c (get_object_alignment_2): Make sure to re-apply
5960 the ANDed mask after recursing to its operand gets us a new
5961 misalignment bit position.
5963 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
5964 Martin Liska <mliska@suse.cz>
5967 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
5968 Use address_matters_p.
5969 (redirect_all_callers, set_addressable): New functions.
5970 (sem_function::merge): Reorganize and fix merging issues.
5971 (sem_variable::merge): Likewise.
5972 (sem_variable::compare_sections): Remove.
5973 * common.opt (fmerge-all-constants, fmerge-constants): Remove
5975 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
5977 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
5979 (address_matters_1): New function.
5980 (symtab_node::address_matters_p): New function.
5981 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
5982 check for merged flag.
5983 * cgraph.h (address_matters_p): Declare.
5984 (symtab_node::address_taken_from_non_vtable_p): Remove.
5985 (symtab_node::address_can_be_compared_p): New method.
5986 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
5987 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
5989 (comdat_can_be_unshared_p_1) Use address_matters_p.
5990 (update_vtable_references): Fix formating.
5991 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
5992 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
5993 * cgraphclones.c: Preserve merged and icf_merged flags.
5995 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
5997 * doc/extend.texi (Function Attributes): Fix spelling and typos.
5998 (Label Attributes): Likewise.
5999 (Cilk Plus Builtins): Likewise.
6000 (ARC SIMD Built-in Functions): Likewise.
6001 (ARM C Language Extensions (ACLE)): Likewise.
6002 (PowerPC Built-in Functions): Likewise.
6003 (PowerPC Hardware Transactional Memory Built-in Functions):
6006 2015-02-26 Jakub Jelinek <jakub@redhat.com>
6008 PR tree-optimization/65216
6009 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
6010 new stmt and new SSA_NAME for lhs whenever the arguments have
6011 changed and weren't just swapped. Fix comment typo.
6013 PR tree-optimization/65215
6014 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
6015 for PDP endian targets.
6016 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
6017 Fix up formatting issues.
6018 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
6019 size is smaller than the original, adjust MEM_REF offset by the
6020 difference of sizes. Use is_gimple_mem_ref_addr instead of
6021 is_gimple_min_invariant test to avoid adding address temporaries.
6023 2015-02-26 Martin Liska <mliska@suse.cz>
6024 Jan Hubicka <hubicka@ucw.cz>
6027 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
6028 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
6029 (sem_item_optimizer::process_cong_reduction): Include division by
6030 sensitive references.
6031 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
6032 * ipa-ref.c (ipa_ref::address_matters_p): New function.
6033 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
6035 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
6038 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
6040 * config/avr/avr.c: Same.
6041 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
6042 Refuse any constant address not in 0..0xbf.
6043 * config/avr/avr.md (*mov<mode>, *movsf): Remove
6044 tiny_valid_direct_memory_access_range from insn conditions.
6045 (mov<mode>): Don't special-case expansion of avrtiny addresses.
6047 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
6050 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
6051 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
6052 * config/sh/predicates.md (const_logical_operand): New predicate.
6053 * config/sh/sh.md: Add new peephole2 patterns.
6055 2015-02-26 Marek Polacek <polacek@redhat.com>
6058 * ipa-inline.c (early_inliner): Recompute inline parameters.
6060 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6063 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
6064 instructions with TImode operands are included in the analysis.
6066 2015-02-26 Sebastian Pop <s.pop@samsung.com>
6068 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
6069 of an EDGE_FSM_THREAD.
6071 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6073 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
6075 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
6078 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
6080 2015-02-26 Sebastian Pop <s.pop@samsung.com>
6082 PR tree-optimization/65048
6083 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
6084 (thread_through_all_blocks): Call valid_jump_thread_path.
6085 Remove invalid FSM jump-thread paths.
6087 2015-02-26 Jakub Jelinek <jakub@redhat.com>
6089 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
6090 (ipa_write_optimization_summaries): Likewise.
6091 * tree-streamer.h: Include data-streamer.h.
6092 (streamer_mode_table): Declare extern variable.
6093 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
6094 * lto-streamer-out.c (lto_output_init_mode_table,
6095 lto_write_mode_table): New functions.
6096 (produce_asm_for_decls): Call lto_write_mode_table when streaming
6098 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
6099 (lto_create_simple_input_block): Add mode_table argument to the
6100 lto_input_block constructors.
6101 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
6103 * data-streamer-in.c (string_for_index): Likewise.
6104 * ipa-inline-analysis.c (inline_read_section): Likewise.
6105 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
6106 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6107 * lto-streamer-in.c (lto_read_body_or_constructor,
6108 lto_input_toplevel_asms): Likewise.
6109 (lto_input_mode_table): New function.
6110 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
6111 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
6112 Use bp_pack_machine_mode.
6113 * real.h (struct real_format): Add name field.
6114 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
6115 (class lto_input_block): Add mode_table member.
6116 (lto_input_block::lto_input_block): Add mode_table_ argument,
6117 initialize mode_table.
6118 (struct lto_file_decl_data): Add mode_table field.
6119 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
6120 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
6121 unpack_ts_decl_common_value_fields,
6122 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
6123 * tree-streamer.c (streamer_mode_table): New variable.
6124 * real.c (ieee_single_format, mips_single_format,
6125 motorola_single_format, spu_single_format, ieee_double_format,
6126 mips_double_format, motorola_double_format,
6127 ieee_extended_motorola_format, ieee_extended_intel_96_format,
6128 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
6129 ibm_extended_format, mips_extended_format, ieee_quad_format,
6130 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
6131 decimal_single_format, decimal_double_format, decimal_quad_format,
6132 ieee_half_format, arm_half_format, real_internal_format): Add name
6134 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6136 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
6139 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
6140 reordering for selective scheduling.
6142 2015-02-26 Terry Guo <terry.guo@arm.com>
6144 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
6145 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
6146 (arm_arch_no_volatile_ce): Declare new global variable.
6147 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
6148 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
6149 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
6150 (TARGET_NO_VOLATILE_CE): New macro.
6151 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
6152 volatile memory access in IT block
6154 2015-02-25 Kai Tietz <ktietz@redhat.com>
6156 PR tree-optimization/61917
6157 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
6158 that reduc_def_stmt is null.
6160 2015-02-25 Martin Liska <mliska@suse.cz>
6162 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
6163 hard register variables.
6165 2015-02-25 Kai Tietz <ktietz@redhat.com>
6168 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
6169 (symtab::noninterposable_alias): Likewise.
6171 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
6174 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
6176 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
6178 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
6181 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
6182 as split condition; force split via '#' in output pattern.
6184 2015-02-25 Richard Biener <rguenther@suse.de>
6185 Kai Tietz <ktietz@redhat.com>
6187 PR tree-optimization/61917
6188 * tree-vect-loop.c (vectorizable_reduction): Allow
6189 vect_internal_def without reduction to exit graceful.
6191 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
6194 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
6195 only with NONDEBUG_INSN_P.
6197 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
6199 Use variadic macros with avr-log.c.
6201 * config/avr/avr-protos.h (avr_vdump): New prototype.
6202 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
6203 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
6204 * config/avr/avr-log.c: Adjust comments.
6205 (avr_vdump): New function.
6206 (avr_vadump): Pass caller as 2nd argument instead of format string.
6207 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
6208 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
6210 2015-02-25 Jakub Jelinek <jakub@redhat.com>
6213 * target.def (target_option_stream_in): New target hook.
6214 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
6215 targetm.target_option.post_stream_in if non-NULL.
6216 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
6217 * doc/tm.texi: Updated.
6218 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
6220 (TARGET_OPTION_POST_STREAM_IN): Redefine.
6222 2015-02-24 Jeff Law <law@redhat.com>
6225 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
6226 of operand 0 and operand 2.
6227 (zero_cost_loop_end, loop_end): Similarly.
6229 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
6231 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
6234 2015-02-24 DJ Delorie <dj@redhat.com>
6236 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
6237 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
6238 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
6239 instead of hardcoding SImode.
6241 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
6243 * omp-low.c (create_omp_child_function): Tag entrypoint
6244 functions with a special attribute.
6246 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6249 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
6251 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
6253 PR rtl-optimization/65123
6254 * lra-remat.c (operand_to_remat): Check hard regs in insn
6257 2015-02-24 Nick Clifton <nickc@redhat.com>
6259 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
6262 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
6265 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
6266 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
6267 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
6268 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
6269 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
6270 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
6271 (BUILT_IN_GOACC_PARALLEL): Specify as
6272 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
6273 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
6275 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
6276 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
6277 Remove function types.
6278 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
6279 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
6280 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
6283 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
6285 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
6287 2015-02-24 Jakub Jelinek <jakub@redhat.com>
6289 PR tree-optimization/65170
6290 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
6291 if val[1] < 0, clear also val[2] and return 3.
6293 2015-02-24 Alan Modra <amodra@gmail.com>
6296 * config/rs6000/rs6000.c (get_memref_parts): Only return true
6297 when *base is a reg. Handle nested plus addresses. Simplify
6300 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
6302 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
6303 use natural alignment when optimizing for size.
6305 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
6308 * config/sh/sh.md (movsicc_true+3): Remove peephole.
6309 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
6310 * config/sh/sh.c (replace_n_hard_rtx): Remove.
6312 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
6315 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
6316 too big for a wide_int. Implement missing wrapping operation.
6318 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
6321 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
6322 instead of const_int 4294901760.
6324 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
6326 * config/avr/t-avr: Fix typo in comment.
6328 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
6330 * doc/rtl.texi (fma): Clarify documentation.
6332 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
6335 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
6336 over input_location.
6338 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
6340 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
6341 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
6342 restrict alignments to absolute_biggest_alignment.
6343 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
6345 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
6346 * doc/tm.texi: Regenerate.
6347 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
6349 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
6352 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
6354 2015-02-20 Richard Biener <rguenther@suse.de>
6356 PR tree-optimization/65136
6357 * tree-ssa-propagate.c: Include cfgloop.h.
6358 (replace_phi_args_in): Avoid replacing loop latch edge PHI
6359 arguments with constants.
6361 2015-02-20 Jakub Jelinek <jakub@redhat.com>
6362 Martin Liska <mliska@suse.cz>
6365 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
6366 don't try to create_thunk if stdarg_p. If
6367 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
6368 redirect_callers if possible.
6369 (sem_item_optimizer::execute): Call unregister_hooks here...
6370 (ipa_icf_driver): ... instead of here.
6372 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6374 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
6375 Mark operand 0 as earlyclobber in 2nd alternative.
6376 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
6377 Write negated shift amount into QI lowpart operand 0 and use it
6379 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
6381 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
6383 * cgraph.h (clone_function_name_1): Declare.
6384 * cgraphclones.c (clone_function_name_1): New function.
6385 (clone_function_name): Use it.
6386 * lto-partition.c: Include "stringpool.h".
6387 (must_not_rename, maybe_rewrite_identifier)
6388 (validize_symbol_for_target): New static functions.
6389 (privatize_symbol_name): Use must_not_rename.
6390 (promote_symbol): Call validize_symbol_for_target.
6391 (lto_promote_cross_file_statics): Likewise.
6392 (lto_promote_statics_nonwpa): Likewise.
6394 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
6397 * config/avr/avr.md (pushhi_insn): New insn.
6398 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
6400 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
6401 Jakub Jelinek <jakub@redhat.com>
6403 * tree-streamer.c (preload_common_nodes): Don't preload
6404 TI_VA_LIST* for offloading.
6405 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
6408 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
6410 * config/pa/pa.c (pa_emit_move_sequence): Always force
6411 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
6414 * config/pa/pa.c (pa_reloc_rw_mask): New function.
6415 (TARGET_ASM_RELOC_RW_MASK): Define.
6416 (pa_cannot_force_const_mem): Revert previous change.
6418 2015-02-19 Martin Jambor <mjmabor@suse.cz>
6419 Jan Hubicka <hubicka@ucw.cz>
6422 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
6423 across jump functions.
6425 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
6427 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
6429 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
6431 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
6433 2015-02-19 Richard Henderson <rth@redhat.com>
6436 * varasm.c (default_binds_local_p_2): Don't test node->definition;
6437 test DECL_EXTERNAL independent of symtab_node.
6439 2015-02-19 Jakub Jelinek <jakub@redhat.com>
6442 * varpool.c (varpool_node::get_constructor): Return early
6443 if this->lto_file_data is NULL.
6445 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6447 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
6448 (rank_for_schedule_debug): Update.
6449 (ready_sort): Make static. Move sorting logic to ...
6450 (ready_sort_debug, ready_sort_real): New static functions.
6451 (schedule_block): Sort both debug insns and real insns in preparation
6452 for ready list trimming. Improve debug output.
6453 * sched-int.h (ready_sort): Remove global declaration.
6455 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
6457 * ipa-icf.c (sem_function::equals_private): Adjust.
6458 (sem_function::bb_dict_test): Take a vec<int> * instead of
6460 * ipa-icf.h (bb_dict_test): Likewise.
6462 2015-02-18 Jakub Jelinek <jakub@redhat.com>
6464 PR gcov-profile/64634
6465 * tree-eh.c (frob_into_branch_around): Fix up typos
6466 in function comment.
6467 (lower_catch): Put eh_seq resulting from EH lowering of
6468 the cleanup sequence after the cleanup rather than before it.
6470 2015-02-18 Tom de Vries <tom@codesourcery.com>
6472 * common.opt (fstdarg-opt): New option.
6473 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
6474 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
6475 (@item -fstdarg-opt): New item.
6477 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
6480 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
6483 2015-02-18 Jakub Jelinek <jakub@redhat.com>
6485 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
6487 (ALL_HOST_OBJS): Add mkoffload.o.
6488 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
6490 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
6492 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
6493 (compare_virtual_tables): Be smarter about skipping typeinfos;
6494 do sane output on virtual table table mismatch.
6495 (warn_odr): Be ready for forward declarations of enums;
6496 output sane info on base mismatch and virtual table mismatch.
6497 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
6498 when only one type is polymorphic.
6499 (get_odr_type): Fix hashtable corruption.
6500 (dump_odr_type): Dump mangled names.
6502 2015-02-18 Richard Biener <rguenther@suse.de>
6504 PR tree-optimization/65063
6505 * tree-predcom.c (determine_unroll_factor): Return 1 if we
6506 have replaced looparound PHIs.
6508 2015-02-18 Martin Liska <mliska@suse.cz>
6510 * lto-streamer.c (lto_streamer_init): Encapsulate
6511 streamer_check_handled_ts_structures with checking macro.
6513 2015-02-18 Jakub Jelinek <jakub@redhat.com>
6516 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
6517 section if !implicit_section.
6518 (cgraph_node::create_version_clone_with_body): Likewise.
6519 * trans-mem.c (ipa_tm_create_version): Likewise.
6521 2015-02-18 Richard Biener <rguenther@suse.de>
6523 PR tree-optimization/62217
6524 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
6527 2015-02-18 Marek Polacek <polacek@redhat.com>
6530 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
6531 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
6532 is in range [-16K, -1]. Don't issue run-time error if
6533 (ptr > ptr + offset).
6535 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
6537 * doc/install.texi (nvptx-*-none): New section.
6538 * doc/invoke.texi (Nvidia PTX Options): Likewise.
6539 * config/nvptx/nvptx.opt: Update.
6541 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
6542 (access_check): New functions, copied from
6543 config/i386/intelmic-mkoffload.c.
6544 (main): For non-installed testing, look in all COMPILER_PATHs for
6547 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
6549 2015-02-18 Andrew Pinski <apinski@cavium.com>
6550 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6552 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
6553 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
6555 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
6557 * ipa-visibility.c (function_and_variable_visibility): Only
6558 check locality if node is not already local.
6559 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
6560 call_for_symbol_and_aliases instead of
6561 call_for_symbol_thunks_and_aliases.
6562 (ipa_inline): Likewise.
6563 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
6565 * ipa.c (symbol_table::remove_unreachable_nodes): Use
6566 call_for_symbol_and_aliases.
6567 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
6568 (ipa_propagate_frequency_1): Use it; use opt_for_fn
6569 (ipa_propagate_frequency): Update.
6570 (ipa_profile): Add opt_for_fn gueards.
6572 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
6574 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
6575 * doc/invoke.texi (SH options): Document it.
6576 * config/sh/sh.c (sh_insn_length_adjustment): Check
6577 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
6579 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
6581 * common.opt (fipa-cp-alignment): New.
6582 * ipa-cp.c (ipcp_store_alignment_results): Check
6583 flag_ipa_cp_alignment.
6584 * opts.c (default_options_table): Enable -fipa-cp-alignment for
6586 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
6587 * doc/invoke.texi: Document -fipa-cp-alignment.
6589 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
6592 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
6593 to nil. Adjust comments.
6595 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
6597 * ipa-visibility.c (function_and_variable_visibility): Only
6598 check locality if node is not already local.
6599 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
6600 call_for_symbol_and_aliases instead of
6601 call_for_symbol_thunks_and_aliases.
6602 (ipa_inline): Likewise.
6603 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
6605 * ipa.c (symbol_table::remove_unreachable_nodes): Use
6606 call_for_symbol_and_aliases.
6607 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
6608 (ipa_propagate_frequency_1): Use it; use opt_for_fn
6609 (ipa_propagate_frequency): Update.
6610 (ipa_profile): Add opt_for_fn guards.
6612 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6614 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
6615 skipping of "strange" tokens.
6617 2015-02-17 Jeff Law <law@redhat.com>
6619 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
6622 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
6624 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
6625 as forcing a HARD_DEP between instructions, thereby
6626 disallowing rewriting to break dependencies.
6628 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
6630 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
6631 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
6632 variables in boundary that have no inlitalizer encoded and are
6634 * varasm.c (default_binds_local_p_2): External definitions do not
6635 count as definitions here.
6637 2015-02-16 Jeff Law <law@redhat.com>
6639 PR tree-optimization/64823
6640 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
6642 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
6643 threading through blocks with PHIs, but no statements.
6644 (thread_through_normal_block): Distinguish between blocks where
6645 we did not process all the statements and blocks with no statements.
6647 2015-02-16 Jakub Jelinek <jakub@redhat.com>
6648 James Greenhalgh <james.greenhalgh@arm.com>
6651 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
6652 section if not linkonce. Fix up formatting.
6653 (cgraph_node::create_version_clone_with_body): Copy section.
6654 * trans-mem.c (ipa_tm_create_version): Likewise.
6656 2015-02-16 Richard Biener <rguenther@suse.de>
6658 PR tree-optimization/65077
6659 * tree-ssa-structalias.c (get_constraint_for_1): Handle
6660 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
6661 (find_func_aliases): Allow float values to carry pointers again.
6663 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
6665 * doc/install.texi (Specific): Reorder targets list to put
6666 aarch64 in alphabetical order. Add a link to aarch64*-*-*
6669 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6670 David Edelsohn <dje.gcc@gmail.com>
6673 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
6674 mapping class to external variable or function reference.
6675 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
6678 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
6681 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
6682 ASM_WEAKEN_DECL if defined.
6684 2015-02-16 Richard Biener <rguenther@suse.de>
6687 * varasm.c (default_file_start): For LTO produced units
6688 emit <artificial> as file directive.
6690 2015-02-16 Richard Biener <rguenther@suse.de>
6692 PR tree-optimization/63593
6693 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
6694 stmts and releasing SSA names until...
6695 (execute_pred_commoning): ... after processing all chains.
6697 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
6700 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
6703 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
6705 * doc/bugreport.texi: Adjust section titles throughout the file
6706 to use "Title Case".
6707 * doc/extend.texi: Likewise.
6708 * doc/gcov.texi: Likewise.
6709 * doc/implement-c.texi: Likewise.
6710 * doc/implement-cxx.texi: Likewise.
6711 * doc/invoke.texi: Likewise.
6712 * doc/objc.texi: Likewise.
6713 * doc/standards.texi: Likewise.
6714 * doc/trouble.texi: Likewise.
6716 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
6718 * cgraph.h (symtab_node::has_aliases_p): Simplify.
6719 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
6720 * tree.c (lookup_binfo_at_offset): Make static.
6721 (get_binfo_at_offset): Do not shadow offset; add explanatory
6724 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
6726 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
6727 for all floading point loads and stores except those using a register
6729 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
6732 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
6734 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
6735 (do_estimate_growth_1): Record if any uninlinable edge was seen.
6736 (estimate_growth): Handle uninlinable edges correctly.
6737 (check_callers): New.
6738 (growth_likely_positive): Handle aliases correctly.
6740 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
6742 * ipa-chkp.c: Use iterate_direct_aliases.
6743 * symtab.c (resolution_used_from_other_file_p): Move inline.
6744 (symtab_node::create_reference): Fix formating.
6745 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
6746 (symtab_node::iterate_reference): Move inline.
6747 (symtab_node::iterate_referring): Move inline.
6748 (symtab_node::iterate_direct_aliases): Move inline.
6749 (symtab_node::used_from_object_file_p_worker): Inline into ...
6750 (symtab_node::used_from_object_file_p): ... this one; move inline.
6751 (symtab_node::call_for_symbol_and_aliases): Move inline;
6752 use iterate_direct_aliases.
6753 (symtab_node::call_for_symbol_and_aliases_1): New method.
6754 (cgraph_node::call_for_symbol_and_aliases): Move inline;
6755 use iterate_direct_aliases.
6756 (cgraph_node::call_for_symbol_and_aliases_1): New method.
6757 (varpool_node::call_for_node_and_aliases): Rename to ...
6758 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
6759 use iterate_direct_aliases.
6760 (varpool_node::call_for_symbol_and_aliases_1): New method.
6761 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
6762 (ipa_discover_readonly_nonaddressable_var): Update.
6763 * ipa-devirt.c: Fix formating.
6764 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
6766 (cgraph_node::call_for_symbol_and_aliases): Move inline.
6767 (cgraph_node::call_for_symbol_and_aliases_1): New function..
6768 * cgraph.h (used_from_object_file_p_worker): Remove.
6769 (resolution_used_from_other_file_p): Move inline.
6770 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
6771 (symtab_node::iterate_reference): Move inline.
6772 (symtab_node::iterate_referring): Move inline.
6773 (symtab_node::iterate_direct_aliases): Move inline.
6774 (symtab_node::used_from_object_file_p_worker): Inline into ...
6775 (symtab_node::used_from_object_file_p): Move inline.
6776 * tree-emutls.c (ipa_lower_emutls): Update.
6777 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
6778 (varpool_node::call_for_node_and_aliases): Remove.
6780 2015-02-14 Jakub Jelinek <jakub@redhat.com>
6782 PR tree-optimization/62209
6783 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
6784 op == range->exp, insert seq and gimplified code after labels
6785 instead of after the phi.
6787 2015-02-13 Jeff Law <law@redhat.com>
6790 Revert my change for tree-optimization/64823.
6792 2015-02-13 Jakub Jelinek <jakub@redhat.com>
6794 PR tree-optimization/65053
6795 * tree-ssa-phiopt.c (value_replacement): When moving assign before
6796 cond, either reset VR on lhs or set it to phi result VR.
6798 2015-02-13 Jeff Law <law@redhat.com>
6800 PR tree-optimization/64823
6801 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
6802 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
6803 threading through blocks with PHIs, but no statements.
6804 (thread_through_normal_block): Distinguish between blocks where
6805 we did not process all the statements and blocks with no statements.
6807 PR rtl-optimization/47477
6808 * match.pd (convert (plus/minus (convert @0) (convert @1): New
6809 simplifier to narrow arithmetic.
6811 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
6814 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
6815 polymorphic call info when type is not known to be preserved.
6817 2015-02-13 Maritn Jambor <mjambor@suse.cz>
6820 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
6821 (inline_call): Use it.
6823 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
6825 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
6826 GOMP_DEVICE_NVIDIA_PTX.
6828 2015-02-13 Jakub Jelinek <jakub@redhat.com>
6831 * stmt.c (emit_case_nodes): Use void_type_node instead of
6832 NULL_TREE as LABEL_DECL type.
6834 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
6836 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
6838 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
6839 symbolic references to data to be forced to constant memory on the
6842 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
6844 PR tree-optimization/65002
6845 * tree-cfg.c (pass_data_fixup_cfg): Don't update
6847 * tree-sra.c (some_callers_have_no_vuse_p): New.
6848 (ipa_early_sra): Reject functions whose callers
6849 assume function is read only.
6851 2015-02-13 Richard Biener <rguenther@suse.de>
6854 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
6855 for LTO produced CUs.
6857 2015-02-13 Bin Cheng <bin.cheng@arm.com>
6859 PR tree-optimization/64705
6860 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
6861 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
6862 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
6863 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
6864 expand_simple_operations.
6866 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
6867 Richard Henderson <rth@redhat.com>
6870 * cgraphunit.c (cgraph_node::finalize_function): Set definition
6871 before notice_global_symbol.
6872 (varpool_node::finalize_decl): Likewise.
6873 * varasm.c (default_binds_local_p_2): Rename from
6874 default_binds_local_p_1, add weak_dominate argument. Use direct
6875 returns instead of assigning to local variable. Unify varpool and
6876 cgraph paths via symtab_node. Reject undef weak variables before
6877 testing visibility. Reorder tests for simplicity.
6878 (default_binds_local_p): Use default_binds_local_p_2.
6879 (default_binds_local_p_1): Likewise.
6880 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
6882 (default_elf_asm_output_external): Emit visibility when specified.
6884 2015-02-13 Alan Modra <amodra@gmail.com>
6886 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
6887 code setting up r11 for out-of-line fp restore.
6889 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
6891 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
6892 (muser-mode): Likewise.
6894 2015-02-13 Alan Modra <amodra@gmail.com>
6896 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
6897 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
6899 2015-02-12 David Howells <dhowells@redhat.com>
6901 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
6903 * tree-ssa-uninit.c (dump_predicates): Likewise.
6904 * opts.c (print_filtered_help): Likewise.
6906 2015-02-12 Jakub Jelinek <jakub@redhat.com>
6908 * dwarf2out.c (output_die): Use "%s", name instead of name to
6909 avoid -Wformat-security warning.
6911 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
6912 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
6913 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
6914 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
6916 2015-02-12 Jason Merrill <jason@redhat.com>
6918 * common.opt (-flifetime-dse): New.
6920 2015-02-12 Jakub Jelinek <jakub@redhat.com>
6923 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
6925 PR tree-optimization/65014
6926 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
6927 use original second operand of arg0 or arg1 instead of
6928 that adjusted by STRIP_NOPS.
6930 2015-02-11 Jeff Law <law@redhat.com>
6933 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
6934 that needs to be queued, just queue it for a single cycle.
6936 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
6938 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
6939 bodies of thunks; comment on why.
6940 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
6943 2015-02-11 Richard Henderson <rth@redhat.com>
6946 * tree-eh.c (mark_reachable_handlers): Mark source and destination
6947 regions of __builtin_eh_copy_values.
6949 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6952 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
6953 ultimate alias is MEM with SYMBOL_REF satisfying
6954 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
6955 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
6957 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
6959 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
6960 "diagnostic-core.h".
6961 (main): Initialize progname, and call diagnostic_initialize.
6963 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
6964 instead of __OPENMP_TARGET__.
6966 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
6967 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
6970 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
6972 * doc/sourcebuild.texi (pie_enabled): Document.
6974 2015-02-11 Martin Liska <mliska@suse.cz>
6977 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
6978 a return value for call to a function that is noreturn.
6980 2015-02-11 Richard Biener <rguenther@suse.de>
6983 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
6986 2015-02-11 Andrew Pinski <apinski@cavium.com>
6989 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
6990 Change the first argument type to size_type_node and add another
6992 (aarch64_simd_expand_builtin): Handle the new argument to
6993 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
6994 print an out when the first two arguments are not
6995 nonzero integer constants.
6996 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
6997 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
6999 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7002 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
7003 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
7004 (ix86_set_current_function): Rewritten.
7005 (ix86_add_new_builtins): Temporarily clear current_target_pragma
7006 when creating builtin fndecls.
7008 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
7011 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
7013 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
7014 have no comdat group.
7015 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
7016 (lto_output_varpool_node): Always output alias info.
7017 (output_refs): Output refs of boundary aliases, too.
7018 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
7019 (output_symtab): Output call eges in thunks in boundary.
7020 (get_alias_symbol): Remove.
7021 (input_node, input_varpool_node): Do not special case weakrefs.
7022 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
7023 alias and thunks targets in the boundary; do not take removed symbols
7024 from their comdat groups.
7025 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
7026 (cgraph_node::global_info): Remove.
7027 (cgraph_node::rtl_info): Look through aliases and thunks.
7028 * cgrpah.h (global_info): Remove.
7029 (non_local_p): Remove.
7031 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
7032 Sandra Loosemore <sandra@codesourcery.com>
7034 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
7035 to inline asm. List dialects in proper order.
7037 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
7038 Sandra Loosemore <sandra@codesourcery.com>
7040 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
7042 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
7044 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
7045 modified) reference to Solaris.
7047 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
7049 * doc/extend.texi (Extended Asm): Fix typos.
7051 2015-02-10 Jakub Jelinek <jakub@redhat.com>
7054 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
7056 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
7059 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
7060 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
7061 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
7062 * config/sh/constraints.md (Ara, Add): New constraints.
7063 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
7065 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
7066 atomic_mem_operand_0. Don't use force_reg on the memory address.
7067 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
7068 Sra constraint. Convert to insn_and_split. Add workaround for
7070 (atomic_compare_and_swap<mode>_hard): Copy to
7071 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
7072 Use atomic_mem_operand_0 predicate.
7073 (atomic_compare_and_swap<mode>_soft_gusa,
7074 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
7076 (atomic_compare_and_swap<mode>_soft_tcb,
7077 atomic_compare_and_swap<mode>_soft_imask,
7078 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
7079 atomic_mem_operand_0 predicate and SraSdd constraints.
7080 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
7082 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
7083 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
7084 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
7085 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
7086 force_reg on the memory address.
7087 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
7088 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
7089 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
7090 atomic_mem_operand_1 predicate and Sra constraint.
7091 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
7092 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
7093 Use atomic_mem_operand_1 predicate.
7094 (atomic_<fetchop_name><mode>_hard): Copy to
7095 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
7096 Use atomic_mem_operand_1 predicate.
7097 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
7098 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
7099 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
7100 insn_and_split. Use atomic_mem_operand_1 predicate.
7101 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
7102 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
7103 Use atomic_mem_operand_1 predicate.
7104 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
7105 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
7106 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
7107 in generated insn with original mem operand before emitting the insn.
7108 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
7109 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
7110 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
7111 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
7112 Use atomic_mem_operand_1 predicate and AraAdd constraints.
7113 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
7114 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
7115 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
7116 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
7117 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
7118 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
7119 atomic_not_fetch<mode>_soft_tcb,
7120 atomic_<fetchop_name>_fetch<mode>_soft_imask,
7121 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
7122 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
7123 Use atomic_mem_operand_1 predicate and SraSdd constraints.
7125 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
7127 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
7128 and 3 earlyclobber operands.
7130 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
7132 * common.opt (fstack-reuse): Mark as optimization.
7134 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
7137 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
7139 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
7141 PR tree-optimization/64326
7142 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
7144 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
7146 PR gcov-profile/61889
7147 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
7149 2015-02-10 Richard Biener <rguenther@suse.de>
7151 PR tree-optimization/64995
7152 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
7153 value we use is final.
7154 (visit_reference_op_store): Always valueize op.
7155 (visit_use): Properly valueize vuses.
7157 2015-02-10 Richard Biener <rguenther@suse.de>
7159 PR tree-optimization/64909
7160 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
7161 pass a scalar-stmt count estimate to the cost model.
7162 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
7164 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
7166 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
7167 enabled by default together with var-tracking.
7169 2015-02-10 Nick Clifton <nickc@redhat.com>
7171 * config/rl78/rl78.c: Remove DIV attribute code accidentally
7172 included in previous rl78 commit.
7174 2015-02-10 Richard Biener <rguenther@suse.de>
7176 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
7177 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
7180 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
7182 PR gcov-profile/61889
7183 * config.in: regenerate.
7184 * configure.in: Likewise.
7185 * configure.ac: Check for ftw.h.
7186 * gcov-tool.c: Check for ftw.h before using nftw.
7188 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
7191 * ipa-visibility.c (update_visibility_by_resolution_info): Only
7192 assert when not in lto mode.
7194 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7196 * ira-color.c (setup_left_conflict_sizes_p): Simplify
7197 initialization/assignment of conflict_size.
7199 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
7202 * ipa-cp.c (gather_caller_stats): Skip thunks.
7203 (propagate_constants_topo): Skip aliases.
7205 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
7208 * config/sh/sh.c (sh_option_override): Don't change
7209 -freorder-blocks-and-partition to -freorder-blocks even when
7210 unwinding is enabled.
7211 (sh_can_follow_jump): Return false if the followee jump is
7212 a crossing jump when -freorder-blocks-and-partition is specified.
7213 * config/sh/sh.md (*jump_compact_crossing): New insn.
7215 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
7216 Kaz Kojima <kkojima@gcc.gnu.org>
7219 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
7220 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
7221 (sh_can_redirect_branch): Rename to ...
7222 (sh_can_follow_jump): ... this. Constify argument types.
7223 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
7224 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
7225 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
7226 * doc/tm.texi: Regenerate.
7228 2015-02-09 Jakub Jelinek <jakub@redhat.com>
7231 * builtins.c (expand_builtin): Call targetm.expand_builtin
7232 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
7234 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7237 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
7239 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7242 * ipa-icf.c (set_local): New function.
7243 (sem_function::merge): Use it.
7245 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7247 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
7248 (add_type_duplicate): Fix comparison of BINFOs.
7250 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7252 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
7253 on getting VOID pointer.
7255 2015-02-09 Jakub Jelinek <jakub@redhat.com>
7258 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
7261 2015-02-09 Richard Biener <rguenther@suse.de>
7263 * genmatch.c (replace_id): Copy expr_type.
7265 2015-02-09 Richard Biener <rguenther@suse.de>
7267 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
7268 (streamer_write_tree_bitfields): Declare.
7269 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
7270 properly unpack padding.
7271 (unpack_value_fields): Inline ...
7272 (streamer_read_tree_bitfields): ... here.
7273 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
7274 and properly add padding bits.
7275 (streamer_pack_tree_bitfields): Fold into ...
7276 (streamer_write_tree_bitfields): ... this new function,
7277 exposing the bitpack object.
7278 * lto-streamer-out.c (lto_write_tree_1): Call
7279 streamer_write_tree_bitfields.
7281 2015-02-09 Richard Biener <rguenther@suse.de>
7283 PR tree-optimization/54000
7284 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
7285 (struct ivopts_data): Add loop_loc member.
7286 (tree_ssa_iv_optimize_loop): Dump loop location.
7287 (create_new_ivs): Likewise, also dump number of IVs generated.
7289 2015-02-09 Martin Liska <mliska@suse.cz>
7291 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
7292 just if not yet registered.
7293 (ipa_icf_generate_summary): Register callgraph hooks.
7295 2015-02-08 Andrew Pinski <apinski@cavium.com>
7297 * config/aarch64/aarch64.c (gty_dummy): Delete.
7299 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7302 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
7303 (cgraph_node::local_p): Remove thunk related FIXME.
7305 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7308 * i386.c (ix86_function_regparm): Look through aliases to see if callee
7309 is local and optimized.
7310 (ix86_function_sseregparm): Likewise; also use target's SSE math
7311 settings; error out instead of silently generating wrong code
7313 (init_cumulative_args): Look through aliases.
7315 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7318 * ipa-split.c (execute_split_functions): Split if function has aliases.
7320 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
7323 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
7324 aliases before trying to expand it.
7325 (cgraph_node::expand_thunk): Fix formating.
7327 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
7329 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
7330 (Using Assembly Language with C): Expand introduction.
7331 (Basic Asm): Copy-edit. Add more information about uses of
7333 (Extended Asm): Copy-edit. Document new escape syntax and
7335 (Global Reg Vars): Copy-edit.
7336 (Local Reg Vars): Likewise.
7338 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
7342 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
7343 (DBX_CONTIN_CHAR): Define.
7345 2015-02-06 Sebastian Pop <s.pop@samsung.com>
7346 Brian Rzycki <b.rzycki@samsung.com>
7348 PR tree-optimization/64878
7349 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
7350 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
7351 Stop recursion at loop phi nodes after having visited a loop phi node.
7353 2015-02-06 Jakub Jelinek <jakub@redhat.com>
7355 * toplev.c (process_options): Change flag_ipa_ra before creating
7356 optimization_{default,current}_node.
7359 * cgraphunit.c (cgraph_node::expand_thunk): If
7360 restype is not is_gimple_reg_type nor the thunk_fndecl
7361 returns aggregate_value_p, set restmp to a temporary variable
7364 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
7366 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
7368 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7371 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
7372 add a general secondary reload handler for SDmode, unless we have
7373 both read/write support for SDmode.
7375 2015-02-06 Jakub Jelinek <jakub@redhat.com>
7378 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
7379 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
7380 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
7381 1 before, push it to abstract_vec.
7382 (dwarf2out_abstract_function): Adjust caller. Don't call
7383 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
7384 DECL_ABSTRACT_P flags for all abstract_vec elts.
7386 2015-02-06 Renlin Li <renlin.li@arm.com>
7388 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
7390 * tree-ssa.c (execute_update_addresses_taken): Likewise.
7392 2015-02-06 Jeff Law <law@redhat.com>
7395 * config/h8300/h8300.c (push): New argument "in_prologue".
7396 Pass "in_prologue" along to "F".
7397 (h8300_push_pop): Corresponding changes.
7398 (h8300_expand_prologue): Likewise.
7399 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
7401 2015-02-06 Jakub Jelinek <jakub@redhat.com>
7403 PR rtl-optimization/64957
7405 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
7406 IOR rather than for AND.
7408 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
7411 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
7412 of shift-add and (add + shift) operations. Rename local variable.
7414 2015-02-05 Jeff Law <law@redhat.com>
7417 * config/h8300/constraints.md (U): Correctly dectect
7418 "eightbit_data" memory addresses.
7419 * config/h8300/h8300.c (eightbit_constant_address_p): Also
7420 handle (const (plus (symbol_ref (x)))) where x is declared
7421 as an 8-bit data memory address.
7422 * config/h8300/h8300.md (call, call_value): Correctly detect
7423 "funcvec" functions.
7426 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
7427 24 to 28 bits for the H8/300.
7429 2015-02-06 Alan Modra <amodra@gmail.com>
7432 * config/rs6000/rs6000.c (chain_already_loaded): New function.
7433 (rs6000_call_aix): Use it.
7435 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
7437 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
7440 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
7442 * config/h8300/constraints.md ("U" constraint): Use strict
7443 variant of REG_OK_FOR_BASE_P after reload has started.
7445 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
7447 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
7448 define to zero if !TARGET_NEON.
7449 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
7451 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
7452 Trevor Saunders <tsaunders@mozilla.com>
7455 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
7457 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
7460 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
7461 when removing varpool nodes.
7463 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
7466 * varpool.c (varpool_node::remove): Fix order of variables.
7468 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
7471 * ipa-inline.c (inline_small_functions): Fix ordering issue between
7472 speculation resolution and key updates.
7474 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
7476 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
7477 about not letting any speculative edges unupdated.
7479 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
7482 * gcov-io.c (gcov_var): Export.
7484 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
7487 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
7488 edges that become speculative.
7490 2015-02-04 Jakub Jelinek <jakub@redhat.com>
7492 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
7493 or DW_LANG_Fortran08.
7494 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
7496 (gen_compile_unit_die): Handle "GNU Fortran2003" and
7497 "GNU Fortran2008" language strings.
7498 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
7499 * langhooks.h (lang_GNU_Fortran): New prototype.
7500 * langhooks.c (lang_GNU_Fortran): New function.
7501 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
7504 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
7506 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
7507 (RTX_OK_FOR_OLO10_P): Likewise.
7509 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
7511 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
7513 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
7516 * gimple.c: Include gimple-ssa.h.
7517 (maybe_remove_unused_call_args): New function.
7518 * gimple.h (maybe_remove_unused_call_args): Declare.
7519 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
7520 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
7521 * gimple-fold.c (gimple_fold_call): Likewise.
7523 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
7525 PR rtl-optimization/64905
7526 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
7527 pointer alignment if it isn't needed.
7529 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
7531 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
7532 cortex-a72.cortex-a53.
7533 * config/aarch64/aarch64-tune.md: Regenerate.
7534 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
7536 2015-02-04 Nick Clifton <nickc@redhat.com>
7538 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
7541 2015-02-04 Jakub Jelinek <jakub@redhat.com>
7543 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
7544 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
7545 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
7547 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
7548 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
7549 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
7550 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
7551 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
7552 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
7553 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
7554 * tree-core.h (enum built_in_function): In between
7555 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
7556 for builtins that use DEF_BUILTIN_CHKP macro.
7558 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
7561 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
7562 operands for tcc_comparison exprs. Fix typos.
7565 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
7566 of two XORs that have an intervening AND or IOR.
7569 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
7570 simplification of XOR of AND to not allocate new rtx before
7571 committing to a simplification.
7573 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7575 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
7576 manual swaps in all peepholes.
7578 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7580 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
7581 of manual swapping implementation.
7582 (aarch64_expand_vec_perm_const_1): Likewise.
7584 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
7586 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
7587 (generic_addrcost_table): Remove NAMED_PARAM.
7588 (cortexa57_addrcost_table): Likewise.
7589 (xgene1_addrcost_table): Likewise.
7590 (generic_regmove_table): Likewise.
7591 (cortexa53_regmove_table): Likewise.
7592 (xgene1_regmove_table): Likewise.
7593 (generic_vector_table): Likewise.
7594 (cortexa57_vector_table): Likewise.
7595 (xgene1_vector_table): Likewise.
7596 (generic_tunings): Likewise.
7597 (cortexa53_tunings): Likewise.
7598 (cortexa57_tunings): Likewise.
7599 (xgene1_tunings): Likewise.
7601 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
7603 * config/arm/arm-cores.def: Add cortex-a72 and
7604 cortex-a72.cortex-a53.
7605 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
7606 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
7607 * config/arm/arm-tune.md: Regenerate.
7608 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
7609 "cortex-a72.cortex-a53".
7610 * doc/invoke.texi (ARM Options/-mtune): Likewise.
7612 2015-02-04 Nick Clifton <nickc@redhat.com>
7615 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
7617 (nonimmediate_di_operand): Likewise.
7619 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
7620 prefixes of known F5 using MSP430 MCUs.
7622 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7624 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
7625 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
7626 instead of __builtin_sqrt.
7628 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
7630 * varasm.c (do_assemble_alias): Follow transparent alias
7632 (default_assemble_visibility): Follow transparent alias
7633 chain for decl name.
7635 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
7638 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
7639 to compute size of referenced value in the constant case.
7641 2015-02-03 Jakub Jelinek <jakub@redhat.com>
7643 PR rtl-optimization/64756
7644 * cse.c (invalidate_dest): New function.
7645 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
7646 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
7647 invalidate and do not record it.
7649 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
7652 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
7653 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
7654 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
7655 atomic_nand<mode>_soft_tcb): New insns.
7656 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
7657 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
7658 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
7659 Split into atomic_not_fetchsi_hard if operands[0] is unused.
7660 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
7661 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
7662 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
7663 atomic_not<mode>_hard if operands[0] is unused.
7664 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
7665 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
7666 if operands[0] is unused.
7667 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
7668 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
7669 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
7670 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
7672 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
7673 into atomic_not<mode>_soft_tcb if operands[0] is unused.
7674 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
7675 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
7676 if operands[0] is unused.
7677 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
7678 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
7679 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
7680 atomic_nand_fetchsi_hard if operands[0] is unused.
7681 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
7682 atomic_nand<mode>_hard if operands[0] is unused.
7683 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
7684 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
7685 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
7686 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
7687 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
7688 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
7689 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
7690 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
7691 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
7692 atomic_not<mode>_hard if operands[0] is unused.
7693 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
7694 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
7696 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
7697 into atomic_not<mode>_soft_tcb if operands[0] is unused.
7698 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
7699 atomic_nand<mode>_hard if operands[0] is unused.
7700 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
7701 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
7703 2015-02-03 David Malcolm <dmalcolm@redhat.com>
7706 * Makefile.in (GCC_OBJS): Add gcc-main.o.
7707 * gcc-main.c: New file, containing "main" taken from gcc.c.
7708 * gcc.c (do_self_spec): Free decoded_options.
7709 (class driver): Move declaration to gcc.h.
7710 (main): Move declaration and implementation to new file
7712 (driver_get_configure_time_options): New function.
7713 * gcc.h (class driver): Move this declaration here, from
7715 (driver_get_configure_time_options): New declaration.
7717 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
7719 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
7720 cross-module inlining.
7721 * cgraph.h (cgraph_node): Add flag merged.
7722 * ipa-icf.c (sem_function::merge): Maintain it.
7724 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
7726 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
7727 instead of OBJECT_P.
7729 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
7732 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
7733 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
7734 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
7735 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
7737 2015-02-03 Jakub Jelinek <jakub@redhat.com>
7740 * combine.c (reg_n_sets_max): New variable.
7741 (can_change_dest_mode, reg_nonzero_bits_for_combine,
7742 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
7743 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
7744 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
7745 (rest_of_handle_combine): Initialize reg_n_sets_max.
7747 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
7749 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
7750 if some always_inline was inlined, apply changes before inlining
7753 2015-02-02 David Malcolm <dmalcolm@redhat.com>
7756 * config/arm/arm.c (arm_option_override): Set
7757 arm_selected_arch/cpu/tune to NULL on entry.
7759 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
7760 Andrew Pinski <pinskia@gcc.gnu.org>
7761 Jakub Jelinek <jakub@gcc.gnu.org>
7764 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
7765 integer typing for small model. Use IN_RANGE.
7767 2015-02-02 Richard Biener <rguenther@suse.de>
7769 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
7770 * tree-vrp.c (vrp_valueize_1): Likewise.
7772 2015-02-02 Alan Modra <amodra@gmail.com>
7774 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
7775 than mem for toc_restore.
7776 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
7777 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
7778 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
7780 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
7783 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
7784 explicit default options.
7786 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
7789 * ipa-utils.c (ipa_merge_profiles): Add release argument.
7790 * ipa-icf.c (sem_function::merge): Do not release body when merging.
7791 * ipa-utils.h (ipa_merge_profiles): Update prototype.
7793 2015-02-01 Jakub Jelinek <jakub@redhat.com>
7796 * cfgexpand.c (deep_ter_debug_map): New variable.
7797 (avoid_deep_ter_for_debug): New function.
7798 (expand_debug_expr): If TERed SSA_NAME is in
7799 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
7800 instead of trying to expand SSA_NAME's def stmt.
7801 (expand_debug_locations): When expanding debug bind
7802 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
7803 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
7805 (pass_expand::execute): Call avoid_deep_ter_for_debug on
7806 all debug bind stmts. Delete deep_ter_debug_map after
7807 expand_debug_location if non-NULL and clear it.
7809 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
7812 * config/sh/sync.md (atomic_fetch_notsi_hard,
7813 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
7814 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
7815 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
7816 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
7817 atomic_not_fetch<mode>_soft_imask): New insns.
7819 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7821 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
7822 (rank_for_schedule_debug): Split from ...
7823 (rank_for_schedule): ... this.
7824 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
7825 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
7827 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
7829 * doc/md.texi (Machine Constraints): Alphabetize table by target.
7830 * doc/extend.texi (x86 Variable Attributes): Move section to
7831 correct alphabetization after renaming.
7832 (x86 Type Attributes): Likewise.
7833 (Target Builtins): Re-alphabetize menu.
7834 (x86 Built-in Functions): Move section to correct alphabetization
7836 (x86 transactional memory intrinsics): Likewise.
7837 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
7838 and x86 Windows Options in table and menu.
7839 (x86 Options): Move section to correct alphabetization after
7841 (x86 Windows Options): Likewise.
7843 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
7845 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
7846 preferred names of the architecture and its 32- and 64-bit
7848 * doc/invoke.texi: Likewise.
7849 * doc/md.texi: Likewise.
7851 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
7854 * config/i386/predicates.md (address_no_seg_operand): Reject
7855 non-CONST_INT_P operands in invalid mode.
7857 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
7859 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
7860 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
7861 * config/i386/predicates.md (address_no_seg_operand): Call
7862 address_operand with VOIDmode.
7863 (vsib_address_operand): Ditto.
7864 (address_mpx_no_base_operand): Ditto.
7865 (address_mpx_no_index_operand): Ditto.
7867 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
7870 * lra-constraints.c (original_subreg_reg_mode): New.
7871 (simplify_operand_subreg): Try to simplify subreg of const. Use
7872 original_subreg_reg_mode for it.
7873 (swap_operands): Update original_subreg_reg_mode.
7874 (curr_insn_transform): Set up original_subreg_reg_mode.
7876 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
7879 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
7881 (process_alt_operands): Use it.
7882 (curr_insn_transform): Check the optional reload pseudo class is
7885 2015-01-30 Joseph Myers <joseph@codesourcery.com>
7887 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
7888 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
7890 * toplev.h (init_asm_output): Update comment on use of
7891 UNKNOWN_LOCATION with fatal_error.
7892 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
7893 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
7894 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
7895 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
7896 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
7897 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
7898 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
7899 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
7900 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
7901 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
7902 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
7903 fatal_error changed to pass input_location as first argument.
7905 2015-01-30 Martin Liska <mliska@suse.cz>
7907 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
7908 in #pragma GCC diagnostic guards.
7910 2015-01-30 Richard Biener <rguenther@suse.de>
7912 PR tree-optimization/64829
7913 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
7914 not add a widening conversion pattern but hand off extra
7915 widenings to callers.
7916 (vect_recog_widen_mult_pattern): Handle extra widening produced
7917 by vect_handle_widen_op_by_const.
7918 (vect_recog_widen_shift_pattern): Likewise.
7919 (vect_pattern_recog_1): Remove excess vertical space in dumping.
7920 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7921 (vect_init_vector_1): Likewise.
7922 (vect_get_vec_def_for_operand): Likewise.
7923 (vect_finish_stmt_generation): Likewise.
7924 (vectorizable_load): Likewise.
7925 (vect_analyze_stmt): Likewise.
7926 (vect_is_simple_use): Likewise.
7928 2015-01-29 Jeff Law <law@redhat.com>
7930 * combine.c (try_combine): Fix typo in comment.
7932 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
7935 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
7936 (rs6000_stack_info): Add assert.
7937 (rs6000_output_savres_externs): New function, split off from...
7938 (rs6000_output_function_prologue): ... here. Do not call it for
7941 2015-01-29 Jeff Law <law@redhat.com>
7944 * combine.c (try_combine): If I0 is a memory load and I3 a store
7945 to a related address, increase the "goodness" of doing a 4-insn
7946 combination with I0-I3.
7947 (make_field_assignment): Handle SUBREGs in the ior+and case.
7949 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
7951 PR tree-optimization/64746
7952 * tree-if-conv.c (mask_exists): New function.
7953 (predicate_mem_writes): Save created mask with given size for further
7955 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
7956 (ifcvt_repair_bool_pattern): Collect all statements that are root
7957 of bool pattern and use iterative algorithm to remove multiple uses
7958 of predicates, display number of required iterations.
7960 2015-01-29 Richard Biener <rguenther@suse.de>
7962 PR tree-optimization/64853
7963 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
7964 stmt will get simulated again.
7965 * tree-ssa-ccp.c (valueize_op_1): Likewise.
7967 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7969 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
7970 return_in_pc. Remove redundant assignments.
7971 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
7972 (arm_expand_epilogue): Don't compare boolean with true in if condition.
7974 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
7976 * config/i386/i386.c (ix86_mode_after): Make static.
7978 2015-01-29 Richard Biener <rguenther@suse.de>
7980 PR tree-optimization/64844
7981 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
7982 dump cost model analysis.
7983 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7984 Do not register adjusted load/store costs here.
7986 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
7987 Uros Bizjak <ubizjak@gmail.com>
7989 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
7990 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
7991 using x86_use_pseudo_pic_reg.
7992 * config/i386/i386.c (ix86_conditional_register_usage): Remove
7993 support for fixed PIC register.
7994 (ix86_use_pseudo_pic_reg): Not static any more.
7996 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
7999 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
8000 to avoid error in cgraph node verification.
8002 2015-01-29 Marek Polacek <polacek@redhat.com>
8004 * doc/standards.texi: Reflect that the default for C is gnu11.
8006 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
8009 * reorg.c (switch_text_sections_between_p): New function.
8010 (relax_delay_slots): Call it when testing if the jump insn
8011 is removable. Use targetm.can_follow_jump when testing if
8012 the conditional branch can follow an unconditional jump.
8014 2015-01-27 Caroline Tice <cmtice@google.com>
8016 Committing VTV Cywin/Ming patch for Patrick Wollgast
8017 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
8018 if -fvtable-verify=preinit/std is used.
8019 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
8020 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
8021 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
8022 if -fvtable-verify=preinit/std is used.
8023 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
8024 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
8025 if -fvtable-verify=preinit/std is used.
8026 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
8027 * config/i386/mingw32.h (LIB_SPEC): Likewise.
8028 * varasm.c (assemble_variable): Add code to properly set the comdat
8029 section and name for the .vtable_map_vars section in case the
8030 target is PE or COFF.
8032 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
8035 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
8036 make sane BB profile.
8037 (cgraph_node::expand_thunk): Make sane BB profile.
8038 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
8039 * cgraph.h (init_lowered_empty_function): Update prototype.
8040 * config/i386/i386.c (make_resolver_func): Update call.
8041 * predict.c (gate): Disable branch prediction pass if
8042 profile is already there.
8044 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
8046 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
8047 * opth-gen.awk: Likewise.
8048 * common.opt: Mark flag_fp_contract_mode as Optimization.
8050 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
8052 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
8053 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
8055 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
8058 * config/sh/predicates.md (atomic_arith_operand,
8059 atomic_logical_operand): Remove.
8060 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
8061 (atomic_arith_operand_0): New predicate.
8062 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
8063 Use atomic_arith_operand_0 for input values.
8064 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
8065 atomic_compare_and_swap<mode>_soft_gusa,
8066 atomic_compare_and_swap<mode>_soft_tcb,
8067 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
8068 arith_reg_operand instead of register_operand.
8069 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
8070 atomic_arith_operand_0 for newval input.
8071 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
8072 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
8073 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
8074 arith_reg_operand instead of register_operand.
8075 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
8076 fetchop_predicate_1, fetchop_constraint_1_llcs,
8077 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
8078 fetchop_constraint_1_imask): New code iterator attributes.
8079 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
8080 register_operand. Use fetchop_predicate_1.
8081 (atomic_fetch_<fetchop_name>si_hard,
8082 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
8083 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
8084 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
8085 and arith_reg_operand instead of register_operand. Use
8086 fetchop_predicate_1, fetchop_constraint_1_gusa.
8087 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
8088 and arith_reg_operand instead of register_operand. Use
8089 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
8091 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
8092 and arith_reg_operand instead of register_operand. Use
8093 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
8095 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
8096 register_operand. Use atomic_logical_operand_1.
8097 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
8098 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
8099 arith_reg_operand instead of register_operand.
8100 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
8101 Use arith_reg_dest and arith_reg_operand instead of register_operand.
8102 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
8103 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
8104 register_operand. Use fetchop_predicate_1.
8105 (atomic_<fetchop_name>_fetchsi_hard,
8106 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
8107 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
8108 fetchop_constraint_1_llcs.
8109 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
8110 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
8111 fetchop_constraint_1_gusa.
8112 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
8113 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
8114 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
8115 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
8116 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
8117 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
8118 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
8119 register_operand. Use atomic_logical_operand_1.
8120 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
8121 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
8122 arith_reg_operand instead of register_operand.
8123 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
8124 arith_reg_operand instead of register_operand. Use logical_operand
8125 and K08. Adjust asm sequence to allow R0 usage.
8126 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
8127 arith_reg_operand instead of register_operand. Use logical_operand
8130 2015-01-28 Jakub Jelinek <jakub@redhat.com>
8133 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
8134 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
8135 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
8136 only get_full_len HOST_WIDE_INTs from get_val () array rather than
8137 all bits in *val_wide.
8139 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
8141 * varpool.c (tls_model_names): Fix names.
8142 (varpool_node::dump): Dump tls- prefix for tls models.
8144 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
8145 Bernd Schmidt <bernds@codesourcery.com>
8146 Nathan Sidwell <nathan@codesourcery.com>
8148 * config/nvptx/mkoffload.c: New file.
8149 * config/nvptx/t-nvptx: Add build rules for it.
8150 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
8151 (extra_programs): Add mkoffload.
8152 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
8154 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
8156 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
8159 * cfgexpand.c (reorder_operands): Skip debug gimples.
8161 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
8163 PR tree-optimization/64277
8164 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
8165 range info when possible to refine estimation.
8167 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
8169 PR tree-optimization/64718
8170 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
8171 be a 16bit unsigned integer when n->range is 16.
8172 (bswap_replace): Convert src to that type if necessary for all bswap
8173 sizes. Fix rotation right notation in nearby comment. Use bswap_type
8174 set in pass_optimize_bswap::execute ().
8176 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
8178 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
8179 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
8180 integer and floating point variants.
8181 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
8183 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
8185 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
8186 for all vector modes.
8188 2015-01-28 Jakub Jelinek <jakub@redhat.com>
8191 * doc/sourcebuild.texi (comdat_group): Document.
8193 2015-01-28 Terry Guo <terry.guo@arm.com>
8195 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
8197 2015-01-27 David Malcolm <dmalcolm@redhat.com>
8199 * toplev.c (print_version): Add param "show_global_state", and
8200 only print GGC and plugin information if it is true.
8201 (init_asm_output): Pass in "true" for the new param when calling
8203 (process_options): Likewise.
8204 (toplev::main): Likewise.
8205 * toplev.h (print_version): Add new param to decl.
8207 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
8211 * tree.c (lookup_binfo_at_offset): New function.
8212 (get_binfo_at_offset): Use it.
8214 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
8217 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
8218 on vtable being vtable.
8220 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
8222 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
8223 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
8225 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
8226 -mno-hotpatch options. Change syntax of -mhotpatch= option.
8227 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
8229 (s390_hotpatch_trampoline_halfwords_max): Renamed.
8230 (s390_hotpatch_hw_max): New name.
8231 (s390_hotpatch_trampoline_halfwords): Renamed.
8232 (s390_hotpatch_hw_before_label): New name.
8233 (get_hotpatch_attribute): Removed.
8234 (s390_hotpatch_hw_after_label): New name.
8235 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
8237 (s390_attribute_table): Ditto.
8238 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
8239 (s390_function_num_hotpatch_hw): New name.
8240 Remove special handling of inline functions and hotpatching.
8241 Return number of nops before and after the function label.
8242 (s390_can_inline_p): Removed.
8243 (s390_asm_output_function_label): Emit a configurable number of nops
8244 after the function label.
8245 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
8246 (TARGET_CAN_INLINE_P) Removed.
8247 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
8249 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8250 Jiong Wang <jiong.wang@arm.com>
8252 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
8254 (cb<optab><mode>1): Likewise.
8255 * config/aarch64/iterators.md (bcond): New define_code_attr.
8257 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8259 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
8262 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8264 * config/s390/s390.c (s390_register_move_cost): Increase costs for
8267 2015-01-27 Richard Biener <rguenther@suse.de>
8269 * tree-vrp.c (update_value_range): Intersect the range with
8270 old recorded SSA name range information.
8272 2015-01-27 Nick Clifton <nickc@redhat.com>
8274 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
8275 BC, DE and HL registers directly, not via AX.
8276 When decrementing the stack pointer by a large amount, transfer SP
8277 into AX and perform the subtraction there.
8278 (rl78_expand_epilogue): Perform the inverse of the above
8281 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8283 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
8285 2015-01-27 Jakub Jelinek <jakub@redhat.com>
8286 Yury Gribov <y.gribov@samsung.com>
8289 * ubsan.c (ubsan_source_location): Refactor code.
8290 (ubsan_type_descriptor): Update type size. Refactor code.
8292 2015-01-27 Richard Biener <rguenther@suse.de>
8294 PR tree-optimization/56273
8295 PR tree-optimization/59124
8296 PR tree-optimization/64277
8297 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
8298 from the first VRP pass.
8300 2015-01-27 Jakub Jelinek <jakub@redhat.com>
8303 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
8304 handle the first argument in the same loop as all the other arguments.
8306 PR rtl-optimization/61058
8307 * jump.c (cleanup_barriers): Update basic block boundaries
8308 if BLOCK_FOR_INSN is non-NULL on PREV.
8310 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
8312 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
8313 bounds narrowing, already instrumented calls and calls to
8314 not instrumentable functions.
8316 2015-01-27 Jakub Jelinek <jakub@redhat.com>
8318 PR tree-optimization/64807
8319 * wide-int.cc (wi::divmod_internal): Clear
8320 b_dividend[dividend_blocks_needed].
8322 2015-01-26 DJ Delorie <dj@redhat.com>
8324 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
8325 volatile memory references.
8327 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
8330 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
8332 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
8333 shifts if it already fits into K08.
8335 2015-01-26 Jakub Jelinek <jakub@redhat.com>
8338 * ipa-inline.c (inline_small_functions): Print "unknown" even
8339 if edge->call_stmt is non-NULL, but has builtins or unknown
8343 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
8344 with asterisk, skip the first character.
8346 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
8349 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
8352 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
8355 * config/i386/i386.md (*movdi_internal): Also check operand 0
8356 to determine TYPE_LEA operand.
8357 (*movsi_internal): Ditto.
8359 2015-01-26 Jakub Jelinek <jakub@redhat.com>
8361 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
8362 OPTION_MASK_QUAD_MEMORY_ATOMIC.
8364 2015-01-26 Renlin Li <renlin.li@arm.com>
8366 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
8368 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
8371 2015-01-26 Richard Biener <rguenther@suse.de>
8374 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
8375 combining two BIT_AND_EXPR predicates.
8377 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
8380 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
8382 2015-01-26 Terry Guo <terry.guo@arm.com>
8384 * config/arm/arm.c (arm_file_start): Update the assignment of
8387 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
8389 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
8391 config/arm/arm.md: Include the new Cortex-A57 model.
8392 (generic_sched): Don't use generic_sched when tuning for
8395 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
8396 Uros Bizjak <ubizjak@gmail.com>
8398 * config/i386/i386.c (get_builtin_code_for_version): Add
8399 support for BMI and BMI2 multiversion functions.
8401 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8403 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
8404 (extract_bit_field): Likewise.
8405 (extract_low_bits): Likewise.
8406 (expand_mult): Likewise.
8407 (expand_mult_highpart_adjust): Likewise.
8409 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
8411 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
8412 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
8413 * config/i386/i386.c (processor_model): Add
8414 M_INTEL_COREI7_BROADWELL.
8415 (arch_names_table): Add "broadwell".
8417 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
8426 * config/sh/sh-protos.h
8427 (sh_extending_set_of_reg::can_use_as_unextended_reg,
8428 sh_extending_set_of_reg::use_as_unextended_reg,
8429 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
8430 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
8431 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
8432 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
8433 (sh_treg_insns): New class.
8434 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
8435 (scope_counter): New class.
8436 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
8437 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
8438 sh_extending_set_of_reg::can_use_as_unextended_reg,
8439 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
8440 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
8441 sh_split_treg_set_expr): New functions.
8442 (addsubcosts): Handle treg_set_expr.
8443 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
8444 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
8445 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
8446 (sh_insn_operands_modified_between_p): Make non-static.
8447 * config/sh/predicates.md (zero_extend_movu_operand): Allow
8448 simple_mem_operand in addition to displacement_mem_operand.
8449 (zero_extend_operand): Don't allow zero_extend_movu_operand.
8450 (treg_set_expr, treg_set_expr_not_const01,
8451 arith_reg_or_treg_set_expr): New predicates.
8452 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
8453 arith_or_int_operand instead of logical_operand. Convert to
8454 insn_and_split. Try to optimize constant operand in splitter.
8455 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
8456 (*tstqi_t_zero): Delete.
8457 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
8458 (tstsi_t_and_not): Delete.
8459 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
8460 Convert to insn_and_split.
8461 (unnamed split, tstsi_t_zero_extract_xor,
8462 tstsi_t_zero_extract_subreg_xor_little,
8463 tstsi_t_zero_extract_subreg_xor_big): Delete.
8464 (*tstsi_t_shift_mask): New insn_and_split.
8465 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
8466 to recombine with surrounding insns when splitting.
8467 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
8468 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
8469 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
8470 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
8471 (*cbranch_div0s: Delete.
8472 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
8473 Try to recombine with surrounding insns when splitting. Add operand
8475 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
8476 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
8477 *addc_r_r_msb, *addc_2r_msb): Delete.
8478 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
8480 (*addc_negreg_t): New insn_and_split.
8481 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
8482 Try to recombine with surrounding insns when splitting.
8483 Add operand order variants.
8484 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
8485 insn_and_split patterns.
8486 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
8487 surrounding insns when splitting.
8488 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
8489 (*rotcl): Likewise. Add zero_extract variant.
8490 (*ashrsi2_31): New insn_and_split.
8491 (*negc): Convert to insn_and_split. Use treg_set_expr.
8492 (*zero_extend<mode>si2_disp_mem): Update comment.
8493 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
8495 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
8496 with surrounding insns when splitting.
8497 (any_treg_expr_to_reg): New insn_and_split.
8498 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
8499 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
8500 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
8501 *zero_extract_2): New single bit zero extract patterns.
8502 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
8503 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
8504 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
8505 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
8507 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
8508 register_operand for set source.
8510 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
8512 * i386.opt (prefetch_sse): New targetsave.
8513 * i386.c (ix86_function_specific_save): Save prefetch_sse.
8514 (ix86_function_specific_restore): Restore prefetch_sse and initialize
8515 ix86_cost/ix86_tune_cost.
8517 2015-01-23 David Malcolm <dmalcolm@redhat.com>
8519 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
8520 Support the JIT by using 0 as the language type.
8522 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
8525 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
8526 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
8527 (mark_regno_live, process_bb_lives): Pass new parameter value to
8528 make_hard_regno_born.
8530 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8532 PR rtl-optimization/63637
8533 PR rtl-optimization/60663
8534 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
8535 if elt->cost is MAX_COST for ASM_OPERANDS.
8536 (find_sets_in_insn): Fix up comment typo.
8537 (cse_insn): Don't set src_volatile for all non-volatile
8538 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
8539 or with "memory" clobber. Set elt->cost to MAX_COST
8540 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
8541 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
8543 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
8545 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
8548 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
8550 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
8551 libgcc/config/i386/elf-lib.h.
8553 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8556 * gcc.c (print_configuration): Don't print a blank line at the end
8558 (run_attempt): ... but here unstead.
8561 * omp-low.c (scan_sharing_clauses): Don't ignore
8562 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
8563 on target data/update constructs.
8565 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
8568 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
8569 (DEBUG_RELOAD): Removed define.
8570 (m32c_limit_reload_class): Enable traces with if DEBUG0.
8571 (m32c_function_arg): Added a type cast.
8572 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
8573 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
8574 * config/m32c/bitops.md (andqi3_16): Likewise.
8575 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
8576 (push_a01_l): Likewise.
8578 2015-01-23 David Malcolm <dmalcolm@redhat.com>
8581 * main.c (main): Construct toplev instances with init_signals=true.
8582 * toplev.c (general_init): Add param "init_signals", and use it to
8583 conditionalize the calls to signal and host_hooks.extra_signals.
8584 (toplev::toplev): Add param "init_signals".
8585 (toplev::main): When invoking general_init, pass m_init_signals
8586 to control whether signal-handlers are installed.
8587 * toplev.h (toplev::toplev): Add param "init_signals".
8588 (toplev::m_init_signals): New field.
8590 2015-01-23 David Malcolm <dmalcolm@redhat.com>
8593 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
8594 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
8595 latter may be affected by the former (e.g. on i686).
8597 2015-01-23 Martin Liska <mliska@suse.cz>
8599 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
8600 false positive during profiledbootstrap.
8602 2015-01-23 Tom de Vries <tom@codesourcery.com>
8605 * lto-opts.c (lto_write_options): Output non-explicit conservative
8607 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
8608 (append_compiler_options): Pass -fopenacc through.
8610 2015-01-23 Tom de Vries <tom@codesourcery.com>
8613 * lto-opts.c (lto_write_options): Output non-explicit conservative
8615 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
8616 (append_compiler_options): Pass -fopenmp through.
8618 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8621 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
8624 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
8625 * diagnostic.def (DK_ICE_NOBT): New kind.
8626 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
8627 like DK_ICE, but never print backtrace.
8628 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
8629 (internal_error_no_backtrace): New function.
8630 * gcc.c (execute): Use internal_error_no_backtrace instead of
8633 2015-01-22 Jeff Law <law@redhat.com>
8636 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
8637 improve code density for small immediate to memory case.
8638 (insv): Better handle bitfield assignments when the field is
8639 being set to all ones.
8640 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
8643 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8644 Jakub Jelinek <jakub@redhat.com>
8647 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
8648 for !TARGET_LIBC_PROVIDES_SSP version and
8649 -fstack-protector-{all,strong,explicit} otherwise.
8650 * config/freebsd.h (LINK_SSP_SPEC): Handle
8651 -fstack-protector-{strong,explicit}.
8653 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
8654 H.J. Lu <hongjiu.lu@intel.com>
8657 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
8660 2015-01-22 Wei Mi <wmi@google.com>
8662 PR rtl-optimization/64557
8663 * dse.c (record_store): Call get_addr for mem_addr.
8664 (check_mem_read_rtx): Likewise.
8666 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
8668 * fold-const.c (const_binop): Add early return for non-tcc_binary.
8670 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
8672 * toplev.c (init_local_tick): Process the failure when read
8673 fails for random_seed.
8675 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
8676 'pretty_name' to avoid memory overflow.
8678 2015-01-22 Richard Biener <rguenther@suse.de>
8681 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
8682 abnormal coalescing on undefined SSA names.
8684 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
8688 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
8690 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
8692 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
8695 * fold-const.c (fold_checksum_tree): Don't include value of
8696 expr->decl_with_vis.symtab_node in the checksum.
8698 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8700 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
8702 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
8705 * gcc.c (insert_comments): New function.
8706 (try_generate_repro): Call it.
8707 (append_text): Removed.
8709 2015-01-22 Richard Biener <rguenther@suse.de>
8711 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
8712 with IL incompatible options. Properly honor user optimize
8715 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
8717 PR rtl-optimization/64682
8718 * combine.c (distribute_notes): When moving a death note for
8719 a register that is set in the new I2, make sure to put it
8722 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
8724 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
8727 2015-01-21 Jakub Jelinek <jakub@redhat.com>
8730 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
8731 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
8732 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
8735 * doc/invoke.texi (-fsanitize=vptr): Document.
8737 PR rtl-optimization/62078
8738 * dse.c: Include cfgcleanup.h.
8739 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
8740 anything call purge_all_dead_edges and cleanup_cfg at the end
8743 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
8745 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
8748 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8750 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
8753 2015-01-21 David Sherwood <david.sherwood@arm.com>
8754 Tejas Belagod <Tejas.Belagod@arm.com>
8756 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
8757 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
8758 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
8761 2015-01-21 David Sherwood <david.sherwood@arm.com>
8762 Tejas Belagod <Tejas.Belagod@arm.com>
8764 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
8765 (aarch64_reverse_mask): New decls.
8766 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
8767 (insn_count): New mode_attr.
8768 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
8769 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
8770 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
8771 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
8772 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
8773 (aarch64_simd_st4): New patterns.
8774 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
8775 (aarch64_reverse_mask): New functions.
8777 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
8779 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
8781 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
8782 addressing modes for BE.
8783 (aarch64_print_operand): Add 'R' specifier.
8784 (aarch64_simd_disambiguate_copy): Delete.
8785 (aarch64_simd_emit_reg_reg_move): New function.
8786 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
8787 in define_splits for structural moves.
8788 (mov<mode>): Use less restrictive predicates.
8789 (*aarch64_mov<mode>): Simplify and only allow for LE.
8790 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
8792 2015-01-21 Alan Hayward <alan.hayward@arm.com>
8794 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
8796 2015-01-21 Richard Henderson <rth@redhat.com>
8799 * ccmp.c (used_in_cond_stmt_p): Remove.
8800 (expand_ccmp_expr): Don't use it.
8802 2015-01-21 Nick Clifton <nickc@redhat.com>
8804 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
8807 2015-01-21 Richard Biener <rguenther@suse.de>
8810 * tree-core.h (builtin_info, builtin_info_type): Turn from
8811 an object with two arrays into an array of an object with
8812 decl and two flags, implicit_p and declared_p.
8813 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
8814 set_builtin_decl, set_builtin_decl_implicit_p,
8815 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
8816 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
8817 * builtins.c (builtin_info): Adjust.
8818 * gimplify.c (gimplify_addr_expr): References to builtins
8819 that have been declared by the user makes them eligible for
8820 use by the compiler. Call set_builtin_decl_implicit_p on them.
8822 2015-01-20 Jeff Law <law@redhat.com>
8825 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
8826 allow pc-relative addresses in operand predicates or constraints.
8828 2015-01-21 Bin Cheng <bin.cheng@arm.com>
8830 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
8831 neon on aarch32 processors for stringops.
8833 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
8836 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
8838 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
8841 * ipa-inline.c: Include lto-streamer.h
8842 (report_inline_failed_reason): Output source file differences and
8843 flags on optimization/target node mismatch.
8844 (can_inline_edge_p): Consider caller to be the outer inline function;
8845 be less restrictive about matching opimize and optimize_size attributes.
8846 (inline_account_function_p): Break out from ...
8847 (inline_small_functions): ... here.
8848 * ipa-inline-transform.c (clone_inlined_nodes): Use
8849 inline_account_function_p.
8850 (inline_call): Use optimize attribution; use inline_account_function_p.
8851 (inline_transform): Use opt_for_fn.
8852 * ipa-inline.h (inline_account_function_p): Declare.
8854 2015-01-20 Jakub Jelinek <jakub@redhat.com>
8857 * dwarf2out.c (decl_piece_node): Don't put bitsize into
8858 mode if bitsize <= 0.
8859 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
8860 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
8861 sizes and positions.
8863 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
8865 * config/nios2/nios2.c (nios2_asm_file_end): Implement
8866 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
8868 (TARGET_ASM_FILE_END): Define.
8870 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8872 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
8873 (struct tune_params): Use the enum.
8874 * arm.c (arm_*_tune): Update.
8875 (arm_option_override): Update.
8877 2015-01-20 Richard Biener <rguenther@suse.de>
8880 * ipa-reference.c (add_static_var): Inline ...
8881 (analyze_function): ... here after splitting out from ...
8882 (is_proper_for_analysis): ... this.
8884 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
8887 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
8888 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
8889 replace the conditional with it's true branch.
8890 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
8891 (arm_lra_p): Remove.
8893 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
8895 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
8897 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8899 * config/tilegx/mul-tables.c: Move symtab.h include after
8900 coretypes.h include.
8901 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
8902 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
8903 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
8904 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
8905 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
8907 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
8911 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
8913 PR rtl-optimization/64081
8914 * loop-iv.c (def_pred_latch_p): New function.
8915 (latch_dominating_def): Allow specific cases with non-single
8917 (iv_get_reaching_def): Likewise.
8918 (check_complex_exit_p): New function.
8919 (check_simple_exit): Use check_complex_exit_p to allow certain cases
8920 with exits not executing on any iteration.
8922 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
8925 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
8928 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
8931 * i386.c (gate): Check flag_expensive_optimizations and
8933 (ix86_option_override_internal): Drop optimize_size condition
8934 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
8935 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
8937 (ix86_avx256_split_vector_move_misalign,
8938 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
8939 * sse.md (all uses of TARGET_PREFER_AVX128): Add
8940 optimize_insn_for_speed_p check.
8942 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
8944 * config/mips/mips.h (FP_ASM_SPEC): New define.
8945 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
8948 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
8951 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
8952 nullptr for insn when reaching the first insn.
8953 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
8954 (sh_insn_operands_modified_between_p): Add nullptr check.
8955 (sh_find_extending_set_of_reg): Fix log message. Don't accept
8956 sign extending mem load if the insn contains any UNSPEC or
8959 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
8961 * params.def (inline-unit-growth): Drop to 15%.
8962 * invoke.texi (inline-unit-growth): Document change.
8964 2015-01-19 Martin Liska <mliska@suse.cz>
8967 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
8968 function for second argument of OBJ_TYPE_REF.
8970 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
8973 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
8974 whether function is an alias.
8976 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
8978 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
8981 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
8983 PR rtl-optimization/64671
8984 * lra-remat.c (operand_to_remat): Don't consider jump and call
8987 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
8990 * config/rs6000/default64.h: Include rs6000-cpus.def.
8991 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
8992 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
8993 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
8995 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
8997 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
8998 pseudo-op to specify assembler dialect.
9000 2015-01-19 Martin Liska <mliska@suse.cz>
9003 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
9004 Handle safe potentially removed nodes during filtering.
9006 2015-01-19 Martin Liska <mliska@suse.cz>
9008 * doc/extend.texi (no_icf): Add new attribute description.
9009 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
9010 where the pass attempts to merge a function with no_icf attribute.
9012 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9015 * doc/md.texi (ARM Options): Document register constraints.
9017 2015-01-19 Jiong Wang <jiong.wang@arm.com>
9018 Andrew Pinski <apinski@cavium.com>
9021 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
9022 (ashl<mode>3): Don't expand if operands[2] is not constant.
9024 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9027 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
9028 Match xor-and-xor RTL pattern.
9030 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
9032 PR rtl-optimization/64081
9033 * loop-iv.c (def_pred_latch_p): New function.
9034 (latch_dominating_def): Allow specific cases with non-single
9036 (iv_get_reaching_def): Likewise.
9037 (check_complex_exit_p): New function.
9038 (check_simple_exit): Use check_complex_exit_p to allow certain cases
9039 with exits not executing on any iteration.
9041 2015-01-19 Jakub Jelinek <jakub@redhat.com>
9043 * common.opt (fgraphite): Fix a typo.
9045 2015-01-19 Felix Yang <felix.yang@huawei.com>
9047 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
9049 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
9050 uminp, smax_nanp, smin_nanp): New builtins.
9051 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
9052 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
9053 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
9054 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
9055 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
9056 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
9057 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
9058 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
9059 vpminnms_f32): Rewrite using builtin functions.
9061 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
9064 * omp-low.c (offload_symbol_decl): Remove variable.
9065 (get_offload_symbol_decl): Remove function.
9066 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
9067 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
9068 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
9069 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
9070 BUILT_IN_GOACC_UPDATE don't pass it at all.
9072 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
9074 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
9077 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
9079 * ipa-chkp.c (chkp_produce_thunks): Add early param
9080 to split thunks production into two passes. Keep
9081 'always_inline' function bodies after the first pass.
9082 (pass_data_ipa_chkp_early_produce_thunks): New.
9083 (pass_ipa_chkp_early_produce_thunks): New.
9084 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
9085 chkp_produce_thunks signature.
9086 (make_pass_ipa_chkp_early_produce_thunks): New.
9087 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
9088 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
9089 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
9091 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
9093 * cgraph.c (cgraph_node::dump): Dump profile flags.
9095 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
9098 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
9099 reg appear first in the parallel.
9101 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
9103 * ipa-reference.c (set_reference_optimization_summary,
9104 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
9106 (ignore_module_statics): New static var.
9107 (propagate_bits): If ipa-reference is disabled, do not look into local
9109 (analyze_function): Disable analysis when ipa_reference is disabled.
9110 (generate_summary): Do not dump when reference is disabled;
9111 collect vars accessed from functions with ipa-reference disabled.
9112 (get_read_write_all_from_node): When ipa-reference is disabled, use the
9114 (gate): Enable for LTO.
9115 (ignore_edge_p): New function.
9116 (propagate): Skip functions w/o ipa-reference analysis.
9117 * optc-save-gen.awk: Handle optimize_debug correctly.
9118 * opth-gen.awk: Likewise.
9119 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
9120 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
9121 fira-share-save-slots, fira-share-spill-slots,
9122 fmodulo-sched-allow-regmoves, fpartial-inlining,
9123 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
9124 ftracer, ftree-parallelize-loops, fassociative-math,
9125 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
9127 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
9128 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
9130 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
9133 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
9136 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
9138 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
9140 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
9142 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
9143 Remove duplicate option listings.
9145 2015-01-18 Felix Yang <felix.yang@huawei.com>
9147 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
9148 (autofdo_source_profile::get_callsite_total_count,
9149 function_instance::get_function_instance_by_decl,
9150 string_table::get_index, string_table::get_index_by_decl,
9151 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
9152 Fix comment typos. Reformatting and minor code rearrangement.
9154 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
9156 * config/rs6000/rs6000.md (probe_stack): Delete.
9157 (probe_stack_address): New.
9159 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
9161 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
9162 to test for 32-bit ABIs, not !TARGET_POWERPC64.
9164 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
9166 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
9167 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
9168 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
9170 (rs6000_libcall_value): Use the new function.
9172 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
9174 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
9176 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
9178 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
9179 implement a more precise life analysis for it during backward scan.
9181 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9183 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
9185 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
9187 PR rtl-optimization/52773
9188 * calls.c (emit_library_call_value): When pushing arguments use
9189 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
9190 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
9191 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
9193 2015-01-17 Jeff Law <law@redhat.com>
9195 PR rtl-optimization/32790
9196 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
9197 not ZERO_EXTEND in SET_DESTs.
9199 2015-01-17 Alan Modra <amodra@gmail.com>
9201 * cprop.c (do_local_cprop): Revert last change.
9203 2015-01-16 DJ Delorie <dj@redhat.com>
9204 Nick Clifton <nickc@redhat.com>
9206 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
9207 (addhi3_real): Likewise. Fix [HL+0] syntax.
9208 (subqi3_real): Likewise.
9209 (subhi3_real): Likewise.
9210 (cbranchqi4_real): Likewise. Allow saddr,#imm.
9211 (cbranchhi4_real): Likewise.
9212 (cbranchhi4_real_inverted): Likewise.
9213 (cbranchsi4_real_lt): Likewise.
9214 (cbranchsi4_real_ge): Likewise.
9215 (cbranchsi4_real_ge): Likewise.
9216 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
9217 (sub<mode>3_virt): Likewise.
9218 (cbranchqi4_virt): Likewise.
9219 (cbranchhi4_virt): Likewise.
9220 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
9221 always use '[reg+imm]' even when imm is zero.
9222 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
9223 (rl78_general_operand): New.
9224 (rl78_nonimmediate_operand): New.
9225 (rl78_nonfar_operand): Use them.
9226 (rl78_nonfar_nonimm_operand): Likewise.
9227 (rl78_stack_based_mem): Fix.
9228 * config/rl78/constraints.md (Ibqi): New.
9233 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
9236 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
9238 * config/rl78/constrains (Qs8): New constraint.
9239 * config/rl78/rl78.c (rl78_flags_already_set): New function.
9240 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
9241 * config/rl78/rl78-real.md (update_Z): New attribute.
9242 Update patterns to set it.
9243 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
9244 shorter compare and branch sequence can be used.
9245 (cbranchhi4_real): Likewise.
9246 (cbranchhi4_real_inverted): Likewise.
9248 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
9249 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
9251 * config/rl78/rl78.c (rl78_get_name_encoding): New.
9252 (rl78_option_override): Allow -mes0 only if C.
9253 (characterize_address): Support subregs of symbol_refs.
9254 (rl78_addr_space_address_mode): Move. Add __near.
9255 (rl78_far_p): Likewise.
9256 (rl78_addr_space_pointer_mode): Likewise.
9257 (rl78_as_legitimate_address): Likewise.
9258 (rl78_addr_space_subset_p): Likewise.
9259 (rl78_addr_space_convert): Likewise.
9260 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
9262 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
9264 (rl78_alloc_physical_registers_op1): Change logic to prefer
9265 symbol[BC] addressing.
9266 (frodata_section): New.
9267 (rl78_asm_init_sections): Initialize it.
9268 (rl78_select_section): Put __far readonly symbols in .frodata.
9269 (rl78_make_type_far): New.
9270 (rl78_insert_attributes): Force all readonly symbols to be
9272 (rl78_asm_out_integer): New.
9273 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
9274 * config/rl78/rl78.opt (-mes0): New.
9276 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
9277 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
9278 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
9279 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
9280 (rl78_saddr_p): New.
9281 (rl78_output_aligned_common): New.
9282 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
9283 (rl78_handle_saddr_attribute): New.
9284 (rl78_handle_naked_attribute): New.
9285 (rl78_attribute_table): Add saddr.
9286 (rl78_print_operand_1): Don't print '!' on saddr operands.
9287 (rl78_print_operand_1): Strip encodings.
9289 (rl78_strip_name_encoding): New.
9290 (rl78_attrlist_to_encoding): New.
9291 (rl78_encode_section_info): New.
9292 (rl78_asm_init_sections): New.
9293 (rl78_select_section): New.
9294 (rl78_output_labelref): New.
9295 (rl78_output_aligned_common): New.
9296 (rl78_asm_out_integer): New.
9297 (rl78_asm_ctor_dtor): New.
9298 (rl78_asm_constructor): New.
9299 (rl78_asm_destructor): New.
9301 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
9302 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
9303 (transcode_memory_rtx): Update.
9304 (rl78_expand_epilogue): Use A_REG instead of 0.
9306 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9308 * config/arm/arm-protos.h (struct tune_params): New field
9309 sched_autopref_queue_depth.
9310 * config/arm/arm.c (sched-int.h): Include header.
9311 (arm_first_cycle_multipass_dfa_lookahead_guard,)
9312 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
9313 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
9314 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
9315 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
9316 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
9317 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
9318 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
9319 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
9320 * config/arm/t-arm (arm.o): Update.
9321 * haifa-sched.c (update_insn_after_change): Update.
9322 (rank_for_schedule): Use auto-prefetcher model, if requested.
9323 (autopref_multipass_init): New static function.
9324 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
9325 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
9326 variable for debug dumps.
9327 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
9328 (autopref_multipass_dfa_lookahead_guard): New global function that
9329 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
9330 (init_h_i_d): Update.
9331 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
9332 * sched-int.h (enum autopref_multipass_data_status): New const enum.
9333 (autopref_multipass_data_): Structure for auto-prefetcher data.
9334 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
9335 (struct _haifa_insn_data:autopref_multipass_data): New field.
9336 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
9337 (autopref_multipass_dfa_lookahead_guard): Declare.
9339 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9341 * rtlanal.c (get_base_term): Handle SCRATCH.
9343 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9345 * config/aarch64/aarch64.c
9346 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
9347 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
9349 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
9350 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
9352 2015-01-17 Alan Modra <amodra@gmail.com>
9354 * cprop.c (do_local_cprop): Disallow replacement of fixed
9357 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9360 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
9363 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
9365 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
9366 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
9368 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9370 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
9371 * config/arm/thumb1.md: ... Here.
9373 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
9375 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
9376 TImode for TARGET_32BIT.
9378 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
9380 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
9381 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
9383 (rs6000_abi_word_mode): New function.
9385 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
9387 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
9388 instead of UNITS_PER_WORD to describe the size of stack slots.
9390 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
9392 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
9393 as rs6000_promote_function_mode. Move comment to there.
9394 (rs6000_promote_function_mode): New function.
9396 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
9398 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
9399 -mpowerpc64 is active.
9401 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
9404 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
9407 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
9409 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
9410 introduced in revision 219724.
9412 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9413 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9416 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
9417 destination is not a GP reg.
9418 (*movdi_aarch64): Likewise.
9420 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
9423 * config/rs6000/default64.h: Revert ISA change.
9425 2015-01-16 Richard Biener <rguenther@suse.de>
9428 * tree-ssa-uninit.c: Include tree-cfg.h.
9429 (MAX_SWITCH_CASES): New define.
9430 (convert_control_dep_chain_into_preds): Handle switch statements.
9431 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
9432 (normalize_one_pred_1): Do not split bit-manipulations.
9435 2015-01-16 Richard Biener <rguenther@suse.de>
9437 PR tree-optimization/64568
9438 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
9439 complex load rewriting for TARGET_MEM_REFs.
9441 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
9443 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
9445 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
9448 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
9450 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
9451 (aarch64_lra_p): Remove.
9453 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
9456 * ipa-chkp.h (chkp_instrumentable_p): New.
9457 * ipa-chkp.c: Include tree-inline.h.
9458 (chkp_instrumentable_p): New.
9459 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
9460 Fix processing of not instrumentable functions.
9461 (chkp_versioning): Use chkp_instrumentable_p. Warn about
9462 not instrumentable functions.
9463 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
9464 chkp_instrumentable_p.
9465 * tree-inline.h (copy_forbidden): New.
9466 * tree-inline.c (copy_forbidden): Not static anymore.
9468 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9470 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
9473 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
9475 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
9476 type OP_OUT to OP_INOUT.
9478 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
9480 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
9481 (high x) y) to y if x and y have the same base.
9483 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
9485 * config/arm/cortex-a57.md: New.
9486 * config/aarch64/aarch64.md: Include it.
9487 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
9488 * config/aarch64/aarch64-tune.md: Regenerate.
9490 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
9493 * ccmp.c (expand_ccmp_next): New function.
9494 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
9495 and compare insn sequence.
9496 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
9497 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
9498 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
9499 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
9500 (*ccmp_ior): Changed to ccmp_ior<mode>.
9501 (cmp<mode>): New pattern.
9502 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
9504 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
9506 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
9508 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
9509 _mm256_bsrli_epi128): New.
9510 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
9512 2015-01-15 Jiong Wang <jiong.wang@arm.com>
9514 * expmed.c (store_bit_field_using_insv): Improve warning message.
9515 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
9517 2015-01-15 Jiong Wang <jiong.wang@arm.com>
9519 PR rtl-optimization/64011
9520 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
9521 there is partial overflow.
9523 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
9525 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
9527 (nds32_expand_epilogue_v3pop): Likewise.
9528 * config/nds32/nds32.md (sibcall): Define this for sibling call
9530 (sibcall_register): Likewise.
9531 (sibcall_immediate): Likewise.
9532 (sibcall_value): Likewise.
9533 (sibcall_value_register): Likewise.
9534 (sibcall_value_immediate): Likewise.
9535 (sibcall_epilogue): Likewise.
9536 (epilogue): Pass false to indicate this is not a sibcall epilogue.
9537 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
9538 (nds32_expand_epilogue_v3pop): Likewise.
9540 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
9542 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
9543 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
9544 (return_internal): New.
9545 (return): Define this named pattern.
9546 (simple_return): Define this named pattern.
9547 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
9548 pattern instead of unspec_volatile_func_return.
9549 (nds32_expand_epilogue_v3pop): Likewise.
9550 (nds32_can_use_return_insn): New function.
9552 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
9554 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
9555 * config/nds32/nds32.md (pop25return): New.
9556 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
9557 pop25return pattern.
9559 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
9561 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
9562 -mforbid-fp-as-gp, and -mex9 options.
9564 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
9566 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
9567 remove -mgp-direct option.
9569 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
9571 * doc/invoke.texi (--param early-inlining-insns): Update default value.
9572 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
9574 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
9576 * ipa-inline.c (inline_small_functions): Work around hints
9579 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
9582 * doc/invoke.texi (Option Summary): Document new Nios II
9584 (Nios II Options): Likewise.
9585 * config/nios2/nios2.opt: Add -mgpopt= option support.
9586 Modify existing -mgpopt and -mno-gpopt options to be aliases.
9587 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
9588 * config/nios2/nios2.c (nios2_option_override): Adjust
9590 (nios2_in_small_data_p): Return true for explicit small data
9591 sections even with -G0.
9592 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
9595 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
9598 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
9600 (inline_call): Fix removal of aliases.
9602 2015-01-15 Jakub Jelinek <jakub@redhat.com>
9604 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
9605 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
9606 * opts.c (common_handle_option): Add -fsanitize=vptr.
9607 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
9608 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
9609 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
9610 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
9611 (ubsan_expand_vptr_ifn): New prototype.
9612 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
9613 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
9614 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
9615 expand_LOOP_VECTORIZED): Make argument nameless, remove
9617 (expand_UBSAN_VPTR): New function.
9618 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
9620 (UBSAN_VPTR): New internal function.
9621 * sanopt.c (tree_map_traits): Renamed to ...
9622 (sanopt_tree_map_traits): ... this.
9623 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
9624 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
9625 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
9626 (maybe_optimize_ubsan_vptr_ifn): New function.
9627 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
9628 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
9630 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
9631 internal calls like pure functions for aliasing, even when they
9632 have other side-effects that prevent making them ECF_PURE.
9633 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
9634 (ubsan_expand_vptr_ifn): New function.
9636 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
9638 PR rtl-optimization/64110
9639 * stmt.c (parse_output_constraint): Process '^' and '$'.
9640 (parse_input_constraint): Ditto.
9641 * lra-constraints.c (process_alt_operands): Process the new
9643 * ira-costs.c (record_reg_classes): Process the new constraint
9645 * genoutput.c (indep_constraints): Add '^' and '$'.
9646 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
9647 * doc/md.texi: Add description of the new constraints.
9649 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
9650 Bernd Schmidt <bernds@codesourcery.com>
9651 Cesar Philippidis <cesar@codesourcery.com>
9652 James Norris <jnorris@codesourcery.com>
9653 Tom de Vries <tom@codesourcery.com>
9654 Ilmir Usmanov <i.usmanov@samsung.com>
9655 Dmitry Bocharnikov <dmitry.b@samsung.com>
9656 Evgeny Gavrin <e.gavrin@samsung.com>
9657 Jakub Jelinek <jakub@redhat.com>
9659 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
9660 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
9661 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
9663 * builtins.c: Include "gomp-constants.h".
9664 (expand_builtin_acc_on_device): New function.
9665 (expand_builtin, is_inexpensive_builtin): Handle
9666 BUILT_IN_ACC_ON_DEVICE.
9667 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
9669 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
9671 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
9672 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
9673 i386/intelmic-offload.h.
9674 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
9675 to libgomp and its dependencies.
9676 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
9677 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
9678 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
9679 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9680 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9681 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9682 * doc/generic.texi: Update for OpenACC changes.
9683 * doc/gimple.texi: Likewise.
9684 * doc/invoke.texi: Likewise.
9685 * doc/sourcebuild.texi: Likewise.
9686 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
9687 GF_OMP_FOR_KIND_OACC_LOOP.
9688 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
9689 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
9690 GF_OMP_TARGET_KIND_OACC_UPDATE,
9691 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
9693 * gimple.c: Update comments for OpenACC changes.
9694 * gimple.def: Likewise.
9695 * gimple.h: Likewise.
9696 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
9697 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
9698 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
9699 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
9700 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
9702 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
9703 * gimplify.c: Include "gomp-constants.h".
9704 Update comments for OpenACC changes.
9705 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
9706 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
9707 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
9708 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
9709 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
9710 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
9711 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
9712 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
9713 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
9715 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
9716 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
9717 OMP_CLAUSE_SET_MAP_KIND.
9718 (gimplify_oacc_cache): New function.
9719 (gimplify_omp_for): Handle OACC_LOOP.
9720 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
9722 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
9723 OACC_EXIT_DATA, OACC_UPDATE.
9724 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
9725 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
9726 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
9727 (gimplify_body): Consider flag_openacc next to flag_openmp.
9728 * lto-streamer-out.c: Include "gomp-constants.h".
9729 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
9730 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
9731 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
9732 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
9733 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
9734 (BUILT_IN_ACC_ON_DEVICE): New builtins.
9735 * omp-low.c: Include "gomp-constants.h".
9736 Update comments for OpenACC changes.
9737 (struct omp_context): Add reduction_map, gwv_below, gwv_this
9739 (extract_omp_for_data, use_pointer_for_field, install_var_field)
9740 (new_omp_context, delete_omp_context, scan_sharing_clauses)
9741 (create_omp_child_function, scan_omp_for, scan_omp_target)
9742 (check_omp_nesting_restrictions, lower_reduction_clauses)
9743 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
9744 Update for OpenACC changes.
9745 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
9746 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
9747 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
9748 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
9749 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
9750 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
9752 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9753 Handle GF_OMP_FOR_KIND_OACC_LOOP.
9754 (expand_omp_target, lower_omp_target): Handle
9755 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
9756 GF_OMP_TARGET_KIND_OACC_UPDATE,
9757 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
9758 GF_OMP_TARGET_KIND_OACC_DATA.
9759 (pass_expand_omp::execute, execute_lower_omp)
9760 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
9762 (offload_symbol_decl): New variable.
9763 (oacc_get_reduction_array_id, oacc_max_threads)
9764 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
9765 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
9766 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
9767 (oacc_gimple_assign, oacc_initialize_reduction_data)
9768 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
9770 (is_targetreg_ctx): Remove function.
9771 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
9772 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
9773 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
9774 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
9775 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
9776 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
9777 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
9778 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
9779 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
9780 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
9781 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
9782 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
9783 * tree-core.h: Update comments for OpenACC changes.
9784 (enum omp_clause_map_kind): Remove.
9785 (struct tree_omp_clause): Change type of map_kind member from enum
9786 omp_clause_map_kind to unsigned char.
9787 * tree-inline.c: Update comments for OpenACC changes.
9788 * tree-nested.c: Likewise. Include "gomp-constants.h".
9789 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
9790 (convert_tramp_reference_stmt, convert_gimple_call): Update for
9791 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
9792 OMP_CLAUSE_SET_MAP_KIND.
9793 * tree-pretty-print.c: Include "gomp-constants.h".
9794 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
9795 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
9796 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
9797 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
9798 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
9799 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
9800 instead of OMP_CLAUSE_MAP_*.
9801 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
9802 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
9803 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
9804 * tree-streamer-in.c: Include "gomp-constants.h".
9805 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
9806 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
9807 * tree-streamer-out.c: Include "gomp-constants.h".
9808 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
9810 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
9811 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
9812 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
9813 * tree.c (omp_clause_num_ops): Update accordingly.
9814 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
9816 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
9817 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
9818 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
9819 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
9820 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
9821 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
9822 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
9823 (OMP_CLAUSE_SET_MAP_KIND): New macro.
9824 * varpool.c (varpool_node::get_create): Consider flag_openacc next
9826 * config/i386/intelmic-offload.h: New file.
9827 * config/nvptx/offload.h: Likewise.
9829 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9831 * explow.h: Remove duplicate contents.
9832 * dojump.h: Likewise.
9834 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
9836 * arm.c (arm_xgene_tune): Add default initializer for instruction
9839 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
9843 * ipa.c (symbol_table::remove_unreachable_nodes):
9844 Do not put abstract origins into boundary.
9846 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
9848 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
9849 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
9851 2015-01-15 Steve Ellcey <sellcey@mips.com>
9853 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
9854 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
9855 builtins.def, and chkp-builtins.def.
9857 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
9859 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
9862 2015-01-15 Richard Biener <rguenther@suse.de>
9864 PR tree-optimization/61743
9865 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
9866 information on PHIs for some simple cases.
9868 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
9870 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
9872 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
9873 * config/arm/arm-cores.def (xgene1): New entry.
9874 * config/arm/arm-tables.opt: Regenerate.
9875 * config/arm/arm-tune.md: Regenerate.
9876 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
9878 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
9880 * tree-if-conv.c: Include hash-map.h.
9881 (aggressive_if_conv): New variable.
9882 (fold_build_cond_expr): Add simplification of non-zero condition.
9883 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
9884 destination block is not always executed.
9885 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
9886 than two predecessors if AGGRESSIVE_IF_CONV is true.
9887 (if_convertible_stmt_p): Fix commentary.
9888 (all_preds_critical_p): New function.
9889 (has_pred_critical_p): New function.
9890 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
9891 BB can have more than two predecessors and all incoming edges can be
9893 (predicate_bbs): Skip predication for loop exit block, use build2_loc
9894 to compute predicate for true edge.
9895 (find_phi_replacement_condition): Delete this function.
9896 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
9897 Allow interchange PHI arguments if EXTENDED is false.
9898 Change check that block containing reduction statement candidate
9899 is predecessor of phi-block since phi may have more than two arguments.
9900 (phi_args_hash_traits): New helper structure.
9901 (struct phi_args_hash_traits): New type.
9902 (phi_args_hash_traits::hash): New function.
9903 (phi_args_hash_traits::equal_keys): New function.
9904 (gen_phi_arg_condition): New function.
9905 (predicate_scalar_phi): Add handling of phi nodes with more than two
9906 arguments, delete COND and TRUE_BB arguments, insert body of
9907 find_phi_replacement_condition to predicate ordinary phi nodes.
9908 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
9909 delete call of find_phi_replacement_condition and invoke
9910 predicate_scalar_phi with two arguments.
9911 (insert_gimplified_predicates): Add assert that non-predicated block
9912 don't have statements to insert.
9913 (ifcvt_split_critical_edges): New function.
9914 (ifcvt_split_def_stmt): Likewise.
9915 (ifcvt_walk_pattern_tree): Likewise.
9916 (stmt_is_root_of_bool_pattern): Likewise.
9917 (ifcvt_repair_bool_pattern): Likewise.
9918 (ifcvt_local_dce): Likewise.
9919 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
9920 is copy of inner or outer loop force_vectorize field, invoke
9921 ifcvt_split_critical_edges, ifcvt_local_dce and
9922 ifcvt_repair_bool_pattern for aggressive if-conversion.
9924 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
9926 * config/aarch64/aarch64.md: Include xgene1.md.
9927 * config/aarch64/xgene1.md: New file.
9929 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
9931 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
9932 xgene1 (APM XGene-1) core definition.
9933 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
9934 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
9935 * doc/invoke.texi: Document -mcpu=xgene1.
9937 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9939 * dojump.h: New header file.
9940 * explow.h: Likewise.
9941 * expr.h: Remove includes.
9942 Move expmed.c prototypes to expmed.h.
9943 Move dojump.c prototypes to dojump.h.
9944 Move alias.c prototypes to alias.h.
9945 Move explow.c prototypes to explow.h.
9946 Move calls.c prototypes to calls.h.
9947 Move emit-rtl.c prototypes to emit-rtl.h.
9948 Move varasm.c prototypes to varasm.h.
9949 Move stmt.c prototypes to stmt.h.
9950 (saved_pending_stack_adjust): Move to dojump.h.
9951 (adjust_address): Move to explow.h.
9952 (adjust_address_nv): Move to emit-rtl.h.
9953 (adjust_bitfield_address): Likewise.
9954 (adjust_bitfield_address_size): Likewise.
9955 (adjust_bitfield_address_nv): Likewise.
9956 (adjust_automodify_address_nv): Likewise.
9957 * explow.c (expr_size): Move to expr.c.
9958 (int_expr_size): Likewise.
9959 (tree_expr_size): Likewise.
9960 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9961 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
9962 * genemit.c (main): Generate includes statistics.h, real.h,
9963 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
9965 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
9966 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
9967 explow.h, emit-rtl.h, stmt.h.
9968 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
9969 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
9970 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
9971 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
9972 emit-rtl.h, varasm.h, stmt.h.
9973 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
9974 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
9975 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
9976 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
9977 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
9978 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
9979 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
9980 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
9981 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
9982 tm.h tree.h varasm.h vec.h wide-int.h.
9983 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
9984 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
9985 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
9986 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
9987 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
9988 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
9989 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
9990 * loop-iv.c: Likewise.
9991 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
9992 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
9993 statistics.h stmt.h tree.h varasm.h wide-int.h.
9994 * lra-constraints.c: Likewise.
9995 * lra-eliminations.c: Likewise.
9996 * lra-lives.c: Likewise.
9997 * lra-remat.c: Likewise.
9998 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
9999 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
10000 statistics.h stmt.h tree.h varasm.h wide-int.h.
10001 * hw-doloop.c: Likewise.
10002 * ira-color.c: Likewise.
10003 * ira-emit.c: Likewise.
10004 * loop-doloop.c: Likewise.
10005 * loop-invariant.c: Likewise.
10006 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
10007 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
10008 statistics.h stmt.h tree.h varasm.h wide-int.h.
10009 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
10010 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
10011 statistics.h stmt.h tree.h varasm.h wide-int.h.
10012 * combine-stack-adj.c: Likewise.
10015 * ifcvt.c: Likewise.
10016 * ira-costs.c: Likewise.
10017 * jump.c: Likewise.
10018 * lra-coalesce.c: Likewise.
10019 * lra-spills.c: Likewise.
10020 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
10021 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
10022 stmt.h varasm.h wide-int.h.
10023 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
10024 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
10026 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
10027 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
10028 statistics.h stmt.h varasm.h wide-int.h.
10029 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
10030 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
10031 varasm.h wide-int.h.
10032 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
10033 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
10034 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
10035 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
10036 statistics.h stmt.h.
10037 * config/tilepro/tilepro.c: Likewise.
10038 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
10039 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
10040 * config/pdp11/pdp11.c: Likewise.
10041 * config/xtensa/xtensa.c: Likewise.
10042 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
10043 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
10045 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10046 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
10047 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
10048 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10049 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
10050 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
10051 * rtl-chkp.c: Likewise.
10052 * tree-chkp-opt.c: Likewise.
10053 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
10054 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
10055 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
10056 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10057 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
10058 statistics.h stmt.h.
10059 * tree-vect-data-refs.c: Likewise.
10060 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
10061 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
10062 rtl.h statistics.h stmt.h varasm.h.
10063 * internal-fn.c: Likewise.
10064 * ipa-icf-gimple.c: Likewise.
10065 * lto-section-out.c: Likewise.
10066 * tree-data-ref.c: Likewise.
10067 * tree-nested.c: Likewise.
10068 * tree-outof-ssa.c: Likewise.
10069 * tree-predcom.c: Likewise.
10070 * tree-pretty-print.c: Likewise.
10071 * tree-scalar-evolution.c: Likewise.
10072 * tree-ssa-strlen.c: Likewise.
10073 * tree-vect-loop.c: Likewise.
10074 * tree-vect-patterns.c: Likewise.
10075 * tree-vect-slp.c: Likewise.
10076 * tree-vect-stmts.c: Likewise.
10077 * tsan.c: Likewise.
10078 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10079 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
10081 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
10082 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
10083 statistics.h stmt.h varasm.h.
10084 * loop-unroll.c: Likewise.
10085 * ubsan.c: Likewise.
10086 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
10087 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
10089 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10090 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
10091 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
10092 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
10093 statistics.h stmt.h.
10094 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
10095 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
10096 statistics.h stmt.h varasm.h.
10097 * gimple-match-head.c: Likewise.
10098 * lto-cgraph.c: Likewise.
10099 * lto-section-in.c: Likewise.
10100 * lto-streamer-in.c: Likewise.
10101 * lto-streamer-out.c: Likewise.
10102 * tree-affine.c: Likewise.
10103 * tree-cfg.c: Likewise.
10104 * tree-cfgcleanup.c: Likewise.
10105 * tree-if-conv.c: Likewise.
10106 * tree-into-ssa.c: Likewise.
10107 * tree-ssa-alias.c: Likewise.
10108 * tree-ssa-copyrename.c: Likewise.
10109 * tree-ssa-dse.c: Likewise.
10110 * tree-ssa-forwprop.c: Likewise.
10111 * tree-ssa-live.c: Likewise.
10112 * tree-ssa-math-opts.c: Likewise.
10113 * tree-ssa-pre.c: Likewise.
10114 * tree-ssa-sccvn.c: Likewise.
10115 * tree-tailcall.c: Likewise.
10116 * tree-vect-generic.c: Likewise.
10117 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10118 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
10119 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10120 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
10121 * varasm.c: Likewise.
10122 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10123 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
10125 * init-regs.c: Likewise.
10127 * omp-low.c: Likewise.
10128 * stack-ptr-mod.c: Likewise.
10129 * tree-ssa-reassoc.c: Likewise.
10130 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10131 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
10133 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10134 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
10135 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10136 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
10137 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10138 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
10139 * tree-ssa-phiopt.c: Likewise.
10140 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10141 fixed-value.h hashtab.h real.h statistics.h stmt.h.
10142 * config/fr30/fr30.c: Likewise.
10143 * config/frv/frv.c: Likewise.
10144 * expr.c: Likewise.
10145 * final.c: Likewise.
10146 * optabs.c: Likewise.
10147 * passes.c: Likewise.
10148 * simplify-rtx.c: Likewise.
10149 * stmt.c: Likewise.
10150 * toplev.c: Likewise.
10151 * var-tracking.c: Likewise.
10152 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10153 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
10154 * lower-subreg.c: Likewise.
10155 * postreload-gcse.c: Likewise.
10157 * reginfo.c: Likewise.
10158 * store-motion.c: Likewise.
10159 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10160 fixed-value.h hashtab.h real.h stmt.h varasm.h.
10161 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10162 fixed-value.h hashtab.h statistics.h stmt.h.
10163 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10164 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
10165 * except.c: Likewise.
10166 * explow.c: Likewise.
10167 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10168 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
10170 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10171 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
10172 * tree-ssa-structalias.c: Likewise.
10173 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10174 fixed-value.h insn-config.h real.h statistics.h.
10175 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10176 fixed-value.h insn-config.h real.h statistics.h stmt.h.
10177 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10178 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
10179 * cfgbuild.c: Likewise.
10180 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10181 fixed-value.h real.h rtl.h statistics.h stmt.h.
10182 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10183 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
10184 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10185 fixed-value.h real.h statistics.h stmt.h.
10186 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
10187 fixed-value.h real.h statistics.h stmt.h varasm.h.
10188 * cprop.c: Likewise.
10189 * modulo-sched.c: Likewise.
10190 * postreload.c: Likewise.
10191 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
10192 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
10193 statistics.h stmt.h varasm.h.
10194 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
10195 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
10196 rtl.h statistics.h stmt.h varasm.h.
10197 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
10198 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
10200 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
10201 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
10203 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
10204 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
10206 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
10207 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
10208 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
10209 function.h real.h statistics.h stmt.h varasm.h.
10210 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
10211 insn-config.h real.h statistics.h stmt.h.
10212 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
10213 statistics.h stmt.h.
10214 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
10215 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
10216 statistics.h stmt.h varasm.h.
10217 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
10218 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
10219 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
10220 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
10221 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
10222 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
10223 statistics.h stmt.h varasm.h.
10224 * ipa-polymorphic-call.c: Likewise.
10225 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
10226 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
10227 statistics.h stmt.h.
10228 * config/c6x/c6x.c: Likewise.
10229 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
10230 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
10231 statistics.h stmt.h varasm.h.
10232 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
10233 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
10235 * ipa-split.c: Likewise.
10236 * tree-eh.c: Likewise.
10237 * tree-ssa-dce.c: Likewise.
10238 * tree-ssa-loop-niter.c: Likewise.
10239 * tree-vrp.c: Likewise.
10240 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
10241 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
10243 * config/nds32/nds32-fp-as-gp.c: Likewise.
10244 * config/nds32/nds32-intrinsic.c: Likewise.
10245 * config/nds32/nds32-isr.c: Likewise.
10246 * config/nds32/nds32-md-auxiliary.c: Likewise.
10247 * config/nds32/nds32-memory-manipulation.c: Likewise.
10248 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10249 * config/nds32/nds32-predicates.c: Likewise.
10250 * config/nds32/nds32.c: Likewise.
10251 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
10252 fixed-value.h hashtab.h real.h statistics.h.
10253 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
10254 fixed-value.h hashtab.h real.h statistics.h stmt.h.
10255 * config/arm/arm.c: Likewise.
10256 * config/avr/avr.c: Likewise.
10257 * config/bfin/bfin.c: Likewise.
10258 * config/h8300/h8300.c: Likewise.
10259 * config/i386/i386.c: Likewise.
10260 * config/ia64/ia64.c: Likewise.
10261 * config/iq2000/iq2000.c: Likewise.
10262 * config/m32c/m32c.c: Likewise.
10263 * config/m32r/m32r.c: Likewise.
10264 * config/m68k/m68k.c: Likewise.
10265 * config/mcore/mcore.c: Likewise.
10266 * config/mep/mep.c: Likewise.
10267 * config/mips/mips.c: Likewise.
10268 * config/mn10300/mn10300.c: Likewise.
10269 * config/moxie/moxie.c: Likewise.
10270 * config/pa/pa.c: Likewise.
10271 * config/rl78/rl78.c: Likewise.
10272 * config/rx/rx.c: Likewise.
10273 * config/s390/s390.c: Likewise.
10274 * config/sh/sh.c: Likewise.
10275 * config/sparc/sparc.c: Likewise.
10276 * config/spu/spu.c: Likewise.
10277 * config/stormy16/stormy16.c: Likewise.
10278 * config/v850/v850.c: Likewise.
10279 * config/vax/vax.c: Likewise.
10280 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
10281 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
10282 * config/msp430/msp430.c: Likewise.
10283 * predict.c: Likewise.
10284 * value-prof.c: Likewise.
10285 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
10286 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
10287 * config/microblaze/microblaze.c: Likewise.
10288 * config/nios2/nios2.c: Likewise.
10289 * config/rs6000/rs6000.c: Likewise.
10290 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
10291 insn-config.h real.h rtl.h statistics.h stmt.h.
10292 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
10293 insn-config.h real.h statistics.h stmt.h.
10294 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
10295 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
10296 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
10297 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
10298 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
10299 fixed-value.h real.h statistics.h stmt.h.
10300 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
10301 fixed-value.h statistics.h stmt.h.
10302 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
10305 2015-01-15 Jakub Jelinek <jakub@redhat.com>
10307 * gengtype.c (create_user_defined_type): Workaround
10308 -Wmaybe-uninitialized false positives.
10309 * cse.c (fold_rtx): Likewise.
10310 * loop-invariant.c (gain_for_invariant): Likewise.
10312 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
10314 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
10315 set the memory attributes in all cases but clear MEM_EXPR if need be.
10317 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
10319 PR tree-optimization/64434
10320 * cfgexpand.c (reorder_operands): New function.
10321 (expand_gimple_basic_block): Insert call of reorder_operands if
10324 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
10326 * config/mips/micromips.md (*swp): Remove explicit parallel.
10327 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
10328 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
10329 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
10330 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
10331 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
10332 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
10333 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
10334 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
10335 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
10336 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
10337 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
10338 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
10339 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
10340 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
10341 (mips_wrdsp): Likewise.
10342 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
10344 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
10345 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
10346 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
10347 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
10348 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
10349 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
10350 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
10351 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
10352 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
10354 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
10356 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
10357 (mips_print_operand): Support 'y' to print exact log2 in decimal
10359 * config/mips/mips.h (ISA_HAS_LSA): New define.
10360 (ISA_HAS_DLSA): Likewise.
10361 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
10362 * config/mips/predicates.md (const_immlsa_operand): New predicate.
10364 2015-01-15 Martin Liska <mliska@suse.cz>
10367 * optc-save-gen.awk: Add support for array types.
10369 2015-01-15 Richard Biener <rguenther@suse.de>
10371 PR middle-end/64365
10372 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
10373 for MEM_REF access functions with the same base can never partially
10376 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
10378 * common.opt: New option -fstack-protector-explicit.
10379 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
10380 (stack_protect_decl_phase): Handle stack_protect attribute for
10381 explicit stack protection requests.
10382 (expand_used_vars): Similarly.
10383 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
10384 * doc/extend.texi: Add documentation for "stack_protect" attribute.
10385 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
10387 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
10390 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
10392 (sh_extending_set_of_reg): New struct.
10393 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
10394 sh_remove_reg_dead_or_unused_notes): New Declarations.
10395 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
10396 sh_find_extending_set_of_reg, sh_split_tst_subregs,
10397 sh_extending_set_of_reg::use_as_extended_reg): New functions.
10398 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
10399 convert to insn_and_split and use new function sh_split_tst_subregs.
10401 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
10403 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
10405 (Optimization Options): Move -fuse-ld documentation to...
10406 (Link Options): ...here.
10408 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
10410 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
10412 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
10413 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
10414 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
10415 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
10416 instead of ZR for the memory operand of LL/SC.
10417 (compare_and_swap_12, sync_add<mode>): Likewise.
10418 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
10419 (sync_new_<optab>_12, sync_nand_12): Likewise.
10420 (sync_old_nand_12, sync_new_nand_12): Likewise.
10421 (sync_sub<mode>, sync_old_add<mode>): Likewise.
10422 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
10423 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
10424 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
10425 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
10426 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
10427 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
10428 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
10429 * doc/md.texi (ZC): Update description.
10431 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
10433 * builtins.c (expand_builtin_atomic_exchange): Remove error when
10434 memory model is CONSUME.
10435 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
10436 expand_builtin_atomic_store): Change invalid memory model errors to
10438 (expand_builtin_atomic_clear): Change invalid model errors to warnings
10439 and issue warning for CONSUME.
10441 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
10443 * lto-cgraph: Update function comments for
10444 lto_symtab_encoder_encode_*.
10446 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
10448 * Makefile.in (site.exp): Do not set ENABLE_LTO.
10450 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
10452 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
10453 * lto-cgraph.c (select_what_to_stream): Remove argument, use
10454 lto_stream_offload_p instead.
10455 * lto-streamer.h (select_what_to_stream): Remove argument.
10456 * passes.c (ipa_write_summaries): Likewise.
10457 * tree-pass.h (ipa_write_summaries): Likewise.
10459 2015-01-14 Richard Biener <rguenther@suse.de>
10461 PR tree-optimization/59354
10462 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
10463 groups larger than the slp group size as having gaps.
10465 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
10467 PR middle-end/59448
10468 * builtins.c (get_memmodel): Promote consume to acquire always.
10470 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
10473 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
10476 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
10479 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
10481 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
10482 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
10483 AVX512VBMI, as it implies AVX512BW.
10485 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
10488 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
10489 (vec_unpacks_hi_v16sf): Ditto.
10491 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10493 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
10496 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10498 * doc/invoke.texi (mapcs): Mention deprecation.
10499 (mapcs-frame): Likewise.
10501 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
10504 * config/arm/arm.c (callee_saved_reg_p): Define.
10505 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
10506 register is callee saved instead of !call_used_regs[reg].
10507 (thumb1_compute_save_reg_mask): Likewise.
10509 2015-01-14 Hale Wang <hale.wang@arm.com>
10511 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
10514 2015-01-14 Richard Biener <rguenther@suse.de>
10517 * tree-inline.c (insert_debug_decl_map): Check destination
10518 function MAY_HAVE_DEBUG_STMTS.
10519 (insert_init_debug_bind): Likewise.
10520 (insert_init_stmt): Remove redundant check.
10521 (remap_gimple_stmt): Drop debug stmts if the destination
10522 function has var-tracking assignments disabled.
10524 2015-01-14 Martin Liska <mliska@suse.cz>
10526 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
10527 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
10529 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10532 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
10533 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
10535 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
10537 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
10538 level from an ARCH; do not inject the default.
10539 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
10540 MIPS_ISA_LEVEL_SPEC.
10541 (MIPS_ISA_NAN2008_SPEC): Update comment.
10542 (BASE_DRIVER_SELF_SPECS): Likewise.
10543 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
10544 MIPS_DEFAULT_ISA_LEVEL_SPEC.
10545 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
10546 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
10547 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
10549 2015-01-14 Richard Biener <rguenther@suse.de>
10551 PR tree-optimization/64493
10552 PR tree-optimization/64495
10553 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
10554 assign the proper vectorized PHI to the inner loop exit PHIs.
10556 2015-01-14 Joey Ye <joey.ye@arm.com>
10558 * config/arm/arm.c (arm_compute_save_reg_mask):
10559 Do not save lr in case of tail call.
10560 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
10562 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
10564 * tree-vrp.c (check_array_ref): Emit more warnings
10565 for warn_array_bounds >= 2.
10566 * common.opt: New option -Warray-bounds=.
10567 * doc/invoke.texi: Document -Warray-bounds=.
10569 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
10571 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
10572 (mforbid-fp-as-gp): Remove.
10574 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
10575 (nds32_symbol_load_store_p): Remove.
10576 (nds32_fp_as_gp_check_available): Clean up implementation.
10577 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
10579 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
10580 fp-as-gp and ex9 cases.
10582 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
10584 * tree-profile.c (init_ic_make_global_vars): Drop workaround
10585 for bintuils bug 14342.
10586 (init_ic_make_global_vars): Likewise.
10587 (gimple_init_edge_profiler): Likewise.
10588 (gimple_gen_ic_func_profiler): Likewise.
10590 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10592 * ipa-inline.c (inline_small_functions): Swap the operands in
10595 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
10598 * ipa-inline-analysis.c (node_growth_cache): Remove.
10599 (initialize_growth_caches): Do not initialize it.
10600 (free_growth_caches): Do not free it.
10601 (do_estimate_growth): Rename to ...
10602 (estimate_growth): ... this one; drop growth cache code.
10603 (growth_likely_positive): Always go the heuristics way.
10604 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
10605 (reset_edge_caches): Do not reset node growth.
10606 (heap_edge_removal_hook): Do not maintain cache.
10607 (inline_small_functions): Likewise; strenghten sanity check.
10608 (ipa_inline): Do not maintain caches.
10609 * ipa-inline.h (node_growth_cache): Remove.
10610 (do_estimate_growth): Remove to ...
10611 (estimate_growth): this one; remove inline version.
10612 (reset_node_growth_cache): Remove.
10614 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
10617 * ipa-inline.c (inline_small_functions): Update callee keys after
10618 resolving speculation
10619 (inline_small_functions): Always check monotonicity of the queue.
10621 2015-01-13 Marek Polacek <polacek@redhat.com>
10623 PR middle-end/64391
10624 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
10626 2015-01-13 Jakub Jelinek <jakub@redhat.com>
10628 PR rtl-optimization/64286
10629 * ree.c (combine_reaching_defs): Move part of comment earlier,
10630 remove !SCALAR_INT_MODE_P check.
10631 (add_removable_extension): Don't add vector mode
10632 extensions if all uses of the source register aren't the same
10635 2015-01-13 Renlin Li <renlin.li@arm.com>
10637 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
10638 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
10640 2015-01-13 Martin Liska <mliska@suse.cz>
10642 * ipa-icf.c (sem_function::equals_private): Call new functions
10643 cl_target_option_print_diff and cl_optimization_print_diff.
10644 * optc-save-gen.awk (cl_target_option_print_diff): New function.
10645 (cl_optimization_print_diff): Likewise.
10646 * opth-gen.awk: Likewise.
10648 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
10650 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
10651 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
10652 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
10653 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
10654 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
10655 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
10657 2015-01-13 Andrew Pinski <apinski@cavium.com>
10659 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
10660 instead of src mode.
10662 2015-01-13 Richard Biener <rguenther@suse.de>
10665 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
10668 2015-01-13 Andrew Pinski <apinski@cavium.com>
10670 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
10672 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
10674 2015-01-13 Jakub Jelinek <jakub@redhat.com>
10676 PR middle-end/63974
10677 * cfgexpand.c (expand_computed_goto): Don't call
10678 convert_memory_address here.
10680 2015-01-13 Richard Biener <rguenther@suse.de>
10682 PR tree-optimization/64406
10683 * tree-loop-distibution.c (pass_loop_distribution::execute):
10684 Reset the SCEV hashtable if we distributed anything.
10686 2015-01-13 Richard Biener <rguenther@suse.de>
10688 PR tree-optimization/64404
10689 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
10690 SLP types for CSEd loads.
10692 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
10694 PR tree-optimization/64436
10695 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
10696 merge of two symbolic numbers for a bitwise OR to ...
10697 (perform_symbolic_merge): This. Also fix computation of the range and
10698 end of the symbolic number corresponding to the result of a bitwise OR.
10700 2015-01-13 Richard Biener <rguenther@suse.de>
10702 PR tree-optimization/64568
10703 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
10704 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
10706 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
10708 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
10709 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
10711 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
10713 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
10714 target-specific symbol_ref flag.
10715 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
10716 resides in rodata section.
10717 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
10718 (nds32_encode_section_info): New function.
10720 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
10722 * config/nds32/nds32.md (call): Use pseudo instruction bal which
10723 clobbers TA_REGNUM if large code model is specified.
10724 (call_register): Likewise.
10725 (call_immediate): Likewise.
10726 (call_value): Likewise.
10727 (call_value_register): Likewise.
10728 (call_value_immediate): Likewise.
10730 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
10732 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
10733 (TARGET_CMODEL_MEDIUM): New macro.
10734 (TARGET_CMODEL_LARGE): New macro.
10735 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
10736 code model setting in assembly code.
10738 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
10740 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
10741 Remove MASK_GP_DIRECT flag.
10742 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
10743 one of the multilib default options.
10744 * config/nds32/nds32.opt (mgp-direct): Remove.
10745 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
10746 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
10748 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
10750 * config/nds32/nds32.opt (mcmodel): Add new option.
10751 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
10752 to describe code model.
10754 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
10757 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
10759 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
10761 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
10762 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
10763 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
10764 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
10765 __builtin_sh_set_fpscr.
10767 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
10769 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
10770 after a funtion name just to indicate it is a function.
10771 ([-fsanitize-undefined-trap-on-error]): Likewise.
10772 ([-fdbg-cnt=]): Likewise.
10773 ([-mmemcpy]): Likewise.
10774 ([-mflush-func]): Likewise.
10775 ([-msynci]): Likewise.
10777 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
10779 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
10782 2015-01-12 Jakub Jelinek <jakub@redhat.com>
10784 PR tree-optimization/64563
10785 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
10786 instead of != VR_VARYING.
10789 * config/i386/i386.c (ix86_expand_prologue): Add
10790 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
10792 PR tree-optimization/64454
10793 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
10794 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
10795 for signed or [0, op1 - 1] for unsigned modulo.
10796 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
10797 even if op1 does not satisfy integer_pow2p.
10800 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
10802 2015-01-12 Jeff Law <law@redhat.com>
10805 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
10806 (trunchiqi2, truncsihi2): Similarly.
10808 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
10809 rather than calling F.
10811 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
10813 * tsan.c (instrument_expr): Use force_gimple_operand.
10814 Use may_be_nonaddressable_p instead of is_gimple_addressable.
10816 2015-01-12 Richard Biener <rguenther@suse.de>
10818 PR tree-optimization/64530
10819 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
10822 2015-01-12 Richard Biener <rguenther@suse.de>
10824 PR middle-end/64357
10825 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
10828 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10830 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
10831 Cortex-A17 tuning parameters.
10832 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
10834 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10836 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
10837 * config/arm/arm.c (arm_macro_fusion_p): New function.
10838 (arm_macro_fusion_pair_p): Likewise.
10839 (TARGET_SCHED_MACRO_FUSION_P): Define.
10840 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
10841 (ARM_FUSE_NOTHING): Likewise.
10842 (ARM_FUSE_MOVW_MOVT): Likewise.
10843 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
10844 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
10845 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
10846 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
10847 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
10848 arm_cortex_a5_tune): Specify fuseable_ops value.
10850 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
10853 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
10854 test for PIE with copy reloc.
10855 * configure: Regenerated.
10857 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10859 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
10861 (arm_tls_descseq_addr): Likewise.
10862 (arm_gen_movmemqi): Likewise.
10863 (arm_expand_epilogue_apcs_frame): Likewise.
10864 (arm_expand_epilogue): Likewise.
10865 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
10868 2015-01-12 Martin Liska <mliska@suse.cz>
10871 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
10872 volatility for correct operands.
10874 2015-01-12 Martin Liska <mliska@suse.cz>
10876 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
10877 that a function is not leaf.
10878 (sem_function::compare_polymorphic_p): Likewise.
10880 2015-01-12 Martin Liska <mliska@suse.cz>
10882 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
10883 that a function is not leaf.
10884 (sem_function::compare_polymorphic_p): Likewise.
10886 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10888 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
10889 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
10890 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
10891 fold-const.h, tree-check.h.
10893 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
10897 * ipa-inline.c (compute_uninlined_call_time,
10898 compute_inlined_call_time): Use counts for extra precision when
10900 (big_speedup_p): Fix formating.
10901 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
10902 (relative_time_benefit): Remove.
10903 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
10904 merge guessed and read profile paths.
10905 (inline_small_functions): Count only !optimize_size functions into
10906 initial size; be more lax about sanity check when profile is used;
10907 be sure to update inlined function profile when profile is read.
10909 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
10912 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
10913 cost when edge becomes direct.
10914 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
10915 is resolved or when introducing new speculation.
10917 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
10921 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
10922 '||' to fix typo issue.
10924 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
10925 accept and return NULL.
10927 2015-01-12 Martin Liska <mliska@suse.cz>
10929 * cgraph.c (cgraph_edge::remove_callee): Move function to header
10930 file for being inlined.
10931 (cgraph_set_edge_callee): Delete.
10932 (cgraph_edge::redirect_callee): Move function to header file
10934 (cgraph_edge::make_direct): Use new function.
10935 (cgraph_edge::dump_edge_flags): New function created from
10936 static dump_edge_flags function.
10937 (cgraph_node::dump): Use new function.
10938 (cgraph_edge::verify_count_and_frequency): New function created
10939 from verify_edge_count_and_frequency.
10940 (cgraph_edge::verify_corresponds_to_fndecl): New function created
10941 from verify_edge_corresponds_to_fndecl.
10942 (verify_edge_corresponds_to_fndecl): Delete.
10943 (cgraph_node::verify_node): Use new function.
10944 * cgraph.h (cgraph_edge::set_callee): New function.
10945 (cgraph_edge::dump_edge_flags): Likewise.
10946 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
10948 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
10950 * ipa-utils.c (estimate_function_body_sizes): Do not
10951 free node params when called late with early=true.
10953 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
10955 * doc/md.texi (Instruction Patterns): Rewrite text for
10957 (Example): Likewise.
10959 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
10961 * doc/invoke.texi (Option Summary): Break long lines.
10962 [(-fdiagnostics-color)]: Put long literal in @smallexample
10964 [(-fsanitize-recover)]: Likewise.
10965 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
10966 [(-ffast-math)]: Likewise.
10967 [(--param max-inline-insns-recursive)]: Likewise.
10968 [(--param max-inline-recursive-depth)]: Likewise.
10969 [(-mno-text-section-literals)]: Likewise.
10971 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
10973 * doc/install.texi: Update for libgomp being renamed from "GNU
10974 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
10976 * doc/sourcebuild.texi: Likewise.
10978 2015-01-10 Anthony Green <green@moxielogic.com>
10980 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
10981 mul.x availability for moxiebox configuration.
10983 2015-01-09 Anthony Green <green@moxielogic.com>
10985 * config/moxie/moxie.md: Tabify assembly output.
10987 2015-01-09 Anthony Green <green@moxielogic.com>
10989 * config/moxie/moxie.md (CC_REG): Correct register definition.
10991 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
10993 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
10994 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
10997 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
10999 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
11001 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
11002 Jakub Jelinek <jakub@redhat.com>
11004 PR middle-end/64412
11005 * lto-streamer.h (lto_stream_offload_p): New declaration.
11006 * lto-streamer.c (lto_stream_offload_p): New variable.
11007 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
11008 at the same time as section_name_prefix.
11009 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
11010 if lto_stream_offload_p.
11011 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
11012 stream TREE_TARGET_OPTION if lto_stream_offload_p.
11013 (write_ts_function_decl_tree_pointers): Don't
11014 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
11015 * tree-streamer-in.c (unpack_value_fields): Don't stream
11016 TREE_TARGET_OPTION in if ACCEL_COMPILER.
11017 (lto_input_ts_function_decl_tree_pointers): Don't stream
11018 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
11019 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
11020 instead of section_name_prefix string comparisons.
11022 2015-01-09 Jakub Jelinek <jakub@redhat.com>
11024 PR rtl-optimization/64536
11025 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
11028 2015-01-09 Michael Collison <michael.collison@linaro.org>
11030 PR tree-optimization/64322
11031 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
11032 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
11034 2015-01-09 Tom de Vries <tom@codesourcery.com>
11036 PR rtl-optimization/64539
11037 * regcprop.c (kill_clobbered_values): Factor out of ...
11038 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
11039 instead of note_stores with kill_clobbered_value.
11041 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
11043 * ginclude/unwind-arm-common.h: Revert previous commit.
11045 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
11047 * config.gcc (arm*-*-freebsd*): New configuration.
11048 * config/arm/freebsd.h: New file.
11049 * config.host: Add extra components for arm*-*-freebsd*.
11050 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
11051 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
11053 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
11055 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
11057 * config/rs6000/t-rtems: Add e6500 multilibs.
11059 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
11061 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
11064 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
11066 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
11067 MULTILIB_EXCEPTIONS.
11069 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
11071 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
11072 MULTILIB_EXCEPTIONS.
11074 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
11076 * config/arm/t-rtems-eabi: Rename to...
11077 * config/arm/t-rtems: ...this.
11078 * config/arm/rtems-eabi.h: Rename to...
11079 * config/arm/rtems.h: ...this.
11080 * config.gcc (arm*-*-rtems*): Reflect changes above.
11082 2015-01-09 Richard Biener <rguenther@suse.de>
11084 PR tree-optimization/64410
11085 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
11087 (execute_update_addresses_taken): Deal with that.
11088 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
11089 loads/stores for complex variables.
11091 2015-01-09 Martin Liska <mliska@suse.cz>
11093 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
11095 (func_checker::compare_memory_operand): New function.
11096 (func_checker::compare_operand): Split case to newly
11098 (func_checker::compare_cst_or_decl): New function.
11099 (func_checker::compare_gimple_call): Identify
11101 (func_checker::compare_gimple_assign): Likewise.
11102 * ipa-icf-gimple.h: New function.
11104 2015-01-09 Martin Liska <mliska@suse.cz>
11107 * sreal.c (sreal::dump): Change unsigned format to signed for
11109 (sreal::to_double): Replace exp2 with scalbln.
11111 2015-01-09 Martin Liska <mliska@suse.cz>
11113 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
11114 * ipa-icf.c (sem_function::equals_private): Add support for target and
11115 (sem_item_optimizer::merge_classes): Remove redundant function
11116 optimization flags comparison.
11117 * tree.h (target_opts_for_fn): New function.
11119 2015-01-09 Tom de Vries <tom@codesourcery.com>
11121 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
11123 2015-01-09 Kito Cheng <kito@0xlab.org>
11125 PR rtl-optimization/64348
11126 * lra-constraints.c (split_reg): Fix caller-save store/restore
11127 instruction generation.
11129 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
11131 PR gcov-profile/61790
11132 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
11133 long long. Fallback to int64_t if host doesn't have long long and
11134 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
11136 2015-01-08 Jakub Jelinek <jakub@redhat.com>
11138 PR tree-optimization/63989
11139 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
11140 from 1000 to 10000.
11141 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
11142 (get_stridx): If we don't have a record for certain SSA_NAME,
11143 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
11144 constant offset, call get_stridx_plus_constant.
11145 (get_stridx_plus_constant): New function.
11146 (zero_length_string): Don't use get_stridx here.
11149 PR middle-end/64388
11150 * dse.c (struct insn_info): Mention frame_read set also
11151 before reload for tail calls on some targets.
11152 (scan_insn): Revert 2014-12-22 change. Set frame_read
11153 also before reload for tail calls if
11154 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
11155 instead of add_non_frame_wild_read for non-const/memset
11156 tail calls after reload.
11158 2015-01-08 Jason Merrill <jason@redhat.com>
11160 * ubsan.c (do_ubsan_in_current_function): New.
11161 (pass_ubsan::gate): Use it.
11162 * ubsan.h: Declare it.
11163 * convert.c (convert_to_integer): Use it.
11165 2015-01-08 Jakub Jelinek <jakub@redhat.com>
11168 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
11169 compare_code when it is unconditionally overwritten afterwards.
11170 Use ix86_reverse_condition instead of reverse_condition. Don't
11171 change code if *reverse_condition* returned UNKNOWN and don't
11172 swap ct/cf and negate diff in that case.
11174 2015-01-08 Mike Stump <mikestump@comcast.net>
11176 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
11177 (pass_tsan_O0::gate): Likewise.
11178 * extend.texi (Function Attributes): Add no_sanitize_thread
11181 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
11183 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
11184 for registering builtins.
11185 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
11186 add -fopenmp to the argv_obstack used when invoking
11187 compile_for_target.
11189 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
11190 add "-m32" or "-m64" to argv_obstack.
11191 (generate_host_descr_file): Likewise, when invoking host_compiler.
11192 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
11195 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
11197 * config/sh/sh-mem.cc: Use constant as second operand when emitting
11200 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
11203 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
11204 constant load if constant operand fits into I08.
11206 2015-01-08 Jakub Jelinek <jakub@redhat.com>
11209 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
11210 and TREE_THIS_VOLATILE for MEM_REFs.
11211 (build5_stat): Fix up initialization of TREE_READONLY and
11212 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
11214 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
11217 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
11218 of r for the second alternative of the destination operand.
11220 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
11223 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
11225 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
11227 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
11229 ([-fivar-visibility], [-fvisibility]): Likewise.
11231 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
11233 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
11234 the file where @code, @command, etc is more appropriate.
11236 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
11238 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
11239 of -mrecip= documentation.
11241 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11244 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
11245 correct reload handler if -m32 -mpowerpc64 is used.
11247 2015-01-06 Tom de Vries <tom@codesourcery.com>
11249 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
11251 2015-01-08 Christian Bruel <christian.bruel@st.com>
11254 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
11256 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11258 PR tree-optimization/63259
11259 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
11260 if optab exists for 16bit byteswap.
11262 2015-01-06 Jakub Jelinek <jakub@redhat.com>
11264 * opts.c (common_handle_option): Add support for
11265 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
11266 * doc/invoke.texi: Document -fno-sanitize=all,
11267 -f{,no-}sanitize-recover=all. Document that
11268 -fsanitize=float-cast-overflow is not enabled
11269 by -fsanitize=undefined. Fix up documentation
11270 of -f{,no-}sanitize-recover.
11272 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
11274 * config.gcc: Add Visium support.
11275 * configure.ac: Likewise.
11276 * configure: Regenerate.
11277 * doc/extend.texi (interrupt attribute): Add Visium.
11278 * doc/invoke.texi: Document Visium options.
11279 * doc/install.texi: Document Visium target.
11280 * doc/md.texi: Document Visium constraints.
11281 * common/config/visium: New directory.
11282 * config/visium: Likewise.
11284 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
11286 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
11287 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
11289 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
11291 * combine.c (combine_validate_cost): Do not count the cost of a
11292 split I2 twice. Do not display it twice in the dump, either.
11294 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
11296 Revert parts of r219199.
11297 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
11299 ([-Wtraditional]): Restore markup on <limits.h>.
11301 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
11304 * doc/invoke.texi: Document -Wsuggest-override.
11306 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
11308 PR rtl-optimization/64287
11309 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
11310 (process_options): Disable flag_ipa_ra if profiling.
11312 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
11314 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
11316 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
11318 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
11319 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
11320 put under #if TARGET_LOOPS guard.
11322 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
11324 * config/i386/i386.c (output_387_binary_op): Use std::swap.
11326 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
11328 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
11329 * rtl.h (refers_to_regno_p): Add overload.
11331 * bt-load.c: Likewise.
11332 * combine.c: Likewise.
11333 * df-scan.c: Likewise.
11334 * sched-deps.c: Likewise.
11335 * config/s390/s390.c: Likewise.
11336 * config/m32r/m32r.c: Likewise.
11337 * config/rs6000/spe.md: Likewise.
11338 * config/rs6000/rs6000.c: Likewise.
11339 * config/pa/pa.c: Likewise.
11340 * config/stormy16/stormy16.c: Likewise.
11341 * config/cris/cris.c: Likewise.
11342 * config/arc/arc.md: Likewise.
11343 * config/arc/arc.c: Likewise.
11344 * config/sh/sh.md: Likewise.
11345 * config/sh/sh.c: Likewise.
11346 * config/frv/frv.c: Likewise.
11348 2015-01-05 Jakub Jelinek <jakub@redhat.com>
11351 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
11352 call as cleanup of the whole body.
11353 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
11354 * tsan.c (replace_func_exit): New function.
11355 (instrument_func_exit): Moved earlier.
11356 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
11357 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
11359 (tsan_pass): Don't call instrument_func_exit.
11360 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
11361 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
11365 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
11366 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
11367 it to libubsan handler instead of EXPR. Fold comparisons earlier,
11368 if the result is integer_zerop, return NULL_TREE.
11369 * convert.c (convert_to_integer): Pass expr as ARG.
11371 PR tree-optimization/64465
11372 * tree-inline.c (redirect_all_calls): During inlining
11373 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
11374 changed the stmt to a non-throwing call.
11376 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
11378 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
11379 etc markup throughout the file.
11381 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
11383 Enable experimental TSAN support for Ada.
11384 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
11386 2015-01-05 Jakub Jelinek <jakub@redhat.com>
11388 PR tree-optimization/64494
11389 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
11390 clear SSA_NAME_ANTI_RANGE_P flag.
11392 2015-01-05 Marek Polacek <polacek@redhat.com>
11394 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
11396 2015-01-05 Jakub Jelinek <jakub@redhat.com>
11398 Update copyright years.
11400 * gcc.c (process_command): Update copyright notice dates.
11401 * gcov-dump.c: Ditto.
11403 * doc/cpp.texi: Bump @copying's copyright year.
11404 * doc/cppinternals.texi: Ditto.
11405 * doc/gcc.texi: Ditto.
11406 * doc/gccint.texi: Ditto.
11407 * doc/gcov.texi: Ditto.
11408 * doc/install.texi: Ditto.
11409 * doc/invoke.texi: Ditto.
11411 * auto-profile.c, auto-profile.h: Fix up Copyright line.
11413 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
11415 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
11417 ([-fvtable-verify], [-fvtv-debug]): Likewise.
11418 ([-Wabi]): Likewise.
11419 ([-fmessage-length]): Likewise.
11420 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
11421 ([-Wno-discarded-qualifiers]): Likewise.
11422 ([-Wnodiscarded-array-qualifiers]): Likewise.
11423 ([-Wno-virtual-move-assign]): Likewise.
11424 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
11425 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
11426 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
11427 ([-fsanitize-undefined-trap-on-error]): Likewise.
11428 ([-floop-interchange]): Likewise.
11429 ([-ftree-coalesce-inlined-vars]): Likewise.
11430 ([-fvect-cost-model]): Likewise.
11431 ([-flto]): Likewise.
11432 ([--param]): Likewise.
11433 (Spec Files): Likewise.
11434 ([-mstrict-align]): Likewise.
11435 ([-mfix-cortex-a53-835769]): Likewise.
11436 ([-march], [-mtune]): Likewise.
11437 ([-mpic-register]): Likewise.
11438 ([-munaligned-access]): Likewise.
11439 ([-msp8]): Likewise.
11440 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
11441 (AVR Built-in Macros): Likewise.
11442 ([-mpreferred-stack-boundary]): Likewise.
11443 ([-mtune-crtl]): Likewise.
11444 ([-mashf]): Likewise.
11445 ([-mmcu=]): Likewise.
11446 ([-minrt]): Likewise.
11447 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
11448 ([-mupper-regs]): Likewise.
11449 ([-matomic-model]): Likewise.
11450 ([-mdiv]): Likewise.
11451 ([-mzdcbranch]): Likewise.
11452 ([-mdisable-callt]): Likewise.
11453 ([-msoft-float]): Likewise.
11454 ([-m8byte-align]): Likewise.
11455 ([-fstack-reuse]): Likewise.
11457 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
11459 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
11460 Fix markup, light copy-editing.
11461 ([-fauto-profile]): Rewrite to fix formatting and content
11464 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
11466 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
11467 Copy-edit description.
11468 ([-fisolate-erroneous-paths-attribute]): Likewise.
11469 * common.opt (fisolate-erroneous-paths-dereference):
11470 Copy-edit description.
11471 (fisolate-erroneous-paths-attribute): Likewise.
11473 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
11475 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
11478 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
11480 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
11481 ([-fvtv-debug]): Likewise.
11482 ([-Wc++-compat]): Likewise.
11483 ([-Wc++11-compat]): Likewise.
11484 ([-Wc++14-compat]): Likewise.
11485 ([-Wno-sized-deallocation]): Likewise.
11486 ([-femit-class-debug-always]): Likewise.
11487 ([-femit-struct-debug-detailed]): Likewise.
11488 ([-fno-keep-inline-dllexport]): Likewise.
11489 ([-fira-algorithm]): Likewise.
11490 ([-fira-region]): Likewise.
11491 ([-flra-remat]): Likewise.
11492 ([-fipa-ra]): Likewise.
11493 ([-fhoist-adjacent-loads]): Likewise.
11494 ([-fisolate-erroneous-paths-dereference]): Likewise.
11495 ([-fisolate-erroneous-paths-attribute]): Likewise.
11496 ([-ftree-switch-conversion]): Likewise.
11497 ([-ftree-tail-merge]): Likewise.
11498 ([-ftree-loop-if-convert]): Likewise.
11499 ([-ftree-loop-if-convert-stores]): Likewise.
11500 ([-ftree-loop-distribution]): Likewise.
11501 ([-ftree-loop-distribute-patterns]): Likewise.
11502 ([-flto-compression-level]): Likewise.
11503 ([-flto-report]): Likewise.
11504 ([-flto-report-wpa]): Likewise.
11505 ([-fuse-linker-plugin]): Likewise.
11506 ([-mfix-cortex-a53-835769]): Likewise.
11507 ([-mno-fix-cortex-a53-835769]): Likewise.
11508 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
11509 explicit listing; add a note to the discussion indicating they
11510 exist. Reorder table to group similar options. Add missing
11511 @opindex entries. Add @need commands throughout the table to
11512 allow it to be split across multiple pages.
11513 ([-m8bit-idiv]): Fix @opindex.
11514 ([-mavx256-split-unaligned-load]): Likewise.
11515 ([-mavx256-split-unaligned-store]): Likewise.
11516 ([-mstack-protector-guard]): Likewise.
11517 ([-mcpu=]): Likewise.
11518 ([-mcpu]): Likewise.
11519 ([-mpointer-size=]): Likewise.
11521 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
11523 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
11524 instead of `m' constraint. Likewise for unnamed movb comparison
11525 patterns using reg_before_reload_operand predicate.
11526 * config/pa/predicates.md (reg_before_reload_operand): Tighten
11527 predicate to reject register index and LO_SUM DLT memory forms
11530 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
11532 * doc/invoke.texi (Option Summary): Fix spelling of
11533 -fdevirtualize-at-ltrans.
11534 ([-fdevirtualize]): Fix markup.
11535 ([-fdevirtualize-speculatively]): Fix typo.
11536 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
11537 implementor-speaky.
11538 * common.opt (fdevirtualize-at-ltrans): Likewise.
11539 * ipa-devirt.c: Fix typos in comments throughout the file.
11540 (ipa_devirt): Fix typos in format strings for dump output.
11542 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
11544 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
11545 discussion of defaults, light copy-editing.
11547 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11549 * tsan.c (instrument_expr): corrected previous checkin.
11551 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11553 Instrument bit field and unaligned accesses for TSAN.
11554 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
11555 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
11556 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
11557 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
11558 unaligned memory regions.
11560 2015-01-01 Anthony Green <green@moxielogic.com>
11562 * config/moxie/predicates.md (moxie_general_movsrc_operand):
11563 Restrict move source register offsets to 16 bits.
11565 Copyright (C) 2015 Free Software Foundation, Inc.
11567 Copying and distribution of this file, with or without modification,
11568 are permitted in any medium without royalty provided the copyright
11569 notice and this notice are preserved.