1 2015-03-04 Nick Clifton <nickc@redhat.com>
3 * config/rl78/rl78.h (enum reg_class): Remove real registers from
4 General register class.
5 * config/rl78/rl78-real.md: Replace general register constraints
6 with real+virtual register constraints.
8 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10 * gcc/config/s390/s390.c (s390_expand_builtin): Exlude non-htm
11 builtins from checking for -mhtm option.
13 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
15 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
16 (struct ipa_sra_check_caller_data): Add has_thunk field.
17 (ipa_sra_check_caller): Check for thunk.
18 (ipa_sra_preliminary_function_checks): Give up on function with
20 (ipa_early_sra): Use call_for_symbol_and_aliases.
22 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
25 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
26 called for __stack_chk_guard symbol.
28 2015-03-03 DJ Delorie <dj@redhat.com>
30 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
32 (*addhi3_real): Likewise.
33 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
34 pattern to match incrementing memory.
35 * config/rl78/predicates.md (rl78_1_2_operand): New.
36 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
37 it's the same and only mem.
38 (rl78_alloc_physical_registers_op2): If there's effectively only
39 one MEM, transcode it into HL.
40 (rl78_far_p): Reject addresses that aren't legitimate.
42 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
44 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
47 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
49 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
51 Implement call0 ABI for xtensa
52 * config/xtensa/constraints.md ("a" constraint): Include stack
53 pointer in case of call0 ABI.
54 ("q" constraint): Make empty in case of call0 ABI.
55 ("D" constraint): Include stack pointer in case of call0 ABI.
56 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
57 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
59 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
61 (xtensa_regno_to_class): Make it a local variable in the
62 function xtensa_regno_to_class.
63 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
64 macro, function prototype and implementation.
65 (reg_nonleaf_alloc_order): Make it a local variable in the
66 function order_regs_for_local_alloc.
67 (xtensa_conditional_register_usage): New function.
68 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
69 (xtensa_valid_move): Allow direct moves to stack pointer
70 register in call0 ABI.
71 (xtensa_setup_frame_addresses): Only spill register windows in
73 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
74 call0 ABI respectively.
75 (xtensa_function_arg_1): Only mark a7 register for copying in
77 (xtensa_call_save_reg): New function.
78 (compute_frame_size): Add space for callee saved register
79 storage to the frame size in call0 ABI.
80 (xtensa_expand_prologue): Generate code to set up stack frame
81 and save callee-saved registers in call0 ABI.
82 (xtensa_expand_epilogue): New function.
83 (xtensa_set_return_address): New function.
84 (xtensa_return_addr): Calculate return address in call0 ABI.
85 (xtensa_builtin_saveregs): Only mark a7 register for copying and
86 emit copying code in windowed ABI.
87 (order_regs_for_local_alloc): Add preferred register allocation
88 order for non-leaf function in call0 ABI.
89 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
90 (xtensa_asm_trampoline_template): Add trampoline generation for
92 (xtensa_trampoline_init): Add trampoline initialization for
94 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
96 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
97 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
98 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
99 ABI call-used registers.
100 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
101 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
103 (REG_CLASS_CONTENTS): Include all registers into the preferred
104 reload registers set, adjust the set in the
105 xtensa_conditional_register_usage.
106 (xtensa_regno_to_class): Drop variable declaration.
107 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
109 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
111 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
112 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
113 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
114 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
115 location in call0 ABI.
116 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
117 stack adjustment size when handling exception.
118 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
119 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
121 ("return" pattern): Generate ret.n/ret in call0 ABI.
122 ("epilogue" pattern): Expand epilogue.
123 ("nonlocal_goto" pattern): Use default in call0 ABI.
124 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
125 emit eh_set_a0_* depending on ABI.
126 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
127 ("eh_set_a0_call0", "blockage"): New patterns.
129 2015-03-03 Martin Liska <mliska@suse.cz>
132 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
134 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
137 * config/rs6000/rs6000-tables.opt: Regenerate table.
139 2015-03-03 Renlin Li <renlin.li@arm.com>
141 * doc/md.texi (@item ^): Change ? into ^.
143 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
145 * doc/tm.texi: Regenerated.
147 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
149 * builtins.c (expand_builtin_return_addr): Add
150 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
152 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
154 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
156 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
158 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
161 2015-03-03 Martin Jambor <mjambor@suse.cz>
162 Eric Botcazou <ebotcazou@adacore.com>
164 * tree-sra.c (ipa_sra_check_caller_data): New type.
165 (has_caller_p): Removed.
166 (ipa_sra_check_caller): New function.
167 (ipa_sra_preliminary_function_checks): Use it.
169 2015-03-03 Martin Liska <mliska@suse.cz>
171 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
172 instead of if branch.
174 2015-03-03 Martin Liska <mliska@suse.cz>
177 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
179 2015-03-23 Jeff Law <law@redhat.com>
181 PR tree-optimization/65241
182 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
183 hash table if INSERT is true.
185 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
188 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
190 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
193 * config/avr/avr.c (context.h, tree-pass.h): Include them.
194 (avr_pass_data_recompute_notes): New static variable.
195 (avr_pass_recompute_notes): New class.
196 (avr_register_passes): New static function.
197 (avr_option_override): Call it.
199 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
201 Fix various problems with specs file generation.
204 * config.gcc (extra_gcc_objs) [avr]: Remove.
205 * config/avr/driver-avr.c: Remove file.
206 * config/avr/t-avr (driver-avr.o): Remove rule.
207 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
208 INCLUDES to build. Depend on TM_H.
209 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
210 build warnings. Fix non-matching types and non-existing %-codes.
212 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
213 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
214 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
215 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
216 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
217 (LIBGCC_SPEC): Remove definitions.
219 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
221 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
222 to create a register in testing mode.
224 2015-03-03 Martin Liska <mliska@suse.cz>
225 Jan Hubicka <hubicka@ucw.cz>
228 * cgraph.c (cgraph_node::has_thunk_p): New function.
229 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
230 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
231 (sem_function::merge): Assert is changed.
233 2015-03-03 Martin Liska <mliska@suse.cz>
234 Martin Jambor <mjambor@suse.cz>
237 * ipa-icf.c (sem_item_optimizer::execute): Change function
238 return value to boolean.
239 (sem_item_optimizer::merge_classes): Likewise.
240 (ipa_icf_driver): Return TODO_remove_functions in case there's
241 a merge operation processed.
242 * ipa-icf.h: Change function return value to boolean.
244 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
247 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
248 processor type for 64-bit little endian PowerPC.
250 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
251 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
252 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
253 printing built-in mask so it does not pass NULL pointers.
255 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
258 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
261 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
262 !ISA_HAS_FP_CONDMOVE.
264 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
266 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
269 2015-03-02 Ulrich Drepper <drepper@gmail.com>
271 * doc/invoke.texi (Options for Code Generation Conventions):
272 Fix URL of DSO paper.
274 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
277 * ipa-inline.c (check_callers): Looks for recursion.
278 (inline_to_all_callers): Give up on uninlinable or recursive edges.
279 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
280 summary of inline clones.
281 (do_estimate_growth_1): Fix recursion check.
283 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
286 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
289 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
290 Aldy Hernandez <aldyh@redhat.com>
293 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
294 when checking TYPE_BINFO.
296 2015-03-02 Richard Biener <rguenther@suse.de>
299 * ipa-icf-gimple.c: Include builtins.h.
300 (func_checker::compare_memory_operand): Compare base alignment.
302 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
305 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
306 are never passed by reference.
308 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
311 * tree-chkp.c (chkp_check_lower): Don't check against
312 zero bounds for already instrumented functions.
313 (chkp_check_upper): Likewise.
314 (chkp_fini): Clean pass local data to avoid wrong reusage.
316 2015-02-28 Martin Liska <mliska@suse.cz>
317 Jan Hubicka <hubicka@ucw.cz>
319 * ipa-icf.c (sem_variable::equals): Improve debug output;
320 get variable constructor.
321 (sem_variable::parse): Do not filter out too early; give up on
322 volatile and register vars.
323 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
325 * ipa-icf.h (sem_variable::init): Do not set ctor.
326 (sem_variable::ctor): Remove.
328 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
331 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
333 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
335 * ipa-icf.c: Include stor-layout.h
336 (sem_function::compare_cgraph_references): Rename to ...
337 (sem_item::compare_cgraph_references): ... this one.
338 (sem_variable::equals_wpa): New function
339 (sem_variable::equals): Do not check stuff already verified by
341 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
342 * ipa-icf.h (sem_item): Add compare_cgraph_references.
343 (sem_function): Remove compare_cgraph_references.
344 (sem_variable): Turns equals_wpa into non-inline.
346 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
348 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
349 (sem_item::add_expr): New function.
350 (sem_function::hash_stmt): Handle operands of most statements.
351 (sem_variable::get_hash): Hash the actual constructor.
352 * ipa-icf.h (sem_item): Add add_expr.
353 (sem_function): Update prototype of hash_stmt
355 2015-02-28 Martin Liska <mliska@suse.cz>
356 Jan Hubicka <hubicka@ucw.cz>
359 * ipa-icf-gimple.c (func_checker::compare_function_decl):
361 (func_checker::compare_variable_decl): Skip symtab vars.
362 (func_checker::compare_cst_or_decl): Update.
363 * ipa-icf.c (sem_function::parse): Do not consider aliases.
364 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
365 use correct symtab predicates.
366 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
367 (sem_variable::parse): Update comment.
368 (sem_item_optimizer::build_graph): Consider ultimate aliases
371 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
373 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
376 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
378 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
379 (sem_variable::merge) Likewise.
381 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
383 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
384 target; also match flag_ipa_devirt.
386 2015-03-01 Martin Liska <mliska@suse.cz>
387 Jan Hubicka <hubicka@ucw.cz>
389 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
390 Validate variable alignment.
391 * ipa-icf.c (sem_function::equals_private): Be more precise
392 about non-common function attributes.
393 (sem_variable::equals): Likewise.
395 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
398 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
399 across COMDAT group boundary.
401 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
404 * ipa-icf.c (clear_decl_rtl): New function.
405 (sem_function::merge): Clear RTL before forming alias.
406 (sem_variable::merge): Clear RTL before forming alias.
408 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
411 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot
414 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
416 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
419 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
421 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
422 a typo in the description.
424 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
427 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
428 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
429 * lra-constraints.c: Include "params.h".
430 (EBB_PROBABILITY_CUTOFF): Use
431 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
432 (lra_inheritance): Use '<' instead of '<=' for
433 EBB_PROBABILITY_CUTOFF.
434 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
437 2015-02-27 Martin Liska <mliska@suse.cz>
439 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
440 vector length condition.
442 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
444 * doc/extend.texi (x86 transactional memory intrinsics):
445 Reorganize discussion of _xbegin. Clarify that the return
446 value is a bit mask. Expand example and move to end of section.
448 2015-02-26 Jakub Jelinek <jakub@redhat.com>
449 Aldy Hernandez <aldyh@redhat.com>
451 PR rtl-optimization/65220
452 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
454 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
457 * lra-remat.c (update_scratch_ops): New.
459 * lra.c (lra_register_new_scratch_op): New. Take code from ...
460 (remove_scratches): ... here.
461 * lra-int.h (lra_register_new_scratch_op): New prototype.
463 2015-02-27 Marek Polacek <polacek@redhat.com>
466 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
467 -Wformat-signedness anymore.
469 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
471 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
473 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
475 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
477 * config/s390/s390.c (enum s390_builtin):
478 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
479 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
480 (s390_init_builtins): Generate new builtin functions.
481 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
482 (s390_sfpc, s390_efpc): New pattern definitions.
484 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
486 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
487 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
488 (s390_builtin_decls): New array.
489 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
490 (s390_builtin_decl): New function.
491 (TARGET_BUILTIN_DECL): Define macro.
493 2015-02-27 Richard Biener <rguenther@suse.de>
496 * builtins.c (get_object_alignment_2): Make sure to re-apply
497 the ANDed mask after recursing to its operand gets us a new
498 misalignment bit position.
500 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
501 Martin Liska <mliska@suse.cz>
504 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
505 Use address_matters_p.
506 (redirect_all_callers, set_addressable): New functions.
507 (sem_function::merge): Reorganize and fix merging issues.
508 (sem_variable::merge): Likewise.
509 (sem_variable::compare_sections): Remove.
510 * common.opt (fmerge-all-constants, fmerge-constants): Remove
512 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
514 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
516 (address_matters_1): New function.
517 (symtab_node::address_matters_p): New function.
518 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
519 check for merged flag.
520 * cgraph.h (address_matters_p): Declare.
521 (symtab_node::address_taken_from_non_vtable_p): Remove.
522 (symtab_node::address_can_be_compared_p): New method.
523 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
524 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
526 (comdat_can_be_unshared_p_1) Use address_matters_p.
527 (update_vtable_references): Fix formating.
528 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
529 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
530 * cgraphclones.c: Preserve merged and icf_merged flags.
532 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
534 * doc/extend.texi (Function Attributes): Fix spelling and typos.
535 (Label Attributes): Likewise.
536 (Cilk Plus Builtins): Likewise.
537 (ARC SIMD Built-in Functions): Likewise.
538 (ARM C Language Extensions (ACLE)): Likewise.
539 (PowerPC Built-in Functions): Likewise.
540 (PowerPC Hardware Transactional Memory Built-in Functions):
543 2015-02-26 Jakub Jelinek <jakub@redhat.com>
545 PR tree-optimization/65216
546 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
547 new stmt and new SSA_NAME for lhs whenever the arguments have
548 changed and weren't just swapped. Fix comment typo.
550 PR tree-optimization/65215
551 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
552 for PDP endian targets.
553 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
554 Fix up formatting issues.
555 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
556 size is smaller than the original, adjust MEM_REF offset by the
557 difference of sizes. Use is_gimple_mem_ref_addr instead of
558 is_gimple_min_invariant test to avoid adding address temporaries.
560 2015-02-26 Martin Liska <mliska@suse.cz>
561 Jan Hubicka <hubicka@ucw.cz>
564 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
565 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
566 (sem_item_optimizer::process_cong_reduction): Include division by
567 sensitive references.
568 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
569 * ipa-ref.c (ipa_ref::address_matters_p): New function.
570 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
572 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
575 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
577 * config/avr/avr.c: Same.
578 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
579 Refuse any constant address not in 0..0xbf.
580 * config/avr/avr.md (*mov<mode>, *movsf): Remove
581 tiny_valid_direct_memory_access_range from insn conditions.
582 (mov<mode>): Don't special-case expansion of avrtiny addresses.
584 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
587 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
588 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
589 * config/sh/predicates.md (const_logical_operand): New predicate.
590 * config/sh/sh.md: Add new peephole2 patterns.
592 2015-02-26 Marek Polacek <polacek@redhat.com>
595 * ipa-inline.c (early_inliner): Recompute inline parameters.
597 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
600 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
601 instructions with TImode operands are included in the analysis.
603 2015-02-26 Sebastian Pop <s.pop@samsung.com>
605 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
606 of an EDGE_FSM_THREAD.
608 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
610 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
612 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
615 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
617 2015-02-26 Sebastian Pop <s.pop@samsung.com>
619 PR tree-optimization/65048
620 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
621 (thread_through_all_blocks): Call valid_jump_thread_path.
622 Remove invalid FSM jump-thread paths.
624 2015-02-26 Jakub Jelinek <jakub@redhat.com>
626 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
627 (ipa_write_optimization_summaries): Likewise.
628 * tree-streamer.h: Include data-streamer.h.
629 (streamer_mode_table): Declare extern variable.
630 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
631 * lto-streamer-out.c (lto_output_init_mode_table,
632 lto_write_mode_table): New functions.
633 (produce_asm_for_decls): Call lto_write_mode_table when streaming
635 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
636 (lto_create_simple_input_block): Add mode_table argument to the
637 lto_input_block constructors.
638 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
640 * data-streamer-in.c (string_for_index): Likewise.
641 * ipa-inline-analysis.c (inline_read_section): Likewise.
642 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
643 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
644 * lto-streamer-in.c (lto_read_body_or_constructor,
645 lto_input_toplevel_asms): Likewise.
646 (lto_input_mode_table): New function.
647 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
648 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
649 Use bp_pack_machine_mode.
650 * real.h (struct real_format): Add name field.
651 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
652 (class lto_input_block): Add mode_table member.
653 (lto_input_block::lto_input_block): Add mode_table_ argument,
654 initialize mode_table.
655 (struct lto_file_decl_data): Add mode_table field.
656 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
657 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
658 unpack_ts_decl_common_value_fields,
659 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
660 * tree-streamer.c (streamer_mode_table): New variable.
661 * real.c (ieee_single_format, mips_single_format,
662 motorola_single_format, spu_single_format, ieee_double_format,
663 mips_double_format, motorola_double_format,
664 ieee_extended_motorola_format, ieee_extended_intel_96_format,
665 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
666 ibm_extended_format, mips_extended_format, ieee_quad_format,
667 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
668 decimal_single_format, decimal_double_format, decimal_quad_format,
669 ieee_half_format, arm_half_format, real_internal_format): Add name
671 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
673 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
676 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
677 reordering for selective scheduling.
679 2015-02-26 Terry Guo <terry.guo@arm.com>
681 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
682 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
683 (arm_arch_no_volatile_ce): Declare new global variable.
684 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
685 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
686 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
687 (TARGET_NO_VOLATILE_CE): New macro.
688 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
689 volatile memory access in IT block
691 2015-02-25 Uros Bizjak <ubizjak@gmail.com>
694 * doc/install.texi (Specific, alpha*-*-*): Document that binutils 2.25
695 or newer are required.
697 2015-02-25 Kai Tietz <ktietz@redhat.com>
699 PR tree-optimization/61917
700 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
701 that reduc_def_stmt is null.
703 2015-02-25 Martin Liska <mliska@suse.cz>
705 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
706 hard register variables.
708 2015-02-25 Kai Tietz <ktietz@redhat.com>
711 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
712 (symtab::noninterposable_alias): Likewise.
714 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
717 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
719 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
721 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
724 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
725 as split condition; force split via '#' in output pattern.
727 2015-02-25 Richard Biener <rguenther@suse.de>
728 Kai Tietz <ktietz@redhat.com>
730 PR tree-optimization/61917
731 * tree-vect-loop.c (vectorizable_reduction): Allow
732 vect_internal_def without reduction to exit graceful.
734 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
737 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
738 only with NONDEBUG_INSN_P.
740 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
742 Use variadic macros with avr-log.c.
744 * config/avr/avr-protos.h (avr_vdump): New prototype.
745 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
746 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
747 * config/avr/avr-log.c: Adjust comments.
748 (avr_vdump): New function.
749 (avr_vadump): Pass caller as 2nd argument instead of format string.
750 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
751 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
753 2015-02-25 Jakub Jelinek <jakub@redhat.com>
756 * target.def (target_option_stream_in): New target hook.
757 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
758 targetm.target_option.post_stream_in if non-NULL.
759 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
760 * doc/tm.texi: Updated.
761 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
763 (TARGET_OPTION_POST_STREAM_IN): Redefine.
765 2015-02-24 Jeff Law <law@redhat.com>
768 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
769 of operand 0 and operand 2.
770 (zero_cost_loop_end, loop_end): Similarly.
772 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
774 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
777 2015-02-24 DJ Delorie <dj@redhat.com>
779 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as
781 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
782 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
783 instead of hardcoding SImode.
785 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
787 * omp-low.c (create_omp_child_function): Tag entrypoint
788 functions with a special attribute.
790 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
793 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
795 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
797 PR rtl-optimization/65123
798 * lra-remat.c (operand_to_remat): Check hard regs in insn
801 2015-02-24 Nick Clifton <nickc@redhat.com>
803 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
806 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
809 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
810 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
811 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
812 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
813 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
814 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
815 (BUILT_IN_GOACC_PARALLEL): Specify as
816 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
817 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
819 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
820 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
821 Remove function types.
822 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
823 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
824 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
827 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
829 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
831 2015-02-24 Jakub Jelinek <jakub@redhat.com>
833 PR tree-optimization/65170
834 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
835 if val[1] < 0, clear also val[2] and return 3.
837 2015-02-24 Alan Modra <amodra@gmail.com>
840 * config/rs6000/rs6000.c (get_memref_parts): Only return true
841 when *base is a reg. Handle nested plus addresses. Simplify
844 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
846 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
847 use natural alignment when optimizing for size.
849 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
852 * config/sh/sh.md (movsicc_true+3): Remove peephole.
853 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
854 * config/sh/sh.c (replace_n_hard_rtx): Remove.
856 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
859 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
860 too big for a wide_int. Implement missing wrapping operation.
862 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
865 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
866 instead of const_int 4294901760.
868 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
870 * config/avr/t-avr: Fix typo in comment.
872 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
874 * doc/rtl.texi (fma): Clarify documentation.
876 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
879 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
882 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
884 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
885 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
886 restrict alignments to absolute_biggest_alignment.
887 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
889 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
890 * doc/tm.texi: Regenerate.
891 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
893 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
896 * ira-color.c (color_pass): Prevent splitting multi-register
899 2015-02-20 Richard Biener <rguenther@suse.de>
901 PR tree-optimization/65136
902 * tree-ssa-propagate.c: Include cfgloop.h.
903 (replace_phi_args_in): Avoid replacing loop latch edge PHI
904 arguments with constants.
906 2015-02-20 Jakub Jelinek <jakub@redhat.com>
907 Martin Liska <mliska@suse.cz>
910 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
911 don't try to create_thunk if stdarg_p. If
912 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
913 redirect_callers if possible.
914 (sem_item_optimizer::execute): Call unregister_hooks here...
915 (ipa_icf_driver): ... instead of here.
917 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
919 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
920 Mark operand 0 as earlyclobber in 2nd alternative.
921 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
922 Write negated shift amount into QI lowpart operand 0 and use it
924 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
926 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
928 * cgraph.h (clone_function_name_1): Declare.
929 * cgraphclones.c (clone_function_name_1): New function.
930 (clone_function_name): Use it.
931 * lto-partition.c: Include "stringpool.h".
932 (must_not_rename, maybe_rewrite_identifier,
933 validize_symbol_for_target): New static functions.
934 (privatize_symbol_name): Use must_not_rename.
935 (promote_symbol): Call validize_symbol_for_target.
936 (lto_promote_cross_file_statics): Likewise.
937 (lto_promote_statics_nonwpa): Likewise.
939 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
942 * config/avr/avr.md (pushhi_insn): New insn.
943 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
945 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
946 Jakub Jelinek <jakub@redhat.com>
948 * tree-streamer.c (preload_common_nodes): Don't preload
949 TI_VA_LIST* for offloading.
950 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
953 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
955 * config/pa/pa.c (pa_emit_move_sequence): Always force
956 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
959 * config/pa/pa.c (pa_reloc_rw_mask): New function.
960 (TARGET_ASM_RELOC_RW_MASK): Define.
961 (pa_cannot_force_const_mem): Revert previous change.
963 2015-02-19 Martin Jambor <mjmabor@suse.cz>
964 Jan Hubicka <hubicka@ucw.cz>
967 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
968 across jump functions.
970 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
972 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
974 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
976 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
978 2015-02-19 Richard Henderson <rth@redhat.com>
981 * varasm.c (default_binds_local_p_2): Don't test node->definition;
982 test DECL_EXTERNAL independent of symtab_node.
984 2015-02-19 Jakub Jelinek <jakub@redhat.com>
987 * varpool.c (varpool_node::get_constructor): Return early
988 if this->lto_file_data is NULL.
990 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
992 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
993 (rank_for_schedule_debug): Update.
994 (ready_sort): Make static. Move sorting logic to ...
995 (ready_sort_debug, ready_sort_real): New static functions.
996 (schedule_block): Sort both debug insns and real insns in preparation
997 for ready list trimming. Improve debug output.
998 * sched-int.h (ready_sort): Remove global declaration.
1000 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
1002 * ipa-icf.c (sem_function::equals_private): Adjust.
1003 (sem_function::bb_dict_test): Take a vec<int> * instead of
1005 * ipa-icf.h (bb_dict_test): Likewise.
1007 2015-02-18 Jakub Jelinek <jakub@redhat.com>
1009 PR gcov-profile/64634
1010 * tree-eh.c (frob_into_branch_around): Fix up typos
1011 in function comment.
1012 (lower_catch): Put eh_seq resulting from EH lowering of
1013 the cleanup sequence after the cleanup rather than before it.
1015 2015-02-18 Tom de Vries <tom@codesourcery.com>
1017 * common.opt (fstdarg-opt): New option.
1018 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
1019 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
1020 (@item -fstdarg-opt): New item.
1022 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
1025 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
1028 2015-02-18 Jakub Jelinek <jakub@redhat.com>
1030 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
1032 (ALL_HOST_OBJS): Add mkoffload.o.
1033 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
1035 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
1037 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
1038 (compare_virtual_tables): Be smarter about skipping typeinfos;
1039 do sane output on virtual table table mismatch.
1040 (warn_odr): Be ready for forward declarations of enums;
1041 output sane info on base mismatch and virtual table mismatch.
1042 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
1043 when only one type is polymorphic.
1044 (get_odr_type): Fix hashtable corruption.
1045 (dump_odr_type): Dump mangled names.
1047 2015-02-18 Richard Biener <rguenther@suse.de>
1049 PR tree-optimization/65063
1050 * tree-predcom.c (determine_unroll_factor): Return 1 if we
1051 have replaced looparound PHIs.
1053 2015-02-18 Martin Liska <mliska@suse.cz>
1055 * lto-streamer.c (lto_streamer_init): Encapsulate
1056 streamer_check_handled_ts_structures with checking macro.
1058 2015-02-18 Jakub Jelinek <jakub@redhat.com>
1061 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
1062 section if !implicit_section.
1063 (cgraph_node::create_version_clone_with_body): Likewise.
1064 * trans-mem.c (ipa_tm_create_version): Likewise.
1066 2015-02-18 Richard Biener <rguenther@suse.de>
1068 PR tree-optimization/62217
1069 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
1072 2015-02-18 Marek Polacek <polacek@redhat.com>
1075 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
1076 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
1077 is in range [-16K, -1]. Don't issue run-time error if
1078 (ptr > ptr + offset).
1080 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
1082 * doc/install.texi (nvptx-*-none): New section.
1083 * doc/invoke.texi (Nvidia PTX Options): Likewise.
1084 * config/nvptx/nvptx.opt: Update.
1086 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
1087 (access_check): New functions, copied from
1088 config/i386/intelmic-mkoffload.c.
1089 (main): For non-installed testing, look in all COMPILER_PATHs for
1092 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
1094 2015-02-18 Andrew Pinski <apinski@cavium.com>
1095 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1097 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
1098 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
1100 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
1102 * ipa-visibility.c (function_and_variable_visibility): Only
1103 check locality if node is not already local.
1104 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
1105 call_for_symbol_and_aliases instead of
1106 call_for_symbol_thunks_and_aliases.
1107 (ipa_inline): Likewise.
1108 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1110 * ipa.c (symbol_table::remove_unreachable_nodes): Use
1111 call_for_symbol_and_aliases.
1112 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
1113 (ipa_propagate_frequency_1): Use it; use opt_for_fn
1114 (ipa_propagate_frequency): Update.
1115 (ipa_profile): Add opt_for_fn gueards.
1117 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
1119 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
1120 * doc/invoke.texi (SH options): Document it.
1121 * config/sh/sh.c (sh_insn_length_adjustment): Check
1122 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
1124 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
1126 * common.opt (fipa-cp-alignment): New.
1127 * ipa-cp.c (ipcp_store_alignment_results): Check
1128 flag_ipa_cp_alignment.
1129 * opts.c (default_options_table): Enable -fipa-cp-alignment for
1131 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
1132 * doc/invoke.texi: Document -fipa-cp-alignment.
1134 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
1137 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
1138 to nil. Adjust comments.
1140 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
1142 * ipa-visibility.c (function_and_variable_visibility): Only
1143 check locality if node is not already local.
1144 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
1145 call_for_symbol_and_aliases instead of
1146 call_for_symbol_thunks_and_aliases.
1147 (ipa_inline): Likewise.
1148 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1150 * ipa.c (symbol_table::remove_unreachable_nodes): Use
1151 call_for_symbol_and_aliases.
1152 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
1153 (ipa_propagate_frequency_1): Use it; use opt_for_fn
1154 (ipa_propagate_frequency): Update.
1155 (ipa_profile): Add opt_for_fn guards.
1157 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1159 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
1160 skipping of "strange" tokens.
1162 2015-02-17 Jeff Law <law@redhat.com>
1164 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
1167 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
1169 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
1170 as forcing a HARD_DEP between instructions, thereby
1171 disallowing rewriting to break dependencies.
1173 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
1175 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
1176 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
1177 variables in boundary that have no inlitalizer encoded and are
1179 * varasm.c (default_binds_local_p_2): External definitions do not
1180 count as definitions here.
1182 2015-02-16 Jeff Law <law@redhat.com>
1184 PR tree-optimization/64823
1185 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
1187 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
1188 threading through blocks with PHIs, but no statements.
1189 (thread_through_normal_block): Distinguish between blocks where
1190 we did not process all the statements and blocks with no statements.
1192 2015-02-16 Jakub Jelinek <jakub@redhat.com>
1193 James Greenhalgh <james.greenhalgh@arm.com>
1196 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
1197 section if not linkonce. Fix up formatting.
1198 (cgraph_node::create_version_clone_with_body): Copy section.
1199 * trans-mem.c (ipa_tm_create_version): Likewise.
1201 2015-02-16 Richard Biener <rguenther@suse.de>
1203 PR tree-optimization/65077
1204 * tree-ssa-structalias.c (get_constraint_for_1): Handle
1205 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
1206 (find_func_aliases): Allow float values to carry pointers again.
1208 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
1210 * doc/install.texi (Specific): Reorder targets list to put
1211 aarch64 in alphabetical order. Add a link to aarch64*-*-*
1214 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1215 David Edelsohn <dje.gcc@gmail.com>
1218 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
1219 mapping class to external variable or function reference.
1220 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
1223 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
1226 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
1227 ASM_WEAKEN_DECL if defined.
1229 2015-02-16 Richard Biener <rguenther@suse.de>
1232 * varasm.c (default_file_start): For LTO produced units
1233 emit <artificial> as file directive.
1235 2015-02-16 Richard Biener <rguenther@suse.de>
1237 PR tree-optimization/63593
1238 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
1239 stmts and releasing SSA names until...
1240 (execute_pred_commoning): ... after processing all chains.
1242 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
1245 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
1248 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
1250 * doc/bugreport.texi: Adjust section titles throughout the file
1251 to use "Title Case".
1252 * doc/extend.texi: Likewise.
1253 * doc/gcov.texi: Likewise.
1254 * doc/implement-c.texi: Likewise.
1255 * doc/implement-cxx.texi: Likewise.
1256 * doc/invoke.texi: Likewise.
1257 * doc/objc.texi: Likewise.
1258 * doc/standards.texi: Likewise.
1259 * doc/trouble.texi: Likewise.
1261 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
1263 * cgraph.h (symtab_node::has_aliases_p): Simplify.
1264 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
1265 * tree.c (lookup_binfo_at_offset): Make static.
1266 (get_binfo_at_offset): Do not shadow offset; add explanatory
1269 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
1271 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
1272 for all floading point loads and stores except those using a register
1274 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
1277 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
1279 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
1280 (do_estimate_growth_1): Record if any uninlinable edge was seen.
1281 (estimate_growth): Handle uninlinable edges correctly.
1282 (check_callers): New.
1283 (growth_likely_positive): Handle aliases correctly.
1285 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
1287 * ipa-chkp.c: Use iterate_direct_aliases.
1288 * symtab.c (resolution_used_from_other_file_p): Move inline.
1289 (symtab_node::create_reference): Fix formating.
1290 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
1291 (symtab_node::iterate_reference): Move inline.
1292 (symtab_node::iterate_referring): Move inline.
1293 (symtab_node::iterate_direct_aliases): Move inline.
1294 (symtab_node::used_from_object_file_p_worker): Inline into ...
1295 (symtab_node::used_from_object_file_p): ... this one; move inline.
1296 (symtab_node::call_for_symbol_and_aliases): Move inline;
1297 use iterate_direct_aliases.
1298 (symtab_node::call_for_symbol_and_aliases_1): New method.
1299 (cgraph_node::call_for_symbol_and_aliases): Move inline;
1300 use iterate_direct_aliases.
1301 (cgraph_node::call_for_symbol_and_aliases_1): New method.
1302 (varpool_node::call_for_node_and_aliases): Rename to ...
1303 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
1304 use iterate_direct_aliases.
1305 (varpool_node::call_for_symbol_and_aliases_1): New method.
1306 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
1307 (ipa_discover_readonly_nonaddressable_var): Update.
1308 * ipa-devirt.c: Fix formating.
1309 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
1311 (cgraph_node::call_for_symbol_and_aliases): Move inline.
1312 (cgraph_node::call_for_symbol_and_aliases_1): New function..
1313 * cgraph.h (used_from_object_file_p_worker): Remove.
1314 (resolution_used_from_other_file_p): Move inline.
1315 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
1316 (symtab_node::iterate_reference): Move inline.
1317 (symtab_node::iterate_referring): Move inline.
1318 (symtab_node::iterate_direct_aliases): Move inline.
1319 (symtab_node::used_from_object_file_p_worker): Inline into ...
1320 (symtab_node::used_from_object_file_p): Move inline.
1321 * tree-emutls.c (ipa_lower_emutls): Update.
1322 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
1323 (varpool_node::call_for_node_and_aliases): Remove.
1325 2015-02-14 Jakub Jelinek <jakub@redhat.com>
1327 PR tree-optimization/62209
1328 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
1329 op == range->exp, insert seq and gimplified code after labels
1330 instead of after the phi.
1332 2015-02-13 Jeff Law <law@redhat.com>
1335 Revert my change for tree-optimization/64823.
1337 2015-02-13 Jakub Jelinek <jakub@redhat.com>
1339 PR tree-optimization/65053
1340 * tree-ssa-phiopt.c (value_replacement): When moving assign before
1341 cond, either reset VR on lhs or set it to phi result VR.
1343 2015-02-13 Jeff Law <law@redhat.com>
1345 PR tree-optimization/64823
1346 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
1347 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
1348 threading through blocks with PHIs, but no statements.
1349 (thread_through_normal_block): Distinguish between blocks where
1350 we did not process all the statements and blocks with no statements.
1352 PR rtl-optimization/47477
1353 * match.pd (convert (plus/minus (convert @0) (convert @1): New
1354 simplifier to narrow arithmetic.
1356 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
1359 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
1360 polymorphic call info when type is not known to be preserved.
1362 2015-02-13 Maritn Jambor <mjambor@suse.cz>
1365 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
1366 (inline_call): Use it.
1368 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
1370 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
1371 GOMP_DEVICE_NVIDIA_PTX.
1373 2015-02-13 Jakub Jelinek <jakub@redhat.com>
1376 * stmt.c (emit_case_nodes): Use void_type_node instead of
1377 NULL_TREE as LABEL_DECL type.
1379 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
1381 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
1383 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
1384 symbolic references to data to be forced to constant memory on the
1387 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
1389 PR tree-optimization/65002
1390 * tree-cfg.c (pass_data_fixup_cfg): Don't update
1392 * tree-sra.c (some_callers_have_no_vuse_p): New.
1393 (ipa_early_sra): Reject functions whose callers
1394 assume function is read only.
1396 2015-02-13 Richard Biener <rguenther@suse.de>
1399 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
1400 for LTO produced CUs.
1402 2015-02-13 Bin Cheng <bin.cheng@arm.com>
1404 PR tree-optimization/64705
1405 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
1406 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
1407 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
1408 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
1409 expand_simple_operations.
1411 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
1412 Richard Henderson <rth@redhat.com>
1415 * cgraphunit.c (cgraph_node::finalize_function): Set definition
1416 before notice_global_symbol.
1417 (varpool_node::finalize_decl): Likewise.
1418 * varasm.c (default_binds_local_p_2): Rename from
1419 default_binds_local_p_1, add weak_dominate argument. Use direct
1420 returns instead of assigning to local variable. Unify varpool and
1421 cgraph paths via symtab_node. Reject undef weak variables before
1422 testing visibility. Reorder tests for simplicity.
1423 (default_binds_local_p): Use default_binds_local_p_2.
1424 (default_binds_local_p_1): Likewise.
1425 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
1427 (default_elf_asm_output_external): Emit visibility when specified.
1429 2015-02-13 Alan Modra <amodra@gmail.com>
1431 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
1432 code setting up r11 for out-of-line fp restore.
1434 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
1436 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
1437 (muser-mode): Likewise.
1439 2015-02-13 Alan Modra <amodra@gmail.com>
1441 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
1442 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
1444 2015-02-12 David Howells <dhowells@redhat.com>
1446 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
1448 * tree-ssa-uninit.c (dump_predicates): Likewise.
1449 * opts.c (print_filtered_help): Likewise.
1451 2015-02-12 Jakub Jelinek <jakub@redhat.com>
1453 * dwarf2out.c (output_die): Use "%s", name instead of name to
1454 avoid -Wformat-security warning.
1456 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
1457 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
1458 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
1459 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
1461 2015-02-12 Jason Merrill <jason@redhat.com>
1463 * common.opt (-flifetime-dse): New.
1465 2015-02-12 Jakub Jelinek <jakub@redhat.com>
1468 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
1470 PR tree-optimization/65014
1471 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
1472 use original second operand of arg0 or arg1 instead of
1473 that adjusted by STRIP_NOPS.
1475 2015-02-11 Jeff Law <law@redhat.com>
1478 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
1479 that needs to be queued, just queue it for a single cycle.
1481 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
1483 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
1484 bodies of thunks; comment on why.
1485 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
1488 2015-02-11 Richard Henderson <rth@redhat.com>
1491 * tree-eh.c (mark_reachable_handlers): Mark source and destination
1492 regions of __builtin_eh_copy_values.
1494 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1497 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
1498 ultimate alias is MEM with SYMBOL_REF satisfying
1499 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
1500 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
1502 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
1504 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
1505 "diagnostic-core.h".
1506 (main): Initialize progname, and call diagnostic_initialize.
1508 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
1509 instead of __OPENMP_TARGET__.
1511 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
1512 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
1515 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
1517 * doc/sourcebuild.texi (pie_enabled): Document.
1519 2015-02-11 Martin Liska <mliska@suse.cz>
1522 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
1523 a return value for call to a function that is noreturn.
1525 2015-02-11 Richard Biener <rguenther@suse.de>
1528 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
1531 2015-02-11 Andrew Pinski <apinski@cavium.com>
1534 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
1535 Change the first argument type to size_type_node and add another
1537 (aarch64_simd_expand_builtin): Handle the new argument to
1538 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
1539 print an out when the first two arguments are not
1540 nonzero integer constants.
1541 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
1542 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
1544 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1547 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
1548 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
1549 (ix86_set_current_function): Rewritten.
1550 (ix86_add_new_builtins): Temporarily clear current_target_pragma
1551 when creating builtin fndecls.
1553 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1556 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
1558 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
1559 have no comdat group.
1560 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
1561 (lto_output_varpool_node): Always output alias info.
1562 (output_refs): Output refs of boundary aliases, too.
1563 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
1564 (output_symtab): Output call eges in thunks in boundary.
1565 (get_alias_symbol): Remove.
1566 (input_node, input_varpool_node): Do not special case weakrefs.
1567 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
1568 alias and thunks targets in the boundary; do not take removed symbols
1569 from their comdat groups.
1570 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
1571 (cgraph_node::global_info): Remove.
1572 (cgraph_node::rtl_info): Look through aliases and thunks.
1573 * cgrpah.h (global_info): Remove.
1574 (non_local_p): Remove.
1576 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1577 Sandra Loosemore <sandra@codesourcery.com>
1579 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
1580 to inline asm. List dialects in proper order.
1582 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1583 Sandra Loosemore <sandra@codesourcery.com>
1585 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
1587 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1589 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
1590 modified) reference to Solaris.
1592 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
1594 * doc/extend.texi (Extended Asm): Fix typos.
1596 2015-02-10 Jakub Jelinek <jakub@redhat.com>
1599 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
1601 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
1604 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
1605 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
1606 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
1607 * config/sh/constraints.md (Ara, Add): New constraints.
1608 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
1610 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
1611 atomic_mem_operand_0. Don't use force_reg on the memory address.
1612 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
1613 Sra constraint. Convert to insn_and_split. Add workaround for
1615 (atomic_compare_and_swap<mode>_hard): Copy to
1616 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
1617 Use atomic_mem_operand_0 predicate.
1618 (atomic_compare_and_swap<mode>_soft_gusa,
1619 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
1621 (atomic_compare_and_swap<mode>_soft_tcb,
1622 atomic_compare_and_swap<mode>_soft_imask,
1623 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
1624 atomic_mem_operand_0 predicate and SraSdd constraints.
1625 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
1627 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
1628 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
1629 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
1630 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
1631 force_reg on the memory address.
1632 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
1633 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
1634 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
1635 atomic_mem_operand_1 predicate and Sra constraint.
1636 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
1637 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
1638 Use atomic_mem_operand_1 predicate.
1639 (atomic_<fetchop_name><mode>_hard): Copy to
1640 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
1641 Use atomic_mem_operand_1 predicate.
1642 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
1643 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
1644 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
1645 insn_and_split. Use atomic_mem_operand_1 predicate.
1646 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
1647 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
1648 Use atomic_mem_operand_1 predicate.
1649 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
1650 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
1651 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
1652 in generated insn with original mem operand before emitting the insn.
1653 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
1654 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
1655 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
1656 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
1657 Use atomic_mem_operand_1 predicate and AraAdd constraints.
1658 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
1659 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
1660 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
1661 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
1662 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
1663 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
1664 atomic_not_fetch<mode>_soft_tcb,
1665 atomic_<fetchop_name>_fetch<mode>_soft_imask,
1666 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
1667 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
1668 Use atomic_mem_operand_1 predicate and SraSdd constraints.
1670 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
1672 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
1673 and 3 earlyclobber operands.
1675 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1677 * common.opt (fstack-reuse): Mark as optimization.
1679 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1682 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
1684 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
1686 PR tree-optimization/64326
1687 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
1689 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
1691 PR gcov-profile/61889
1692 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
1694 2015-02-10 Richard Biener <rguenther@suse.de>
1696 PR tree-optimization/64995
1697 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
1698 value we use is final.
1699 (visit_reference_op_store): Always valueize op.
1700 (visit_use): Properly valueize vuses.
1702 2015-02-10 Richard Biener <rguenther@suse.de>
1704 PR tree-optimization/64909
1705 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
1706 pass a scalar-stmt count estimate to the cost model.
1707 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
1709 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
1711 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
1712 enabled by default together with var-tracking.
1714 2015-02-10 Nick Clifton <nickc@redhat.com>
1716 * config/rl78/rl78.c: Remove DIV attribute code accidentally
1717 included in previous rl78 commit.
1719 2015-02-10 Richard Biener <rguenther@suse.de>
1721 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
1722 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
1725 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1727 PR gcov-profile/61889
1728 * config.in: regenerate.
1729 * configure.in: Likewise.
1730 * configure.ac: Check for ftw.h.
1731 * gcov-tool.c: Check for ftw.h before using nftw.
1733 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1736 * ipa-visibility.c (update_visibility_by_resolution_info): Only
1737 assert when not in lto mode.
1739 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1741 * ira-color.c (setup_left_conflict_sizes_p): Simplify
1742 initialization/assignment of conflict_size.
1744 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
1747 * ipa-cp.c (gather_caller_stats): Skip thunks.
1748 (propagate_constants_topo): Skip aliases.
1750 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
1753 * config/sh/sh.c (sh_option_override): Don't change
1754 -freorder-blocks-and-partition to -freorder-blocks even when
1755 unwinding is enabled.
1756 (sh_can_follow_jump): Return false if the followee jump is
1757 a crossing jump when -freorder-blocks-and-partition is specified.
1758 * config/sh/sh.md (*jump_compact_crossing): New insn.
1760 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
1761 Kaz Kojima <kkojima@gcc.gnu.org>
1764 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
1765 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
1766 (sh_can_redirect_branch): Rename to ...
1767 (sh_can_follow_jump): ... this. Constify argument types.
1768 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
1769 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
1770 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
1771 * doc/tm.texi: Regenerate.
1773 2015-02-09 Jakub Jelinek <jakub@redhat.com>
1776 * builtins.c (expand_builtin): Call targetm.expand_builtin
1777 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
1779 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1782 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
1784 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1787 * ipa-icf.c (set_local): New function.
1788 (sem_function::merge): Use it.
1790 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1792 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
1793 (add_type_duplicate): Fix comparison of BINFOs.
1795 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1797 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
1798 on getting VOID pointer.
1800 2015-02-09 Jakub Jelinek <jakub@redhat.com>
1803 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
1806 2015-02-09 Richard Biener <rguenther@suse.de>
1808 * genmatch.c (replace_id): Copy expr_type.
1810 2015-02-09 Richard Biener <rguenther@suse.de>
1812 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
1813 (streamer_write_tree_bitfields): Declare.
1814 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
1815 properly unpack padding.
1816 (unpack_value_fields): Inline ...
1817 (streamer_read_tree_bitfields): ... here.
1818 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
1819 and properly add padding bits.
1820 (streamer_pack_tree_bitfields): Fold into ...
1821 (streamer_write_tree_bitfields): ... this new function,
1822 exposing the bitpack object.
1823 * lto-streamer-out.c (lto_write_tree_1): Call
1824 streamer_write_tree_bitfields.
1826 2015-02-09 Richard Biener <rguenther@suse.de>
1828 PR tree-optimization/54000
1829 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
1830 (struct ivopts_data): Add loop_loc member.
1831 (tree_ssa_iv_optimize_loop): Dump loop location.
1832 (create_new_ivs): Likewise, also dump number of IVs generated.
1834 2015-02-09 Martin Liska <mliska@suse.cz>
1836 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
1837 just if not yet registered.
1838 (ipa_icf_generate_summary): Register callgraph hooks.
1840 2015-02-08 Andrew Pinski <apinski@cavium.com>
1842 * config/aarch64/aarch64.c (gty_dummy): Delete.
1844 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1847 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
1848 (cgraph_node::local_p): Remove thunk related FIXME.
1850 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1853 * i386.c (ix86_function_regparm): Look through aliases to see if callee
1854 is local and optimized.
1855 (ix86_function_sseregparm): Likewise; also use target's SSE math
1856 settings; error out instead of silently generating wrong code
1858 (init_cumulative_args): Look through aliases.
1860 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1863 * ipa-split.c (execute_split_functions): Split if function has aliases.
1865 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1868 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
1869 aliases before trying to expand it.
1870 (cgraph_node::expand_thunk): Fix formating.
1872 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
1874 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
1875 (Using Assembly Language with C): Expand introduction.
1876 (Basic Asm): Copy-edit. Add more information about uses of
1878 (Extended Asm): Copy-edit. Document new escape syntax and
1880 (Global Reg Vars): Copy-edit.
1881 (Local Reg Vars): Likewise.
1883 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
1887 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
1888 (DBX_CONTIN_CHAR): Define.
1890 2015-02-06 Sebastian Pop <s.pop@samsung.com>
1891 Brian Rzycki <b.rzycki@samsung.com>
1893 PR tree-optimization/64878
1894 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
1895 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
1896 Stop recursion at loop phi nodes after having visited a loop phi node.
1898 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1900 * toplev.c (process_options): Change flag_ipa_ra before creating
1901 optimization_{default,current}_node.
1904 * cgraphunit.c (cgraph_node::expand_thunk): If
1905 restype is not is_gimple_reg_type nor the thunk_fndecl
1906 returns aggregate_value_p, set restmp to a temporary variable
1909 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
1911 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
1913 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1916 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1917 add a general secondary reload handler for SDmode, unless we have
1918 both read/write support for SDmode.
1920 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1923 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
1924 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
1925 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
1926 1 before, push it to abstract_vec.
1927 (dwarf2out_abstract_function): Adjust caller. Don't call
1928 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
1929 DECL_ABSTRACT_P flags for all abstract_vec elts.
1931 2015-02-06 Renlin Li <renlin.li@arm.com>
1933 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
1935 * tree-ssa.c (execute_update_addresses_taken): Likewise.
1937 2015-02-06 Jeff Law <law@redhat.com>
1940 * config/h8300/h8300.c (push): New argument "in_prologue".
1941 Pass "in_prologue" along to "F".
1942 (h8300_push_pop): Corresponding changes.
1943 (h8300_expand_prologue): Likewise.
1944 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
1946 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1948 PR rtl-optimization/64957
1950 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
1951 IOR rather than for AND.
1953 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
1956 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
1957 of shift-add and (add + shift) operations. Rename local variable.
1959 2015-02-05 Jeff Law <law@redhat.com>
1962 * config/h8300/constraints.md (U): Correctly dectect
1963 "eightbit_data" memory addresses.
1964 * config/h8300/h8300.c (eightbit_constant_address_p): Also
1965 handle (const (plus (symbol_ref (x)))) where x is declared
1966 as an 8-bit data memory address.
1967 * config/h8300/h8300.md (call, call_value): Correctly detect
1968 "funcvec" functions.
1971 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
1972 24 to 28 bits for the H8/300.
1974 2015-02-06 Alan Modra <amodra@gmail.com>
1977 * config/rs6000/rs6000.c (chain_already_loaded): New function.
1978 (rs6000_call_aix): Use it.
1980 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
1982 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
1985 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
1987 * config/h8300/constraints.md ("U" constraint): Use strict
1988 variant of REG_OK_FOR_BASE_P after reload has started.
1990 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
1992 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
1993 define to zero if !TARGET_NEON.
1994 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
1996 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
1997 Trevor Saunders <tsaunders@mozilla.com>
2000 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
2002 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2005 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
2006 when removing varpool nodes.
2008 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2011 * varpool.c (varpool_node::remove): Fix order of variables.
2013 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2016 * ipa-inline.c (inline_small_functions): Fix ordering issue between
2017 speculation resolution and key updates.
2019 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2021 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
2022 about not letting any speculative edges unupdated.
2024 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2027 * gcov-io.c (gcov_var): Export.
2029 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2032 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
2033 edges that become speculative.
2035 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2037 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
2038 or DW_LANG_Fortran08.
2039 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
2041 (gen_compile_unit_die): Handle "GNU Fortran2003" and
2042 "GNU Fortran2008" language strings.
2043 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
2044 * langhooks.h (lang_GNU_Fortran): New prototype.
2045 * langhooks.c (lang_GNU_Fortran): New function.
2046 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
2049 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
2051 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
2052 (RTX_OK_FOR_OLO10_P): Likewise.
2054 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
2056 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
2058 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2061 * gimple.c: Include gimple-ssa.h.
2062 (maybe_remove_unused_call_args): New function.
2063 * gimple.h (maybe_remove_unused_call_args): Declare.
2064 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
2065 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
2066 * gimple-fold.c (gimple_fold_call): Likewise.
2068 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
2070 PR rtl-optimization/64905
2071 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
2072 pointer alignment if it isn't needed.
2074 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2076 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
2077 cortex-a72.cortex-a53.
2078 * config/aarch64/aarch64-tune.md: Regenerate.
2079 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
2081 2015-02-04 Nick Clifton <nickc@redhat.com>
2083 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
2086 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2088 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
2089 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
2090 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
2092 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
2093 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
2094 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
2095 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
2096 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
2097 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
2098 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
2099 * tree-core.h (enum built_in_function): In between
2100 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
2101 for builtins that use DEF_BUILTIN_CHKP macro.
2103 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
2106 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
2107 operands for tcc_comparison exprs. Fix typos.
2110 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
2111 of two XORs that have an intervening AND or IOR.
2114 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
2115 simplification of XOR of AND to not allocate new rtx before
2116 committing to a simplification.
2118 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2120 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
2121 manual swaps in all peepholes.
2123 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2125 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
2126 of manual swapping implementation.
2127 (aarch64_expand_vec_perm_const_1): Likewise.
2129 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
2131 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
2132 (generic_addrcost_table): Remove NAMED_PARAM.
2133 (cortexa57_addrcost_table): Likewise.
2134 (xgene1_addrcost_table): Likewise.
2135 (generic_regmove_table): Likewise.
2136 (cortexa53_regmove_table): Likewise.
2137 (xgene1_regmove_table): Likewise.
2138 (generic_vector_table): Likewise.
2139 (cortexa57_vector_table): Likewise.
2140 (xgene1_vector_table): Likewise.
2141 (generic_tunings): Likewise.
2142 (cortexa53_tunings): Likewise.
2143 (cortexa57_tunings): Likewise.
2144 (xgene1_tunings): Likewise.
2146 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2148 * config/arm/arm-cores.def: Add cortex-a72 and
2149 cortex-a72.cortex-a53.
2150 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
2151 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2152 * config/arm/arm-tune.md: Regenerate.
2153 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
2154 "cortex-a72.cortex-a53".
2155 * doc/invoke.texi (ARM Options/-mtune): Likewise.
2157 2015-02-04 Nick Clifton <nickc@redhat.com>
2160 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
2162 (nonimmediate_di_operand): Likewise.
2164 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
2165 prefixes of known F5 using MSP430 MCUs.
2167 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2169 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
2170 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
2171 instead of __builtin_sqrt.
2173 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
2175 * varasm.c (do_assemble_alias): Follow transparent alias
2177 (default_assemble_visibility): Follow transparent alias
2178 chain for decl name.
2180 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2183 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
2184 to compute size of referenced value in the constant case.
2186 2015-02-03 Jakub Jelinek <jakub@redhat.com>
2188 PR rtl-optimization/64756
2189 * cse.c (invalidate_dest): New function.
2190 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
2191 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
2192 invalidate and do not record it.
2194 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
2197 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
2198 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
2199 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
2200 atomic_nand<mode>_soft_tcb): New insns.
2201 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
2202 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
2203 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
2204 Split into atomic_not_fetchsi_hard if operands[0] is unused.
2205 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
2206 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
2207 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
2208 atomic_not<mode>_hard if operands[0] is unused.
2209 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
2210 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
2211 if operands[0] is unused.
2212 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
2213 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
2214 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
2215 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
2217 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
2218 into atomic_not<mode>_soft_tcb if operands[0] is unused.
2219 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
2220 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
2221 if operands[0] is unused.
2222 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
2223 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
2224 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
2225 atomic_nand_fetchsi_hard if operands[0] is unused.
2226 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
2227 atomic_nand<mode>_hard if operands[0] is unused.
2228 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
2229 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
2230 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
2231 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
2232 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
2233 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
2234 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
2235 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
2236 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
2237 atomic_not<mode>_hard if operands[0] is unused.
2238 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
2239 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
2241 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
2242 into atomic_not<mode>_soft_tcb if operands[0] is unused.
2243 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
2244 atomic_nand<mode>_hard if operands[0] is unused.
2245 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
2246 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
2248 2015-02-03 David Malcolm <dmalcolm@redhat.com>
2251 * Makefile.in (GCC_OBJS): Add gcc-main.o.
2252 * gcc-main.c: New file, containing "main" taken from gcc.c.
2253 * gcc.c (do_self_spec): Free decoded_options.
2254 (class driver): Move declaration to gcc.h.
2255 (main): Move declaration and implementation to new file
2257 (driver_get_configure_time_options): New function.
2258 * gcc.h (class driver): Move this declaration here, from
2260 (driver_get_configure_time_options): New declaration.
2262 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
2264 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
2265 cross-module inlining.
2266 * cgraph.h (cgraph_node): Add flag merged.
2267 * ipa-icf.c (sem_function::merge): Maintain it.
2269 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
2271 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
2272 instead of OBJECT_P.
2274 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
2277 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
2278 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
2279 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
2280 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
2282 2015-02-03 Jakub Jelinek <jakub@redhat.com>
2285 * combine.c (reg_n_sets_max): New variable.
2286 (can_change_dest_mode, reg_nonzero_bits_for_combine,
2287 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
2288 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
2289 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
2290 (rest_of_handle_combine): Initialize reg_n_sets_max.
2292 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
2294 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
2295 if some always_inline was inlined, apply changes before inlining
2298 2015-02-02 David Malcolm <dmalcolm@redhat.com>
2301 * config/arm/arm.c (arm_option_override): Set
2302 arm_selected_arch/cpu/tune to NULL on entry.
2304 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
2305 Andrew Pinski <pinskia@gcc.gnu.org>
2306 Jakub Jelinek <jakub@gcc.gnu.org>
2309 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
2310 integer typing for small model. Use IN_RANGE.
2312 2015-02-02 Richard Biener <rguenther@suse.de>
2314 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
2315 * tree-vrp.c (vrp_valueize_1): Likewise.
2317 2015-02-02 Alan Modra <amodra@gmail.com>
2319 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
2320 than mem for toc_restore.
2321 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
2322 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
2323 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
2325 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
2328 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
2329 explicit default options.
2331 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
2334 * ipa-utils.c (ipa_merge_profiles): Add release argument.
2335 * ipa-icf.c (sem_function::merge): Do not release body when merging.
2336 * ipa-utils.h (ipa_merge_profiles): Update prototype.
2338 2015-02-01 Jakub Jelinek <jakub@redhat.com>
2341 * cfgexpand.c (deep_ter_debug_map): New variable.
2342 (avoid_deep_ter_for_debug): New function.
2343 (expand_debug_expr): If TERed SSA_NAME is in
2344 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
2345 instead of trying to expand SSA_NAME's def stmt.
2346 (expand_debug_locations): When expanding debug bind
2347 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
2348 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
2350 (pass_expand::execute): Call avoid_deep_ter_for_debug on
2351 all debug bind stmts. Delete deep_ter_debug_map after
2352 expand_debug_location if non-NULL and clear it.
2354 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
2357 * config/sh/sync.md (atomic_fetch_notsi_hard,
2358 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
2359 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
2360 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
2361 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
2362 atomic_not_fetch<mode>_soft_imask): New insns.
2364 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2366 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
2367 (rank_for_schedule_debug): Split from ...
2368 (rank_for_schedule): ... this.
2369 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
2370 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
2372 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
2374 * doc/md.texi (Machine Constraints): Alphabetize table by target.
2375 * doc/extend.texi (x86 Variable Attributes): Move section to
2376 correct alphabetization after renaming.
2377 (x86 Type Attributes): Likewise.
2378 (Target Builtins): Re-alphabetize menu.
2379 (x86 Built-in Functions): Move section to correct alphabetization
2381 (x86 transactional memory intrinsics): Likewise.
2382 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
2383 and x86 Windows Options in table and menu.
2384 (x86 Options): Move section to correct alphabetization after
2386 (x86 Windows Options): Likewise.
2388 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
2390 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
2391 preferred names of the architecture and its 32- and 64-bit
2393 * doc/invoke.texi: Likewise.
2394 * doc/md.texi: Likewise.
2396 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
2399 * config/i386/predicates.md (address_no_seg_operand): Reject
2400 non-CONST_INT_P operands in invalid mode.
2402 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
2404 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
2405 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
2406 * config/i386/predicates.md (address_no_seg_operand): Call
2407 address_operand with VOIDmode.
2408 (vsib_address_operand): Ditto.
2409 (address_mpx_no_base_operand): Ditto.
2410 (address_mpx_no_index_operand): Ditto.
2412 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
2415 * lra-constraints.c (original_subreg_reg_mode): New.
2416 (simplify_operand_subreg): Try to simplify subreg of const. Use
2417 original_subreg_reg_mode for it.
2418 (swap_operands): Update original_subreg_reg_mode.
2419 (curr_insn_transform): Set up original_subreg_reg_mode.
2421 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
2424 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
2426 (process_alt_operands): Use it.
2427 (curr_insn_transform): Check the optional reload pseudo class is
2430 2015-01-30 Joseph Myers <joseph@codesourcery.com>
2432 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
2433 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
2435 * toplev.h (init_asm_output): Update comment on use of
2436 UNKNOWN_LOCATION with fatal_error.
2437 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
2438 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
2439 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
2440 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
2441 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
2442 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
2443 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
2444 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
2445 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
2446 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
2447 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
2448 fatal_error changed to pass input_location as first argument.
2450 2015-01-30 Martin Liska <mliska@suse.cz>
2452 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
2453 in #pragma GCC diagnostic guards.
2455 2015-01-30 Richard Biener <rguenther@suse.de>
2457 PR tree-optimization/64829
2458 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
2459 not add a widening conversion pattern but hand off extra
2460 widenings to callers.
2461 (vect_recog_widen_mult_pattern): Handle extra widening produced
2462 by vect_handle_widen_op_by_const.
2463 (vect_recog_widen_shift_pattern): Likewise.
2464 (vect_pattern_recog_1): Remove excess vertical space in dumping.
2465 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2466 (vect_init_vector_1): Likewise.
2467 (vect_get_vec_def_for_operand): Likewise.
2468 (vect_finish_stmt_generation): Likewise.
2469 (vectorizable_load): Likewise.
2470 (vect_analyze_stmt): Likewise.
2471 (vect_is_simple_use): Likewise.
2473 2015-01-29 Jeff Law <law@redhat.com>
2475 * combine.c (try_combine): Fix typo in comment.
2477 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
2480 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
2481 (rs6000_stack_info): Add assert.
2482 (rs6000_output_savres_externs): New function, split off from...
2483 (rs6000_output_function_prologue): ... here. Do not call it for
2486 2015-01-29 Jeff Law <law@redhat.com>
2489 * combine.c (try_combine): If I0 is a memory load and I3 a store
2490 to a related address, increase the "goodness" of doing a 4-insn
2491 combination with I0-I3.
2492 (make_field_assignment): Handle SUBREGs in the ior+and case.
2494 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
2496 PR tree-optimization/64746
2497 * tree-if-conv.c (mask_exists): New function.
2498 (predicate_mem_writes): Save created mask with given size for further
2500 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
2501 (ifcvt_repair_bool_pattern): Collect all statements that are root
2502 of bool pattern and use iterative algorithm to remove multiple uses
2503 of predicates, display number of required iterations.
2505 2015-01-29 Richard Biener <rguenther@suse.de>
2507 PR tree-optimization/64853
2508 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
2509 stmt will get simulated again.
2510 * tree-ssa-ccp.c (valueize_op_1): Likewise.
2512 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2514 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
2515 return_in_pc. Remove redundant assignments.
2516 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
2517 (arm_expand_epilogue): Don't compare boolean with true in if condition.
2519 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
2521 * config/i386/i386.c (ix86_mode_after): Make static.
2523 2015-01-29 Richard Biener <rguenther@suse.de>
2525 PR tree-optimization/64844
2526 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
2527 dump cost model analysis.
2528 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2529 Do not register adjusted load/store costs here.
2531 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
2532 Uros Bizjak <ubizjak@gmail.com>
2534 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
2535 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
2536 using x86_use_pseudo_pic_reg.
2537 * config/i386/i386.c (ix86_conditional_register_usage): Remove
2538 support for fixed PIC register.
2539 (ix86_use_pseudo_pic_reg): Not static any more.
2541 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
2544 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
2545 to avoid error in cgraph node verification.
2547 2015-01-29 Marek Polacek <polacek@redhat.com>
2549 * doc/standards.texi: Reflect that the default for C is gnu11.
2551 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
2554 * reorg.c (switch_text_sections_between_p): New function.
2555 (relax_delay_slots): Call it when testing if the jump insn
2556 is removable. Use targetm.can_follow_jump when testing if
2557 the conditional branch can follow an unconditional jump.
2559 2015-01-27 Caroline Tice <cmtice@google.com>
2561 Committing VTV Cywin/Ming patch for Patrick Wollgast
2562 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
2563 if -fvtable-verify=preinit/std is used.
2564 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
2565 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
2566 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
2567 if -fvtable-verify=preinit/std is used.
2568 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
2569 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
2570 if -fvtable-verify=preinit/std is used.
2571 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
2572 * config/i386/mingw32.h (LIB_SPEC): Likewise.
2573 * varasm.c (assemble_variable): Add code to properly set the comdat
2574 section and name for the .vtable_map_vars section in case the
2575 target is PE or COFF.
2577 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
2580 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
2581 make sane BB profile.
2582 (cgraph_node::expand_thunk): Make sane BB profile.
2583 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
2584 * cgraph.h (init_lowered_empty_function): Update prototype.
2585 * config/i386/i386.c (make_resolver_func): Update call.
2586 * predict.c (gate): Disable branch prediction pass if
2587 profile is already there.
2589 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
2591 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
2592 * opth-gen.awk: Likewise.
2593 * common.opt: Mark flag_fp_contract_mode as Optimization.
2595 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
2597 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
2598 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
2600 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
2603 * config/sh/predicates.md (atomic_arith_operand,
2604 atomic_logical_operand): Remove.
2605 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
2606 (atomic_arith_operand_0): New predicate.
2607 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
2608 Use atomic_arith_operand_0 for input values.
2609 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
2610 atomic_compare_and_swap<mode>_soft_gusa,
2611 atomic_compare_and_swap<mode>_soft_tcb,
2612 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
2613 arith_reg_operand instead of register_operand.
2614 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
2615 atomic_arith_operand_0 for newval input.
2616 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2617 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
2618 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
2619 arith_reg_operand instead of register_operand.
2620 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
2621 fetchop_predicate_1, fetchop_constraint_1_llcs,
2622 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
2623 fetchop_constraint_1_imask): New code iterator attributes.
2624 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
2625 register_operand. Use fetchop_predicate_1.
2626 (atomic_fetch_<fetchop_name>si_hard,
2627 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
2628 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
2629 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
2630 and arith_reg_operand instead of register_operand. Use
2631 fetchop_predicate_1, fetchop_constraint_1_gusa.
2632 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
2633 and arith_reg_operand instead of register_operand. Use
2634 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
2636 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
2637 and arith_reg_operand instead of register_operand. Use
2638 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
2640 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
2641 register_operand. Use atomic_logical_operand_1.
2642 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
2643 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
2644 arith_reg_operand instead of register_operand.
2645 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
2646 Use arith_reg_dest and arith_reg_operand instead of register_operand.
2647 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
2648 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
2649 register_operand. Use fetchop_predicate_1.
2650 (atomic_<fetchop_name>_fetchsi_hard,
2651 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
2652 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2653 fetchop_constraint_1_llcs.
2654 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
2655 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2656 fetchop_constraint_1_gusa.
2657 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
2658 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2659 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
2660 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
2661 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2662 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
2663 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
2664 register_operand. Use atomic_logical_operand_1.
2665 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
2666 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
2667 arith_reg_operand instead of register_operand.
2668 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
2669 arith_reg_operand instead of register_operand. Use logical_operand
2670 and K08. Adjust asm sequence to allow R0 usage.
2671 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
2672 arith_reg_operand instead of register_operand. Use logical_operand
2675 2015-01-28 Jakub Jelinek <jakub@redhat.com>
2678 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
2679 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
2680 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
2681 only get_full_len HOST_WIDE_INTs from get_val () array rather than
2682 all bits in *val_wide.
2684 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
2686 * varpool.c (tls_model_names): Fix names.
2687 (varpool_node::dump): Dump tls- prefix for tls models.
2689 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
2690 Bernd Schmidt <bernds@codesourcery.com>
2691 Nathan Sidwell <nathan@codesourcery.com>
2693 * config/nvptx/mkoffload.c: New file.
2694 * config/nvptx/t-nvptx: Add build rules for it.
2695 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
2696 (extra_programs): Add mkoffload.
2697 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
2699 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
2701 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
2704 * cfgexpand.c (reorder_operands): Skip debug gimples.
2706 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
2708 PR tree-optimization/64277
2709 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
2710 range info when possible to refine estimation.
2712 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2714 PR tree-optimization/64718
2715 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
2716 be a 16bit unsigned integer when n->range is 16.
2717 (bswap_replace): Convert src to that type if necessary for all bswap
2718 sizes. Fix rotation right notation in nearby comment. Use bswap_type
2719 set in pass_optimize_bswap::execute ().
2721 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
2723 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
2724 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
2725 integer and floating point variants.
2726 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
2728 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
2730 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
2731 for all vector modes.
2733 2015-01-28 Jakub Jelinek <jakub@redhat.com>
2736 * doc/sourcebuild.texi (comdat_group): Document.
2738 2015-01-28 Terry Guo <terry.guo@arm.com>
2740 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
2742 2015-01-27 David Malcolm <dmalcolm@redhat.com>
2744 * toplev.c (print_version): Add param "show_global_state", and
2745 only print GGC and plugin information if it is true.
2746 (init_asm_output): Pass in "true" for the new param when calling
2748 (process_options): Likewise.
2749 (toplev::main): Likewise.
2750 * toplev.h (print_version): Add new param to decl.
2752 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
2756 * tree.c (lookup_binfo_at_offset): New function.
2757 (get_binfo_at_offset): Use it.
2759 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
2762 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
2763 on vtable being vtable.
2765 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2767 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
2768 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
2770 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
2771 -mno-hotpatch options. Change syntax of -mhotpatch= option.
2772 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
2774 (s390_hotpatch_trampoline_halfwords_max): Renamed.
2775 (s390_hotpatch_hw_max): New name.
2776 (s390_hotpatch_trampoline_halfwords): Renamed.
2777 (s390_hotpatch_hw_before_label): New name.
2778 (get_hotpatch_attribute): Removed.
2779 (s390_hotpatch_hw_after_label): New name.
2780 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
2782 (s390_attribute_table): Ditto.
2783 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
2784 (s390_function_num_hotpatch_hw): New name.
2785 Remove special handling of inline functions and hotpatching.
2786 Return number of nops before and after the function label.
2787 (s390_can_inline_p): Removed.
2788 (s390_asm_output_function_label): Emit a configurable number of nops
2789 after the function label.
2790 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
2791 (TARGET_CAN_INLINE_P) Removed.
2792 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
2794 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2795 Jiong Wang <jiong.wang@arm.com>
2797 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
2799 (cb<optab><mode>1): Likewise.
2800 * config/aarch64/iterators.md (bcond): New define_code_attr.
2802 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2804 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
2807 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2809 * config/s390/s390.c (s390_register_move_cost): Increase costs for
2812 2015-01-27 Richard Biener <rguenther@suse.de>
2814 * tree-vrp.c (update_value_range): Intersect the range with
2815 old recorded SSA name range information.
2817 2015-01-27 Nick Clifton <nickc@redhat.com>
2819 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
2820 BC, DE and HL registers directly, not via AX.
2821 When decrementing the stack pointer by a large amount, transfer SP
2822 into AX and perform the subtraction there.
2823 (rl78_expand_epilogue): Perform the inverse of the above
2826 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2828 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
2830 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2831 Yury Gribov <y.gribov@samsung.com>
2834 * ubsan.c (ubsan_source_location): Refactor code.
2835 (ubsan_type_descriptor): Update type size. Refactor code.
2837 2015-01-27 Richard Biener <rguenther@suse.de>
2839 PR tree-optimization/56273
2840 PR tree-optimization/59124
2841 PR tree-optimization/64277
2842 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
2843 from the first VRP pass.
2845 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2848 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
2849 handle the first argument in the same loop as all the other arguments.
2851 PR rtl-optimization/61058
2852 * jump.c (cleanup_barriers): Update basic block boundaries
2853 if BLOCK_FOR_INSN is non-NULL on PREV.
2855 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
2857 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
2858 bounds narrowing, already instrumented calls and calls to
2859 not instrumentable functions.
2861 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2863 PR tree-optimization/64807
2864 * wide-int.cc (wi::divmod_internal): Clear
2865 b_dividend[dividend_blocks_needed].
2867 2015-01-26 DJ Delorie <dj@redhat.com>
2869 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
2870 volatile memory references.
2872 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
2875 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
2877 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
2878 shifts if it already fits into K08.
2880 2015-01-26 Jakub Jelinek <jakub@redhat.com>
2883 * ipa-inline.c (inline_small_functions): Print "unknown" even
2884 if edge->call_stmt is non-NULL, but has builtins or unknown
2888 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
2889 with asterisk, skip the first character.
2891 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2894 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
2897 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
2900 * config/i386/i386.md (*movdi_internal): Also check operand 0
2901 to determine TYPE_LEA operand.
2902 (*movsi_internal): Ditto.
2904 2015-01-26 Jakub Jelinek <jakub@redhat.com>
2906 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
2907 OPTION_MASK_QUAD_MEMORY_ATOMIC.
2909 2015-01-26 Renlin Li <renlin.li@arm.com>
2911 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
2913 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
2916 2015-01-26 Richard Biener <rguenther@suse.de>
2919 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
2920 combining two BIT_AND_EXPR predicates.
2922 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2925 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
2927 2015-01-26 Terry Guo <terry.guo@arm.com>
2929 * config/arm/arm.c (arm_file_start): Update the assignment of
2932 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
2934 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
2936 config/arm/arm.md: Include the new Cortex-A57 model.
2937 (generic_sched): Don't use generic_sched when tuning for
2940 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
2941 Uros Bizjak <ubizjak@gmail.com>
2943 * config/i386/i386.c (get_builtin_code_for_version): Add
2944 support for BMI and BMI2 multiversion functions.
2946 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2948 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
2949 (extract_bit_field): Likewise.
2950 (extract_low_bits): Likewise.
2951 (expand_mult): Likewise.
2952 (expand_mult_highpart_adjust): Likewise.
2954 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
2956 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
2957 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
2958 * config/i386/i386.c (processor_model): Add
2959 M_INTEL_COREI7_BROADWELL.
2960 (arch_names_table): Add "broadwell".
2962 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
2971 * config/sh/sh-protos.h
2972 (sh_extending_set_of_reg::can_use_as_unextended_reg,
2973 sh_extending_set_of_reg::use_as_unextended_reg,
2974 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
2975 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
2976 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
2977 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
2978 (sh_treg_insns): New class.
2979 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
2980 (scope_counter): New class.
2981 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
2982 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
2983 sh_extending_set_of_reg::can_use_as_unextended_reg,
2984 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
2985 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
2986 sh_split_treg_set_expr): New functions.
2987 (addsubcosts): Handle treg_set_expr.
2988 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
2989 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
2990 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
2991 (sh_insn_operands_modified_between_p): Make non-static.
2992 * config/sh/predicates.md (zero_extend_movu_operand): Allow
2993 simple_mem_operand in addition to displacement_mem_operand.
2994 (zero_extend_operand): Don't allow zero_extend_movu_operand.
2995 (treg_set_expr, treg_set_expr_not_const01,
2996 arith_reg_or_treg_set_expr): New predicates.
2997 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
2998 arith_or_int_operand instead of logical_operand. Convert to
2999 insn_and_split. Try to optimize constant operand in splitter.
3000 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
3001 (*tstqi_t_zero): Delete.
3002 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
3003 (tstsi_t_and_not): Delete.
3004 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
3005 Convert to insn_and_split.
3006 (unnamed split, tstsi_t_zero_extract_xor,
3007 tstsi_t_zero_extract_subreg_xor_little,
3008 tstsi_t_zero_extract_subreg_xor_big): Delete.
3009 (*tstsi_t_shift_mask): New insn_and_split.
3010 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
3011 to recombine with surrounding insns when splitting.
3012 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
3013 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
3014 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
3015 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
3016 (*cbranch_div0s: Delete.
3017 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
3018 Try to recombine with surrounding insns when splitting. Add operand
3020 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
3021 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
3022 *addc_r_r_msb, *addc_2r_msb): Delete.
3023 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
3025 (*addc_negreg_t): New insn_and_split.
3026 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
3027 Try to recombine with surrounding insns when splitting.
3028 Add operand order variants.
3029 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
3030 insn_and_split patterns.
3031 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
3032 surrounding insns when splitting.
3033 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
3034 (*rotcl): Likewise. Add zero_extract variant.
3035 (*ashrsi2_31): New insn_and_split.
3036 (*negc): Convert to insn_and_split. Use treg_set_expr.
3037 (*zero_extend<mode>si2_disp_mem): Update comment.
3038 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
3040 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
3041 with surrounding insns when splitting.
3042 (any_treg_expr_to_reg): New insn_and_split.
3043 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
3044 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
3045 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
3046 *zero_extract_2): New single bit zero extract patterns.
3047 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
3048 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
3049 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
3050 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
3052 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
3053 register_operand for set source.
3055 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
3057 * i386.opt (prefetch_sse): New targetsave.
3058 * i386.c (ix86_function_specific_save): Save prefetch_sse.
3059 (ix86_function_specific_restore): Restore prefetch_sse and initialize
3060 ix86_cost/ix86_tune_cost.
3062 2015-01-23 David Malcolm <dmalcolm@redhat.com>
3064 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3065 Support the JIT by using 0 as the language type.
3067 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
3070 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
3071 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
3072 (mark_regno_live, process_bb_lives): Pass new parameter value to
3073 make_hard_regno_born.
3075 2015-01-23 Jakub Jelinek <jakub@redhat.com>
3077 PR rtl-optimization/63637
3078 PR rtl-optimization/60663
3079 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
3080 if elt->cost is MAX_COST for ASM_OPERANDS.
3081 (find_sets_in_insn): Fix up comment typo.
3082 (cse_insn): Don't set src_volatile for all non-volatile
3083 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
3084 or with "memory" clobber. Set elt->cost to MAX_COST
3085 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
3086 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
3088 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
3090 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
3093 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
3095 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
3096 libgcc/config/i386/elf-lib.h.
3098 2015-01-23 Jakub Jelinek <jakub@redhat.com>
3101 * gcc.c (print_configuration): Don't print a blank line at the end
3103 (run_attempt): ... but here unstead.
3106 * omp-low.c (scan_sharing_clauses): Don't ignore
3107 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
3108 on target data/update constructs.
3110 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3113 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
3114 (DEBUG_RELOAD): Removed define.
3115 (m32c_limit_reload_class): Enable traces with if DEBUG0.
3116 (m32c_function_arg): Added a type cast.
3117 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
3118 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
3119 * config/m32c/bitops.md (andqi3_16): Likewise.
3120 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
3121 (push_a01_l): Likewise.
3123 2015-01-23 David Malcolm <dmalcolm@redhat.com>
3126 * main.c (main): Construct toplev instances with init_signals=true.
3127 * toplev.c (general_init): Add param "init_signals", and use it to
3128 conditionalize the calls to signal and host_hooks.extra_signals.
3129 (toplev::toplev): Add param "init_signals".
3130 (toplev::main): When invoking general_init, pass m_init_signals
3131 to control whether signal-handlers are installed.
3132 * toplev.h (toplev::toplev): Add param "init_signals".
3133 (toplev::m_init_signals): New field.
3135 2015-01-23 David Malcolm <dmalcolm@redhat.com>
3138 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
3139 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
3140 latter may be affected by the former (e.g. on i686).
3142 2015-01-23 Martin Liska <mliska@suse.cz>
3144 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
3145 false positive during profiledbootstrap.
3147 2015-01-23 Tom de Vries <tom@codesourcery.com>
3150 * lto-opts.c (lto_write_options): Output non-explicit conservative
3152 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
3153 (append_compiler_options): Pass -fopenacc through.
3155 2015-01-23 Tom de Vries <tom@codesourcery.com>
3158 * lto-opts.c (lto_write_options): Output non-explicit conservative
3160 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
3161 (append_compiler_options): Pass -fopenmp through.
3163 2015-01-23 Jakub Jelinek <jakub@redhat.com>
3166 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
3169 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
3170 * diagnostic.def (DK_ICE_NOBT): New kind.
3171 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
3172 like DK_ICE, but never print backtrace.
3173 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
3174 (internal_error_no_backtrace): New function.
3175 * gcc.c (execute): Use internal_error_no_backtrace instead of
3178 2015-01-22 Jeff Law <law@redhat.com>
3181 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
3182 improve code density for small immediate to memory case.
3183 (insv): Better handle bitfield assignments when the field is
3184 being set to all ones.
3185 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
3188 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3189 Jakub Jelinek <jakub@redhat.com>
3191 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
3192 for !TARGET_LIBC_PROVIDES_SSP version and
3193 -fstack-protector-{all,strong,explicit} otherwise.
3194 * config/freebsd.h (LINK_SSP_SPEC): Handle
3195 -fstack-protector-{strong,explicit}.
3197 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
3198 H.J. Lu <hongjiu.lu@intel.com>
3201 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
3204 2015-01-22 Wei Mi <wmi@google.com>
3206 PR rtl-optimization/64557
3207 * dse.c (record_store): Call get_addr for mem_addr.
3208 (check_mem_read_rtx): Likewise.
3210 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
3212 * fold-const.c (const_binop): Add early return for non-tcc_binary.
3214 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3216 * toplev.c (init_local_tick): Process the failure when read
3217 fails for random_seed.
3219 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
3220 'pretty_name' to avoid memory overflow.
3222 2015-01-22 Richard Biener <rguenther@suse.de>
3225 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
3226 abnormal coalescing on undefined SSA names.
3228 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
3232 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
3234 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
3236 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
3239 * fold-const.c (fold_checksum_tree): Don't include value of
3240 expr->decl_with_vis.symtab_node in the checksum.
3242 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3244 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
3246 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
3249 * gcc.c (insert_comments): New function.
3250 (try_generate_repro): Call it.
3251 (append_text): Removed.
3253 2015-01-22 Richard Biener <rguenther@suse.de>
3255 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
3256 with IL incompatible options. Properly honor user optimize
3259 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
3261 PR rtl-optimization/64682
3262 * combine.c (distribute_notes): When moving a death note for
3263 a register that is set in the new I2, make sure to put it
3266 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
3268 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
3271 2015-01-21 Jakub Jelinek <jakub@redhat.com>
3274 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
3275 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
3276 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
3279 * doc/invoke.texi (-fsanitize=vptr): Document.
3281 PR rtl-optimization/62078
3282 * dse.c: Include cfgcleanup.h.
3283 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
3284 anything call purge_all_dead_edges and cleanup_cfg at the end
3287 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
3289 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
3292 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3294 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
3297 2015-01-21 David Sherwood <david.sherwood@arm.com>
3298 Tejas Belagod <Tejas.Belagod@arm.com>
3300 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
3301 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
3302 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
3305 2015-01-21 David Sherwood <david.sherwood@arm.com>
3306 Tejas Belagod <Tejas.Belagod@arm.com>
3308 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
3309 (aarch64_reverse_mask): New decls.
3310 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
3311 (insn_count): New mode_attr.
3312 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
3313 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
3314 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
3315 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
3316 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
3317 (aarch64_simd_st4): New patterns.
3318 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
3319 (aarch64_reverse_mask): New functions.
3321 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
3323 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
3325 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
3326 addressing modes for BE.
3327 (aarch64_print_operand): Add 'R' specifier.
3328 (aarch64_simd_disambiguate_copy): Delete.
3329 (aarch64_simd_emit_reg_reg_move): New function.
3330 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
3331 in define_splits for structural moves.
3332 (mov<mode>): Use less restrictive predicates.
3333 (*aarch64_mov<mode>): Simplify and only allow for LE.
3334 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
3336 2015-01-21 Alan Hayward <alan.hayward@arm.com>
3338 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
3340 2015-01-21 Richard Henderson <rth@redhat.com>
3343 * ccmp.c (used_in_cond_stmt_p): Remove.
3344 (expand_ccmp_expr): Don't use it.
3346 2015-01-21 Nick Clifton <nickc@redhat.com>
3348 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
3351 2015-01-21 Richard Biener <rguenther@suse.de>
3354 * tree-core.h (builtin_info, builtin_info_type): Turn from
3355 an object with two arrays into an array of an object with
3356 decl and two flags, implicit_p and declared_p.
3357 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
3358 set_builtin_decl, set_builtin_decl_implicit_p,
3359 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
3360 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
3361 * builtins.c (builtin_info): Adjust.
3362 * gimplify.c (gimplify_addr_expr): References to builtins
3363 that have been declared by the user makes them eligible for
3364 use by the compiler. Call set_builtin_decl_implicit_p on them.
3366 2015-01-20 Jeff Law <law@redhat.com>
3369 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
3370 allow pc-relative addresses in operand predicates or constraints.
3372 2015-01-21 Bin Cheng <bin.cheng@arm.com>
3374 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
3375 neon on aarch32 processors for stringops.
3377 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3380 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
3382 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3385 * ipa-inline.c: Include lto-streamer.h
3386 (report_inline_failed_reason): Output source file differences and
3387 flags on optimization/target node mismatch.
3388 (can_inline_edge_p): Consider caller to be the outer inline function;
3389 be less restrictive about matching opimize and optimize_size attributes.
3390 (inline_account_function_p): Break out from ...
3391 (inline_small_functions): ... here.
3392 * ipa-inline-transform.c (clone_inlined_nodes): Use
3393 inline_account_function_p.
3394 (inline_call): Use optimize attribution; use inline_account_function_p.
3395 (inline_transform): Use opt_for_fn.
3396 * ipa-inline.h (inline_account_function_p): Declare.
3398 2015-01-20 Jakub Jelinek <jakub@redhat.com>
3401 * dwarf2out.c (decl_piece_node): Don't put bitsize into
3402 mode if bitsize <= 0.
3403 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
3404 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
3405 sizes and positions.
3407 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
3409 * config/nios2/nios2.c (nios2_asm_file_end): Implement
3410 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
3412 (TARGET_ASM_FILE_END): Define.
3414 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3416 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
3417 (struct tune_params): Use the enum.
3418 * arm.c (arm_*_tune): Update.
3419 (arm_option_override): Update.
3421 2015-01-20 Richard Biener <rguenther@suse.de>
3424 * ipa-reference.c (add_static_var): Inline ...
3425 (analyze_function): ... here after splitting out from ...
3426 (is_proper_for_analysis): ... this.
3428 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
3431 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
3432 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
3433 replace the conditional with it's true branch.
3434 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
3435 (arm_lra_p): Remove.
3437 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
3439 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
3441 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3443 * config/tilegx/mul-tables.c: Move symtab.h include after
3444 coretypes.h include.
3445 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
3446 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
3447 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
3448 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
3449 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3451 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
3455 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
3457 PR rtl-optimization/64081
3458 * loop-iv.c (def_pred_latch_p): New function.
3459 (latch_dominating_def): Allow specific cases with non-single
3461 (iv_get_reaching_def): Likewise.
3462 (check_complex_exit_p): New function.
3463 (check_simple_exit): Use check_complex_exit_p to allow certain cases
3464 with exits not executing on any iteration.
3466 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3469 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
3472 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3475 * i386.c (gate): Check flag_expensive_optimizations and
3477 (ix86_option_override_internal): Drop optimize_size condition
3478 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
3479 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
3481 (ix86_avx256_split_vector_move_misalign,
3482 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
3483 * sse.md (all uses of TARGET_PREFER_AVX128): Add
3484 optimize_insn_for_speed_p check.
3486 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
3488 * config/mips/mips.h (FP_ASM_SPEC): New define.
3489 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
3492 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
3495 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
3496 nullptr for insn when reaching the first insn.
3497 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
3498 (sh_insn_operands_modified_between_p): Add nullptr check.
3499 (sh_find_extending_set_of_reg): Fix log message. Don't accept
3500 sign extending mem load if the insn contains any UNSPEC or
3503 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3505 * params.def (inline-unit-growth): Drop to 15%.
3506 * invoke.texi (inline-unit-growth): Document change.
3508 2015-01-19 Martin Liska <mliska@suse.cz>
3511 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
3512 function for second argument of OBJ_TYPE_REF.
3514 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3517 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
3518 whether function is an alias.
3520 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3522 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
3525 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
3527 PR rtl-optimization/64671
3528 * lra-remat.c (operand_to_remat): Don't consider jump and call
3531 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
3533 * config/rs6000/default64.h: Include rs6000-cpus.def.
3534 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
3535 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
3536 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
3538 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
3540 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
3541 pseudo-op to specify assembler dialect.
3543 2015-01-19 Martin Liska <mliska@suse.cz>
3546 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
3547 Handle safe potentially removed nodes during filtering.
3549 2015-01-19 Martin Liska <mliska@suse.cz>
3551 * doc/extend.texi (no_icf): Add new attribute description.
3552 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
3553 where the pass attempts to merge a function with no_icf attribute.
3555 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3558 * doc/md.texi (ARM Options): Document register constraints.
3560 2015-01-19 Jiong Wang <jiong.wang@arm.com>
3561 Andrew Pinski <apinski@cavium.com>
3564 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
3565 (ashl<mode>3): Don't expand if operands[2] is not constant.
3567 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3570 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
3571 Match xor-and-xor RTL pattern.
3573 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
3575 PR rtl-optimization/64081
3576 * loop-iv.c (def_pred_latch_p): New function.
3577 (latch_dominating_def): Allow specific cases with non-single
3579 (iv_get_reaching_def): Likewise.
3580 (check_complex_exit_p): New function.
3581 (check_simple_exit): Use check_complex_exit_p to allow certain cases
3582 with exits not executing on any iteration.
3584 2015-01-19 Jakub Jelinek <jakub@redhat.com>
3586 * common.opt (fgraphite): Fix a typo.
3588 2015-01-19 Felix Yang <felix.yang@huawei.com>
3590 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
3592 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
3593 uminp, smax_nanp, smin_nanp): New builtins.
3594 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
3595 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
3596 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
3597 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
3598 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
3599 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
3600 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
3601 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
3602 vpminnms_f32): Rewrite using builtin functions.
3604 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
3607 * omp-low.c (offload_symbol_decl): Remove variable.
3608 (get_offload_symbol_decl): Remove function.
3609 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
3610 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
3611 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
3612 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
3613 BUILT_IN_GOACC_UPDATE don't pass it at all.
3615 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
3617 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
3620 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
3622 * ipa-chkp.c (chkp_produce_thunks): Add early param
3623 to split thunks production into two passes. Keep
3624 'always_inline' function bodies after the first pass.
3625 (pass_data_ipa_chkp_early_produce_thunks): New.
3626 (pass_ipa_chkp_early_produce_thunks): New.
3627 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
3628 chkp_produce_thunks signature.
3629 (make_pass_ipa_chkp_early_produce_thunks): New.
3630 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
3631 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
3632 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
3634 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3636 * cgraph.c (cgraph_node::dump): Dump profile flags.
3638 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
3641 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
3642 reg appear first in the parallel.
3644 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3646 * ipa-reference.c (set_reference_optimization_summary,
3647 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
3649 (ignore_module_statics): New static var.
3650 (propagate_bits): If ipa-reference is disabled, do not look into local
3652 (analyze_function): Disable analysis when ipa_reference is disabled.
3653 (generate_summary): Do not dump when reference is disabled;
3654 collect vars accessed from functions with ipa-reference disabled.
3655 (get_read_write_all_from_node): When ipa-reference is disabled, use the
3657 (gate): Enable for LTO.
3658 (ignore_edge_p): New function.
3659 (propagate): Skip functions w/o ipa-reference analysis.
3660 * optc-save-gen.awk: Handle optimize_debug correctly.
3661 * opth-gen.awk: Likewise.
3662 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
3663 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
3664 fira-share-save-slots, fira-share-spill-slots,
3665 fmodulo-sched-allow-regmoves, fpartial-inlining,
3666 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
3667 ftracer, ftree-parallelize-loops, fassociative-math,
3668 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
3670 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
3671 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
3673 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
3676 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3679 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
3681 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
3683 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
3685 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
3686 Remove duplicate option listings.
3688 2015-01-18 Felix Yang <felix.yang@huawei.com>
3690 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
3691 (autofdo_source_profile::get_callsite_total_count,
3692 function_instance::get_function_instance_by_decl,
3693 string_table::get_index, string_table::get_index_by_decl,
3694 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
3695 Fix comment typos. Reformatting and minor code rearrangement.
3697 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3699 * config/rs6000/rs6000.md (probe_stack): Delete.
3700 (probe_stack_address): New.
3702 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3704 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
3705 to test for 32-bit ABIs, not !TARGET_POWERPC64.
3707 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3709 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
3710 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
3711 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
3713 (rs6000_libcall_value): Use the new function.
3715 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
3717 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
3719 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
3721 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
3722 implement a more precise life analysis for it during backward scan.
3724 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3726 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
3728 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
3730 PR rtl-optimization/52773
3731 * calls.c (emit_library_call_value): When pushing arguments use
3732 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
3733 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
3734 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
3736 2015-01-17 Jeff Law <law@redhat.com>
3738 PR rtl-optimization/32790
3739 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
3740 not ZERO_EXTEND in SET_DESTs.
3742 2015-01-17 Alan Modra <amodra@gmail.com>
3744 * cprop.c (do_local_cprop): Revert last change.
3746 2015-01-16 DJ Delorie <dj@redhat.com>
3747 Nick Clifton <nickc@redhat.com>
3749 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
3750 (addhi3_real): Likewise. Fix [HL+0] syntax.
3751 (subqi3_real): Likewise.
3752 (subhi3_real): Likewise.
3753 (cbranchqi4_real): Likewise. Allow saddr,#imm.
3754 (cbranchhi4_real): Likewise.
3755 (cbranchhi4_real_inverted): Likewise.
3756 (cbranchsi4_real_lt): Likewise.
3757 (cbranchsi4_real_ge): Likewise.
3758 (cbranchsi4_real_ge): Likewise.
3759 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
3760 (sub<mode>3_virt): Likewise.
3761 (cbranchqi4_virt): Likewise.
3762 (cbranchhi4_virt): Likewise.
3763 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
3764 always use '[reg+imm]' even when imm is zero.
3765 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
3766 (rl78_general_operand): New.
3767 (rl78_nonimmediate_operand): New.
3768 (rl78_nonfar_operand): Use them.
3769 (rl78_nonfar_nonimm_operand): Likewise.
3770 (rl78_stack_based_mem): Fix.
3771 * config/rl78/constraints.md (Ibqi): New.
3776 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
3779 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
3781 * config/rl78/constrains (Qs8): New constraint.
3782 * config/rl78/rl78.c (rl78_flags_already_set): New function.
3783 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
3784 * config/rl78/rl78-real.md (update_Z): New attribute.
3785 Update patterns to set it.
3786 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
3787 shorter compare and branch sequence can be used.
3788 (cbranchhi4_real): Likewise.
3789 (cbranchhi4_real_inverted): Likewise.
3791 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
3792 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
3794 * config/rl78/rl78.c (rl78_get_name_encoding): New.
3795 (rl78_option_override): Allow -mes0 only if C.
3796 (characterize_address): Support subregs of symbol_refs.
3797 (rl78_addr_space_address_mode): Move. Add __near.
3798 (rl78_far_p): Likewise.
3799 (rl78_addr_space_pointer_mode): Likewise.
3800 (rl78_as_legitimate_address): Likewise.
3801 (rl78_addr_space_subset_p): Likewise.
3802 (rl78_addr_space_convert): Likewise.
3803 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
3805 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
3807 (rl78_alloc_physical_registers_op1): Change logic to prefer
3808 symbol[BC] addressing.
3809 (frodata_section): New.
3810 (rl78_asm_init_sections): Initialize it.
3811 (rl78_select_section): Put __far readonly symbols in .frodata.
3812 (rl78_make_type_far): New.
3813 (rl78_insert_attributes): Force all readonly symbols to be
3815 (rl78_asm_out_integer): New.
3816 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
3817 * config/rl78/rl78.opt (-mes0): New.
3819 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
3820 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3821 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3822 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
3823 (rl78_saddr_p): New.
3824 (rl78_output_aligned_common): New.
3825 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
3826 (rl78_handle_saddr_attribute): New.
3827 (rl78_handle_naked_attribute): New.
3828 (rl78_attribute_table): Add saddr.
3829 (rl78_print_operand_1): Don't print '!' on saddr operands.
3830 (rl78_print_operand_1): Strip encodings.
3832 (rl78_strip_name_encoding): New.
3833 (rl78_attrlist_to_encoding): New.
3834 (rl78_encode_section_info): New.
3835 (rl78_asm_init_sections): New.
3836 (rl78_select_section): New.
3837 (rl78_output_labelref): New.
3838 (rl78_output_aligned_common): New.
3839 (rl78_asm_out_integer): New.
3840 (rl78_asm_ctor_dtor): New.
3841 (rl78_asm_constructor): New.
3842 (rl78_asm_destructor): New.
3844 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
3845 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
3846 (transcode_memory_rtx): Update.
3847 (rl78_expand_epilogue): Use A_REG instead of 0.
3849 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3851 * config/arm/arm-protos.h (struct tune_params): New field
3852 sched_autopref_queue_depth.
3853 * config/arm/arm.c (sched-int.h): Include header.
3854 (arm_first_cycle_multipass_dfa_lookahead_guard,)
3855 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
3856 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
3857 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
3858 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
3859 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
3860 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
3861 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
3862 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
3863 * config/arm/t-arm (arm.o): Update.
3864 * haifa-sched.c (update_insn_after_change): Update.
3865 (rank_for_schedule): Use auto-prefetcher model, if requested.
3866 (autopref_multipass_init): New static function.
3867 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
3868 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
3869 variable for debug dumps.
3870 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
3871 (autopref_multipass_dfa_lookahead_guard): New global function that
3872 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
3873 (init_h_i_d): Update.
3874 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
3875 * sched-int.h (enum autopref_multipass_data_status): New const enum.
3876 (autopref_multipass_data_): Structure for auto-prefetcher data.
3877 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
3878 (struct _haifa_insn_data:autopref_multipass_data): New field.
3879 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
3880 (autopref_multipass_dfa_lookahead_guard): Declare.
3882 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3884 * rtlanal.c (get_base_term): Handle SCRATCH.
3886 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3888 * config/aarch64/aarch64.c
3889 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
3890 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3892 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
3893 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3895 2015-01-17 Alan Modra <amodra@gmail.com>
3897 * cprop.c (do_local_cprop): Disallow replacement of fixed
3900 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3903 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
3906 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3908 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
3909 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
3911 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3913 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
3914 * config/arm/thumb1.md: ... Here.
3916 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3918 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
3919 TImode for TARGET_32BIT.
3921 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3923 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
3924 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
3926 (rs6000_abi_word_mode): New function.
3928 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3930 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
3931 instead of UNITS_PER_WORD to describe the size of stack slots.
3933 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3935 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
3936 as rs6000_promote_function_mode. Move comment to there.
3937 (rs6000_promote_function_mode): New function.
3939 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3941 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
3942 -mpowerpc64 is active.
3944 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3947 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
3950 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
3952 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
3953 introduced in revision 219724.
3955 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3956 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3959 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
3960 destination is not a GP reg.
3961 (*movdi_aarch64): Likewise.
3963 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
3966 * config/rs6000/default64.h: Revert ISA change.
3968 2015-01-16 Richard Biener <rguenther@suse.de>
3971 * tree-ssa-uninit.c: Include tree-cfg.h.
3972 (MAX_SWITCH_CASES): New define.
3973 (convert_control_dep_chain_into_preds): Handle switch statements.
3974 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
3975 (normalize_one_pred_1): Do not split bit-manipulations.
3978 2015-01-16 Richard Biener <rguenther@suse.de>
3980 PR tree-optimization/64568
3981 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
3982 complex load rewriting for TARGET_MEM_REFs.
3984 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
3986 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
3988 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
3991 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
3993 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
3994 (aarch64_lra_p): Remove.
3996 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3999 * ipa-chkp.h (chkp_instrumentable_p): New.
4000 * ipa-chkp.c: Include tree-inline.h.
4001 (chkp_instrumentable_p): New.
4002 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
4003 Fix processing of not instrumentable functions.
4004 (chkp_versioning): Use chkp_instrumentable_p. Warn about
4005 not instrumentable functions.
4006 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
4007 chkp_instrumentable_p.
4008 * tree-inline.h (copy_forbidden): New.
4009 * tree-inline.c (copy_forbidden): Not static anymore.
4011 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4013 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
4016 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
4018 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
4019 type OP_OUT to OP_INOUT.
4021 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
4023 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
4024 (high x) y) to y if x and y have the same base.
4026 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
4028 * config/arm/cortex-a57.md: New.
4029 * config/aarch64/aarch64.md: Include it.
4030 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
4031 * config/aarch64/aarch64-tune.md: Regenerate.
4033 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
4036 * ccmp.c (expand_ccmp_next): New function.
4037 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
4038 and compare insn sequence.
4039 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
4040 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
4041 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
4042 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
4043 (*ccmp_ior): Changed to ccmp_ior<mode>.
4044 (cmp<mode>): New pattern.
4045 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
4047 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
4049 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
4051 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
4052 _mm256_bsrli_epi128): New.
4053 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
4055 2015-01-15 Jiong Wang <jiong.wang@arm.com>
4057 * expmed.c (store_bit_field_using_insv): Improve warning message.
4058 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
4060 2015-01-15 Jiong Wang <jiong.wang@arm.com>
4062 PR rtl-optimization/64011
4063 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
4064 there is partial overflow.
4066 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4068 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
4070 (nds32_expand_epilogue_v3pop): Likewise.
4071 * config/nds32/nds32.md (sibcall): Define this for sibling call
4073 (sibcall_register): Likewise.
4074 (sibcall_immediate): Likewise.
4075 (sibcall_value): Likewise.
4076 (sibcall_value_register): Likewise.
4077 (sibcall_value_immediate): Likewise.
4078 (sibcall_epilogue): Likewise.
4079 (epilogue): Pass false to indicate this is not a sibcall epilogue.
4080 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
4081 (nds32_expand_epilogue_v3pop): Likewise.
4083 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4085 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
4086 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
4087 (return_internal): New.
4088 (return): Define this named pattern.
4089 (simple_return): Define this named pattern.
4090 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
4091 pattern instead of unspec_volatile_func_return.
4092 (nds32_expand_epilogue_v3pop): Likewise.
4093 (nds32_can_use_return_insn): New function.
4095 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4097 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
4098 * config/nds32/nds32.md (pop25return): New.
4099 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
4100 pop25return pattern.
4102 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4104 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
4105 -mforbid-fp-as-gp, and -mex9 options.
4107 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4109 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
4110 remove -mgp-direct option.
4112 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4114 * doc/invoke.texi (--param early-inlining-insns): Update default value.
4115 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
4117 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4119 * ipa-inline.c (inline_small_functions): Work around hints
4122 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
4125 * doc/invoke.texi (Option Summary): Document new Nios II
4127 (Nios II Options): Likewise.
4128 * config/nios2/nios2.opt: Add -mgpopt= option support.
4129 Modify existing -mgpopt and -mno-gpopt options to be aliases.
4130 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
4131 * config/nios2/nios2.c (nios2_option_override): Adjust
4133 (nios2_in_small_data_p): Return true for explicit small data
4134 sections even with -G0.
4135 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
4138 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4141 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
4143 (inline_call): Fix removal of aliases.
4145 2015-01-15 Jakub Jelinek <jakub@redhat.com>
4147 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
4148 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
4149 * opts.c (common_handle_option): Add -fsanitize=vptr.
4150 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
4151 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
4152 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
4153 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
4154 (ubsan_expand_vptr_ifn): New prototype.
4155 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
4156 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
4157 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
4158 expand_LOOP_VECTORIZED): Make argument nameless, remove
4160 (expand_UBSAN_VPTR): New function.
4161 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
4163 (UBSAN_VPTR): New internal function.
4164 * sanopt.c (tree_map_traits): Renamed to ...
4165 (sanopt_tree_map_traits): ... this.
4166 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
4167 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
4168 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
4169 (maybe_optimize_ubsan_vptr_ifn): New function.
4170 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
4171 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
4173 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
4174 internal calls like pure functions for aliasing, even when they
4175 have other side-effects that prevent making them ECF_PURE.
4176 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
4177 (ubsan_expand_vptr_ifn): New function.
4179 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
4181 PR rtl-optimization/64110
4182 * stmt.c (parse_output_constraint): Process '^' and '$'.
4183 (parse_input_constraint): Ditto.
4184 * lra-constraints.c (process_alt_operands): Process the new
4186 * ira-costs.c (record_reg_classes): Process the new constraint
4188 * genoutput.c (indep_constraints): Add '^' and '$'.
4189 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
4190 * doc/md.texi: Add description of the new constraints.
4192 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4193 Bernd Schmidt <bernds@codesourcery.com>
4194 Cesar Philippidis <cesar@codesourcery.com>
4195 James Norris <jnorris@codesourcery.com>
4196 Tom de Vries <tom@codesourcery.com>
4197 Ilmir Usmanov <i.usmanov@samsung.com>
4198 Dmitry Bocharnikov <dmitry.b@samsung.com>
4199 Evgeny Gavrin <e.gavrin@samsung.com>
4200 Jakub Jelinek <jakub@redhat.com>
4202 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
4203 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4204 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4206 * builtins.c: Include "gomp-constants.h".
4207 (expand_builtin_acc_on_device): New function.
4208 (expand_builtin, is_inexpensive_builtin): Handle
4209 BUILT_IN_ACC_ON_DEVICE.
4210 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
4212 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
4214 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
4215 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
4216 i386/intelmic-offload.h.
4217 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
4218 to libgomp and its dependencies.
4219 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
4220 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4221 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4222 * config/ia64/hpux.h (LIB_SPEC): Likewise.
4223 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4224 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4225 * doc/generic.texi: Update for OpenACC changes.
4226 * doc/gimple.texi: Likewise.
4227 * doc/invoke.texi: Likewise.
4228 * doc/sourcebuild.texi: Likewise.
4229 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
4230 GF_OMP_FOR_KIND_OACC_LOOP.
4231 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
4232 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
4233 GF_OMP_TARGET_KIND_OACC_UPDATE,
4234 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
4236 * gimple.c: Update comments for OpenACC changes.
4237 * gimple.def: Likewise.
4238 * gimple.h: Likewise.
4239 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
4240 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
4241 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
4242 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
4243 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
4245 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
4246 * gimplify.c: Include "gomp-constants.h".
4247 Update comments for OpenACC changes.
4248 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
4249 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
4250 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
4251 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4252 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4253 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4254 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
4255 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
4256 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4258 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
4259 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
4260 OMP_CLAUSE_SET_MAP_KIND.
4261 (gimplify_oacc_cache): New function.
4262 (gimplify_omp_for): Handle OACC_LOOP.
4263 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
4265 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
4266 OACC_EXIT_DATA, OACC_UPDATE.
4267 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
4268 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
4269 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
4270 (gimplify_body): Consider flag_openacc next to flag_openmp.
4271 * lto-streamer-out.c: Include "gomp-constants.h".
4272 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
4273 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
4274 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
4275 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
4276 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
4277 (BUILT_IN_ACC_ON_DEVICE): New builtins.
4278 * omp-low.c: Include "gomp-constants.h".
4279 Update comments for OpenACC changes.
4280 (struct omp_context): Add reduction_map, gwv_below, gwv_this
4282 (extract_omp_for_data, use_pointer_for_field, install_var_field)
4283 (new_omp_context, delete_omp_context, scan_sharing_clauses)
4284 (create_omp_child_function, scan_omp_for, scan_omp_target)
4285 (check_omp_nesting_restrictions, lower_reduction_clauses)
4286 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
4287 Update for OpenACC changes.
4288 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
4289 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
4290 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
4291 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
4292 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
4293 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
4295 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4296 Handle GF_OMP_FOR_KIND_OACC_LOOP.
4297 (expand_omp_target, lower_omp_target): Handle
4298 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
4299 GF_OMP_TARGET_KIND_OACC_UPDATE,
4300 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
4301 GF_OMP_TARGET_KIND_OACC_DATA.
4302 (pass_expand_omp::execute, execute_lower_omp)
4303 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
4305 (offload_symbol_decl): New variable.
4306 (oacc_get_reduction_array_id, oacc_max_threads)
4307 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
4308 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
4309 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
4310 (oacc_gimple_assign, oacc_initialize_reduction_data)
4311 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
4313 (is_targetreg_ctx): Remove function.
4314 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
4315 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
4316 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4317 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
4318 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
4319 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
4320 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
4321 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
4322 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
4323 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
4324 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
4325 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
4326 * tree-core.h: Update comments for OpenACC changes.
4327 (enum omp_clause_map_kind): Remove.
4328 (struct tree_omp_clause): Change type of map_kind member from enum
4329 omp_clause_map_kind to unsigned char.
4330 * tree-inline.c: Update comments for OpenACC changes.
4331 * tree-nested.c: Likewise. Include "gomp-constants.h".
4332 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
4333 (convert_tramp_reference_stmt, convert_gimple_call): Update for
4334 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
4335 OMP_CLAUSE_SET_MAP_KIND.
4336 * tree-pretty-print.c: Include "gomp-constants.h".
4337 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
4338 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
4339 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
4340 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
4341 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4342 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
4343 instead of OMP_CLAUSE_MAP_*.
4344 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
4345 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
4346 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
4347 * tree-streamer-in.c: Include "gomp-constants.h".
4348 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
4349 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
4350 * tree-streamer-out.c: Include "gomp-constants.h".
4351 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
4353 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
4354 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
4355 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
4356 * tree.c (omp_clause_num_ops): Update accordingly.
4357 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
4359 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
4360 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
4361 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
4362 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
4363 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
4364 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
4365 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
4366 (OMP_CLAUSE_SET_MAP_KIND): New macro.
4367 * varpool.c (varpool_node::get_create): Consider flag_openacc next
4369 * config/i386/intelmic-offload.h: New file.
4370 * config/nvptx/offload.h: Likewise.
4372 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4374 * explow.h: Remove duplicate contents.
4375 * dojump.h: Likewise.
4377 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
4379 * arm.c (arm_xgene_tune): Add default initializer for instruction
4382 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4386 * ipa.c (symbol_table::remove_unreachable_nodes):
4387 Do not put abstract origins into boundary.
4389 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
4391 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
4392 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
4394 2015-01-15 Steve Ellcey <sellcey@mips.com>
4396 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
4397 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
4398 builtins.def, and chkp-builtins.def.
4400 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
4402 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
4405 2015-01-15 Richard Biener <rguenther@suse.de>
4407 PR tree-optimization/61743
4408 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
4409 information on PHIs for some simple cases.
4411 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4413 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
4415 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
4416 * config/arm/arm-cores.def (xgene1): New entry.
4417 * config/arm/arm-tables.opt: Regenerate.
4418 * config/arm/arm-tune.md: Regenerate.
4419 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
4421 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
4423 * tree-if-conv.c: Include hash-map.h.
4424 (aggressive_if_conv): New variable.
4425 (fold_build_cond_expr): Add simplification of non-zero condition.
4426 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
4427 destination block is not always executed.
4428 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
4429 than two predecessors if AGGRESSIVE_IF_CONV is true.
4430 (if_convertible_stmt_p): Fix commentary.
4431 (all_preds_critical_p): New function.
4432 (has_pred_critical_p): New function.
4433 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
4434 BB can have more than two predecessors and all incoming edges can be
4436 (predicate_bbs): Skip predication for loop exit block, use build2_loc
4437 to compute predicate for true edge.
4438 (find_phi_replacement_condition): Delete this function.
4439 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
4440 Allow interchange PHI arguments if EXTENDED is false.
4441 Change check that block containing reduction statement candidate
4442 is predecessor of phi-block since phi may have more than two arguments.
4443 (phi_args_hash_traits): New helper structure.
4444 (struct phi_args_hash_traits): New type.
4445 (phi_args_hash_traits::hash): New function.
4446 (phi_args_hash_traits::equal_keys): New function.
4447 (gen_phi_arg_condition): New function.
4448 (predicate_scalar_phi): Add handling of phi nodes with more than two
4449 arguments, delete COND and TRUE_BB arguments, insert body of
4450 find_phi_replacement_condition to predicate ordinary phi nodes.
4451 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
4452 delete call of find_phi_replacement_condition and invoke
4453 predicate_scalar_phi with two arguments.
4454 (insert_gimplified_predicates): Add assert that non-predicated block
4455 don't have statements to insert.
4456 (ifcvt_split_critical_edges): New function.
4457 (ifcvt_split_def_stmt): Likewise.
4458 (ifcvt_walk_pattern_tree): Likewise.
4459 (stmt_is_root_of_bool_pattern): Likewise.
4460 (ifcvt_repair_bool_pattern): Likewise.
4461 (ifcvt_local_dce): Likewise.
4462 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
4463 is copy of inner or outer loop force_vectorize field, invoke
4464 ifcvt_split_critical_edges, ifcvt_local_dce and
4465 ifcvt_repair_bool_pattern for aggressive if-conversion.
4467 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
4469 * config/aarch64/aarch64.md: Include xgene1.md.
4470 * config/aarch64/xgene1.md: New file.
4472 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4474 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
4475 xgene1 (APM XGene-1) core definition.
4476 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
4477 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
4478 * doc/invoke.texi: Document -mcpu=xgene1.
4480 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4482 * dojump.h: New header file.
4483 * explow.h: Likewise.
4484 * expr.h: Remove includes.
4485 Move expmed.c prototypes to expmed.h.
4486 Move dojump.c prototypes to dojump.h.
4487 Move alias.c prototypes to alias.h.
4488 Move explow.c prototypes to explow.h.
4489 Move calls.c prototypes to calls.h.
4490 Move emit-rtl.c prototypes to emit-rtl.h.
4491 Move varasm.c prototypes to varasm.h.
4492 Move stmt.c prototypes to stmt.h.
4493 (saved_pending_stack_adjust): Move to dojump.h.
4494 (adjust_address): Move to explow.h.
4495 (adjust_address_nv): Move to emit-rtl.h.
4496 (adjust_bitfield_address): Likewise.
4497 (adjust_bitfield_address_size): Likewise.
4498 (adjust_bitfield_address_nv): Likewise.
4499 (adjust_automodify_address_nv): Likewise.
4500 * explow.c (expr_size): Move to expr.c.
4501 (int_expr_size): Likewise.
4502 (tree_expr_size): Likewise.
4503 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4504 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4505 * genemit.c (main): Generate includes statistics.h, real.h,
4506 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
4508 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
4509 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
4510 explow.h, emit-rtl.h, stmt.h.
4511 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
4512 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
4513 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
4514 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
4515 emit-rtl.h, varasm.h, stmt.h.
4516 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
4517 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
4518 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
4519 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
4520 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
4521 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
4522 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
4523 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
4524 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
4525 tm.h tree.h varasm.h vec.h wide-int.h.
4526 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4527 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
4528 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
4529 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
4530 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
4531 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
4532 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
4533 * loop-iv.c: Likewise.
4534 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
4535 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
4536 statistics.h stmt.h tree.h varasm.h wide-int.h.
4537 * lra-constraints.c: Likewise.
4538 * lra-eliminations.c: Likewise.
4539 * lra-lives.c: Likewise.
4540 * lra-remat.c: Likewise.
4541 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4542 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
4543 statistics.h stmt.h tree.h varasm.h wide-int.h.
4544 * hw-doloop.c: Likewise.
4545 * ira-color.c: Likewise.
4546 * ira-emit.c: Likewise.
4547 * loop-doloop.c: Likewise.
4548 * loop-invariant.c: Likewise.
4549 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4550 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
4551 statistics.h stmt.h tree.h varasm.h wide-int.h.
4552 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
4553 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
4554 statistics.h stmt.h tree.h varasm.h wide-int.h.
4555 * combine-stack-adj.c: Likewise.
4558 * ifcvt.c: Likewise.
4559 * ira-costs.c: Likewise.
4561 * lra-coalesce.c: Likewise.
4562 * lra-spills.c: Likewise.
4563 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4564 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
4565 stmt.h varasm.h wide-int.h.
4566 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4567 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
4569 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
4570 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
4571 statistics.h stmt.h varasm.h wide-int.h.
4572 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
4573 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
4574 varasm.h wide-int.h.
4575 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
4576 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4577 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
4578 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
4579 statistics.h stmt.h.
4580 * config/tilepro/tilepro.c: Likewise.
4581 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
4582 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
4583 * config/pdp11/pdp11.c: Likewise.
4584 * config/xtensa/xtensa.c: Likewise.
4585 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
4586 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
4588 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4589 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
4590 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
4591 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4592 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
4593 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
4594 * rtl-chkp.c: Likewise.
4595 * tree-chkp-opt.c: Likewise.
4596 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
4597 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
4598 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
4599 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4600 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4601 statistics.h stmt.h.
4602 * tree-vect-data-refs.c: Likewise.
4603 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
4604 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4605 rtl.h statistics.h stmt.h varasm.h.
4606 * internal-fn.c: Likewise.
4607 * ipa-icf-gimple.c: Likewise.
4608 * lto-section-out.c: Likewise.
4609 * tree-data-ref.c: Likewise.
4610 * tree-nested.c: Likewise.
4611 * tree-outof-ssa.c: Likewise.
4612 * tree-predcom.c: Likewise.
4613 * tree-pretty-print.c: Likewise.
4614 * tree-scalar-evolution.c: Likewise.
4615 * tree-ssa-strlen.c: Likewise.
4616 * tree-vect-loop.c: Likewise.
4617 * tree-vect-patterns.c: Likewise.
4618 * tree-vect-slp.c: Likewise.
4619 * tree-vect-stmts.c: Likewise.
4621 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4622 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
4624 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
4625 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4626 statistics.h stmt.h varasm.h.
4627 * loop-unroll.c: Likewise.
4628 * ubsan.c: Likewise.
4629 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
4630 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
4632 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4633 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
4634 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
4635 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4636 statistics.h stmt.h.
4637 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
4638 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4639 statistics.h stmt.h varasm.h.
4640 * gimple-match-head.c: Likewise.
4641 * lto-cgraph.c: Likewise.
4642 * lto-section-in.c: Likewise.
4643 * lto-streamer-in.c: Likewise.
4644 * lto-streamer-out.c: Likewise.
4645 * tree-affine.c: Likewise.
4646 * tree-cfg.c: Likewise.
4647 * tree-cfgcleanup.c: Likewise.
4648 * tree-if-conv.c: Likewise.
4649 * tree-into-ssa.c: Likewise.
4650 * tree-ssa-alias.c: Likewise.
4651 * tree-ssa-copyrename.c: Likewise.
4652 * tree-ssa-dse.c: Likewise.
4653 * tree-ssa-forwprop.c: Likewise.
4654 * tree-ssa-live.c: Likewise.
4655 * tree-ssa-math-opts.c: Likewise.
4656 * tree-ssa-pre.c: Likewise.
4657 * tree-ssa-sccvn.c: Likewise.
4658 * tree-tailcall.c: Likewise.
4659 * tree-vect-generic.c: Likewise.
4660 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4661 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
4662 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4663 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
4664 * varasm.c: Likewise.
4665 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4666 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
4668 * init-regs.c: Likewise.
4670 * omp-low.c: Likewise.
4671 * stack-ptr-mod.c: Likewise.
4672 * tree-ssa-reassoc.c: Likewise.
4673 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4674 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
4676 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4677 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
4678 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4679 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
4680 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4681 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
4682 * tree-ssa-phiopt.c: Likewise.
4683 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4684 fixed-value.h hashtab.h real.h statistics.h stmt.h.
4685 * config/fr30/fr30.c: Likewise.
4686 * config/frv/frv.c: Likewise.
4688 * final.c: Likewise.
4689 * optabs.c: Likewise.
4690 * passes.c: Likewise.
4691 * simplify-rtx.c: Likewise.
4693 * toplev.c: Likewise.
4694 * var-tracking.c: Likewise.
4695 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4696 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4697 * lower-subreg.c: Likewise.
4698 * postreload-gcse.c: Likewise.
4700 * reginfo.c: Likewise.
4701 * store-motion.c: Likewise.
4702 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4703 fixed-value.h hashtab.h real.h stmt.h varasm.h.
4704 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4705 fixed-value.h hashtab.h statistics.h stmt.h.
4706 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4707 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4708 * except.c: Likewise.
4709 * explow.c: Likewise.
4710 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4711 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
4713 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4714 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
4715 * tree-ssa-structalias.c: Likewise.
4716 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4717 fixed-value.h insn-config.h real.h statistics.h.
4718 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4719 fixed-value.h insn-config.h real.h statistics.h stmt.h.
4720 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4721 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4722 * cfgbuild.c: Likewise.
4723 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4724 fixed-value.h real.h rtl.h statistics.h stmt.h.
4725 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4726 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4727 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4728 fixed-value.h real.h statistics.h stmt.h.
4729 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4730 fixed-value.h real.h statistics.h stmt.h varasm.h.
4731 * cprop.c: Likewise.
4732 * modulo-sched.c: Likewise.
4733 * postreload.c: Likewise.
4734 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4735 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
4736 statistics.h stmt.h varasm.h.
4737 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
4738 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4739 rtl.h statistics.h stmt.h varasm.h.
4740 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
4741 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
4743 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4744 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
4746 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
4747 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
4749 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
4750 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4751 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4752 function.h real.h statistics.h stmt.h varasm.h.
4753 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4754 insn-config.h real.h statistics.h stmt.h.
4755 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4756 statistics.h stmt.h.
4757 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
4758 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
4759 statistics.h stmt.h varasm.h.
4760 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
4761 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
4762 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4763 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
4764 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
4765 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4766 statistics.h stmt.h varasm.h.
4767 * ipa-polymorphic-call.c: Likewise.
4768 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
4769 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4770 statistics.h stmt.h.
4771 * config/c6x/c6x.c: Likewise.
4772 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
4773 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4774 statistics.h stmt.h varasm.h.
4775 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
4776 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
4778 * ipa-split.c: Likewise.
4779 * tree-eh.c: Likewise.
4780 * tree-ssa-dce.c: Likewise.
4781 * tree-ssa-loop-niter.c: Likewise.
4782 * tree-vrp.c: Likewise.
4783 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
4784 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
4786 * config/nds32/nds32-fp-as-gp.c: Likewise.
4787 * config/nds32/nds32-intrinsic.c: Likewise.
4788 * config/nds32/nds32-isr.c: Likewise.
4789 * config/nds32/nds32-md-auxiliary.c: Likewise.
4790 * config/nds32/nds32-memory-manipulation.c: Likewise.
4791 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4792 * config/nds32/nds32-predicates.c: Likewise.
4793 * config/nds32/nds32.c: Likewise.
4794 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
4795 fixed-value.h hashtab.h real.h statistics.h.
4796 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
4797 fixed-value.h hashtab.h real.h statistics.h stmt.h.
4798 * config/arm/arm.c: Likewise.
4799 * config/avr/avr.c: Likewise.
4800 * config/bfin/bfin.c: Likewise.
4801 * config/h8300/h8300.c: Likewise.
4802 * config/i386/i386.c: Likewise.
4803 * config/ia64/ia64.c: Likewise.
4804 * config/iq2000/iq2000.c: Likewise.
4805 * config/m32c/m32c.c: Likewise.
4806 * config/m32r/m32r.c: Likewise.
4807 * config/m68k/m68k.c: Likewise.
4808 * config/mcore/mcore.c: Likewise.
4809 * config/mep/mep.c: Likewise.
4810 * config/mips/mips.c: Likewise.
4811 * config/mn10300/mn10300.c: Likewise.
4812 * config/moxie/moxie.c: Likewise.
4813 * config/pa/pa.c: Likewise.
4814 * config/rl78/rl78.c: Likewise.
4815 * config/rx/rx.c: Likewise.
4816 * config/s390/s390.c: Likewise.
4817 * config/sh/sh.c: Likewise.
4818 * config/sparc/sparc.c: Likewise.
4819 * config/spu/spu.c: Likewise.
4820 * config/stormy16/stormy16.c: Likewise.
4821 * config/v850/v850.c: Likewise.
4822 * config/vax/vax.c: Likewise.
4823 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
4824 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4825 * config/msp430/msp430.c: Likewise.
4826 * predict.c: Likewise.
4827 * value-prof.c: Likewise.
4828 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
4829 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
4830 * config/microblaze/microblaze.c: Likewise.
4831 * config/nios2/nios2.c: Likewise.
4832 * config/rs6000/rs6000.c: Likewise.
4833 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4834 insn-config.h real.h rtl.h statistics.h stmt.h.
4835 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4836 insn-config.h real.h statistics.h stmt.h.
4837 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
4838 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4839 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
4840 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4841 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
4842 fixed-value.h real.h statistics.h stmt.h.
4843 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
4844 fixed-value.h statistics.h stmt.h.
4845 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
4848 2015-01-15 Jakub Jelinek <jakub@redhat.com>
4850 * gengtype.c (create_user_defined_type): Workaround
4851 -Wmaybe-uninitialized false positives.
4852 * cse.c (fold_rtx): Likewise.
4853 * loop-invariant.c (gain_for_invariant): Likewise.
4855 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
4857 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
4858 set the memory attributes in all cases but clear MEM_EXPR if need be.
4860 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
4862 PR tree-optimization/64434
4863 * cfgexpand.c (reorder_operands): New function.
4864 (expand_gimple_basic_block): Insert call of reorder_operands if
4867 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
4869 * config/mips/micromips.md (*swp): Remove explicit parallel.
4870 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
4871 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
4872 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
4873 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
4874 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
4875 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
4876 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
4877 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
4878 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
4879 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
4880 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
4881 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
4882 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
4883 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
4884 (mips_wrdsp): Likewise.
4885 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
4887 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
4888 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
4889 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
4890 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
4891 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
4892 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
4893 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
4894 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
4895 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
4897 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4899 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
4900 (mips_print_operand): Support 'y' to print exact log2 in decimal
4902 * config/mips/mips.h (ISA_HAS_LSA): New define.
4903 (ISA_HAS_DLSA): Likewise.
4904 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
4905 * config/mips/predicates.md (const_immlsa_operand): New predicate.
4907 2015-01-15 Martin Liska <mliska@suse.cz>
4910 * optc-save-gen.awk: Add support for array types.
4912 2015-01-15 Richard Biener <rguenther@suse.de>
4915 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
4916 for MEM_REF access functions with the same base can never partially
4919 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
4921 * common.opt: New option -fstack-protector-explicit.
4922 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
4923 (stack_protect_decl_phase): Handle stack_protect attribute for
4924 explicit stack protection requests.
4925 (expand_used_vars): Similarly.
4926 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
4927 * doc/extend.texi: Add documentation for "stack_protect" attribute.
4928 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
4930 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
4933 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
4935 (sh_extending_set_of_reg): New struct.
4936 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
4937 sh_remove_reg_dead_or_unused_notes): New Declarations.
4938 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
4939 sh_find_extending_set_of_reg, sh_split_tst_subregs,
4940 sh_extending_set_of_reg::use_as_extended_reg): New functions.
4941 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
4942 convert to insn_and_split and use new function sh_split_tst_subregs.
4944 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
4946 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
4948 (Optimization Options): Move -fuse-ld documentation to...
4949 (Link Options): ...here.
4951 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4953 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
4955 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
4956 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
4957 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
4958 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
4959 instead of ZR for the memory operand of LL/SC.
4960 (compare_and_swap_12, sync_add<mode>): Likewise.
4961 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
4962 (sync_new_<optab>_12, sync_nand_12): Likewise.
4963 (sync_old_nand_12, sync_new_nand_12): Likewise.
4964 (sync_sub<mode>, sync_old_add<mode>): Likewise.
4965 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
4966 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
4967 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
4968 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
4969 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
4970 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
4971 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
4972 * doc/md.texi (ZC): Update description.
4974 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
4976 * builtins.c (expand_builtin_atomic_exchange): Remove error when
4977 memory model is CONSUME.
4978 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
4979 expand_builtin_atomic_store): Change invalid memory model errors to
4981 (expand_builtin_atomic_clear): Change invalid model errors to warnings
4982 and issue warning for CONSUME.
4984 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
4986 * lto-cgraph: Update function comments for
4987 lto_symtab_encoder_encode_*.
4989 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
4991 * Makefile.in (site.exp): Do not set ENABLE_LTO.
4993 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
4995 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
4996 * lto-cgraph.c (select_what_to_stream): Remove argument, use
4997 lto_stream_offload_p instead.
4998 * lto-streamer.h (select_what_to_stream): Remove argument.
4999 * passes.c (ipa_write_summaries): Likewise.
5000 * tree-pass.h (ipa_write_summaries): Likewise.
5002 2015-01-14 Richard Biener <rguenther@suse.de>
5004 PR tree-optimization/59354
5005 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
5006 groups larger than the slp group size as having gaps.
5008 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
5011 * builtins.c (get_memmodel): Promote consume to acquire always.
5013 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
5016 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
5019 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
5022 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
5024 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
5025 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
5026 AVX512VBMI, as it implies AVX512BW.
5028 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
5031 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
5032 (vec_unpacks_hi_v16sf): Ditto.
5034 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5036 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
5039 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5041 * doc/invoke.texi (mapcs): Mention deprecation.
5042 (mapcs-frame): Likewise.
5044 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5047 * config/arm/arm.c (callee_saved_reg_p): Define.
5048 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
5049 register is callee saved instead of !call_used_regs[reg].
5050 (thumb1_compute_save_reg_mask): Likewise.
5052 2015-01-14 Hale Wang <hale.wang@arm.com>
5054 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
5057 2015-01-14 Richard Biener <rguenther@suse.de>
5060 * tree-inline.c (insert_debug_decl_map): Check destination
5061 function MAY_HAVE_DEBUG_STMTS.
5062 (insert_init_debug_bind): Likewise.
5063 (insert_init_stmt): Remove redundant check.
5064 (remap_gimple_stmt): Drop debug stmts if the destination
5065 function has var-tracking assignments disabled.
5067 2015-01-14 Martin Liska <mliska@suse.cz>
5069 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
5070 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
5072 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5075 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
5076 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
5078 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
5080 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
5081 level from an ARCH; do not inject the default.
5082 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
5083 MIPS_ISA_LEVEL_SPEC.
5084 (MIPS_ISA_NAN2008_SPEC): Update comment.
5085 (BASE_DRIVER_SELF_SPECS): Likewise.
5086 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
5087 MIPS_DEFAULT_ISA_LEVEL_SPEC.
5088 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
5089 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
5090 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
5092 2015-01-14 Richard Biener <rguenther@suse.de>
5094 PR tree-optimization/64493
5095 PR tree-optimization/64495
5096 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
5097 assign the proper vectorized PHI to the inner loop exit PHIs.
5099 2015-01-14 Joey Ye <joey.ye@arm.com>
5101 * config/arm/arm.c (arm_compute_save_reg_mask):
5102 Do not save lr in case of tail call.
5103 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
5105 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
5107 * tree-vrp.c (check_array_ref): Emit more warnings
5108 for warn_array_bounds >= 2.
5109 * common.opt: New option -Warray-bounds=.
5110 * doc/invoke.texi: Document -Warray-bounds=.
5112 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
5114 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
5115 (mforbid-fp-as-gp): Remove.
5117 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
5118 (nds32_symbol_load_store_p): Remove.
5119 (nds32_fp_as_gp_check_available): Clean up implementation.
5120 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
5122 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
5123 fp-as-gp and ex9 cases.
5125 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
5127 * tree-profile.c (init_ic_make_global_vars): Drop workaround
5128 for bintuils bug 14342.
5129 (init_ic_make_global_vars): Likewise.
5130 (gimple_init_edge_profiler): Likewise.
5131 (gimple_gen_ic_func_profiler): Likewise.
5133 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5135 * ipa-inline.c (inline_small_functions): Swap the operands in
5138 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
5141 * ipa-inline-analysis.c (node_growth_cache): Remove.
5142 (initialize_growth_caches): Do not initialize it.
5143 (free_growth_caches): Do not free it.
5144 (do_estimate_growth): Rename to ...
5145 (estimate_growth): ... this one; drop growth cache code.
5146 (growth_likely_positive): Always go the heuristics way.
5147 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
5148 (reset_edge_caches): Do not reset node growth.
5149 (heap_edge_removal_hook): Do not maintain cache.
5150 (inline_small_functions): Likewise; strenghten sanity check.
5151 (ipa_inline): Do not maintain caches.
5152 * ipa-inline.h (node_growth_cache): Remove.
5153 (do_estimate_growth): Remove to ...
5154 (estimate_growth): this one; remove inline version.
5155 (reset_node_growth_cache): Remove.
5157 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
5160 * ipa-inline.c (inline_small_functions): Update callee keys after
5161 resolving speculation
5162 (inline_small_functions): Always check monotonicity of the queue.
5164 2015-01-13 Marek Polacek <polacek@redhat.com>
5167 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
5169 2015-01-13 Jakub Jelinek <jakub@redhat.com>
5171 PR rtl-optimization/64286
5172 * ree.c (combine_reaching_defs): Move part of comment earlier,
5173 remove !SCALAR_INT_MODE_P check.
5174 (add_removable_extension): Don't add vector mode
5175 extensions if all uses of the source register aren't the same
5178 2015-01-13 Renlin Li <renlin.li@arm.com>
5180 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
5181 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
5183 2015-01-13 Martin Liska <mliska@suse.cz>
5185 * ipa-icf.c (sem_function::equals_private): Call new functions
5186 cl_target_option_print_diff and cl_optimization_print_diff.
5187 * optc-save-gen.awk (cl_target_option_print_diff): New function.
5188 (cl_optimization_print_diff): Likewise.
5189 * opth-gen.awk: Likewise.
5191 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
5193 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
5194 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
5195 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
5196 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
5197 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
5198 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
5200 2015-01-13 Andrew Pinski <apinski@cavium.com>
5202 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
5203 instead of src mode.
5205 2015-01-13 Richard Biener <rguenther@suse.de>
5208 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
5211 2015-01-13 Andrew Pinski <apinski@cavium.com>
5213 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
5215 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5217 2015-01-13 Jakub Jelinek <jakub@redhat.com>
5220 * cfgexpand.c (expand_computed_goto): Don't call
5221 convert_memory_address here.
5223 2015-01-13 Richard Biener <rguenther@suse.de>
5225 PR tree-optimization/64406
5226 * tree-loop-distibution.c (pass_loop_distribution::execute):
5227 Reset the SCEV hashtable if we distributed anything.
5229 2015-01-13 Richard Biener <rguenther@suse.de>
5231 PR tree-optimization/64404
5232 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
5233 SLP types for CSEd loads.
5235 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5237 PR tree-optimization/64436
5238 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
5239 merge of two symbolic numbers for a bitwise OR to ...
5240 (perform_symbolic_merge): This. Also fix computation of the range and
5241 end of the symbolic number corresponding to the result of a bitwise OR.
5243 2015-01-13 Richard Biener <rguenther@suse.de>
5245 PR tree-optimization/64568
5246 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
5247 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
5249 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5251 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
5252 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
5254 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5256 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
5257 target-specific symbol_ref flag.
5258 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
5259 resides in rodata section.
5260 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
5261 (nds32_encode_section_info): New function.
5263 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5265 * config/nds32/nds32.md (call): Use pseudo instruction bal which
5266 clobbers TA_REGNUM if large code model is specified.
5267 (call_register): Likewise.
5268 (call_immediate): Likewise.
5269 (call_value): Likewise.
5270 (call_value_register): Likewise.
5271 (call_value_immediate): Likewise.
5273 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5275 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
5276 (TARGET_CMODEL_MEDIUM): New macro.
5277 (TARGET_CMODEL_LARGE): New macro.
5278 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
5279 code model setting in assembly code.
5281 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5283 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
5284 Remove MASK_GP_DIRECT flag.
5285 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
5286 one of the multilib default options.
5287 * config/nds32/nds32.opt (mgp-direct): Remove.
5288 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
5289 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
5291 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5293 * config/nds32/nds32.opt (mcmodel): Add new option.
5294 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
5295 to describe code model.
5297 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
5300 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
5302 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
5304 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
5305 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
5306 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
5307 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
5308 __builtin_sh_set_fpscr.
5310 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
5312 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
5313 after a funtion name just to indicate it is a function.
5314 ([-fsanitize-undefined-trap-on-error]): Likewise.
5315 ([-fdbg-cnt=]): Likewise.
5316 ([-mmemcpy]): Likewise.
5317 ([-mflush-func]): Likewise.
5318 ([-msynci]): Likewise.
5320 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
5322 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
5325 2015-01-12 Jakub Jelinek <jakub@redhat.com>
5327 PR tree-optimization/64563
5328 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
5329 instead of != VR_VARYING.
5332 * config/i386/i386.c (ix86_expand_prologue): Add
5333 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
5335 PR tree-optimization/64454
5336 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
5337 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
5338 for signed or [0, op1 - 1] for unsigned modulo.
5339 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
5340 even if op1 does not satisfy integer_pow2p.
5343 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
5345 2015-01-12 Jeff Law <law@redhat.com>
5348 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
5349 (trunchiqi2, truncsihi2): Similarly.
5351 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
5352 rather than calling F.
5354 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
5356 * tsan.c (instrument_expr): Use force_gimple_operand.
5357 Use may_be_nonaddressable_p instead of is_gimple_addressable.
5359 2015-01-12 Richard Biener <rguenther@suse.de>
5361 PR tree-optimization/64530
5362 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
5365 2015-01-12 Richard Biener <rguenther@suse.de>
5368 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
5371 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5373 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
5374 Cortex-A17 tuning parameters.
5375 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
5377 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5379 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
5380 * config/arm/arm.c (arm_macro_fusion_p): New function.
5381 (arm_macro_fusion_pair_p): Likewise.
5382 (TARGET_SCHED_MACRO_FUSION_P): Define.
5383 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
5384 (ARM_FUSE_NOTHING): Likewise.
5385 (ARM_FUSE_MOVW_MOVT): Likewise.
5386 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5387 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5388 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5389 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5390 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5391 arm_cortex_a5_tune): Specify fuseable_ops value.
5393 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
5396 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
5397 test for PIE with copy reloc.
5398 * configure: Regenerated.
5400 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5402 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
5404 (arm_tls_descseq_addr): Likewise.
5405 (arm_gen_movmemqi): Likewise.
5406 (arm_expand_epilogue_apcs_frame): Likewise.
5407 (arm_expand_epilogue): Likewise.
5408 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
5411 2015-01-12 Martin Liska <mliska@suse.cz>
5414 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
5415 volatility for correct operands.
5417 2015-01-12 Martin Liska <mliska@suse.cz>
5419 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
5420 that a function is not leaf.
5421 (sem_function::compare_polymorphic_p): Likewise.
5423 2015-01-12 Martin Liska <mliska@suse.cz>
5425 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
5426 that a function is not leaf.
5427 (sem_function::compare_polymorphic_p): Likewise.
5429 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5431 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
5432 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
5433 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
5434 fold-const.h, tree-check.h.
5436 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
5440 * ipa-inline.c (compute_uninlined_call_time,
5441 compute_inlined_call_time): Use counts for extra precision when
5443 (big_speedup_p): Fix formating.
5444 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
5445 (relative_time_benefit): Remove.
5446 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
5447 merge guessed and read profile paths.
5448 (inline_small_functions): Count only !optimize_size functions into
5449 initial size; be more lax about sanity check when profile is used;
5450 be sure to update inlined function profile when profile is read.
5452 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
5455 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
5456 cost when edge becomes direct.
5457 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
5458 is resolved or when introducing new speculation.
5460 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
5464 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
5465 '||' to fix typo issue.
5467 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
5468 accept and return NULL.
5470 2015-01-12 Martin Liska <mliska@suse.cz>
5472 * cgraph.c (cgraph_edge::remove_callee): Move function to header
5473 file for being inlined.
5474 (cgraph_set_edge_callee): Delete.
5475 (cgraph_edge::redirect_callee): Move function to header file
5477 (cgraph_edge::make_direct): Use new function.
5478 (cgraph_edge::dump_edge_flags): New function created from
5479 static dump_edge_flags function.
5480 (cgraph_node::dump): Use new function.
5481 (cgraph_edge::verify_count_and_frequency): New function created
5482 from verify_edge_count_and_frequency.
5483 (cgraph_edge::verify_corresponds_to_fndecl): New function created
5484 from verify_edge_corresponds_to_fndecl.
5485 (verify_edge_corresponds_to_fndecl): Delete.
5486 (cgraph_node::verify_node): Use new function.
5487 * cgraph.h (cgraph_edge::set_callee): New function.
5488 (cgraph_edge::dump_edge_flags): Likewise.
5489 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
5491 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
5493 * ipa-utils.c (estimate_function_body_sizes): Do not
5494 free node params when called late with early=true.
5496 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
5498 * doc/md.texi (Instruction Patterns): Rewrite text for
5500 (Example): Likewise.
5502 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
5504 * doc/invoke.texi (Option Summary): Break long lines.
5505 [(-fdiagnostics-color)]: Put long literal in @smallexample
5507 [(-fsanitize-recover)]: Likewise.
5508 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
5509 [(-ffast-math)]: Likewise.
5510 [(--param max-inline-insns-recursive)]: Likewise.
5511 [(--param max-inline-recursive-depth)]: Likewise.
5512 [(-mno-text-section-literals)]: Likewise.
5514 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
5516 * doc/install.texi: Update for libgomp being renamed from "GNU
5517 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
5519 * doc/sourcebuild.texi: Likewise.
5521 2015-01-10 Anthony Green <green@moxielogic.com>
5523 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
5524 mul.x availability for moxiebox configuration.
5526 2015-01-09 Anthony Green <green@moxielogic.com>
5528 * config/moxie/moxie.md: Tabify assembly output.
5530 2015-01-09 Anthony Green <green@moxielogic.com>
5532 * config/moxie/moxie.md (CC_REG): Correct register definition.
5534 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
5536 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
5537 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
5540 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5542 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
5544 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
5545 Jakub Jelinek <jakub@redhat.com>
5548 * lto-streamer.h (lto_stream_offload_p): New declaration.
5549 * lto-streamer.c (lto_stream_offload_p): New variable.
5550 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
5551 at the same time as section_name_prefix.
5552 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
5553 if lto_stream_offload_p.
5554 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
5555 stream TREE_TARGET_OPTION if lto_stream_offload_p.
5556 (write_ts_function_decl_tree_pointers): Don't
5557 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
5558 * tree-streamer-in.c (unpack_value_fields): Don't stream
5559 TREE_TARGET_OPTION in if ACCEL_COMPILER.
5560 (lto_input_ts_function_decl_tree_pointers): Don't stream
5561 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
5562 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
5563 instead of section_name_prefix string comparisons.
5565 2015-01-09 Jakub Jelinek <jakub@redhat.com>
5567 PR rtl-optimization/64536
5568 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
5571 2015-01-09 Michael Collison <michael.collison@linaro.org>
5573 PR tree-optimization/64322
5574 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
5575 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
5577 2015-01-09 Tom de Vries <tom@codesourcery.com>
5579 PR rtl-optimization/64539
5580 * regcprop.c (kill_clobbered_values): Factor out of ...
5581 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
5582 instead of note_stores with kill_clobbered_value.
5584 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5586 * ginclude/unwind-arm-common.h: Revert previous commit.
5588 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5590 * config.gcc (arm*-*-freebsd*): New configuration.
5591 * config/arm/freebsd.h: New file.
5592 * config.host: Add extra components for arm*-*-freebsd*.
5593 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
5594 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
5596 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5598 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
5600 * config/rs6000/t-rtems: Add e6500 multilibs.
5602 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5604 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
5607 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5609 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
5610 MULTILIB_EXCEPTIONS.
5612 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5614 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
5615 MULTILIB_EXCEPTIONS.
5617 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5619 * config/arm/t-rtems-eabi: Rename to...
5620 * config/arm/t-rtems: ...this.
5621 * config/arm/rtems-eabi.h: Rename to...
5622 * config/arm/rtems.h: ...this.
5623 * config.gcc (arm*-*-rtems*): Reflect changes above.
5625 2015-01-09 Richard Biener <rguenther@suse.de>
5627 PR tree-optimization/64410
5628 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
5630 (execute_update_addresses_taken): Deal with that.
5631 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
5632 loads/stores for complex variables.
5634 2015-01-09 Martin Liska <mliska@suse.cz>
5636 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
5638 (func_checker::compare_memory_operand): New function.
5639 (func_checker::compare_operand): Split case to newly
5641 (func_checker::compare_cst_or_decl): New function.
5642 (func_checker::compare_gimple_call): Identify
5644 (func_checker::compare_gimple_assign): Likewise.
5645 * ipa-icf-gimple.h: New function.
5647 2015-01-09 Martin Liska <mliska@suse.cz>
5650 * sreal.c (sreal::dump): Change unsigned format to signed for
5652 (sreal::to_double): Replace exp2 with scalbln.
5654 2015-01-09 Martin Liska <mliska@suse.cz>
5656 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
5657 * ipa-icf.c (sem_function::equals_private): Add support for target and
5658 (sem_item_optimizer::merge_classes): Remove redundant function
5659 optimization flags comparison.
5660 * tree.h (target_opts_for_fn): New function.
5662 2015-01-09 Tom de Vries <tom@codesourcery.com>
5664 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
5666 2015-01-09 Kito Cheng <kito@0xlab.org>
5668 PR rtl-optimization/64348
5669 * lra-constraints.c (split_reg): Fix caller-save store/restore
5670 instruction generation.
5672 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
5674 PR gcov-profile/61790
5675 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
5676 long long. Fallback to int64_t if host doesn't have long long and
5677 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
5679 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5681 PR tree-optimization/63989
5682 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
5684 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
5685 (get_stridx): If we don't have a record for certain SSA_NAME,
5686 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
5687 constant offset, call get_stridx_plus_constant.
5688 (get_stridx_plus_constant): New function.
5689 (zero_length_string): Don't use get_stridx here.
5693 * dse.c (struct insn_info): Mention frame_read set also
5694 before reload for tail calls on some targets.
5695 (scan_insn): Revert 2014-12-22 change. Set frame_read
5696 also before reload for tail calls if
5697 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
5698 instead of add_non_frame_wild_read for non-const/memset
5699 tail calls after reload.
5701 2015-01-08 Jason Merrill <jason@redhat.com>
5703 * ubsan.c (do_ubsan_in_current_function): New.
5704 (pass_ubsan::gate): Use it.
5705 * ubsan.h: Declare it.
5706 * convert.c (convert_to_integer): Use it.
5708 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5711 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
5712 compare_code when it is unconditionally overwritten afterwards.
5713 Use ix86_reverse_condition instead of reverse_condition. Don't
5714 change code if *reverse_condition* returned UNKNOWN and don't
5715 swap ct/cf and negate diff in that case.
5717 2015-01-08 Mike Stump <mikestump@comcast.net>
5719 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
5720 (pass_tsan_O0::gate): Likewise.
5721 * extend.texi (Function Attributes): Add no_sanitize_thread
5724 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
5726 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
5727 for registering builtins.
5728 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
5729 add -fopenmp to the argv_obstack used when invoking
5732 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
5733 add "-m32" or "-m64" to argv_obstack.
5734 (generate_host_descr_file): Likewise, when invoking host_compiler.
5735 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
5738 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5740 * config/sh/sh-mem.cc: Use constant as second operand when emitting
5743 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5746 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
5747 constant load if constant operand fits into I08.
5749 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5752 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
5753 and TREE_THIS_VOLATILE for MEM_REFs.
5754 (build5_stat): Fix up initialization of TREE_READONLY and
5755 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
5757 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
5760 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
5761 of r for the second alternative of the destination operand.
5763 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
5766 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
5768 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5770 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
5772 ([-fivar-visibility], [-fvisibility]): Likewise.
5774 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5776 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
5777 the file where @code, @command, etc is more appropriate.
5779 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
5781 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
5782 of -mrecip= documentation.
5784 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5787 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
5788 correct reload handler if -m32 -mpowerpc64 is used.
5790 2015-01-06 Tom de Vries <tom@codesourcery.com>
5792 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
5794 2015-01-08 Christian Bruel <christian.bruel@st.com>
5797 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
5799 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
5801 PR tree-optimization/63259
5802 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
5803 if optab exists for 16bit byteswap.
5805 2015-01-06 Jakub Jelinek <jakub@redhat.com>
5807 * opts.c (common_handle_option): Add support for
5808 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
5809 * doc/invoke.texi: Document -fno-sanitize=all,
5810 -f{,no-}sanitize-recover=all. Document that
5811 -fsanitize=float-cast-overflow is not enabled
5812 by -fsanitize=undefined. Fix up documentation
5813 of -f{,no-}sanitize-recover.
5815 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
5817 * config.gcc: Add Visium support.
5818 * configure.ac: Likewise.
5819 * configure: Regenerate.
5820 * doc/extend.texi (interrupt attribute): Add Visium.
5821 * doc/invoke.texi: Document Visium options.
5822 * doc/install.texi: Document Visium target.
5823 * doc/md.texi: Document Visium constraints.
5824 * common/config/visium: New directory.
5825 * config/visium: Likewise.
5827 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
5829 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
5830 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
5832 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
5834 * combine.c (combine_validate_cost): Do not count the cost of a
5835 split I2 twice. Do not display it twice in the dump, either.
5837 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5839 Revert parts of r219199.
5840 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
5842 ([-Wtraditional]): Restore markup on <limits.h>.
5844 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
5847 * doc/invoke.texi: Document -Wsuggest-override.
5849 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
5851 PR rtl-optimization/64287
5852 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
5853 (process_options): Disable flag_ipa_ra if profiling.
5855 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
5857 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
5859 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
5861 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
5862 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
5863 put under #if TARGET_LOOPS guard.
5865 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
5867 * config/i386/i386.c (output_387_binary_op): Use std::swap.
5869 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
5871 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
5872 * rtl.h (refers_to_regno_p): Add overload.
5874 * bt-load.c: Likewise.
5875 * combine.c: Likewise.
5876 * df-scan.c: Likewise.
5877 * sched-deps.c: Likewise.
5878 * config/s390/s390.c: Likewise.
5879 * config/m32r/m32r.c: Likewise.
5880 * config/rs6000/spe.md: Likewise.
5881 * config/rs6000/rs6000.c: Likewise.
5882 * config/pa/pa.c: Likewise.
5883 * config/stormy16/stormy16.c: Likewise.
5884 * config/cris/cris.c: Likewise.
5885 * config/arc/arc.md: Likewise.
5886 * config/arc/arc.c: Likewise.
5887 * config/sh/sh.md: Likewise.
5888 * config/sh/sh.c: Likewise.
5889 * config/frv/frv.c: Likewise.
5891 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5894 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
5895 call as cleanup of the whole body.
5896 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
5897 * tsan.c (replace_func_exit): New function.
5898 (instrument_func_exit): Moved earlier.
5899 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
5900 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
5902 (tsan_pass): Don't call instrument_func_exit.
5903 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
5904 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
5908 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
5909 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
5910 it to libubsan handler instead of EXPR. Fold comparisons earlier,
5911 if the result is integer_zerop, return NULL_TREE.
5912 * convert.c (convert_to_integer): Pass expr as ARG.
5914 PR tree-optimization/64465
5915 * tree-inline.c (redirect_all_calls): During inlining
5916 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
5917 changed the stmt to a non-throwing call.
5919 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5921 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
5922 etc markup throughout the file.
5924 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5926 Enable experimental TSAN support for Ada.
5927 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
5929 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5931 PR tree-optimization/64494
5932 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
5933 clear SSA_NAME_ANTI_RANGE_P flag.
5935 2015-01-05 Marek Polacek <polacek@redhat.com>
5937 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
5939 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5941 Update copyright years.
5943 * gcc.c (process_command): Update copyright notice dates.
5944 * gcov-dump.c: Ditto.
5946 * doc/cpp.texi: Bump @copying's copyright year.
5947 * doc/cppinternals.texi: Ditto.
5948 * doc/gcc.texi: Ditto.
5949 * doc/gccint.texi: Ditto.
5950 * doc/gcov.texi: Ditto.
5951 * doc/install.texi: Ditto.
5952 * doc/invoke.texi: Ditto.
5954 * auto-profile.c, auto-profile.h: Fix up Copyright line.
5956 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
5958 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
5960 ([-fvtable-verify], [-fvtv-debug]): Likewise.
5961 ([-Wabi]): Likewise.
5962 ([-fmessage-length]): Likewise.
5963 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
5964 ([-Wno-discarded-qualifiers]): Likewise.
5965 ([-Wnodiscarded-array-qualifiers]): Likewise.
5966 ([-Wno-virtual-move-assign]): Likewise.
5967 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
5968 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
5969 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
5970 ([-fsanitize-undefined-trap-on-error]): Likewise.
5971 ([-floop-interchange]): Likewise.
5972 ([-ftree-coalesce-inlined-vars]): Likewise.
5973 ([-fvect-cost-model]): Likewise.
5974 ([-flto]): Likewise.
5975 ([--param]): Likewise.
5976 (Spec Files): Likewise.
5977 ([-mstrict-align]): Likewise.
5978 ([-mfix-cortex-a53-835769]): Likewise.
5979 ([-march], [-mtune]): Likewise.
5980 ([-mpic-register]): Likewise.
5981 ([-munaligned-access]): Likewise.
5982 ([-msp8]): Likewise.
5983 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
5984 (AVR Built-in Macros): Likewise.
5985 ([-mpreferred-stack-boundary]): Likewise.
5986 ([-mtune-crtl]): Likewise.
5987 ([-mashf]): Likewise.
5988 ([-mmcu=]): Likewise.
5989 ([-minrt]): Likewise.
5990 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
5991 ([-mupper-regs]): Likewise.
5992 ([-matomic-model]): Likewise.
5993 ([-mdiv]): Likewise.
5994 ([-mzdcbranch]): Likewise.
5995 ([-mdisable-callt]): Likewise.
5996 ([-msoft-float]): Likewise.
5997 ([-m8byte-align]): Likewise.
5998 ([-fstack-reuse]): Likewise.
6000 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6002 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
6003 Fix markup, light copy-editing.
6004 ([-fauto-profile]): Rewrite to fix formatting and content
6007 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6009 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
6010 Copy-edit description.
6011 ([-fisolate-erroneous-paths-attribute]): Likewise.
6012 * common.opt (fisolate-erroneous-paths-dereference):
6013 Copy-edit description.
6014 (fisolate-erroneous-paths-attribute): Likewise.
6016 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6018 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
6021 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6023 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
6024 ([-fvtv-debug]): Likewise.
6025 ([-Wc++-compat]): Likewise.
6026 ([-Wc++11-compat]): Likewise.
6027 ([-Wc++14-compat]): Likewise.
6028 ([-Wno-sized-deallocation]): Likewise.
6029 ([-femit-class-debug-always]): Likewise.
6030 ([-femit-struct-debug-detailed]): Likewise.
6031 ([-fno-keep-inline-dllexport]): Likewise.
6032 ([-fira-algorithm]): Likewise.
6033 ([-fira-region]): Likewise.
6034 ([-flra-remat]): Likewise.
6035 ([-fipa-ra]): Likewise.
6036 ([-fhoist-adjacent-loads]): Likewise.
6037 ([-fisolate-erroneous-paths-dereference]): Likewise.
6038 ([-fisolate-erroneous-paths-attribute]): Likewise.
6039 ([-ftree-switch-conversion]): Likewise.
6040 ([-ftree-tail-merge]): Likewise.
6041 ([-ftree-loop-if-convert]): Likewise.
6042 ([-ftree-loop-if-convert-stores]): Likewise.
6043 ([-ftree-loop-distribution]): Likewise.
6044 ([-ftree-loop-distribute-patterns]): Likewise.
6045 ([-flto-compression-level]): Likewise.
6046 ([-flto-report]): Likewise.
6047 ([-flto-report-wpa]): Likewise.
6048 ([-fuse-linker-plugin]): Likewise.
6049 ([-mfix-cortex-a53-835769]): Likewise.
6050 ([-mno-fix-cortex-a53-835769]): Likewise.
6051 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
6052 explicit listing; add a note to the discussion indicating they
6053 exist. Reorder table to group similar options. Add missing
6054 @opindex entries. Add @need commands throughout the table to
6055 allow it to be split across multiple pages.
6056 ([-m8bit-idiv]): Fix @opindex.
6057 ([-mavx256-split-unaligned-load]): Likewise.
6058 ([-mavx256-split-unaligned-store]): Likewise.
6059 ([-mstack-protector-guard]): Likewise.
6060 ([-mcpu=]): Likewise.
6061 ([-mcpu]): Likewise.
6062 ([-mpointer-size=]): Likewise.
6064 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
6066 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
6067 instead of `m' constraint. Likewise for unnamed movb comparison
6068 patterns using reg_before_reload_operand predicate.
6069 * config/pa/predicates.md (reg_before_reload_operand): Tighten
6070 predicate to reject register index and LO_SUM DLT memory forms
6073 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
6075 * doc/invoke.texi (Option Summary): Fix spelling of
6076 -fdevirtualize-at-ltrans.
6077 ([-fdevirtualize]): Fix markup.
6078 ([-fdevirtualize-speculatively]): Fix typo.
6079 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
6081 * common.opt (fdevirtualize-at-ltrans): Likewise.
6082 * ipa-devirt.c: Fix typos in comments throughout the file.
6083 (ipa_devirt): Fix typos in format strings for dump output.
6085 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
6087 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
6088 discussion of defaults, light copy-editing.
6090 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6092 * tsan.c (instrument_expr): corrected previous checkin.
6094 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6096 Instrument bit field and unaligned accesses for TSAN.
6097 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
6098 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
6099 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
6100 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
6101 unaligned memory regions.
6103 2015-01-01 Anthony Green <green@moxielogic.com>
6105 * config/moxie/predicates.md (moxie_general_movsrc_operand):
6106 Restrict move source register offsets to 16 bits.
6108 Copyright (C) 2015 Free Software Foundation, Inc.
6110 Copying and distribution of this file, with or without modification,
6111 are permitted in any medium without royalty provided the copyright
6112 notice and this notice are preserved.