1 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-inline-analysis.c (check_callers): Check
4 node->can_remove_if_no_direct_calls_and_refs_p.
5 (growth_likely_positive): Reorganize to call
6 can_remove_if_no_direct_calls_p later.
7 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
8 will_be_removed_from_program_if_no_direct_calls_p): Add
10 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
11 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12 Handle inliner case correctly.
14 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16 PR tree-optimization/63743
17 * cfgexpand.c (reorder_operands): Also reorder if only second operand
18 had its definition forwarded by TER.
20 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
23 * ipa-utils.h (types_odr_comparable): Add strict argument.
24 * ipa-devirt.c: Fix whitespace;
26 (odr_name_hasher, odr_vtable_hasher): New hashers.
27 (can_be_name_hashed_p): New predicate.
28 (hash_type_name): remove.
30 (odr_name_hasher::hash): new.
31 (can_be_vtable_hashed_p): New.
32 (hash_odr_vtable): New.
33 (odr_vtable_hasher::hash): New.
34 (types_same_for_odr): Add strict parameter.
35 (types_odr_comparable): Likewise.
36 (odr_name_hasher::equal): New.
37 (odr_vtable_hasher::equal): New.
38 (odr_name_hasher::remove): New.
39 (odr_hash_type): Change to hash_table<odr_name_hasher>.
40 (odr_vtable_hash_type): New.
41 (odr_vtable_hash): New.
42 (odr_subtypes_equivalent_p): Do strict comparsion.
43 (add_type_duplicate): Merge type names; cleanup; avoid type
45 (register_odr_type): Initialize vtable hash.
46 (build_type_inheritance_graph): Likewise
47 (get_odr_type): Reorg to use two hashes.
48 (dump_possible_polymorphic_call_targets): Move sanity check after debug
50 (ipa_devirt): Dump type_inheritance_graph.
51 (types_same_for_odr): Add strict mode.
53 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
56 * cgraph.h (symtab_node): Add definition_alignment,
57 can_increase_alignment_p and increase_alignment.
58 * symtab.c (symtab_node::can_increase_alignment_p,
59 increase_alignment_1, symtab_node::increase_alignment,
60 symtab_node::definition_alignment): New.
61 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
62 can_increase_alignment_p.
63 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
64 * tree-vect-stmts.c (ensure_base_align): Likewise.
65 * varasm.c (function_section_1): Use definition_alignment.
66 (assemble_start_function): Likewise.
67 (emit_local): likewise.
68 (build_constant_desc): Likewsie.
69 (output_constant_def_contents): Likewise.
70 (place_block_symbol): Likewise.
71 (output_object_block): Likewise.
73 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
76 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
77 when outputting debug.
79 2015-03-07 Marek Polacek <polacek@redhat.com>
80 Martin Uecker <uecker@eecs.berkeley.edu>
83 * doc/invoke.texi: Update description of -fsanitize=bounds.
85 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
87 * tree-ssa-phiopt.c (neg_replacement): Remove.
88 (tree_ssa_phiopt_worker): Remove negate optimization.
90 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
93 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
95 2015-03-06 Richard Biener <rguenther@suse.de>
98 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
99 and liveout_obstack members.
100 (calculate_live_on_exit): Remove.
101 (calculate_live_ranges): Change declaration.
102 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
103 (new_tree_live_info): Adjust.
104 (calculate_live_ranges): Delete livein when not wanted.
105 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
106 Deal with partly deleted live info.
107 (loe_visit_block): Remove temporary bitmap by using
108 bitmap_ior_and_compl_into.
109 (live_worklist): Adjust accordingly.
110 (calculate_live_on_exit): Make static.
111 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
112 we do not need livein.
114 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
116 * real.c (real_from_string): Fix typo in assertion.
118 2015-03-06 Alex Velenko <alex.velenko@arm.com>
120 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
123 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
125 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
127 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
130 * lra-assigns.c (find_hard_regno_for): Rename to
131 find_hard_regno_for_1. Add a new parameter.
132 (find_hard_regno_for): New function using find_hard_regno_for_1.
134 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
136 PR rtl-optimization/65067
137 * expmed.c (store_bit_field, extract_bit_field): Reworked the
138 strict volatile bitfield handling.
140 2015-03-05 Martin Liska <mliska@suse.cz>
143 * ipa-icf.c (sem_variable::equals): Compare variables types.
145 2015-03-05 Richard Henderson <rth@redhat.com>
147 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
148 correctly check weak symbol binding.
150 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
153 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
156 2015-03-05 Martin Liska <mliska@suse.cz>
158 * ipa-inline.c (inline_small_functions): Set default value to
159 prevent warning during bootstrap.
160 * tree.h: Add pragma guard that ignores false positives during
163 2015-03-05 Richard Biener <rguenther@suse.de>
165 PR tree-optimization/65310
166 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
167 Properly preserve alignment of the base of the access.
169 2015-03-05 Richard Biener <rguenther@suse.de>
172 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
173 Compare dependence info.
175 2015-03-05 Richard Biener <rguenther@suse.de>
178 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
180 (walk_ssa_copies): Revert last chage. Instead do not walk
181 SSA names registered for SSA update.
183 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
186 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
187 vtable references for their containing type.
188 (sem_function::equals_wpa): Compare TYPE_RESTRICT
191 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
193 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
195 * stor-layout.c (finalize_record_size): Revert latest change.
197 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
199 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
201 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
203 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
204 for correct comdat handling.
205 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
207 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
208 (used_from_object_file_p_worker): Remove.
209 (cgraph_node::only_called_directly_or_alised): Add
210 used_from_object_file_p.
211 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
212 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
213 can_remove_if_no_direct_calls_and_refs_p.
215 2015-03-04 Nick Clifton <nickc@redhat.com>
217 * config/rl78/rl78.h (enum reg_class): Remove real registers from
218 General register class.
219 * config/rl78/rl78-real.md: Replace general register constraints
220 with real+virtual register constraints.
222 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
224 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
225 from checking for -mhtm option.
227 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
229 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
230 (struct ipa_sra_check_caller_data): Add has_thunk field.
231 (ipa_sra_check_caller): Check for thunk.
232 (ipa_sra_preliminary_function_checks): Give up on function with
234 (ipa_early_sra): Use call_for_symbol_and_aliases.
236 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
239 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
240 called for __stack_chk_guard symbol.
242 2015-03-03 DJ Delorie <dj@redhat.com>
244 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
246 (*addhi3_real): Likewise.
247 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
248 pattern to match incrementing memory.
249 * config/rl78/predicates.md (rl78_1_2_operand): New.
250 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
251 it's the same and only mem.
252 (rl78_alloc_physical_registers_op2): If there's effectively only
253 one MEM, transcode it into HL.
254 (rl78_far_p): Reject addresses that aren't legitimate.
256 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
258 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
261 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
263 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
265 Implement call0 ABI for xtensa
266 * config/xtensa/constraints.md ("a" constraint): Include stack
267 pointer in case of call0 ABI.
268 ("q" constraint): Make empty in case of call0 ABI.
269 ("D" constraint): Include stack pointer in case of call0 ABI.
270 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
271 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
273 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
275 (xtensa_regno_to_class): Make it a local variable in the
276 function xtensa_regno_to_class.
277 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
278 macro, function prototype and implementation.
279 (reg_nonleaf_alloc_order): Make it a local variable in the
280 function order_regs_for_local_alloc.
281 (xtensa_conditional_register_usage): New function.
282 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
283 (xtensa_valid_move): Allow direct moves to stack pointer
284 register in call0 ABI.
285 (xtensa_setup_frame_addresses): Only spill register windows in
287 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
288 call0 ABI respectively.
289 (xtensa_function_arg_1): Only mark a7 register for copying in
291 (xtensa_call_save_reg): New function.
292 (compute_frame_size): Add space for callee saved register
293 storage to the frame size in call0 ABI.
294 (xtensa_expand_prologue): Generate code to set up stack frame
295 and save callee-saved registers in call0 ABI.
296 (xtensa_expand_epilogue): New function.
297 (xtensa_set_return_address): New function.
298 (xtensa_return_addr): Calculate return address in call0 ABI.
299 (xtensa_builtin_saveregs): Only mark a7 register for copying and
300 emit copying code in windowed ABI.
301 (order_regs_for_local_alloc): Add preferred register allocation
302 order for non-leaf function in call0 ABI.
303 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
304 (xtensa_asm_trampoline_template): Add trampoline generation for
306 (xtensa_trampoline_init): Add trampoline initialization for
308 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
310 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
311 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
312 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
313 ABI call-used registers.
314 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
315 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
317 (REG_CLASS_CONTENTS): Include all registers into the preferred
318 reload registers set, adjust the set in the
319 xtensa_conditional_register_usage.
320 (xtensa_regno_to_class): Drop variable declaration.
321 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
323 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
325 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
326 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
327 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
328 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
329 location in call0 ABI.
330 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
331 stack adjustment size when handling exception.
332 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
333 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
335 ("return" pattern): Generate ret.n/ret in call0 ABI.
336 ("epilogue" pattern): Expand epilogue.
337 ("nonlocal_goto" pattern): Use default in call0 ABI.
338 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
339 emit eh_set_a0_* depending on ABI.
340 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
341 ("eh_set_a0_call0", "blockage"): New patterns.
343 2015-03-03 Martin Liska <mliska@suse.cz>
346 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
348 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
351 * config/rs6000/rs6000-tables.opt: Regenerate table.
353 2015-03-03 Renlin Li <renlin.li@arm.com>
355 * doc/md.texi (@item ^): Change ? into ^.
357 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
359 * doc/tm.texi: Regenerated.
361 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
363 * builtins.c (expand_builtin_return_addr): Add
364 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
366 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
368 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
370 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
372 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
375 2015-03-03 Martin Jambor <mjambor@suse.cz>
376 Eric Botcazou <ebotcazou@adacore.com>
378 * tree-sra.c (ipa_sra_check_caller_data): New type.
379 (has_caller_p): Removed.
380 (ipa_sra_check_caller): New function.
381 (ipa_sra_preliminary_function_checks): Use it.
383 2015-03-03 Martin Liska <mliska@suse.cz>
385 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
386 instead of if branch.
388 2015-03-03 Martin Liska <mliska@suse.cz>
391 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
393 2015-03-23 Jeff Law <law@redhat.com>
395 PR tree-optimization/65241
396 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
397 hash table if INSERT is true.
399 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
402 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
404 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
407 * config/avr/avr.c (context.h, tree-pass.h): Include them.
408 (avr_pass_data_recompute_notes): New static variable.
409 (avr_pass_recompute_notes): New class.
410 (avr_register_passes): New static function.
411 (avr_option_override): Call it.
413 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
415 Fix various problems with specs file generation.
418 * config.gcc (extra_gcc_objs) [avr]: Remove.
419 * config/avr/driver-avr.c: Remove file.
420 * config/avr/t-avr (driver-avr.o): Remove rule.
421 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
422 INCLUDES to build. Depend on TM_H.
423 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
424 build warnings. Fix non-matching types and non-existing %-codes.
426 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
427 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
428 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
429 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
430 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
431 (LIBGCC_SPEC): Remove definitions.
433 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
435 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
436 to create a register in testing mode.
438 2015-03-03 Martin Liska <mliska@suse.cz>
439 Jan Hubicka <hubicka@ucw.cz>
442 * cgraph.c (cgraph_node::has_thunk_p): New function.
443 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
444 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
445 (sem_function::merge): Assert is changed.
447 2015-03-03 Martin Liska <mliska@suse.cz>
448 Martin Jambor <mjambor@suse.cz>
451 * ipa-icf.c (sem_item_optimizer::execute): Change function
452 return value to boolean.
453 (sem_item_optimizer::merge_classes): Likewise.
454 (ipa_icf_driver): Return TODO_remove_functions in case there's
455 a merge operation processed.
456 * ipa-icf.h: Change function return value to boolean.
458 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
461 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
462 processor type for 64-bit little endian PowerPC.
464 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
465 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
466 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
467 printing built-in mask so it does not pass NULL pointers.
469 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
472 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
475 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
476 !ISA_HAS_FP_CONDMOVE.
478 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
480 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
483 2015-03-02 Ulrich Drepper <drepper@gmail.com>
485 * doc/invoke.texi (Options for Code Generation Conventions):
486 Fix URL of DSO paper.
488 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
491 * ipa-inline.c (check_callers): Looks for recursion.
492 (inline_to_all_callers): Give up on uninlinable or recursive edges.
493 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
494 summary of inline clones.
495 (do_estimate_growth_1): Fix recursion check.
497 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
500 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
503 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
504 Aldy Hernandez <aldyh@redhat.com>
507 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
508 when checking TYPE_BINFO.
510 2015-03-02 Richard Biener <rguenther@suse.de>
513 * ipa-icf-gimple.c: Include builtins.h.
514 (func_checker::compare_memory_operand): Compare base alignment.
516 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
519 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
520 are never passed by reference.
522 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
525 * tree-chkp.c (chkp_check_lower): Don't check against
526 zero bounds for already instrumented functions.
527 (chkp_check_upper): Likewise.
528 (chkp_fini): Clean pass local data to avoid wrong reusage.
530 2015-02-28 Martin Liska <mliska@suse.cz>
531 Jan Hubicka <hubicka@ucw.cz>
533 * ipa-icf.c (sem_variable::equals): Improve debug output;
534 get variable constructor.
535 (sem_variable::parse): Do not filter out too early; give up on
536 volatile and register vars.
537 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
539 * ipa-icf.h (sem_variable::init): Do not set ctor.
540 (sem_variable::ctor): Remove.
542 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
545 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
547 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
549 * ipa-icf.c: Include stor-layout.h
550 (sem_function::compare_cgraph_references): Rename to ...
551 (sem_item::compare_cgraph_references): ... this one.
552 (sem_variable::equals_wpa): New function
553 (sem_variable::equals): Do not check stuff already verified by
555 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
556 * ipa-icf.h (sem_item): Add compare_cgraph_references.
557 (sem_function): Remove compare_cgraph_references.
558 (sem_variable): Turns equals_wpa into non-inline.
560 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
562 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
563 (sem_item::add_expr): New function.
564 (sem_function::hash_stmt): Handle operands of most statements.
565 (sem_variable::get_hash): Hash the actual constructor.
566 * ipa-icf.h (sem_item): Add add_expr.
567 (sem_function): Update prototype of hash_stmt
569 2015-02-28 Martin Liska <mliska@suse.cz>
570 Jan Hubicka <hubicka@ucw.cz>
573 * ipa-icf-gimple.c (func_checker::compare_function_decl):
575 (func_checker::compare_variable_decl): Skip symtab vars.
576 (func_checker::compare_cst_or_decl): Update.
577 * ipa-icf.c (sem_function::parse): Do not consider aliases.
578 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
579 use correct symtab predicates.
580 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
581 (sem_variable::parse): Update comment.
582 (sem_item_optimizer::build_graph): Consider ultimate aliases
585 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
587 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
590 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
592 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
593 (sem_variable::merge) Likewise.
595 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
597 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
598 target; also match flag_ipa_devirt.
600 2015-03-01 Martin Liska <mliska@suse.cz>
601 Jan Hubicka <hubicka@ucw.cz>
603 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
604 Validate variable alignment.
605 * ipa-icf.c (sem_function::equals_private): Be more precise
606 about non-common function attributes.
607 (sem_variable::equals): Likewise.
609 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
612 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
613 across COMDAT group boundary.
615 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
618 * ipa-icf.c (clear_decl_rtl): New function.
619 (sem_function::merge): Clear RTL before forming alias.
620 (sem_variable::merge): Clear RTL before forming alias.
622 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
625 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot
628 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
630 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
633 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
635 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
636 a typo in the description.
638 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
641 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
642 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
643 * lra-constraints.c: Include "params.h".
644 (EBB_PROBABILITY_CUTOFF): Use
645 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
646 (lra_inheritance): Use '<' instead of '<=' for
647 EBB_PROBABILITY_CUTOFF.
648 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
651 2015-02-27 Martin Liska <mliska@suse.cz>
653 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
654 vector length condition.
656 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
658 * doc/extend.texi (x86 transactional memory intrinsics):
659 Reorganize discussion of _xbegin. Clarify that the return
660 value is a bit mask. Expand example and move to end of section.
662 2015-02-26 Jakub Jelinek <jakub@redhat.com>
663 Aldy Hernandez <aldyh@redhat.com>
665 PR rtl-optimization/65220
666 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
668 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
671 * lra-remat.c (update_scratch_ops): New.
673 * lra.c (lra_register_new_scratch_op): New. Take code from ...
674 (remove_scratches): ... here.
675 * lra-int.h (lra_register_new_scratch_op): New prototype.
677 2015-02-27 Marek Polacek <polacek@redhat.com>
680 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
681 -Wformat-signedness anymore.
683 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
685 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
687 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
689 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
691 * config/s390/s390.c (enum s390_builtin):
692 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
693 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
694 (s390_init_builtins): Generate new builtin functions.
695 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
696 (s390_sfpc, s390_efpc): New pattern definitions.
698 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
700 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
701 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
702 (s390_builtin_decls): New array.
703 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
704 (s390_builtin_decl): New function.
705 (TARGET_BUILTIN_DECL): Define macro.
707 2015-02-27 Richard Biener <rguenther@suse.de>
710 * builtins.c (get_object_alignment_2): Make sure to re-apply
711 the ANDed mask after recursing to its operand gets us a new
712 misalignment bit position.
714 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
715 Martin Liska <mliska@suse.cz>
718 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
719 Use address_matters_p.
720 (redirect_all_callers, set_addressable): New functions.
721 (sem_function::merge): Reorganize and fix merging issues.
722 (sem_variable::merge): Likewise.
723 (sem_variable::compare_sections): Remove.
724 * common.opt (fmerge-all-constants, fmerge-constants): Remove
726 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
728 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
730 (address_matters_1): New function.
731 (symtab_node::address_matters_p): New function.
732 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
733 check for merged flag.
734 * cgraph.h (address_matters_p): Declare.
735 (symtab_node::address_taken_from_non_vtable_p): Remove.
736 (symtab_node::address_can_be_compared_p): New method.
737 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
738 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
740 (comdat_can_be_unshared_p_1) Use address_matters_p.
741 (update_vtable_references): Fix formating.
742 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
743 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
744 * cgraphclones.c: Preserve merged and icf_merged flags.
746 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
748 * doc/extend.texi (Function Attributes): Fix spelling and typos.
749 (Label Attributes): Likewise.
750 (Cilk Plus Builtins): Likewise.
751 (ARC SIMD Built-in Functions): Likewise.
752 (ARM C Language Extensions (ACLE)): Likewise.
753 (PowerPC Built-in Functions): Likewise.
754 (PowerPC Hardware Transactional Memory Built-in Functions):
757 2015-02-26 Jakub Jelinek <jakub@redhat.com>
759 PR tree-optimization/65216
760 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
761 new stmt and new SSA_NAME for lhs whenever the arguments have
762 changed and weren't just swapped. Fix comment typo.
764 PR tree-optimization/65215
765 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
766 for PDP endian targets.
767 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
768 Fix up formatting issues.
769 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
770 size is smaller than the original, adjust MEM_REF offset by the
771 difference of sizes. Use is_gimple_mem_ref_addr instead of
772 is_gimple_min_invariant test to avoid adding address temporaries.
774 2015-02-26 Martin Liska <mliska@suse.cz>
775 Jan Hubicka <hubicka@ucw.cz>
778 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
779 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
780 (sem_item_optimizer::process_cong_reduction): Include division by
781 sensitive references.
782 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
783 * ipa-ref.c (ipa_ref::address_matters_p): New function.
784 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
786 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
789 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
791 * config/avr/avr.c: Same.
792 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
793 Refuse any constant address not in 0..0xbf.
794 * config/avr/avr.md (*mov<mode>, *movsf): Remove
795 tiny_valid_direct_memory_access_range from insn conditions.
796 (mov<mode>): Don't special-case expansion of avrtiny addresses.
798 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
801 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
802 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
803 * config/sh/predicates.md (const_logical_operand): New predicate.
804 * config/sh/sh.md: Add new peephole2 patterns.
806 2015-02-26 Marek Polacek <polacek@redhat.com>
809 * ipa-inline.c (early_inliner): Recompute inline parameters.
811 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
814 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
815 instructions with TImode operands are included in the analysis.
817 2015-02-26 Sebastian Pop <s.pop@samsung.com>
819 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
820 of an EDGE_FSM_THREAD.
822 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
824 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
826 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
829 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
831 2015-02-26 Sebastian Pop <s.pop@samsung.com>
833 PR tree-optimization/65048
834 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
835 (thread_through_all_blocks): Call valid_jump_thread_path.
836 Remove invalid FSM jump-thread paths.
838 2015-02-26 Jakub Jelinek <jakub@redhat.com>
840 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
841 (ipa_write_optimization_summaries): Likewise.
842 * tree-streamer.h: Include data-streamer.h.
843 (streamer_mode_table): Declare extern variable.
844 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
845 * lto-streamer-out.c (lto_output_init_mode_table,
846 lto_write_mode_table): New functions.
847 (produce_asm_for_decls): Call lto_write_mode_table when streaming
849 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
850 (lto_create_simple_input_block): Add mode_table argument to the
851 lto_input_block constructors.
852 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
854 * data-streamer-in.c (string_for_index): Likewise.
855 * ipa-inline-analysis.c (inline_read_section): Likewise.
856 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
857 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
858 * lto-streamer-in.c (lto_read_body_or_constructor,
859 lto_input_toplevel_asms): Likewise.
860 (lto_input_mode_table): New function.
861 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
862 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
863 Use bp_pack_machine_mode.
864 * real.h (struct real_format): Add name field.
865 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
866 (class lto_input_block): Add mode_table member.
867 (lto_input_block::lto_input_block): Add mode_table_ argument,
868 initialize mode_table.
869 (struct lto_file_decl_data): Add mode_table field.
870 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
871 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
872 unpack_ts_decl_common_value_fields,
873 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
874 * tree-streamer.c (streamer_mode_table): New variable.
875 * real.c (ieee_single_format, mips_single_format,
876 motorola_single_format, spu_single_format, ieee_double_format,
877 mips_double_format, motorola_double_format,
878 ieee_extended_motorola_format, ieee_extended_intel_96_format,
879 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
880 ibm_extended_format, mips_extended_format, ieee_quad_format,
881 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
882 decimal_single_format, decimal_double_format, decimal_quad_format,
883 ieee_half_format, arm_half_format, real_internal_format): Add name
885 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
887 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
890 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
891 reordering for selective scheduling.
893 2015-02-26 Terry Guo <terry.guo@arm.com>
895 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
896 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
897 (arm_arch_no_volatile_ce): Declare new global variable.
898 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
899 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
900 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
901 (TARGET_NO_VOLATILE_CE): New macro.
902 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
903 volatile memory access in IT block
905 2015-02-25 Uros Bizjak <ubizjak@gmail.com>
908 * doc/install.texi (Specific, alpha*-*-*): Document that binutils 2.25
909 or newer are required.
911 2015-02-25 Kai Tietz <ktietz@redhat.com>
913 PR tree-optimization/61917
914 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
915 that reduc_def_stmt is null.
917 2015-02-25 Martin Liska <mliska@suse.cz>
919 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
920 hard register variables.
922 2015-02-25 Kai Tietz <ktietz@redhat.com>
925 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
926 (symtab::noninterposable_alias): Likewise.
928 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
931 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
933 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
935 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
938 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
939 as split condition; force split via '#' in output pattern.
941 2015-02-25 Richard Biener <rguenther@suse.de>
942 Kai Tietz <ktietz@redhat.com>
944 PR tree-optimization/61917
945 * tree-vect-loop.c (vectorizable_reduction): Allow
946 vect_internal_def without reduction to exit graceful.
948 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
951 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
952 only with NONDEBUG_INSN_P.
954 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
956 Use variadic macros with avr-log.c.
958 * config/avr/avr-protos.h (avr_vdump): New prototype.
959 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
960 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
961 * config/avr/avr-log.c: Adjust comments.
962 (avr_vdump): New function.
963 (avr_vadump): Pass caller as 2nd argument instead of format string.
964 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
965 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
967 2015-02-25 Jakub Jelinek <jakub@redhat.com>
970 * target.def (target_option_stream_in): New target hook.
971 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
972 targetm.target_option.post_stream_in if non-NULL.
973 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
974 * doc/tm.texi: Updated.
975 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
977 (TARGET_OPTION_POST_STREAM_IN): Redefine.
979 2015-02-24 Jeff Law <law@redhat.com>
982 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
983 of operand 0 and operand 2.
984 (zero_cost_loop_end, loop_end): Similarly.
986 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
988 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
991 2015-02-24 DJ Delorie <dj@redhat.com>
993 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as
995 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
996 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
997 instead of hardcoding SImode.
999 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
1001 * omp-low.c (create_omp_child_function): Tag entrypoint
1002 functions with a special attribute.
1004 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1007 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
1009 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
1011 PR rtl-optimization/65123
1012 * lra-remat.c (operand_to_remat): Check hard regs in insn
1015 2015-02-24 Nick Clifton <nickc@redhat.com>
1017 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
1020 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1023 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
1024 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
1025 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
1026 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
1027 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
1028 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
1029 (BUILT_IN_GOACC_PARALLEL): Specify as
1030 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
1031 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
1033 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
1034 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
1035 Remove function types.
1036 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
1037 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
1038 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
1041 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
1043 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
1045 2015-02-24 Jakub Jelinek <jakub@redhat.com>
1047 PR tree-optimization/65170
1048 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
1049 if val[1] < 0, clear also val[2] and return 3.
1051 2015-02-24 Alan Modra <amodra@gmail.com>
1054 * config/rs6000/rs6000.c (get_memref_parts): Only return true
1055 when *base is a reg. Handle nested plus addresses. Simplify
1058 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
1060 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
1061 use natural alignment when optimizing for size.
1063 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
1066 * config/sh/sh.md (movsicc_true+3): Remove peephole.
1067 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
1068 * config/sh/sh.c (replace_n_hard_rtx): Remove.
1070 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
1073 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
1074 too big for a wide_int. Implement missing wrapping operation.
1076 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
1079 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
1080 instead of const_int 4294901760.
1082 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
1084 * config/avr/t-avr: Fix typo in comment.
1086 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
1088 * doc/rtl.texi (fma): Clarify documentation.
1090 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
1093 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
1094 over input_location.
1096 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
1098 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1099 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
1100 restrict alignments to absolute_biggest_alignment.
1101 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
1103 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
1104 * doc/tm.texi: Regenerate.
1105 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
1107 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
1110 * ira-color.c (color_pass): Prevent splitting multi-register
1113 2015-02-20 Richard Biener <rguenther@suse.de>
1115 PR tree-optimization/65136
1116 * tree-ssa-propagate.c: Include cfgloop.h.
1117 (replace_phi_args_in): Avoid replacing loop latch edge PHI
1118 arguments with constants.
1120 2015-02-20 Jakub Jelinek <jakub@redhat.com>
1121 Martin Liska <mliska@suse.cz>
1124 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
1125 don't try to create_thunk if stdarg_p. If
1126 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
1127 redirect_callers if possible.
1128 (sem_item_optimizer::execute): Call unregister_hooks here...
1129 (ipa_icf_driver): ... instead of here.
1131 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1133 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
1134 Mark operand 0 as earlyclobber in 2nd alternative.
1135 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
1136 Write negated shift amount into QI lowpart operand 0 and use it
1138 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
1140 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
1142 * cgraph.h (clone_function_name_1): Declare.
1143 * cgraphclones.c (clone_function_name_1): New function.
1144 (clone_function_name): Use it.
1145 * lto-partition.c: Include "stringpool.h".
1146 (must_not_rename, maybe_rewrite_identifier,
1147 validize_symbol_for_target): New static functions.
1148 (privatize_symbol_name): Use must_not_rename.
1149 (promote_symbol): Call validize_symbol_for_target.
1150 (lto_promote_cross_file_statics): Likewise.
1151 (lto_promote_statics_nonwpa): Likewise.
1153 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
1156 * config/avr/avr.md (pushhi_insn): New insn.
1157 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
1159 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
1160 Jakub Jelinek <jakub@redhat.com>
1162 * tree-streamer.c (preload_common_nodes): Don't preload
1163 TI_VA_LIST* for offloading.
1164 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
1167 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
1169 * config/pa/pa.c (pa_emit_move_sequence): Always force
1170 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
1173 * config/pa/pa.c (pa_reloc_rw_mask): New function.
1174 (TARGET_ASM_RELOC_RW_MASK): Define.
1175 (pa_cannot_force_const_mem): Revert previous change.
1177 2015-02-19 Martin Jambor <mjmabor@suse.cz>
1178 Jan Hubicka <hubicka@ucw.cz>
1181 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
1182 across jump functions.
1184 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
1186 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
1188 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
1190 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
1192 2015-02-19 Richard Henderson <rth@redhat.com>
1195 * varasm.c (default_binds_local_p_2): Don't test node->definition;
1196 test DECL_EXTERNAL independent of symtab_node.
1198 2015-02-19 Jakub Jelinek <jakub@redhat.com>
1201 * varpool.c (varpool_node::get_constructor): Return early
1202 if this->lto_file_data is NULL.
1204 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1206 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
1207 (rank_for_schedule_debug): Update.
1208 (ready_sort): Make static. Move sorting logic to ...
1209 (ready_sort_debug, ready_sort_real): New static functions.
1210 (schedule_block): Sort both debug insns and real insns in preparation
1211 for ready list trimming. Improve debug output.
1212 * sched-int.h (ready_sort): Remove global declaration.
1214 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
1216 * ipa-icf.c (sem_function::equals_private): Adjust.
1217 (sem_function::bb_dict_test): Take a vec<int> * instead of
1219 * ipa-icf.h (bb_dict_test): Likewise.
1221 2015-02-18 Jakub Jelinek <jakub@redhat.com>
1223 PR gcov-profile/64634
1224 * tree-eh.c (frob_into_branch_around): Fix up typos
1225 in function comment.
1226 (lower_catch): Put eh_seq resulting from EH lowering of
1227 the cleanup sequence after the cleanup rather than before it.
1229 2015-02-18 Tom de Vries <tom@codesourcery.com>
1231 * common.opt (fstdarg-opt): New option.
1232 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
1233 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
1234 (@item -fstdarg-opt): New item.
1236 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
1239 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
1242 2015-02-18 Jakub Jelinek <jakub@redhat.com>
1244 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
1246 (ALL_HOST_OBJS): Add mkoffload.o.
1247 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
1249 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
1251 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
1252 (compare_virtual_tables): Be smarter about skipping typeinfos;
1253 do sane output on virtual table table mismatch.
1254 (warn_odr): Be ready for forward declarations of enums;
1255 output sane info on base mismatch and virtual table mismatch.
1256 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
1257 when only one type is polymorphic.
1258 (get_odr_type): Fix hashtable corruption.
1259 (dump_odr_type): Dump mangled names.
1261 2015-02-18 Richard Biener <rguenther@suse.de>
1263 PR tree-optimization/65063
1264 * tree-predcom.c (determine_unroll_factor): Return 1 if we
1265 have replaced looparound PHIs.
1267 2015-02-18 Martin Liska <mliska@suse.cz>
1269 * lto-streamer.c (lto_streamer_init): Encapsulate
1270 streamer_check_handled_ts_structures with checking macro.
1272 2015-02-18 Jakub Jelinek <jakub@redhat.com>
1275 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
1276 section if !implicit_section.
1277 (cgraph_node::create_version_clone_with_body): Likewise.
1278 * trans-mem.c (ipa_tm_create_version): Likewise.
1280 2015-02-18 Richard Biener <rguenther@suse.de>
1282 PR tree-optimization/62217
1283 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
1286 2015-02-18 Marek Polacek <polacek@redhat.com>
1289 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
1290 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
1291 is in range [-16K, -1]. Don't issue run-time error if
1292 (ptr > ptr + offset).
1294 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
1296 * doc/install.texi (nvptx-*-none): New section.
1297 * doc/invoke.texi (Nvidia PTX Options): Likewise.
1298 * config/nvptx/nvptx.opt: Update.
1300 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
1301 (access_check): New functions, copied from
1302 config/i386/intelmic-mkoffload.c.
1303 (main): For non-installed testing, look in all COMPILER_PATHs for
1306 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
1308 2015-02-18 Andrew Pinski <apinski@cavium.com>
1309 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1311 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
1312 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
1314 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
1316 * ipa-visibility.c (function_and_variable_visibility): Only
1317 check locality if node is not already local.
1318 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
1319 call_for_symbol_and_aliases instead of
1320 call_for_symbol_thunks_and_aliases.
1321 (ipa_inline): Likewise.
1322 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1324 * ipa.c (symbol_table::remove_unreachable_nodes): Use
1325 call_for_symbol_and_aliases.
1326 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
1327 (ipa_propagate_frequency_1): Use it; use opt_for_fn
1328 (ipa_propagate_frequency): Update.
1329 (ipa_profile): Add opt_for_fn gueards.
1331 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
1333 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
1334 * doc/invoke.texi (SH options): Document it.
1335 * config/sh/sh.c (sh_insn_length_adjustment): Check
1336 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
1338 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
1340 * common.opt (fipa-cp-alignment): New.
1341 * ipa-cp.c (ipcp_store_alignment_results): Check
1342 flag_ipa_cp_alignment.
1343 * opts.c (default_options_table): Enable -fipa-cp-alignment for
1345 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
1346 * doc/invoke.texi: Document -fipa-cp-alignment.
1348 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
1351 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
1352 to nil. Adjust comments.
1354 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
1356 * ipa-visibility.c (function_and_variable_visibility): Only
1357 check locality if node is not already local.
1358 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
1359 call_for_symbol_and_aliases instead of
1360 call_for_symbol_thunks_and_aliases.
1361 (ipa_inline): Likewise.
1362 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1364 * ipa.c (symbol_table::remove_unreachable_nodes): Use
1365 call_for_symbol_and_aliases.
1366 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
1367 (ipa_propagate_frequency_1): Use it; use opt_for_fn
1368 (ipa_propagate_frequency): Update.
1369 (ipa_profile): Add opt_for_fn guards.
1371 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
1373 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
1374 skipping of "strange" tokens.
1376 2015-02-17 Jeff Law <law@redhat.com>
1378 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
1381 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
1383 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
1384 as forcing a HARD_DEP between instructions, thereby
1385 disallowing rewriting to break dependencies.
1387 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
1389 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
1390 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
1391 variables in boundary that have no inlitalizer encoded and are
1393 * varasm.c (default_binds_local_p_2): External definitions do not
1394 count as definitions here.
1396 2015-02-16 Jeff Law <law@redhat.com>
1398 PR tree-optimization/64823
1399 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
1401 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
1402 threading through blocks with PHIs, but no statements.
1403 (thread_through_normal_block): Distinguish between blocks where
1404 we did not process all the statements and blocks with no statements.
1406 2015-02-16 Jakub Jelinek <jakub@redhat.com>
1407 James Greenhalgh <james.greenhalgh@arm.com>
1410 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
1411 section if not linkonce. Fix up formatting.
1412 (cgraph_node::create_version_clone_with_body): Copy section.
1413 * trans-mem.c (ipa_tm_create_version): Likewise.
1415 2015-02-16 Richard Biener <rguenther@suse.de>
1417 PR tree-optimization/65077
1418 * tree-ssa-structalias.c (get_constraint_for_1): Handle
1419 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
1420 (find_func_aliases): Allow float values to carry pointers again.
1422 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
1424 * doc/install.texi (Specific): Reorder targets list to put
1425 aarch64 in alphabetical order. Add a link to aarch64*-*-*
1428 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1429 David Edelsohn <dje.gcc@gmail.com>
1432 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
1433 mapping class to external variable or function reference.
1434 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
1437 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
1440 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
1441 ASM_WEAKEN_DECL if defined.
1443 2015-02-16 Richard Biener <rguenther@suse.de>
1446 * varasm.c (default_file_start): For LTO produced units
1447 emit <artificial> as file directive.
1449 2015-02-16 Richard Biener <rguenther@suse.de>
1451 PR tree-optimization/63593
1452 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
1453 stmts and releasing SSA names until...
1454 (execute_pred_commoning): ... after processing all chains.
1456 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
1459 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
1462 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
1464 * doc/bugreport.texi: Adjust section titles throughout the file
1465 to use "Title Case".
1466 * doc/extend.texi: Likewise.
1467 * doc/gcov.texi: Likewise.
1468 * doc/implement-c.texi: Likewise.
1469 * doc/implement-cxx.texi: Likewise.
1470 * doc/invoke.texi: Likewise.
1471 * doc/objc.texi: Likewise.
1472 * doc/standards.texi: Likewise.
1473 * doc/trouble.texi: Likewise.
1475 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
1477 * cgraph.h (symtab_node::has_aliases_p): Simplify.
1478 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
1479 * tree.c (lookup_binfo_at_offset): Make static.
1480 (get_binfo_at_offset): Do not shadow offset; add explanatory
1483 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
1485 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
1486 for all floading point loads and stores except those using a register
1488 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
1491 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
1493 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
1494 (do_estimate_growth_1): Record if any uninlinable edge was seen.
1495 (estimate_growth): Handle uninlinable edges correctly.
1496 (check_callers): New.
1497 (growth_likely_positive): Handle aliases correctly.
1499 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
1501 * ipa-chkp.c: Use iterate_direct_aliases.
1502 * symtab.c (resolution_used_from_other_file_p): Move inline.
1503 (symtab_node::create_reference): Fix formating.
1504 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
1505 (symtab_node::iterate_reference): Move inline.
1506 (symtab_node::iterate_referring): Move inline.
1507 (symtab_node::iterate_direct_aliases): Move inline.
1508 (symtab_node::used_from_object_file_p_worker): Inline into ...
1509 (symtab_node::used_from_object_file_p): ... this one; move inline.
1510 (symtab_node::call_for_symbol_and_aliases): Move inline;
1511 use iterate_direct_aliases.
1512 (symtab_node::call_for_symbol_and_aliases_1): New method.
1513 (cgraph_node::call_for_symbol_and_aliases): Move inline;
1514 use iterate_direct_aliases.
1515 (cgraph_node::call_for_symbol_and_aliases_1): New method.
1516 (varpool_node::call_for_node_and_aliases): Rename to ...
1517 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
1518 use iterate_direct_aliases.
1519 (varpool_node::call_for_symbol_and_aliases_1): New method.
1520 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
1521 (ipa_discover_readonly_nonaddressable_var): Update.
1522 * ipa-devirt.c: Fix formating.
1523 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
1525 (cgraph_node::call_for_symbol_and_aliases): Move inline.
1526 (cgraph_node::call_for_symbol_and_aliases_1): New function..
1527 * cgraph.h (used_from_object_file_p_worker): Remove.
1528 (resolution_used_from_other_file_p): Move inline.
1529 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
1530 (symtab_node::iterate_reference): Move inline.
1531 (symtab_node::iterate_referring): Move inline.
1532 (symtab_node::iterate_direct_aliases): Move inline.
1533 (symtab_node::used_from_object_file_p_worker): Inline into ...
1534 (symtab_node::used_from_object_file_p): Move inline.
1535 * tree-emutls.c (ipa_lower_emutls): Update.
1536 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
1537 (varpool_node::call_for_node_and_aliases): Remove.
1539 2015-02-14 Jakub Jelinek <jakub@redhat.com>
1541 PR tree-optimization/62209
1542 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
1543 op == range->exp, insert seq and gimplified code after labels
1544 instead of after the phi.
1546 2015-02-13 Jeff Law <law@redhat.com>
1549 Revert my change for tree-optimization/64823.
1551 2015-02-13 Jakub Jelinek <jakub@redhat.com>
1553 PR tree-optimization/65053
1554 * tree-ssa-phiopt.c (value_replacement): When moving assign before
1555 cond, either reset VR on lhs or set it to phi result VR.
1557 2015-02-13 Jeff Law <law@redhat.com>
1559 PR tree-optimization/64823
1560 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
1561 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
1562 threading through blocks with PHIs, but no statements.
1563 (thread_through_normal_block): Distinguish between blocks where
1564 we did not process all the statements and blocks with no statements.
1566 PR rtl-optimization/47477
1567 * match.pd (convert (plus/minus (convert @0) (convert @1): New
1568 simplifier to narrow arithmetic.
1570 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
1573 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
1574 polymorphic call info when type is not known to be preserved.
1576 2015-02-13 Maritn Jambor <mjambor@suse.cz>
1579 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
1580 (inline_call): Use it.
1582 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
1584 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
1585 GOMP_DEVICE_NVIDIA_PTX.
1587 2015-02-13 Jakub Jelinek <jakub@redhat.com>
1590 * stmt.c (emit_case_nodes): Use void_type_node instead of
1591 NULL_TREE as LABEL_DECL type.
1593 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
1595 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
1597 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
1598 symbolic references to data to be forced to constant memory on the
1601 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
1603 PR tree-optimization/65002
1604 * tree-cfg.c (pass_data_fixup_cfg): Don't update
1606 * tree-sra.c (some_callers_have_no_vuse_p): New.
1607 (ipa_early_sra): Reject functions whose callers
1608 assume function is read only.
1610 2015-02-13 Richard Biener <rguenther@suse.de>
1613 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
1614 for LTO produced CUs.
1616 2015-02-13 Bin Cheng <bin.cheng@arm.com>
1618 PR tree-optimization/64705
1619 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
1620 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
1621 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
1622 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
1623 expand_simple_operations.
1625 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
1626 Richard Henderson <rth@redhat.com>
1629 * cgraphunit.c (cgraph_node::finalize_function): Set definition
1630 before notice_global_symbol.
1631 (varpool_node::finalize_decl): Likewise.
1632 * varasm.c (default_binds_local_p_2): Rename from
1633 default_binds_local_p_1, add weak_dominate argument. Use direct
1634 returns instead of assigning to local variable. Unify varpool and
1635 cgraph paths via symtab_node. Reject undef weak variables before
1636 testing visibility. Reorder tests for simplicity.
1637 (default_binds_local_p): Use default_binds_local_p_2.
1638 (default_binds_local_p_1): Likewise.
1639 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
1641 (default_elf_asm_output_external): Emit visibility when specified.
1643 2015-02-13 Alan Modra <amodra@gmail.com>
1645 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
1646 code setting up r11 for out-of-line fp restore.
1648 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
1650 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
1651 (muser-mode): Likewise.
1653 2015-02-13 Alan Modra <amodra@gmail.com>
1655 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
1656 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
1658 2015-02-12 David Howells <dhowells@redhat.com>
1660 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
1662 * tree-ssa-uninit.c (dump_predicates): Likewise.
1663 * opts.c (print_filtered_help): Likewise.
1665 2015-02-12 Jakub Jelinek <jakub@redhat.com>
1667 * dwarf2out.c (output_die): Use "%s", name instead of name to
1668 avoid -Wformat-security warning.
1670 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
1671 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
1672 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
1673 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
1675 2015-02-12 Jason Merrill <jason@redhat.com>
1677 * common.opt (-flifetime-dse): New.
1679 2015-02-12 Jakub Jelinek <jakub@redhat.com>
1682 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
1684 PR tree-optimization/65014
1685 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
1686 use original second operand of arg0 or arg1 instead of
1687 that adjusted by STRIP_NOPS.
1689 2015-02-11 Jeff Law <law@redhat.com>
1692 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
1693 that needs to be queued, just queue it for a single cycle.
1695 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
1697 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
1698 bodies of thunks; comment on why.
1699 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
1702 2015-02-11 Richard Henderson <rth@redhat.com>
1705 * tree-eh.c (mark_reachable_handlers): Mark source and destination
1706 regions of __builtin_eh_copy_values.
1708 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1711 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
1712 ultimate alias is MEM with SYMBOL_REF satisfying
1713 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
1714 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
1716 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
1718 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
1719 "diagnostic-core.h".
1720 (main): Initialize progname, and call diagnostic_initialize.
1722 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
1723 instead of __OPENMP_TARGET__.
1725 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
1726 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
1729 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
1731 * doc/sourcebuild.texi (pie_enabled): Document.
1733 2015-02-11 Martin Liska <mliska@suse.cz>
1736 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
1737 a return value for call to a function that is noreturn.
1739 2015-02-11 Richard Biener <rguenther@suse.de>
1742 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
1745 2015-02-11 Andrew Pinski <apinski@cavium.com>
1748 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
1749 Change the first argument type to size_type_node and add another
1751 (aarch64_simd_expand_builtin): Handle the new argument to
1752 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
1753 print an out when the first two arguments are not
1754 nonzero integer constants.
1755 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
1756 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
1758 2015-02-11 Jakub Jelinek <jakub@redhat.com>
1761 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
1762 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
1763 (ix86_set_current_function): Rewritten.
1764 (ix86_add_new_builtins): Temporarily clear current_target_pragma
1765 when creating builtin fndecls.
1767 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1770 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
1772 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
1773 have no comdat group.
1774 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
1775 (lto_output_varpool_node): Always output alias info.
1776 (output_refs): Output refs of boundary aliases, too.
1777 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
1778 (output_symtab): Output call eges in thunks in boundary.
1779 (get_alias_symbol): Remove.
1780 (input_node, input_varpool_node): Do not special case weakrefs.
1781 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
1782 alias and thunks targets in the boundary; do not take removed symbols
1783 from their comdat groups.
1784 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
1785 (cgraph_node::global_info): Remove.
1786 (cgraph_node::rtl_info): Look through aliases and thunks.
1787 * cgrpah.h (global_info): Remove.
1788 (non_local_p): Remove.
1790 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1791 Sandra Loosemore <sandra@codesourcery.com>
1793 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
1794 to inline asm. List dialects in proper order.
1796 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1797 Sandra Loosemore <sandra@codesourcery.com>
1799 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
1801 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
1803 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
1804 modified) reference to Solaris.
1806 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
1808 * doc/extend.texi (Extended Asm): Fix typos.
1810 2015-02-10 Jakub Jelinek <jakub@redhat.com>
1813 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
1815 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
1818 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
1819 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
1820 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
1821 * config/sh/constraints.md (Ara, Add): New constraints.
1822 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
1824 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
1825 atomic_mem_operand_0. Don't use force_reg on the memory address.
1826 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
1827 Sra constraint. Convert to insn_and_split. Add workaround for
1829 (atomic_compare_and_swap<mode>_hard): Copy to
1830 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
1831 Use atomic_mem_operand_0 predicate.
1832 (atomic_compare_and_swap<mode>_soft_gusa,
1833 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
1835 (atomic_compare_and_swap<mode>_soft_tcb,
1836 atomic_compare_and_swap<mode>_soft_imask,
1837 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
1838 atomic_mem_operand_0 predicate and SraSdd constraints.
1839 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
1841 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
1842 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
1843 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
1844 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
1845 force_reg on the memory address.
1846 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
1847 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
1848 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
1849 atomic_mem_operand_1 predicate and Sra constraint.
1850 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
1851 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
1852 Use atomic_mem_operand_1 predicate.
1853 (atomic_<fetchop_name><mode>_hard): Copy to
1854 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
1855 Use atomic_mem_operand_1 predicate.
1856 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
1857 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
1858 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
1859 insn_and_split. Use atomic_mem_operand_1 predicate.
1860 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
1861 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
1862 Use atomic_mem_operand_1 predicate.
1863 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
1864 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
1865 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
1866 in generated insn with original mem operand before emitting the insn.
1867 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
1868 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
1869 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
1870 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
1871 Use atomic_mem_operand_1 predicate and AraAdd constraints.
1872 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
1873 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
1874 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
1875 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
1876 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
1877 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
1878 atomic_not_fetch<mode>_soft_tcb,
1879 atomic_<fetchop_name>_fetch<mode>_soft_imask,
1880 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
1881 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
1882 Use atomic_mem_operand_1 predicate and SraSdd constraints.
1884 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
1886 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
1887 and 3 earlyclobber operands.
1889 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1891 * common.opt (fstack-reuse): Mark as optimization.
1893 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
1896 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
1898 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
1900 PR tree-optimization/64326
1901 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
1903 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
1905 PR gcov-profile/61889
1906 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
1908 2015-02-10 Richard Biener <rguenther@suse.de>
1910 PR tree-optimization/64995
1911 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
1912 value we use is final.
1913 (visit_reference_op_store): Always valueize op.
1914 (visit_use): Properly valueize vuses.
1916 2015-02-10 Richard Biener <rguenther@suse.de>
1918 PR tree-optimization/64909
1919 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
1920 pass a scalar-stmt count estimate to the cost model.
1921 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
1923 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
1925 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
1926 enabled by default together with var-tracking.
1928 2015-02-10 Nick Clifton <nickc@redhat.com>
1930 * config/rl78/rl78.c: Remove DIV attribute code accidentally
1931 included in previous rl78 commit.
1933 2015-02-10 Richard Biener <rguenther@suse.de>
1935 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
1936 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
1939 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1941 PR gcov-profile/61889
1942 * config.in: regenerate.
1943 * configure.in: Likewise.
1944 * configure.ac: Check for ftw.h.
1945 * gcov-tool.c: Check for ftw.h before using nftw.
1947 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
1950 * ipa-visibility.c (update_visibility_by_resolution_info): Only
1951 assert when not in lto mode.
1953 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1955 * ira-color.c (setup_left_conflict_sizes_p): Simplify
1956 initialization/assignment of conflict_size.
1958 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
1961 * ipa-cp.c (gather_caller_stats): Skip thunks.
1962 (propagate_constants_topo): Skip aliases.
1964 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
1967 * config/sh/sh.c (sh_option_override): Don't change
1968 -freorder-blocks-and-partition to -freorder-blocks even when
1969 unwinding is enabled.
1970 (sh_can_follow_jump): Return false if the followee jump is
1971 a crossing jump when -freorder-blocks-and-partition is specified.
1972 * config/sh/sh.md (*jump_compact_crossing): New insn.
1974 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
1975 Kaz Kojima <kkojima@gcc.gnu.org>
1978 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
1979 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
1980 (sh_can_redirect_branch): Rename to ...
1981 (sh_can_follow_jump): ... this. Constify argument types.
1982 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
1983 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
1984 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
1985 * doc/tm.texi: Regenerate.
1987 2015-02-09 Jakub Jelinek <jakub@redhat.com>
1990 * builtins.c (expand_builtin): Call targetm.expand_builtin
1991 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
1993 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
1996 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
1998 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
2001 * ipa-icf.c (set_local): New function.
2002 (sem_function::merge): Use it.
2004 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
2006 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
2007 (add_type_duplicate): Fix comparison of BINFOs.
2009 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
2011 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
2012 on getting VOID pointer.
2014 2015-02-09 Jakub Jelinek <jakub@redhat.com>
2017 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
2020 2015-02-09 Richard Biener <rguenther@suse.de>
2022 * genmatch.c (replace_id): Copy expr_type.
2024 2015-02-09 Richard Biener <rguenther@suse.de>
2026 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
2027 (streamer_write_tree_bitfields): Declare.
2028 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
2029 properly unpack padding.
2030 (unpack_value_fields): Inline ...
2031 (streamer_read_tree_bitfields): ... here.
2032 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
2033 and properly add padding bits.
2034 (streamer_pack_tree_bitfields): Fold into ...
2035 (streamer_write_tree_bitfields): ... this new function,
2036 exposing the bitpack object.
2037 * lto-streamer-out.c (lto_write_tree_1): Call
2038 streamer_write_tree_bitfields.
2040 2015-02-09 Richard Biener <rguenther@suse.de>
2042 PR tree-optimization/54000
2043 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
2044 (struct ivopts_data): Add loop_loc member.
2045 (tree_ssa_iv_optimize_loop): Dump loop location.
2046 (create_new_ivs): Likewise, also dump number of IVs generated.
2048 2015-02-09 Martin Liska <mliska@suse.cz>
2050 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
2051 just if not yet registered.
2052 (ipa_icf_generate_summary): Register callgraph hooks.
2054 2015-02-08 Andrew Pinski <apinski@cavium.com>
2056 * config/aarch64/aarch64.c (gty_dummy): Delete.
2058 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
2061 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
2062 (cgraph_node::local_p): Remove thunk related FIXME.
2064 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
2067 * i386.c (ix86_function_regparm): Look through aliases to see if callee
2068 is local and optimized.
2069 (ix86_function_sseregparm): Likewise; also use target's SSE math
2070 settings; error out instead of silently generating wrong code
2072 (init_cumulative_args): Look through aliases.
2074 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
2077 * ipa-split.c (execute_split_functions): Split if function has aliases.
2079 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
2082 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
2083 aliases before trying to expand it.
2084 (cgraph_node::expand_thunk): Fix formating.
2086 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
2088 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
2089 (Using Assembly Language with C): Expand introduction.
2090 (Basic Asm): Copy-edit. Add more information about uses of
2092 (Extended Asm): Copy-edit. Document new escape syntax and
2094 (Global Reg Vars): Copy-edit.
2095 (Local Reg Vars): Likewise.
2097 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
2101 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
2102 (DBX_CONTIN_CHAR): Define.
2104 2015-02-06 Sebastian Pop <s.pop@samsung.com>
2105 Brian Rzycki <b.rzycki@samsung.com>
2107 PR tree-optimization/64878
2108 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
2109 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
2110 Stop recursion at loop phi nodes after having visited a loop phi node.
2112 2015-02-06 Jakub Jelinek <jakub@redhat.com>
2114 * toplev.c (process_options): Change flag_ipa_ra before creating
2115 optimization_{default,current}_node.
2118 * cgraphunit.c (cgraph_node::expand_thunk): If
2119 restype is not is_gimple_reg_type nor the thunk_fndecl
2120 returns aggregate_value_p, set restmp to a temporary variable
2123 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
2125 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
2127 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2130 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
2131 add a general secondary reload handler for SDmode, unless we have
2132 both read/write support for SDmode.
2134 2015-02-06 Jakub Jelinek <jakub@redhat.com>
2137 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
2138 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
2139 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
2140 1 before, push it to abstract_vec.
2141 (dwarf2out_abstract_function): Adjust caller. Don't call
2142 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
2143 DECL_ABSTRACT_P flags for all abstract_vec elts.
2145 2015-02-06 Renlin Li <renlin.li@arm.com>
2147 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
2149 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2151 2015-02-06 Jeff Law <law@redhat.com>
2154 * config/h8300/h8300.c (push): New argument "in_prologue".
2155 Pass "in_prologue" along to "F".
2156 (h8300_push_pop): Corresponding changes.
2157 (h8300_expand_prologue): Likewise.
2158 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
2160 2015-02-06 Jakub Jelinek <jakub@redhat.com>
2162 PR rtl-optimization/64957
2164 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
2165 IOR rather than for AND.
2167 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
2170 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
2171 of shift-add and (add + shift) operations. Rename local variable.
2173 2015-02-05 Jeff Law <law@redhat.com>
2176 * config/h8300/constraints.md (U): Correctly dectect
2177 "eightbit_data" memory addresses.
2178 * config/h8300/h8300.c (eightbit_constant_address_p): Also
2179 handle (const (plus (symbol_ref (x)))) where x is declared
2180 as an 8-bit data memory address.
2181 * config/h8300/h8300.md (call, call_value): Correctly detect
2182 "funcvec" functions.
2185 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
2186 24 to 28 bits for the H8/300.
2188 2015-02-06 Alan Modra <amodra@gmail.com>
2191 * config/rs6000/rs6000.c (chain_already_loaded): New function.
2192 (rs6000_call_aix): Use it.
2194 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
2196 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
2199 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
2201 * config/h8300/constraints.md ("U" constraint): Use strict
2202 variant of REG_OK_FOR_BASE_P after reload has started.
2204 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
2206 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
2207 define to zero if !TARGET_NEON.
2208 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
2210 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2211 Trevor Saunders <tsaunders@mozilla.com>
2214 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
2216 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2219 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
2220 when removing varpool nodes.
2222 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2225 * varpool.c (varpool_node::remove): Fix order of variables.
2227 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2230 * ipa-inline.c (inline_small_functions): Fix ordering issue between
2231 speculation resolution and key updates.
2233 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2235 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
2236 about not letting any speculative edges unupdated.
2238 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2241 * gcov-io.c (gcov_var): Export.
2243 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2246 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
2247 edges that become speculative.
2249 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2251 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
2252 or DW_LANG_Fortran08.
2253 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
2255 (gen_compile_unit_die): Handle "GNU Fortran2003" and
2256 "GNU Fortran2008" language strings.
2257 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
2258 * langhooks.h (lang_GNU_Fortran): New prototype.
2259 * langhooks.c (lang_GNU_Fortran): New function.
2260 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
2263 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
2265 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
2266 (RTX_OK_FOR_OLO10_P): Likewise.
2268 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
2270 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
2272 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
2275 * gimple.c: Include gimple-ssa.h.
2276 (maybe_remove_unused_call_args): New function.
2277 * gimple.h (maybe_remove_unused_call_args): Declare.
2278 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
2279 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
2280 * gimple-fold.c (gimple_fold_call): Likewise.
2282 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
2284 PR rtl-optimization/64905
2285 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
2286 pointer alignment if it isn't needed.
2288 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2290 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
2291 cortex-a72.cortex-a53.
2292 * config/aarch64/aarch64-tune.md: Regenerate.
2293 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
2295 2015-02-04 Nick Clifton <nickc@redhat.com>
2297 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
2300 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2302 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
2303 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
2304 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
2306 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
2307 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
2308 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
2309 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
2310 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
2311 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
2312 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
2313 * tree-core.h (enum built_in_function): In between
2314 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
2315 for builtins that use DEF_BUILTIN_CHKP macro.
2317 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
2320 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
2321 operands for tcc_comparison exprs. Fix typos.
2324 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
2325 of two XORs that have an intervening AND or IOR.
2328 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
2329 simplification of XOR of AND to not allocate new rtx before
2330 committing to a simplification.
2332 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2334 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
2335 manual swaps in all peepholes.
2337 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2339 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
2340 of manual swapping implementation.
2341 (aarch64_expand_vec_perm_const_1): Likewise.
2343 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
2345 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
2346 (generic_addrcost_table): Remove NAMED_PARAM.
2347 (cortexa57_addrcost_table): Likewise.
2348 (xgene1_addrcost_table): Likewise.
2349 (generic_regmove_table): Likewise.
2350 (cortexa53_regmove_table): Likewise.
2351 (xgene1_regmove_table): Likewise.
2352 (generic_vector_table): Likewise.
2353 (cortexa57_vector_table): Likewise.
2354 (xgene1_vector_table): Likewise.
2355 (generic_tunings): Likewise.
2356 (cortexa53_tunings): Likewise.
2357 (cortexa57_tunings): Likewise.
2358 (xgene1_tunings): Likewise.
2360 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2362 * config/arm/arm-cores.def: Add cortex-a72 and
2363 cortex-a72.cortex-a53.
2364 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
2365 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2366 * config/arm/arm-tune.md: Regenerate.
2367 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
2368 "cortex-a72.cortex-a53".
2369 * doc/invoke.texi (ARM Options/-mtune): Likewise.
2371 2015-02-04 Nick Clifton <nickc@redhat.com>
2374 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
2376 (nonimmediate_di_operand): Likewise.
2378 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
2379 prefixes of known F5 using MSP430 MCUs.
2381 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2383 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
2384 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
2385 instead of __builtin_sqrt.
2387 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
2389 * varasm.c (do_assemble_alias): Follow transparent alias
2391 (default_assemble_visibility): Follow transparent alias
2392 chain for decl name.
2394 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2397 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
2398 to compute size of referenced value in the constant case.
2400 2015-02-03 Jakub Jelinek <jakub@redhat.com>
2402 PR rtl-optimization/64756
2403 * cse.c (invalidate_dest): New function.
2404 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
2405 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
2406 invalidate and do not record it.
2408 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
2411 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
2412 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
2413 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
2414 atomic_nand<mode>_soft_tcb): New insns.
2415 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
2416 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
2417 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
2418 Split into atomic_not_fetchsi_hard if operands[0] is unused.
2419 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
2420 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
2421 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
2422 atomic_not<mode>_hard if operands[0] is unused.
2423 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
2424 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
2425 if operands[0] is unused.
2426 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
2427 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
2428 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
2429 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
2431 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
2432 into atomic_not<mode>_soft_tcb if operands[0] is unused.
2433 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
2434 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
2435 if operands[0] is unused.
2436 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
2437 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
2438 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
2439 atomic_nand_fetchsi_hard if operands[0] is unused.
2440 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
2441 atomic_nand<mode>_hard if operands[0] is unused.
2442 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
2443 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
2444 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
2445 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
2446 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
2447 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
2448 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
2449 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
2450 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
2451 atomic_not<mode>_hard if operands[0] is unused.
2452 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
2453 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
2455 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
2456 into atomic_not<mode>_soft_tcb if operands[0] is unused.
2457 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
2458 atomic_nand<mode>_hard if operands[0] is unused.
2459 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
2460 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
2462 2015-02-03 David Malcolm <dmalcolm@redhat.com>
2465 * Makefile.in (GCC_OBJS): Add gcc-main.o.
2466 * gcc-main.c: New file, containing "main" taken from gcc.c.
2467 * gcc.c (do_self_spec): Free decoded_options.
2468 (class driver): Move declaration to gcc.h.
2469 (main): Move declaration and implementation to new file
2471 (driver_get_configure_time_options): New function.
2472 * gcc.h (class driver): Move this declaration here, from
2474 (driver_get_configure_time_options): New declaration.
2476 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
2478 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
2479 cross-module inlining.
2480 * cgraph.h (cgraph_node): Add flag merged.
2481 * ipa-icf.c (sem_function::merge): Maintain it.
2483 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
2485 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
2486 instead of OBJECT_P.
2488 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
2491 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
2492 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
2493 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
2494 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
2496 2015-02-03 Jakub Jelinek <jakub@redhat.com>
2499 * combine.c (reg_n_sets_max): New variable.
2500 (can_change_dest_mode, reg_nonzero_bits_for_combine,
2501 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
2502 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
2503 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
2504 (rest_of_handle_combine): Initialize reg_n_sets_max.
2506 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
2508 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
2509 if some always_inline was inlined, apply changes before inlining
2512 2015-02-02 David Malcolm <dmalcolm@redhat.com>
2515 * config/arm/arm.c (arm_option_override): Set
2516 arm_selected_arch/cpu/tune to NULL on entry.
2518 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
2519 Andrew Pinski <pinskia@gcc.gnu.org>
2520 Jakub Jelinek <jakub@gcc.gnu.org>
2523 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
2524 integer typing for small model. Use IN_RANGE.
2526 2015-02-02 Richard Biener <rguenther@suse.de>
2528 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
2529 * tree-vrp.c (vrp_valueize_1): Likewise.
2531 2015-02-02 Alan Modra <amodra@gmail.com>
2533 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
2534 than mem for toc_restore.
2535 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
2536 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
2537 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
2539 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
2542 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
2543 explicit default options.
2545 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
2548 * ipa-utils.c (ipa_merge_profiles): Add release argument.
2549 * ipa-icf.c (sem_function::merge): Do not release body when merging.
2550 * ipa-utils.h (ipa_merge_profiles): Update prototype.
2552 2015-02-01 Jakub Jelinek <jakub@redhat.com>
2555 * cfgexpand.c (deep_ter_debug_map): New variable.
2556 (avoid_deep_ter_for_debug): New function.
2557 (expand_debug_expr): If TERed SSA_NAME is in
2558 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
2559 instead of trying to expand SSA_NAME's def stmt.
2560 (expand_debug_locations): When expanding debug bind
2561 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
2562 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
2564 (pass_expand::execute): Call avoid_deep_ter_for_debug on
2565 all debug bind stmts. Delete deep_ter_debug_map after
2566 expand_debug_location if non-NULL and clear it.
2568 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
2571 * config/sh/sync.md (atomic_fetch_notsi_hard,
2572 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
2573 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
2574 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
2575 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
2576 atomic_not_fetch<mode>_soft_imask): New insns.
2578 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2580 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
2581 (rank_for_schedule_debug): Split from ...
2582 (rank_for_schedule): ... this.
2583 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
2584 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
2586 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
2588 * doc/md.texi (Machine Constraints): Alphabetize table by target.
2589 * doc/extend.texi (x86 Variable Attributes): Move section to
2590 correct alphabetization after renaming.
2591 (x86 Type Attributes): Likewise.
2592 (Target Builtins): Re-alphabetize menu.
2593 (x86 Built-in Functions): Move section to correct alphabetization
2595 (x86 transactional memory intrinsics): Likewise.
2596 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
2597 and x86 Windows Options in table and menu.
2598 (x86 Options): Move section to correct alphabetization after
2600 (x86 Windows Options): Likewise.
2602 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
2604 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
2605 preferred names of the architecture and its 32- and 64-bit
2607 * doc/invoke.texi: Likewise.
2608 * doc/md.texi: Likewise.
2610 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
2613 * config/i386/predicates.md (address_no_seg_operand): Reject
2614 non-CONST_INT_P operands in invalid mode.
2616 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
2618 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
2619 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
2620 * config/i386/predicates.md (address_no_seg_operand): Call
2621 address_operand with VOIDmode.
2622 (vsib_address_operand): Ditto.
2623 (address_mpx_no_base_operand): Ditto.
2624 (address_mpx_no_index_operand): Ditto.
2626 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
2629 * lra-constraints.c (original_subreg_reg_mode): New.
2630 (simplify_operand_subreg): Try to simplify subreg of const. Use
2631 original_subreg_reg_mode for it.
2632 (swap_operands): Update original_subreg_reg_mode.
2633 (curr_insn_transform): Set up original_subreg_reg_mode.
2635 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
2638 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
2640 (process_alt_operands): Use it.
2641 (curr_insn_transform): Check the optional reload pseudo class is
2644 2015-01-30 Joseph Myers <joseph@codesourcery.com>
2646 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
2647 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
2649 * toplev.h (init_asm_output): Update comment on use of
2650 UNKNOWN_LOCATION with fatal_error.
2651 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
2652 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
2653 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
2654 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
2655 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
2656 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
2657 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
2658 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
2659 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
2660 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
2661 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
2662 fatal_error changed to pass input_location as first argument.
2664 2015-01-30 Martin Liska <mliska@suse.cz>
2666 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
2667 in #pragma GCC diagnostic guards.
2669 2015-01-30 Richard Biener <rguenther@suse.de>
2671 PR tree-optimization/64829
2672 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
2673 not add a widening conversion pattern but hand off extra
2674 widenings to callers.
2675 (vect_recog_widen_mult_pattern): Handle extra widening produced
2676 by vect_handle_widen_op_by_const.
2677 (vect_recog_widen_shift_pattern): Likewise.
2678 (vect_pattern_recog_1): Remove excess vertical space in dumping.
2679 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2680 (vect_init_vector_1): Likewise.
2681 (vect_get_vec_def_for_operand): Likewise.
2682 (vect_finish_stmt_generation): Likewise.
2683 (vectorizable_load): Likewise.
2684 (vect_analyze_stmt): Likewise.
2685 (vect_is_simple_use): Likewise.
2687 2015-01-29 Jeff Law <law@redhat.com>
2689 * combine.c (try_combine): Fix typo in comment.
2691 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
2694 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
2695 (rs6000_stack_info): Add assert.
2696 (rs6000_output_savres_externs): New function, split off from...
2697 (rs6000_output_function_prologue): ... here. Do not call it for
2700 2015-01-29 Jeff Law <law@redhat.com>
2703 * combine.c (try_combine): If I0 is a memory load and I3 a store
2704 to a related address, increase the "goodness" of doing a 4-insn
2705 combination with I0-I3.
2706 (make_field_assignment): Handle SUBREGs in the ior+and case.
2708 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
2710 PR tree-optimization/64746
2711 * tree-if-conv.c (mask_exists): New function.
2712 (predicate_mem_writes): Save created mask with given size for further
2714 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
2715 (ifcvt_repair_bool_pattern): Collect all statements that are root
2716 of bool pattern and use iterative algorithm to remove multiple uses
2717 of predicates, display number of required iterations.
2719 2015-01-29 Richard Biener <rguenther@suse.de>
2721 PR tree-optimization/64853
2722 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
2723 stmt will get simulated again.
2724 * tree-ssa-ccp.c (valueize_op_1): Likewise.
2726 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2728 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
2729 return_in_pc. Remove redundant assignments.
2730 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
2731 (arm_expand_epilogue): Don't compare boolean with true in if condition.
2733 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
2735 * config/i386/i386.c (ix86_mode_after): Make static.
2737 2015-01-29 Richard Biener <rguenther@suse.de>
2739 PR tree-optimization/64844
2740 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
2741 dump cost model analysis.
2742 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2743 Do not register adjusted load/store costs here.
2745 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
2746 Uros Bizjak <ubizjak@gmail.com>
2748 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
2749 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
2750 using x86_use_pseudo_pic_reg.
2751 * config/i386/i386.c (ix86_conditional_register_usage): Remove
2752 support for fixed PIC register.
2753 (ix86_use_pseudo_pic_reg): Not static any more.
2755 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
2758 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
2759 to avoid error in cgraph node verification.
2761 2015-01-29 Marek Polacek <polacek@redhat.com>
2763 * doc/standards.texi: Reflect that the default for C is gnu11.
2765 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
2768 * reorg.c (switch_text_sections_between_p): New function.
2769 (relax_delay_slots): Call it when testing if the jump insn
2770 is removable. Use targetm.can_follow_jump when testing if
2771 the conditional branch can follow an unconditional jump.
2773 2015-01-27 Caroline Tice <cmtice@google.com>
2775 Committing VTV Cywin/Ming patch for Patrick Wollgast
2776 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
2777 if -fvtable-verify=preinit/std is used.
2778 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
2779 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
2780 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
2781 if -fvtable-verify=preinit/std is used.
2782 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
2783 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
2784 if -fvtable-verify=preinit/std is used.
2785 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
2786 * config/i386/mingw32.h (LIB_SPEC): Likewise.
2787 * varasm.c (assemble_variable): Add code to properly set the comdat
2788 section and name for the .vtable_map_vars section in case the
2789 target is PE or COFF.
2791 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
2794 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
2795 make sane BB profile.
2796 (cgraph_node::expand_thunk): Make sane BB profile.
2797 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
2798 * cgraph.h (init_lowered_empty_function): Update prototype.
2799 * config/i386/i386.c (make_resolver_func): Update call.
2800 * predict.c (gate): Disable branch prediction pass if
2801 profile is already there.
2803 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
2805 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
2806 * opth-gen.awk: Likewise.
2807 * common.opt: Mark flag_fp_contract_mode as Optimization.
2809 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
2811 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
2812 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
2814 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
2817 * config/sh/predicates.md (atomic_arith_operand,
2818 atomic_logical_operand): Remove.
2819 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
2820 (atomic_arith_operand_0): New predicate.
2821 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
2822 Use atomic_arith_operand_0 for input values.
2823 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
2824 atomic_compare_and_swap<mode>_soft_gusa,
2825 atomic_compare_and_swap<mode>_soft_tcb,
2826 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
2827 arith_reg_operand instead of register_operand.
2828 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
2829 atomic_arith_operand_0 for newval input.
2830 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2831 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
2832 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
2833 arith_reg_operand instead of register_operand.
2834 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
2835 fetchop_predicate_1, fetchop_constraint_1_llcs,
2836 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
2837 fetchop_constraint_1_imask): New code iterator attributes.
2838 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
2839 register_operand. Use fetchop_predicate_1.
2840 (atomic_fetch_<fetchop_name>si_hard,
2841 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
2842 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
2843 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
2844 and arith_reg_operand instead of register_operand. Use
2845 fetchop_predicate_1, fetchop_constraint_1_gusa.
2846 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
2847 and arith_reg_operand instead of register_operand. Use
2848 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
2850 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
2851 and arith_reg_operand instead of register_operand. Use
2852 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
2854 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
2855 register_operand. Use atomic_logical_operand_1.
2856 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
2857 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
2858 arith_reg_operand instead of register_operand.
2859 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
2860 Use arith_reg_dest and arith_reg_operand instead of register_operand.
2861 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
2862 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
2863 register_operand. Use fetchop_predicate_1.
2864 (atomic_<fetchop_name>_fetchsi_hard,
2865 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
2866 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2867 fetchop_constraint_1_llcs.
2868 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
2869 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2870 fetchop_constraint_1_gusa.
2871 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
2872 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2873 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
2874 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
2875 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
2876 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
2877 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
2878 register_operand. Use atomic_logical_operand_1.
2879 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
2880 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
2881 arith_reg_operand instead of register_operand.
2882 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
2883 arith_reg_operand instead of register_operand. Use logical_operand
2884 and K08. Adjust asm sequence to allow R0 usage.
2885 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
2886 arith_reg_operand instead of register_operand. Use logical_operand
2889 2015-01-28 Jakub Jelinek <jakub@redhat.com>
2892 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
2893 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
2894 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
2895 only get_full_len HOST_WIDE_INTs from get_val () array rather than
2896 all bits in *val_wide.
2898 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
2900 * varpool.c (tls_model_names): Fix names.
2901 (varpool_node::dump): Dump tls- prefix for tls models.
2903 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
2904 Bernd Schmidt <bernds@codesourcery.com>
2905 Nathan Sidwell <nathan@codesourcery.com>
2907 * config/nvptx/mkoffload.c: New file.
2908 * config/nvptx/t-nvptx: Add build rules for it.
2909 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
2910 (extra_programs): Add mkoffload.
2911 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
2913 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
2915 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
2918 * cfgexpand.c (reorder_operands): Skip debug gimples.
2920 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
2922 PR tree-optimization/64277
2923 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
2924 range info when possible to refine estimation.
2926 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2928 PR tree-optimization/64718
2929 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
2930 be a 16bit unsigned integer when n->range is 16.
2931 (bswap_replace): Convert src to that type if necessary for all bswap
2932 sizes. Fix rotation right notation in nearby comment. Use bswap_type
2933 set in pass_optimize_bswap::execute ().
2935 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
2937 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
2938 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
2939 integer and floating point variants.
2940 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
2942 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
2944 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
2945 for all vector modes.
2947 2015-01-28 Jakub Jelinek <jakub@redhat.com>
2950 * doc/sourcebuild.texi (comdat_group): Document.
2952 2015-01-28 Terry Guo <terry.guo@arm.com>
2954 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
2956 2015-01-27 David Malcolm <dmalcolm@redhat.com>
2958 * toplev.c (print_version): Add param "show_global_state", and
2959 only print GGC and plugin information if it is true.
2960 (init_asm_output): Pass in "true" for the new param when calling
2962 (process_options): Likewise.
2963 (toplev::main): Likewise.
2964 * toplev.h (print_version): Add new param to decl.
2966 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
2970 * tree.c (lookup_binfo_at_offset): New function.
2971 (get_binfo_at_offset): Use it.
2973 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
2976 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
2977 on vtable being vtable.
2979 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2981 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
2982 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
2984 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
2985 -mno-hotpatch options. Change syntax of -mhotpatch= option.
2986 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
2988 (s390_hotpatch_trampoline_halfwords_max): Renamed.
2989 (s390_hotpatch_hw_max): New name.
2990 (s390_hotpatch_trampoline_halfwords): Renamed.
2991 (s390_hotpatch_hw_before_label): New name.
2992 (get_hotpatch_attribute): Removed.
2993 (s390_hotpatch_hw_after_label): New name.
2994 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
2996 (s390_attribute_table): Ditto.
2997 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
2998 (s390_function_num_hotpatch_hw): New name.
2999 Remove special handling of inline functions and hotpatching.
3000 Return number of nops before and after the function label.
3001 (s390_can_inline_p): Removed.
3002 (s390_asm_output_function_label): Emit a configurable number of nops
3003 after the function label.
3004 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
3005 (TARGET_CAN_INLINE_P) Removed.
3006 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
3008 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3009 Jiong Wang <jiong.wang@arm.com>
3011 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
3013 (cb<optab><mode>1): Likewise.
3014 * config/aarch64/iterators.md (bcond): New define_code_attr.
3016 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3018 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
3021 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3023 * config/s390/s390.c (s390_register_move_cost): Increase costs for
3026 2015-01-27 Richard Biener <rguenther@suse.de>
3028 * tree-vrp.c (update_value_range): Intersect the range with
3029 old recorded SSA name range information.
3031 2015-01-27 Nick Clifton <nickc@redhat.com>
3033 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
3034 BC, DE and HL registers directly, not via AX.
3035 When decrementing the stack pointer by a large amount, transfer SP
3036 into AX and perform the subtraction there.
3037 (rl78_expand_epilogue): Perform the inverse of the above
3040 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3042 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
3044 2015-01-27 Jakub Jelinek <jakub@redhat.com>
3045 Yury Gribov <y.gribov@samsung.com>
3048 * ubsan.c (ubsan_source_location): Refactor code.
3049 (ubsan_type_descriptor): Update type size. Refactor code.
3051 2015-01-27 Richard Biener <rguenther@suse.de>
3053 PR tree-optimization/56273
3054 PR tree-optimization/59124
3055 PR tree-optimization/64277
3056 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
3057 from the first VRP pass.
3059 2015-01-27 Jakub Jelinek <jakub@redhat.com>
3062 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
3063 handle the first argument in the same loop as all the other arguments.
3065 PR rtl-optimization/61058
3066 * jump.c (cleanup_barriers): Update basic block boundaries
3067 if BLOCK_FOR_INSN is non-NULL on PREV.
3069 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
3071 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
3072 bounds narrowing, already instrumented calls and calls to
3073 not instrumentable functions.
3075 2015-01-27 Jakub Jelinek <jakub@redhat.com>
3077 PR tree-optimization/64807
3078 * wide-int.cc (wi::divmod_internal): Clear
3079 b_dividend[dividend_blocks_needed].
3081 2015-01-26 DJ Delorie <dj@redhat.com>
3083 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
3084 volatile memory references.
3086 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
3089 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
3091 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
3092 shifts if it already fits into K08.
3094 2015-01-26 Jakub Jelinek <jakub@redhat.com>
3097 * ipa-inline.c (inline_small_functions): Print "unknown" even
3098 if edge->call_stmt is non-NULL, but has builtins or unknown
3102 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
3103 with asterisk, skip the first character.
3105 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
3108 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
3111 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
3114 * config/i386/i386.md (*movdi_internal): Also check operand 0
3115 to determine TYPE_LEA operand.
3116 (*movsi_internal): Ditto.
3118 2015-01-26 Jakub Jelinek <jakub@redhat.com>
3120 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
3121 OPTION_MASK_QUAD_MEMORY_ATOMIC.
3123 2015-01-26 Renlin Li <renlin.li@arm.com>
3125 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
3127 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
3130 2015-01-26 Richard Biener <rguenther@suse.de>
3133 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
3134 combining two BIT_AND_EXPR predicates.
3136 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
3139 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
3141 2015-01-26 Terry Guo <terry.guo@arm.com>
3143 * config/arm/arm.c (arm_file_start): Update the assignment of
3146 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
3148 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
3150 config/arm/arm.md: Include the new Cortex-A57 model.
3151 (generic_sched): Don't use generic_sched when tuning for
3154 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
3155 Uros Bizjak <ubizjak@gmail.com>
3157 * config/i386/i386.c (get_builtin_code_for_version): Add
3158 support for BMI and BMI2 multiversion functions.
3160 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3162 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
3163 (extract_bit_field): Likewise.
3164 (extract_low_bits): Likewise.
3165 (expand_mult): Likewise.
3166 (expand_mult_highpart_adjust): Likewise.
3168 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
3170 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
3171 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
3172 * config/i386/i386.c (processor_model): Add
3173 M_INTEL_COREI7_BROADWELL.
3174 (arch_names_table): Add "broadwell".
3176 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
3185 * config/sh/sh-protos.h
3186 (sh_extending_set_of_reg::can_use_as_unextended_reg,
3187 sh_extending_set_of_reg::use_as_unextended_reg,
3188 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
3189 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
3190 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
3191 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
3192 (sh_treg_insns): New class.
3193 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
3194 (scope_counter): New class.
3195 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
3196 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
3197 sh_extending_set_of_reg::can_use_as_unextended_reg,
3198 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
3199 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
3200 sh_split_treg_set_expr): New functions.
3201 (addsubcosts): Handle treg_set_expr.
3202 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
3203 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
3204 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
3205 (sh_insn_operands_modified_between_p): Make non-static.
3206 * config/sh/predicates.md (zero_extend_movu_operand): Allow
3207 simple_mem_operand in addition to displacement_mem_operand.
3208 (zero_extend_operand): Don't allow zero_extend_movu_operand.
3209 (treg_set_expr, treg_set_expr_not_const01,
3210 arith_reg_or_treg_set_expr): New predicates.
3211 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
3212 arith_or_int_operand instead of logical_operand. Convert to
3213 insn_and_split. Try to optimize constant operand in splitter.
3214 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
3215 (*tstqi_t_zero): Delete.
3216 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
3217 (tstsi_t_and_not): Delete.
3218 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
3219 Convert to insn_and_split.
3220 (unnamed split, tstsi_t_zero_extract_xor,
3221 tstsi_t_zero_extract_subreg_xor_little,
3222 tstsi_t_zero_extract_subreg_xor_big): Delete.
3223 (*tstsi_t_shift_mask): New insn_and_split.
3224 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
3225 to recombine with surrounding insns when splitting.
3226 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
3227 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
3228 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
3229 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
3230 (*cbranch_div0s: Delete.
3231 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
3232 Try to recombine with surrounding insns when splitting. Add operand
3234 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
3235 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
3236 *addc_r_r_msb, *addc_2r_msb): Delete.
3237 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
3239 (*addc_negreg_t): New insn_and_split.
3240 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
3241 Try to recombine with surrounding insns when splitting.
3242 Add operand order variants.
3243 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
3244 insn_and_split patterns.
3245 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
3246 surrounding insns when splitting.
3247 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
3248 (*rotcl): Likewise. Add zero_extract variant.
3249 (*ashrsi2_31): New insn_and_split.
3250 (*negc): Convert to insn_and_split. Use treg_set_expr.
3251 (*zero_extend<mode>si2_disp_mem): Update comment.
3252 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
3254 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
3255 with surrounding insns when splitting.
3256 (any_treg_expr_to_reg): New insn_and_split.
3257 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
3258 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
3259 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
3260 *zero_extract_2): New single bit zero extract patterns.
3261 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
3262 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
3263 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
3264 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
3266 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
3267 register_operand for set source.
3269 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
3271 * i386.opt (prefetch_sse): New targetsave.
3272 * i386.c (ix86_function_specific_save): Save prefetch_sse.
3273 (ix86_function_specific_restore): Restore prefetch_sse and initialize
3274 ix86_cost/ix86_tune_cost.
3276 2015-01-23 David Malcolm <dmalcolm@redhat.com>
3278 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3279 Support the JIT by using 0 as the language type.
3281 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
3284 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
3285 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
3286 (mark_regno_live, process_bb_lives): Pass new parameter value to
3287 make_hard_regno_born.
3289 2015-01-23 Jakub Jelinek <jakub@redhat.com>
3291 PR rtl-optimization/63637
3292 PR rtl-optimization/60663
3293 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
3294 if elt->cost is MAX_COST for ASM_OPERANDS.
3295 (find_sets_in_insn): Fix up comment typo.
3296 (cse_insn): Don't set src_volatile for all non-volatile
3297 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
3298 or with "memory" clobber. Set elt->cost to MAX_COST
3299 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
3300 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
3302 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
3304 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
3307 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
3309 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
3310 libgcc/config/i386/elf-lib.h.
3312 2015-01-23 Jakub Jelinek <jakub@redhat.com>
3315 * gcc.c (print_configuration): Don't print a blank line at the end
3317 (run_attempt): ... but here unstead.
3320 * omp-low.c (scan_sharing_clauses): Don't ignore
3321 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
3322 on target data/update constructs.
3324 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3327 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
3328 (DEBUG_RELOAD): Removed define.
3329 (m32c_limit_reload_class): Enable traces with if DEBUG0.
3330 (m32c_function_arg): Added a type cast.
3331 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
3332 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
3333 * config/m32c/bitops.md (andqi3_16): Likewise.
3334 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
3335 (push_a01_l): Likewise.
3337 2015-01-23 David Malcolm <dmalcolm@redhat.com>
3340 * main.c (main): Construct toplev instances with init_signals=true.
3341 * toplev.c (general_init): Add param "init_signals", and use it to
3342 conditionalize the calls to signal and host_hooks.extra_signals.
3343 (toplev::toplev): Add param "init_signals".
3344 (toplev::main): When invoking general_init, pass m_init_signals
3345 to control whether signal-handlers are installed.
3346 * toplev.h (toplev::toplev): Add param "init_signals".
3347 (toplev::m_init_signals): New field.
3349 2015-01-23 David Malcolm <dmalcolm@redhat.com>
3352 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
3353 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
3354 latter may be affected by the former (e.g. on i686).
3356 2015-01-23 Martin Liska <mliska@suse.cz>
3358 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
3359 false positive during profiledbootstrap.
3361 2015-01-23 Tom de Vries <tom@codesourcery.com>
3364 * lto-opts.c (lto_write_options): Output non-explicit conservative
3366 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
3367 (append_compiler_options): Pass -fopenacc through.
3369 2015-01-23 Tom de Vries <tom@codesourcery.com>
3372 * lto-opts.c (lto_write_options): Output non-explicit conservative
3374 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
3375 (append_compiler_options): Pass -fopenmp through.
3377 2015-01-23 Jakub Jelinek <jakub@redhat.com>
3380 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
3383 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
3384 * diagnostic.def (DK_ICE_NOBT): New kind.
3385 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
3386 like DK_ICE, but never print backtrace.
3387 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
3388 (internal_error_no_backtrace): New function.
3389 * gcc.c (execute): Use internal_error_no_backtrace instead of
3392 2015-01-22 Jeff Law <law@redhat.com>
3395 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
3396 improve code density for small immediate to memory case.
3397 (insv): Better handle bitfield assignments when the field is
3398 being set to all ones.
3399 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
3402 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3403 Jakub Jelinek <jakub@redhat.com>
3405 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
3406 for !TARGET_LIBC_PROVIDES_SSP version and
3407 -fstack-protector-{all,strong,explicit} otherwise.
3408 * config/freebsd.h (LINK_SSP_SPEC): Handle
3409 -fstack-protector-{strong,explicit}.
3411 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
3412 H.J. Lu <hongjiu.lu@intel.com>
3415 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
3418 2015-01-22 Wei Mi <wmi@google.com>
3420 PR rtl-optimization/64557
3421 * dse.c (record_store): Call get_addr for mem_addr.
3422 (check_mem_read_rtx): Likewise.
3424 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
3426 * fold-const.c (const_binop): Add early return for non-tcc_binary.
3428 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3430 * toplev.c (init_local_tick): Process the failure when read
3431 fails for random_seed.
3433 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
3434 'pretty_name' to avoid memory overflow.
3436 2015-01-22 Richard Biener <rguenther@suse.de>
3439 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
3440 abnormal coalescing on undefined SSA names.
3442 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
3446 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
3448 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
3450 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
3453 * fold-const.c (fold_checksum_tree): Don't include value of
3454 expr->decl_with_vis.symtab_node in the checksum.
3456 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3458 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
3460 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
3463 * gcc.c (insert_comments): New function.
3464 (try_generate_repro): Call it.
3465 (append_text): Removed.
3467 2015-01-22 Richard Biener <rguenther@suse.de>
3469 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
3470 with IL incompatible options. Properly honor user optimize
3473 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
3475 PR rtl-optimization/64682
3476 * combine.c (distribute_notes): When moving a death note for
3477 a register that is set in the new I2, make sure to put it
3480 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
3482 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
3485 2015-01-21 Jakub Jelinek <jakub@redhat.com>
3488 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
3489 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
3490 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
3493 * doc/invoke.texi (-fsanitize=vptr): Document.
3495 PR rtl-optimization/62078
3496 * dse.c: Include cfgcleanup.h.
3497 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
3498 anything call purge_all_dead_edges and cleanup_cfg at the end
3501 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
3503 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
3506 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3508 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
3511 2015-01-21 David Sherwood <david.sherwood@arm.com>
3512 Tejas Belagod <Tejas.Belagod@arm.com>
3514 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
3515 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
3516 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
3519 2015-01-21 David Sherwood <david.sherwood@arm.com>
3520 Tejas Belagod <Tejas.Belagod@arm.com>
3522 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
3523 (aarch64_reverse_mask): New decls.
3524 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
3525 (insn_count): New mode_attr.
3526 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
3527 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
3528 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
3529 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
3530 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
3531 (aarch64_simd_st4): New patterns.
3532 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
3533 (aarch64_reverse_mask): New functions.
3535 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
3537 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
3539 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
3540 addressing modes for BE.
3541 (aarch64_print_operand): Add 'R' specifier.
3542 (aarch64_simd_disambiguate_copy): Delete.
3543 (aarch64_simd_emit_reg_reg_move): New function.
3544 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
3545 in define_splits for structural moves.
3546 (mov<mode>): Use less restrictive predicates.
3547 (*aarch64_mov<mode>): Simplify and only allow for LE.
3548 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
3550 2015-01-21 Alan Hayward <alan.hayward@arm.com>
3552 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
3554 2015-01-21 Richard Henderson <rth@redhat.com>
3557 * ccmp.c (used_in_cond_stmt_p): Remove.
3558 (expand_ccmp_expr): Don't use it.
3560 2015-01-21 Nick Clifton <nickc@redhat.com>
3562 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
3565 2015-01-21 Richard Biener <rguenther@suse.de>
3568 * tree-core.h (builtin_info, builtin_info_type): Turn from
3569 an object with two arrays into an array of an object with
3570 decl and two flags, implicit_p and declared_p.
3571 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
3572 set_builtin_decl, set_builtin_decl_implicit_p,
3573 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
3574 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
3575 * builtins.c (builtin_info): Adjust.
3576 * gimplify.c (gimplify_addr_expr): References to builtins
3577 that have been declared by the user makes them eligible for
3578 use by the compiler. Call set_builtin_decl_implicit_p on them.
3580 2015-01-20 Jeff Law <law@redhat.com>
3583 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
3584 allow pc-relative addresses in operand predicates or constraints.
3586 2015-01-21 Bin Cheng <bin.cheng@arm.com>
3588 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
3589 neon on aarch32 processors for stringops.
3591 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3594 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
3596 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3599 * ipa-inline.c: Include lto-streamer.h
3600 (report_inline_failed_reason): Output source file differences and
3601 flags on optimization/target node mismatch.
3602 (can_inline_edge_p): Consider caller to be the outer inline function;
3603 be less restrictive about matching opimize and optimize_size attributes.
3604 (inline_account_function_p): Break out from ...
3605 (inline_small_functions): ... here.
3606 * ipa-inline-transform.c (clone_inlined_nodes): Use
3607 inline_account_function_p.
3608 (inline_call): Use optimize attribution; use inline_account_function_p.
3609 (inline_transform): Use opt_for_fn.
3610 * ipa-inline.h (inline_account_function_p): Declare.
3612 2015-01-20 Jakub Jelinek <jakub@redhat.com>
3615 * dwarf2out.c (decl_piece_node): Don't put bitsize into
3616 mode if bitsize <= 0.
3617 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
3618 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
3619 sizes and positions.
3621 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
3623 * config/nios2/nios2.c (nios2_asm_file_end): Implement
3624 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
3626 (TARGET_ASM_FILE_END): Define.
3628 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3630 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
3631 (struct tune_params): Use the enum.
3632 * arm.c (arm_*_tune): Update.
3633 (arm_option_override): Update.
3635 2015-01-20 Richard Biener <rguenther@suse.de>
3638 * ipa-reference.c (add_static_var): Inline ...
3639 (analyze_function): ... here after splitting out from ...
3640 (is_proper_for_analysis): ... this.
3642 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
3645 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
3646 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
3647 replace the conditional with it's true branch.
3648 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
3649 (arm_lra_p): Remove.
3651 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
3653 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
3655 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3657 * config/tilegx/mul-tables.c: Move symtab.h include after
3658 coretypes.h include.
3659 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
3660 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
3661 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
3662 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
3663 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3665 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
3669 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
3671 PR rtl-optimization/64081
3672 * loop-iv.c (def_pred_latch_p): New function.
3673 (latch_dominating_def): Allow specific cases with non-single
3675 (iv_get_reaching_def): Likewise.
3676 (check_complex_exit_p): New function.
3677 (check_simple_exit): Use check_complex_exit_p to allow certain cases
3678 with exits not executing on any iteration.
3680 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3683 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
3686 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3689 * i386.c (gate): Check flag_expensive_optimizations and
3691 (ix86_option_override_internal): Drop optimize_size condition
3692 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
3693 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
3695 (ix86_avx256_split_vector_move_misalign,
3696 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
3697 * sse.md (all uses of TARGET_PREFER_AVX128): Add
3698 optimize_insn_for_speed_p check.
3700 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
3702 * config/mips/mips.h (FP_ASM_SPEC): New define.
3703 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
3706 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
3709 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
3710 nullptr for insn when reaching the first insn.
3711 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
3712 (sh_insn_operands_modified_between_p): Add nullptr check.
3713 (sh_find_extending_set_of_reg): Fix log message. Don't accept
3714 sign extending mem load if the insn contains any UNSPEC or
3717 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3719 * params.def (inline-unit-growth): Drop to 15%.
3720 * invoke.texi (inline-unit-growth): Document change.
3722 2015-01-19 Martin Liska <mliska@suse.cz>
3725 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
3726 function for second argument of OBJ_TYPE_REF.
3728 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3731 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
3732 whether function is an alias.
3734 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
3736 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
3739 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
3741 PR rtl-optimization/64671
3742 * lra-remat.c (operand_to_remat): Don't consider jump and call
3745 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
3748 * config/rs6000/default64.h: Include rs6000-cpus.def.
3749 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
3750 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
3751 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
3753 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
3755 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
3756 pseudo-op to specify assembler dialect.
3758 2015-01-19 Martin Liska <mliska@suse.cz>
3761 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
3762 Handle safe potentially removed nodes during filtering.
3764 2015-01-19 Martin Liska <mliska@suse.cz>
3766 * doc/extend.texi (no_icf): Add new attribute description.
3767 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
3768 where the pass attempts to merge a function with no_icf attribute.
3770 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3773 * doc/md.texi (ARM Options): Document register constraints.
3775 2015-01-19 Jiong Wang <jiong.wang@arm.com>
3776 Andrew Pinski <apinski@cavium.com>
3779 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
3780 (ashl<mode>3): Don't expand if operands[2] is not constant.
3782 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3785 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
3786 Match xor-and-xor RTL pattern.
3788 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
3790 PR rtl-optimization/64081
3791 * loop-iv.c (def_pred_latch_p): New function.
3792 (latch_dominating_def): Allow specific cases with non-single
3794 (iv_get_reaching_def): Likewise.
3795 (check_complex_exit_p): New function.
3796 (check_simple_exit): Use check_complex_exit_p to allow certain cases
3797 with exits not executing on any iteration.
3799 2015-01-19 Jakub Jelinek <jakub@redhat.com>
3801 * common.opt (fgraphite): Fix a typo.
3803 2015-01-19 Felix Yang <felix.yang@huawei.com>
3805 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
3807 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
3808 uminp, smax_nanp, smin_nanp): New builtins.
3809 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
3810 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
3811 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
3812 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
3813 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
3814 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
3815 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
3816 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
3817 vpminnms_f32): Rewrite using builtin functions.
3819 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
3822 * omp-low.c (offload_symbol_decl): Remove variable.
3823 (get_offload_symbol_decl): Remove function.
3824 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
3825 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
3826 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
3827 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
3828 BUILT_IN_GOACC_UPDATE don't pass it at all.
3830 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
3832 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
3835 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
3837 * ipa-chkp.c (chkp_produce_thunks): Add early param
3838 to split thunks production into two passes. Keep
3839 'always_inline' function bodies after the first pass.
3840 (pass_data_ipa_chkp_early_produce_thunks): New.
3841 (pass_ipa_chkp_early_produce_thunks): New.
3842 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
3843 chkp_produce_thunks signature.
3844 (make_pass_ipa_chkp_early_produce_thunks): New.
3845 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
3846 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
3847 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
3849 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3851 * cgraph.c (cgraph_node::dump): Dump profile flags.
3853 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
3856 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
3857 reg appear first in the parallel.
3859 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3861 * ipa-reference.c (set_reference_optimization_summary,
3862 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
3864 (ignore_module_statics): New static var.
3865 (propagate_bits): If ipa-reference is disabled, do not look into local
3867 (analyze_function): Disable analysis when ipa_reference is disabled.
3868 (generate_summary): Do not dump when reference is disabled;
3869 collect vars accessed from functions with ipa-reference disabled.
3870 (get_read_write_all_from_node): When ipa-reference is disabled, use the
3872 (gate): Enable for LTO.
3873 (ignore_edge_p): New function.
3874 (propagate): Skip functions w/o ipa-reference analysis.
3875 * optc-save-gen.awk: Handle optimize_debug correctly.
3876 * opth-gen.awk: Likewise.
3877 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
3878 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
3879 fira-share-save-slots, fira-share-spill-slots,
3880 fmodulo-sched-allow-regmoves, fpartial-inlining,
3881 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
3882 ftracer, ftree-parallelize-loops, fassociative-math,
3883 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
3885 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
3886 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
3888 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
3891 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
3894 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
3896 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
3898 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
3900 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
3901 Remove duplicate option listings.
3903 2015-01-18 Felix Yang <felix.yang@huawei.com>
3905 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
3906 (autofdo_source_profile::get_callsite_total_count,
3907 function_instance::get_function_instance_by_decl,
3908 string_table::get_index, string_table::get_index_by_decl,
3909 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
3910 Fix comment typos. Reformatting and minor code rearrangement.
3912 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3914 * config/rs6000/rs6000.md (probe_stack): Delete.
3915 (probe_stack_address): New.
3917 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3919 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
3920 to test for 32-bit ABIs, not !TARGET_POWERPC64.
3922 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3924 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
3925 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
3926 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
3928 (rs6000_libcall_value): Use the new function.
3930 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
3932 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
3934 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
3936 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
3937 implement a more precise life analysis for it during backward scan.
3939 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3941 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
3943 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
3945 PR rtl-optimization/52773
3946 * calls.c (emit_library_call_value): When pushing arguments use
3947 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
3948 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
3949 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
3951 2015-01-17 Jeff Law <law@redhat.com>
3953 PR rtl-optimization/32790
3954 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
3955 not ZERO_EXTEND in SET_DESTs.
3957 2015-01-17 Alan Modra <amodra@gmail.com>
3959 * cprop.c (do_local_cprop): Revert last change.
3961 2015-01-16 DJ Delorie <dj@redhat.com>
3962 Nick Clifton <nickc@redhat.com>
3964 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
3965 (addhi3_real): Likewise. Fix [HL+0] syntax.
3966 (subqi3_real): Likewise.
3967 (subhi3_real): Likewise.
3968 (cbranchqi4_real): Likewise. Allow saddr,#imm.
3969 (cbranchhi4_real): Likewise.
3970 (cbranchhi4_real_inverted): Likewise.
3971 (cbranchsi4_real_lt): Likewise.
3972 (cbranchsi4_real_ge): Likewise.
3973 (cbranchsi4_real_ge): Likewise.
3974 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
3975 (sub<mode>3_virt): Likewise.
3976 (cbranchqi4_virt): Likewise.
3977 (cbranchhi4_virt): Likewise.
3978 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
3979 always use '[reg+imm]' even when imm is zero.
3980 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
3981 (rl78_general_operand): New.
3982 (rl78_nonimmediate_operand): New.
3983 (rl78_nonfar_operand): Use them.
3984 (rl78_nonfar_nonimm_operand): Likewise.
3985 (rl78_stack_based_mem): Fix.
3986 * config/rl78/constraints.md (Ibqi): New.
3991 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
3994 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
3996 * config/rl78/constrains (Qs8): New constraint.
3997 * config/rl78/rl78.c (rl78_flags_already_set): New function.
3998 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
3999 * config/rl78/rl78-real.md (update_Z): New attribute.
4000 Update patterns to set it.
4001 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
4002 shorter compare and branch sequence can be used.
4003 (cbranchhi4_real): Likewise.
4004 (cbranchhi4_real_inverted): Likewise.
4006 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
4007 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
4009 * config/rl78/rl78.c (rl78_get_name_encoding): New.
4010 (rl78_option_override): Allow -mes0 only if C.
4011 (characterize_address): Support subregs of symbol_refs.
4012 (rl78_addr_space_address_mode): Move. Add __near.
4013 (rl78_far_p): Likewise.
4014 (rl78_addr_space_pointer_mode): Likewise.
4015 (rl78_as_legitimate_address): Likewise.
4016 (rl78_addr_space_subset_p): Likewise.
4017 (rl78_addr_space_convert): Likewise.
4018 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
4020 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
4022 (rl78_alloc_physical_registers_op1): Change logic to prefer
4023 symbol[BC] addressing.
4024 (frodata_section): New.
4025 (rl78_asm_init_sections): Initialize it.
4026 (rl78_select_section): Put __far readonly symbols in .frodata.
4027 (rl78_make_type_far): New.
4028 (rl78_insert_attributes): Force all readonly symbols to be
4030 (rl78_asm_out_integer): New.
4031 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
4032 * config/rl78/rl78.opt (-mes0): New.
4034 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
4035 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
4036 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
4037 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
4038 (rl78_saddr_p): New.
4039 (rl78_output_aligned_common): New.
4040 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
4041 (rl78_handle_saddr_attribute): New.
4042 (rl78_handle_naked_attribute): New.
4043 (rl78_attribute_table): Add saddr.
4044 (rl78_print_operand_1): Don't print '!' on saddr operands.
4045 (rl78_print_operand_1): Strip encodings.
4047 (rl78_strip_name_encoding): New.
4048 (rl78_attrlist_to_encoding): New.
4049 (rl78_encode_section_info): New.
4050 (rl78_asm_init_sections): New.
4051 (rl78_select_section): New.
4052 (rl78_output_labelref): New.
4053 (rl78_output_aligned_common): New.
4054 (rl78_asm_out_integer): New.
4055 (rl78_asm_ctor_dtor): New.
4056 (rl78_asm_constructor): New.
4057 (rl78_asm_destructor): New.
4059 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
4060 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
4061 (transcode_memory_rtx): Update.
4062 (rl78_expand_epilogue): Use A_REG instead of 0.
4064 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4066 * config/arm/arm-protos.h (struct tune_params): New field
4067 sched_autopref_queue_depth.
4068 * config/arm/arm.c (sched-int.h): Include header.
4069 (arm_first_cycle_multipass_dfa_lookahead_guard,)
4070 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
4071 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
4072 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
4073 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
4074 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
4075 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
4076 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
4077 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
4078 * config/arm/t-arm (arm.o): Update.
4079 * haifa-sched.c (update_insn_after_change): Update.
4080 (rank_for_schedule): Use auto-prefetcher model, if requested.
4081 (autopref_multipass_init): New static function.
4082 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
4083 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
4084 variable for debug dumps.
4085 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
4086 (autopref_multipass_dfa_lookahead_guard): New global function that
4087 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
4088 (init_h_i_d): Update.
4089 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
4090 * sched-int.h (enum autopref_multipass_data_status): New const enum.
4091 (autopref_multipass_data_): Structure for auto-prefetcher data.
4092 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
4093 (struct _haifa_insn_data:autopref_multipass_data): New field.
4094 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
4095 (autopref_multipass_dfa_lookahead_guard): Declare.
4097 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4099 * rtlanal.c (get_base_term): Handle SCRATCH.
4101 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4103 * config/aarch64/aarch64.c
4104 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
4105 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
4107 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
4108 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
4110 2015-01-17 Alan Modra <amodra@gmail.com>
4112 * cprop.c (do_local_cprop): Disallow replacement of fixed
4115 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4118 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
4121 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4123 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
4124 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
4126 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4128 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
4129 * config/arm/thumb1.md: ... Here.
4131 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
4133 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
4134 TImode for TARGET_32BIT.
4136 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
4138 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
4139 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
4141 (rs6000_abi_word_mode): New function.
4143 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
4145 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
4146 instead of UNITS_PER_WORD to describe the size of stack slots.
4148 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
4150 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
4151 as rs6000_promote_function_mode. Move comment to there.
4152 (rs6000_promote_function_mode): New function.
4154 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
4156 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
4157 -mpowerpc64 is active.
4159 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
4162 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
4165 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
4167 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
4168 introduced in revision 219724.
4170 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4171 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4174 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
4175 destination is not a GP reg.
4176 (*movdi_aarch64): Likewise.
4178 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
4181 * config/rs6000/default64.h: Revert ISA change.
4183 2015-01-16 Richard Biener <rguenther@suse.de>
4186 * tree-ssa-uninit.c: Include tree-cfg.h.
4187 (MAX_SWITCH_CASES): New define.
4188 (convert_control_dep_chain_into_preds): Handle switch statements.
4189 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
4190 (normalize_one_pred_1): Do not split bit-manipulations.
4193 2015-01-16 Richard Biener <rguenther@suse.de>
4195 PR tree-optimization/64568
4196 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
4197 complex load rewriting for TARGET_MEM_REFs.
4199 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
4201 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
4203 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
4206 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
4208 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
4209 (aarch64_lra_p): Remove.
4211 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
4214 * ipa-chkp.h (chkp_instrumentable_p): New.
4215 * ipa-chkp.c: Include tree-inline.h.
4216 (chkp_instrumentable_p): New.
4217 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
4218 Fix processing of not instrumentable functions.
4219 (chkp_versioning): Use chkp_instrumentable_p. Warn about
4220 not instrumentable functions.
4221 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
4222 chkp_instrumentable_p.
4223 * tree-inline.h (copy_forbidden): New.
4224 * tree-inline.c (copy_forbidden): Not static anymore.
4226 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4228 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
4231 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
4233 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
4234 type OP_OUT to OP_INOUT.
4236 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
4238 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
4239 (high x) y) to y if x and y have the same base.
4241 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
4243 * config/arm/cortex-a57.md: New.
4244 * config/aarch64/aarch64.md: Include it.
4245 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
4246 * config/aarch64/aarch64-tune.md: Regenerate.
4248 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
4251 * ccmp.c (expand_ccmp_next): New function.
4252 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
4253 and compare insn sequence.
4254 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
4255 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
4256 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
4257 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
4258 (*ccmp_ior): Changed to ccmp_ior<mode>.
4259 (cmp<mode>): New pattern.
4260 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
4262 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
4264 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
4266 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
4267 _mm256_bsrli_epi128): New.
4268 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
4270 2015-01-15 Jiong Wang <jiong.wang@arm.com>
4272 * expmed.c (store_bit_field_using_insv): Improve warning message.
4273 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
4275 2015-01-15 Jiong Wang <jiong.wang@arm.com>
4277 PR rtl-optimization/64011
4278 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
4279 there is partial overflow.
4281 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4283 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
4285 (nds32_expand_epilogue_v3pop): Likewise.
4286 * config/nds32/nds32.md (sibcall): Define this for sibling call
4288 (sibcall_register): Likewise.
4289 (sibcall_immediate): Likewise.
4290 (sibcall_value): Likewise.
4291 (sibcall_value_register): Likewise.
4292 (sibcall_value_immediate): Likewise.
4293 (sibcall_epilogue): Likewise.
4294 (epilogue): Pass false to indicate this is not a sibcall epilogue.
4295 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
4296 (nds32_expand_epilogue_v3pop): Likewise.
4298 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4300 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
4301 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
4302 (return_internal): New.
4303 (return): Define this named pattern.
4304 (simple_return): Define this named pattern.
4305 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
4306 pattern instead of unspec_volatile_func_return.
4307 (nds32_expand_epilogue_v3pop): Likewise.
4308 (nds32_can_use_return_insn): New function.
4310 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4312 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
4313 * config/nds32/nds32.md (pop25return): New.
4314 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
4315 pop25return pattern.
4317 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4319 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
4320 -mforbid-fp-as-gp, and -mex9 options.
4322 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
4324 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
4325 remove -mgp-direct option.
4327 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4329 * doc/invoke.texi (--param early-inlining-insns): Update default value.
4330 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
4332 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4334 * ipa-inline.c (inline_small_functions): Work around hints
4337 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
4340 * doc/invoke.texi (Option Summary): Document new Nios II
4342 (Nios II Options): Likewise.
4343 * config/nios2/nios2.opt: Add -mgpopt= option support.
4344 Modify existing -mgpopt and -mno-gpopt options to be aliases.
4345 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
4346 * config/nios2/nios2.c (nios2_option_override): Adjust
4348 (nios2_in_small_data_p): Return true for explicit small data
4349 sections even with -G0.
4350 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
4353 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4356 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
4358 (inline_call): Fix removal of aliases.
4360 2015-01-15 Jakub Jelinek <jakub@redhat.com>
4362 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
4363 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
4364 * opts.c (common_handle_option): Add -fsanitize=vptr.
4365 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
4366 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
4367 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
4368 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
4369 (ubsan_expand_vptr_ifn): New prototype.
4370 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
4371 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
4372 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
4373 expand_LOOP_VECTORIZED): Make argument nameless, remove
4375 (expand_UBSAN_VPTR): New function.
4376 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
4378 (UBSAN_VPTR): New internal function.
4379 * sanopt.c (tree_map_traits): Renamed to ...
4380 (sanopt_tree_map_traits): ... this.
4381 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
4382 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
4383 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
4384 (maybe_optimize_ubsan_vptr_ifn): New function.
4385 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
4386 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
4388 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
4389 internal calls like pure functions for aliasing, even when they
4390 have other side-effects that prevent making them ECF_PURE.
4391 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
4392 (ubsan_expand_vptr_ifn): New function.
4394 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
4396 PR rtl-optimization/64110
4397 * stmt.c (parse_output_constraint): Process '^' and '$'.
4398 (parse_input_constraint): Ditto.
4399 * lra-constraints.c (process_alt_operands): Process the new
4401 * ira-costs.c (record_reg_classes): Process the new constraint
4403 * genoutput.c (indep_constraints): Add '^' and '$'.
4404 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
4405 * doc/md.texi: Add description of the new constraints.
4407 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4408 Bernd Schmidt <bernds@codesourcery.com>
4409 Cesar Philippidis <cesar@codesourcery.com>
4410 James Norris <jnorris@codesourcery.com>
4411 Tom de Vries <tom@codesourcery.com>
4412 Ilmir Usmanov <i.usmanov@samsung.com>
4413 Dmitry Bocharnikov <dmitry.b@samsung.com>
4414 Evgeny Gavrin <e.gavrin@samsung.com>
4415 Jakub Jelinek <jakub@redhat.com>
4417 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
4418 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4419 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4421 * builtins.c: Include "gomp-constants.h".
4422 (expand_builtin_acc_on_device): New function.
4423 (expand_builtin, is_inexpensive_builtin): Handle
4424 BUILT_IN_ACC_ON_DEVICE.
4425 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
4427 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
4429 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
4430 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
4431 i386/intelmic-offload.h.
4432 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
4433 to libgomp and its dependencies.
4434 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
4435 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4436 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4437 * config/ia64/hpux.h (LIB_SPEC): Likewise.
4438 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4439 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4440 * doc/generic.texi: Update for OpenACC changes.
4441 * doc/gimple.texi: Likewise.
4442 * doc/invoke.texi: Likewise.
4443 * doc/sourcebuild.texi: Likewise.
4444 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
4445 GF_OMP_FOR_KIND_OACC_LOOP.
4446 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
4447 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
4448 GF_OMP_TARGET_KIND_OACC_UPDATE,
4449 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
4451 * gimple.c: Update comments for OpenACC changes.
4452 * gimple.def: Likewise.
4453 * gimple.h: Likewise.
4454 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
4455 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
4456 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
4457 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
4458 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
4460 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
4461 * gimplify.c: Include "gomp-constants.h".
4462 Update comments for OpenACC changes.
4463 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
4464 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
4465 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
4466 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4467 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4468 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4469 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
4470 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
4471 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4473 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
4474 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
4475 OMP_CLAUSE_SET_MAP_KIND.
4476 (gimplify_oacc_cache): New function.
4477 (gimplify_omp_for): Handle OACC_LOOP.
4478 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
4480 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
4481 OACC_EXIT_DATA, OACC_UPDATE.
4482 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
4483 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
4484 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
4485 (gimplify_body): Consider flag_openacc next to flag_openmp.
4486 * lto-streamer-out.c: Include "gomp-constants.h".
4487 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
4488 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
4489 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
4490 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
4491 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
4492 (BUILT_IN_ACC_ON_DEVICE): New builtins.
4493 * omp-low.c: Include "gomp-constants.h".
4494 Update comments for OpenACC changes.
4495 (struct omp_context): Add reduction_map, gwv_below, gwv_this
4497 (extract_omp_for_data, use_pointer_for_field, install_var_field)
4498 (new_omp_context, delete_omp_context, scan_sharing_clauses)
4499 (create_omp_child_function, scan_omp_for, scan_omp_target)
4500 (check_omp_nesting_restrictions, lower_reduction_clauses)
4501 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
4502 Update for OpenACC changes.
4503 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
4504 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
4505 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
4506 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
4507 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
4508 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
4510 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4511 Handle GF_OMP_FOR_KIND_OACC_LOOP.
4512 (expand_omp_target, lower_omp_target): Handle
4513 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
4514 GF_OMP_TARGET_KIND_OACC_UPDATE,
4515 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
4516 GF_OMP_TARGET_KIND_OACC_DATA.
4517 (pass_expand_omp::execute, execute_lower_omp)
4518 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
4520 (offload_symbol_decl): New variable.
4521 (oacc_get_reduction_array_id, oacc_max_threads)
4522 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
4523 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
4524 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
4525 (oacc_gimple_assign, oacc_initialize_reduction_data)
4526 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
4528 (is_targetreg_ctx): Remove function.
4529 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
4530 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
4531 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4532 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
4533 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
4534 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
4535 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
4536 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
4537 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
4538 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
4539 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
4540 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
4541 * tree-core.h: Update comments for OpenACC changes.
4542 (enum omp_clause_map_kind): Remove.
4543 (struct tree_omp_clause): Change type of map_kind member from enum
4544 omp_clause_map_kind to unsigned char.
4545 * tree-inline.c: Update comments for OpenACC changes.
4546 * tree-nested.c: Likewise. Include "gomp-constants.h".
4547 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
4548 (convert_tramp_reference_stmt, convert_gimple_call): Update for
4549 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
4550 OMP_CLAUSE_SET_MAP_KIND.
4551 * tree-pretty-print.c: Include "gomp-constants.h".
4552 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
4553 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
4554 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
4555 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
4556 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4557 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
4558 instead of OMP_CLAUSE_MAP_*.
4559 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
4560 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
4561 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
4562 * tree-streamer-in.c: Include "gomp-constants.h".
4563 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
4564 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
4565 * tree-streamer-out.c: Include "gomp-constants.h".
4566 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
4568 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
4569 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
4570 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
4571 * tree.c (omp_clause_num_ops): Update accordingly.
4572 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
4574 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
4575 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
4576 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
4577 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
4578 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
4579 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
4580 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
4581 (OMP_CLAUSE_SET_MAP_KIND): New macro.
4582 * varpool.c (varpool_node::get_create): Consider flag_openacc next
4584 * config/i386/intelmic-offload.h: New file.
4585 * config/nvptx/offload.h: Likewise.
4587 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4589 * explow.h: Remove duplicate contents.
4590 * dojump.h: Likewise.
4592 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
4594 * arm.c (arm_xgene_tune): Add default initializer for instruction
4597 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
4601 * ipa.c (symbol_table::remove_unreachable_nodes):
4602 Do not put abstract origins into boundary.
4604 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
4606 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
4607 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
4609 2015-01-15 Steve Ellcey <sellcey@mips.com>
4611 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
4612 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
4613 builtins.def, and chkp-builtins.def.
4615 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
4617 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
4620 2015-01-15 Richard Biener <rguenther@suse.de>
4622 PR tree-optimization/61743
4623 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
4624 information on PHIs for some simple cases.
4626 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4628 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
4630 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
4631 * config/arm/arm-cores.def (xgene1): New entry.
4632 * config/arm/arm-tables.opt: Regenerate.
4633 * config/arm/arm-tune.md: Regenerate.
4634 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
4636 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
4638 * tree-if-conv.c: Include hash-map.h.
4639 (aggressive_if_conv): New variable.
4640 (fold_build_cond_expr): Add simplification of non-zero condition.
4641 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
4642 destination block is not always executed.
4643 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
4644 than two predecessors if AGGRESSIVE_IF_CONV is true.
4645 (if_convertible_stmt_p): Fix commentary.
4646 (all_preds_critical_p): New function.
4647 (has_pred_critical_p): New function.
4648 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
4649 BB can have more than two predecessors and all incoming edges can be
4651 (predicate_bbs): Skip predication for loop exit block, use build2_loc
4652 to compute predicate for true edge.
4653 (find_phi_replacement_condition): Delete this function.
4654 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
4655 Allow interchange PHI arguments if EXTENDED is false.
4656 Change check that block containing reduction statement candidate
4657 is predecessor of phi-block since phi may have more than two arguments.
4658 (phi_args_hash_traits): New helper structure.
4659 (struct phi_args_hash_traits): New type.
4660 (phi_args_hash_traits::hash): New function.
4661 (phi_args_hash_traits::equal_keys): New function.
4662 (gen_phi_arg_condition): New function.
4663 (predicate_scalar_phi): Add handling of phi nodes with more than two
4664 arguments, delete COND and TRUE_BB arguments, insert body of
4665 find_phi_replacement_condition to predicate ordinary phi nodes.
4666 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
4667 delete call of find_phi_replacement_condition and invoke
4668 predicate_scalar_phi with two arguments.
4669 (insert_gimplified_predicates): Add assert that non-predicated block
4670 don't have statements to insert.
4671 (ifcvt_split_critical_edges): New function.
4672 (ifcvt_split_def_stmt): Likewise.
4673 (ifcvt_walk_pattern_tree): Likewise.
4674 (stmt_is_root_of_bool_pattern): Likewise.
4675 (ifcvt_repair_bool_pattern): Likewise.
4676 (ifcvt_local_dce): Likewise.
4677 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
4678 is copy of inner or outer loop force_vectorize field, invoke
4679 ifcvt_split_critical_edges, ifcvt_local_dce and
4680 ifcvt_repair_bool_pattern for aggressive if-conversion.
4682 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
4684 * config/aarch64/aarch64.md: Include xgene1.md.
4685 * config/aarch64/xgene1.md: New file.
4687 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4689 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
4690 xgene1 (APM XGene-1) core definition.
4691 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
4692 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
4693 * doc/invoke.texi: Document -mcpu=xgene1.
4695 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4697 * dojump.h: New header file.
4698 * explow.h: Likewise.
4699 * expr.h: Remove includes.
4700 Move expmed.c prototypes to expmed.h.
4701 Move dojump.c prototypes to dojump.h.
4702 Move alias.c prototypes to alias.h.
4703 Move explow.c prototypes to explow.h.
4704 Move calls.c prototypes to calls.h.
4705 Move emit-rtl.c prototypes to emit-rtl.h.
4706 Move varasm.c prototypes to varasm.h.
4707 Move stmt.c prototypes to stmt.h.
4708 (saved_pending_stack_adjust): Move to dojump.h.
4709 (adjust_address): Move to explow.h.
4710 (adjust_address_nv): Move to emit-rtl.h.
4711 (adjust_bitfield_address): Likewise.
4712 (adjust_bitfield_address_size): Likewise.
4713 (adjust_bitfield_address_nv): Likewise.
4714 (adjust_automodify_address_nv): Likewise.
4715 * explow.c (expr_size): Move to expr.c.
4716 (int_expr_size): Likewise.
4717 (tree_expr_size): Likewise.
4718 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4719 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4720 * genemit.c (main): Generate includes statistics.h, real.h,
4721 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
4723 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
4724 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
4725 explow.h, emit-rtl.h, stmt.h.
4726 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
4727 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
4728 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
4729 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
4730 emit-rtl.h, varasm.h, stmt.h.
4731 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
4732 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
4733 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
4734 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
4735 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
4736 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
4737 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
4738 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
4739 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
4740 tm.h tree.h varasm.h vec.h wide-int.h.
4741 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4742 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
4743 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
4744 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
4745 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
4746 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
4747 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
4748 * loop-iv.c: Likewise.
4749 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
4750 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
4751 statistics.h stmt.h tree.h varasm.h wide-int.h.
4752 * lra-constraints.c: Likewise.
4753 * lra-eliminations.c: Likewise.
4754 * lra-lives.c: Likewise.
4755 * lra-remat.c: Likewise.
4756 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4757 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
4758 statistics.h stmt.h tree.h varasm.h wide-int.h.
4759 * hw-doloop.c: Likewise.
4760 * ira-color.c: Likewise.
4761 * ira-emit.c: Likewise.
4762 * loop-doloop.c: Likewise.
4763 * loop-invariant.c: Likewise.
4764 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4765 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
4766 statistics.h stmt.h tree.h varasm.h wide-int.h.
4767 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
4768 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
4769 statistics.h stmt.h tree.h varasm.h wide-int.h.
4770 * combine-stack-adj.c: Likewise.
4773 * ifcvt.c: Likewise.
4774 * ira-costs.c: Likewise.
4776 * lra-coalesce.c: Likewise.
4777 * lra-spills.c: Likewise.
4778 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4779 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
4780 stmt.h varasm.h wide-int.h.
4781 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4782 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
4784 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
4785 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
4786 statistics.h stmt.h varasm.h wide-int.h.
4787 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
4788 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
4789 varasm.h wide-int.h.
4790 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
4791 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4792 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
4793 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
4794 statistics.h stmt.h.
4795 * config/tilepro/tilepro.c: Likewise.
4796 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
4797 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
4798 * config/pdp11/pdp11.c: Likewise.
4799 * config/xtensa/xtensa.c: Likewise.
4800 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
4801 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
4803 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4804 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
4805 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
4806 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4807 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
4808 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
4809 * rtl-chkp.c: Likewise.
4810 * tree-chkp-opt.c: Likewise.
4811 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
4812 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
4813 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
4814 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4815 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4816 statistics.h stmt.h.
4817 * tree-vect-data-refs.c: Likewise.
4818 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
4819 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4820 rtl.h statistics.h stmt.h varasm.h.
4821 * internal-fn.c: Likewise.
4822 * ipa-icf-gimple.c: Likewise.
4823 * lto-section-out.c: Likewise.
4824 * tree-data-ref.c: Likewise.
4825 * tree-nested.c: Likewise.
4826 * tree-outof-ssa.c: Likewise.
4827 * tree-predcom.c: Likewise.
4828 * tree-pretty-print.c: Likewise.
4829 * tree-scalar-evolution.c: Likewise.
4830 * tree-ssa-strlen.c: Likewise.
4831 * tree-vect-loop.c: Likewise.
4832 * tree-vect-patterns.c: Likewise.
4833 * tree-vect-slp.c: Likewise.
4834 * tree-vect-stmts.c: Likewise.
4836 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4837 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
4839 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
4840 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4841 statistics.h stmt.h varasm.h.
4842 * loop-unroll.c: Likewise.
4843 * ubsan.c: Likewise.
4844 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
4845 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
4847 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4848 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
4849 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
4850 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4851 statistics.h stmt.h.
4852 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
4853 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4854 statistics.h stmt.h varasm.h.
4855 * gimple-match-head.c: Likewise.
4856 * lto-cgraph.c: Likewise.
4857 * lto-section-in.c: Likewise.
4858 * lto-streamer-in.c: Likewise.
4859 * lto-streamer-out.c: Likewise.
4860 * tree-affine.c: Likewise.
4861 * tree-cfg.c: Likewise.
4862 * tree-cfgcleanup.c: Likewise.
4863 * tree-if-conv.c: Likewise.
4864 * tree-into-ssa.c: Likewise.
4865 * tree-ssa-alias.c: Likewise.
4866 * tree-ssa-copyrename.c: Likewise.
4867 * tree-ssa-dse.c: Likewise.
4868 * tree-ssa-forwprop.c: Likewise.
4869 * tree-ssa-live.c: Likewise.
4870 * tree-ssa-math-opts.c: Likewise.
4871 * tree-ssa-pre.c: Likewise.
4872 * tree-ssa-sccvn.c: Likewise.
4873 * tree-tailcall.c: Likewise.
4874 * tree-vect-generic.c: Likewise.
4875 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4876 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
4877 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4878 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
4879 * varasm.c: Likewise.
4880 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4881 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
4883 * init-regs.c: Likewise.
4885 * omp-low.c: Likewise.
4886 * stack-ptr-mod.c: Likewise.
4887 * tree-ssa-reassoc.c: Likewise.
4888 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4889 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
4891 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4892 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
4893 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4894 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
4895 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4896 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
4897 * tree-ssa-phiopt.c: Likewise.
4898 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4899 fixed-value.h hashtab.h real.h statistics.h stmt.h.
4900 * config/fr30/fr30.c: Likewise.
4901 * config/frv/frv.c: Likewise.
4903 * final.c: Likewise.
4904 * optabs.c: Likewise.
4905 * passes.c: Likewise.
4906 * simplify-rtx.c: Likewise.
4908 * toplev.c: Likewise.
4909 * var-tracking.c: Likewise.
4910 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4911 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4912 * lower-subreg.c: Likewise.
4913 * postreload-gcse.c: Likewise.
4915 * reginfo.c: Likewise.
4916 * store-motion.c: Likewise.
4917 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4918 fixed-value.h hashtab.h real.h stmt.h varasm.h.
4919 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4920 fixed-value.h hashtab.h statistics.h stmt.h.
4921 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4922 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4923 * except.c: Likewise.
4924 * explow.c: Likewise.
4925 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4926 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
4928 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4929 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
4930 * tree-ssa-structalias.c: Likewise.
4931 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4932 fixed-value.h insn-config.h real.h statistics.h.
4933 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4934 fixed-value.h insn-config.h real.h statistics.h stmt.h.
4935 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4936 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4937 * cfgbuild.c: Likewise.
4938 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4939 fixed-value.h real.h rtl.h statistics.h stmt.h.
4940 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4941 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4942 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4943 fixed-value.h real.h statistics.h stmt.h.
4944 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4945 fixed-value.h real.h statistics.h stmt.h varasm.h.
4946 * cprop.c: Likewise.
4947 * modulo-sched.c: Likewise.
4948 * postreload.c: Likewise.
4949 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4950 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
4951 statistics.h stmt.h varasm.h.
4952 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
4953 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4954 rtl.h statistics.h stmt.h varasm.h.
4955 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
4956 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
4958 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4959 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
4961 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
4962 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
4964 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
4965 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4966 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4967 function.h real.h statistics.h stmt.h varasm.h.
4968 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4969 insn-config.h real.h statistics.h stmt.h.
4970 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4971 statistics.h stmt.h.
4972 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
4973 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
4974 statistics.h stmt.h varasm.h.
4975 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
4976 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
4977 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4978 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
4979 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
4980 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4981 statistics.h stmt.h varasm.h.
4982 * ipa-polymorphic-call.c: Likewise.
4983 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
4984 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4985 statistics.h stmt.h.
4986 * config/c6x/c6x.c: Likewise.
4987 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
4988 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4989 statistics.h stmt.h varasm.h.
4990 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
4991 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
4993 * ipa-split.c: Likewise.
4994 * tree-eh.c: Likewise.
4995 * tree-ssa-dce.c: Likewise.
4996 * tree-ssa-loop-niter.c: Likewise.
4997 * tree-vrp.c: Likewise.
4998 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
4999 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
5001 * config/nds32/nds32-fp-as-gp.c: Likewise.
5002 * config/nds32/nds32-intrinsic.c: Likewise.
5003 * config/nds32/nds32-isr.c: Likewise.
5004 * config/nds32/nds32-md-auxiliary.c: Likewise.
5005 * config/nds32/nds32-memory-manipulation.c: Likewise.
5006 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5007 * config/nds32/nds32-predicates.c: Likewise.
5008 * config/nds32/nds32.c: Likewise.
5009 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
5010 fixed-value.h hashtab.h real.h statistics.h.
5011 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
5012 fixed-value.h hashtab.h real.h statistics.h stmt.h.
5013 * config/arm/arm.c: Likewise.
5014 * config/avr/avr.c: Likewise.
5015 * config/bfin/bfin.c: Likewise.
5016 * config/h8300/h8300.c: Likewise.
5017 * config/i386/i386.c: Likewise.
5018 * config/ia64/ia64.c: Likewise.
5019 * config/iq2000/iq2000.c: Likewise.
5020 * config/m32c/m32c.c: Likewise.
5021 * config/m32r/m32r.c: Likewise.
5022 * config/m68k/m68k.c: Likewise.
5023 * config/mcore/mcore.c: Likewise.
5024 * config/mep/mep.c: Likewise.
5025 * config/mips/mips.c: Likewise.
5026 * config/mn10300/mn10300.c: Likewise.
5027 * config/moxie/moxie.c: Likewise.
5028 * config/pa/pa.c: Likewise.
5029 * config/rl78/rl78.c: Likewise.
5030 * config/rx/rx.c: Likewise.
5031 * config/s390/s390.c: Likewise.
5032 * config/sh/sh.c: Likewise.
5033 * config/sparc/sparc.c: Likewise.
5034 * config/spu/spu.c: Likewise.
5035 * config/stormy16/stormy16.c: Likewise.
5036 * config/v850/v850.c: Likewise.
5037 * config/vax/vax.c: Likewise.
5038 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
5039 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
5040 * config/msp430/msp430.c: Likewise.
5041 * predict.c: Likewise.
5042 * value-prof.c: Likewise.
5043 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
5044 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
5045 * config/microblaze/microblaze.c: Likewise.
5046 * config/nios2/nios2.c: Likewise.
5047 * config/rs6000/rs6000.c: Likewise.
5048 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
5049 insn-config.h real.h rtl.h statistics.h stmt.h.
5050 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
5051 insn-config.h real.h statistics.h stmt.h.
5052 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
5053 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
5054 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
5055 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
5056 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
5057 fixed-value.h real.h statistics.h stmt.h.
5058 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
5059 fixed-value.h statistics.h stmt.h.
5060 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
5063 2015-01-15 Jakub Jelinek <jakub@redhat.com>
5065 * gengtype.c (create_user_defined_type): Workaround
5066 -Wmaybe-uninitialized false positives.
5067 * cse.c (fold_rtx): Likewise.
5068 * loop-invariant.c (gain_for_invariant): Likewise.
5070 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
5072 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
5073 set the memory attributes in all cases but clear MEM_EXPR if need be.
5075 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
5077 PR tree-optimization/64434
5078 * cfgexpand.c (reorder_operands): New function.
5079 (expand_gimple_basic_block): Insert call of reorder_operands if
5082 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
5084 * config/mips/micromips.md (*swp): Remove explicit parallel.
5085 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
5086 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
5087 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
5088 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
5089 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
5090 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
5091 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
5092 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
5093 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
5094 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
5095 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
5096 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
5097 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
5098 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
5099 (mips_wrdsp): Likewise.
5100 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
5102 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
5103 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
5104 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
5105 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
5106 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
5107 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
5108 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
5109 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
5110 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
5112 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
5114 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
5115 (mips_print_operand): Support 'y' to print exact log2 in decimal
5117 * config/mips/mips.h (ISA_HAS_LSA): New define.
5118 (ISA_HAS_DLSA): Likewise.
5119 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
5120 * config/mips/predicates.md (const_immlsa_operand): New predicate.
5122 2015-01-15 Martin Liska <mliska@suse.cz>
5125 * optc-save-gen.awk: Add support for array types.
5127 2015-01-15 Richard Biener <rguenther@suse.de>
5130 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
5131 for MEM_REF access functions with the same base can never partially
5134 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5136 * common.opt: New option -fstack-protector-explicit.
5137 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
5138 (stack_protect_decl_phase): Handle stack_protect attribute for
5139 explicit stack protection requests.
5140 (expand_used_vars): Similarly.
5141 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
5142 * doc/extend.texi: Add documentation for "stack_protect" attribute.
5143 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
5145 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
5148 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
5150 (sh_extending_set_of_reg): New struct.
5151 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
5152 sh_remove_reg_dead_or_unused_notes): New Declarations.
5153 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
5154 sh_find_extending_set_of_reg, sh_split_tst_subregs,
5155 sh_extending_set_of_reg::use_as_extended_reg): New functions.
5156 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
5157 convert to insn_and_split and use new function sh_split_tst_subregs.
5159 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
5161 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
5163 (Optimization Options): Move -fuse-ld documentation to...
5164 (Link Options): ...here.
5166 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
5168 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
5170 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
5171 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
5172 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
5173 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
5174 instead of ZR for the memory operand of LL/SC.
5175 (compare_and_swap_12, sync_add<mode>): Likewise.
5176 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
5177 (sync_new_<optab>_12, sync_nand_12): Likewise.
5178 (sync_old_nand_12, sync_new_nand_12): Likewise.
5179 (sync_sub<mode>, sync_old_add<mode>): Likewise.
5180 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
5181 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
5182 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
5183 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
5184 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
5185 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
5186 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
5187 * doc/md.texi (ZC): Update description.
5189 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
5191 * builtins.c (expand_builtin_atomic_exchange): Remove error when
5192 memory model is CONSUME.
5193 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
5194 expand_builtin_atomic_store): Change invalid memory model errors to
5196 (expand_builtin_atomic_clear): Change invalid model errors to warnings
5197 and issue warning for CONSUME.
5199 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
5201 * lto-cgraph: Update function comments for
5202 lto_symtab_encoder_encode_*.
5204 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
5206 * Makefile.in (site.exp): Do not set ENABLE_LTO.
5208 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
5210 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
5211 * lto-cgraph.c (select_what_to_stream): Remove argument, use
5212 lto_stream_offload_p instead.
5213 * lto-streamer.h (select_what_to_stream): Remove argument.
5214 * passes.c (ipa_write_summaries): Likewise.
5215 * tree-pass.h (ipa_write_summaries): Likewise.
5217 2015-01-14 Richard Biener <rguenther@suse.de>
5219 PR tree-optimization/59354
5220 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
5221 groups larger than the slp group size as having gaps.
5223 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
5226 * builtins.c (get_memmodel): Promote consume to acquire always.
5228 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
5231 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
5234 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
5237 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
5239 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
5240 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
5241 AVX512VBMI, as it implies AVX512BW.
5243 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
5246 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
5247 (vec_unpacks_hi_v16sf): Ditto.
5249 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5251 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
5254 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5256 * doc/invoke.texi (mapcs): Mention deprecation.
5257 (mapcs-frame): Likewise.
5259 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5262 * config/arm/arm.c (callee_saved_reg_p): Define.
5263 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
5264 register is callee saved instead of !call_used_regs[reg].
5265 (thumb1_compute_save_reg_mask): Likewise.
5267 2015-01-14 Hale Wang <hale.wang@arm.com>
5269 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
5272 2015-01-14 Richard Biener <rguenther@suse.de>
5275 * tree-inline.c (insert_debug_decl_map): Check destination
5276 function MAY_HAVE_DEBUG_STMTS.
5277 (insert_init_debug_bind): Likewise.
5278 (insert_init_stmt): Remove redundant check.
5279 (remap_gimple_stmt): Drop debug stmts if the destination
5280 function has var-tracking assignments disabled.
5282 2015-01-14 Martin Liska <mliska@suse.cz>
5284 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
5285 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
5287 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5290 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
5291 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
5293 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
5295 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
5296 level from an ARCH; do not inject the default.
5297 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
5298 MIPS_ISA_LEVEL_SPEC.
5299 (MIPS_ISA_NAN2008_SPEC): Update comment.
5300 (BASE_DRIVER_SELF_SPECS): Likewise.
5301 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
5302 MIPS_DEFAULT_ISA_LEVEL_SPEC.
5303 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
5304 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
5305 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
5307 2015-01-14 Richard Biener <rguenther@suse.de>
5309 PR tree-optimization/64493
5310 PR tree-optimization/64495
5311 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
5312 assign the proper vectorized PHI to the inner loop exit PHIs.
5314 2015-01-14 Joey Ye <joey.ye@arm.com>
5316 * config/arm/arm.c (arm_compute_save_reg_mask):
5317 Do not save lr in case of tail call.
5318 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
5320 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
5322 * tree-vrp.c (check_array_ref): Emit more warnings
5323 for warn_array_bounds >= 2.
5324 * common.opt: New option -Warray-bounds=.
5325 * doc/invoke.texi: Document -Warray-bounds=.
5327 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
5329 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
5330 (mforbid-fp-as-gp): Remove.
5332 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
5333 (nds32_symbol_load_store_p): Remove.
5334 (nds32_fp_as_gp_check_available): Clean up implementation.
5335 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
5337 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
5338 fp-as-gp and ex9 cases.
5340 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
5342 * tree-profile.c (init_ic_make_global_vars): Drop workaround
5343 for bintuils bug 14342.
5344 (init_ic_make_global_vars): Likewise.
5345 (gimple_init_edge_profiler): Likewise.
5346 (gimple_gen_ic_func_profiler): Likewise.
5348 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5350 * ipa-inline.c (inline_small_functions): Swap the operands in
5353 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
5356 * ipa-inline-analysis.c (node_growth_cache): Remove.
5357 (initialize_growth_caches): Do not initialize it.
5358 (free_growth_caches): Do not free it.
5359 (do_estimate_growth): Rename to ...
5360 (estimate_growth): ... this one; drop growth cache code.
5361 (growth_likely_positive): Always go the heuristics way.
5362 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
5363 (reset_edge_caches): Do not reset node growth.
5364 (heap_edge_removal_hook): Do not maintain cache.
5365 (inline_small_functions): Likewise; strenghten sanity check.
5366 (ipa_inline): Do not maintain caches.
5367 * ipa-inline.h (node_growth_cache): Remove.
5368 (do_estimate_growth): Remove to ...
5369 (estimate_growth): this one; remove inline version.
5370 (reset_node_growth_cache): Remove.
5372 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
5375 * ipa-inline.c (inline_small_functions): Update callee keys after
5376 resolving speculation
5377 (inline_small_functions): Always check monotonicity of the queue.
5379 2015-01-13 Marek Polacek <polacek@redhat.com>
5382 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
5384 2015-01-13 Jakub Jelinek <jakub@redhat.com>
5386 PR rtl-optimization/64286
5387 * ree.c (combine_reaching_defs): Move part of comment earlier,
5388 remove !SCALAR_INT_MODE_P check.
5389 (add_removable_extension): Don't add vector mode
5390 extensions if all uses of the source register aren't the same
5393 2015-01-13 Renlin Li <renlin.li@arm.com>
5395 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
5396 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
5398 2015-01-13 Martin Liska <mliska@suse.cz>
5400 * ipa-icf.c (sem_function::equals_private): Call new functions
5401 cl_target_option_print_diff and cl_optimization_print_diff.
5402 * optc-save-gen.awk (cl_target_option_print_diff): New function.
5403 (cl_optimization_print_diff): Likewise.
5404 * opth-gen.awk: Likewise.
5406 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
5408 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
5409 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
5410 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
5411 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
5412 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
5413 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
5415 2015-01-13 Andrew Pinski <apinski@cavium.com>
5417 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
5418 instead of src mode.
5420 2015-01-13 Richard Biener <rguenther@suse.de>
5423 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
5426 2015-01-13 Andrew Pinski <apinski@cavium.com>
5428 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
5430 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5432 2015-01-13 Jakub Jelinek <jakub@redhat.com>
5435 * cfgexpand.c (expand_computed_goto): Don't call
5436 convert_memory_address here.
5438 2015-01-13 Richard Biener <rguenther@suse.de>
5440 PR tree-optimization/64406
5441 * tree-loop-distibution.c (pass_loop_distribution::execute):
5442 Reset the SCEV hashtable if we distributed anything.
5444 2015-01-13 Richard Biener <rguenther@suse.de>
5446 PR tree-optimization/64404
5447 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
5448 SLP types for CSEd loads.
5450 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5452 PR tree-optimization/64436
5453 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
5454 merge of two symbolic numbers for a bitwise OR to ...
5455 (perform_symbolic_merge): This. Also fix computation of the range and
5456 end of the symbolic number corresponding to the result of a bitwise OR.
5458 2015-01-13 Richard Biener <rguenther@suse.de>
5460 PR tree-optimization/64568
5461 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
5462 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
5464 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5466 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
5467 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
5469 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5471 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
5472 target-specific symbol_ref flag.
5473 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
5474 resides in rodata section.
5475 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
5476 (nds32_encode_section_info): New function.
5478 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5480 * config/nds32/nds32.md (call): Use pseudo instruction bal which
5481 clobbers TA_REGNUM if large code model is specified.
5482 (call_register): Likewise.
5483 (call_immediate): Likewise.
5484 (call_value): Likewise.
5485 (call_value_register): Likewise.
5486 (call_value_immediate): Likewise.
5488 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5490 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
5491 (TARGET_CMODEL_MEDIUM): New macro.
5492 (TARGET_CMODEL_LARGE): New macro.
5493 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
5494 code model setting in assembly code.
5496 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5498 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
5499 Remove MASK_GP_DIRECT flag.
5500 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
5501 one of the multilib default options.
5502 * config/nds32/nds32.opt (mgp-direct): Remove.
5503 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
5504 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
5506 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
5508 * config/nds32/nds32.opt (mcmodel): Add new option.
5509 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
5510 to describe code model.
5512 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
5515 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
5517 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
5519 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
5520 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
5521 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
5522 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
5523 __builtin_sh_set_fpscr.
5525 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
5527 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
5528 after a funtion name just to indicate it is a function.
5529 ([-fsanitize-undefined-trap-on-error]): Likewise.
5530 ([-fdbg-cnt=]): Likewise.
5531 ([-mmemcpy]): Likewise.
5532 ([-mflush-func]): Likewise.
5533 ([-msynci]): Likewise.
5535 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
5537 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
5540 2015-01-12 Jakub Jelinek <jakub@redhat.com>
5542 PR tree-optimization/64563
5543 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
5544 instead of != VR_VARYING.
5547 * config/i386/i386.c (ix86_expand_prologue): Add
5548 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
5550 PR tree-optimization/64454
5551 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
5552 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
5553 for signed or [0, op1 - 1] for unsigned modulo.
5554 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
5555 even if op1 does not satisfy integer_pow2p.
5558 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
5560 2015-01-12 Jeff Law <law@redhat.com>
5563 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
5564 (trunchiqi2, truncsihi2): Similarly.
5566 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
5567 rather than calling F.
5569 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
5571 * tsan.c (instrument_expr): Use force_gimple_operand.
5572 Use may_be_nonaddressable_p instead of is_gimple_addressable.
5574 2015-01-12 Richard Biener <rguenther@suse.de>
5576 PR tree-optimization/64530
5577 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
5580 2015-01-12 Richard Biener <rguenther@suse.de>
5583 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
5586 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5588 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
5589 Cortex-A17 tuning parameters.
5590 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
5592 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5594 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
5595 * config/arm/arm.c (arm_macro_fusion_p): New function.
5596 (arm_macro_fusion_pair_p): Likewise.
5597 (TARGET_SCHED_MACRO_FUSION_P): Define.
5598 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
5599 (ARM_FUSE_NOTHING): Likewise.
5600 (ARM_FUSE_MOVW_MOVT): Likewise.
5601 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5602 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5603 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5604 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5605 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5606 arm_cortex_a5_tune): Specify fuseable_ops value.
5608 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
5611 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
5612 test for PIE with copy reloc.
5613 * configure: Regenerated.
5615 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5617 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
5619 (arm_tls_descseq_addr): Likewise.
5620 (arm_gen_movmemqi): Likewise.
5621 (arm_expand_epilogue_apcs_frame): Likewise.
5622 (arm_expand_epilogue): Likewise.
5623 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
5626 2015-01-12 Martin Liska <mliska@suse.cz>
5629 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
5630 volatility for correct operands.
5632 2015-01-12 Martin Liska <mliska@suse.cz>
5634 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
5635 that a function is not leaf.
5636 (sem_function::compare_polymorphic_p): Likewise.
5638 2015-01-12 Martin Liska <mliska@suse.cz>
5640 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
5641 that a function is not leaf.
5642 (sem_function::compare_polymorphic_p): Likewise.
5644 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5646 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
5647 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
5648 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
5649 fold-const.h, tree-check.h.
5651 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
5655 * ipa-inline.c (compute_uninlined_call_time,
5656 compute_inlined_call_time): Use counts for extra precision when
5658 (big_speedup_p): Fix formating.
5659 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
5660 (relative_time_benefit): Remove.
5661 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
5662 merge guessed and read profile paths.
5663 (inline_small_functions): Count only !optimize_size functions into
5664 initial size; be more lax about sanity check when profile is used;
5665 be sure to update inlined function profile when profile is read.
5667 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
5670 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
5671 cost when edge becomes direct.
5672 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
5673 is resolved or when introducing new speculation.
5675 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
5679 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
5680 '||' to fix typo issue.
5682 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
5683 accept and return NULL.
5685 2015-01-12 Martin Liska <mliska@suse.cz>
5687 * cgraph.c (cgraph_edge::remove_callee): Move function to header
5688 file for being inlined.
5689 (cgraph_set_edge_callee): Delete.
5690 (cgraph_edge::redirect_callee): Move function to header file
5692 (cgraph_edge::make_direct): Use new function.
5693 (cgraph_edge::dump_edge_flags): New function created from
5694 static dump_edge_flags function.
5695 (cgraph_node::dump): Use new function.
5696 (cgraph_edge::verify_count_and_frequency): New function created
5697 from verify_edge_count_and_frequency.
5698 (cgraph_edge::verify_corresponds_to_fndecl): New function created
5699 from verify_edge_corresponds_to_fndecl.
5700 (verify_edge_corresponds_to_fndecl): Delete.
5701 (cgraph_node::verify_node): Use new function.
5702 * cgraph.h (cgraph_edge::set_callee): New function.
5703 (cgraph_edge::dump_edge_flags): Likewise.
5704 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
5706 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
5708 * ipa-utils.c (estimate_function_body_sizes): Do not
5709 free node params when called late with early=true.
5711 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
5713 * doc/md.texi (Instruction Patterns): Rewrite text for
5715 (Example): Likewise.
5717 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
5719 * doc/invoke.texi (Option Summary): Break long lines.
5720 [(-fdiagnostics-color)]: Put long literal in @smallexample
5722 [(-fsanitize-recover)]: Likewise.
5723 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
5724 [(-ffast-math)]: Likewise.
5725 [(--param max-inline-insns-recursive)]: Likewise.
5726 [(--param max-inline-recursive-depth)]: Likewise.
5727 [(-mno-text-section-literals)]: Likewise.
5729 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
5731 * doc/install.texi: Update for libgomp being renamed from "GNU
5732 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
5734 * doc/sourcebuild.texi: Likewise.
5736 2015-01-10 Anthony Green <green@moxielogic.com>
5738 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
5739 mul.x availability for moxiebox configuration.
5741 2015-01-09 Anthony Green <green@moxielogic.com>
5743 * config/moxie/moxie.md: Tabify assembly output.
5745 2015-01-09 Anthony Green <green@moxielogic.com>
5747 * config/moxie/moxie.md (CC_REG): Correct register definition.
5749 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
5751 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
5752 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
5755 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5757 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
5759 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
5760 Jakub Jelinek <jakub@redhat.com>
5763 * lto-streamer.h (lto_stream_offload_p): New declaration.
5764 * lto-streamer.c (lto_stream_offload_p): New variable.
5765 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
5766 at the same time as section_name_prefix.
5767 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
5768 if lto_stream_offload_p.
5769 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
5770 stream TREE_TARGET_OPTION if lto_stream_offload_p.
5771 (write_ts_function_decl_tree_pointers): Don't
5772 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
5773 * tree-streamer-in.c (unpack_value_fields): Don't stream
5774 TREE_TARGET_OPTION in if ACCEL_COMPILER.
5775 (lto_input_ts_function_decl_tree_pointers): Don't stream
5776 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
5777 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
5778 instead of section_name_prefix string comparisons.
5780 2015-01-09 Jakub Jelinek <jakub@redhat.com>
5782 PR rtl-optimization/64536
5783 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
5786 2015-01-09 Michael Collison <michael.collison@linaro.org>
5788 PR tree-optimization/64322
5789 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
5790 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
5792 2015-01-09 Tom de Vries <tom@codesourcery.com>
5794 PR rtl-optimization/64539
5795 * regcprop.c (kill_clobbered_values): Factor out of ...
5796 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
5797 instead of note_stores with kill_clobbered_value.
5799 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5801 * ginclude/unwind-arm-common.h: Revert previous commit.
5803 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
5805 * config.gcc (arm*-*-freebsd*): New configuration.
5806 * config/arm/freebsd.h: New file.
5807 * config.host: Add extra components for arm*-*-freebsd*.
5808 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
5809 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
5811 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5813 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
5815 * config/rs6000/t-rtems: Add e6500 multilibs.
5817 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5819 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
5822 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5824 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
5825 MULTILIB_EXCEPTIONS.
5827 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5829 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
5830 MULTILIB_EXCEPTIONS.
5832 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
5834 * config/arm/t-rtems-eabi: Rename to...
5835 * config/arm/t-rtems: ...this.
5836 * config/arm/rtems-eabi.h: Rename to...
5837 * config/arm/rtems.h: ...this.
5838 * config.gcc (arm*-*-rtems*): Reflect changes above.
5840 2015-01-09 Richard Biener <rguenther@suse.de>
5842 PR tree-optimization/64410
5843 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
5845 (execute_update_addresses_taken): Deal with that.
5846 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
5847 loads/stores for complex variables.
5849 2015-01-09 Martin Liska <mliska@suse.cz>
5851 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
5853 (func_checker::compare_memory_operand): New function.
5854 (func_checker::compare_operand): Split case to newly
5856 (func_checker::compare_cst_or_decl): New function.
5857 (func_checker::compare_gimple_call): Identify
5859 (func_checker::compare_gimple_assign): Likewise.
5860 * ipa-icf-gimple.h: New function.
5862 2015-01-09 Martin Liska <mliska@suse.cz>
5865 * sreal.c (sreal::dump): Change unsigned format to signed for
5867 (sreal::to_double): Replace exp2 with scalbln.
5869 2015-01-09 Martin Liska <mliska@suse.cz>
5871 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
5872 * ipa-icf.c (sem_function::equals_private): Add support for target and
5873 (sem_item_optimizer::merge_classes): Remove redundant function
5874 optimization flags comparison.
5875 * tree.h (target_opts_for_fn): New function.
5877 2015-01-09 Tom de Vries <tom@codesourcery.com>
5879 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
5881 2015-01-09 Kito Cheng <kito@0xlab.org>
5883 PR rtl-optimization/64348
5884 * lra-constraints.c (split_reg): Fix caller-save store/restore
5885 instruction generation.
5887 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
5889 PR gcov-profile/61790
5890 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
5891 long long. Fallback to int64_t if host doesn't have long long and
5892 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
5894 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5896 PR tree-optimization/63989
5897 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
5899 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
5900 (get_stridx): If we don't have a record for certain SSA_NAME,
5901 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
5902 constant offset, call get_stridx_plus_constant.
5903 (get_stridx_plus_constant): New function.
5904 (zero_length_string): Don't use get_stridx here.
5908 * dse.c (struct insn_info): Mention frame_read set also
5909 before reload for tail calls on some targets.
5910 (scan_insn): Revert 2014-12-22 change. Set frame_read
5911 also before reload for tail calls if
5912 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
5913 instead of add_non_frame_wild_read for non-const/memset
5914 tail calls after reload.
5916 2015-01-08 Jason Merrill <jason@redhat.com>
5918 * ubsan.c (do_ubsan_in_current_function): New.
5919 (pass_ubsan::gate): Use it.
5920 * ubsan.h: Declare it.
5921 * convert.c (convert_to_integer): Use it.
5923 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5926 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
5927 compare_code when it is unconditionally overwritten afterwards.
5928 Use ix86_reverse_condition instead of reverse_condition. Don't
5929 change code if *reverse_condition* returned UNKNOWN and don't
5930 swap ct/cf and negate diff in that case.
5932 2015-01-08 Mike Stump <mikestump@comcast.net>
5934 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
5935 (pass_tsan_O0::gate): Likewise.
5936 * extend.texi (Function Attributes): Add no_sanitize_thread
5939 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
5941 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
5942 for registering builtins.
5943 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
5944 add -fopenmp to the argv_obstack used when invoking
5947 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
5948 add "-m32" or "-m64" to argv_obstack.
5949 (generate_host_descr_file): Likewise, when invoking host_compiler.
5950 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
5953 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5955 * config/sh/sh-mem.cc: Use constant as second operand when emitting
5958 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
5961 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
5962 constant load if constant operand fits into I08.
5964 2015-01-08 Jakub Jelinek <jakub@redhat.com>
5967 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
5968 and TREE_THIS_VOLATILE for MEM_REFs.
5969 (build5_stat): Fix up initialization of TREE_READONLY and
5970 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
5972 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
5975 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
5976 of r for the second alternative of the destination operand.
5978 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
5981 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
5983 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5985 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
5987 ([-fivar-visibility], [-fvisibility]): Likewise.
5989 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
5991 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
5992 the file where @code, @command, etc is more appropriate.
5994 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
5996 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
5997 of -mrecip= documentation.
5999 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6002 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
6003 correct reload handler if -m32 -mpowerpc64 is used.
6005 2015-01-06 Tom de Vries <tom@codesourcery.com>
6007 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
6009 2015-01-08 Christian Bruel <christian.bruel@st.com>
6012 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
6014 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
6016 PR tree-optimization/63259
6017 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
6018 if optab exists for 16bit byteswap.
6020 2015-01-06 Jakub Jelinek <jakub@redhat.com>
6022 * opts.c (common_handle_option): Add support for
6023 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
6024 * doc/invoke.texi: Document -fno-sanitize=all,
6025 -f{,no-}sanitize-recover=all. Document that
6026 -fsanitize=float-cast-overflow is not enabled
6027 by -fsanitize=undefined. Fix up documentation
6028 of -f{,no-}sanitize-recover.
6030 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
6032 * config.gcc: Add Visium support.
6033 * configure.ac: Likewise.
6034 * configure: Regenerate.
6035 * doc/extend.texi (interrupt attribute): Add Visium.
6036 * doc/invoke.texi: Document Visium options.
6037 * doc/install.texi: Document Visium target.
6038 * doc/md.texi: Document Visium constraints.
6039 * common/config/visium: New directory.
6040 * config/visium: Likewise.
6042 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
6044 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
6045 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
6047 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
6049 * combine.c (combine_validate_cost): Do not count the cost of a
6050 split I2 twice. Do not display it twice in the dump, either.
6052 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
6054 Revert parts of r219199.
6055 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
6057 ([-Wtraditional]): Restore markup on <limits.h>.
6059 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
6062 * doc/invoke.texi: Document -Wsuggest-override.
6064 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
6066 PR rtl-optimization/64287
6067 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
6068 (process_options): Disable flag_ipa_ra if profiling.
6070 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
6072 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
6074 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
6076 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
6077 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
6078 put under #if TARGET_LOOPS guard.
6080 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
6082 * config/i386/i386.c (output_387_binary_op): Use std::swap.
6084 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
6086 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
6087 * rtl.h (refers_to_regno_p): Add overload.
6089 * bt-load.c: Likewise.
6090 * combine.c: Likewise.
6091 * df-scan.c: Likewise.
6092 * sched-deps.c: Likewise.
6093 * config/s390/s390.c: Likewise.
6094 * config/m32r/m32r.c: Likewise.
6095 * config/rs6000/spe.md: Likewise.
6096 * config/rs6000/rs6000.c: Likewise.
6097 * config/pa/pa.c: Likewise.
6098 * config/stormy16/stormy16.c: Likewise.
6099 * config/cris/cris.c: Likewise.
6100 * config/arc/arc.md: Likewise.
6101 * config/arc/arc.c: Likewise.
6102 * config/sh/sh.md: Likewise.
6103 * config/sh/sh.c: Likewise.
6104 * config/frv/frv.c: Likewise.
6106 2015-01-05 Jakub Jelinek <jakub@redhat.com>
6109 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
6110 call as cleanup of the whole body.
6111 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
6112 * tsan.c (replace_func_exit): New function.
6113 (instrument_func_exit): Moved earlier.
6114 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
6115 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
6117 (tsan_pass): Don't call instrument_func_exit.
6118 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
6119 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
6123 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
6124 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
6125 it to libubsan handler instead of EXPR. Fold comparisons earlier,
6126 if the result is integer_zerop, return NULL_TREE.
6127 * convert.c (convert_to_integer): Pass expr as ARG.
6129 PR tree-optimization/64465
6130 * tree-inline.c (redirect_all_calls): During inlining
6131 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
6132 changed the stmt to a non-throwing call.
6134 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
6136 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
6137 etc markup throughout the file.
6139 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
6141 Enable experimental TSAN support for Ada.
6142 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
6144 2015-01-05 Jakub Jelinek <jakub@redhat.com>
6146 PR tree-optimization/64494
6147 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
6148 clear SSA_NAME_ANTI_RANGE_P flag.
6150 2015-01-05 Marek Polacek <polacek@redhat.com>
6152 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
6154 2015-01-05 Jakub Jelinek <jakub@redhat.com>
6156 Update copyright years.
6158 * gcc.c (process_command): Update copyright notice dates.
6159 * gcov-dump.c: Ditto.
6161 * doc/cpp.texi: Bump @copying's copyright year.
6162 * doc/cppinternals.texi: Ditto.
6163 * doc/gcc.texi: Ditto.
6164 * doc/gccint.texi: Ditto.
6165 * doc/gcov.texi: Ditto.
6166 * doc/install.texi: Ditto.
6167 * doc/invoke.texi: Ditto.
6169 * auto-profile.c, auto-profile.h: Fix up Copyright line.
6171 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
6173 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
6175 ([-fvtable-verify], [-fvtv-debug]): Likewise.
6176 ([-Wabi]): Likewise.
6177 ([-fmessage-length]): Likewise.
6178 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
6179 ([-Wno-discarded-qualifiers]): Likewise.
6180 ([-Wnodiscarded-array-qualifiers]): Likewise.
6181 ([-Wno-virtual-move-assign]): Likewise.
6182 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
6183 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
6184 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
6185 ([-fsanitize-undefined-trap-on-error]): Likewise.
6186 ([-floop-interchange]): Likewise.
6187 ([-ftree-coalesce-inlined-vars]): Likewise.
6188 ([-fvect-cost-model]): Likewise.
6189 ([-flto]): Likewise.
6190 ([--param]): Likewise.
6191 (Spec Files): Likewise.
6192 ([-mstrict-align]): Likewise.
6193 ([-mfix-cortex-a53-835769]): Likewise.
6194 ([-march], [-mtune]): Likewise.
6195 ([-mpic-register]): Likewise.
6196 ([-munaligned-access]): Likewise.
6197 ([-msp8]): Likewise.
6198 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
6199 (AVR Built-in Macros): Likewise.
6200 ([-mpreferred-stack-boundary]): Likewise.
6201 ([-mtune-crtl]): Likewise.
6202 ([-mashf]): Likewise.
6203 ([-mmcu=]): Likewise.
6204 ([-minrt]): Likewise.
6205 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
6206 ([-mupper-regs]): Likewise.
6207 ([-matomic-model]): Likewise.
6208 ([-mdiv]): Likewise.
6209 ([-mzdcbranch]): Likewise.
6210 ([-mdisable-callt]): Likewise.
6211 ([-msoft-float]): Likewise.
6212 ([-m8byte-align]): Likewise.
6213 ([-fstack-reuse]): Likewise.
6215 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6217 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
6218 Fix markup, light copy-editing.
6219 ([-fauto-profile]): Rewrite to fix formatting and content
6222 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6224 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
6225 Copy-edit description.
6226 ([-fisolate-erroneous-paths-attribute]): Likewise.
6227 * common.opt (fisolate-erroneous-paths-dereference):
6228 Copy-edit description.
6229 (fisolate-erroneous-paths-attribute): Likewise.
6231 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6233 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
6236 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
6238 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
6239 ([-fvtv-debug]): Likewise.
6240 ([-Wc++-compat]): Likewise.
6241 ([-Wc++11-compat]): Likewise.
6242 ([-Wc++14-compat]): Likewise.
6243 ([-Wno-sized-deallocation]): Likewise.
6244 ([-femit-class-debug-always]): Likewise.
6245 ([-femit-struct-debug-detailed]): Likewise.
6246 ([-fno-keep-inline-dllexport]): Likewise.
6247 ([-fira-algorithm]): Likewise.
6248 ([-fira-region]): Likewise.
6249 ([-flra-remat]): Likewise.
6250 ([-fipa-ra]): Likewise.
6251 ([-fhoist-adjacent-loads]): Likewise.
6252 ([-fisolate-erroneous-paths-dereference]): Likewise.
6253 ([-fisolate-erroneous-paths-attribute]): Likewise.
6254 ([-ftree-switch-conversion]): Likewise.
6255 ([-ftree-tail-merge]): Likewise.
6256 ([-ftree-loop-if-convert]): Likewise.
6257 ([-ftree-loop-if-convert-stores]): Likewise.
6258 ([-ftree-loop-distribution]): Likewise.
6259 ([-ftree-loop-distribute-patterns]): Likewise.
6260 ([-flto-compression-level]): Likewise.
6261 ([-flto-report]): Likewise.
6262 ([-flto-report-wpa]): Likewise.
6263 ([-fuse-linker-plugin]): Likewise.
6264 ([-mfix-cortex-a53-835769]): Likewise.
6265 ([-mno-fix-cortex-a53-835769]): Likewise.
6266 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
6267 explicit listing; add a note to the discussion indicating they
6268 exist. Reorder table to group similar options. Add missing
6269 @opindex entries. Add @need commands throughout the table to
6270 allow it to be split across multiple pages.
6271 ([-m8bit-idiv]): Fix @opindex.
6272 ([-mavx256-split-unaligned-load]): Likewise.
6273 ([-mavx256-split-unaligned-store]): Likewise.
6274 ([-mstack-protector-guard]): Likewise.
6275 ([-mcpu=]): Likewise.
6276 ([-mcpu]): Likewise.
6277 ([-mpointer-size=]): Likewise.
6279 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
6281 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
6282 instead of `m' constraint. Likewise for unnamed movb comparison
6283 patterns using reg_before_reload_operand predicate.
6284 * config/pa/predicates.md (reg_before_reload_operand): Tighten
6285 predicate to reject register index and LO_SUM DLT memory forms
6288 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
6290 * doc/invoke.texi (Option Summary): Fix spelling of
6291 -fdevirtualize-at-ltrans.
6292 ([-fdevirtualize]): Fix markup.
6293 ([-fdevirtualize-speculatively]): Fix typo.
6294 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
6296 * common.opt (fdevirtualize-at-ltrans): Likewise.
6297 * ipa-devirt.c: Fix typos in comments throughout the file.
6298 (ipa_devirt): Fix typos in format strings for dump output.
6300 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
6302 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
6303 discussion of defaults, light copy-editing.
6305 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6307 * tsan.c (instrument_expr): corrected previous checkin.
6309 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6311 Instrument bit field and unaligned accesses for TSAN.
6312 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
6313 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
6314 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
6315 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
6316 unaligned memory regions.
6318 2015-01-01 Anthony Green <green@moxielogic.com>
6320 * config/moxie/predicates.md (moxie_general_movsrc_operand):
6321 Restrict move source register offsets to 16 bits.
6323 Copyright (C) 2015 Free Software Foundation, Inc.
6325 Copying and distribution of this file, with or without modification,
6326 are permitted in any medium without royalty provided the copyright
6327 notice and this notice are preserved.