1 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
3 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
4 as forcing a HARD_DEP between instructions, thereby
5 disallowing rewriting to break dependencies.
7 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
9 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
10 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
11 variables in boundary that have no inlitalizer encoded and are
13 * varasm.c (default_binds_local_p_2): External definitions do not
14 count as definitions here.
16 2015-02-16 Jeff Law <law@redhat.com>
18 PR tree-optimization/64823
19 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
21 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
22 threading through blocks with PHIs, but no statements.
23 (thread_through_normal_block): Distinguish between blocks where
24 we did not process all the statements and blocks with no statements.
26 2015-02-16 Jakub Jelinek <jakub@redhat.com>
27 James Greenhalgh <james.greenhalgh@arm.com>
30 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
31 section if not linkonce. Fix up formatting.
32 (cgraph_node::create_version_clone_with_body): Copy section.
33 * trans-mem.c (ipa_tm_create_version): Likewise.
35 2015-02-16 Richard Biener <rguenther@suse.de>
37 PR tree-optimization/65077
38 * tree-ssa-structalias.c (get_constraint_for_1): Handle
39 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
40 (find_func_aliases): Allow float values to carry pointers again.
42 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
44 * doc/install.texi (Specific): Reorder targets list to put
45 aarch64 in alphabetical order. Add a link to aarch64*-*-*
48 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
49 David Edelsohn <dje.gcc@gmail.com>
52 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
53 mapping class to external variable or function reference.
54 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
57 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
60 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
61 ASM_WEAKEN_DECL if defined.
63 2015-02-16 Richard Biener <rguenther@suse.de>
66 * varasm.c (default_file_start): For LTO produced units
67 emit <artificial> as file directive.
69 2015-02-16 Richard Biener <rguenther@suse.de>
71 PR tree-optimization/63593
72 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
73 stmts and releasing SSA names until...
74 (execute_pred_commoning): ... after processing all chains.
76 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
79 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
82 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
84 * doc/bugreport.texi: Adjust section titles throughout the file
86 * doc/extend.texi: Likewise.
87 * doc/gcov.texi: Likewise.
88 * doc/implement-c.texi: Likewise.
89 * doc/implement-cxx.texi: Likewise.
90 * doc/invoke.texi: Likewise.
91 * doc/objc.texi: Likewise.
92 * doc/standards.texi: Likewise.
93 * doc/trouble.texi: Likewise.
95 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
97 * cgraph.h (symtab_node::has_aliases_p): Simplify.
98 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
99 * tree.c (lookup_binfo_at_offset): Make static.
100 (get_binfo_at_offset): Do not shadow offset; add explanatory
103 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
105 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
106 for all floading point loads and stores except those using a register
108 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
111 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
113 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
114 (do_estimate_growth_1): Record if any uninlinable edge was seen.
115 (estimate_growth): Handle uninlinable edges correctly.
116 (check_callers): New.
117 (growth_likely_positive): Handle aliases correctly.
119 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
121 * ipa-chkp.c: Use iterate_direct_aliases.
122 * symtab.c (resolution_used_from_other_file_p): Move inline.
123 (symtab_node::create_reference): Fix formating.
124 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
125 (symtab_node::iterate_reference): Move inline.
126 (symtab_node::iterate_referring): Move inline.
127 (symtab_node::iterate_direct_aliases): Move inline.
128 (symtab_node::used_from_object_file_p_worker): Inline into ...
129 (symtab_node::used_from_object_file_p): ... this one; move inline.
130 (symtab_node::call_for_symbol_and_aliases): Move inline;
131 use iterate_direct_aliases.
132 (symtab_node::call_for_symbol_and_aliases_1): New method.
133 (cgraph_node::call_for_symbol_and_aliases): Move inline;
134 use iterate_direct_aliases.
135 (cgraph_node::call_for_symbol_and_aliases_1): New method.
136 (varpool_node::call_for_node_and_aliases): Rename to ...
137 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
138 use iterate_direct_aliases.
139 (varpool_node::call_for_symbol_and_aliases_1): New method.
140 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
141 (ipa_discover_readonly_nonaddressable_var): Update.
142 * ipa-devirt.c: Fix formating.
143 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
145 (cgraph_node::call_for_symbol_and_aliases): Move inline.
146 (cgraph_node::call_for_symbol_and_aliases_1): New function..
147 * cgraph.h (used_from_object_file_p_worker): Remove.
148 (resolution_used_from_other_file_p): Move inline.
149 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
150 (symtab_node::iterate_reference): Move inline.
151 (symtab_node::iterate_referring): Move inline.
152 (symtab_node::iterate_direct_aliases): Move inline.
153 (symtab_node::used_from_object_file_p_worker): Inline into ...
154 (symtab_node::used_from_object_file_p): Move inline.
155 * tree-emutls.c (ipa_lower_emutls): Update.
156 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
157 (varpool_node::call_for_node_and_aliases): Remove.
159 2015-02-14 Jakub Jelinek <jakub@redhat.com>
161 PR tree-optimization/62209
162 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
163 op == range->exp, insert seq and gimplified code after labels
164 instead of after the phi.
166 2015-02-13 Jeff Law <law@redhat.com>
169 Revert my change for tree-optimization/64823.
171 2015-02-13 Jakub Jelinek <jakub@redhat.com>
173 PR tree-optimization/65053
174 * tree-ssa-phiopt.c (value_replacement): When moving assign before
175 cond, either reset VR on lhs or set it to phi result VR.
177 2015-02-13 Jeff Law <law@redhat.com>
179 PR tree-optimization/64823
180 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
181 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
182 threading through blocks with PHIs, but no statements.
183 (thread_through_normal_block): Distinguish between blocks where
184 we did not process all the statements and blocks with no statements.
186 PR rtl-optimization/47477
187 * match.pd (convert (plus/minus (convert @0) (convert @1): New
188 simplifier to narrow arithmetic.
190 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
193 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
194 polymorphic call info when type is not known to be preserved.
196 2015-02-13 Maritn Jambor <mjambor@suse.cz>
199 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
200 (inline_call): Use it.
202 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
204 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
205 GOMP_DEVICE_NVIDIA_PTX.
207 2015-02-13 Jakub Jelinek <jakub@redhat.com>
210 * stmt.c (emit_case_nodes): Use void_type_node instead of
211 NULL_TREE as LABEL_DECL type.
213 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
215 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
217 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
218 symbolic references to data to be forced to constant memory on the
221 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
223 PR tree-optimization/65002
224 * tree-cfg.c (pass_data_fixup_cfg): Don't update
226 * tree-sra.c (some_callers_have_no_vuse_p): New.
227 (ipa_early_sra): Reject functions whose callers
228 assume function is read only.
230 2015-02-13 Richard Biener <rguenther@suse.de>
233 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
234 for LTO produced CUs.
236 2015-02-13 Bin Cheng <bin.cheng@arm.com>
238 PR tree-optimization/64705
239 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
240 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
241 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
242 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
243 expand_simple_operations.
245 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
246 Richard Henderson <rth@redhat.com>
249 * cgraphunit.c (cgraph_node::finalize_function): Set definition
250 before notice_global_symbol.
251 (varpool_node::finalize_decl): Likewise.
252 * varasm.c (default_binds_local_p_2): Rename from
253 default_binds_local_p_1, add weak_dominate argument. Use direct
254 returns instead of assigning to local variable. Unify varpool and
255 cgraph paths via symtab_node. Reject undef weak variables before
256 testing visibility. Reorder tests for simplicity.
257 (default_binds_local_p): Use default_binds_local_p_2.
258 (default_binds_local_p_1): Likewise.
259 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
261 (default_elf_asm_output_external): Emit visibility when specified.
263 2015-02-13 Alan Modra <amodra@gmail.com>
265 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
266 code setting up r11 for out-of-line fp restore.
268 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
270 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
271 (muser-mode): Likewise.
273 2015-02-13 Alan Modra <amodra@gmail.com>
275 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
276 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
278 2015-02-12 David Howells <dhowells@redhat.com>
280 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
282 * tree-ssa-uninit.c (dump_predicates): Likewise.
283 * opts.c (print_filtered_help): Likewise.
285 2015-02-12 Jakub Jelinek <jakub@redhat.com>
287 * dwarf2out.c (output_die): Use "%s", name instead of name to
288 avoid -Wformat-security warning.
290 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
291 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
292 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
293 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
295 2015-02-12 Jason Merrill <jason@redhat.com>
297 * common.opt (-flifetime-dse): New.
299 2015-02-12 Jakub Jelinek <jakub@redhat.com>
302 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
304 PR tree-optimization/65014
305 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
306 use original second operand of arg0 or arg1 instead of
307 that adjusted by STRIP_NOPS.
309 2015-02-11 Jeff Law <law@redhat.com>
312 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
313 that needs to be queued, just queue it for a single cycle.
315 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
317 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
318 bodies of thunks; comment on why.
319 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
322 2015-02-11 Richard Henderson <rth@redhat.com>
325 * tree-eh.c (mark_reachable_handlers): Mark source and destination
326 regions of __builtin_eh_copy_values.
328 2015-02-11 Jakub Jelinek <jakub@redhat.com>
331 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
332 ultimate alias is MEM with SYMBOL_REF satisfying
333 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
334 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
336 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
338 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
340 (main): Initialize progname, and call diagnostic_initialize.
342 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
343 instead of __OPENMP_TARGET__.
345 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
346 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
349 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
351 * doc/sourcebuild.texi (pie_enabled): Document.
353 2015-02-11 Martin Liska <mliska@suse.cz>
356 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
357 a return value for call to a function that is noreturn.
359 2015-02-11 Richard Biener <rguenther@suse.de>
362 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
365 2015-02-11 Andrew Pinski <apinski@cavium.com>
368 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
369 Change the first argument type to size_type_node and add another
371 (aarch64_simd_expand_builtin): Handle the new argument to
372 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
373 print an out when the first two arguments are not
374 nonzero integer constants.
375 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
376 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
378 2015-02-11 Jakub Jelinek <jakub@redhat.com>
381 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
382 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
383 (ix86_set_current_function): Rewritten.
384 (ix86_add_new_builtins): Temporarily clear current_target_pragma
385 when creating builtin fndecls.
387 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
390 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
392 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
393 have no comdat group.
394 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
395 (lto_output_varpool_node): Always output alias info.
396 (output_refs): Output refs of boundary aliases, too.
397 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
398 (output_symtab): Output call eges in thunks in boundary.
399 (get_alias_symbol): Remove.
400 (input_node, input_varpool_node): Do not special case weakrefs.
401 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
402 alias and thunks targets in the boundary; do not take removed symbols
403 from their comdat groups.
404 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
405 (cgraph_node::global_info): Remove.
406 (cgraph_node::rtl_info): Look through aliases and thunks.
407 * cgrpah.h (global_info): Remove.
408 (non_local_p): Remove.
410 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
411 Sandra Loosemore <sandra@codesourcery.com>
413 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
414 to inline asm. List dialects in proper order.
416 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
417 Sandra Loosemore <sandra@codesourcery.com>
419 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
421 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
423 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
424 modified) reference to Solaris.
426 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
428 * doc/extend.texi (Extended Asm): Fix typos.
430 2015-02-10 Jakub Jelinek <jakub@redhat.com>
433 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
435 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
438 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
439 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
440 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
441 * config/sh/constraints.md (Ara, Add): New constraints.
442 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
444 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
445 atomic_mem_operand_0. Don't use force_reg on the memory address.
446 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
447 Sra constraint. Convert to insn_and_split. Add workaround for
449 (atomic_compare_and_swap<mode>_hard): Copy to
450 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
451 Use atomic_mem_operand_0 predicate.
452 (atomic_compare_and_swap<mode>_soft_gusa,
453 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
455 (atomic_compare_and_swap<mode>_soft_tcb,
456 atomic_compare_and_swap<mode>_soft_imask,
457 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
458 atomic_mem_operand_0 predicate and SraSdd constraints.
459 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
461 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
462 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
463 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
464 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
465 force_reg on the memory address.
466 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
467 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
468 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
469 atomic_mem_operand_1 predicate and Sra constraint.
470 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
471 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
472 Use atomic_mem_operand_1 predicate.
473 (atomic_<fetchop_name><mode>_hard): Copy to
474 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
475 Use atomic_mem_operand_1 predicate.
476 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
477 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
478 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
479 insn_and_split. Use atomic_mem_operand_1 predicate.
480 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
481 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
482 Use atomic_mem_operand_1 predicate.
483 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
484 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
485 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
486 in generated insn with original mem operand before emitting the insn.
487 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
488 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
489 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
490 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
491 Use atomic_mem_operand_1 predicate and AraAdd constraints.
492 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
493 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
494 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
495 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
496 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
497 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
498 atomic_not_fetch<mode>_soft_tcb,
499 atomic_<fetchop_name>_fetch<mode>_soft_imask,
500 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
501 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
502 Use atomic_mem_operand_1 predicate and SraSdd constraints.
504 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
506 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
507 and 3 earlyclobber operands.
509 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
511 * common.opt (fstack-reuse): Mark as optimization.
513 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
516 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
518 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
520 PR tree-optimization/64326
521 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
523 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
525 PR gcov-profile/61889
526 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
528 2015-02-10 Richard Biener <rguenther@suse.de>
530 PR tree-optimization/64995
531 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
532 value we use is final.
533 (visit_reference_op_store): Always valueize op.
534 (visit_use): Properly valueize vuses.
536 2015-02-10 Richard Biener <rguenther@suse.de>
538 PR tree-optimization/64909
539 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
540 pass a scalar-stmt count estimate to the cost model.
541 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
543 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
545 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
546 enabled by default together with var-tracking.
548 2015-02-10 Nick Clifton <nickc@redhat.com>
550 * config/rl78/rl78.c: Remove DIV attribute code accidentally
551 included in previous rl78 commit.
553 2015-02-10 Richard Biener <rguenther@suse.de>
555 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
556 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
559 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
561 PR gcov-profile/61889
562 * config.in: regenerate.
563 * configure.in: Likewise.
564 * configure.ac: Check for ftw.h.
565 * gcov-tool.c: Check for ftw.h before using nftw.
567 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
570 * ipa-visibility.c (update_visibility_by_resolution_info): Only
571 assert when not in lto mode.
573 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
575 * ira-color.c (setup_left_conflict_sizes_p): Simplify
576 initialization/assignment of conflict_size.
578 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
581 * ipa-cp.c (gather_caller_stats): Skip thunks.
582 (propagate_constants_topo): Skip aliases.
584 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
587 * config/sh/sh.c (sh_option_override): Don't change
588 -freorder-blocks-and-partition to -freorder-blocks even when
589 unwinding is enabled.
590 (sh_can_follow_jump): Return false if the followee jump is
591 a crossing jump when -freorder-blocks-and-partition is specified.
592 * config/sh/sh.md (*jump_compact_crossing): New insn.
594 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
595 Kaz Kojima <kkojima@gcc.gnu.org>
598 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
599 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
600 (sh_can_redirect_branch): Rename to ...
601 (sh_can_follow_jump): ... this. Constify argument types.
602 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
603 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
604 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
605 * doc/tm.texi: Regenerate.
607 2015-02-09 Jakub Jelinek <jakub@redhat.com>
610 * builtins.c (expand_builtin): Call targetm.expand_builtin
611 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
613 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
616 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
618 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
621 * ipa-icf.c (set_local): New function.
622 (sem_function::merge): Use it.
624 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
626 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
627 (add_type_duplicate): Fix comparison of BINFOs.
629 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
631 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
632 on getting VOID pointer.
634 2015-02-09 Jakub Jelinek <jakub@redhat.com>
637 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
640 2015-02-09 Richard Biener <rguenther@suse.de>
642 * genmatch.c (replace_id): Copy expr_type.
644 2015-02-09 Richard Biener <rguenther@suse.de>
646 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
647 (streamer_write_tree_bitfields): Declare.
648 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
649 properly unpack padding.
650 (unpack_value_fields): Inline ...
651 (streamer_read_tree_bitfields): ... here.
652 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
653 and properly add padding bits.
654 (streamer_pack_tree_bitfields): Fold into ...
655 (streamer_write_tree_bitfields): ... this new function,
656 exposing the bitpack object.
657 * lto-streamer-out.c (lto_write_tree_1): Call
658 streamer_write_tree_bitfields.
660 2015-02-09 Richard Biener <rguenther@suse.de>
662 PR tree-optimization/54000
663 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
664 (struct ivopts_data): Add loop_loc member.
665 (tree_ssa_iv_optimize_loop): Dump loop location.
666 (create_new_ivs): Likewise, also dump number of IVs generated.
668 2015-02-09 Martin Liska <mliska@suse.cz>
670 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
671 just if not yet registered.
672 (ipa_icf_generate_summary): Register callgraph hooks.
674 2015-02-08 Andrew Pinski <apinski@cavium.com>
676 * config/aarch64/aarch64.c (gty_dummy): Delete.
678 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
681 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
682 (cgraph_node::local_p): Remove thunk related FIXME.
684 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
687 * i386.c (ix86_function_regparm): Look through aliases to see if callee
688 is local and optimized.
689 (ix86_function_sseregparm): Likewise; also use target's SSE math
690 settings; error out instead of silently generating wrong code
692 (init_cumulative_args): Look through aliases.
694 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
697 * ipa-split.c (execute_split_functions): Split if function has aliases.
699 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
702 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
703 aliases before trying to expand it.
704 (cgraph_node::expand_thunk): Fix formating.
706 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
708 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
709 (Using Assembly Language with C): Expand introduction.
710 (Basic Asm): Copy-edit. Add more information about uses of
712 (Extended Asm): Copy-edit. Document new escape syntax and
714 (Global Reg Vars): Copy-edit.
715 (Local Reg Vars): Likewise.
717 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
721 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
722 (DBX_CONTIN_CHAR): Define.
724 2015-02-06 Sebastian Pop <s.pop@samsung.com>
725 Brian Rzycki <b.rzycki@samsung.com>
727 PR tree-optimization/64878
728 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
729 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
730 Stop recursion at loop phi nodes after having visited a loop phi node.
732 2015-02-06 Jakub Jelinek <jakub@redhat.com>
734 * toplev.c (process_options): Change flag_ipa_ra before creating
735 optimization_{default,current}_node.
738 * cgraphunit.c (cgraph_node::expand_thunk): If
739 restype is not is_gimple_reg_type nor the thunk_fndecl
740 returns aggregate_value_p, set restmp to a temporary variable
743 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
745 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
747 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
750 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
751 add a general secondary reload handler for SDmode, unless we have
752 both read/write support for SDmode.
754 2015-02-06 Jakub Jelinek <jakub@redhat.com>
757 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
758 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
759 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
760 1 before, push it to abstract_vec.
761 (dwarf2out_abstract_function): Adjust caller. Don't call
762 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
763 DECL_ABSTRACT_P flags for all abstract_vec elts.
765 2015-02-06 Renlin Li <renlin.li@arm.com>
767 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
769 * tree-ssa.c (execute_update_addresses_taken): Likewise.
771 2015-02-06 Jeff Law <law@redhat.com>
774 * config/h8300/h8300.c (push): New argument "in_prologue".
775 Pass "in_prologue" along to "F".
776 (h8300_push_pop): Corresponding changes.
777 (h8300_expand_prologue): Likewise.
778 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
780 2015-02-06 Jakub Jelinek <jakub@redhat.com>
782 PR rtl-optimization/64957
784 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
785 IOR rather than for AND.
787 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
790 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
791 of shift-add and (add + shift) operations. Rename local variable.
793 2015-02-05 Jeff Law <law@redhat.com>
796 * config/h8300/constraints.md (U): Correctly dectect
797 "eightbit_data" memory addresses.
798 * config/h8300/h8300.c (eightbit_constant_address_p): Also
799 handle (const (plus (symbol_ref (x)))) where x is declared
800 as an 8-bit data memory address.
801 * config/h8300/h8300.md (call, call_value): Correctly detect
805 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
806 24 to 28 bits for the H8/300.
808 2015-02-06 Alan Modra <amodra@gmail.com>
811 * config/rs6000/rs6000.c (chain_already_loaded): New function.
812 (rs6000_call_aix): Use it.
814 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
816 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
819 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
821 * config/h8300/constraints.md ("U" constraint): Use strict
822 variant of REG_OK_FOR_BASE_P after reload has started.
824 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
826 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
827 define to zero if !TARGET_NEON.
828 (TARGET_CPU_CPP_BUILTINS): Added second condition before defining
831 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
832 Trevor Saunders <tsaunders@mozilla.com>
835 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
837 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
840 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
841 when removing varpool nodes.
843 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
846 * varpool.c (varpool_node::remove): Fix order of variables.
848 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
851 * ipa-inline.c (inline_small_functions): Fix ordering issue between
852 speculation resolution and key updates.
854 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
856 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
857 about not letting any speculative edges unupdated.
859 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
862 * gcov-io.c (gcov_var): Export.
864 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
867 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
868 edges that become speculative.
870 2015-02-04 Jakub Jelinek <jakub@redhat.com>
872 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
873 or DW_LANG_Fortran08.
874 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
876 (gen_compile_unit_die): Handle "GNU Fortran2003" and
877 "GNU Fortran2008" language strings.
878 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
879 * langhooks.h (lang_GNU_Fortran): New prototype.
880 * langhooks.c (lang_GNU_Fortran): New function.
881 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
884 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
886 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
887 (RTX_OK_FOR_OLO10_P): Likewise.
889 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
891 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
893 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
896 * gimple.c: Include gimple-ssa.h.
897 (maybe_remove_unused_call_args): New function.
898 * gimple.h (maybe_remove_unused_call_args): Declare.
899 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
900 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
901 * gimple-fold.c (gimple_fold_call): Likewise.
903 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
905 PR rtl-optimization/64905
906 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
907 pointer alignment if it isn't needed.
909 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
911 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
912 cortex-a72.cortex-a53.
913 * config/aarch64/aarch64-tune.md: Regenerate.
914 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
916 2015-02-04 Nick Clifton <nickc@redhat.com>
918 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
921 2015-02-04 Jakub Jelinek <jakub@redhat.com>
923 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
924 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
925 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
927 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
928 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
929 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
930 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
931 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
932 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
933 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
934 * tree-core.h (enum built_in_function): In between
935 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
936 for builtins that use DEF_BUILTIN_CHKP macro.
938 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
941 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
942 operands for tcc_comparison exprs. Fix typos.
945 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
946 of two XORs that have an intervening AND or IOR.
949 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
950 simplification of XOR of AND to not allocate new rtx before
951 committing to a simplification.
953 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
955 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
956 manual swaps in all peepholes.
958 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
960 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
961 of manual swapping implementation.
962 (aarch64_expand_vec_perm_const_1): Likewise.
964 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
966 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
967 (generic_addrcost_table): Remove NAMED_PARAM.
968 (cortexa57_addrcost_table): Likewise.
969 (xgene1_addrcost_table): Likewise.
970 (generic_regmove_table): Likewise.
971 (cortexa53_regmove_table): Likewise.
972 (xgene1_regmove_table): Likewise.
973 (generic_vector_table): Likewise.
974 (cortexa57_vector_table): Likewise.
975 (xgene1_vector_table): Likewise.
976 (generic_tunings): Likewise.
977 (cortexa53_tunings): Likewise.
978 (cortexa57_tunings): Likewise.
979 (xgene1_tunings): Likewise.
981 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
983 * config/arm/arm-cores.def: Add cortex-a72 and
984 cortex-a72.cortex-a53.
985 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
986 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
987 * config/arm/arm-tune.md: Regenerate.
988 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
989 "cortex-a72.cortex-a53".
990 * doc/invoke.texi (ARM Options/-mtune): Likewise.
992 2015-02-04 Nick Clifton <nickc@redhat.com>
995 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
997 (nonimmediate_di_operand): Likewise.
999 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
1000 prefixes of known F5 using MSP430 MCUs.
1002 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1004 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
1005 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
1006 instead of __builtin_sqrt.
1008 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
1010 * varasm.c (do_assemble_alias): Follow transparent alias
1012 (default_assemble_visibility): Follow transparent alias
1013 chain for decl name.
1015 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1018 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
1019 to compute size of referenced value in the constant case.
1021 2015-02-03 Jakub Jelinek <jakub@redhat.com>
1023 PR rtl-optimization/64756
1024 * cse.c (invalidate_dest): New function.
1025 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
1026 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
1027 invalidate and do not record it.
1029 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
1032 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
1033 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
1034 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
1035 atomic_nand<mode>_soft_tcb): New insns.
1036 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
1037 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
1038 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
1039 Split into atomic_not_fetchsi_hard if operands[0] is unused.
1040 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
1041 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1042 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
1043 atomic_not<mode>_hard if operands[0] is unused.
1044 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
1045 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
1046 if operands[0] is unused.
1047 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
1048 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
1049 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
1050 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1052 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
1053 into atomic_not<mode>_soft_tcb if operands[0] is unused.
1054 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
1055 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
1056 if operands[0] is unused.
1057 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
1058 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
1059 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
1060 atomic_nand_fetchsi_hard if operands[0] is unused.
1061 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
1062 atomic_nand<mode>_hard if operands[0] is unused.
1063 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
1064 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
1065 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
1066 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1067 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
1068 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
1069 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
1070 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1071 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
1072 atomic_not<mode>_hard if operands[0] is unused.
1073 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
1074 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1076 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
1077 into atomic_not<mode>_soft_tcb if operands[0] is unused.
1078 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
1079 atomic_nand<mode>_hard if operands[0] is unused.
1080 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
1081 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1083 2015-02-03 David Malcolm <dmalcolm@redhat.com>
1086 * Makefile.in (GCC_OBJS): Add gcc-main.o.
1087 * gcc-main.c: New file, containing "main" taken from gcc.c.
1088 * gcc.c (do_self_spec): Free decoded_options.
1089 (class driver): Move declaration to gcc.h.
1090 (main): Move declaration and implementation to new file
1092 (driver_get_configure_time_options): New function.
1093 * gcc.h (class driver): Move this declaration here, from
1095 (driver_get_configure_time_options): New declaration.
1097 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
1099 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
1100 cross-module inlining.
1101 * cgraph.h (cgraph_node): Add flag merged.
1102 * ipa-icf.c (sem_function::merge): Maintain it.
1104 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
1106 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
1107 instead of OBJECT_P.
1109 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
1112 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
1113 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
1114 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
1115 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
1117 2015-02-03 Jakub Jelinek <jakub@redhat.com>
1120 * combine.c (reg_n_sets_max): New variable.
1121 (can_change_dest_mode, reg_nonzero_bits_for_combine,
1122 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
1123 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
1124 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
1125 (rest_of_handle_combine): Initialize reg_n_sets_max.
1127 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
1129 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
1130 if some always_inline was inlined, apply changes before inlining
1133 2015-02-02 David Malcolm <dmalcolm@redhat.com>
1136 * config/arm/arm.c (arm_option_override): Set
1137 arm_selected_arch/cpu/tune to NULL on entry.
1139 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
1140 Andrew Pinski <pinskia@gcc.gnu.org>
1141 Jakub Jelinek <jakub@gcc.gnu.org>
1144 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
1145 integer typing for small model. Use IN_RANGE.
1147 2015-02-02 Richard Biener <rguenther@suse.de>
1149 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
1150 * tree-vrp.c (vrp_valueize_1): Likewise.
1152 2015-02-02 Alan Modra <amodra@gmail.com>
1154 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
1155 than mem for toc_restore.
1156 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
1157 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
1158 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
1160 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
1163 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
1164 explicit default options.
1166 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
1169 * ipa-utils.c (ipa_merge_profiles): Add release argument.
1170 * ipa-icf.c (sem_function::merge): Do not release body when merging.
1171 * ipa-utils.h (ipa_merge_profiles): Update prototype.
1173 2015-02-01 Jakub Jelinek <jakub@redhat.com>
1176 * cfgexpand.c (deep_ter_debug_map): New variable.
1177 (avoid_deep_ter_for_debug): New function.
1178 (expand_debug_expr): If TERed SSA_NAME is in
1179 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
1180 instead of trying to expand SSA_NAME's def stmt.
1181 (expand_debug_locations): When expanding debug bind
1182 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
1183 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
1185 (pass_expand::execute): Call avoid_deep_ter_for_debug on
1186 all debug bind stmts. Delete deep_ter_debug_map after
1187 expand_debug_location if non-NULL and clear it.
1189 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
1192 * config/sh/sync.md (atomic_fetch_notsi_hard,
1193 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
1194 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
1195 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
1196 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
1197 atomic_not_fetch<mode>_soft_imask): New insns.
1199 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1201 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
1202 (rank_for_schedule_debug): Split from ...
1203 (rank_for_schedule): ... this.
1204 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
1205 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
1207 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1209 * doc/md.texi (Machine Constraints): Alphabetize table by target.
1210 * doc/extend.texi (x86 Variable Attributes): Move section to
1211 correct alphabetization after renaming.
1212 (x86 Type Attributes): Likewise.
1213 (Target Builtins): Re-alphabetize menu.
1214 (x86 Built-in Functions): Move section to correct alphabetization
1216 (x86 transactional memory intrinsics): Likewise.
1217 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
1218 and x86 Windows Options in table and menu.
1219 (x86 Options): Move section to correct alphabetization after
1221 (x86 Windows Options): Likewise.
1223 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1225 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
1226 preferred names of the architecture and its 32- and 64-bit
1228 * doc/invoke.texi: Likewise.
1229 * doc/md.texi: Likewise.
1231 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
1234 * config/i386/predicates.md (address_no_seg_operand): Reject
1235 non-CONST_INT_P operands in invalid mode.
1237 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
1239 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
1240 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
1241 * config/i386/predicates.md (address_no_seg_operand): Call
1242 address_operand with VOIDmode.
1243 (vsib_address_operand): Ditto.
1244 (address_mpx_no_base_operand): Ditto.
1245 (address_mpx_no_index_operand): Ditto.
1247 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1250 * lra-constraints.c (original_subreg_reg_mode): New.
1251 (simplify_operand_subreg): Try to simplify subreg of const. Use
1252 original_subreg_reg_mode for it.
1253 (swap_operands): Update original_subreg_reg_mode.
1254 (curr_insn_transform): Set up original_subreg_reg_mode.
1256 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1259 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
1261 (process_alt_operands): Use it.
1262 (curr_insn_transform): Check the optional reload pseudo class is
1265 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1267 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
1268 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
1270 * toplev.h (init_asm_output): Update comment on use of
1271 UNKNOWN_LOCATION with fatal_error.
1272 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
1273 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
1274 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
1275 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
1276 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
1277 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
1278 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
1279 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
1280 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
1281 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
1282 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
1283 fatal_error changed to pass input_location as first argument.
1285 2015-01-30 Martin Liska <mliska@suse.cz>
1287 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
1288 in #pragma GCC diagnostic guards.
1290 2015-01-30 Richard Biener <rguenther@suse.de>
1292 PR tree-optimization/64829
1293 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
1294 not add a widening conversion pattern but hand off extra
1295 widenings to callers.
1296 (vect_recog_widen_mult_pattern): Handle extra widening produced
1297 by vect_handle_widen_op_by_const.
1298 (vect_recog_widen_shift_pattern): Likewise.
1299 (vect_pattern_recog_1): Remove excess vertical space in dumping.
1300 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1301 (vect_init_vector_1): Likewise.
1302 (vect_get_vec_def_for_operand): Likewise.
1303 (vect_finish_stmt_generation): Likewise.
1304 (vectorizable_load): Likewise.
1305 (vect_analyze_stmt): Likewise.
1306 (vect_is_simple_use): Likewise.
1308 2015-01-29 Jeff Law <law@redhat.com>
1310 * combine.c (try_combine): Fix typo in comment.
1312 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
1315 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
1316 (rs6000_stack_info): Add assert.
1317 (rs6000_output_savres_externs): New function, split off from...
1318 (rs6000_output_function_prologue): ... here. Do not call it for
1321 2015-01-29 Jeff Law <law@redhat.com>
1324 * combine.c (try_combine): If I0 is a memory load and I3 a store
1325 to a related address, increase the "goodness" of doing a 4-insn
1326 combination with I0-I3.
1327 (make_field_assignment): Handle SUBREGs in the ior+and case.
1329 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
1331 PR tree-optimization/64746
1332 * tree-if-conv.c (mask_exists): New function.
1333 (predicate_mem_writes): Save created mask with given size for further
1335 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
1336 (ifcvt_repair_bool_pattern): Collect all statements that are root
1337 of bool pattern and use iterative algorithm to remove multiple uses
1338 of predicates, display number of required iterations.
1340 2015-01-29 Richard Biener <rguenther@suse.de>
1342 PR tree-optimization/64853
1343 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
1344 stmt will get simulated again.
1345 * tree-ssa-ccp.c (valueize_op_1): Likewise.
1347 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1349 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
1350 return_in_pc. Remove redundant assignments.
1351 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1352 (arm_expand_epilogue): Don't compare boolean with true in if condition.
1354 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
1356 * config/i386/i386.c (ix86_mode_after): Make static.
1358 2015-01-29 Richard Biener <rguenther@suse.de>
1360 PR tree-optimization/64844
1361 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1362 dump cost model analysis.
1363 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1364 Do not register adjusted load/store costs here.
1366 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1367 Uros Bizjak <ubizjak@gmail.com>
1369 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1370 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1371 using x86_use_pseudo_pic_reg.
1372 * config/i386/i386.c (ix86_conditional_register_usage): Remove
1373 support for fixed PIC register.
1374 (ix86_use_pseudo_pic_reg): Not static any more.
1376 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1379 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1380 to avoid error in cgraph node verification.
1382 2015-01-29 Marek Polacek <polacek@redhat.com>
1384 * doc/standards.texi: Reflect that the default for C is gnu11.
1386 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
1389 * reorg.c (switch_text_sections_between_p): New function.
1390 (relax_delay_slots): Call it when testing if the jump insn
1391 is removable. Use targetm.can_follow_jump when testing if
1392 the conditional branch can follow an unconditional jump.
1394 2015-01-27 Caroline Tice <cmtice@google.com>
1396 Committing VTV Cywin/Ming patch for Patrick Wollgast
1397 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
1398 if -fvtable-verify=preinit/std is used.
1399 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
1400 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
1401 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
1402 if -fvtable-verify=preinit/std is used.
1403 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
1404 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
1405 if -fvtable-verify=preinit/std is used.
1406 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
1407 * config/i386/mingw32.h (LIB_SPEC): Likewise.
1408 * varasm.c (assemble_variable): Add code to properly set the comdat
1409 section and name for the .vtable_map_vars section in case the
1410 target is PE or COFF.
1412 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
1415 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
1416 make sane BB profile.
1417 (cgraph_node::expand_thunk): Make sane BB profile.
1418 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
1419 * cgraph.h (init_lowered_empty_function): Update prototype.
1420 * config/i386/i386.c (make_resolver_func): Update call.
1421 * predict.c (gate): Disable branch prediction pass if
1422 profile is already there.
1424 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
1426 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
1427 * opth-gen.awk: Likewise.
1428 * common.opt: Mark flag_fp_contract_mode as Optimization.
1430 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
1432 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
1433 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
1435 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
1438 * config/sh/predicates.md (atomic_arith_operand,
1439 atomic_logical_operand): Remove.
1440 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
1441 (atomic_arith_operand_0): New predicate.
1442 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
1443 Use atomic_arith_operand_0 for input values.
1444 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1445 atomic_compare_and_swap<mode>_soft_gusa,
1446 atomic_compare_and_swap<mode>_soft_tcb,
1447 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
1448 arith_reg_operand instead of register_operand.
1449 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
1450 atomic_arith_operand_0 for newval input.
1451 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1452 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
1453 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
1454 arith_reg_operand instead of register_operand.
1455 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
1456 fetchop_predicate_1, fetchop_constraint_1_llcs,
1457 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
1458 fetchop_constraint_1_imask): New code iterator attributes.
1459 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
1460 register_operand. Use fetchop_predicate_1.
1461 (atomic_fetch_<fetchop_name>si_hard,
1462 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
1463 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
1464 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
1465 and arith_reg_operand instead of register_operand. Use
1466 fetchop_predicate_1, fetchop_constraint_1_gusa.
1467 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
1468 and arith_reg_operand instead of register_operand. Use
1469 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
1471 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
1472 and arith_reg_operand instead of register_operand. Use
1473 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
1475 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
1476 register_operand. Use atomic_logical_operand_1.
1477 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
1478 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
1479 arith_reg_operand instead of register_operand.
1480 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
1481 Use arith_reg_dest and arith_reg_operand instead of register_operand.
1482 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
1483 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
1484 register_operand. Use fetchop_predicate_1.
1485 (atomic_<fetchop_name>_fetchsi_hard,
1486 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
1487 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1488 fetchop_constraint_1_llcs.
1489 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
1490 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1491 fetchop_constraint_1_gusa.
1492 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
1493 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1494 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
1495 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
1496 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1497 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
1498 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
1499 register_operand. Use atomic_logical_operand_1.
1500 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
1501 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
1502 arith_reg_operand instead of register_operand.
1503 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
1504 arith_reg_operand instead of register_operand. Use logical_operand
1505 and K08. Adjust asm sequence to allow R0 usage.
1506 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
1507 arith_reg_operand instead of register_operand. Use logical_operand
1510 2015-01-28 Jakub Jelinek <jakub@redhat.com>
1513 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
1514 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
1515 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
1516 only get_full_len HOST_WIDE_INTs from get_val () array rather than
1517 all bits in *val_wide.
1519 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
1521 * varpool.c (tls_model_names): Fix names.
1522 (varpool_node::dump): Dump tls- prefix for tls models.
1524 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
1525 Bernd Schmidt <bernds@codesourcery.com>
1526 Nathan Sidwell <nathan@codesourcery.com>
1528 * config/nvptx/mkoffload.c: New file.
1529 * config/nvptx/t-nvptx: Add build rules for it.
1530 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
1531 (extra_programs): Add mkoffload.
1532 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
1534 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
1536 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
1539 * cfgexpand.c (reorder_operands): Skip debug gimples.
1541 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
1543 PR tree-optimization/64277
1544 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
1545 range info when possible to refine estimation.
1547 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
1549 PR tree-optimization/64718
1550 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
1551 be a 16bit unsigned integer when n->range is 16.
1552 (bswap_replace): Convert src to that type if necessary for all bswap
1553 sizes. Fix rotation right notation in nearby comment. Use bswap_type
1554 set in pass_optimize_bswap::execute ().
1556 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
1558 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
1559 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
1560 integer and floating point variants.
1561 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
1563 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
1565 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
1566 for all vector modes.
1568 2015-01-28 Jakub Jelinek <jakub@redhat.com>
1571 * doc/sourcebuild.texi (comdat_group): Document.
1573 2015-01-28 Terry Guo <terry.guo@arm.com>
1575 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
1577 2015-01-27 David Malcolm <dmalcolm@redhat.com>
1579 * toplev.c (print_version): Add param "show_global_state", and
1580 only print GGC and plugin information if it is true.
1581 (init_asm_output): Pass in "true" for the new param when calling
1583 (process_options): Likewise.
1584 (toplev::main): Likewise.
1585 * toplev.h (print_version): Add new param to decl.
1587 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
1591 * tree.c (lookup_binfo_at_offset): New function.
1592 (get_binfo_at_offset): Use it.
1594 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
1597 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
1598 on vtable being vtable.
1600 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
1602 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
1603 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
1605 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
1606 -mno-hotpatch options. Change syntax of -mhotpatch= option.
1607 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
1609 (s390_hotpatch_trampoline_halfwords_max): Renamed.
1610 (s390_hotpatch_hw_max): New name.
1611 (s390_hotpatch_trampoline_halfwords): Renamed.
1612 (s390_hotpatch_hw_before_label): New name.
1613 (get_hotpatch_attribute): Removed.
1614 (s390_hotpatch_hw_after_label): New name.
1615 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
1617 (s390_attribute_table): Ditto.
1618 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
1619 (s390_function_num_hotpatch_hw): New name.
1620 Remove special handling of inline functions and hotpatching.
1621 Return number of nops before and after the function label.
1622 (s390_can_inline_p): Removed.
1623 (s390_asm_output_function_label): Emit a configurable number of nops
1624 after the function label.
1625 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
1626 (TARGET_CAN_INLINE_P) Removed.
1627 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
1629 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1630 Jiong Wang <jiong.wang@arm.com>
1632 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
1634 (cb<optab><mode>1): Likewise.
1635 * config/aarch64/iterators.md (bcond): New define_code_attr.
1637 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1639 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
1642 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1644 * config/s390/s390.c (s390_register_move_cost): Increase costs for
1647 2015-01-27 Richard Biener <rguenther@suse.de>
1649 * tree-vrp.c (update_value_range): Intersect the range with
1650 old recorded SSA name range information.
1652 2015-01-27 Nick Clifton <nickc@redhat.com>
1654 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
1655 BC, DE and HL registers directly, not via AX.
1656 When decrementing the stack pointer by a large amount, transfer SP
1657 into AX and perform the subtraction there.
1658 (rl78_expand_epilogue): Perform the inverse of the above
1661 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1663 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
1665 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1666 Yury Gribov <y.gribov@samsung.com>
1669 * ubsan.c (ubsan_source_location): Refactor code.
1670 (ubsan_type_descriptor): Update type size. Refactor code.
1672 2015-01-27 Richard Biener <rguenther@suse.de>
1674 PR tree-optimization/56273
1675 PR tree-optimization/59124
1676 PR tree-optimization/64277
1677 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
1678 from the first VRP pass.
1680 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1683 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
1684 handle the first argument in the same loop as all the other arguments.
1686 PR rtl-optimization/61058
1687 * jump.c (cleanup_barriers): Update basic block boundaries
1688 if BLOCK_FOR_INSN is non-NULL on PREV.
1690 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
1692 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
1693 bounds narrowing, already instrumented calls and calls to
1694 not instrumentable functions.
1696 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1698 PR tree-optimization/64807
1699 * wide-int.cc (wi::divmod_internal): Clear
1700 b_dividend[dividend_blocks_needed].
1702 2015-01-26 DJ Delorie <dj@redhat.com>
1704 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
1705 volatile memory references.
1707 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
1710 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
1712 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
1713 shifts if it already fits into K08.
1715 2015-01-26 Jakub Jelinek <jakub@redhat.com>
1718 * ipa-inline.c (inline_small_functions): Print "unknown" even
1719 if edge->call_stmt is non-NULL, but has builtins or unknown
1723 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
1724 with asterisk, skip the first character.
1726 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
1729 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
1732 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
1735 * config/i386/i386.md (*movdi_internal): Also check operand 0
1736 to determine TYPE_LEA operand.
1737 (*movsi_internal): Ditto.
1739 2015-01-26 Jakub Jelinek <jakub@redhat.com>
1741 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
1742 OPTION_MASK_QUAD_MEMORY_ATOMIC.
1744 2015-01-26 Renlin Li <renlin.li@arm.com>
1746 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
1748 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
1751 2015-01-26 Richard Biener <rguenther@suse.de>
1754 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
1755 combining two BIT_AND_EXPR predicates.
1757 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
1760 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
1762 2015-01-26 Terry Guo <terry.guo@arm.com>
1764 * config/arm/arm.c (arm_file_start): Update the assignment of
1767 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
1769 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
1771 config/arm/arm.md: Include the new Cortex-A57 model.
1772 (generic_sched): Don't use generic_sched when tuning for
1775 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
1776 Uros Bizjak <ubizjak@gmail.com>
1778 * config/i386/i386.c (get_builtin_code_for_version): Add
1779 support for BMI and BMI2 multiversion functions.
1781 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1783 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
1784 (extract_bit_field): Likewise.
1785 (extract_low_bits): Likewise.
1786 (expand_mult): Likewise.
1787 (expand_mult_highpart_adjust): Likewise.
1789 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
1791 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
1792 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
1793 * config/i386/i386.c (processor_model): Add
1794 M_INTEL_COREI7_BROADWELL.
1795 (arch_names_table): Add "broadwell".
1797 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
1806 * config/sh/sh-protos.h
1807 (sh_extending_set_of_reg::can_use_as_unextended_reg,
1808 sh_extending_set_of_reg::use_as_unextended_reg,
1809 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
1810 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
1811 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
1812 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
1813 (sh_treg_insns): New class.
1814 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
1815 (scope_counter): New class.
1816 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
1817 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
1818 sh_extending_set_of_reg::can_use_as_unextended_reg,
1819 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
1820 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
1821 sh_split_treg_set_expr): New functions.
1822 (addsubcosts): Handle treg_set_expr.
1823 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
1824 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
1825 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
1826 (sh_insn_operands_modified_between_p): Make non-static.
1827 * config/sh/predicates.md (zero_extend_movu_operand): Allow
1828 simple_mem_operand in addition to displacement_mem_operand.
1829 (zero_extend_operand): Don't allow zero_extend_movu_operand.
1830 (treg_set_expr, treg_set_expr_not_const01,
1831 arith_reg_or_treg_set_expr): New predicates.
1832 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
1833 arith_or_int_operand instead of logical_operand. Convert to
1834 insn_and_split. Try to optimize constant operand in splitter.
1835 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
1836 (*tstqi_t_zero): Delete.
1837 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
1838 (tstsi_t_and_not): Delete.
1839 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
1840 Convert to insn_and_split.
1841 (unnamed split, tstsi_t_zero_extract_xor,
1842 tstsi_t_zero_extract_subreg_xor_little,
1843 tstsi_t_zero_extract_subreg_xor_big): Delete.
1844 (*tstsi_t_shift_mask): New insn_and_split.
1845 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
1846 to recombine with surrounding insns when splitting.
1847 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
1848 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
1849 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
1850 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
1851 (*cbranch_div0s: Delete.
1852 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
1853 Try to recombine with surrounding insns when splitting. Add operand
1855 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
1856 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
1857 *addc_r_r_msb, *addc_2r_msb): Delete.
1858 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
1860 (*addc_negreg_t): New insn_and_split.
1861 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
1862 Try to recombine with surrounding insns when splitting.
1863 Add operand order variants.
1864 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
1865 insn_and_split patterns.
1866 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
1867 surrounding insns when splitting.
1868 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
1869 (*rotcl): Likewise. Add zero_extract variant.
1870 (*ashrsi2_31): New insn_and_split.
1871 (*negc): Convert to insn_and_split. Use treg_set_expr.
1872 (*zero_extend<mode>si2_disp_mem): Update comment.
1873 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
1875 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
1876 with surrounding insns when splitting.
1877 (any_treg_expr_to_reg): New insn_and_split.
1878 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
1879 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
1880 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
1881 *zero_extract_2): New single bit zero extract patterns.
1882 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
1883 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
1884 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
1885 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
1887 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
1888 register_operand for set source.
1890 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
1892 * i386.opt (prefetch_sse): New targetsave.
1893 * i386.c (ix86_function_specific_save): Save prefetch_sse.
1894 (ix86_function_specific_restore): Restore prefetch_sse and initialize
1895 ix86_cost/ix86_tune_cost.
1897 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1899 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1900 Support the JIT by using 0 as the language type.
1902 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
1905 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
1906 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
1907 (mark_regno_live, process_bb_lives): Pass new parameter value to
1908 make_hard_regno_born.
1910 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1912 PR rtl-optimization/63637
1913 PR rtl-optimization/60663
1914 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
1915 if elt->cost is MAX_COST for ASM_OPERANDS.
1916 (find_sets_in_insn): Fix up comment typo.
1917 (cse_insn): Don't set src_volatile for all non-volatile
1918 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
1919 or with "memory" clobber. Set elt->cost to MAX_COST
1920 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
1921 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
1923 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
1925 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
1928 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
1930 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
1931 libgcc/config/i386/elf-lib.h.
1933 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1936 * gcc.c (print_configuration): Don't print a blank line at the end
1938 (run_attempt): ... but here unstead.
1941 * omp-low.c (scan_sharing_clauses): Don't ignore
1942 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
1943 on target data/update constructs.
1945 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
1948 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
1949 (DEBUG_RELOAD): Removed define.
1950 (m32c_limit_reload_class): Enable traces with if DEBUG0.
1951 (m32c_function_arg): Added a type cast.
1952 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
1953 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
1954 * config/m32c/bitops.md (andqi3_16): Likewise.
1955 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
1956 (push_a01_l): Likewise.
1958 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1961 * main.c (main): Construct toplev instances with init_signals=true.
1962 * toplev.c (general_init): Add param "init_signals", and use it to
1963 conditionalize the calls to signal and host_hooks.extra_signals.
1964 (toplev::toplev): Add param "init_signals".
1965 (toplev::main): When invoking general_init, pass m_init_signals
1966 to control whether signal-handlers are installed.
1967 * toplev.h (toplev::toplev): Add param "init_signals".
1968 (toplev::m_init_signals): New field.
1970 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1973 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
1974 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
1975 latter may be affected by the former (e.g. on i686).
1977 2015-01-23 Martin Liska <mliska@suse.cz>
1979 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
1980 false positive during profiledbootstrap.
1982 2015-01-23 Tom de Vries <tom@codesourcery.com>
1985 * lto-opts.c (lto_write_options): Output non-explicit conservative
1987 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
1988 (append_compiler_options): Pass -fopenacc through.
1990 2015-01-23 Tom de Vries <tom@codesourcery.com>
1993 * lto-opts.c (lto_write_options): Output non-explicit conservative
1995 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
1996 (append_compiler_options): Pass -fopenmp through.
1998 2015-01-23 Jakub Jelinek <jakub@redhat.com>
2001 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
2004 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
2005 * diagnostic.def (DK_ICE_NOBT): New kind.
2006 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
2007 like DK_ICE, but never print backtrace.
2008 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
2009 (internal_error_no_backtrace): New function.
2010 * gcc.c (execute): Use internal_error_no_backtrace instead of
2013 2015-01-22 Jeff Law <law@redhat.com>
2016 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
2017 improve code density for small immediate to memory case.
2018 (insv): Better handle bitfield assignments when the field is
2019 being set to all ones.
2020 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
2023 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2024 Jakub Jelinek <jakub@redhat.com>
2026 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
2027 for !TARGET_LIBC_PROVIDES_SSP version and
2028 -fstack-protector-{all,strong,explicit} otherwise.
2029 * config/freebsd.h (LINK_SSP_SPEC): Handle
2030 -fstack-protector-{strong,explicit}.
2032 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
2033 H.J. Lu <hongjiu.lu@intel.com>
2036 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
2039 2015-01-22 Wei Mi <wmi@google.com>
2041 PR rtl-optimization/64557
2042 * dse.c (record_store): Call get_addr for mem_addr.
2043 (check_mem_read_rtx): Likewise.
2045 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
2047 * fold-const.c (const_binop): Add early return for non-tcc_binary.
2049 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
2051 * toplev.c (init_local_tick): Process the failure when read
2052 fails for random_seed.
2054 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
2055 'pretty_name' to avoid memory overflow.
2057 2015-01-22 Richard Biener <rguenther@suse.de>
2060 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
2061 abnormal coalescing on undefined SSA names.
2063 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
2067 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
2069 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
2071 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
2074 * fold-const.c (fold_checksum_tree): Don't include value of
2075 expr->decl_with_vis.symtab_node in the checksum.
2077 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2079 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
2081 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
2084 * gcc.c (insert_comments): New function.
2085 (try_generate_repro): Call it.
2086 (append_text): Removed.
2088 2015-01-22 Richard Biener <rguenther@suse.de>
2090 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
2091 with IL incompatible options. Properly honor user optimize
2094 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
2096 PR rtl-optimization/64682
2097 * combine.c (distribute_notes): When moving a death note for
2098 a register that is set in the new I2, make sure to put it
2101 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
2103 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
2106 2015-01-21 Jakub Jelinek <jakub@redhat.com>
2109 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
2110 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
2111 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
2114 * doc/invoke.texi (-fsanitize=vptr): Document.
2116 PR rtl-optimization/62078
2117 * dse.c: Include cfgcleanup.h.
2118 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
2119 anything call purge_all_dead_edges and cleanup_cfg at the end
2122 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
2124 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
2127 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2129 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
2132 2015-01-21 David Sherwood <david.sherwood@arm.com>
2133 Tejas Belagod <Tejas.Belagod@arm.com>
2135 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
2136 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
2137 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
2140 2015-01-21 David Sherwood <david.sherwood@arm.com>
2141 Tejas Belagod <Tejas.Belagod@arm.com>
2143 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
2144 (aarch64_reverse_mask): New decls.
2145 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
2146 (insn_count): New mode_attr.
2147 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
2148 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
2149 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
2150 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
2151 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
2152 (aarch64_simd_st4): New patterns.
2153 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
2154 (aarch64_reverse_mask): New functions.
2156 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
2158 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
2160 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
2161 addressing modes for BE.
2162 (aarch64_print_operand): Add 'R' specifier.
2163 (aarch64_simd_disambiguate_copy): Delete.
2164 (aarch64_simd_emit_reg_reg_move): New function.
2165 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
2166 in define_splits for structural moves.
2167 (mov<mode>): Use less restrictive predicates.
2168 (*aarch64_mov<mode>): Simplify and only allow for LE.
2169 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
2171 2015-01-21 Alan Hayward <alan.hayward@arm.com>
2173 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
2175 2015-01-21 Richard Henderson <rth@redhat.com>
2178 * ccmp.c (used_in_cond_stmt_p): Remove.
2179 (expand_ccmp_expr): Don't use it.
2181 2015-01-21 Nick Clifton <nickc@redhat.com>
2183 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
2186 2015-01-21 Richard Biener <rguenther@suse.de>
2189 * tree-core.h (builtin_info, builtin_info_type): Turn from
2190 an object with two arrays into an array of an object with
2191 decl and two flags, implicit_p and declared_p.
2192 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
2193 set_builtin_decl, set_builtin_decl_implicit_p,
2194 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
2195 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
2196 * builtins.c (builtin_info): Adjust.
2197 * gimplify.c (gimplify_addr_expr): References to builtins
2198 that have been declared by the user makes them eligible for
2199 use by the compiler. Call set_builtin_decl_implicit_p on them.
2201 2015-01-20 Jeff Law <law@redhat.com>
2204 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
2205 allow pc-relative addresses in operand predicates or constraints.
2207 2015-01-21 Bin Cheng <bin.cheng@arm.com>
2209 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
2210 neon on aarch32 processors for stringops.
2212 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2215 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
2217 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2220 * ipa-inline.c: Include lto-streamer.h
2221 (report_inline_failed_reason): Output source file differences and
2222 flags on optimization/target node mismatch.
2223 (can_inline_edge_p): Consider caller to be the outer inline function;
2224 be less restrictive about matching opimize and optimize_size attributes.
2225 (inline_account_function_p): Break out from ...
2226 (inline_small_functions): ... here.
2227 * ipa-inline-transform.c (clone_inlined_nodes): Use
2228 inline_account_function_p.
2229 (inline_call): Use optimize attribution; use inline_account_function_p.
2230 (inline_transform): Use opt_for_fn.
2231 * ipa-inline.h (inline_account_function_p): Declare.
2233 2015-01-20 Jakub Jelinek <jakub@redhat.com>
2236 * dwarf2out.c (decl_piece_node): Don't put bitsize into
2237 mode if bitsize <= 0.
2238 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
2239 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
2240 sizes and positions.
2242 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
2244 * config/nios2/nios2.c (nios2_asm_file_end): Implement
2245 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
2247 (TARGET_ASM_FILE_END): Define.
2249 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2251 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
2252 (struct tune_params): Use the enum.
2253 * arm.c (arm_*_tune): Update.
2254 (arm_option_override): Update.
2256 2015-01-20 Richard Biener <rguenther@suse.de>
2259 * ipa-reference.c (add_static_var): Inline ...
2260 (analyze_function): ... here after splitting out from ...
2261 (is_proper_for_analysis): ... this.
2263 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
2266 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
2267 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
2268 replace the conditional with it's true branch.
2269 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
2270 (arm_lra_p): Remove.
2272 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
2274 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
2276 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2278 * config/tilegx/mul-tables.c: Move symtab.h include after
2279 coretypes.h include.
2280 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
2281 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
2282 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
2283 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
2284 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2286 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
2290 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2292 PR rtl-optimization/64081
2293 * loop-iv.c (def_pred_latch_p): New function.
2294 (latch_dominating_def): Allow specific cases with non-single
2296 (iv_get_reaching_def): Likewise.
2297 (check_complex_exit_p): New function.
2298 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2299 with exits not executing on any iteration.
2301 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2304 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
2307 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2310 * i386.c (gate): Check flag_expensive_optimizations and
2312 (ix86_option_override_internal): Drop optimize_size condition
2313 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
2314 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
2316 (ix86_avx256_split_vector_move_misalign,
2317 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
2318 * sse.md (all uses of TARGET_PREFER_AVX128): Add
2319 optimize_insn_for_speed_p check.
2321 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
2323 * config/mips/mips.h (FP_ASM_SPEC): New define.
2324 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
2327 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
2330 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
2331 nullptr for insn when reaching the first insn.
2332 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
2333 (sh_insn_operands_modified_between_p): Add nullptr check.
2334 (sh_find_extending_set_of_reg): Fix log message. Don't accept
2335 sign extending mem load if the insn contains any UNSPEC or
2338 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2340 * params.def (inline-unit-growth): Drop to 15%.
2341 * invoke.texi (inline-unit-growth): Document change.
2343 2015-01-19 Martin Liska <mliska@suse.cz>
2346 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
2347 function for second argument of OBJ_TYPE_REF.
2349 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2352 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2353 whether function is an alias.
2355 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2357 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2360 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
2362 PR rtl-optimization/64671
2363 * lra-remat.c (operand_to_remat): Don't consider jump and call
2366 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
2368 * config/rs6000/default64.h: Include rs6000-cpus.def.
2369 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2370 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2371 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2373 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2375 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2376 pseudo-op to specify assembler dialect.
2378 2015-01-19 Martin Liska <mliska@suse.cz>
2381 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2382 Handle safe potentially removed nodes during filtering.
2384 2015-01-19 Martin Liska <mliska@suse.cz>
2386 * doc/extend.texi (no_icf): Add new attribute description.
2387 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2388 where the pass attempts to merge a function with no_icf attribute.
2390 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2393 * doc/md.texi (ARM Options): Document register constraints.
2395 2015-01-19 Jiong Wang <jiong.wang@arm.com>
2396 Andrew Pinski <apinski@cavium.com>
2399 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
2400 (ashl<mode>3): Don't expand if operands[2] is not constant.
2402 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2405 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
2406 Match xor-and-xor RTL pattern.
2408 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2410 PR rtl-optimization/64081
2411 * loop-iv.c (def_pred_latch_p): New function.
2412 (latch_dominating_def): Allow specific cases with non-single
2414 (iv_get_reaching_def): Likewise.
2415 (check_complex_exit_p): New function.
2416 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2417 with exits not executing on any iteration.
2419 2015-01-19 Jakub Jelinek <jakub@redhat.com>
2421 * common.opt (fgraphite): Fix a typo.
2423 2015-01-19 Felix Yang <felix.yang@huawei.com>
2425 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
2427 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
2428 uminp, smax_nanp, smin_nanp): New builtins.
2429 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
2430 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
2431 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
2432 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
2433 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
2434 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
2435 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
2436 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
2437 vpminnms_f32): Rewrite using builtin functions.
2439 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
2442 * omp-low.c (offload_symbol_decl): Remove variable.
2443 (get_offload_symbol_decl): Remove function.
2444 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
2445 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
2446 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
2447 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
2448 BUILT_IN_GOACC_UPDATE don't pass it at all.
2450 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2452 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
2455 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2457 * ipa-chkp.c (chkp_produce_thunks): Add early param
2458 to split thunks production into two passes. Keep
2459 'always_inline' function bodies after the first pass.
2460 (pass_data_ipa_chkp_early_produce_thunks): New.
2461 (pass_ipa_chkp_early_produce_thunks): New.
2462 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
2463 chkp_produce_thunks signature.
2464 (make_pass_ipa_chkp_early_produce_thunks): New.
2465 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
2466 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
2467 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
2469 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2471 * cgraph.c (cgraph_node::dump): Dump profile flags.
2473 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
2476 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
2477 reg appear first in the parallel.
2479 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2481 * ipa-reference.c (set_reference_optimization_summary,
2482 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
2484 (ignore_module_statics): New static var.
2485 (propagate_bits): If ipa-reference is disabled, do not look into local
2487 (analyze_function): Disable analysis when ipa_reference is disabled.
2488 (generate_summary): Do not dump when reference is disabled;
2489 collect vars accessed from functions with ipa-reference disabled.
2490 (get_read_write_all_from_node): When ipa-reference is disabled, use the
2492 (gate): Enable for LTO.
2493 (ignore_edge_p): New function.
2494 (propagate): Skip functions w/o ipa-reference analysis.
2495 * optc-save-gen.awk: Handle optimize_debug correctly.
2496 * opth-gen.awk: Likewise.
2497 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
2498 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
2499 fira-share-save-slots, fira-share-spill-slots,
2500 fmodulo-sched-allow-regmoves, fpartial-inlining,
2501 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
2502 ftracer, ftree-parallelize-loops, fassociative-math,
2503 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
2505 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
2506 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
2508 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
2511 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2514 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
2516 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
2518 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
2520 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
2521 Remove duplicate option listings.
2523 2015-01-18 Felix Yang <felix.yang@huawei.com>
2525 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
2526 (autofdo_source_profile::get_callsite_total_count,
2527 function_instance::get_function_instance_by_decl,
2528 string_table::get_index, string_table::get_index_by_decl,
2529 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
2530 Fix comment typos. Reformatting and minor code rearrangement.
2532 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2534 * config/rs6000/rs6000.md (probe_stack): Delete.
2535 (probe_stack_address): New.
2537 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2539 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
2540 to test for 32-bit ABIs, not !TARGET_POWERPC64.
2542 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2544 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
2545 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
2546 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
2548 (rs6000_libcall_value): Use the new function.
2550 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
2552 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
2554 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
2556 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
2557 implement a more precise life analysis for it during backward scan.
2559 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2561 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
2563 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
2565 PR rtl-optimization/52773
2566 * calls.c (emit_library_call_value): When pushing arguments use
2567 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
2568 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
2569 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
2571 2015-01-17 Jeff Law <law@redhat.com>
2573 PR rtl-optimization/32790
2574 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
2575 not ZERO_EXTEND in SET_DESTs.
2577 2015-01-17 Alan Modra <amodra@gmail.com>
2579 * cprop.c (do_local_cprop): Revert last change.
2581 2015-01-16 DJ Delorie <dj@redhat.com>
2582 Nick Clifton <nickc@redhat.com>
2584 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
2585 (addhi3_real): Likewise. Fix [HL+0] syntax.
2586 (subqi3_real): Likewise.
2587 (subhi3_real): Likewise.
2588 (cbranchqi4_real): Likewise. Allow saddr,#imm.
2589 (cbranchhi4_real): Likewise.
2590 (cbranchhi4_real_inverted): Likewise.
2591 (cbranchsi4_real_lt): Likewise.
2592 (cbranchsi4_real_ge): Likewise.
2593 (cbranchsi4_real_ge): Likewise.
2594 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
2595 (sub<mode>3_virt): Likewise.
2596 (cbranchqi4_virt): Likewise.
2597 (cbranchhi4_virt): Likewise.
2598 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
2599 always use '[reg+imm]' even when imm is zero.
2600 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
2601 (rl78_general_operand): New.
2602 (rl78_nonimmediate_operand): New.
2603 (rl78_nonfar_operand): Use them.
2604 (rl78_nonfar_nonimm_operand): Likewise.
2605 (rl78_stack_based_mem): Fix.
2606 * config/rl78/constraints.md (Ibqi): New.
2611 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
2614 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
2616 * config/rl78/constrains (Qs8): New constraint.
2617 * config/rl78/rl78.c (rl78_flags_already_set): New function.
2618 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
2619 * config/rl78/rl78-real.md (update_Z): New attribute.
2620 Update patterns to set it.
2621 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
2622 shorter compare and branch sequence can be used.
2623 (cbranchhi4_real): Likewise.
2624 (cbranchhi4_real_inverted): Likewise.
2626 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
2627 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
2629 * config/rl78/rl78.c (rl78_get_name_encoding): New.
2630 (rl78_option_override): Allow -mes0 only if C.
2631 (characterize_address): Support subregs of symbol_refs.
2632 (rl78_addr_space_address_mode): Move. Add __near.
2633 (rl78_far_p): Likewise.
2634 (rl78_addr_space_pointer_mode): Likewise.
2635 (rl78_as_legitimate_address): Likewise.
2636 (rl78_addr_space_subset_p): Likewise.
2637 (rl78_addr_space_convert): Likewise.
2638 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
2640 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
2642 (rl78_alloc_physical_registers_op1): Change logic to prefer
2643 symbol[BC] addressing.
2644 (frodata_section): New.
2645 (rl78_asm_init_sections): Initialize it.
2646 (rl78_select_section): Put __far readonly symbols in .frodata.
2647 (rl78_make_type_far): New.
2648 (rl78_insert_attributes): Force all readonly symbols to be
2650 (rl78_asm_out_integer): New.
2651 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
2652 * config/rl78/rl78.opt (-mes0): New.
2654 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
2655 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2656 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2657 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
2658 (rl78_saddr_p): New.
2659 (rl78_output_aligned_common): New.
2660 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
2661 (rl78_handle_saddr_attribute): New.
2662 (rl78_handle_naked_attribute): New.
2663 (rl78_attribute_table): Add saddr.
2664 (rl78_print_operand_1): Don't print '!' on saddr operands.
2665 (rl78_print_operand_1): Strip encodings.
2667 (rl78_strip_name_encoding): New.
2668 (rl78_attrlist_to_encoding): New.
2669 (rl78_encode_section_info): New.
2670 (rl78_asm_init_sections): New.
2671 (rl78_select_section): New.
2672 (rl78_output_labelref): New.
2673 (rl78_output_aligned_common): New.
2674 (rl78_asm_out_integer): New.
2675 (rl78_asm_ctor_dtor): New.
2676 (rl78_asm_constructor): New.
2677 (rl78_asm_destructor): New.
2679 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
2680 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
2681 (transcode_memory_rtx): Update.
2682 (rl78_expand_epilogue): Use A_REG instead of 0.
2684 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2686 * config/arm/arm-protos.h (struct tune_params): New field
2687 sched_autopref_queue_depth.
2688 * config/arm/arm.c (sched-int.h): Include header.
2689 (arm_first_cycle_multipass_dfa_lookahead_guard,)
2690 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
2691 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
2692 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
2693 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
2694 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
2695 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
2696 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
2697 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
2698 * config/arm/t-arm (arm.o): Update.
2699 * haifa-sched.c (update_insn_after_change): Update.
2700 (rank_for_schedule): Use auto-prefetcher model, if requested.
2701 (autopref_multipass_init): New static function.
2702 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
2703 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
2704 variable for debug dumps.
2705 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
2706 (autopref_multipass_dfa_lookahead_guard): New global function that
2707 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
2708 (init_h_i_d): Update.
2709 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
2710 * sched-int.h (enum autopref_multipass_data_status): New const enum.
2711 (autopref_multipass_data_): Structure for auto-prefetcher data.
2712 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
2713 (struct _haifa_insn_data:autopref_multipass_data): New field.
2714 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
2715 (autopref_multipass_dfa_lookahead_guard): Declare.
2717 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2719 * rtlanal.c (get_base_term): Handle SCRATCH.
2721 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2723 * config/aarch64/aarch64.c
2724 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
2725 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2727 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
2728 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2730 2015-01-17 Alan Modra <amodra@gmail.com>
2732 * cprop.c (do_local_cprop): Disallow replacement of fixed
2735 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2738 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
2741 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2743 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
2744 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
2746 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2748 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
2749 * config/arm/thumb1.md: ... Here.
2751 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2753 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
2754 TImode for TARGET_32BIT.
2756 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2758 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
2759 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
2761 (rs6000_abi_word_mode): New function.
2763 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2765 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
2766 instead of UNITS_PER_WORD to describe the size of stack slots.
2768 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2770 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
2771 as rs6000_promote_function_mode. Move comment to there.
2772 (rs6000_promote_function_mode): New function.
2774 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2776 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
2777 -mpowerpc64 is active.
2779 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
2782 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
2785 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
2787 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
2788 introduced in revision 219724.
2790 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2791 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2794 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
2795 destination is not a GP reg.
2796 (*movdi_aarch64): Likewise.
2798 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
2801 * config/rs6000/default64.h: Revert ISA change.
2803 2015-01-16 Richard Biener <rguenther@suse.de>
2806 * tree-ssa-uninit.c: Include tree-cfg.h.
2807 (MAX_SWITCH_CASES): New define.
2808 (convert_control_dep_chain_into_preds): Handle switch statements.
2809 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
2810 (normalize_one_pred_1): Do not split bit-manipulations.
2813 2015-01-16 Richard Biener <rguenther@suse.de>
2815 PR tree-optimization/64568
2816 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
2817 complex load rewriting for TARGET_MEM_REFs.
2819 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
2821 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
2823 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
2826 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
2828 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
2829 (aarch64_lra_p): Remove.
2831 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
2834 * ipa-chkp.h (chkp_instrumentable_p): New.
2835 * ipa-chkp.c: Include tree-inline.h.
2836 (chkp_instrumentable_p): New.
2837 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
2838 Fix processing of not instrumentable functions.
2839 (chkp_versioning): Use chkp_instrumentable_p. Warn about
2840 not instrumentable functions.
2841 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
2842 chkp_instrumentable_p.
2843 * tree-inline.h (copy_forbidden): New.
2844 * tree-inline.c (copy_forbidden): Not static anymore.
2846 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2848 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
2851 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
2853 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
2854 type OP_OUT to OP_INOUT.
2856 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
2858 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
2859 (high x) y) to y if x and y have the same base.
2861 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
2863 * config/arm/cortex-a57.md: New.
2864 * config/aarch64/aarch64.md: Include it.
2865 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
2866 * config/aarch64/aarch64-tune.md: Regenerate.
2868 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
2871 * ccmp.c (expand_ccmp_next): New function.
2872 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
2873 and compare insn sequence.
2874 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2875 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
2876 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
2877 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
2878 (*ccmp_ior): Changed to ccmp_ior<mode>.
2879 (cmp<mode>): New pattern.
2880 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
2882 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
2884 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
2886 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
2887 _mm256_bsrli_epi128): New.
2888 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
2890 2015-01-15 Jiong Wang <jiong.wang@arm.com>
2892 * expmed.c (store_bit_field_using_insv): Improve warning message.
2893 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
2895 2015-01-15 Jiong Wang <jiong.wang@arm.com>
2897 PR rtl-optimization/64011
2898 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
2899 there is partial overflow.
2901 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2903 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
2905 (nds32_expand_epilogue_v3pop): Likewise.
2906 * config/nds32/nds32.md (sibcall): Define this for sibling call
2908 (sibcall_register): Likewise.
2909 (sibcall_immediate): Likewise.
2910 (sibcall_value): Likewise.
2911 (sibcall_value_register): Likewise.
2912 (sibcall_value_immediate): Likewise.
2913 (sibcall_epilogue): Likewise.
2914 (epilogue): Pass false to indicate this is not a sibcall epilogue.
2915 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
2916 (nds32_expand_epilogue_v3pop): Likewise.
2918 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2920 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
2921 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
2922 (return_internal): New.
2923 (return): Define this named pattern.
2924 (simple_return): Define this named pattern.
2925 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
2926 pattern instead of unspec_volatile_func_return.
2927 (nds32_expand_epilogue_v3pop): Likewise.
2928 (nds32_can_use_return_insn): New function.
2930 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2932 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
2933 * config/nds32/nds32.md (pop25return): New.
2934 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
2935 pop25return pattern.
2937 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2939 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
2940 -mforbid-fp-as-gp, and -mex9 options.
2942 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2944 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
2945 remove -mgp-direct option.
2947 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2949 * doc/invoke.texi (--param early-inlining-insns): Update default value.
2950 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
2952 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2954 * ipa-inline.c (inline_small_functions): Work around hints
2957 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
2960 * doc/invoke.texi (Option Summary): Document new Nios II
2962 (Nios II Options): Likewise.
2963 * config/nios2/nios2.opt: Add -mgpopt= option support.
2964 Modify existing -mgpopt and -mno-gpopt options to be aliases.
2965 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
2966 * config/nios2/nios2.c (nios2_option_override): Adjust
2968 (nios2_in_small_data_p): Return true for explicit small data
2969 sections even with -G0.
2970 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
2973 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2976 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
2978 (inline_call): Fix removal of aliases.
2980 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2982 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
2983 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
2984 * opts.c (common_handle_option): Add -fsanitize=vptr.
2985 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
2986 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
2987 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
2988 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
2989 (ubsan_expand_vptr_ifn): New prototype.
2990 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
2991 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
2992 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
2993 expand_LOOP_VECTORIZED): Make argument nameless, remove
2995 (expand_UBSAN_VPTR): New function.
2996 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
2998 (UBSAN_VPTR): New internal function.
2999 * sanopt.c (tree_map_traits): Renamed to ...
3000 (sanopt_tree_map_traits): ... this.
3001 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
3002 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
3003 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
3004 (maybe_optimize_ubsan_vptr_ifn): New function.
3005 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
3006 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
3008 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
3009 internal calls like pure functions for aliasing, even when they
3010 have other side-effects that prevent making them ECF_PURE.
3011 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
3012 (ubsan_expand_vptr_ifn): New function.
3014 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
3016 PR rtl-optimization/64110
3017 * stmt.c (parse_output_constraint): Process '^' and '$'.
3018 (parse_input_constraint): Ditto.
3019 * lra-constraints.c (process_alt_operands): Process the new
3021 * ira-costs.c (record_reg_classes): Process the new constraint
3023 * genoutput.c (indep_constraints): Add '^' and '$'.
3024 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
3025 * doc/md.texi: Add description of the new constraints.
3027 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3028 Bernd Schmidt <bernds@codesourcery.com>
3029 Cesar Philippidis <cesar@codesourcery.com>
3030 James Norris <jnorris@codesourcery.com>
3031 Tom de Vries <tom@codesourcery.com>
3032 Ilmir Usmanov <i.usmanov@samsung.com>
3033 Dmitry Bocharnikov <dmitry.b@samsung.com>
3034 Evgeny Gavrin <e.gavrin@samsung.com>
3035 Jakub Jelinek <jakub@redhat.com>
3037 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
3038 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
3039 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
3041 * builtins.c: Include "gomp-constants.h".
3042 (expand_builtin_acc_on_device): New function.
3043 (expand_builtin, is_inexpensive_builtin): Handle
3044 BUILT_IN_ACC_ON_DEVICE.
3045 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
3047 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
3049 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
3050 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
3051 i386/intelmic-offload.h.
3052 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
3053 to libgomp and its dependencies.
3054 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
3055 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
3056 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
3057 * config/ia64/hpux.h (LIB_SPEC): Likewise.
3058 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3059 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3060 * doc/generic.texi: Update for OpenACC changes.
3061 * doc/gimple.texi: Likewise.
3062 * doc/invoke.texi: Likewise.
3063 * doc/sourcebuild.texi: Likewise.
3064 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
3065 GF_OMP_FOR_KIND_OACC_LOOP.
3066 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
3067 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
3068 GF_OMP_TARGET_KIND_OACC_UPDATE,
3069 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3071 * gimple.c: Update comments for OpenACC changes.
3072 * gimple.def: Likewise.
3073 * gimple.h: Likewise.
3074 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
3075 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3076 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
3077 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3078 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
3080 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
3081 * gimplify.c: Include "gomp-constants.h".
3082 Update comments for OpenACC changes.
3083 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
3084 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
3085 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3086 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3087 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3088 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3089 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
3090 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3091 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3093 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
3094 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3095 OMP_CLAUSE_SET_MAP_KIND.
3096 (gimplify_oacc_cache): New function.
3097 (gimplify_omp_for): Handle OACC_LOOP.
3098 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
3100 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
3101 OACC_EXIT_DATA, OACC_UPDATE.
3102 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
3103 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
3104 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
3105 (gimplify_body): Consider flag_openacc next to flag_openmp.
3106 * lto-streamer-out.c: Include "gomp-constants.h".
3107 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
3108 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
3109 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
3110 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
3111 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
3112 (BUILT_IN_ACC_ON_DEVICE): New builtins.
3113 * omp-low.c: Include "gomp-constants.h".
3114 Update comments for OpenACC changes.
3115 (struct omp_context): Add reduction_map, gwv_below, gwv_this
3117 (extract_omp_for_data, use_pointer_for_field, install_var_field)
3118 (new_omp_context, delete_omp_context, scan_sharing_clauses)
3119 (create_omp_child_function, scan_omp_for, scan_omp_target)
3120 (check_omp_nesting_restrictions, lower_reduction_clauses)
3121 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
3122 Update for OpenACC changes.
3123 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
3124 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
3125 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
3126 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3127 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
3128 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
3130 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3131 Handle GF_OMP_FOR_KIND_OACC_LOOP.
3132 (expand_omp_target, lower_omp_target): Handle
3133 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3134 GF_OMP_TARGET_KIND_OACC_UPDATE,
3135 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
3136 GF_OMP_TARGET_KIND_OACC_DATA.
3137 (pass_expand_omp::execute, execute_lower_omp)
3138 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
3140 (offload_symbol_decl): New variable.
3141 (oacc_get_reduction_array_id, oacc_max_threads)
3142 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
3143 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
3144 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
3145 (oacc_gimple_assign, oacc_initialize_reduction_data)
3146 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
3148 (is_targetreg_ctx): Remove function.
3149 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
3150 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
3151 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3152 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
3153 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
3154 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
3155 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
3156 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
3157 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
3158 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
3159 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
3160 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
3161 * tree-core.h: Update comments for OpenACC changes.
3162 (enum omp_clause_map_kind): Remove.
3163 (struct tree_omp_clause): Change type of map_kind member from enum
3164 omp_clause_map_kind to unsigned char.
3165 * tree-inline.c: Update comments for OpenACC changes.
3166 * tree-nested.c: Likewise. Include "gomp-constants.h".
3167 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
3168 (convert_tramp_reference_stmt, convert_gimple_call): Update for
3169 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3170 OMP_CLAUSE_SET_MAP_KIND.
3171 * tree-pretty-print.c: Include "gomp-constants.h".
3172 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
3173 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
3174 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
3175 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
3176 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3177 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
3178 instead of OMP_CLAUSE_MAP_*.
3179 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
3180 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
3181 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3182 * tree-streamer-in.c: Include "gomp-constants.h".
3183 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
3184 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
3185 * tree-streamer-out.c: Include "gomp-constants.h".
3186 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
3188 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
3189 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
3190 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
3191 * tree.c (omp_clause_num_ops): Update accordingly.
3192 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
3194 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
3195 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
3196 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
3197 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
3198 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
3199 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
3200 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
3201 (OMP_CLAUSE_SET_MAP_KIND): New macro.
3202 * varpool.c (varpool_node::get_create): Consider flag_openacc next
3204 * config/i386/intelmic-offload.h: New file.
3205 * config/nvptx/offload.h: Likewise.
3207 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3209 * explow.h: Remove duplicate contents.
3210 * dojump.h: Likewise.
3212 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
3214 * arm.c (arm_xgene_tune): Add default initializer for instruction
3217 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3221 * ipa.c (symbol_table::remove_unreachable_nodes):
3222 Do not put abstract origins into boundary.
3224 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
3226 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
3227 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
3229 2015-01-15 Steve Ellcey <sellcey@mips.com>
3231 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
3232 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
3233 builtins.def, and chkp-builtins.def.
3235 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
3237 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
3240 2015-01-15 Richard Biener <rguenther@suse.de>
3242 PR tree-optimization/61743
3243 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
3244 information on PHIs for some simple cases.
3246 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3248 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
3250 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
3251 * config/arm/arm-cores.def (xgene1): New entry.
3252 * config/arm/arm-tables.opt: Regenerate.
3253 * config/arm/arm-tune.md: Regenerate.
3254 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
3256 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
3258 * tree-if-conv.c: Include hash-map.h.
3259 (aggressive_if_conv): New variable.
3260 (fold_build_cond_expr): Add simplification of non-zero condition.
3261 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
3262 destination block is not always executed.
3263 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
3264 than two predecessors if AGGRESSIVE_IF_CONV is true.
3265 (if_convertible_stmt_p): Fix commentary.
3266 (all_preds_critical_p): New function.
3267 (has_pred_critical_p): New function.
3268 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
3269 BB can have more than two predecessors and all incoming edges can be
3271 (predicate_bbs): Skip predication for loop exit block, use build2_loc
3272 to compute predicate for true edge.
3273 (find_phi_replacement_condition): Delete this function.
3274 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
3275 Allow interchange PHI arguments if EXTENDED is false.
3276 Change check that block containing reduction statement candidate
3277 is predecessor of phi-block since phi may have more than two arguments.
3278 (phi_args_hash_traits): New helper structure.
3279 (struct phi_args_hash_traits): New type.
3280 (phi_args_hash_traits::hash): New function.
3281 (phi_args_hash_traits::equal_keys): New function.
3282 (gen_phi_arg_condition): New function.
3283 (predicate_scalar_phi): Add handling of phi nodes with more than two
3284 arguments, delete COND and TRUE_BB arguments, insert body of
3285 find_phi_replacement_condition to predicate ordinary phi nodes.
3286 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
3287 delete call of find_phi_replacement_condition and invoke
3288 predicate_scalar_phi with two arguments.
3289 (insert_gimplified_predicates): Add assert that non-predicated block
3290 don't have statements to insert.
3291 (ifcvt_split_critical_edges): New function.
3292 (ifcvt_split_def_stmt): Likewise.
3293 (ifcvt_walk_pattern_tree): Likewise.
3294 (stmt_is_root_of_bool_pattern): Likewise.
3295 (ifcvt_repair_bool_pattern): Likewise.
3296 (ifcvt_local_dce): Likewise.
3297 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
3298 is copy of inner or outer loop force_vectorize field, invoke
3299 ifcvt_split_critical_edges, ifcvt_local_dce and
3300 ifcvt_repair_bool_pattern for aggressive if-conversion.
3302 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
3304 * config/aarch64/aarch64.md: Include xgene1.md.
3305 * config/aarch64/xgene1.md: New file.
3307 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3309 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
3310 xgene1 (APM XGene-1) core definition.
3311 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
3312 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
3313 * doc/invoke.texi: Document -mcpu=xgene1.
3315 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3317 * dojump.h: New header file.
3318 * explow.h: Likewise.
3319 * expr.h: Remove includes.
3320 Move expmed.c prototypes to expmed.h.
3321 Move dojump.c prototypes to dojump.h.
3322 Move alias.c prototypes to alias.h.
3323 Move explow.c prototypes to explow.h.
3324 Move calls.c prototypes to calls.h.
3325 Move emit-rtl.c prototypes to emit-rtl.h.
3326 Move varasm.c prototypes to varasm.h.
3327 Move stmt.c prototypes to stmt.h.
3328 (saved_pending_stack_adjust): Move to dojump.h.
3329 (adjust_address): Move to explow.h.
3330 (adjust_address_nv): Move to emit-rtl.h.
3331 (adjust_bitfield_address): Likewise.
3332 (adjust_bitfield_address_size): Likewise.
3333 (adjust_bitfield_address_nv): Likewise.
3334 (adjust_automodify_address_nv): Likewise.
3335 * explow.c (expr_size): Move to expr.c.
3336 (int_expr_size): Likewise.
3337 (tree_expr_size): Likewise.
3338 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3339 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3340 * genemit.c (main): Generate includes statistics.h, real.h,
3341 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
3343 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
3344 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
3345 explow.h, emit-rtl.h, stmt.h.
3346 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
3347 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
3348 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
3349 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
3350 emit-rtl.h, varasm.h, stmt.h.
3351 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3352 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3353 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3354 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3355 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3356 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3357 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3358 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3359 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3360 tm.h tree.h varasm.h vec.h wide-int.h.
3361 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3362 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3363 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3364 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
3365 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3366 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3367 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
3368 * loop-iv.c: Likewise.
3369 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3370 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
3371 statistics.h stmt.h tree.h varasm.h wide-int.h.
3372 * lra-constraints.c: Likewise.
3373 * lra-eliminations.c: Likewise.
3374 * lra-lives.c: Likewise.
3375 * lra-remat.c: Likewise.
3376 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3377 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3378 statistics.h stmt.h tree.h varasm.h wide-int.h.
3379 * hw-doloop.c: Likewise.
3380 * ira-color.c: Likewise.
3381 * ira-emit.c: Likewise.
3382 * loop-doloop.c: Likewise.
3383 * loop-invariant.c: Likewise.
3384 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3385 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3386 statistics.h stmt.h tree.h varasm.h wide-int.h.
3387 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3388 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3389 statistics.h stmt.h tree.h varasm.h wide-int.h.
3390 * combine-stack-adj.c: Likewise.
3393 * ifcvt.c: Likewise.
3394 * ira-costs.c: Likewise.
3396 * lra-coalesce.c: Likewise.
3397 * lra-spills.c: Likewise.
3398 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3399 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
3400 stmt.h varasm.h wide-int.h.
3401 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3402 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3404 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
3405 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
3406 statistics.h stmt.h varasm.h wide-int.h.
3407 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
3408 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
3409 varasm.h wide-int.h.
3410 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
3411 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3412 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
3413 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
3414 statistics.h stmt.h.
3415 * config/tilepro/tilepro.c: Likewise.
3416 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
3417 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
3418 * config/pdp11/pdp11.c: Likewise.
3419 * config/xtensa/xtensa.c: Likewise.
3420 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
3421 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3423 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3424 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3425 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
3426 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3427 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3428 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
3429 * rtl-chkp.c: Likewise.
3430 * tree-chkp-opt.c: Likewise.
3431 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
3432 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3433 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
3434 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3435 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3436 statistics.h stmt.h.
3437 * tree-vect-data-refs.c: Likewise.
3438 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
3439 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3440 rtl.h statistics.h stmt.h varasm.h.
3441 * internal-fn.c: Likewise.
3442 * ipa-icf-gimple.c: Likewise.
3443 * lto-section-out.c: Likewise.
3444 * tree-data-ref.c: Likewise.
3445 * tree-nested.c: Likewise.
3446 * tree-outof-ssa.c: Likewise.
3447 * tree-predcom.c: Likewise.
3448 * tree-pretty-print.c: Likewise.
3449 * tree-scalar-evolution.c: Likewise.
3450 * tree-ssa-strlen.c: Likewise.
3451 * tree-vect-loop.c: Likewise.
3452 * tree-vect-patterns.c: Likewise.
3453 * tree-vect-slp.c: Likewise.
3454 * tree-vect-stmts.c: Likewise.
3456 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3457 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
3459 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
3460 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3461 statistics.h stmt.h varasm.h.
3462 * loop-unroll.c: Likewise.
3463 * ubsan.c: Likewise.
3464 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
3465 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
3467 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3468 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
3469 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
3470 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3471 statistics.h stmt.h.
3472 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
3473 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3474 statistics.h stmt.h varasm.h.
3475 * gimple-match-head.c: Likewise.
3476 * lto-cgraph.c: Likewise.
3477 * lto-section-in.c: Likewise.
3478 * lto-streamer-in.c: Likewise.
3479 * lto-streamer-out.c: Likewise.
3480 * tree-affine.c: Likewise.
3481 * tree-cfg.c: Likewise.
3482 * tree-cfgcleanup.c: Likewise.
3483 * tree-if-conv.c: Likewise.
3484 * tree-into-ssa.c: Likewise.
3485 * tree-ssa-alias.c: Likewise.
3486 * tree-ssa-copyrename.c: Likewise.
3487 * tree-ssa-dse.c: Likewise.
3488 * tree-ssa-forwprop.c: Likewise.
3489 * tree-ssa-live.c: Likewise.
3490 * tree-ssa-math-opts.c: Likewise.
3491 * tree-ssa-pre.c: Likewise.
3492 * tree-ssa-sccvn.c: Likewise.
3493 * tree-tailcall.c: Likewise.
3494 * tree-vect-generic.c: Likewise.
3495 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3496 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
3497 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3498 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
3499 * varasm.c: Likewise.
3500 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3501 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
3503 * init-regs.c: Likewise.
3505 * omp-low.c: Likewise.
3506 * stack-ptr-mod.c: Likewise.
3507 * tree-ssa-reassoc.c: Likewise.
3508 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3509 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
3511 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3512 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
3513 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3514 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
3515 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3516 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
3517 * tree-ssa-phiopt.c: Likewise.
3518 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3519 fixed-value.h hashtab.h real.h statistics.h stmt.h.
3520 * config/fr30/fr30.c: Likewise.
3521 * config/frv/frv.c: Likewise.
3523 * final.c: Likewise.
3524 * optabs.c: Likewise.
3525 * passes.c: Likewise.
3526 * simplify-rtx.c: Likewise.
3528 * toplev.c: Likewise.
3529 * var-tracking.c: Likewise.
3530 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3531 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3532 * lower-subreg.c: Likewise.
3533 * postreload-gcse.c: Likewise.
3535 * reginfo.c: Likewise.
3536 * store-motion.c: Likewise.
3537 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3538 fixed-value.h hashtab.h real.h stmt.h varasm.h.
3539 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3540 fixed-value.h hashtab.h statistics.h stmt.h.
3541 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3542 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3543 * except.c: Likewise.
3544 * explow.c: Likewise.
3545 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3546 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
3548 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3549 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
3550 * tree-ssa-structalias.c: Likewise.
3551 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3552 fixed-value.h insn-config.h real.h statistics.h.
3553 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3554 fixed-value.h insn-config.h real.h statistics.h stmt.h.
3555 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3556 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3557 * cfgbuild.c: Likewise.
3558 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3559 fixed-value.h real.h rtl.h statistics.h stmt.h.
3560 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3561 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3562 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3563 fixed-value.h real.h statistics.h stmt.h.
3564 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3565 fixed-value.h real.h statistics.h stmt.h varasm.h.
3566 * cprop.c: Likewise.
3567 * modulo-sched.c: Likewise.
3568 * postreload.c: Likewise.
3569 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3570 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
3571 statistics.h stmt.h varasm.h.
3572 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
3573 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3574 rtl.h statistics.h stmt.h varasm.h.
3575 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
3576 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
3578 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3579 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
3581 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
3582 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
3584 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
3585 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3586 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3587 function.h real.h statistics.h stmt.h varasm.h.
3588 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3589 insn-config.h real.h statistics.h stmt.h.
3590 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3591 statistics.h stmt.h.
3592 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
3593 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
3594 statistics.h stmt.h varasm.h.
3595 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
3596 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
3597 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3598 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
3599 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
3600 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3601 statistics.h stmt.h varasm.h.
3602 * ipa-polymorphic-call.c: Likewise.
3603 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
3604 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3605 statistics.h stmt.h.
3606 * config/c6x/c6x.c: Likewise.
3607 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
3608 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3609 statistics.h stmt.h varasm.h.
3610 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
3611 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
3613 * ipa-split.c: Likewise.
3614 * tree-eh.c: Likewise.
3615 * tree-ssa-dce.c: Likewise.
3616 * tree-ssa-loop-niter.c: Likewise.
3617 * tree-vrp.c: Likewise.
3618 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
3619 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
3621 * config/nds32/nds32-fp-as-gp.c: Likewise.
3622 * config/nds32/nds32-intrinsic.c: Likewise.
3623 * config/nds32/nds32-isr.c: Likewise.
3624 * config/nds32/nds32-md-auxiliary.c: Likewise.
3625 * config/nds32/nds32-memory-manipulation.c: Likewise.
3626 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3627 * config/nds32/nds32-predicates.c: Likewise.
3628 * config/nds32/nds32.c: Likewise.
3629 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
3630 fixed-value.h hashtab.h real.h statistics.h.
3631 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
3632 fixed-value.h hashtab.h real.h statistics.h stmt.h.
3633 * config/arm/arm.c: Likewise.
3634 * config/avr/avr.c: Likewise.
3635 * config/bfin/bfin.c: Likewise.
3636 * config/h8300/h8300.c: Likewise.
3637 * config/i386/i386.c: Likewise.
3638 * config/ia64/ia64.c: Likewise.
3639 * config/iq2000/iq2000.c: Likewise.
3640 * config/m32c/m32c.c: Likewise.
3641 * config/m32r/m32r.c: Likewise.
3642 * config/m68k/m68k.c: Likewise.
3643 * config/mcore/mcore.c: Likewise.
3644 * config/mep/mep.c: Likewise.
3645 * config/mips/mips.c: Likewise.
3646 * config/mn10300/mn10300.c: Likewise.
3647 * config/moxie/moxie.c: Likewise.
3648 * config/pa/pa.c: Likewise.
3649 * config/rl78/rl78.c: Likewise.
3650 * config/rx/rx.c: Likewise.
3651 * config/s390/s390.c: Likewise.
3652 * config/sh/sh.c: Likewise.
3653 * config/sparc/sparc.c: Likewise.
3654 * config/spu/spu.c: Likewise.
3655 * config/stormy16/stormy16.c: Likewise.
3656 * config/v850/v850.c: Likewise.
3657 * config/vax/vax.c: Likewise.
3658 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
3659 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3660 * config/msp430/msp430.c: Likewise.
3661 * predict.c: Likewise.
3662 * value-prof.c: Likewise.
3663 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
3664 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
3665 * config/microblaze/microblaze.c: Likewise.
3666 * config/nios2/nios2.c: Likewise.
3667 * config/rs6000/rs6000.c: Likewise.
3668 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3669 insn-config.h real.h rtl.h statistics.h stmt.h.
3670 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3671 insn-config.h real.h statistics.h stmt.h.
3672 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
3673 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3674 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
3675 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3676 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
3677 fixed-value.h real.h statistics.h stmt.h.
3678 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
3679 fixed-value.h statistics.h stmt.h.
3680 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
3683 2015-01-15 Jakub Jelinek <jakub@redhat.com>
3685 * gengtype.c (create_user_defined_type): Workaround
3686 -Wmaybe-uninitialized false positives.
3687 * cse.c (fold_rtx): Likewise.
3688 * loop-invariant.c (gain_for_invariant): Likewise.
3690 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
3692 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
3693 set the memory attributes in all cases but clear MEM_EXPR if need be.
3695 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
3697 PR tree-optimization/64434
3698 * cfgexpand.c (reorder_operands): New function.
3699 (expand_gimple_basic_block): Insert call of reorder_operands if
3702 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
3704 * config/mips/micromips.md (*swp): Remove explicit parallel.
3705 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
3706 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
3707 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
3708 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
3709 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
3710 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
3711 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
3712 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
3713 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
3714 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
3715 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
3716 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
3717 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
3718 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
3719 (mips_wrdsp): Likewise.
3720 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
3722 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
3723 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
3724 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
3725 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
3726 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
3727 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
3728 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
3729 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
3730 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
3732 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3734 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
3735 (mips_print_operand): Support 'y' to print exact log2 in decimal
3737 * config/mips/mips.h (ISA_HAS_LSA): New define.
3738 (ISA_HAS_DLSA): Likewise.
3739 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
3740 * config/mips/predicates.md (const_immlsa_operand): New predicate.
3742 2015-01-15 Martin Liska <mliska@suse.cz>
3745 * optc-save-gen.awk: Add support for array types.
3747 2015-01-15 Richard Biener <rguenther@suse.de>
3750 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
3751 for MEM_REF access functions with the same base can never partially
3754 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
3756 * common.opt: New option -fstack-protector-explicit.
3757 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
3758 (stack_protect_decl_phase): Handle stack_protect attribute for
3759 explicit stack protection requests.
3760 (expand_used_vars): Similarly.
3761 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
3762 * doc/extend.texi: Add documentation for "stack_protect" attribute.
3763 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
3765 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
3768 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
3770 (sh_extending_set_of_reg): New struct.
3771 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
3772 sh_remove_reg_dead_or_unused_notes): New Declarations.
3773 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
3774 sh_find_extending_set_of_reg, sh_split_tst_subregs,
3775 sh_extending_set_of_reg::use_as_extended_reg): New functions.
3776 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
3777 convert to insn_and_split and use new function sh_split_tst_subregs.
3779 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
3781 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
3783 (Optimization Options): Move -fuse-ld documentation to...
3784 (Link Options): ...here.
3786 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3788 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
3790 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
3791 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
3792 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
3793 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
3794 instead of ZR for the memory operand of LL/SC.
3795 (compare_and_swap_12, sync_add<mode>): Likewise.
3796 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
3797 (sync_new_<optab>_12, sync_nand_12): Likewise.
3798 (sync_old_nand_12, sync_new_nand_12): Likewise.
3799 (sync_sub<mode>, sync_old_add<mode>): Likewise.
3800 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
3801 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
3802 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
3803 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
3804 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
3805 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
3806 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
3807 * doc/md.texi (ZC): Update description.
3809 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
3811 * builtins.c (expand_builtin_atomic_exchange): Remove error when
3812 memory model is CONSUME.
3813 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
3814 expand_builtin_atomic_store): Change invalid memory model errors to
3816 (expand_builtin_atomic_clear): Change invalid model errors to warnings
3817 and issue warning for CONSUME.
3819 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
3821 * lto-cgraph: Update function comments for
3822 lto_symtab_encoder_encode_*.
3824 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
3826 * Makefile.in (site.exp): Do not set ENABLE_LTO.
3828 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
3830 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
3831 * lto-cgraph.c (select_what_to_stream): Remove argument, use
3832 lto_stream_offload_p instead.
3833 * lto-streamer.h (select_what_to_stream): Remove argument.
3834 * passes.c (ipa_write_summaries): Likewise.
3835 * tree-pass.h (ipa_write_summaries): Likewise.
3837 2015-01-14 Richard Biener <rguenther@suse.de>
3839 PR tree-optimization/59354
3840 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
3841 groups larger than the slp group size as having gaps.
3843 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
3846 * builtins.c (get_memmodel): Promote consume to acquire always.
3848 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3851 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
3854 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3857 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
3859 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
3860 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
3861 AVX512VBMI, as it implies AVX512BW.
3863 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3866 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
3867 (vec_unpacks_hi_v16sf): Ditto.
3869 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3871 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
3874 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3876 * doc/invoke.texi (mapcs): Mention deprecation.
3877 (mapcs-frame): Likewise.
3879 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3882 * config/arm/arm.c (callee_saved_reg_p): Define.
3883 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
3884 register is callee saved instead of !call_used_regs[reg].
3885 (thumb1_compute_save_reg_mask): Likewise.
3887 2015-01-14 Hale Wang <hale.wang@arm.com>
3889 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
3892 2015-01-14 Richard Biener <rguenther@suse.de>
3895 * tree-inline.c (insert_debug_decl_map): Check destination
3896 function MAY_HAVE_DEBUG_STMTS.
3897 (insert_init_debug_bind): Likewise.
3898 (insert_init_stmt): Remove redundant check.
3899 (remap_gimple_stmt): Drop debug stmts if the destination
3900 function has var-tracking assignments disabled.
3902 2015-01-14 Martin Liska <mliska@suse.cz>
3904 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
3905 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
3907 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3910 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
3911 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
3913 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3915 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
3916 level from an ARCH; do not inject the default.
3917 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
3918 MIPS_ISA_LEVEL_SPEC.
3919 (MIPS_ISA_NAN2008_SPEC): Update comment.
3920 (BASE_DRIVER_SELF_SPECS): Likewise.
3921 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
3922 MIPS_DEFAULT_ISA_LEVEL_SPEC.
3923 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
3924 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
3925 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
3927 2015-01-14 Richard Biener <rguenther@suse.de>
3929 PR tree-optimization/64493
3930 PR tree-optimization/64495
3931 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
3932 assign the proper vectorized PHI to the inner loop exit PHIs.
3934 2015-01-14 Joey Ye <joey.ye@arm.com>
3936 * config/arm/arm.c (arm_compute_save_reg_mask):
3937 Do not save lr in case of tail call.
3938 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
3940 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
3942 * tree-vrp.c (check_array_ref): Emit more warnings
3943 for warn_array_bounds >= 2.
3944 * common.opt: New option -Warray-bounds=.
3945 * doc/invoke.texi: Document -Warray-bounds=.
3947 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
3949 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
3950 (mforbid-fp-as-gp): Remove.
3952 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
3953 (nds32_symbol_load_store_p): Remove.
3954 (nds32_fp_as_gp_check_available): Clean up implementation.
3955 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
3957 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
3958 fp-as-gp and ex9 cases.
3960 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3962 * tree-profile.c (init_ic_make_global_vars): Drop workaround
3963 for bintuils bug 14342.
3964 (init_ic_make_global_vars): Likewise.
3965 (gimple_init_edge_profiler): Likewise.
3966 (gimple_gen_ic_func_profiler): Likewise.
3968 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3970 * ipa-inline.c (inline_small_functions): Swap the operands in
3973 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3976 * ipa-inline-analysis.c (node_growth_cache): Remove.
3977 (initialize_growth_caches): Do not initialize it.
3978 (free_growth_caches): Do not free it.
3979 (do_estimate_growth): Rename to ...
3980 (estimate_growth): ... this one; drop growth cache code.
3981 (growth_likely_positive): Always go the heuristics way.
3982 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
3983 (reset_edge_caches): Do not reset node growth.
3984 (heap_edge_removal_hook): Do not maintain cache.
3985 (inline_small_functions): Likewise; strenghten sanity check.
3986 (ipa_inline): Do not maintain caches.
3987 * ipa-inline.h (node_growth_cache): Remove.
3988 (do_estimate_growth): Remove to ...
3989 (estimate_growth): this one; remove inline version.
3990 (reset_node_growth_cache): Remove.
3992 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3995 * ipa-inline.c (inline_small_functions): Update callee keys after
3996 resolving speculation
3997 (inline_small_functions): Always check monotonicity of the queue.
3999 2015-01-13 Marek Polacek <polacek@redhat.com>
4002 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
4004 2015-01-13 Jakub Jelinek <jakub@redhat.com>
4006 PR rtl-optimization/64286
4007 * ree.c (combine_reaching_defs): Move part of comment earlier,
4008 remove !SCALAR_INT_MODE_P check.
4009 (add_removable_extension): Don't add vector mode
4010 extensions if all uses of the source register aren't the same
4013 2015-01-13 Renlin Li <renlin.li@arm.com>
4015 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
4016 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
4018 2015-01-13 Martin Liska <mliska@suse.cz>
4020 * ipa-icf.c (sem_function::equals_private): Call new functions
4021 cl_target_option_print_diff and cl_optimization_print_diff.
4022 * optc-save-gen.awk (cl_target_option_print_diff): New function.
4023 (cl_optimization_print_diff): Likewise.
4024 * opth-gen.awk: Likewise.
4026 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
4028 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
4029 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
4030 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
4031 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
4032 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
4033 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
4035 2015-01-13 Andrew Pinski <apinski@cavium.com>
4037 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
4038 instead of src mode.
4040 2015-01-13 Richard Biener <rguenther@suse.de>
4043 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
4046 2015-01-13 Andrew Pinski <apinski@cavium.com>
4048 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
4050 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4052 2015-01-13 Jakub Jelinek <jakub@redhat.com>
4055 * cfgexpand.c (expand_computed_goto): Don't call
4056 convert_memory_address here.
4058 2015-01-13 Richard Biener <rguenther@suse.de>
4060 PR tree-optimization/64406
4061 * tree-loop-distibution.c (pass_loop_distribution::execute):
4062 Reset the SCEV hashtable if we distributed anything.
4064 2015-01-13 Richard Biener <rguenther@suse.de>
4066 PR tree-optimization/64404
4067 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
4068 SLP types for CSEd loads.
4070 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
4072 PR tree-optimization/64436
4073 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
4074 merge of two symbolic numbers for a bitwise OR to ...
4075 (perform_symbolic_merge): This. Also fix computation of the range and
4076 end of the symbolic number corresponding to the result of a bitwise OR.
4078 2015-01-13 Richard Biener <rguenther@suse.de>
4080 PR tree-optimization/64568
4081 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
4082 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
4084 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4086 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
4087 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
4089 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4091 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
4092 target-specific symbol_ref flag.
4093 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
4094 resides in rodata section.
4095 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
4096 (nds32_encode_section_info): New function.
4098 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4100 * config/nds32/nds32.md (call): Use pseudo instruction bal which
4101 clobbers TA_REGNUM if large code model is specified.
4102 (call_register): Likewise.
4103 (call_immediate): Likewise.
4104 (call_value): Likewise.
4105 (call_value_register): Likewise.
4106 (call_value_immediate): Likewise.
4108 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4110 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
4111 (TARGET_CMODEL_MEDIUM): New macro.
4112 (TARGET_CMODEL_LARGE): New macro.
4113 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
4114 code model setting in assembly code.
4116 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4118 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
4119 Remove MASK_GP_DIRECT flag.
4120 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
4121 one of the multilib default options.
4122 * config/nds32/nds32.opt (mgp-direct): Remove.
4123 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
4124 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
4126 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
4128 * config/nds32/nds32.opt (mcmodel): Add new option.
4129 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
4130 to describe code model.
4132 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
4135 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
4137 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
4139 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
4140 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
4141 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
4142 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
4143 __builtin_sh_set_fpscr.
4145 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
4147 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
4148 after a funtion name just to indicate it is a function.
4149 ([-fsanitize-undefined-trap-on-error]): Likewise.
4150 ([-fdbg-cnt=]): Likewise.
4151 ([-mmemcpy]): Likewise.
4152 ([-mflush-func]): Likewise.
4153 ([-msynci]): Likewise.
4155 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
4157 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
4160 2015-01-12 Jakub Jelinek <jakub@redhat.com>
4162 PR tree-optimization/64563
4163 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
4164 instead of != VR_VARYING.
4167 * config/i386/i386.c (ix86_expand_prologue): Add
4168 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
4170 PR tree-optimization/64454
4171 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
4172 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
4173 for signed or [0, op1 - 1] for unsigned modulo.
4174 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4175 even if op1 does not satisfy integer_pow2p.
4178 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
4180 2015-01-12 Jeff Law <law@redhat.com>
4183 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
4184 (trunchiqi2, truncsihi2): Similarly.
4186 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
4187 rather than calling F.
4189 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
4191 * tsan.c (instrument_expr): Use force_gimple_operand.
4192 Use may_be_nonaddressable_p instead of is_gimple_addressable.
4194 2015-01-12 Richard Biener <rguenther@suse.de>
4196 PR tree-optimization/64530
4197 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
4200 2015-01-12 Richard Biener <rguenther@suse.de>
4203 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
4206 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4208 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
4209 Cortex-A17 tuning parameters.
4210 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
4212 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4214 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
4215 * config/arm/arm.c (arm_macro_fusion_p): New function.
4216 (arm_macro_fusion_pair_p): Likewise.
4217 (TARGET_SCHED_MACRO_FUSION_P): Define.
4218 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
4219 (ARM_FUSE_NOTHING): Likewise.
4220 (ARM_FUSE_MOVW_MOVT): Likewise.
4221 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4222 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4223 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4224 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4225 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4226 arm_cortex_a5_tune): Specify fuseable_ops value.
4228 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
4231 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
4232 test for PIE with copy reloc.
4233 * configure: Regenerated.
4235 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4237 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
4239 (arm_tls_descseq_addr): Likewise.
4240 (arm_gen_movmemqi): Likewise.
4241 (arm_expand_epilogue_apcs_frame): Likewise.
4242 (arm_expand_epilogue): Likewise.
4243 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
4246 2015-01-12 Martin Liska <mliska@suse.cz>
4249 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
4250 volatility for correct operands.
4252 2015-01-12 Martin Liska <mliska@suse.cz>
4254 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4255 that a function is not leaf.
4256 (sem_function::compare_polymorphic_p): Likewise.
4258 2015-01-12 Martin Liska <mliska@suse.cz>
4260 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4261 that a function is not leaf.
4262 (sem_function::compare_polymorphic_p): Likewise.
4264 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4266 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
4267 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
4268 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
4269 fold-const.h, tree-check.h.
4271 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
4275 * ipa-inline.c (compute_uninlined_call_time,
4276 compute_inlined_call_time): Use counts for extra precision when
4278 (big_speedup_p): Fix formating.
4279 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
4280 (relative_time_benefit): Remove.
4281 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
4282 merge guessed and read profile paths.
4283 (inline_small_functions): Count only !optimize_size functions into
4284 initial size; be more lax about sanity check when profile is used;
4285 be sure to update inlined function profile when profile is read.
4287 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
4290 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
4291 cost when edge becomes direct.
4292 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
4293 is resolved or when introducing new speculation.
4295 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
4299 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
4300 '||' to fix typo issue.
4302 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
4303 accept and return NULL.
4305 2015-01-12 Martin Liska <mliska@suse.cz>
4307 * cgraph.c (cgraph_edge::remove_callee): Move function to header
4308 file for being inlined.
4309 (cgraph_set_edge_callee): Delete.
4310 (cgraph_edge::redirect_callee): Move function to header file
4312 (cgraph_edge::make_direct): Use new function.
4313 (cgraph_edge::dump_edge_flags): New function created from
4314 static dump_edge_flags function.
4315 (cgraph_node::dump): Use new function.
4316 (cgraph_edge::verify_count_and_frequency): New function created
4317 from verify_edge_count_and_frequency.
4318 (cgraph_edge::verify_corresponds_to_fndecl): New function created
4319 from verify_edge_corresponds_to_fndecl.
4320 (verify_edge_corresponds_to_fndecl): Delete.
4321 (cgraph_node::verify_node): Use new function.
4322 * cgraph.h (cgraph_edge::set_callee): New function.
4323 (cgraph_edge::dump_edge_flags): Likewise.
4324 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
4326 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
4328 * ipa-utils.c (estimate_function_body_sizes): Do not
4329 free node params when called late with early=true.
4331 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
4333 * doc/md.texi (Instruction Patterns): Rewrite text for
4335 (Example): Likewise.
4337 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
4339 * doc/invoke.texi (Option Summary): Break long lines.
4340 [(-fdiagnostics-color)]: Put long literal in @smallexample
4342 [(-fsanitize-recover)]: Likewise.
4343 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
4344 [(-ffast-math)]: Likewise.
4345 [(--param max-inline-insns-recursive)]: Likewise.
4346 [(--param max-inline-recursive-depth)]: Likewise.
4347 [(-mno-text-section-literals)]: Likewise.
4349 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4351 * doc/install.texi: Update for libgomp being renamed from "GNU
4352 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4354 * doc/sourcebuild.texi: Likewise.
4356 2015-01-10 Anthony Green <green@moxielogic.com>
4358 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4359 mul.x availability for moxiebox configuration.
4361 2015-01-09 Anthony Green <green@moxielogic.com>
4363 * config/moxie/moxie.md: Tabify assembly output.
4365 2015-01-09 Anthony Green <green@moxielogic.com>
4367 * config/moxie/moxie.md (CC_REG): Correct register definition.
4369 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
4371 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4372 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
4375 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4377 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4379 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
4380 Jakub Jelinek <jakub@redhat.com>
4383 * lto-streamer.h (lto_stream_offload_p): New declaration.
4384 * lto-streamer.c (lto_stream_offload_p): New variable.
4385 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4386 at the same time as section_name_prefix.
4387 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4388 if lto_stream_offload_p.
4389 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4390 stream TREE_TARGET_OPTION if lto_stream_offload_p.
4391 (write_ts_function_decl_tree_pointers): Don't
4392 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4393 * tree-streamer-in.c (unpack_value_fields): Don't stream
4394 TREE_TARGET_OPTION in if ACCEL_COMPILER.
4395 (lto_input_ts_function_decl_tree_pointers): Don't stream
4396 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
4397 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
4398 instead of section_name_prefix string comparisons.
4400 2015-01-09 Jakub Jelinek <jakub@redhat.com>
4402 PR rtl-optimization/64536
4403 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
4406 2015-01-09 Michael Collison <michael.collison@linaro.org>
4408 PR tree-optimization/64322
4409 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
4410 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
4412 2015-01-09 Tom de Vries <tom@codesourcery.com>
4414 PR rtl-optimization/64539
4415 * regcprop.c (kill_clobbered_values): Factor out of ...
4416 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
4417 instead of note_stores with kill_clobbered_value.
4419 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4421 * ginclude/unwind-arm-common.h: Revert previous commit.
4423 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4425 * config.gcc (arm*-*-freebsd*): New configuration.
4426 * config/arm/freebsd.h: New file.
4427 * config.host: Add extra components for arm*-*-freebsd*.
4428 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
4429 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
4431 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4433 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4435 * config/rs6000/t-rtems: Add e6500 multilibs.
4437 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4439 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
4442 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4444 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
4445 MULTILIB_EXCEPTIONS.
4447 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4449 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
4450 MULTILIB_EXCEPTIONS.
4452 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4454 * config/arm/t-rtems-eabi: Rename to...
4455 * config/arm/t-rtems: ...this.
4456 * config/arm/rtems-eabi.h: Rename to...
4457 * config/arm/rtems.h: ...this.
4458 * config.gcc (arm*-*-rtems*): Reflect changes above.
4460 2015-01-09 Richard Biener <rguenther@suse.de>
4462 PR tree-optimization/64410
4463 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
4465 (execute_update_addresses_taken): Deal with that.
4466 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
4467 loads/stores for complex variables.
4469 2015-01-09 Martin Liska <mliska@suse.cz>
4471 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
4473 (func_checker::compare_memory_operand): New function.
4474 (func_checker::compare_operand): Split case to newly
4476 (func_checker::compare_cst_or_decl): New function.
4477 (func_checker::compare_gimple_call): Identify
4479 (func_checker::compare_gimple_assign): Likewise.
4480 * ipa-icf-gimple.h: New function.
4482 2015-01-09 Martin Liska <mliska@suse.cz>
4485 * sreal.c (sreal::dump): Change unsigned format to signed for
4487 (sreal::to_double): Replace exp2 with scalbln.
4489 2015-01-09 Martin Liska <mliska@suse.cz>
4491 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
4492 * ipa-icf.c (sem_function::equals_private): Add support for target and
4493 (sem_item_optimizer::merge_classes): Remove redundant function
4494 optimization flags comparison.
4495 * tree.h (target_opts_for_fn): New function.
4497 2015-01-09 Tom de Vries <tom@codesourcery.com>
4499 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
4501 2015-01-09 Kito Cheng <kito@0xlab.org>
4503 PR rtl-optimization/64348
4504 * lra-constraints.c (split_reg): Fix caller-save store/restore
4505 instruction generation.
4507 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
4509 PR gcov-profile/61790
4510 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
4511 long long. Fallback to int64_t if host doesn't have long long and
4512 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
4514 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4516 PR tree-optimization/63989
4517 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
4519 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
4520 (get_stridx): If we don't have a record for certain SSA_NAME,
4521 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
4522 constant offset, call get_stridx_plus_constant.
4523 (get_stridx_plus_constant): New function.
4524 (zero_length_string): Don't use get_stridx here.
4528 * dse.c (struct insn_info): Mention frame_read set also
4529 before reload for tail calls on some targets.
4530 (scan_insn): Revert 2014-12-22 change. Set frame_read
4531 also before reload for tail calls if
4532 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
4533 instead of add_non_frame_wild_read for non-const/memset
4534 tail calls after reload.
4536 2015-01-08 Jason Merrill <jason@redhat.com>
4538 * ubsan.c (do_ubsan_in_current_function): New.
4539 (pass_ubsan::gate): Use it.
4540 * ubsan.h: Declare it.
4541 * convert.c (convert_to_integer): Use it.
4543 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4546 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
4547 compare_code when it is unconditionally overwritten afterwards.
4548 Use ix86_reverse_condition instead of reverse_condition. Don't
4549 change code if *reverse_condition* returned UNKNOWN and don't
4550 swap ct/cf and negate diff in that case.
4552 2015-01-08 Mike Stump <mikestump@comcast.net>
4554 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
4555 (pass_tsan_O0::gate): Likewise.
4556 * extend.texi (Function Attributes): Add no_sanitize_thread
4559 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
4561 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
4562 for registering builtins.
4563 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
4564 add -fopenmp to the argv_obstack used when invoking
4567 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
4568 add "-m32" or "-m64" to argv_obstack.
4569 (generate_host_descr_file): Likewise, when invoking host_compiler.
4570 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
4573 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
4575 * config/sh/sh-mem.cc: Use constant as second operand when emitting
4578 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
4581 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
4582 constant load if constant operand fits into I08.
4584 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4587 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
4588 and TREE_THIS_VOLATILE for MEM_REFs.
4589 (build5_stat): Fix up initialization of TREE_READONLY and
4590 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
4592 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
4595 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
4596 of r for the second alternative of the destination operand.
4598 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
4601 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
4603 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
4605 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
4607 ([-fivar-visibility], [-fvisibility]): Likewise.
4609 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
4611 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
4612 the file where @code, @command, etc is more appropriate.
4614 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
4616 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
4617 of -mrecip= documentation.
4619 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4622 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
4623 correct reload handler if -m32 -mpowerpc64 is used.
4625 2015-01-06 Tom de Vries <tom@codesourcery.com>
4627 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
4629 2015-01-08 Christian Bruel <christian.bruel@st.com>
4632 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
4634 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
4636 PR tree-optimization/63259
4637 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
4638 if optab exists for 16bit byteswap.
4640 2015-01-06 Jakub Jelinek <jakub@redhat.com>
4642 * opts.c (common_handle_option): Add support for
4643 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
4644 * doc/invoke.texi: Document -fno-sanitize=all,
4645 -f{,no-}sanitize-recover=all. Document that
4646 -fsanitize=float-cast-overflow is not enabled
4647 by -fsanitize=undefined. Fix up documentation
4648 of -f{,no-}sanitize-recover.
4650 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
4652 * config.gcc: Add Visium support.
4653 * configure.ac: Likewise.
4654 * configure: Regenerate.
4655 * doc/extend.texi (interrupt attribute): Add Visium.
4656 * doc/invoke.texi: Document Visium options.
4657 * doc/install.texi: Document Visium target.
4658 * doc/md.texi: Document Visium constraints.
4659 * common/config/visium: New directory.
4660 * config/visium: Likewise.
4662 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
4664 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
4665 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
4667 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
4669 * combine.c (combine_validate_cost): Do not count the cost of a
4670 split I2 twice. Do not display it twice in the dump, either.
4672 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
4674 Revert parts of r219199.
4675 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
4677 ([-Wtraditional]): Restore markup on <limits.h>.
4679 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4682 * doc/invoke.texi: Document -Wsuggest-override.
4684 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
4686 PR rtl-optimization/64287
4687 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
4688 (process_options): Disable flag_ipa_ra if profiling.
4690 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
4692 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
4694 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
4696 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
4697 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
4698 put under #if TARGET_LOOPS guard.
4700 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
4702 * config/i386/i386.c (output_387_binary_op): Use std::swap.
4704 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
4706 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
4707 * rtl.h (refers_to_regno_p): Add overload.
4709 * bt-load.c: Likewise.
4710 * combine.c: Likewise.
4711 * df-scan.c: Likewise.
4712 * sched-deps.c: Likewise.
4713 * config/s390/s390.c: Likewise.
4714 * config/m32r/m32r.c: Likewise.
4715 * config/rs6000/spe.md: Likewise.
4716 * config/rs6000/rs6000.c: Likewise.
4717 * config/pa/pa.c: Likewise.
4718 * config/stormy16/stormy16.c: Likewise.
4719 * config/cris/cris.c: Likewise.
4720 * config/arc/arc.md: Likewise.
4721 * config/arc/arc.c: Likewise.
4722 * config/sh/sh.md: Likewise.
4723 * config/sh/sh.c: Likewise.
4724 * config/frv/frv.c: Likewise.
4726 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4729 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
4730 call as cleanup of the whole body.
4731 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
4732 * tsan.c (replace_func_exit): New function.
4733 (instrument_func_exit): Moved earlier.
4734 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
4735 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
4737 (tsan_pass): Don't call instrument_func_exit.
4738 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
4739 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
4743 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
4744 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
4745 it to libubsan handler instead of EXPR. Fold comparisons earlier,
4746 if the result is integer_zerop, return NULL_TREE.
4747 * convert.c (convert_to_integer): Pass expr as ARG.
4749 PR tree-optimization/64465
4750 * tree-inline.c (redirect_all_calls): During inlining
4751 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
4752 changed the stmt to a non-throwing call.
4754 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
4756 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
4757 etc markup throughout the file.
4759 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4761 Enable experimental TSAN support for Ada.
4762 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
4764 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4766 PR tree-optimization/64494
4767 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
4768 clear SSA_NAME_ANTI_RANGE_P flag.
4770 2015-01-05 Marek Polacek <polacek@redhat.com>
4772 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
4774 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4776 Update copyright years.
4778 * gcc.c (process_command): Update copyright notice dates.
4779 * gcov-dump.c: Ditto.
4781 * doc/cpp.texi: Bump @copying's copyright year.
4782 * doc/cppinternals.texi: Ditto.
4783 * doc/gcc.texi: Ditto.
4784 * doc/gccint.texi: Ditto.
4785 * doc/gcov.texi: Ditto.
4786 * doc/install.texi: Ditto.
4787 * doc/invoke.texi: Ditto.
4789 * auto-profile.c, auto-profile.h: Fix up Copyright line.
4791 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
4793 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
4795 ([-fvtable-verify], [-fvtv-debug]): Likewise.
4796 ([-Wabi]): Likewise.
4797 ([-fmessage-length]): Likewise.
4798 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
4799 ([-Wno-discarded-qualifiers]): Likewise.
4800 ([-Wnodiscarded-array-qualifiers]): Likewise.
4801 ([-Wno-virtual-move-assign]): Likewise.
4802 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
4803 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
4804 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
4805 ([-fsanitize-undefined-trap-on-error]): Likewise.
4806 ([-floop-interchange]): Likewise.
4807 ([-ftree-coalesce-inlined-vars]): Likewise.
4808 ([-fvect-cost-model]): Likewise.
4809 ([-flto]): Likewise.
4810 ([--param]): Likewise.
4811 (Spec Files): Likewise.
4812 ([-mstrict-align]): Likewise.
4813 ([-mfix-cortex-a53-835769]): Likewise.
4814 ([-march], [-mtune]): Likewise.
4815 ([-mpic-register]): Likewise.
4816 ([-munaligned-access]): Likewise.
4817 ([-msp8]): Likewise.
4818 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
4819 (AVR Built-in Macros): Likewise.
4820 ([-mpreferred-stack-boundary]): Likewise.
4821 ([-mtune-crtl]): Likewise.
4822 ([-mashf]): Likewise.
4823 ([-mmcu=]): Likewise.
4824 ([-minrt]): Likewise.
4825 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
4826 ([-mupper-regs]): Likewise.
4827 ([-matomic-model]): Likewise.
4828 ([-mdiv]): Likewise.
4829 ([-mzdcbranch]): Likewise.
4830 ([-mdisable-callt]): Likewise.
4831 ([-msoft-float]): Likewise.
4832 ([-m8byte-align]): Likewise.
4833 ([-fstack-reuse]): Likewise.
4835 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4837 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
4838 Fix markup, light copy-editing.
4839 ([-fauto-profile]): Rewrite to fix formatting and content
4842 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4844 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
4845 Copy-edit description.
4846 ([-fisolate-erroneous-paths-attribute]): Likewise.
4847 * common.opt (fisolate-erroneous-paths-dereference):
4848 Copy-edit description.
4849 (fisolate-erroneous-paths-attribute): Likewise.
4851 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4853 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
4856 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4858 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
4859 ([-fvtv-debug]): Likewise.
4860 ([-Wc++-compat]): Likewise.
4861 ([-Wc++11-compat]): Likewise.
4862 ([-Wc++14-compat]): Likewise.
4863 ([-Wno-sized-deallocation]): Likewise.
4864 ([-femit-class-debug-always]): Likewise.
4865 ([-femit-struct-debug-detailed]): Likewise.
4866 ([-fno-keep-inline-dllexport]): Likewise.
4867 ([-fira-algorithm]): Likewise.
4868 ([-fira-region]): Likewise.
4869 ([-flra-remat]): Likewise.
4870 ([-fipa-ra]): Likewise.
4871 ([-fhoist-adjacent-loads]): Likewise.
4872 ([-fisolate-erroneous-paths-dereference]): Likewise.
4873 ([-fisolate-erroneous-paths-attribute]): Likewise.
4874 ([-ftree-switch-conversion]): Likewise.
4875 ([-ftree-tail-merge]): Likewise.
4876 ([-ftree-loop-if-convert]): Likewise.
4877 ([-ftree-loop-if-convert-stores]): Likewise.
4878 ([-ftree-loop-distribution]): Likewise.
4879 ([-ftree-loop-distribute-patterns]): Likewise.
4880 ([-flto-compression-level]): Likewise.
4881 ([-flto-report]): Likewise.
4882 ([-flto-report-wpa]): Likewise.
4883 ([-fuse-linker-plugin]): Likewise.
4884 ([-mfix-cortex-a53-835769]): Likewise.
4885 ([-mno-fix-cortex-a53-835769]): Likewise.
4886 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
4887 explicit listing; add a note to the discussion indicating they
4888 exist. Reorder table to group similar options. Add missing
4889 @opindex entries. Add @need commands throughout the table to
4890 allow it to be split across multiple pages.
4891 ([-m8bit-idiv]): Fix @opindex.
4892 ([-mavx256-split-unaligned-load]): Likewise.
4893 ([-mavx256-split-unaligned-store]): Likewise.
4894 ([-mstack-protector-guard]): Likewise.
4895 ([-mcpu=]): Likewise.
4896 ([-mcpu]): Likewise.
4897 ([-mpointer-size=]): Likewise.
4899 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
4901 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
4902 instead of `m' constraint. Likewise for unnamed movb comparison
4903 patterns using reg_before_reload_operand predicate.
4904 * config/pa/predicates.md (reg_before_reload_operand): Tighten
4905 predicate to reject register index and LO_SUM DLT memory forms
4908 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
4910 * doc/invoke.texi (Option Summary): Fix spelling of
4911 -fdevirtualize-at-ltrans.
4912 ([-fdevirtualize]): Fix markup.
4913 ([-fdevirtualize-speculatively]): Fix typo.
4914 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
4916 * common.opt (fdevirtualize-at-ltrans): Likewise.
4917 * ipa-devirt.c: Fix typos in comments throughout the file.
4918 (ipa_devirt): Fix typos in format strings for dump output.
4920 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
4922 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
4923 discussion of defaults, light copy-editing.
4925 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4927 * tsan.c (instrument_expr): corrected previous checkin.
4929 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4931 Instrument bit field and unaligned accesses for TSAN.
4932 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
4933 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
4934 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
4935 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
4936 unaligned memory regions.
4938 2015-01-01 Anthony Green <green@moxielogic.com>
4940 * config/moxie/predicates.md (moxie_general_movsrc_operand):
4941 Restrict move source register offsets to 16 bits.
4943 Copyright (C) 2015 Free Software Foundation, Inc.
4945 Copying and distribution of this file, with or without modification,
4946 are permitted in any medium without royalty provided the copyright
4947 notice and this notice are preserved.