1 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
3 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
5 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
7 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
8 for correct comdat handling.
9 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
11 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
12 (used_from_object_file_p_worker): Remove.
13 (cgraph_node::only_called_directly_or_alised): Add
14 used_from_object_file_p.
15 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
16 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
17 can_remove_if_no_direct_calls_and_refs_p.
19 2015-03-04 Nick Clifton <nickc@redhat.com>
21 * config/rl78/rl78.h (enum reg_class): Remove real registers from
22 General register class.
23 * config/rl78/rl78-real.md: Replace general register constraints
24 with real+virtual register constraints.
26 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28 * gcc/config/s390/s390.c (s390_expand_builtin): Exlude non-htm
29 builtins from checking for -mhtm option.
31 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
33 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
34 (struct ipa_sra_check_caller_data): Add has_thunk field.
35 (ipa_sra_check_caller): Check for thunk.
36 (ipa_sra_preliminary_function_checks): Give up on function with
38 (ipa_early_sra): Use call_for_symbol_and_aliases.
40 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
43 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
44 called for __stack_chk_guard symbol.
46 2015-03-03 DJ Delorie <dj@redhat.com>
48 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
50 (*addhi3_real): Likewise.
51 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
52 pattern to match incrementing memory.
53 * config/rl78/predicates.md (rl78_1_2_operand): New.
54 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
55 it's the same and only mem.
56 (rl78_alloc_physical_registers_op2): If there's effectively only
57 one MEM, transcode it into HL.
58 (rl78_far_p): Reject addresses that aren't legitimate.
60 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
62 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
65 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
67 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
69 Implement call0 ABI for xtensa
70 * config/xtensa/constraints.md ("a" constraint): Include stack
71 pointer in case of call0 ABI.
72 ("q" constraint): Make empty in case of call0 ABI.
73 ("D" constraint): Include stack pointer in case of call0 ABI.
74 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
75 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
77 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
79 (xtensa_regno_to_class): Make it a local variable in the
80 function xtensa_regno_to_class.
81 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
82 macro, function prototype and implementation.
83 (reg_nonleaf_alloc_order): Make it a local variable in the
84 function order_regs_for_local_alloc.
85 (xtensa_conditional_register_usage): New function.
86 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
87 (xtensa_valid_move): Allow direct moves to stack pointer
88 register in call0 ABI.
89 (xtensa_setup_frame_addresses): Only spill register windows in
91 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
92 call0 ABI respectively.
93 (xtensa_function_arg_1): Only mark a7 register for copying in
95 (xtensa_call_save_reg): New function.
96 (compute_frame_size): Add space for callee saved register
97 storage to the frame size in call0 ABI.
98 (xtensa_expand_prologue): Generate code to set up stack frame
99 and save callee-saved registers in call0 ABI.
100 (xtensa_expand_epilogue): New function.
101 (xtensa_set_return_address): New function.
102 (xtensa_return_addr): Calculate return address in call0 ABI.
103 (xtensa_builtin_saveregs): Only mark a7 register for copying and
104 emit copying code in windowed ABI.
105 (order_regs_for_local_alloc): Add preferred register allocation
106 order for non-leaf function in call0 ABI.
107 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
108 (xtensa_asm_trampoline_template): Add trampoline generation for
110 (xtensa_trampoline_init): Add trampoline initialization for
112 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
114 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
115 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
116 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
117 ABI call-used registers.
118 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
119 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
121 (REG_CLASS_CONTENTS): Include all registers into the preferred
122 reload registers set, adjust the set in the
123 xtensa_conditional_register_usage.
124 (xtensa_regno_to_class): Drop variable declaration.
125 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
127 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
129 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
130 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
131 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
132 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
133 location in call0 ABI.
134 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
135 stack adjustment size when handling exception.
136 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
137 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
139 ("return" pattern): Generate ret.n/ret in call0 ABI.
140 ("epilogue" pattern): Expand epilogue.
141 ("nonlocal_goto" pattern): Use default in call0 ABI.
142 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
143 emit eh_set_a0_* depending on ABI.
144 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
145 ("eh_set_a0_call0", "blockage"): New patterns.
147 2015-03-03 Martin Liska <mliska@suse.cz>
150 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
152 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
155 * config/rs6000/rs6000-tables.opt: Regenerate table.
157 2015-03-03 Renlin Li <renlin.li@arm.com>
159 * doc/md.texi (@item ^): Change ? into ^.
161 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
163 * doc/tm.texi: Regenerated.
165 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
167 * builtins.c (expand_builtin_return_addr): Add
168 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
170 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
172 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
174 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
176 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
179 2015-03-03 Martin Jambor <mjambor@suse.cz>
180 Eric Botcazou <ebotcazou@adacore.com>
182 * tree-sra.c (ipa_sra_check_caller_data): New type.
183 (has_caller_p): Removed.
184 (ipa_sra_check_caller): New function.
185 (ipa_sra_preliminary_function_checks): Use it.
187 2015-03-03 Martin Liska <mliska@suse.cz>
189 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
190 instead of if branch.
192 2015-03-03 Martin Liska <mliska@suse.cz>
195 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
197 2015-03-23 Jeff Law <law@redhat.com>
199 PR tree-optimization/65241
200 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
201 hash table if INSERT is true.
203 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
206 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
208 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
211 * config/avr/avr.c (context.h, tree-pass.h): Include them.
212 (avr_pass_data_recompute_notes): New static variable.
213 (avr_pass_recompute_notes): New class.
214 (avr_register_passes): New static function.
215 (avr_option_override): Call it.
217 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
219 Fix various problems with specs file generation.
222 * config.gcc (extra_gcc_objs) [avr]: Remove.
223 * config/avr/driver-avr.c: Remove file.
224 * config/avr/t-avr (driver-avr.o): Remove rule.
225 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
226 INCLUDES to build. Depend on TM_H.
227 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
228 build warnings. Fix non-matching types and non-existing %-codes.
230 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
231 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
232 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
233 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
234 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
235 (LIBGCC_SPEC): Remove definitions.
237 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
239 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
240 to create a register in testing mode.
242 2015-03-03 Martin Liska <mliska@suse.cz>
243 Jan Hubicka <hubicka@ucw.cz>
246 * cgraph.c (cgraph_node::has_thunk_p): New function.
247 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
248 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
249 (sem_function::merge): Assert is changed.
251 2015-03-03 Martin Liska <mliska@suse.cz>
252 Martin Jambor <mjambor@suse.cz>
255 * ipa-icf.c (sem_item_optimizer::execute): Change function
256 return value to boolean.
257 (sem_item_optimizer::merge_classes): Likewise.
258 (ipa_icf_driver): Return TODO_remove_functions in case there's
259 a merge operation processed.
260 * ipa-icf.h: Change function return value to boolean.
262 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
265 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
266 processor type for 64-bit little endian PowerPC.
268 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
269 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
270 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
271 printing built-in mask so it does not pass NULL pointers.
273 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
276 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
279 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
280 !ISA_HAS_FP_CONDMOVE.
282 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
284 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
287 2015-03-02 Ulrich Drepper <drepper@gmail.com>
289 * doc/invoke.texi (Options for Code Generation Conventions):
290 Fix URL of DSO paper.
292 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
295 * ipa-inline.c (check_callers): Looks for recursion.
296 (inline_to_all_callers): Give up on uninlinable or recursive edges.
297 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
298 summary of inline clones.
299 (do_estimate_growth_1): Fix recursion check.
301 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
304 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
307 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
308 Aldy Hernandez <aldyh@redhat.com>
311 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
312 when checking TYPE_BINFO.
314 2015-03-02 Richard Biener <rguenther@suse.de>
317 * ipa-icf-gimple.c: Include builtins.h.
318 (func_checker::compare_memory_operand): Compare base alignment.
320 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
323 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
324 are never passed by reference.
326 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
329 * tree-chkp.c (chkp_check_lower): Don't check against
330 zero bounds for already instrumented functions.
331 (chkp_check_upper): Likewise.
332 (chkp_fini): Clean pass local data to avoid wrong reusage.
334 2015-02-28 Martin Liska <mliska@suse.cz>
335 Jan Hubicka <hubicka@ucw.cz>
337 * ipa-icf.c (sem_variable::equals): Improve debug output;
338 get variable constructor.
339 (sem_variable::parse): Do not filter out too early; give up on
340 volatile and register vars.
341 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
343 * ipa-icf.h (sem_variable::init): Do not set ctor.
344 (sem_variable::ctor): Remove.
346 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
349 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
351 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
353 * ipa-icf.c: Include stor-layout.h
354 (sem_function::compare_cgraph_references): Rename to ...
355 (sem_item::compare_cgraph_references): ... this one.
356 (sem_variable::equals_wpa): New function
357 (sem_variable::equals): Do not check stuff already verified by
359 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
360 * ipa-icf.h (sem_item): Add compare_cgraph_references.
361 (sem_function): Remove compare_cgraph_references.
362 (sem_variable): Turns equals_wpa into non-inline.
364 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
366 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
367 (sem_item::add_expr): New function.
368 (sem_function::hash_stmt): Handle operands of most statements.
369 (sem_variable::get_hash): Hash the actual constructor.
370 * ipa-icf.h (sem_item): Add add_expr.
371 (sem_function): Update prototype of hash_stmt
373 2015-02-28 Martin Liska <mliska@suse.cz>
374 Jan Hubicka <hubicka@ucw.cz>
377 * ipa-icf-gimple.c (func_checker::compare_function_decl):
379 (func_checker::compare_variable_decl): Skip symtab vars.
380 (func_checker::compare_cst_or_decl): Update.
381 * ipa-icf.c (sem_function::parse): Do not consider aliases.
382 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
383 use correct symtab predicates.
384 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
385 (sem_variable::parse): Update comment.
386 (sem_item_optimizer::build_graph): Consider ultimate aliases
389 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
391 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
394 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
396 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
397 (sem_variable::merge) Likewise.
399 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
401 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
402 target; also match flag_ipa_devirt.
404 2015-03-01 Martin Liska <mliska@suse.cz>
405 Jan Hubicka <hubicka@ucw.cz>
407 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
408 Validate variable alignment.
409 * ipa-icf.c (sem_function::equals_private): Be more precise
410 about non-common function attributes.
411 (sem_variable::equals): Likewise.
413 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
416 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
417 across COMDAT group boundary.
419 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
422 * ipa-icf.c (clear_decl_rtl): New function.
423 (sem_function::merge): Clear RTL before forming alias.
424 (sem_variable::merge): Clear RTL before forming alias.
426 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
429 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot
432 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
434 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
437 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
439 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
440 a typo in the description.
442 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
445 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
446 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
447 * lra-constraints.c: Include "params.h".
448 (EBB_PROBABILITY_CUTOFF): Use
449 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
450 (lra_inheritance): Use '<' instead of '<=' for
451 EBB_PROBABILITY_CUTOFF.
452 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
455 2015-02-27 Martin Liska <mliska@suse.cz>
457 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
458 vector length condition.
460 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
462 * doc/extend.texi (x86 transactional memory intrinsics):
463 Reorganize discussion of _xbegin. Clarify that the return
464 value is a bit mask. Expand example and move to end of section.
466 2015-02-26 Jakub Jelinek <jakub@redhat.com>
467 Aldy Hernandez <aldyh@redhat.com>
469 PR rtl-optimization/65220
470 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
472 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
475 * lra-remat.c (update_scratch_ops): New.
477 * lra.c (lra_register_new_scratch_op): New. Take code from ...
478 (remove_scratches): ... here.
479 * lra-int.h (lra_register_new_scratch_op): New prototype.
481 2015-02-27 Marek Polacek <polacek@redhat.com>
484 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
485 -Wformat-signedness anymore.
487 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
489 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
491 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
493 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
495 * config/s390/s390.c (enum s390_builtin):
496 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
497 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
498 (s390_init_builtins): Generate new builtin functions.
499 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
500 (s390_sfpc, s390_efpc): New pattern definitions.
502 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
504 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
505 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
506 (s390_builtin_decls): New array.
507 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
508 (s390_builtin_decl): New function.
509 (TARGET_BUILTIN_DECL): Define macro.
511 2015-02-27 Richard Biener <rguenther@suse.de>
514 * builtins.c (get_object_alignment_2): Make sure to re-apply
515 the ANDed mask after recursing to its operand gets us a new
516 misalignment bit position.
518 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
519 Martin Liska <mliska@suse.cz>
522 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
523 Use address_matters_p.
524 (redirect_all_callers, set_addressable): New functions.
525 (sem_function::merge): Reorganize and fix merging issues.
526 (sem_variable::merge): Likewise.
527 (sem_variable::compare_sections): Remove.
528 * common.opt (fmerge-all-constants, fmerge-constants): Remove
530 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
532 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
534 (address_matters_1): New function.
535 (symtab_node::address_matters_p): New function.
536 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
537 check for merged flag.
538 * cgraph.h (address_matters_p): Declare.
539 (symtab_node::address_taken_from_non_vtable_p): Remove.
540 (symtab_node::address_can_be_compared_p): New method.
541 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
542 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
544 (comdat_can_be_unshared_p_1) Use address_matters_p.
545 (update_vtable_references): Fix formating.
546 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
547 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
548 * cgraphclones.c: Preserve merged and icf_merged flags.
550 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
552 * doc/extend.texi (Function Attributes): Fix spelling and typos.
553 (Label Attributes): Likewise.
554 (Cilk Plus Builtins): Likewise.
555 (ARC SIMD Built-in Functions): Likewise.
556 (ARM C Language Extensions (ACLE)): Likewise.
557 (PowerPC Built-in Functions): Likewise.
558 (PowerPC Hardware Transactional Memory Built-in Functions):
561 2015-02-26 Jakub Jelinek <jakub@redhat.com>
563 PR tree-optimization/65216
564 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
565 new stmt and new SSA_NAME for lhs whenever the arguments have
566 changed and weren't just swapped. Fix comment typo.
568 PR tree-optimization/65215
569 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
570 for PDP endian targets.
571 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
572 Fix up formatting issues.
573 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
574 size is smaller than the original, adjust MEM_REF offset by the
575 difference of sizes. Use is_gimple_mem_ref_addr instead of
576 is_gimple_min_invariant test to avoid adding address temporaries.
578 2015-02-26 Martin Liska <mliska@suse.cz>
579 Jan Hubicka <hubicka@ucw.cz>
582 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
583 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
584 (sem_item_optimizer::process_cong_reduction): Include division by
585 sensitive references.
586 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
587 * ipa-ref.c (ipa_ref::address_matters_p): New function.
588 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
590 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
593 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
595 * config/avr/avr.c: Same.
596 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
597 Refuse any constant address not in 0..0xbf.
598 * config/avr/avr.md (*mov<mode>, *movsf): Remove
599 tiny_valid_direct_memory_access_range from insn conditions.
600 (mov<mode>): Don't special-case expansion of avrtiny addresses.
602 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
605 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
606 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
607 * config/sh/predicates.md (const_logical_operand): New predicate.
608 * config/sh/sh.md: Add new peephole2 patterns.
610 2015-02-26 Marek Polacek <polacek@redhat.com>
613 * ipa-inline.c (early_inliner): Recompute inline parameters.
615 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
618 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
619 instructions with TImode operands are included in the analysis.
621 2015-02-26 Sebastian Pop <s.pop@samsung.com>
623 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
624 of an EDGE_FSM_THREAD.
626 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
628 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
630 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
633 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
635 2015-02-26 Sebastian Pop <s.pop@samsung.com>
637 PR tree-optimization/65048
638 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
639 (thread_through_all_blocks): Call valid_jump_thread_path.
640 Remove invalid FSM jump-thread paths.
642 2015-02-26 Jakub Jelinek <jakub@redhat.com>
644 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
645 (ipa_write_optimization_summaries): Likewise.
646 * tree-streamer.h: Include data-streamer.h.
647 (streamer_mode_table): Declare extern variable.
648 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
649 * lto-streamer-out.c (lto_output_init_mode_table,
650 lto_write_mode_table): New functions.
651 (produce_asm_for_decls): Call lto_write_mode_table when streaming
653 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
654 (lto_create_simple_input_block): Add mode_table argument to the
655 lto_input_block constructors.
656 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
658 * data-streamer-in.c (string_for_index): Likewise.
659 * ipa-inline-analysis.c (inline_read_section): Likewise.
660 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
661 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
662 * lto-streamer-in.c (lto_read_body_or_constructor,
663 lto_input_toplevel_asms): Likewise.
664 (lto_input_mode_table): New function.
665 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
666 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
667 Use bp_pack_machine_mode.
668 * real.h (struct real_format): Add name field.
669 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
670 (class lto_input_block): Add mode_table member.
671 (lto_input_block::lto_input_block): Add mode_table_ argument,
672 initialize mode_table.
673 (struct lto_file_decl_data): Add mode_table field.
674 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
675 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
676 unpack_ts_decl_common_value_fields,
677 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
678 * tree-streamer.c (streamer_mode_table): New variable.
679 * real.c (ieee_single_format, mips_single_format,
680 motorola_single_format, spu_single_format, ieee_double_format,
681 mips_double_format, motorola_double_format,
682 ieee_extended_motorola_format, ieee_extended_intel_96_format,
683 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
684 ibm_extended_format, mips_extended_format, ieee_quad_format,
685 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
686 decimal_single_format, decimal_double_format, decimal_quad_format,
687 ieee_half_format, arm_half_format, real_internal_format): Add name
689 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
691 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
694 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
695 reordering for selective scheduling.
697 2015-02-26 Terry Guo <terry.guo@arm.com>
699 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
700 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
701 (arm_arch_no_volatile_ce): Declare new global variable.
702 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
703 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
704 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
705 (TARGET_NO_VOLATILE_CE): New macro.
706 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
707 volatile memory access in IT block
709 2015-02-25 Uros Bizjak <ubizjak@gmail.com>
712 * doc/install.texi (Specific, alpha*-*-*): Document that binutils 2.25
713 or newer are required.
715 2015-02-25 Kai Tietz <ktietz@redhat.com>
717 PR tree-optimization/61917
718 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
719 that reduc_def_stmt is null.
721 2015-02-25 Martin Liska <mliska@suse.cz>
723 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
724 hard register variables.
726 2015-02-25 Kai Tietz <ktietz@redhat.com>
729 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
730 (symtab::noninterposable_alias): Likewise.
732 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
735 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
737 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
739 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
742 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
743 as split condition; force split via '#' in output pattern.
745 2015-02-25 Richard Biener <rguenther@suse.de>
746 Kai Tietz <ktietz@redhat.com>
748 PR tree-optimization/61917
749 * tree-vect-loop.c (vectorizable_reduction): Allow
750 vect_internal_def without reduction to exit graceful.
752 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
755 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
756 only with NONDEBUG_INSN_P.
758 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
760 Use variadic macros with avr-log.c.
762 * config/avr/avr-protos.h (avr_vdump): New prototype.
763 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
764 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
765 * config/avr/avr-log.c: Adjust comments.
766 (avr_vdump): New function.
767 (avr_vadump): Pass caller as 2nd argument instead of format string.
768 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
769 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
771 2015-02-25 Jakub Jelinek <jakub@redhat.com>
774 * target.def (target_option_stream_in): New target hook.
775 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
776 targetm.target_option.post_stream_in if non-NULL.
777 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
778 * doc/tm.texi: Updated.
779 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
781 (TARGET_OPTION_POST_STREAM_IN): Redefine.
783 2015-02-24 Jeff Law <law@redhat.com>
786 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
787 of operand 0 and operand 2.
788 (zero_cost_loop_end, loop_end): Similarly.
790 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
792 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
795 2015-02-24 DJ Delorie <dj@redhat.com>
797 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as
799 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
800 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
801 instead of hardcoding SImode.
803 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
805 * omp-low.c (create_omp_child_function): Tag entrypoint
806 functions with a special attribute.
808 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
811 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
813 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
815 PR rtl-optimization/65123
816 * lra-remat.c (operand_to_remat): Check hard regs in insn
819 2015-02-24 Nick Clifton <nickc@redhat.com>
821 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
824 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
827 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
828 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
829 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
830 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
831 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
832 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
833 (BUILT_IN_GOACC_PARALLEL): Specify as
834 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
835 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
837 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
838 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
839 Remove function types.
840 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
841 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
842 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
845 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
847 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
849 2015-02-24 Jakub Jelinek <jakub@redhat.com>
851 PR tree-optimization/65170
852 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
853 if val[1] < 0, clear also val[2] and return 3.
855 2015-02-24 Alan Modra <amodra@gmail.com>
858 * config/rs6000/rs6000.c (get_memref_parts): Only return true
859 when *base is a reg. Handle nested plus addresses. Simplify
862 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
864 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
865 use natural alignment when optimizing for size.
867 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
870 * config/sh/sh.md (movsicc_true+3): Remove peephole.
871 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
872 * config/sh/sh.c (replace_n_hard_rtx): Remove.
874 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
877 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
878 too big for a wide_int. Implement missing wrapping operation.
880 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
883 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
884 instead of const_int 4294901760.
886 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
888 * config/avr/t-avr: Fix typo in comment.
890 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
892 * doc/rtl.texi (fma): Clarify documentation.
894 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
897 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
900 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
902 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
903 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
904 restrict alignments to absolute_biggest_alignment.
905 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
907 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
908 * doc/tm.texi: Regenerate.
909 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
911 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
914 * ira-color.c (color_pass): Prevent splitting multi-register
917 2015-02-20 Richard Biener <rguenther@suse.de>
919 PR tree-optimization/65136
920 * tree-ssa-propagate.c: Include cfgloop.h.
921 (replace_phi_args_in): Avoid replacing loop latch edge PHI
922 arguments with constants.
924 2015-02-20 Jakub Jelinek <jakub@redhat.com>
925 Martin Liska <mliska@suse.cz>
928 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
929 don't try to create_thunk if stdarg_p. If
930 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
931 redirect_callers if possible.
932 (sem_item_optimizer::execute): Call unregister_hooks here...
933 (ipa_icf_driver): ... instead of here.
935 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
937 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
938 Mark operand 0 as earlyclobber in 2nd alternative.
939 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
940 Write negated shift amount into QI lowpart operand 0 and use it
942 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
944 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
946 * cgraph.h (clone_function_name_1): Declare.
947 * cgraphclones.c (clone_function_name_1): New function.
948 (clone_function_name): Use it.
949 * lto-partition.c: Include "stringpool.h".
950 (must_not_rename, maybe_rewrite_identifier,
951 validize_symbol_for_target): New static functions.
952 (privatize_symbol_name): Use must_not_rename.
953 (promote_symbol): Call validize_symbol_for_target.
954 (lto_promote_cross_file_statics): Likewise.
955 (lto_promote_statics_nonwpa): Likewise.
957 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
960 * config/avr/avr.md (pushhi_insn): New insn.
961 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
963 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
964 Jakub Jelinek <jakub@redhat.com>
966 * tree-streamer.c (preload_common_nodes): Don't preload
967 TI_VA_LIST* for offloading.
968 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
971 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
973 * config/pa/pa.c (pa_emit_move_sequence): Always force
974 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
977 * config/pa/pa.c (pa_reloc_rw_mask): New function.
978 (TARGET_ASM_RELOC_RW_MASK): Define.
979 (pa_cannot_force_const_mem): Revert previous change.
981 2015-02-19 Martin Jambor <mjmabor@suse.cz>
982 Jan Hubicka <hubicka@ucw.cz>
985 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
986 across jump functions.
988 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
990 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
992 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
994 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
996 2015-02-19 Richard Henderson <rth@redhat.com>
999 * varasm.c (default_binds_local_p_2): Don't test node->definition;
1000 test DECL_EXTERNAL independent of symtab_node.
1002 2015-02-19 Jakub Jelinek <jakub@redhat.com>
1005 * varpool.c (varpool_node::get_constructor): Return early
1006 if this->lto_file_data is NULL.
1008 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1010 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
1011 (rank_for_schedule_debug): Update.
1012 (ready_sort): Make static. Move sorting logic to ...
1013 (ready_sort_debug, ready_sort_real): New static functions.
1014 (schedule_block): Sort both debug insns and real insns in preparation
1015 for ready list trimming. Improve debug output.
1016 * sched-int.h (ready_sort): Remove global declaration.
1018 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
1020 * ipa-icf.c (sem_function::equals_private): Adjust.
1021 (sem_function::bb_dict_test): Take a vec<int> * instead of
1023 * ipa-icf.h (bb_dict_test): Likewise.
1025 2015-02-18 Jakub Jelinek <jakub@redhat.com>
1027 PR gcov-profile/64634
1028 * tree-eh.c (frob_into_branch_around): Fix up typos
1029 in function comment.
1030 (lower_catch): Put eh_seq resulting from EH lowering of
1031 the cleanup sequence after the cleanup rather than before it.
1033 2015-02-18 Tom de Vries <tom@codesourcery.com>
1035 * common.opt (fstdarg-opt): New option.
1036 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
1037 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
1038 (@item -fstdarg-opt): New item.
1040 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
1043 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
1046 2015-02-18 Jakub Jelinek <jakub@redhat.com>
1048 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
1050 (ALL_HOST_OBJS): Add mkoffload.o.
1051 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
1053 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
1055 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
1056 (compare_virtual_tables): Be smarter about skipping typeinfos;
1057 do sane output on virtual table table mismatch.
1058 (warn_odr): Be ready for forward declarations of enums;
1059 output sane info on base mismatch and virtual table mismatch.
1060 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
1061 when only one type is polymorphic.
1062 (get_odr_type): Fix hashtable corruption.
1063 (dump_odr_type): Dump mangled names.
1065 2015-02-18 Richard Biener <rguenther@suse.de>
1067 PR tree-optimization/65063
1068 * tree-predcom.c (determine_unroll_factor): Return 1 if we
1069 have replaced looparound PHIs.
1071 2015-02-18 Martin Liska <mliska@suse.cz>
1073 * lto-streamer.c (lto_streamer_init): Encapsulate
1074 streamer_check_handled_ts_structures with checking macro.
1076 2015-02-18 Jakub Jelinek <jakub@redhat.com>
1079 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
1080 section if !implicit_section.
1081 (cgraph_node::create_version_clone_with_body): Likewise.
1082 * trans-mem.c (ipa_tm_create_version): Likewise.
1084 2015-02-18 Richard Biener <rguenther@suse.de>
1086 PR tree-optimization/62217
1087 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
1090 2015-02-18 Marek Polacek <polacek@redhat.com>
1093 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
1094 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
1095 is in range [-16K, -1]. Don't issue run-time error if
1096 (ptr > ptr + offset).
1098 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
1100 * doc/install.texi (nvptx-*-none): New section.
1101 * doc/invoke.texi (Nvidia PTX Options): Likewise.
1102 * config/nvptx/nvptx.opt: Update.
1104 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
1105 (access_check): New functions, copied from
1106 config/i386/intelmic-mkoffload.c.
1107 (main): For non-installed testing, look in all COMPILER_PATHs for
1110 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
1112 2015-02-18 Andrew Pinski <apinski@cavium.com>
1113 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1115 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
1116 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
1118 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
1120 * ipa-visibility.c (function_and_variable_visibility): Only
1121 check locality if node is not already local.
1122 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
1123 call_for_symbol_and_aliases instead of
1124 call_for_symbol_thunks_and_aliases.
1125 (ipa_inline): Likewise.
1126 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1128 * ipa.c (symbol_table::remove_unreachable_nodes): Use
1129 call_for_symbol_and_aliases.
1130 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
1131 (ipa_propagate_frequency_1): Use it; use opt_for_fn
1132 (ipa_propagate_frequency): Update.
1133 (ipa_profile): Add opt_for_fn gueards.
1135 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
1137 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
1138 * doc/invoke.texi (SH options): Document it.
1139 * config/sh/sh.c (sh_insn_length_adjustment): Check
1140 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
1142 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
1144 * common.opt (fipa-cp-alignment): New.
1145 * ipa-cp.c (ipcp_store_alignment_results): Check
1146 flag_ipa_cp_alignment.
1147 * opts.c (default_options_table): Enable -fipa-cp-alignment for
1149 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
1150 * doc/invoke.texi: Document -fipa-cp-alignment.
1152 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
1155 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
1156 to nil. Adjust comments.
1158 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
1160 * ipa-visibility.c (function_and_variable_visibility): Only
1161 check locality if node is not already local.
1162 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
1163 call_for_symbol_and_aliases instead of
1164 call_for_symbol_thunks_and_aliases.
1165 (ipa_inline): Likewise.
1166 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1168 * ipa.c (symbol_table::remove_unreachable_nodes): Use
1169 call_for_symbol_and_aliases.
1170 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
1171 (ipa_propagate_frequency_1): Use it; use opt_for_fn
1172 (ipa_propagate_frequency): Update.
1173 (ipa_profile): Add opt_for_fn guards.
1175 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1177 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
1178 skipping of "strange" tokens.
1180 2015-02-17 Jeff Law <law@redhat.com>
1182 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
1185 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
1187 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
1188 as forcing a HARD_DEP between instructions, thereby
1189 disallowing rewriting to break dependencies.
1191 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
1193 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
1194 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
1195 variables in boundary that have no inlitalizer encoded and are
1197 * varasm.c (default_binds_local_p_2): External definitions do not
1198 count as definitions here.
1200 2015-02-16 Jeff Law <law@redhat.com>
1202 PR tree-optimization/64823
1203 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
1205 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
1206 threading through blocks with PHIs, but no statements.
1207 (thread_through_normal_block): Distinguish between blocks where
1208 we did not process all the statements and blocks with no statements.
1210 2015-02-16 Jakub Jelinek <jakub@redhat.com>
1211 James Greenhalgh <james.greenhalgh@arm.com>
1214 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
1215 section if not linkonce. Fix up formatting.
1216 (cgraph_node::create_version_clone_with_body): Copy section.
1217 * trans-mem.c (ipa_tm_create_version): Likewise.
1219 2015-02-16 Richard Biener <rguenther@suse.de>
1221 PR tree-optimization/65077
1222 * tree-ssa-structalias.c (get_constraint_for_1): Handle
1223 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
1224 (find_func_aliases): Allow float values to carry pointers again.
1226 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
1228 * doc/install.texi (Specific): Reorder targets list to put
1229 aarch64 in alphabetical order. Add a link to aarch64*-*-*
1232 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1233 David Edelsohn <dje.gcc@gmail.com>
1236 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
1237 mapping class to external variable or function reference.
1238 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
1241 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
1244 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
1245 ASM_WEAKEN_DECL if defined.
1247 2015-02-16 Richard Biener <rguenther@suse.de>
1250 * varasm.c (default_file_start): For LTO produced units
1251 emit <artificial> as file directive.
1253 2015-02-16 Richard Biener <rguenther@suse.de>
1255 PR tree-optimization/63593
1256 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
1257 stmts and releasing SSA names until...
1258 (execute_pred_commoning): ... after processing all chains.
1260 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
1263 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
1266 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
1268 * doc/bugreport.texi: Adjust section titles throughout the file
1269 to use "Title Case".
1270 * doc/extend.texi: Likewise.
1271 * doc/gcov.texi: Likewise.
1272 * doc/implement-c.texi: Likewise.
1273 * doc/implement-cxx.texi: Likewise.
1274 * doc/invoke.texi: Likewise.
1275 * doc/objc.texi: Likewise.
1276 * doc/standards.texi: Likewise.
1277 * doc/trouble.texi: Likewise.
1279 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
1281 * cgraph.h (symtab_node::has_aliases_p): Simplify.
1282 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
1283 * tree.c (lookup_binfo_at_offset): Make static.
1284 (get_binfo_at_offset): Do not shadow offset; add explanatory
1287 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
1289 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
1290 for all floading point loads and stores except those using a register
1292 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
1295 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
1297 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
1298 (do_estimate_growth_1): Record if any uninlinable edge was seen.
1299 (estimate_growth): Handle uninlinable edges correctly.
1300 (check_callers): New.
1301 (growth_likely_positive): Handle aliases correctly.
1303 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
1305 * ipa-chkp.c: Use iterate_direct_aliases.
1306 * symtab.c (resolution_used_from_other_file_p): Move inline.
1307 (symtab_node::create_reference): Fix formating.
1308 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
1309 (symtab_node::iterate_reference): Move inline.
1310 (symtab_node::iterate_referring): Move inline.
1311 (symtab_node::iterate_direct_aliases): Move inline.
1312 (symtab_node::used_from_object_file_p_worker): Inline into ...
1313 (symtab_node::used_from_object_file_p): ... this one; move inline.
1314 (symtab_node::call_for_symbol_and_aliases): Move inline;
1315 use iterate_direct_aliases.
1316 (symtab_node::call_for_symbol_and_aliases_1): New method.
1317 (cgraph_node::call_for_symbol_and_aliases): Move inline;
1318 use iterate_direct_aliases.
1319 (cgraph_node::call_for_symbol_and_aliases_1): New method.
1320 (varpool_node::call_for_node_and_aliases): Rename to ...
1321 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
1322 use iterate_direct_aliases.
1323 (varpool_node::call_for_symbol_and_aliases_1): New method.
1324 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
1325 (ipa_discover_readonly_nonaddressable_var): Update.
1326 * ipa-devirt.c: Fix formating.
1327 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
1329 (cgraph_node::call_for_symbol_and_aliases): Move inline.
1330 (cgraph_node::call_for_symbol_and_aliases_1): New function..
1331 * cgraph.h (used_from_object_file_p_worker): Remove.
1332 (resolution_used_from_other_file_p): Move inline.
1333 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
1334 (symtab_node::iterate_reference): Move inline.
1335 (symtab_node::iterate_referring): Move inline.
1336 (symtab_node::iterate_direct_aliases): Move inline.
1337 (symtab_node::used_from_object_file_p_worker): Inline into ...
1338 (symtab_node::used_from_object_file_p): Move inline.
1339 * tree-emutls.c (ipa_lower_emutls): Update.
1340 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
1341 (varpool_node::call_for_node_and_aliases): Remove.
1343 2015-02-14 Jakub Jelinek <jakub@redhat.com>
1345 PR tree-optimization/62209
1346 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
1347 op == range->exp, insert seq and gimplified code after labels
1348 instead of after the phi.
1350 2015-02-13 Jeff Law <law@redhat.com>
1353 Revert my change for tree-optimization/64823.
1355 2015-02-13 Jakub Jelinek <jakub@redhat.com>
1357 PR tree-optimization/65053
1358 * tree-ssa-phiopt.c (value_replacement): When moving assign before
1359 cond, either reset VR on lhs or set it to phi result VR.
1361 2015-02-13 Jeff Law <law@redhat.com>
1363 PR tree-optimization/64823
1364 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
1365 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
1366 threading through blocks with PHIs, but no statements.
1367 (thread_through_normal_block): Distinguish between blocks where
1368 we did not process all the statements and blocks with no statements.
1370 PR rtl-optimization/47477
1371 * match.pd (convert (plus/minus (convert @0) (convert @1): New
1372 simplifier to narrow arithmetic.
1374 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
1377 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
1378 polymorphic call info when type is not known to be preserved.
1380 2015-02-13 Maritn Jambor <mjambor@suse.cz>
1383 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
1384 (inline_call): Use it.
1386 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
1388 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
1389 GOMP_DEVICE_NVIDIA_PTX.
1391 2015-02-13 Jakub Jelinek <jakub@redhat.com>
1394 * stmt.c (emit_case_nodes): Use void_type_node instead of
1395 NULL_TREE as LABEL_DECL type.
1397 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
1399 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
1401 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
1402 symbolic references to data to be forced to constant memory on the
1405 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
1407 PR tree-optimization/65002
1408 * tree-cfg.c (pass_data_fixup_cfg): Don't update
1410 * tree-sra.c (some_callers_have_no_vuse_p): New.
1411 (ipa_early_sra): Reject functions whose callers
1412 assume function is read only.
1414 2015-02-13 Richard Biener <rguenther@suse.de>
1417 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
1418 for LTO produced CUs.
1420 2015-02-13 Bin Cheng <bin.cheng@arm.com>
1422 PR tree-optimization/64705
1423 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
1424 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
1425 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
1426 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
1427 expand_simple_operations.
1429 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
1430 Richard Henderson <rth@redhat.com>
1433 * cgraphunit.c (cgraph_node::finalize_function): Set definition
1434 before notice_global_symbol.
1435 (varpool_node::finalize_decl): Likewise.
1436 * varasm.c (default_binds_local_p_2): Rename from
1437 default_binds_local_p_1, add weak_dominate argument. Use direct
1438 returns instead of assigning to local variable. Unify varpool and
1439 cgraph paths via symtab_node. Reject undef weak variables before
1440 testing visibility. Reorder tests for simplicity.
1441 (default_binds_local_p): Use default_binds_local_p_2.
1442 (default_binds_local_p_1): Likewise.
1443 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
1445 (default_elf_asm_output_external): Emit visibility when specified.
1447 2015-02-13 Alan Modra <amodra@gmail.com>
1449 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
1450 code setting up r11 for out-of-line fp restore.
1452 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
1454 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
1455 (muser-mode): Likewise.
1457 2015-02-13 Alan Modra <amodra@gmail.com>
1459 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
1460 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
1462 2015-02-12 David Howells <dhowells@redhat.com>
1464 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
1466 * tree-ssa-uninit.c (dump_predicates): Likewise.
1467 * opts.c (print_filtered_help): Likewise.
1469 2015-02-12 Jakub Jelinek <jakub@redhat.com>
1471 * dwarf2out.c (output_die): Use "%s", name instead of name to
1472 avoid -Wformat-security warning.
1474 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
1475 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
1476 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
1477 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
1479 2015-02-12 Jason Merrill <jason@redhat.com>
1481 * common.opt (-flifetime-dse): New.
1483 2015-02-12 Jakub Jelinek <jakub@redhat.com>
1486 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
1488 PR tree-optimization/65014
1489 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
1490 use original second operand of arg0 or arg1 instead of
1491 that adjusted by STRIP_NOPS.
1493 2015-02-11 Jeff Law <law@redhat.com>
1496 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
1497 that needs to be queued, just queue it for a single cycle.
1499 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
1501 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
1502 bodies of thunks; comment on why.
1503 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
1506 2015-02-11 Richard Henderson <rth@redhat.com>
1509 * tree-eh.c (mark_reachable_handlers): Mark source and destination
1510 regions of __builtin_eh_copy_values.
1512 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1515 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
1516 ultimate alias is MEM with SYMBOL_REF satisfying
1517 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
1518 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
1520 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
1522 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
1523 "diagnostic-core.h".
1524 (main): Initialize progname, and call diagnostic_initialize.
1526 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
1527 instead of __OPENMP_TARGET__.
1529 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
1530 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
1533 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
1535 * doc/sourcebuild.texi (pie_enabled): Document.
1537 2015-02-11 Martin Liska <mliska@suse.cz>
1540 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
1541 a return value for call to a function that is noreturn.
1543 2015-02-11 Richard Biener <rguenther@suse.de>
1546 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
1549 2015-02-11 Andrew Pinski <apinski@cavium.com>
1552 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
1553 Change the first argument type to size_type_node and add another
1555 (aarch64_simd_expand_builtin): Handle the new argument to
1556 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
1557 print an out when the first two arguments are not
1558 nonzero integer constants.
1559 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
1560 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
1562 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1565 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
1566 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
1567 (ix86_set_current_function): Rewritten.
1568 (ix86_add_new_builtins): Temporarily clear current_target_pragma
1569 when creating builtin fndecls.
1571 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1574 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
1576 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
1577 have no comdat group.
1578 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
1579 (lto_output_varpool_node): Always output alias info.
1580 (output_refs): Output refs of boundary aliases, too.
1581 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
1582 (output_symtab): Output call eges in thunks in boundary.
1583 (get_alias_symbol): Remove.
1584 (input_node, input_varpool_node): Do not special case weakrefs.
1585 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
1586 alias and thunks targets in the boundary; do not take removed symbols
1587 from their comdat groups.
1588 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
1589 (cgraph_node::global_info): Remove.
1590 (cgraph_node::rtl_info): Look through aliases and thunks.
1591 * cgrpah.h (global_info): Remove.
1592 (non_local_p): Remove.
1594 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1595 Sandra Loosemore <sandra@codesourcery.com>
1597 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
1598 to inline asm. List dialects in proper order.
1600 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1601 Sandra Loosemore <sandra@codesourcery.com>
1603 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
1605 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1607 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
1608 modified) reference to Solaris.
1610 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
1612 * doc/extend.texi (Extended Asm): Fix typos.
1614 2015-02-10 Jakub Jelinek <jakub@redhat.com>
1617 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
1619 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
1622 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
1623 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
1624 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
1625 * config/sh/constraints.md (Ara, Add): New constraints.
1626 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
1628 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
1629 atomic_mem_operand_0. Don't use force_reg on the memory address.
1630 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
1631 Sra constraint. Convert to insn_and_split. Add workaround for
1633 (atomic_compare_and_swap<mode>_hard): Copy to
1634 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
1635 Use atomic_mem_operand_0 predicate.
1636 (atomic_compare_and_swap<mode>_soft_gusa,
1637 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
1639 (atomic_compare_and_swap<mode>_soft_tcb,
1640 atomic_compare_and_swap<mode>_soft_imask,
1641 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
1642 atomic_mem_operand_0 predicate and SraSdd constraints.
1643 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
1645 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
1646 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
1647 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
1648 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
1649 force_reg on the memory address.
1650 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
1651 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
1652 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
1653 atomic_mem_operand_1 predicate and Sra constraint.
1654 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
1655 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
1656 Use atomic_mem_operand_1 predicate.
1657 (atomic_<fetchop_name><mode>_hard): Copy to
1658 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
1659 Use atomic_mem_operand_1 predicate.
1660 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
1661 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
1662 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
1663 insn_and_split. Use atomic_mem_operand_1 predicate.
1664 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
1665 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
1666 Use atomic_mem_operand_1 predicate.
1667 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
1668 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
1669 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
1670 in generated insn with original mem operand before emitting the insn.
1671 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
1672 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
1673 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
1674 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
1675 Use atomic_mem_operand_1 predicate and AraAdd constraints.
1676 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
1677 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
1678 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
1679 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
1680 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
1681 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
1682 atomic_not_fetch<mode>_soft_tcb,
1683 atomic_<fetchop_name>_fetch<mode>_soft_imask,
1684 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
1685 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
1686 Use atomic_mem_operand_1 predicate and SraSdd constraints.
1688 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
1690 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
1691 and 3 earlyclobber operands.
1693 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1695 * common.opt (fstack-reuse): Mark as optimization.
1697 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1700 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
1702 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
1704 PR tree-optimization/64326
1705 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
1707 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
1709 PR gcov-profile/61889
1710 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
1712 2015-02-10 Richard Biener <rguenther@suse.de>
1714 PR tree-optimization/64995
1715 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
1716 value we use is final.
1717 (visit_reference_op_store): Always valueize op.
1718 (visit_use): Properly valueize vuses.
1720 2015-02-10 Richard Biener <rguenther@suse.de>
1722 PR tree-optimization/64909
1723 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
1724 pass a scalar-stmt count estimate to the cost model.
1725 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
1727 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
1729 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
1730 enabled by default together with var-tracking.
1732 2015-02-10 Nick Clifton <nickc@redhat.com>
1734 * config/rl78/rl78.c: Remove DIV attribute code accidentally
1735 included in previous rl78 commit.
1737 2015-02-10 Richard Biener <rguenther@suse.de>
1739 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
1740 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
1743 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1745 PR gcov-profile/61889
1746 * config.in: regenerate.
1747 * configure.in: Likewise.
1748 * configure.ac: Check for ftw.h.
1749 * gcov-tool.c: Check for ftw.h before using nftw.
1751 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1754 * ipa-visibility.c (update_visibility_by_resolution_info): Only
1755 assert when not in lto mode.
1757 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1759 * ira-color.c (setup_left_conflict_sizes_p): Simplify
1760 initialization/assignment of conflict_size.
1762 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
1765 * ipa-cp.c (gather_caller_stats): Skip thunks.
1766 (propagate_constants_topo): Skip aliases.
1768 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
1771 * config/sh/sh.c (sh_option_override): Don't change
1772 -freorder-blocks-and-partition to -freorder-blocks even when
1773 unwinding is enabled.
1774 (sh_can_follow_jump): Return false if the followee jump is
1775 a crossing jump when -freorder-blocks-and-partition is specified.
1776 * config/sh/sh.md (*jump_compact_crossing): New insn.
1778 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
1779 Kaz Kojima <kkojima@gcc.gnu.org>
1782 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
1783 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
1784 (sh_can_redirect_branch): Rename to ...
1785 (sh_can_follow_jump): ... this. Constify argument types.
1786 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
1787 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
1788 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
1789 * doc/tm.texi: Regenerate.
1791 2015-02-09 Jakub Jelinek <jakub@redhat.com>
1794 * builtins.c (expand_builtin): Call targetm.expand_builtin
1795 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
1797 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1800 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
1802 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1805 * ipa-icf.c (set_local): New function.
1806 (sem_function::merge): Use it.
1808 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1810 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
1811 (add_type_duplicate): Fix comparison of BINFOs.
1813 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1815 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
1816 on getting VOID pointer.
1818 2015-02-09 Jakub Jelinek <jakub@redhat.com>
1821 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
1824 2015-02-09 Richard Biener <rguenther@suse.de>
1826 * genmatch.c (replace_id): Copy expr_type.
1828 2015-02-09 Richard Biener <rguenther@suse.de>
1830 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
1831 (streamer_write_tree_bitfields): Declare.
1832 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
1833 properly unpack padding.
1834 (unpack_value_fields): Inline ...
1835 (streamer_read_tree_bitfields): ... here.
1836 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
1837 and properly add padding bits.
1838 (streamer_pack_tree_bitfields): Fold into ...
1839 (streamer_write_tree_bitfields): ... this new function,
1840 exposing the bitpack object.
1841 * lto-streamer-out.c (lto_write_tree_1): Call
1842 streamer_write_tree_bitfields.
1844 2015-02-09 Richard Biener <rguenther@suse.de>
1846 PR tree-optimization/54000
1847 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
1848 (struct ivopts_data): Add loop_loc member.
1849 (tree_ssa_iv_optimize_loop): Dump loop location.
1850 (create_new_ivs): Likewise, also dump number of IVs generated.
1852 2015-02-09 Martin Liska <mliska@suse.cz>
1854 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
1855 just if not yet registered.
1856 (ipa_icf_generate_summary): Register callgraph hooks.
1858 2015-02-08 Andrew Pinski <apinski@cavium.com>
1860 * config/aarch64/aarch64.c (gty_dummy): Delete.
1862 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1865 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
1866 (cgraph_node::local_p): Remove thunk related FIXME.
1868 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1871 * i386.c (ix86_function_regparm): Look through aliases to see if callee
1872 is local and optimized.
1873 (ix86_function_sseregparm): Likewise; also use target's SSE math
1874 settings; error out instead of silently generating wrong code
1876 (init_cumulative_args): Look through aliases.
1878 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1881 * ipa-split.c (execute_split_functions): Split if function has aliases.
1883 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1886 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
1887 aliases before trying to expand it.
1888 (cgraph_node::expand_thunk): Fix formating.
1890 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
1892 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
1893 (Using Assembly Language with C): Expand introduction.
1894 (Basic Asm): Copy-edit. Add more information about uses of
1896 (Extended Asm): Copy-edit. Document new escape syntax and
1898 (Global Reg Vars): Copy-edit.
1899 (Local Reg Vars): Likewise.
1901 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
1905 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
1906 (DBX_CONTIN_CHAR): Define.
1908 2015-02-06 Sebastian Pop <s.pop@samsung.com>
1909 Brian Rzycki <b.rzycki@samsung.com>
1911 PR tree-optimization/64878
1912 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
1913 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
1914 Stop recursion at loop phi nodes after having visited a loop phi node.
1916 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1918 * toplev.c (process_options): Change flag_ipa_ra before creating
1919 optimization_{default,current}_node.
1922 * cgraphunit.c (cgraph_node::expand_thunk): If
1923 restype is not is_gimple_reg_type nor the thunk_fndecl
1924 returns aggregate_value_p, set restmp to a temporary variable
1927 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
1929 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
1931 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1934 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1935 add a general secondary reload handler for SDmode, unless we have
1936 both read/write support for SDmode.
1938 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1941 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
1942 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
1943 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
1944 1 before, push it to abstract_vec.
1945 (dwarf2out_abstract_function): Adjust caller. Don't call
1946 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
1947 DECL_ABSTRACT_P flags for all abstract_vec elts.
1949 2015-02-06 Renlin Li <renlin.li@arm.com>
1951 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
1953 * tree-ssa.c (execute_update_addresses_taken): Likewise.
1955 2015-02-06 Jeff Law <law@redhat.com>
1958 * config/h8300/h8300.c (push): New argument "in_prologue".
1959 Pass "in_prologue" along to "F".
1960 (h8300_push_pop): Corresponding changes.
1961 (h8300_expand_prologue): Likewise.
1962 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
1964 2015-02-06 Jakub Jelinek <jakub@redhat.com>
1966 PR rtl-optimization/64957
1968 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
1969 IOR rather than for AND.
1971 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
1974 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
1975 of shift-add and (add + shift) operations. Rename local variable.
1977 2015-02-05 Jeff Law <law@redhat.com>
1980 * config/h8300/constraints.md (U): Correctly dectect
1981 "eightbit_data" memory addresses.
1982 * config/h8300/h8300.c (eightbit_constant_address_p): Also
1983 handle (const (plus (symbol_ref (x)))) where x is declared
1984 as an 8-bit data memory address.
1985 * config/h8300/h8300.md (call, call_value): Correctly detect
1986 "funcvec" functions.
1989 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
1990 24 to 28 bits for the H8/300.
1992 2015-02-06 Alan Modra <amodra@gmail.com>
1995 * config/rs6000/rs6000.c (chain_already_loaded): New function.
1996 (rs6000_call_aix): Use it.
1998 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
2000 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
2003 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
2005 * config/h8300/constraints.md ("U" constraint): Use strict
2006 variant of REG_OK_FOR_BASE_P after reload has started.
2008 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
2010 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
2011 define to zero if !TARGET_NEON.
2012 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
2014 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2015 Trevor Saunders <tsaunders@mozilla.com>
2018 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
2020 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2023 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
2024 when removing varpool nodes.
2026 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2029 * varpool.c (varpool_node::remove): Fix order of variables.
2031 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2034 * ipa-inline.c (inline_small_functions): Fix ordering issue between
2035 speculation resolution and key updates.
2037 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2039 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
2040 about not letting any speculative edges unupdated.
2042 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2045 * gcov-io.c (gcov_var): Export.
2047 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2050 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
2051 edges that become speculative.
2053 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2055 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
2056 or DW_LANG_Fortran08.
2057 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
2059 (gen_compile_unit_die): Handle "GNU Fortran2003" and
2060 "GNU Fortran2008" language strings.
2061 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
2062 * langhooks.h (lang_GNU_Fortran): New prototype.
2063 * langhooks.c (lang_GNU_Fortran): New function.
2064 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
2067 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
2069 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
2070 (RTX_OK_FOR_OLO10_P): Likewise.
2072 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
2074 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
2076 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2079 * gimple.c: Include gimple-ssa.h.
2080 (maybe_remove_unused_call_args): New function.
2081 * gimple.h (maybe_remove_unused_call_args): Declare.
2082 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
2083 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
2084 * gimple-fold.c (gimple_fold_call): Likewise.
2086 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
2088 PR rtl-optimization/64905
2089 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
2090 pointer alignment if it isn't needed.
2092 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2094 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
2095 cortex-a72.cortex-a53.
2096 * config/aarch64/aarch64-tune.md: Regenerate.
2097 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
2099 2015-02-04 Nick Clifton <nickc@redhat.com>
2101 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
2104 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2106 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
2107 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
2108 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
2110 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
2111 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
2112 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
2113 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
2114 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
2115 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
2116 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
2117 * tree-core.h (enum built_in_function): In between
2118 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
2119 for builtins that use DEF_BUILTIN_CHKP macro.
2121 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
2124 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
2125 operands for tcc_comparison exprs. Fix typos.
2128 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
2129 of two XORs that have an intervening AND or IOR.
2132 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
2133 simplification of XOR of AND to not allocate new rtx before
2134 committing to a simplification.
2136 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2138 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
2139 manual swaps in all peepholes.
2141 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2143 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
2144 of manual swapping implementation.
2145 (aarch64_expand_vec_perm_const_1): Likewise.
2147 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
2149 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
2150 (generic_addrcost_table): Remove NAMED_PARAM.
2151 (cortexa57_addrcost_table): Likewise.
2152 (xgene1_addrcost_table): Likewise.
2153 (generic_regmove_table): Likewise.
2154 (cortexa53_regmove_table): Likewise.
2155 (xgene1_regmove_table): Likewise.
2156 (generic_vector_table): Likewise.
2157 (cortexa57_vector_table): Likewise.
2158 (xgene1_vector_table): Likewise.
2159 (generic_tunings): Likewise.
2160 (cortexa53_tunings): Likewise.
2161 (cortexa57_tunings): Likewise.
2162 (xgene1_tunings): Likewise.
2164 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2166 * config/arm/arm-cores.def: Add cortex-a72 and
2167 cortex-a72.cortex-a53.
2168 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
2169 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2170 * config/arm/arm-tune.md: Regenerate.
2171 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
2172 "cortex-a72.cortex-a53".
2173 * doc/invoke.texi (ARM Options/-mtune): Likewise.
2175 2015-02-04 Nick Clifton <nickc@redhat.com>
2178 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
2180 (nonimmediate_di_operand): Likewise.
2182 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
2183 prefixes of known F5 using MSP430 MCUs.
2185 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2187 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
2188 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
2189 instead of __builtin_sqrt.
2191 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
2193 * varasm.c (do_assemble_alias): Follow transparent alias
2195 (default_assemble_visibility): Follow transparent alias
2196 chain for decl name.
2198 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2201 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
2202 to compute size of referenced value in the constant case.
2204 2015-02-03 Jakub Jelinek <jakub@redhat.com>
2206 PR rtl-optimization/64756
2207 * cse.c (invalidate_dest): New function.
2208 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
2209 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
2210 invalidate and do not record it.
2212 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
2215 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
2216 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
2217 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
2218 atomic_nand<mode>_soft_tcb): New insns.
2219 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
2220 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
2221 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
2222 Split into atomic_not_fetchsi_hard if operands[0] is unused.
2223 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
2224 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
2225 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
2226 atomic_not<mode>_hard if operands[0] is unused.
2227 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
2228 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
2229 if operands[0] is unused.
2230 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
2231 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
2232 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
2233 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
2235 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
2236 into atomic_not<mode>_soft_tcb if operands[0] is unused.
2237 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
2238 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
2239 if operands[0] is unused.
2240 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
2241 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
2242 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
2243 atomic_nand_fetchsi_hard if operands[0] is unused.
2244 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
2245 atomic_nand<mode>_hard if operands[0] is unused.
2246 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
2247 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
2248 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
2249 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
2250 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
2251 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
2252 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
2253 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
2254 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
2255 atomic_not<mode>_hard if operands[0] is unused.
2256 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
2257 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
2259 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
2260 into atomic_not<mode>_soft_tcb if operands[0] is unused.
2261 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
2262 atomic_nand<mode>_hard if operands[0] is unused.
2263 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
2264 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
2266 2015-02-03 David Malcolm <dmalcolm@redhat.com>
2269 * Makefile.in (GCC_OBJS): Add gcc-main.o.
2270 * gcc-main.c: New file, containing "main" taken from gcc.c.
2271 * gcc.c (do_self_spec): Free decoded_options.
2272 (class driver): Move declaration to gcc.h.
2273 (main): Move declaration and implementation to new file
2275 (driver_get_configure_time_options): New function.
2276 * gcc.h (class driver): Move this declaration here, from
2278 (driver_get_configure_time_options): New declaration.
2280 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
2282 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
2283 cross-module inlining.
2284 * cgraph.h (cgraph_node): Add flag merged.
2285 * ipa-icf.c (sem_function::merge): Maintain it.
2287 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
2289 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
2290 instead of OBJECT_P.
2292 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
2295 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
2296 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
2297 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
2298 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
2300 2015-02-03 Jakub Jelinek <jakub@redhat.com>
2303 * combine.c (reg_n_sets_max): New variable.
2304 (can_change_dest_mode, reg_nonzero_bits_for_combine,
2305 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
2306 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
2307 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
2308 (rest_of_handle_combine): Initialize reg_n_sets_max.
2310 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
2312 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
2313 if some always_inline was inlined, apply changes before inlining
2316 2015-02-02 David Malcolm <dmalcolm@redhat.com>
2319 * config/arm/arm.c (arm_option_override): Set
2320 arm_selected_arch/cpu/tune to NULL on entry.
2322 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
2323 Andrew Pinski <pinskia@gcc.gnu.org>
2324 Jakub Jelinek <jakub@gcc.gnu.org>
2327 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
2328 integer typing for small model. Use IN_RANGE.
2330 2015-02-02 Richard Biener <rguenther@suse.de>
2332 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
2333 * tree-vrp.c (vrp_valueize_1): Likewise.
2335 2015-02-02 Alan Modra <amodra@gmail.com>
2337 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
2338 than mem for toc_restore.
2339 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
2340 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
2341 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
2343 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
2346 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
2347 explicit default options.
2349 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
2352 * ipa-utils.c (ipa_merge_profiles): Add release argument.
2353 * ipa-icf.c (sem_function::merge): Do not release body when merging.
2354 * ipa-utils.h (ipa_merge_profiles): Update prototype.
2356 2015-02-01 Jakub Jelinek <jakub@redhat.com>
2359 * cfgexpand.c (deep_ter_debug_map): New variable.
2360 (avoid_deep_ter_for_debug): New function.
2361 (expand_debug_expr): If TERed SSA_NAME is in
2362 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
2363 instead of trying to expand SSA_NAME's def stmt.
2364 (expand_debug_locations): When expanding debug bind
2365 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
2366 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
2368 (pass_expand::execute): Call avoid_deep_ter_for_debug on
2369 all debug bind stmts. Delete deep_ter_debug_map after
2370 expand_debug_location if non-NULL and clear it.
2372 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
2375 * config/sh/sync.md (atomic_fetch_notsi_hard,
2376 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
2377 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
2378 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
2379 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
2380 atomic_not_fetch<mode>_soft_imask): New insns.
2382 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2384 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
2385 (rank_for_schedule_debug): Split from ...
2386 (rank_for_schedule): ... this.
2387 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
2388 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
2390 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
2392 * doc/md.texi (Machine Constraints): Alphabetize table by target.
2393 * doc/extend.texi (x86 Variable Attributes): Move section to
2394 correct alphabetization after renaming.
2395 (x86 Type Attributes): Likewise.
2396 (Target Builtins): Re-alphabetize menu.
2397 (x86 Built-in Functions): Move section to correct alphabetization
2399 (x86 transactional memory intrinsics): Likewise.
2400 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
2401 and x86 Windows Options in table and menu.
2402 (x86 Options): Move section to correct alphabetization after
2404 (x86 Windows Options): Likewise.
2406 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
2408 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
2409 preferred names of the architecture and its 32- and 64-bit
2411 * doc/invoke.texi: Likewise.
2412 * doc/md.texi: Likewise.
2414 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
2417 * config/i386/predicates.md (address_no_seg_operand): Reject
2418 non-CONST_INT_P operands in invalid mode.
2420 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
2422 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
2423 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
2424 * config/i386/predicates.md (address_no_seg_operand): Call
2425 address_operand with VOIDmode.
2426 (vsib_address_operand): Ditto.
2427 (address_mpx_no_base_operand): Ditto.
2428 (address_mpx_no_index_operand): Ditto.
2430 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
2433 * lra-constraints.c (original_subreg_reg_mode): New.
2434 (simplify_operand_subreg): Try to simplify subreg of const. Use
2435 original_subreg_reg_mode for it.
2436 (swap_operands): Update original_subreg_reg_mode.
2437 (curr_insn_transform): Set up original_subreg_reg_mode.
2439 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
2442 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
2444 (process_alt_operands): Use it.
2445 (curr_insn_transform): Check the optional reload pseudo class is
2448 2015-01-30 Joseph Myers <joseph@codesourcery.com>
2450 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
2451 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
2453 * toplev.h (init_asm_output): Update comment on use of
2454 UNKNOWN_LOCATION with fatal_error.
2455 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
2456 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
2457 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
2458 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
2459 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
2460 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
2461 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
2462 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
2463 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
2464 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
2465 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
2466 fatal_error changed to pass input_location as first argument.
2468 2015-01-30 Martin Liska <mliska@suse.cz>
2470 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
2471 in #pragma GCC diagnostic guards.
2473 2015-01-30 Richard Biener <rguenther@suse.de>
2475 PR tree-optimization/64829
2476 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
2477 not add a widening conversion pattern but hand off extra
2478 widenings to callers.
2479 (vect_recog_widen_mult_pattern): Handle extra widening produced
2480 by vect_handle_widen_op_by_const.
2481 (vect_recog_widen_shift_pattern): Likewise.
2482 (vect_pattern_recog_1): Remove excess vertical space in dumping.
2483 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2484 (vect_init_vector_1): Likewise.
2485 (vect_get_vec_def_for_operand): Likewise.
2486 (vect_finish_stmt_generation): Likewise.
2487 (vectorizable_load): Likewise.
2488 (vect_analyze_stmt): Likewise.
2489 (vect_is_simple_use): Likewise.
2491 2015-01-29 Jeff Law <law@redhat.com>
2493 * combine.c (try_combine): Fix typo in comment.
2495 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
2498 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
2499 (rs6000_stack_info): Add assert.
2500 (rs6000_output_savres_externs): New function, split off from...
2501 (rs6000_output_function_prologue): ... here. Do not call it for
2504 2015-01-29 Jeff Law <law@redhat.com>
2507 * combine.c (try_combine): If I0 is a memory load and I3 a store
2508 to a related address, increase the "goodness" of doing a 4-insn
2509 combination with I0-I3.
2510 (make_field_assignment): Handle SUBREGs in the ior+and case.
2512 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
2514 PR tree-optimization/64746
2515 * tree-if-conv.c (mask_exists): New function.
2516 (predicate_mem_writes): Save created mask with given size for further
2518 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
2519 (ifcvt_repair_bool_pattern): Collect all statements that are root
2520 of bool pattern and use iterative algorithm to remove multiple uses
2521 of predicates, display number of required iterations.
2523 2015-01-29 Richard Biener <rguenther@suse.de>
2525 PR tree-optimization/64853
2526 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
2527 stmt will get simulated again.
2528 * tree-ssa-ccp.c (valueize_op_1): Likewise.
2530 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2532 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
2533 return_in_pc. Remove redundant assignments.
2534 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
2535 (arm_expand_epilogue): Don't compare boolean with true in if condition.
2537 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
2539 * config/i386/i386.c (ix86_mode_after): Make static.
2541 2015-01-29 Richard Biener <rguenther@suse.de>
2543 PR tree-optimization/64844
2544 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
2545 dump cost model analysis.
2546 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2547 Do not register adjusted load/store costs here.
2549 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
2550 Uros Bizjak <ubizjak@gmail.com>
2552 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
2553 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
2554 using x86_use_pseudo_pic_reg.
2555 * config/i386/i386.c (ix86_conditional_register_usage): Remove
2556 support for fixed PIC register.
2557 (ix86_use_pseudo_pic_reg): Not static any more.
2559 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
2562 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
2563 to avoid error in cgraph node verification.
2565 2015-01-29 Marek Polacek <polacek@redhat.com>
2567 * doc/standards.texi: Reflect that the default for C is gnu11.
2569 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
2572 * reorg.c (switch_text_sections_between_p): New function.
2573 (relax_delay_slots): Call it when testing if the jump insn
2574 is removable. Use targetm.can_follow_jump when testing if
2575 the conditional branch can follow an unconditional jump.
2577 2015-01-27 Caroline Tice <cmtice@google.com>
2579 Committing VTV Cywin/Ming patch for Patrick Wollgast
2580 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
2581 if -fvtable-verify=preinit/std is used.
2582 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
2583 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
2584 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
2585 if -fvtable-verify=preinit/std is used.
2586 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
2587 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
2588 if -fvtable-verify=preinit/std is used.
2589 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
2590 * config/i386/mingw32.h (LIB_SPEC): Likewise.
2591 * varasm.c (assemble_variable): Add code to properly set the comdat
2592 section and name for the .vtable_map_vars section in case the
2593 target is PE or COFF.
2595 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
2598 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
2599 make sane BB profile.
2600 (cgraph_node::expand_thunk): Make sane BB profile.
2601 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
2602 * cgraph.h (init_lowered_empty_function): Update prototype.
2603 * config/i386/i386.c (make_resolver_func): Update call.
2604 * predict.c (gate): Disable branch prediction pass if
2605 profile is already there.
2607 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
2609 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
2610 * opth-gen.awk: Likewise.
2611 * common.opt: Mark flag_fp_contract_mode as Optimization.
2613 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
2615 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
2616 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
2618 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
2621 * config/sh/predicates.md (atomic_arith_operand,
2622 atomic_logical_operand): Remove.
2623 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
2624 (atomic_arith_operand_0): New predicate.
2625 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
2626 Use atomic_arith_operand_0 for input values.
2627 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
2628 atomic_compare_and_swap<mode>_soft_gusa,
2629 atomic_compare_and_swap<mode>_soft_tcb,
2630 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
2631 arith_reg_operand instead of register_operand.
2632 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
2633 atomic_arith_operand_0 for newval input.
2634 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2635 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
2636 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
2637 arith_reg_operand instead of register_operand.
2638 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
2639 fetchop_predicate_1, fetchop_constraint_1_llcs,
2640 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
2641 fetchop_constraint_1_imask): New code iterator attributes.
2642 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
2643 register_operand. Use fetchop_predicate_1.
2644 (atomic_fetch_<fetchop_name>si_hard,
2645 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
2646 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
2647 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
2648 and arith_reg_operand instead of register_operand. Use
2649 fetchop_predicate_1, fetchop_constraint_1_gusa.
2650 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
2651 and arith_reg_operand instead of register_operand. Use
2652 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
2654 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
2655 and arith_reg_operand instead of register_operand. Use
2656 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
2658 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
2659 register_operand. Use atomic_logical_operand_1.
2660 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
2661 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
2662 arith_reg_operand instead of register_operand.
2663 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
2664 Use arith_reg_dest and arith_reg_operand instead of register_operand.
2665 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
2666 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
2667 register_operand. Use fetchop_predicate_1.
2668 (atomic_<fetchop_name>_fetchsi_hard,
2669 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
2670 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2671 fetchop_constraint_1_llcs.
2672 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
2673 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2674 fetchop_constraint_1_gusa.
2675 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
2676 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2677 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
2678 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
2679 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2680 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
2681 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
2682 register_operand. Use atomic_logical_operand_1.
2683 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
2684 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
2685 arith_reg_operand instead of register_operand.
2686 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
2687 arith_reg_operand instead of register_operand. Use logical_operand
2688 and K08. Adjust asm sequence to allow R0 usage.
2689 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
2690 arith_reg_operand instead of register_operand. Use logical_operand
2693 2015-01-28 Jakub Jelinek <jakub@redhat.com>
2696 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
2697 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
2698 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
2699 only get_full_len HOST_WIDE_INTs from get_val () array rather than
2700 all bits in *val_wide.
2702 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
2704 * varpool.c (tls_model_names): Fix names.
2705 (varpool_node::dump): Dump tls- prefix for tls models.
2707 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
2708 Bernd Schmidt <bernds@codesourcery.com>
2709 Nathan Sidwell <nathan@codesourcery.com>
2711 * config/nvptx/mkoffload.c: New file.
2712 * config/nvptx/t-nvptx: Add build rules for it.
2713 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
2714 (extra_programs): Add mkoffload.
2715 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
2717 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
2719 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
2722 * cfgexpand.c (reorder_operands): Skip debug gimples.
2724 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
2726 PR tree-optimization/64277
2727 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
2728 range info when possible to refine estimation.
2730 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2732 PR tree-optimization/64718
2733 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
2734 be a 16bit unsigned integer when n->range is 16.
2735 (bswap_replace): Convert src to that type if necessary for all bswap
2736 sizes. Fix rotation right notation in nearby comment. Use bswap_type
2737 set in pass_optimize_bswap::execute ().
2739 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
2741 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
2742 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
2743 integer and floating point variants.
2744 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
2746 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
2748 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
2749 for all vector modes.
2751 2015-01-28 Jakub Jelinek <jakub@redhat.com>
2754 * doc/sourcebuild.texi (comdat_group): Document.
2756 2015-01-28 Terry Guo <terry.guo@arm.com>
2758 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
2760 2015-01-27 David Malcolm <dmalcolm@redhat.com>
2762 * toplev.c (print_version): Add param "show_global_state", and
2763 only print GGC and plugin information if it is true.
2764 (init_asm_output): Pass in "true" for the new param when calling
2766 (process_options): Likewise.
2767 (toplev::main): Likewise.
2768 * toplev.h (print_version): Add new param to decl.
2770 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
2774 * tree.c (lookup_binfo_at_offset): New function.
2775 (get_binfo_at_offset): Use it.
2777 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
2780 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
2781 on vtable being vtable.
2783 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2785 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
2786 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
2788 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
2789 -mno-hotpatch options. Change syntax of -mhotpatch= option.
2790 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
2792 (s390_hotpatch_trampoline_halfwords_max): Renamed.
2793 (s390_hotpatch_hw_max): New name.
2794 (s390_hotpatch_trampoline_halfwords): Renamed.
2795 (s390_hotpatch_hw_before_label): New name.
2796 (get_hotpatch_attribute): Removed.
2797 (s390_hotpatch_hw_after_label): New name.
2798 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
2800 (s390_attribute_table): Ditto.
2801 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
2802 (s390_function_num_hotpatch_hw): New name.
2803 Remove special handling of inline functions and hotpatching.
2804 Return number of nops before and after the function label.
2805 (s390_can_inline_p): Removed.
2806 (s390_asm_output_function_label): Emit a configurable number of nops
2807 after the function label.
2808 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
2809 (TARGET_CAN_INLINE_P) Removed.
2810 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
2812 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2813 Jiong Wang <jiong.wang@arm.com>
2815 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
2817 (cb<optab><mode>1): Likewise.
2818 * config/aarch64/iterators.md (bcond): New define_code_attr.
2820 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2822 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
2825 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2827 * config/s390/s390.c (s390_register_move_cost): Increase costs for
2830 2015-01-27 Richard Biener <rguenther@suse.de>
2832 * tree-vrp.c (update_value_range): Intersect the range with
2833 old recorded SSA name range information.
2835 2015-01-27 Nick Clifton <nickc@redhat.com>
2837 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
2838 BC, DE and HL registers directly, not via AX.
2839 When decrementing the stack pointer by a large amount, transfer SP
2840 into AX and perform the subtraction there.
2841 (rl78_expand_epilogue): Perform the inverse of the above
2844 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2846 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
2848 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2849 Yury Gribov <y.gribov@samsung.com>
2852 * ubsan.c (ubsan_source_location): Refactor code.
2853 (ubsan_type_descriptor): Update type size. Refactor code.
2855 2015-01-27 Richard Biener <rguenther@suse.de>
2857 PR tree-optimization/56273
2858 PR tree-optimization/59124
2859 PR tree-optimization/64277
2860 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
2861 from the first VRP pass.
2863 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2866 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
2867 handle the first argument in the same loop as all the other arguments.
2869 PR rtl-optimization/61058
2870 * jump.c (cleanup_barriers): Update basic block boundaries
2871 if BLOCK_FOR_INSN is non-NULL on PREV.
2873 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
2875 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
2876 bounds narrowing, already instrumented calls and calls to
2877 not instrumentable functions.
2879 2015-01-27 Jakub Jelinek <jakub@redhat.com>
2881 PR tree-optimization/64807
2882 * wide-int.cc (wi::divmod_internal): Clear
2883 b_dividend[dividend_blocks_needed].
2885 2015-01-26 DJ Delorie <dj@redhat.com>
2887 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
2888 volatile memory references.
2890 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
2893 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
2895 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
2896 shifts if it already fits into K08.
2898 2015-01-26 Jakub Jelinek <jakub@redhat.com>
2901 * ipa-inline.c (inline_small_functions): Print "unknown" even
2902 if edge->call_stmt is non-NULL, but has builtins or unknown
2906 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
2907 with asterisk, skip the first character.
2909 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2912 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
2915 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
2918 * config/i386/i386.md (*movdi_internal): Also check operand 0
2919 to determine TYPE_LEA operand.
2920 (*movsi_internal): Ditto.
2922 2015-01-26 Jakub Jelinek <jakub@redhat.com>
2924 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
2925 OPTION_MASK_QUAD_MEMORY_ATOMIC.
2927 2015-01-26 Renlin Li <renlin.li@arm.com>
2929 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
2931 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
2934 2015-01-26 Richard Biener <rguenther@suse.de>
2937 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
2938 combining two BIT_AND_EXPR predicates.
2940 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
2943 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
2945 2015-01-26 Terry Guo <terry.guo@arm.com>
2947 * config/arm/arm.c (arm_file_start): Update the assignment of
2950 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
2952 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
2954 config/arm/arm.md: Include the new Cortex-A57 model.
2955 (generic_sched): Don't use generic_sched when tuning for
2958 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
2959 Uros Bizjak <ubizjak@gmail.com>
2961 * config/i386/i386.c (get_builtin_code_for_version): Add
2962 support for BMI and BMI2 multiversion functions.
2964 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2966 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
2967 (extract_bit_field): Likewise.
2968 (extract_low_bits): Likewise.
2969 (expand_mult): Likewise.
2970 (expand_mult_highpart_adjust): Likewise.
2972 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
2974 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
2975 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
2976 * config/i386/i386.c (processor_model): Add
2977 M_INTEL_COREI7_BROADWELL.
2978 (arch_names_table): Add "broadwell".
2980 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
2989 * config/sh/sh-protos.h
2990 (sh_extending_set_of_reg::can_use_as_unextended_reg,
2991 sh_extending_set_of_reg::use_as_unextended_reg,
2992 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
2993 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
2994 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
2995 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
2996 (sh_treg_insns): New class.
2997 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
2998 (scope_counter): New class.
2999 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
3000 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
3001 sh_extending_set_of_reg::can_use_as_unextended_reg,
3002 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
3003 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
3004 sh_split_treg_set_expr): New functions.
3005 (addsubcosts): Handle treg_set_expr.
3006 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
3007 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
3008 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
3009 (sh_insn_operands_modified_between_p): Make non-static.
3010 * config/sh/predicates.md (zero_extend_movu_operand): Allow
3011 simple_mem_operand in addition to displacement_mem_operand.
3012 (zero_extend_operand): Don't allow zero_extend_movu_operand.
3013 (treg_set_expr, treg_set_expr_not_const01,
3014 arith_reg_or_treg_set_expr): New predicates.
3015 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
3016 arith_or_int_operand instead of logical_operand. Convert to
3017 insn_and_split. Try to optimize constant operand in splitter.
3018 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
3019 (*tstqi_t_zero): Delete.
3020 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
3021 (tstsi_t_and_not): Delete.
3022 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
3023 Convert to insn_and_split.
3024 (unnamed split, tstsi_t_zero_extract_xor,
3025 tstsi_t_zero_extract_subreg_xor_little,
3026 tstsi_t_zero_extract_subreg_xor_big): Delete.
3027 (*tstsi_t_shift_mask): New insn_and_split.
3028 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
3029 to recombine with surrounding insns when splitting.
3030 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
3031 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
3032 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
3033 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
3034 (*cbranch_div0s: Delete.
3035 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
3036 Try to recombine with surrounding insns when splitting. Add operand
3038 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
3039 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
3040 *addc_r_r_msb, *addc_2r_msb): Delete.
3041 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
3043 (*addc_negreg_t): New insn_and_split.
3044 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
3045 Try to recombine with surrounding insns when splitting.
3046 Add operand order variants.
3047 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
3048 insn_and_split patterns.
3049 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
3050 surrounding insns when splitting.
3051 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
3052 (*rotcl): Likewise. Add zero_extract variant.
3053 (*ashrsi2_31): New insn_and_split.
3054 (*negc): Convert to insn_and_split. Use treg_set_expr.
3055 (*zero_extend<mode>si2_disp_mem): Update comment.
3056 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
3058 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
3059 with surrounding insns when splitting.
3060 (any_treg_expr_to_reg): New insn_and_split.
3061 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
3062 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
3063 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
3064 *zero_extract_2): New single bit zero extract patterns.
3065 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
3066 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
3067 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
3068 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
3070 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
3071 register_operand for set source.
3073 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
3075 * i386.opt (prefetch_sse): New targetsave.
3076 * i386.c (ix86_function_specific_save): Save prefetch_sse.
3077 (ix86_function_specific_restore): Restore prefetch_sse and initialize
3078 ix86_cost/ix86_tune_cost.
3080 2015-01-23 David Malcolm <dmalcolm@redhat.com>
3082 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3083 Support the JIT by using 0 as the language type.
3085 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
3088 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
3089 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
3090 (mark_regno_live, process_bb_lives): Pass new parameter value to
3091 make_hard_regno_born.
3093 2015-01-23 Jakub Jelinek <jakub@redhat.com>
3095 PR rtl-optimization/63637
3096 PR rtl-optimization/60663
3097 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
3098 if elt->cost is MAX_COST for ASM_OPERANDS.
3099 (find_sets_in_insn): Fix up comment typo.
3100 (cse_insn): Don't set src_volatile for all non-volatile
3101 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
3102 or with "memory" clobber. Set elt->cost to MAX_COST
3103 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
3104 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
3106 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
3108 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
3111 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
3113 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
3114 libgcc/config/i386/elf-lib.h.
3116 2015-01-23 Jakub Jelinek <jakub@redhat.com>
3119 * gcc.c (print_configuration): Don't print a blank line at the end
3121 (run_attempt): ... but here unstead.
3124 * omp-low.c (scan_sharing_clauses): Don't ignore
3125 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
3126 on target data/update constructs.
3128 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3131 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
3132 (DEBUG_RELOAD): Removed define.
3133 (m32c_limit_reload_class): Enable traces with if DEBUG0.
3134 (m32c_function_arg): Added a type cast.
3135 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
3136 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
3137 * config/m32c/bitops.md (andqi3_16): Likewise.
3138 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
3139 (push_a01_l): Likewise.
3141 2015-01-23 David Malcolm <dmalcolm@redhat.com>
3144 * main.c (main): Construct toplev instances with init_signals=true.
3145 * toplev.c (general_init): Add param "init_signals", and use it to
3146 conditionalize the calls to signal and host_hooks.extra_signals.
3147 (toplev::toplev): Add param "init_signals".
3148 (toplev::main): When invoking general_init, pass m_init_signals
3149 to control whether signal-handlers are installed.
3150 * toplev.h (toplev::toplev): Add param "init_signals".
3151 (toplev::m_init_signals): New field.
3153 2015-01-23 David Malcolm <dmalcolm@redhat.com>
3156 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
3157 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
3158 latter may be affected by the former (e.g. on i686).
3160 2015-01-23 Martin Liska <mliska@suse.cz>
3162 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
3163 false positive during profiledbootstrap.
3165 2015-01-23 Tom de Vries <tom@codesourcery.com>
3168 * lto-opts.c (lto_write_options): Output non-explicit conservative
3170 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
3171 (append_compiler_options): Pass -fopenacc through.
3173 2015-01-23 Tom de Vries <tom@codesourcery.com>
3176 * lto-opts.c (lto_write_options): Output non-explicit conservative
3178 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
3179 (append_compiler_options): Pass -fopenmp through.
3181 2015-01-23 Jakub Jelinek <jakub@redhat.com>
3184 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
3187 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
3188 * diagnostic.def (DK_ICE_NOBT): New kind.
3189 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
3190 like DK_ICE, but never print backtrace.
3191 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
3192 (internal_error_no_backtrace): New function.
3193 * gcc.c (execute): Use internal_error_no_backtrace instead of
3196 2015-01-22 Jeff Law <law@redhat.com>
3199 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
3200 improve code density for small immediate to memory case.
3201 (insv): Better handle bitfield assignments when the field is
3202 being set to all ones.
3203 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
3206 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3207 Jakub Jelinek <jakub@redhat.com>
3209 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
3210 for !TARGET_LIBC_PROVIDES_SSP version and
3211 -fstack-protector-{all,strong,explicit} otherwise.
3212 * config/freebsd.h (LINK_SSP_SPEC): Handle
3213 -fstack-protector-{strong,explicit}.
3215 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
3216 H.J. Lu <hongjiu.lu@intel.com>
3219 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
3222 2015-01-22 Wei Mi <wmi@google.com>
3224 PR rtl-optimization/64557
3225 * dse.c (record_store): Call get_addr for mem_addr.
3226 (check_mem_read_rtx): Likewise.
3228 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
3230 * fold-const.c (const_binop): Add early return for non-tcc_binary.
3232 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3234 * toplev.c (init_local_tick): Process the failure when read
3235 fails for random_seed.
3237 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
3238 'pretty_name' to avoid memory overflow.
3240 2015-01-22 Richard Biener <rguenther@suse.de>
3243 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
3244 abnormal coalescing on undefined SSA names.
3246 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
3250 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
3252 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
3254 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
3257 * fold-const.c (fold_checksum_tree): Don't include value of
3258 expr->decl_with_vis.symtab_node in the checksum.
3260 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3262 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
3264 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
3267 * gcc.c (insert_comments): New function.
3268 (try_generate_repro): Call it.
3269 (append_text): Removed.
3271 2015-01-22 Richard Biener <rguenther@suse.de>
3273 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
3274 with IL incompatible options. Properly honor user optimize
3277 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
3279 PR rtl-optimization/64682
3280 * combine.c (distribute_notes): When moving a death note for
3281 a register that is set in the new I2, make sure to put it
3284 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
3286 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
3289 2015-01-21 Jakub Jelinek <jakub@redhat.com>
3292 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
3293 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
3294 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
3297 * doc/invoke.texi (-fsanitize=vptr): Document.
3299 PR rtl-optimization/62078
3300 * dse.c: Include cfgcleanup.h.
3301 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
3302 anything call purge_all_dead_edges and cleanup_cfg at the end
3305 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
3307 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
3310 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3312 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
3315 2015-01-21 David Sherwood <david.sherwood@arm.com>
3316 Tejas Belagod <Tejas.Belagod@arm.com>
3318 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
3319 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
3320 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
3323 2015-01-21 David Sherwood <david.sherwood@arm.com>
3324 Tejas Belagod <Tejas.Belagod@arm.com>
3326 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
3327 (aarch64_reverse_mask): New decls.
3328 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
3329 (insn_count): New mode_attr.
3330 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
3331 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
3332 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
3333 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
3334 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
3335 (aarch64_simd_st4): New patterns.
3336 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
3337 (aarch64_reverse_mask): New functions.
3339 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
3341 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
3343 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
3344 addressing modes for BE.
3345 (aarch64_print_operand): Add 'R' specifier.
3346 (aarch64_simd_disambiguate_copy): Delete.
3347 (aarch64_simd_emit_reg_reg_move): New function.
3348 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
3349 in define_splits for structural moves.
3350 (mov<mode>): Use less restrictive predicates.
3351 (*aarch64_mov<mode>): Simplify and only allow for LE.
3352 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
3354 2015-01-21 Alan Hayward <alan.hayward@arm.com>
3356 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
3358 2015-01-21 Richard Henderson <rth@redhat.com>
3361 * ccmp.c (used_in_cond_stmt_p): Remove.
3362 (expand_ccmp_expr): Don't use it.
3364 2015-01-21 Nick Clifton <nickc@redhat.com>
3366 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
3369 2015-01-21 Richard Biener <rguenther@suse.de>
3372 * tree-core.h (builtin_info, builtin_info_type): Turn from
3373 an object with two arrays into an array of an object with
3374 decl and two flags, implicit_p and declared_p.
3375 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
3376 set_builtin_decl, set_builtin_decl_implicit_p,
3377 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
3378 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
3379 * builtins.c (builtin_info): Adjust.
3380 * gimplify.c (gimplify_addr_expr): References to builtins
3381 that have been declared by the user makes them eligible for
3382 use by the compiler. Call set_builtin_decl_implicit_p on them.
3384 2015-01-20 Jeff Law <law@redhat.com>
3387 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
3388 allow pc-relative addresses in operand predicates or constraints.
3390 2015-01-21 Bin Cheng <bin.cheng@arm.com>
3392 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
3393 neon on aarch32 processors for stringops.
3395 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3398 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
3400 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3403 * ipa-inline.c: Include lto-streamer.h
3404 (report_inline_failed_reason): Output source file differences and
3405 flags on optimization/target node mismatch.
3406 (can_inline_edge_p): Consider caller to be the outer inline function;
3407 be less restrictive about matching opimize and optimize_size attributes.
3408 (inline_account_function_p): Break out from ...
3409 (inline_small_functions): ... here.
3410 * ipa-inline-transform.c (clone_inlined_nodes): Use
3411 inline_account_function_p.
3412 (inline_call): Use optimize attribution; use inline_account_function_p.
3413 (inline_transform): Use opt_for_fn.
3414 * ipa-inline.h (inline_account_function_p): Declare.
3416 2015-01-20 Jakub Jelinek <jakub@redhat.com>
3419 * dwarf2out.c (decl_piece_node): Don't put bitsize into
3420 mode if bitsize <= 0.
3421 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
3422 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
3423 sizes and positions.
3425 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
3427 * config/nios2/nios2.c (nios2_asm_file_end): Implement
3428 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
3430 (TARGET_ASM_FILE_END): Define.
3432 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3434 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
3435 (struct tune_params): Use the enum.
3436 * arm.c (arm_*_tune): Update.
3437 (arm_option_override): Update.
3439 2015-01-20 Richard Biener <rguenther@suse.de>
3442 * ipa-reference.c (add_static_var): Inline ...
3443 (analyze_function): ... here after splitting out from ...
3444 (is_proper_for_analysis): ... this.
3446 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
3449 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
3450 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
3451 replace the conditional with it's true branch.
3452 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
3453 (arm_lra_p): Remove.
3455 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
3457 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
3459 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3461 * config/tilegx/mul-tables.c: Move symtab.h include after
3462 coretypes.h include.
3463 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
3464 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
3465 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
3466 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
3467 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3469 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
3473 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
3475 PR rtl-optimization/64081
3476 * loop-iv.c (def_pred_latch_p): New function.
3477 (latch_dominating_def): Allow specific cases with non-single
3479 (iv_get_reaching_def): Likewise.
3480 (check_complex_exit_p): New function.
3481 (check_simple_exit): Use check_complex_exit_p to allow certain cases
3482 with exits not executing on any iteration.
3484 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3487 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
3490 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3493 * i386.c (gate): Check flag_expensive_optimizations and
3495 (ix86_option_override_internal): Drop optimize_size condition
3496 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
3497 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
3499 (ix86_avx256_split_vector_move_misalign,
3500 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
3501 * sse.md (all uses of TARGET_PREFER_AVX128): Add
3502 optimize_insn_for_speed_p check.
3504 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
3506 * config/mips/mips.h (FP_ASM_SPEC): New define.
3507 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
3510 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
3513 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
3514 nullptr for insn when reaching the first insn.
3515 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
3516 (sh_insn_operands_modified_between_p): Add nullptr check.
3517 (sh_find_extending_set_of_reg): Fix log message. Don't accept
3518 sign extending mem load if the insn contains any UNSPEC or
3521 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3523 * params.def (inline-unit-growth): Drop to 15%.
3524 * invoke.texi (inline-unit-growth): Document change.
3526 2015-01-19 Martin Liska <mliska@suse.cz>
3529 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
3530 function for second argument of OBJ_TYPE_REF.
3532 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3535 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
3536 whether function is an alias.
3538 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3540 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
3543 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
3545 PR rtl-optimization/64671
3546 * lra-remat.c (operand_to_remat): Don't consider jump and call
3549 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
3551 * config/rs6000/default64.h: Include rs6000-cpus.def.
3552 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
3553 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
3554 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
3556 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
3558 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
3559 pseudo-op to specify assembler dialect.
3561 2015-01-19 Martin Liska <mliska@suse.cz>
3564 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
3565 Handle safe potentially removed nodes during filtering.
3567 2015-01-19 Martin Liska <mliska@suse.cz>
3569 * doc/extend.texi (no_icf): Add new attribute description.
3570 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
3571 where the pass attempts to merge a function with no_icf attribute.
3573 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3576 * doc/md.texi (ARM Options): Document register constraints.
3578 2015-01-19 Jiong Wang <jiong.wang@arm.com>
3579 Andrew Pinski <apinski@cavium.com>
3582 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
3583 (ashl<mode>3): Don't expand if operands[2] is not constant.
3585 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3588 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
3589 Match xor-and-xor RTL pattern.
3591 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
3593 PR rtl-optimization/64081
3594 * loop-iv.c (def_pred_latch_p): New function.
3595 (latch_dominating_def): Allow specific cases with non-single
3597 (iv_get_reaching_def): Likewise.
3598 (check_complex_exit_p): New function.
3599 (check_simple_exit): Use check_complex_exit_p to allow certain cases
3600 with exits not executing on any iteration.
3602 2015-01-19 Jakub Jelinek <jakub@redhat.com>
3604 * common.opt (fgraphite): Fix a typo.
3606 2015-01-19 Felix Yang <felix.yang@huawei.com>
3608 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
3610 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
3611 uminp, smax_nanp, smin_nanp): New builtins.
3612 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
3613 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
3614 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
3615 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
3616 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
3617 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
3618 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
3619 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
3620 vpminnms_f32): Rewrite using builtin functions.
3622 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
3625 * omp-low.c (offload_symbol_decl): Remove variable.
3626 (get_offload_symbol_decl): Remove function.
3627 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
3628 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
3629 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
3630 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
3631 BUILT_IN_GOACC_UPDATE don't pass it at all.
3633 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
3635 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
3638 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
3640 * ipa-chkp.c (chkp_produce_thunks): Add early param
3641 to split thunks production into two passes. Keep
3642 'always_inline' function bodies after the first pass.
3643 (pass_data_ipa_chkp_early_produce_thunks): New.
3644 (pass_ipa_chkp_early_produce_thunks): New.
3645 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
3646 chkp_produce_thunks signature.
3647 (make_pass_ipa_chkp_early_produce_thunks): New.
3648 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
3649 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
3650 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
3652 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3654 * cgraph.c (cgraph_node::dump): Dump profile flags.
3656 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
3659 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
3660 reg appear first in the parallel.
3662 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3664 * ipa-reference.c (set_reference_optimization_summary,
3665 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
3667 (ignore_module_statics): New static var.
3668 (propagate_bits): If ipa-reference is disabled, do not look into local
3670 (analyze_function): Disable analysis when ipa_reference is disabled.
3671 (generate_summary): Do not dump when reference is disabled;
3672 collect vars accessed from functions with ipa-reference disabled.
3673 (get_read_write_all_from_node): When ipa-reference is disabled, use the
3675 (gate): Enable for LTO.
3676 (ignore_edge_p): New function.
3677 (propagate): Skip functions w/o ipa-reference analysis.
3678 * optc-save-gen.awk: Handle optimize_debug correctly.
3679 * opth-gen.awk: Likewise.
3680 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
3681 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
3682 fira-share-save-slots, fira-share-spill-slots,
3683 fmodulo-sched-allow-regmoves, fpartial-inlining,
3684 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
3685 ftracer, ftree-parallelize-loops, fassociative-math,
3686 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
3688 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
3689 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
3691 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
3694 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3697 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
3699 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
3701 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
3703 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
3704 Remove duplicate option listings.
3706 2015-01-18 Felix Yang <felix.yang@huawei.com>
3708 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
3709 (autofdo_source_profile::get_callsite_total_count,
3710 function_instance::get_function_instance_by_decl,
3711 string_table::get_index, string_table::get_index_by_decl,
3712 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
3713 Fix comment typos. Reformatting and minor code rearrangement.
3715 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3717 * config/rs6000/rs6000.md (probe_stack): Delete.
3718 (probe_stack_address): New.
3720 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3722 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
3723 to test for 32-bit ABIs, not !TARGET_POWERPC64.
3725 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3727 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
3728 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
3729 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
3731 (rs6000_libcall_value): Use the new function.
3733 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
3735 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
3737 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
3739 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
3740 implement a more precise life analysis for it during backward scan.
3742 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3744 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
3746 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
3748 PR rtl-optimization/52773
3749 * calls.c (emit_library_call_value): When pushing arguments use
3750 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
3751 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
3752 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
3754 2015-01-17 Jeff Law <law@redhat.com>
3756 PR rtl-optimization/32790
3757 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
3758 not ZERO_EXTEND in SET_DESTs.
3760 2015-01-17 Alan Modra <amodra@gmail.com>
3762 * cprop.c (do_local_cprop): Revert last change.
3764 2015-01-16 DJ Delorie <dj@redhat.com>
3765 Nick Clifton <nickc@redhat.com>
3767 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
3768 (addhi3_real): Likewise. Fix [HL+0] syntax.
3769 (subqi3_real): Likewise.
3770 (subhi3_real): Likewise.
3771 (cbranchqi4_real): Likewise. Allow saddr,#imm.
3772 (cbranchhi4_real): Likewise.
3773 (cbranchhi4_real_inverted): Likewise.
3774 (cbranchsi4_real_lt): Likewise.
3775 (cbranchsi4_real_ge): Likewise.
3776 (cbranchsi4_real_ge): Likewise.
3777 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
3778 (sub<mode>3_virt): Likewise.
3779 (cbranchqi4_virt): Likewise.
3780 (cbranchhi4_virt): Likewise.
3781 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
3782 always use '[reg+imm]' even when imm is zero.
3783 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
3784 (rl78_general_operand): New.
3785 (rl78_nonimmediate_operand): New.
3786 (rl78_nonfar_operand): Use them.
3787 (rl78_nonfar_nonimm_operand): Likewise.
3788 (rl78_stack_based_mem): Fix.
3789 * config/rl78/constraints.md (Ibqi): New.
3794 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
3797 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
3799 * config/rl78/constrains (Qs8): New constraint.
3800 * config/rl78/rl78.c (rl78_flags_already_set): New function.
3801 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
3802 * config/rl78/rl78-real.md (update_Z): New attribute.
3803 Update patterns to set it.
3804 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
3805 shorter compare and branch sequence can be used.
3806 (cbranchhi4_real): Likewise.
3807 (cbranchhi4_real_inverted): Likewise.
3809 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
3810 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
3812 * config/rl78/rl78.c (rl78_get_name_encoding): New.
3813 (rl78_option_override): Allow -mes0 only if C.
3814 (characterize_address): Support subregs of symbol_refs.
3815 (rl78_addr_space_address_mode): Move. Add __near.
3816 (rl78_far_p): Likewise.
3817 (rl78_addr_space_pointer_mode): Likewise.
3818 (rl78_as_legitimate_address): Likewise.
3819 (rl78_addr_space_subset_p): Likewise.
3820 (rl78_addr_space_convert): Likewise.
3821 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
3823 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
3825 (rl78_alloc_physical_registers_op1): Change logic to prefer
3826 symbol[BC] addressing.
3827 (frodata_section): New.
3828 (rl78_asm_init_sections): Initialize it.
3829 (rl78_select_section): Put __far readonly symbols in .frodata.
3830 (rl78_make_type_far): New.
3831 (rl78_insert_attributes): Force all readonly symbols to be
3833 (rl78_asm_out_integer): New.
3834 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
3835 * config/rl78/rl78.opt (-mes0): New.
3837 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
3838 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3839 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3840 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
3841 (rl78_saddr_p): New.
3842 (rl78_output_aligned_common): New.
3843 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
3844 (rl78_handle_saddr_attribute): New.
3845 (rl78_handle_naked_attribute): New.
3846 (rl78_attribute_table): Add saddr.
3847 (rl78_print_operand_1): Don't print '!' on saddr operands.
3848 (rl78_print_operand_1): Strip encodings.
3850 (rl78_strip_name_encoding): New.
3851 (rl78_attrlist_to_encoding): New.
3852 (rl78_encode_section_info): New.
3853 (rl78_asm_init_sections): New.
3854 (rl78_select_section): New.
3855 (rl78_output_labelref): New.
3856 (rl78_output_aligned_common): New.
3857 (rl78_asm_out_integer): New.
3858 (rl78_asm_ctor_dtor): New.
3859 (rl78_asm_constructor): New.
3860 (rl78_asm_destructor): New.
3862 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
3863 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
3864 (transcode_memory_rtx): Update.
3865 (rl78_expand_epilogue): Use A_REG instead of 0.
3867 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3869 * config/arm/arm-protos.h (struct tune_params): New field
3870 sched_autopref_queue_depth.
3871 * config/arm/arm.c (sched-int.h): Include header.
3872 (arm_first_cycle_multipass_dfa_lookahead_guard,)
3873 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
3874 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
3875 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
3876 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
3877 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
3878 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
3879 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
3880 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
3881 * config/arm/t-arm (arm.o): Update.
3882 * haifa-sched.c (update_insn_after_change): Update.
3883 (rank_for_schedule): Use auto-prefetcher model, if requested.
3884 (autopref_multipass_init): New static function.
3885 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
3886 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
3887 variable for debug dumps.
3888 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
3889 (autopref_multipass_dfa_lookahead_guard): New global function that
3890 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
3891 (init_h_i_d): Update.
3892 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
3893 * sched-int.h (enum autopref_multipass_data_status): New const enum.
3894 (autopref_multipass_data_): Structure for auto-prefetcher data.
3895 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
3896 (struct _haifa_insn_data:autopref_multipass_data): New field.
3897 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
3898 (autopref_multipass_dfa_lookahead_guard): Declare.
3900 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3902 * rtlanal.c (get_base_term): Handle SCRATCH.
3904 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3906 * config/aarch64/aarch64.c
3907 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
3908 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3910 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
3911 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3913 2015-01-17 Alan Modra <amodra@gmail.com>
3915 * cprop.c (do_local_cprop): Disallow replacement of fixed
3918 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3921 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
3924 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
3926 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
3927 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
3929 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3931 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
3932 * config/arm/thumb1.md: ... Here.
3934 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3936 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
3937 TImode for TARGET_32BIT.
3939 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3941 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
3942 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
3944 (rs6000_abi_word_mode): New function.
3946 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3948 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
3949 instead of UNITS_PER_WORD to describe the size of stack slots.
3951 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3953 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
3954 as rs6000_promote_function_mode. Move comment to there.
3955 (rs6000_promote_function_mode): New function.
3957 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
3959 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
3960 -mpowerpc64 is active.
3962 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
3965 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
3968 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
3970 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
3971 introduced in revision 219724.
3973 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3974 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3977 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
3978 destination is not a GP reg.
3979 (*movdi_aarch64): Likewise.
3981 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
3984 * config/rs6000/default64.h: Revert ISA change.
3986 2015-01-16 Richard Biener <rguenther@suse.de>
3989 * tree-ssa-uninit.c: Include tree-cfg.h.
3990 (MAX_SWITCH_CASES): New define.
3991 (convert_control_dep_chain_into_preds): Handle switch statements.
3992 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
3993 (normalize_one_pred_1): Do not split bit-manipulations.
3996 2015-01-16 Richard Biener <rguenther@suse.de>
3998 PR tree-optimization/64568
3999 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
4000 complex load rewriting for TARGET_MEM_REFs.
4002 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
4004 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
4006 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
4009 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
4011 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
4012 (aarch64_lra_p): Remove.
4014 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
4017 * ipa-chkp.h (chkp_instrumentable_p): New.
4018 * ipa-chkp.c: Include tree-inline.h.
4019 (chkp_instrumentable_p): New.
4020 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
4021 Fix processing of not instrumentable functions.
4022 (chkp_versioning): Use chkp_instrumentable_p. Warn about
4023 not instrumentable functions.
4024 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
4025 chkp_instrumentable_p.
4026 * tree-inline.h (copy_forbidden): New.
4027 * tree-inline.c (copy_forbidden): Not static anymore.
4029 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4031 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
4034 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
4036 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
4037 type OP_OUT to OP_INOUT.
4039 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
4041 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
4042 (high x) y) to y if x and y have the same base.
4044 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
4046 * config/arm/cortex-a57.md: New.
4047 * config/aarch64/aarch64.md: Include it.
4048 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
4049 * config/aarch64/aarch64-tune.md: Regenerate.
4051 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
4054 * ccmp.c (expand_ccmp_next): New function.
4055 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
4056 and compare insn sequence.
4057 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
4058 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
4059 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
4060 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
4061 (*ccmp_ior): Changed to ccmp_ior<mode>.
4062 (cmp<mode>): New pattern.
4063 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
4065 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
4067 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
4069 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
4070 _mm256_bsrli_epi128): New.
4071 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
4073 2015-01-15 Jiong Wang <jiong.wang@arm.com>
4075 * expmed.c (store_bit_field_using_insv): Improve warning message.
4076 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
4078 2015-01-15 Jiong Wang <jiong.wang@arm.com>
4080 PR rtl-optimization/64011
4081 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
4082 there is partial overflow.
4084 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4086 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
4088 (nds32_expand_epilogue_v3pop): Likewise.
4089 * config/nds32/nds32.md (sibcall): Define this for sibling call
4091 (sibcall_register): Likewise.
4092 (sibcall_immediate): Likewise.
4093 (sibcall_value): Likewise.
4094 (sibcall_value_register): Likewise.
4095 (sibcall_value_immediate): Likewise.
4096 (sibcall_epilogue): Likewise.
4097 (epilogue): Pass false to indicate this is not a sibcall epilogue.
4098 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
4099 (nds32_expand_epilogue_v3pop): Likewise.
4101 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4103 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
4104 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
4105 (return_internal): New.
4106 (return): Define this named pattern.
4107 (simple_return): Define this named pattern.
4108 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
4109 pattern instead of unspec_volatile_func_return.
4110 (nds32_expand_epilogue_v3pop): Likewise.
4111 (nds32_can_use_return_insn): New function.
4113 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4115 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
4116 * config/nds32/nds32.md (pop25return): New.
4117 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
4118 pop25return pattern.
4120 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4122 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
4123 -mforbid-fp-as-gp, and -mex9 options.
4125 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4127 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
4128 remove -mgp-direct option.
4130 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4132 * doc/invoke.texi (--param early-inlining-insns): Update default value.
4133 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
4135 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4137 * ipa-inline.c (inline_small_functions): Work around hints
4140 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
4143 * doc/invoke.texi (Option Summary): Document new Nios II
4145 (Nios II Options): Likewise.
4146 * config/nios2/nios2.opt: Add -mgpopt= option support.
4147 Modify existing -mgpopt and -mno-gpopt options to be aliases.
4148 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
4149 * config/nios2/nios2.c (nios2_option_override): Adjust
4151 (nios2_in_small_data_p): Return true for explicit small data
4152 sections even with -G0.
4153 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
4156 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4159 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
4161 (inline_call): Fix removal of aliases.
4163 2015-01-15 Jakub Jelinek <jakub@redhat.com>
4165 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
4166 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
4167 * opts.c (common_handle_option): Add -fsanitize=vptr.
4168 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
4169 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
4170 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
4171 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
4172 (ubsan_expand_vptr_ifn): New prototype.
4173 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
4174 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
4175 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
4176 expand_LOOP_VECTORIZED): Make argument nameless, remove
4178 (expand_UBSAN_VPTR): New function.
4179 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
4181 (UBSAN_VPTR): New internal function.
4182 * sanopt.c (tree_map_traits): Renamed to ...
4183 (sanopt_tree_map_traits): ... this.
4184 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
4185 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
4186 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
4187 (maybe_optimize_ubsan_vptr_ifn): New function.
4188 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
4189 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
4191 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
4192 internal calls like pure functions for aliasing, even when they
4193 have other side-effects that prevent making them ECF_PURE.
4194 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
4195 (ubsan_expand_vptr_ifn): New function.
4197 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
4199 PR rtl-optimization/64110
4200 * stmt.c (parse_output_constraint): Process '^' and '$'.
4201 (parse_input_constraint): Ditto.
4202 * lra-constraints.c (process_alt_operands): Process the new
4204 * ira-costs.c (record_reg_classes): Process the new constraint
4206 * genoutput.c (indep_constraints): Add '^' and '$'.
4207 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
4208 * doc/md.texi: Add description of the new constraints.
4210 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4211 Bernd Schmidt <bernds@codesourcery.com>
4212 Cesar Philippidis <cesar@codesourcery.com>
4213 James Norris <jnorris@codesourcery.com>
4214 Tom de Vries <tom@codesourcery.com>
4215 Ilmir Usmanov <i.usmanov@samsung.com>
4216 Dmitry Bocharnikov <dmitry.b@samsung.com>
4217 Evgeny Gavrin <e.gavrin@samsung.com>
4218 Jakub Jelinek <jakub@redhat.com>
4220 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
4221 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4222 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4224 * builtins.c: Include "gomp-constants.h".
4225 (expand_builtin_acc_on_device): New function.
4226 (expand_builtin, is_inexpensive_builtin): Handle
4227 BUILT_IN_ACC_ON_DEVICE.
4228 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
4230 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
4232 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
4233 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
4234 i386/intelmic-offload.h.
4235 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
4236 to libgomp and its dependencies.
4237 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
4238 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4239 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4240 * config/ia64/hpux.h (LIB_SPEC): Likewise.
4241 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4242 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4243 * doc/generic.texi: Update for OpenACC changes.
4244 * doc/gimple.texi: Likewise.
4245 * doc/invoke.texi: Likewise.
4246 * doc/sourcebuild.texi: Likewise.
4247 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
4248 GF_OMP_FOR_KIND_OACC_LOOP.
4249 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
4250 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
4251 GF_OMP_TARGET_KIND_OACC_UPDATE,
4252 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
4254 * gimple.c: Update comments for OpenACC changes.
4255 * gimple.def: Likewise.
4256 * gimple.h: Likewise.
4257 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
4258 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
4259 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
4260 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
4261 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
4263 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
4264 * gimplify.c: Include "gomp-constants.h".
4265 Update comments for OpenACC changes.
4266 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
4267 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
4268 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
4269 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4270 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4271 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4272 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
4273 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
4274 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4276 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
4277 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
4278 OMP_CLAUSE_SET_MAP_KIND.
4279 (gimplify_oacc_cache): New function.
4280 (gimplify_omp_for): Handle OACC_LOOP.
4281 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
4283 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
4284 OACC_EXIT_DATA, OACC_UPDATE.
4285 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
4286 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
4287 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
4288 (gimplify_body): Consider flag_openacc next to flag_openmp.
4289 * lto-streamer-out.c: Include "gomp-constants.h".
4290 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
4291 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
4292 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
4293 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
4294 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
4295 (BUILT_IN_ACC_ON_DEVICE): New builtins.
4296 * omp-low.c: Include "gomp-constants.h".
4297 Update comments for OpenACC changes.
4298 (struct omp_context): Add reduction_map, gwv_below, gwv_this
4300 (extract_omp_for_data, use_pointer_for_field, install_var_field)
4301 (new_omp_context, delete_omp_context, scan_sharing_clauses)
4302 (create_omp_child_function, scan_omp_for, scan_omp_target)
4303 (check_omp_nesting_restrictions, lower_reduction_clauses)
4304 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
4305 Update for OpenACC changes.
4306 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
4307 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
4308 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
4309 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
4310 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
4311 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
4313 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4314 Handle GF_OMP_FOR_KIND_OACC_LOOP.
4315 (expand_omp_target, lower_omp_target): Handle
4316 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
4317 GF_OMP_TARGET_KIND_OACC_UPDATE,
4318 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
4319 GF_OMP_TARGET_KIND_OACC_DATA.
4320 (pass_expand_omp::execute, execute_lower_omp)
4321 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
4323 (offload_symbol_decl): New variable.
4324 (oacc_get_reduction_array_id, oacc_max_threads)
4325 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
4326 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
4327 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
4328 (oacc_gimple_assign, oacc_initialize_reduction_data)
4329 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
4331 (is_targetreg_ctx): Remove function.
4332 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
4333 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
4334 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4335 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
4336 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
4337 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
4338 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
4339 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
4340 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
4341 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
4342 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
4343 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
4344 * tree-core.h: Update comments for OpenACC changes.
4345 (enum omp_clause_map_kind): Remove.
4346 (struct tree_omp_clause): Change type of map_kind member from enum
4347 omp_clause_map_kind to unsigned char.
4348 * tree-inline.c: Update comments for OpenACC changes.
4349 * tree-nested.c: Likewise. Include "gomp-constants.h".
4350 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
4351 (convert_tramp_reference_stmt, convert_gimple_call): Update for
4352 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
4353 OMP_CLAUSE_SET_MAP_KIND.
4354 * tree-pretty-print.c: Include "gomp-constants.h".
4355 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
4356 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
4357 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
4358 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
4359 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4360 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
4361 instead of OMP_CLAUSE_MAP_*.
4362 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
4363 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
4364 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
4365 * tree-streamer-in.c: Include "gomp-constants.h".
4366 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
4367 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
4368 * tree-streamer-out.c: Include "gomp-constants.h".
4369 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
4371 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
4372 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
4373 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
4374 * tree.c (omp_clause_num_ops): Update accordingly.
4375 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
4377 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
4378 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
4379 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
4380 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
4381 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
4382 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
4383 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
4384 (OMP_CLAUSE_SET_MAP_KIND): New macro.
4385 * varpool.c (varpool_node::get_create): Consider flag_openacc next
4387 * config/i386/intelmic-offload.h: New file.
4388 * config/nvptx/offload.h: Likewise.
4390 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4392 * explow.h: Remove duplicate contents.
4393 * dojump.h: Likewise.
4395 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
4397 * arm.c (arm_xgene_tune): Add default initializer for instruction
4400 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4404 * ipa.c (symbol_table::remove_unreachable_nodes):
4405 Do not put abstract origins into boundary.
4407 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
4409 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
4410 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
4412 2015-01-15 Steve Ellcey <sellcey@mips.com>
4414 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
4415 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
4416 builtins.def, and chkp-builtins.def.
4418 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
4420 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
4423 2015-01-15 Richard Biener <rguenther@suse.de>
4425 PR tree-optimization/61743
4426 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
4427 information on PHIs for some simple cases.
4429 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4431 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
4433 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
4434 * config/arm/arm-cores.def (xgene1): New entry.
4435 * config/arm/arm-tables.opt: Regenerate.
4436 * config/arm/arm-tune.md: Regenerate.
4437 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
4439 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
4441 * tree-if-conv.c: Include hash-map.h.
4442 (aggressive_if_conv): New variable.
4443 (fold_build_cond_expr): Add simplification of non-zero condition.
4444 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
4445 destination block is not always executed.
4446 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
4447 than two predecessors if AGGRESSIVE_IF_CONV is true.
4448 (if_convertible_stmt_p): Fix commentary.
4449 (all_preds_critical_p): New function.
4450 (has_pred_critical_p): New function.
4451 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
4452 BB can have more than two predecessors and all incoming edges can be
4454 (predicate_bbs): Skip predication for loop exit block, use build2_loc
4455 to compute predicate for true edge.
4456 (find_phi_replacement_condition): Delete this function.
4457 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
4458 Allow interchange PHI arguments if EXTENDED is false.
4459 Change check that block containing reduction statement candidate
4460 is predecessor of phi-block since phi may have more than two arguments.
4461 (phi_args_hash_traits): New helper structure.
4462 (struct phi_args_hash_traits): New type.
4463 (phi_args_hash_traits::hash): New function.
4464 (phi_args_hash_traits::equal_keys): New function.
4465 (gen_phi_arg_condition): New function.
4466 (predicate_scalar_phi): Add handling of phi nodes with more than two
4467 arguments, delete COND and TRUE_BB arguments, insert body of
4468 find_phi_replacement_condition to predicate ordinary phi nodes.
4469 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
4470 delete call of find_phi_replacement_condition and invoke
4471 predicate_scalar_phi with two arguments.
4472 (insert_gimplified_predicates): Add assert that non-predicated block
4473 don't have statements to insert.
4474 (ifcvt_split_critical_edges): New function.
4475 (ifcvt_split_def_stmt): Likewise.
4476 (ifcvt_walk_pattern_tree): Likewise.
4477 (stmt_is_root_of_bool_pattern): Likewise.
4478 (ifcvt_repair_bool_pattern): Likewise.
4479 (ifcvt_local_dce): Likewise.
4480 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
4481 is copy of inner or outer loop force_vectorize field, invoke
4482 ifcvt_split_critical_edges, ifcvt_local_dce and
4483 ifcvt_repair_bool_pattern for aggressive if-conversion.
4485 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
4487 * config/aarch64/aarch64.md: Include xgene1.md.
4488 * config/aarch64/xgene1.md: New file.
4490 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4492 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
4493 xgene1 (APM XGene-1) core definition.
4494 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
4495 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
4496 * doc/invoke.texi: Document -mcpu=xgene1.
4498 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4500 * dojump.h: New header file.
4501 * explow.h: Likewise.
4502 * expr.h: Remove includes.
4503 Move expmed.c prototypes to expmed.h.
4504 Move dojump.c prototypes to dojump.h.
4505 Move alias.c prototypes to alias.h.
4506 Move explow.c prototypes to explow.h.
4507 Move calls.c prototypes to calls.h.
4508 Move emit-rtl.c prototypes to emit-rtl.h.
4509 Move varasm.c prototypes to varasm.h.
4510 Move stmt.c prototypes to stmt.h.
4511 (saved_pending_stack_adjust): Move to dojump.h.
4512 (adjust_address): Move to explow.h.
4513 (adjust_address_nv): Move to emit-rtl.h.
4514 (adjust_bitfield_address): Likewise.
4515 (adjust_bitfield_address_size): Likewise.
4516 (adjust_bitfield_address_nv): Likewise.
4517 (adjust_automodify_address_nv): Likewise.
4518 * explow.c (expr_size): Move to expr.c.
4519 (int_expr_size): Likewise.
4520 (tree_expr_size): Likewise.
4521 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4522 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4523 * genemit.c (main): Generate includes statistics.h, real.h,
4524 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
4526 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
4527 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
4528 explow.h, emit-rtl.h, stmt.h.
4529 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
4530 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
4531 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
4532 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
4533 emit-rtl.h, varasm.h, stmt.h.
4534 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
4535 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
4536 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
4537 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
4538 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
4539 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
4540 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
4541 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
4542 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
4543 tm.h tree.h varasm.h vec.h wide-int.h.
4544 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4545 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
4546 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
4547 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
4548 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
4549 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
4550 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
4551 * loop-iv.c: Likewise.
4552 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
4553 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
4554 statistics.h stmt.h tree.h varasm.h wide-int.h.
4555 * lra-constraints.c: Likewise.
4556 * lra-eliminations.c: Likewise.
4557 * lra-lives.c: Likewise.
4558 * lra-remat.c: Likewise.
4559 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4560 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
4561 statistics.h stmt.h tree.h varasm.h wide-int.h.
4562 * hw-doloop.c: Likewise.
4563 * ira-color.c: Likewise.
4564 * ira-emit.c: Likewise.
4565 * loop-doloop.c: Likewise.
4566 * loop-invariant.c: Likewise.
4567 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4568 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
4569 statistics.h stmt.h tree.h varasm.h wide-int.h.
4570 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
4571 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
4572 statistics.h stmt.h tree.h varasm.h wide-int.h.
4573 * combine-stack-adj.c: Likewise.
4576 * ifcvt.c: Likewise.
4577 * ira-costs.c: Likewise.
4579 * lra-coalesce.c: Likewise.
4580 * lra-spills.c: Likewise.
4581 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4582 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
4583 stmt.h varasm.h wide-int.h.
4584 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4585 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
4587 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
4588 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
4589 statistics.h stmt.h varasm.h wide-int.h.
4590 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
4591 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
4592 varasm.h wide-int.h.
4593 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
4594 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4595 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
4596 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
4597 statistics.h stmt.h.
4598 * config/tilepro/tilepro.c: Likewise.
4599 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
4600 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
4601 * config/pdp11/pdp11.c: Likewise.
4602 * config/xtensa/xtensa.c: Likewise.
4603 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
4604 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
4606 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4607 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
4608 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
4609 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4610 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
4611 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
4612 * rtl-chkp.c: Likewise.
4613 * tree-chkp-opt.c: Likewise.
4614 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
4615 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
4616 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
4617 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4618 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4619 statistics.h stmt.h.
4620 * tree-vect-data-refs.c: Likewise.
4621 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
4622 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4623 rtl.h statistics.h stmt.h varasm.h.
4624 * internal-fn.c: Likewise.
4625 * ipa-icf-gimple.c: Likewise.
4626 * lto-section-out.c: Likewise.
4627 * tree-data-ref.c: Likewise.
4628 * tree-nested.c: Likewise.
4629 * tree-outof-ssa.c: Likewise.
4630 * tree-predcom.c: Likewise.
4631 * tree-pretty-print.c: Likewise.
4632 * tree-scalar-evolution.c: Likewise.
4633 * tree-ssa-strlen.c: Likewise.
4634 * tree-vect-loop.c: Likewise.
4635 * tree-vect-patterns.c: Likewise.
4636 * tree-vect-slp.c: Likewise.
4637 * tree-vect-stmts.c: Likewise.
4639 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4640 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
4642 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
4643 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4644 statistics.h stmt.h varasm.h.
4645 * loop-unroll.c: Likewise.
4646 * ubsan.c: Likewise.
4647 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
4648 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
4650 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4651 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
4652 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
4653 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4654 statistics.h stmt.h.
4655 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
4656 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4657 statistics.h stmt.h varasm.h.
4658 * gimple-match-head.c: Likewise.
4659 * lto-cgraph.c: Likewise.
4660 * lto-section-in.c: Likewise.
4661 * lto-streamer-in.c: Likewise.
4662 * lto-streamer-out.c: Likewise.
4663 * tree-affine.c: Likewise.
4664 * tree-cfg.c: Likewise.
4665 * tree-cfgcleanup.c: Likewise.
4666 * tree-if-conv.c: Likewise.
4667 * tree-into-ssa.c: Likewise.
4668 * tree-ssa-alias.c: Likewise.
4669 * tree-ssa-copyrename.c: Likewise.
4670 * tree-ssa-dse.c: Likewise.
4671 * tree-ssa-forwprop.c: Likewise.
4672 * tree-ssa-live.c: Likewise.
4673 * tree-ssa-math-opts.c: Likewise.
4674 * tree-ssa-pre.c: Likewise.
4675 * tree-ssa-sccvn.c: Likewise.
4676 * tree-tailcall.c: Likewise.
4677 * tree-vect-generic.c: Likewise.
4678 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4679 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
4680 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4681 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
4682 * varasm.c: Likewise.
4683 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4684 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
4686 * init-regs.c: Likewise.
4688 * omp-low.c: Likewise.
4689 * stack-ptr-mod.c: Likewise.
4690 * tree-ssa-reassoc.c: Likewise.
4691 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4692 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
4694 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4695 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
4696 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4697 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
4698 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4699 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
4700 * tree-ssa-phiopt.c: Likewise.
4701 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4702 fixed-value.h hashtab.h real.h statistics.h stmt.h.
4703 * config/fr30/fr30.c: Likewise.
4704 * config/frv/frv.c: Likewise.
4706 * final.c: Likewise.
4707 * optabs.c: Likewise.
4708 * passes.c: Likewise.
4709 * simplify-rtx.c: Likewise.
4711 * toplev.c: Likewise.
4712 * var-tracking.c: Likewise.
4713 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4714 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4715 * lower-subreg.c: Likewise.
4716 * postreload-gcse.c: Likewise.
4718 * reginfo.c: Likewise.
4719 * store-motion.c: Likewise.
4720 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4721 fixed-value.h hashtab.h real.h stmt.h varasm.h.
4722 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4723 fixed-value.h hashtab.h statistics.h stmt.h.
4724 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4725 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4726 * except.c: Likewise.
4727 * explow.c: Likewise.
4728 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4729 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
4731 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4732 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
4733 * tree-ssa-structalias.c: Likewise.
4734 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4735 fixed-value.h insn-config.h real.h statistics.h.
4736 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4737 fixed-value.h insn-config.h real.h statistics.h stmt.h.
4738 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4739 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4740 * cfgbuild.c: Likewise.
4741 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4742 fixed-value.h real.h rtl.h statistics.h stmt.h.
4743 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4744 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4745 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4746 fixed-value.h real.h statistics.h stmt.h.
4747 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4748 fixed-value.h real.h statistics.h stmt.h varasm.h.
4749 * cprop.c: Likewise.
4750 * modulo-sched.c: Likewise.
4751 * postreload.c: Likewise.
4752 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4753 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
4754 statistics.h stmt.h varasm.h.
4755 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
4756 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4757 rtl.h statistics.h stmt.h varasm.h.
4758 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
4759 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
4761 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4762 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
4764 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
4765 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
4767 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
4768 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4769 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4770 function.h real.h statistics.h stmt.h varasm.h.
4771 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4772 insn-config.h real.h statistics.h stmt.h.
4773 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4774 statistics.h stmt.h.
4775 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
4776 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
4777 statistics.h stmt.h varasm.h.
4778 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
4779 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
4780 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4781 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
4782 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
4783 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4784 statistics.h stmt.h varasm.h.
4785 * ipa-polymorphic-call.c: Likewise.
4786 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
4787 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4788 statistics.h stmt.h.
4789 * config/c6x/c6x.c: Likewise.
4790 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
4791 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4792 statistics.h stmt.h varasm.h.
4793 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
4794 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
4796 * ipa-split.c: Likewise.
4797 * tree-eh.c: Likewise.
4798 * tree-ssa-dce.c: Likewise.
4799 * tree-ssa-loop-niter.c: Likewise.
4800 * tree-vrp.c: Likewise.
4801 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
4802 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
4804 * config/nds32/nds32-fp-as-gp.c: Likewise.
4805 * config/nds32/nds32-intrinsic.c: Likewise.
4806 * config/nds32/nds32-isr.c: Likewise.
4807 * config/nds32/nds32-md-auxiliary.c: Likewise.
4808 * config/nds32/nds32-memory-manipulation.c: Likewise.
4809 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4810 * config/nds32/nds32-predicates.c: Likewise.
4811 * config/nds32/nds32.c: Likewise.
4812 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
4813 fixed-value.h hashtab.h real.h statistics.h.
4814 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
4815 fixed-value.h hashtab.h real.h statistics.h stmt.h.
4816 * config/arm/arm.c: Likewise.
4817 * config/avr/avr.c: Likewise.
4818 * config/bfin/bfin.c: Likewise.
4819 * config/h8300/h8300.c: Likewise.
4820 * config/i386/i386.c: Likewise.
4821 * config/ia64/ia64.c: Likewise.
4822 * config/iq2000/iq2000.c: Likewise.
4823 * config/m32c/m32c.c: Likewise.
4824 * config/m32r/m32r.c: Likewise.
4825 * config/m68k/m68k.c: Likewise.
4826 * config/mcore/mcore.c: Likewise.
4827 * config/mep/mep.c: Likewise.
4828 * config/mips/mips.c: Likewise.
4829 * config/mn10300/mn10300.c: Likewise.
4830 * config/moxie/moxie.c: Likewise.
4831 * config/pa/pa.c: Likewise.
4832 * config/rl78/rl78.c: Likewise.
4833 * config/rx/rx.c: Likewise.
4834 * config/s390/s390.c: Likewise.
4835 * config/sh/sh.c: Likewise.
4836 * config/sparc/sparc.c: Likewise.
4837 * config/spu/spu.c: Likewise.
4838 * config/stormy16/stormy16.c: Likewise.
4839 * config/v850/v850.c: Likewise.
4840 * config/vax/vax.c: Likewise.
4841 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
4842 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4843 * config/msp430/msp430.c: Likewise.
4844 * predict.c: Likewise.
4845 * value-prof.c: Likewise.
4846 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
4847 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
4848 * config/microblaze/microblaze.c: Likewise.
4849 * config/nios2/nios2.c: Likewise.
4850 * config/rs6000/rs6000.c: Likewise.
4851 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4852 insn-config.h real.h rtl.h statistics.h stmt.h.
4853 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4854 insn-config.h real.h statistics.h stmt.h.
4855 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
4856 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4857 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
4858 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4859 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
4860 fixed-value.h real.h statistics.h stmt.h.
4861 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
4862 fixed-value.h statistics.h stmt.h.
4863 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
4866 2015-01-15 Jakub Jelinek <jakub@redhat.com>
4868 * gengtype.c (create_user_defined_type): Workaround
4869 -Wmaybe-uninitialized false positives.
4870 * cse.c (fold_rtx): Likewise.
4871 * loop-invariant.c (gain_for_invariant): Likewise.
4873 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
4875 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
4876 set the memory attributes in all cases but clear MEM_EXPR if need be.
4878 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
4880 PR tree-optimization/64434
4881 * cfgexpand.c (reorder_operands): New function.
4882 (expand_gimple_basic_block): Insert call of reorder_operands if
4885 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
4887 * config/mips/micromips.md (*swp): Remove explicit parallel.
4888 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
4889 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
4890 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
4891 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
4892 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
4893 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
4894 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
4895 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
4896 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
4897 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
4898 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
4899 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
4900 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
4901 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
4902 (mips_wrdsp): Likewise.
4903 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
4905 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
4906 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
4907 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
4908 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
4909 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
4910 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
4911 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
4912 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
4913 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
4915 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4917 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
4918 (mips_print_operand): Support 'y' to print exact log2 in decimal
4920 * config/mips/mips.h (ISA_HAS_LSA): New define.
4921 (ISA_HAS_DLSA): Likewise.
4922 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
4923 * config/mips/predicates.md (const_immlsa_operand): New predicate.
4925 2015-01-15 Martin Liska <mliska@suse.cz>
4928 * optc-save-gen.awk: Add support for array types.
4930 2015-01-15 Richard Biener <rguenther@suse.de>
4933 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
4934 for MEM_REF access functions with the same base can never partially
4937 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
4939 * common.opt: New option -fstack-protector-explicit.
4940 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
4941 (stack_protect_decl_phase): Handle stack_protect attribute for
4942 explicit stack protection requests.
4943 (expand_used_vars): Similarly.
4944 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
4945 * doc/extend.texi: Add documentation for "stack_protect" attribute.
4946 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
4948 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
4951 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
4953 (sh_extending_set_of_reg): New struct.
4954 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
4955 sh_remove_reg_dead_or_unused_notes): New Declarations.
4956 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
4957 sh_find_extending_set_of_reg, sh_split_tst_subregs,
4958 sh_extending_set_of_reg::use_as_extended_reg): New functions.
4959 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
4960 convert to insn_and_split and use new function sh_split_tst_subregs.
4962 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
4964 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
4966 (Optimization Options): Move -fuse-ld documentation to...
4967 (Link Options): ...here.
4969 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
4971 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
4973 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
4974 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
4975 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
4976 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
4977 instead of ZR for the memory operand of LL/SC.
4978 (compare_and_swap_12, sync_add<mode>): Likewise.
4979 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
4980 (sync_new_<optab>_12, sync_nand_12): Likewise.
4981 (sync_old_nand_12, sync_new_nand_12): Likewise.
4982 (sync_sub<mode>, sync_old_add<mode>): Likewise.
4983 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
4984 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
4985 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
4986 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
4987 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
4988 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
4989 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
4990 * doc/md.texi (ZC): Update description.
4992 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
4994 * builtins.c (expand_builtin_atomic_exchange): Remove error when
4995 memory model is CONSUME.
4996 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
4997 expand_builtin_atomic_store): Change invalid memory model errors to
4999 (expand_builtin_atomic_clear): Change invalid model errors to warnings
5000 and issue warning for CONSUME.
5002 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
5004 * lto-cgraph: Update function comments for
5005 lto_symtab_encoder_encode_*.
5007 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
5009 * Makefile.in (site.exp): Do not set ENABLE_LTO.
5011 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
5013 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
5014 * lto-cgraph.c (select_what_to_stream): Remove argument, use
5015 lto_stream_offload_p instead.
5016 * lto-streamer.h (select_what_to_stream): Remove argument.
5017 * passes.c (ipa_write_summaries): Likewise.
5018 * tree-pass.h (ipa_write_summaries): Likewise.
5020 2015-01-14 Richard Biener <rguenther@suse.de>
5022 PR tree-optimization/59354
5023 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
5024 groups larger than the slp group size as having gaps.
5026 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
5029 * builtins.c (get_memmodel): Promote consume to acquire always.
5031 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
5034 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
5037 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
5040 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
5042 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
5043 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
5044 AVX512VBMI, as it implies AVX512BW.
5046 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
5049 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
5050 (vec_unpacks_hi_v16sf): Ditto.
5052 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5054 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
5057 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5059 * doc/invoke.texi (mapcs): Mention deprecation.
5060 (mapcs-frame): Likewise.
5062 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5065 * config/arm/arm.c (callee_saved_reg_p): Define.
5066 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
5067 register is callee saved instead of !call_used_regs[reg].
5068 (thumb1_compute_save_reg_mask): Likewise.
5070 2015-01-14 Hale Wang <hale.wang@arm.com>
5072 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
5075 2015-01-14 Richard Biener <rguenther@suse.de>
5078 * tree-inline.c (insert_debug_decl_map): Check destination
5079 function MAY_HAVE_DEBUG_STMTS.
5080 (insert_init_debug_bind): Likewise.
5081 (insert_init_stmt): Remove redundant check.
5082 (remap_gimple_stmt): Drop debug stmts if the destination
5083 function has var-tracking assignments disabled.
5085 2015-01-14 Martin Liska <mliska@suse.cz>
5087 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
5088 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
5090 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5093 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
5094 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
5096 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
5098 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
5099 level from an ARCH; do not inject the default.
5100 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
5101 MIPS_ISA_LEVEL_SPEC.
5102 (MIPS_ISA_NAN2008_SPEC): Update comment.
5103 (BASE_DRIVER_SELF_SPECS): Likewise.
5104 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
5105 MIPS_DEFAULT_ISA_LEVEL_SPEC.
5106 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
5107 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
5108 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
5110 2015-01-14 Richard Biener <rguenther@suse.de>
5112 PR tree-optimization/64493
5113 PR tree-optimization/64495
5114 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
5115 assign the proper vectorized PHI to the inner loop exit PHIs.
5117 2015-01-14 Joey Ye <joey.ye@arm.com>
5119 * config/arm/arm.c (arm_compute_save_reg_mask):
5120 Do not save lr in case of tail call.
5121 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
5123 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
5125 * tree-vrp.c (check_array_ref): Emit more warnings
5126 for warn_array_bounds >= 2.
5127 * common.opt: New option -Warray-bounds=.
5128 * doc/invoke.texi: Document -Warray-bounds=.
5130 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
5132 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
5133 (mforbid-fp-as-gp): Remove.
5135 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
5136 (nds32_symbol_load_store_p): Remove.
5137 (nds32_fp_as_gp_check_available): Clean up implementation.
5138 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
5140 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
5141 fp-as-gp and ex9 cases.
5143 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
5145 * tree-profile.c (init_ic_make_global_vars): Drop workaround
5146 for bintuils bug 14342.
5147 (init_ic_make_global_vars): Likewise.
5148 (gimple_init_edge_profiler): Likewise.
5149 (gimple_gen_ic_func_profiler): Likewise.
5151 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5153 * ipa-inline.c (inline_small_functions): Swap the operands in
5156 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
5159 * ipa-inline-analysis.c (node_growth_cache): Remove.
5160 (initialize_growth_caches): Do not initialize it.
5161 (free_growth_caches): Do not free it.
5162 (do_estimate_growth): Rename to ...
5163 (estimate_growth): ... this one; drop growth cache code.
5164 (growth_likely_positive): Always go the heuristics way.
5165 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
5166 (reset_edge_caches): Do not reset node growth.
5167 (heap_edge_removal_hook): Do not maintain cache.
5168 (inline_small_functions): Likewise; strenghten sanity check.
5169 (ipa_inline): Do not maintain caches.
5170 * ipa-inline.h (node_growth_cache): Remove.
5171 (do_estimate_growth): Remove to ...
5172 (estimate_growth): this one; remove inline version.
5173 (reset_node_growth_cache): Remove.
5175 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
5178 * ipa-inline.c (inline_small_functions): Update callee keys after
5179 resolving speculation
5180 (inline_small_functions): Always check monotonicity of the queue.
5182 2015-01-13 Marek Polacek <polacek@redhat.com>
5185 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
5187 2015-01-13 Jakub Jelinek <jakub@redhat.com>
5189 PR rtl-optimization/64286
5190 * ree.c (combine_reaching_defs): Move part of comment earlier,
5191 remove !SCALAR_INT_MODE_P check.
5192 (add_removable_extension): Don't add vector mode
5193 extensions if all uses of the source register aren't the same
5196 2015-01-13 Renlin Li <renlin.li@arm.com>
5198 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
5199 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
5201 2015-01-13 Martin Liska <mliska@suse.cz>
5203 * ipa-icf.c (sem_function::equals_private): Call new functions
5204 cl_target_option_print_diff and cl_optimization_print_diff.
5205 * optc-save-gen.awk (cl_target_option_print_diff): New function.
5206 (cl_optimization_print_diff): Likewise.
5207 * opth-gen.awk: Likewise.
5209 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
5211 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
5212 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
5213 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
5214 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
5215 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
5216 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
5218 2015-01-13 Andrew Pinski <apinski@cavium.com>
5220 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
5221 instead of src mode.
5223 2015-01-13 Richard Biener <rguenther@suse.de>
5226 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
5229 2015-01-13 Andrew Pinski <apinski@cavium.com>
5231 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
5233 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5235 2015-01-13 Jakub Jelinek <jakub@redhat.com>
5238 * cfgexpand.c (expand_computed_goto): Don't call
5239 convert_memory_address here.
5241 2015-01-13 Richard Biener <rguenther@suse.de>
5243 PR tree-optimization/64406
5244 * tree-loop-distibution.c (pass_loop_distribution::execute):
5245 Reset the SCEV hashtable if we distributed anything.
5247 2015-01-13 Richard Biener <rguenther@suse.de>
5249 PR tree-optimization/64404
5250 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
5251 SLP types for CSEd loads.
5253 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5255 PR tree-optimization/64436
5256 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
5257 merge of two symbolic numbers for a bitwise OR to ...
5258 (perform_symbolic_merge): This. Also fix computation of the range and
5259 end of the symbolic number corresponding to the result of a bitwise OR.
5261 2015-01-13 Richard Biener <rguenther@suse.de>
5263 PR tree-optimization/64568
5264 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
5265 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
5267 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5269 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
5270 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
5272 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5274 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
5275 target-specific symbol_ref flag.
5276 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
5277 resides in rodata section.
5278 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
5279 (nds32_encode_section_info): New function.
5281 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5283 * config/nds32/nds32.md (call): Use pseudo instruction bal which
5284 clobbers TA_REGNUM if large code model is specified.
5285 (call_register): Likewise.
5286 (call_immediate): Likewise.
5287 (call_value): Likewise.
5288 (call_value_register): Likewise.
5289 (call_value_immediate): Likewise.
5291 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5293 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
5294 (TARGET_CMODEL_MEDIUM): New macro.
5295 (TARGET_CMODEL_LARGE): New macro.
5296 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
5297 code model setting in assembly code.
5299 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5301 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
5302 Remove MASK_GP_DIRECT flag.
5303 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
5304 one of the multilib default options.
5305 * config/nds32/nds32.opt (mgp-direct): Remove.
5306 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
5307 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
5309 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5311 * config/nds32/nds32.opt (mcmodel): Add new option.
5312 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
5313 to describe code model.
5315 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
5318 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
5320 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
5322 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
5323 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
5324 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
5325 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
5326 __builtin_sh_set_fpscr.
5328 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
5330 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
5331 after a funtion name just to indicate it is a function.
5332 ([-fsanitize-undefined-trap-on-error]): Likewise.
5333 ([-fdbg-cnt=]): Likewise.
5334 ([-mmemcpy]): Likewise.
5335 ([-mflush-func]): Likewise.
5336 ([-msynci]): Likewise.
5338 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
5340 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
5343 2015-01-12 Jakub Jelinek <jakub@redhat.com>
5345 PR tree-optimization/64563
5346 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
5347 instead of != VR_VARYING.
5350 * config/i386/i386.c (ix86_expand_prologue): Add
5351 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
5353 PR tree-optimization/64454
5354 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
5355 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
5356 for signed or [0, op1 - 1] for unsigned modulo.
5357 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
5358 even if op1 does not satisfy integer_pow2p.
5361 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
5363 2015-01-12 Jeff Law <law@redhat.com>
5366 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
5367 (trunchiqi2, truncsihi2): Similarly.
5369 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
5370 rather than calling F.
5372 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
5374 * tsan.c (instrument_expr): Use force_gimple_operand.
5375 Use may_be_nonaddressable_p instead of is_gimple_addressable.
5377 2015-01-12 Richard Biener <rguenther@suse.de>
5379 PR tree-optimization/64530
5380 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
5383 2015-01-12 Richard Biener <rguenther@suse.de>
5386 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
5389 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5391 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
5392 Cortex-A17 tuning parameters.
5393 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
5395 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5397 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
5398 * config/arm/arm.c (arm_macro_fusion_p): New function.
5399 (arm_macro_fusion_pair_p): Likewise.
5400 (TARGET_SCHED_MACRO_FUSION_P): Define.
5401 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
5402 (ARM_FUSE_NOTHING): Likewise.
5403 (ARM_FUSE_MOVW_MOVT): Likewise.
5404 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5405 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5406 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5407 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5408 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5409 arm_cortex_a5_tune): Specify fuseable_ops value.
5411 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
5414 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
5415 test for PIE with copy reloc.
5416 * configure: Regenerated.
5418 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5420 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
5422 (arm_tls_descseq_addr): Likewise.
5423 (arm_gen_movmemqi): Likewise.
5424 (arm_expand_epilogue_apcs_frame): Likewise.
5425 (arm_expand_epilogue): Likewise.
5426 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
5429 2015-01-12 Martin Liska <mliska@suse.cz>
5432 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
5433 volatility for correct operands.
5435 2015-01-12 Martin Liska <mliska@suse.cz>
5437 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
5438 that a function is not leaf.
5439 (sem_function::compare_polymorphic_p): Likewise.
5441 2015-01-12 Martin Liska <mliska@suse.cz>
5443 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
5444 that a function is not leaf.
5445 (sem_function::compare_polymorphic_p): Likewise.
5447 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5449 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
5450 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
5451 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
5452 fold-const.h, tree-check.h.
5454 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
5458 * ipa-inline.c (compute_uninlined_call_time,
5459 compute_inlined_call_time): Use counts for extra precision when
5461 (big_speedup_p): Fix formating.
5462 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
5463 (relative_time_benefit): Remove.
5464 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
5465 merge guessed and read profile paths.
5466 (inline_small_functions): Count only !optimize_size functions into
5467 initial size; be more lax about sanity check when profile is used;
5468 be sure to update inlined function profile when profile is read.
5470 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
5473 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
5474 cost when edge becomes direct.
5475 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
5476 is resolved or when introducing new speculation.
5478 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
5482 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
5483 '||' to fix typo issue.
5485 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
5486 accept and return NULL.
5488 2015-01-12 Martin Liska <mliska@suse.cz>
5490 * cgraph.c (cgraph_edge::remove_callee): Move function to header
5491 file for being inlined.
5492 (cgraph_set_edge_callee): Delete.
5493 (cgraph_edge::redirect_callee): Move function to header file
5495 (cgraph_edge::make_direct): Use new function.
5496 (cgraph_edge::dump_edge_flags): New function created from
5497 static dump_edge_flags function.
5498 (cgraph_node::dump): Use new function.
5499 (cgraph_edge::verify_count_and_frequency): New function created
5500 from verify_edge_count_and_frequency.
5501 (cgraph_edge::verify_corresponds_to_fndecl): New function created
5502 from verify_edge_corresponds_to_fndecl.
5503 (verify_edge_corresponds_to_fndecl): Delete.
5504 (cgraph_node::verify_node): Use new function.
5505 * cgraph.h (cgraph_edge::set_callee): New function.
5506 (cgraph_edge::dump_edge_flags): Likewise.
5507 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
5509 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
5511 * ipa-utils.c (estimate_function_body_sizes): Do not
5512 free node params when called late with early=true.
5514 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
5516 * doc/md.texi (Instruction Patterns): Rewrite text for
5518 (Example): Likewise.
5520 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
5522 * doc/invoke.texi (Option Summary): Break long lines.
5523 [(-fdiagnostics-color)]: Put long literal in @smallexample
5525 [(-fsanitize-recover)]: Likewise.
5526 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
5527 [(-ffast-math)]: Likewise.
5528 [(--param max-inline-insns-recursive)]: Likewise.
5529 [(--param max-inline-recursive-depth)]: Likewise.
5530 [(-mno-text-section-literals)]: Likewise.
5532 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
5534 * doc/install.texi: Update for libgomp being renamed from "GNU
5535 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
5537 * doc/sourcebuild.texi: Likewise.
5539 2015-01-10 Anthony Green <green@moxielogic.com>
5541 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
5542 mul.x availability for moxiebox configuration.
5544 2015-01-09 Anthony Green <green@moxielogic.com>
5546 * config/moxie/moxie.md: Tabify assembly output.
5548 2015-01-09 Anthony Green <green@moxielogic.com>
5550 * config/moxie/moxie.md (CC_REG): Correct register definition.
5552 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
5554 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
5555 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
5558 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5560 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
5562 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
5563 Jakub Jelinek <jakub@redhat.com>
5566 * lto-streamer.h (lto_stream_offload_p): New declaration.
5567 * lto-streamer.c (lto_stream_offload_p): New variable.
5568 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
5569 at the same time as section_name_prefix.
5570 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
5571 if lto_stream_offload_p.
5572 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
5573 stream TREE_TARGET_OPTION if lto_stream_offload_p.
5574 (write_ts_function_decl_tree_pointers): Don't
5575 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
5576 * tree-streamer-in.c (unpack_value_fields): Don't stream
5577 TREE_TARGET_OPTION in if ACCEL_COMPILER.
5578 (lto_input_ts_function_decl_tree_pointers): Don't stream
5579 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
5580 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
5581 instead of section_name_prefix string comparisons.
5583 2015-01-09 Jakub Jelinek <jakub@redhat.com>
5585 PR rtl-optimization/64536
5586 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
5589 2015-01-09 Michael Collison <michael.collison@linaro.org>
5591 PR tree-optimization/64322
5592 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
5593 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
5595 2015-01-09 Tom de Vries <tom@codesourcery.com>
5597 PR rtl-optimization/64539
5598 * regcprop.c (kill_clobbered_values): Factor out of ...
5599 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
5600 instead of note_stores with kill_clobbered_value.
5602 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5604 * ginclude/unwind-arm-common.h: Revert previous commit.
5606 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5608 * config.gcc (arm*-*-freebsd*): New configuration.
5609 * config/arm/freebsd.h: New file.
5610 * config.host: Add extra components for arm*-*-freebsd*.
5611 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
5612 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
5614 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5616 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
5618 * config/rs6000/t-rtems: Add e6500 multilibs.
5620 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5622 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
5625 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5627 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
5628 MULTILIB_EXCEPTIONS.
5630 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5632 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
5633 MULTILIB_EXCEPTIONS.
5635 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5637 * config/arm/t-rtems-eabi: Rename to...
5638 * config/arm/t-rtems: ...this.
5639 * config/arm/rtems-eabi.h: Rename to...
5640 * config/arm/rtems.h: ...this.
5641 * config.gcc (arm*-*-rtems*): Reflect changes above.
5643 2015-01-09 Richard Biener <rguenther@suse.de>
5645 PR tree-optimization/64410
5646 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
5648 (execute_update_addresses_taken): Deal with that.
5649 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
5650 loads/stores for complex variables.
5652 2015-01-09 Martin Liska <mliska@suse.cz>
5654 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
5656 (func_checker::compare_memory_operand): New function.
5657 (func_checker::compare_operand): Split case to newly
5659 (func_checker::compare_cst_or_decl): New function.
5660 (func_checker::compare_gimple_call): Identify
5662 (func_checker::compare_gimple_assign): Likewise.
5663 * ipa-icf-gimple.h: New function.
5665 2015-01-09 Martin Liska <mliska@suse.cz>
5668 * sreal.c (sreal::dump): Change unsigned format to signed for
5670 (sreal::to_double): Replace exp2 with scalbln.
5672 2015-01-09 Martin Liska <mliska@suse.cz>
5674 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
5675 * ipa-icf.c (sem_function::equals_private): Add support for target and
5676 (sem_item_optimizer::merge_classes): Remove redundant function
5677 optimization flags comparison.
5678 * tree.h (target_opts_for_fn): New function.
5680 2015-01-09 Tom de Vries <tom@codesourcery.com>
5682 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
5684 2015-01-09 Kito Cheng <kito@0xlab.org>
5686 PR rtl-optimization/64348
5687 * lra-constraints.c (split_reg): Fix caller-save store/restore
5688 instruction generation.
5690 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
5692 PR gcov-profile/61790
5693 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
5694 long long. Fallback to int64_t if host doesn't have long long and
5695 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
5697 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5699 PR tree-optimization/63989
5700 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
5702 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
5703 (get_stridx): If we don't have a record for certain SSA_NAME,
5704 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
5705 constant offset, call get_stridx_plus_constant.
5706 (get_stridx_plus_constant): New function.
5707 (zero_length_string): Don't use get_stridx here.
5711 * dse.c (struct insn_info): Mention frame_read set also
5712 before reload for tail calls on some targets.
5713 (scan_insn): Revert 2014-12-22 change. Set frame_read
5714 also before reload for tail calls if
5715 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
5716 instead of add_non_frame_wild_read for non-const/memset
5717 tail calls after reload.
5719 2015-01-08 Jason Merrill <jason@redhat.com>
5721 * ubsan.c (do_ubsan_in_current_function): New.
5722 (pass_ubsan::gate): Use it.
5723 * ubsan.h: Declare it.
5724 * convert.c (convert_to_integer): Use it.
5726 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5729 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
5730 compare_code when it is unconditionally overwritten afterwards.
5731 Use ix86_reverse_condition instead of reverse_condition. Don't
5732 change code if *reverse_condition* returned UNKNOWN and don't
5733 swap ct/cf and negate diff in that case.
5735 2015-01-08 Mike Stump <mikestump@comcast.net>
5737 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
5738 (pass_tsan_O0::gate): Likewise.
5739 * extend.texi (Function Attributes): Add no_sanitize_thread
5742 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
5744 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
5745 for registering builtins.
5746 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
5747 add -fopenmp to the argv_obstack used when invoking
5750 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
5751 add "-m32" or "-m64" to argv_obstack.
5752 (generate_host_descr_file): Likewise, when invoking host_compiler.
5753 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
5756 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5758 * config/sh/sh-mem.cc: Use constant as second operand when emitting
5761 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5764 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
5765 constant load if constant operand fits into I08.
5767 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5770 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
5771 and TREE_THIS_VOLATILE for MEM_REFs.
5772 (build5_stat): Fix up initialization of TREE_READONLY and
5773 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
5775 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
5778 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
5779 of r for the second alternative of the destination operand.
5781 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
5784 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
5786 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5788 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
5790 ([-fivar-visibility], [-fvisibility]): Likewise.
5792 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5794 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
5795 the file where @code, @command, etc is more appropriate.
5797 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
5799 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
5800 of -mrecip= documentation.
5802 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5805 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
5806 correct reload handler if -m32 -mpowerpc64 is used.
5808 2015-01-06 Tom de Vries <tom@codesourcery.com>
5810 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
5812 2015-01-08 Christian Bruel <christian.bruel@st.com>
5815 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
5817 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
5819 PR tree-optimization/63259
5820 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
5821 if optab exists for 16bit byteswap.
5823 2015-01-06 Jakub Jelinek <jakub@redhat.com>
5825 * opts.c (common_handle_option): Add support for
5826 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
5827 * doc/invoke.texi: Document -fno-sanitize=all,
5828 -f{,no-}sanitize-recover=all. Document that
5829 -fsanitize=float-cast-overflow is not enabled
5830 by -fsanitize=undefined. Fix up documentation
5831 of -f{,no-}sanitize-recover.
5833 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
5835 * config.gcc: Add Visium support.
5836 * configure.ac: Likewise.
5837 * configure: Regenerate.
5838 * doc/extend.texi (interrupt attribute): Add Visium.
5839 * doc/invoke.texi: Document Visium options.
5840 * doc/install.texi: Document Visium target.
5841 * doc/md.texi: Document Visium constraints.
5842 * common/config/visium: New directory.
5843 * config/visium: Likewise.
5845 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
5847 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
5848 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
5850 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
5852 * combine.c (combine_validate_cost): Do not count the cost of a
5853 split I2 twice. Do not display it twice in the dump, either.
5855 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5857 Revert parts of r219199.
5858 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
5860 ([-Wtraditional]): Restore markup on <limits.h>.
5862 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
5865 * doc/invoke.texi: Document -Wsuggest-override.
5867 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
5869 PR rtl-optimization/64287
5870 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
5871 (process_options): Disable flag_ipa_ra if profiling.
5873 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
5875 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
5877 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
5879 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
5880 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
5881 put under #if TARGET_LOOPS guard.
5883 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
5885 * config/i386/i386.c (output_387_binary_op): Use std::swap.
5887 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
5889 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
5890 * rtl.h (refers_to_regno_p): Add overload.
5892 * bt-load.c: Likewise.
5893 * combine.c: Likewise.
5894 * df-scan.c: Likewise.
5895 * sched-deps.c: Likewise.
5896 * config/s390/s390.c: Likewise.
5897 * config/m32r/m32r.c: Likewise.
5898 * config/rs6000/spe.md: Likewise.
5899 * config/rs6000/rs6000.c: Likewise.
5900 * config/pa/pa.c: Likewise.
5901 * config/stormy16/stormy16.c: Likewise.
5902 * config/cris/cris.c: Likewise.
5903 * config/arc/arc.md: Likewise.
5904 * config/arc/arc.c: Likewise.
5905 * config/sh/sh.md: Likewise.
5906 * config/sh/sh.c: Likewise.
5907 * config/frv/frv.c: Likewise.
5909 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5912 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
5913 call as cleanup of the whole body.
5914 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
5915 * tsan.c (replace_func_exit): New function.
5916 (instrument_func_exit): Moved earlier.
5917 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
5918 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
5920 (tsan_pass): Don't call instrument_func_exit.
5921 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
5922 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
5926 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
5927 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
5928 it to libubsan handler instead of EXPR. Fold comparisons earlier,
5929 if the result is integer_zerop, return NULL_TREE.
5930 * convert.c (convert_to_integer): Pass expr as ARG.
5932 PR tree-optimization/64465
5933 * tree-inline.c (redirect_all_calls): During inlining
5934 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
5935 changed the stmt to a non-throwing call.
5937 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
5939 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
5940 etc markup throughout the file.
5942 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5944 Enable experimental TSAN support for Ada.
5945 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
5947 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5949 PR tree-optimization/64494
5950 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
5951 clear SSA_NAME_ANTI_RANGE_P flag.
5953 2015-01-05 Marek Polacek <polacek@redhat.com>
5955 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
5957 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5959 Update copyright years.
5961 * gcc.c (process_command): Update copyright notice dates.
5962 * gcov-dump.c: Ditto.
5964 * doc/cpp.texi: Bump @copying's copyright year.
5965 * doc/cppinternals.texi: Ditto.
5966 * doc/gcc.texi: Ditto.
5967 * doc/gccint.texi: Ditto.
5968 * doc/gcov.texi: Ditto.
5969 * doc/install.texi: Ditto.
5970 * doc/invoke.texi: Ditto.
5972 * auto-profile.c, auto-profile.h: Fix up Copyright line.
5974 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
5976 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
5978 ([-fvtable-verify], [-fvtv-debug]): Likewise.
5979 ([-Wabi]): Likewise.
5980 ([-fmessage-length]): Likewise.
5981 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
5982 ([-Wno-discarded-qualifiers]): Likewise.
5983 ([-Wnodiscarded-array-qualifiers]): Likewise.
5984 ([-Wno-virtual-move-assign]): Likewise.
5985 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
5986 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
5987 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
5988 ([-fsanitize-undefined-trap-on-error]): Likewise.
5989 ([-floop-interchange]): Likewise.
5990 ([-ftree-coalesce-inlined-vars]): Likewise.
5991 ([-fvect-cost-model]): Likewise.
5992 ([-flto]): Likewise.
5993 ([--param]): Likewise.
5994 (Spec Files): Likewise.
5995 ([-mstrict-align]): Likewise.
5996 ([-mfix-cortex-a53-835769]): Likewise.
5997 ([-march], [-mtune]): Likewise.
5998 ([-mpic-register]): Likewise.
5999 ([-munaligned-access]): Likewise.
6000 ([-msp8]): Likewise.
6001 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
6002 (AVR Built-in Macros): Likewise.
6003 ([-mpreferred-stack-boundary]): Likewise.
6004 ([-mtune-crtl]): Likewise.
6005 ([-mashf]): Likewise.
6006 ([-mmcu=]): Likewise.
6007 ([-minrt]): Likewise.
6008 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
6009 ([-mupper-regs]): Likewise.
6010 ([-matomic-model]): Likewise.
6011 ([-mdiv]): Likewise.
6012 ([-mzdcbranch]): Likewise.
6013 ([-mdisable-callt]): Likewise.
6014 ([-msoft-float]): Likewise.
6015 ([-m8byte-align]): Likewise.
6016 ([-fstack-reuse]): Likewise.
6018 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6020 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
6021 Fix markup, light copy-editing.
6022 ([-fauto-profile]): Rewrite to fix formatting and content
6025 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6027 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
6028 Copy-edit description.
6029 ([-fisolate-erroneous-paths-attribute]): Likewise.
6030 * common.opt (fisolate-erroneous-paths-dereference):
6031 Copy-edit description.
6032 (fisolate-erroneous-paths-attribute): Likewise.
6034 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6036 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
6039 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6041 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
6042 ([-fvtv-debug]): Likewise.
6043 ([-Wc++-compat]): Likewise.
6044 ([-Wc++11-compat]): Likewise.
6045 ([-Wc++14-compat]): Likewise.
6046 ([-Wno-sized-deallocation]): Likewise.
6047 ([-femit-class-debug-always]): Likewise.
6048 ([-femit-struct-debug-detailed]): Likewise.
6049 ([-fno-keep-inline-dllexport]): Likewise.
6050 ([-fira-algorithm]): Likewise.
6051 ([-fira-region]): Likewise.
6052 ([-flra-remat]): Likewise.
6053 ([-fipa-ra]): Likewise.
6054 ([-fhoist-adjacent-loads]): Likewise.
6055 ([-fisolate-erroneous-paths-dereference]): Likewise.
6056 ([-fisolate-erroneous-paths-attribute]): Likewise.
6057 ([-ftree-switch-conversion]): Likewise.
6058 ([-ftree-tail-merge]): Likewise.
6059 ([-ftree-loop-if-convert]): Likewise.
6060 ([-ftree-loop-if-convert-stores]): Likewise.
6061 ([-ftree-loop-distribution]): Likewise.
6062 ([-ftree-loop-distribute-patterns]): Likewise.
6063 ([-flto-compression-level]): Likewise.
6064 ([-flto-report]): Likewise.
6065 ([-flto-report-wpa]): Likewise.
6066 ([-fuse-linker-plugin]): Likewise.
6067 ([-mfix-cortex-a53-835769]): Likewise.
6068 ([-mno-fix-cortex-a53-835769]): Likewise.
6069 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
6070 explicit listing; add a note to the discussion indicating they
6071 exist. Reorder table to group similar options. Add missing
6072 @opindex entries. Add @need commands throughout the table to
6073 allow it to be split across multiple pages.
6074 ([-m8bit-idiv]): Fix @opindex.
6075 ([-mavx256-split-unaligned-load]): Likewise.
6076 ([-mavx256-split-unaligned-store]): Likewise.
6077 ([-mstack-protector-guard]): Likewise.
6078 ([-mcpu=]): Likewise.
6079 ([-mcpu]): Likewise.
6080 ([-mpointer-size=]): Likewise.
6082 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
6084 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
6085 instead of `m' constraint. Likewise for unnamed movb comparison
6086 patterns using reg_before_reload_operand predicate.
6087 * config/pa/predicates.md (reg_before_reload_operand): Tighten
6088 predicate to reject register index and LO_SUM DLT memory forms
6091 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
6093 * doc/invoke.texi (Option Summary): Fix spelling of
6094 -fdevirtualize-at-ltrans.
6095 ([-fdevirtualize]): Fix markup.
6096 ([-fdevirtualize-speculatively]): Fix typo.
6097 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
6099 * common.opt (fdevirtualize-at-ltrans): Likewise.
6100 * ipa-devirt.c: Fix typos in comments throughout the file.
6101 (ipa_devirt): Fix typos in format strings for dump output.
6103 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
6105 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
6106 discussion of defaults, light copy-editing.
6108 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6110 * tsan.c (instrument_expr): corrected previous checkin.
6112 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6114 Instrument bit field and unaligned accesses for TSAN.
6115 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
6116 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
6117 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
6118 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
6119 unaligned memory regions.
6121 2015-01-01 Anthony Green <green@moxielogic.com>
6123 * config/moxie/predicates.md (moxie_general_movsrc_operand):
6124 Restrict move source register offsets to 16 bits.
6126 Copyright (C) 2015 Free Software Foundation, Inc.
6128 Copying and distribution of this file, with or without modification,
6129 are permitted in any medium without royalty provided the copyright
6130 notice and this notice are preserved.