1 2015-02-13 Maritn Jambor <mjambor@suse.cz>
4 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
7 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
9 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
10 GOMP_DEVICE_NVIDIA_PTX.
12 2015-02-13 Jakub Jelinek <jakub@redhat.com>
15 * stmt.c (emit_case_nodes): Use void_type_node instead of
16 NULL_TREE as LABEL_DECL type.
18 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
20 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
22 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
23 symbolic references to data to be forced to constant memory on the
26 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
28 PR tree-optimization/65002
29 * tree-cfg.c (pass_data_fixup_cfg): Don't update
31 * tree-sra.c (some_callers_have_no_vuse_p): New.
32 (ipa_early_sra): Reject functions whose callers
33 assume function is read only.
35 2015-02-13 Richard Biener <rguenther@suse.de>
38 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
41 2015-02-13 Bin Cheng <bin.cheng@arm.com>
43 PR tree-optimization/64705
44 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
45 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
46 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
47 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
48 expand_simple_operations.
50 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
51 Richard Henderson <rth@redhat.com>
54 * cgraphunit.c (cgraph_node::finalize_function): Set definition
55 before notice_global_symbol.
56 (varpool_node::finalize_decl): Likewise.
57 * varasm.c (default_binds_local_p_2): Rename from
58 default_binds_local_p_1, add weak_dominate argument. Use direct
59 returns instead of assigning to local variable. Unify varpool and
60 cgraph paths via symtab_node. Reject undef weak variables before
61 testing visibility. Reorder tests for simplicity.
62 (default_binds_local_p): Use default_binds_local_p_2.
63 (default_binds_local_p_1): Likewise.
64 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
66 (default_elf_asm_output_external): Emit visibility when specified.
68 2015-02-13 Alan Modra <amodra@gmail.com>
70 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
71 code setting up r11 for out-of-line fp restore.
73 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
75 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
76 (muser-mode): Likewise.
78 2015-02-13 Alan Modra <amodra@gmail.com>
80 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
81 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
83 2015-02-12 David Howells <dhowells@redhat.com>
85 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
87 * tree-ssa-uninit.c (dump_predicates): Likewise.
88 * opts.c (print_filtered_help): Likewise.
90 2015-02-12 Jakub Jelinek <jakub@redhat.com>
92 * dwarf2out.c (output_die): Use "%s", name instead of name to
93 avoid -Wformat-security warning.
95 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
96 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
97 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
98 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
100 2015-02-12 Jason Merrill <jason@redhat.com>
102 * common.opt (-flifetime-dse): New.
104 2015-02-12 Jakub Jelinek <jakub@redhat.com>
107 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
109 PR tree-optimization/65014
110 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
111 use original second operand of arg0 or arg1 instead of
112 that adjusted by STRIP_NOPS.
114 2015-02-11 Jeff Law <law@redhat.com>
117 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
118 that needs to be queued, just queue it for a single cycle.
120 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
122 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
123 bodies of thunks; comment on why.
124 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
127 2015-02-11 Richard Henderson <rth@redhat.com>
130 * tree-eh.c (mark_reachable_handlers): Mark source and destination
131 regions of __builtin_eh_copy_values.
133 2015-02-11 Jakub Jelinek <jakub@redhat.com>
136 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
137 ultimate alias is MEM with SYMBOL_REF satisfying
138 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
139 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
141 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
143 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
145 (main): Initialize progname, and call diagnostic_initialize.
147 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
148 instead of __OPENMP_TARGET__.
150 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
151 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
154 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
156 * doc/sourcebuild.texi (pie_enabled): Document.
158 2015-02-11 Martin Liska <mliska@suse.cz>
161 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
162 a return value for call to a function that is noreturn.
164 2015-02-11 Richard Biener <rguenther@suse.de>
167 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
170 2015-02-11 Andrew Pinski <apinski@cavium.com>
173 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
174 Change the first argument type to size_type_node and add another
176 (aarch64_simd_expand_builtin): Handle the new argument to
177 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
178 print an out when the first two arguments are not
179 nonzero integer constants.
180 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
181 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
183 2015-02-11 Jakub Jelinek <jakub@redhat.com>
186 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
187 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
188 (ix86_set_current_function): Rewritten.
189 (ix86_add_new_builtins): Temporarily clear current_target_pragma
190 when creating builtin fndecls.
192 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
195 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
197 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
198 have no comdat group.
199 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
200 (lto_output_varpool_node): Always output alias info.
201 (output_refs): Output refs of boundary aliases, too.
202 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
203 (output_symtab): Output call eges in thunks in boundary.
204 (get_alias_symbol): Remove.
205 (input_node, input_varpool_node): Do not special case weakrefs.
206 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
207 alias and thunks targets in the boundary; do not take removed symbols
208 from their comdat groups.
209 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
210 (cgraph_node::global_info): Remove.
211 (cgraph_node::rtl_info): Look through aliases and thunks.
212 * cgrpah.h (global_info): Remove.
213 (non_local_p): Remove.
215 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
216 Sandra Loosemore <sandra@codesourcery.com>
218 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
219 to inline asm. List dialects in proper order.
221 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
222 Sandra Loosemore <sandra@codesourcery.com>
224 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
226 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
228 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
229 modified) reference to Solaris.
231 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
233 * doc/extend.texi (Extended Asm): Fix typos.
235 2015-02-10 Jakub Jelinek <jakub@redhat.com>
238 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
240 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
243 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
244 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
245 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
246 * config/sh/constraints.md (Ara, Add): New constraints.
247 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
249 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
250 atomic_mem_operand_0. Don't use force_reg on the memory address.
251 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
252 Sra constraint. Convert to insn_and_split. Add workaround for
254 (atomic_compare_and_swap<mode>_hard): Copy to
255 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
256 Use atomic_mem_operand_0 predicate.
257 (atomic_compare_and_swap<mode>_soft_gusa,
258 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
260 (atomic_compare_and_swap<mode>_soft_tcb,
261 atomic_compare_and_swap<mode>_soft_imask,
262 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
263 atomic_mem_operand_0 predicate and SraSdd constraints.
264 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
266 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
267 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
268 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
269 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
270 force_reg on the memory address.
271 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
272 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
273 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
274 atomic_mem_operand_1 predicate and Sra constraint.
275 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
276 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
277 Use atomic_mem_operand_1 predicate.
278 (atomic_<fetchop_name><mode>_hard): Copy to
279 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
280 Use atomic_mem_operand_1 predicate.
281 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
282 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
283 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
284 insn_and_split. Use atomic_mem_operand_1 predicate.
285 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
286 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
287 Use atomic_mem_operand_1 predicate.
288 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
289 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
290 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
291 in generated insn with original mem operand before emitting the insn.
292 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
293 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
294 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
295 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
296 Use atomic_mem_operand_1 predicate and AraAdd constraints.
297 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
298 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
299 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
300 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
301 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
302 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
303 atomic_not_fetch<mode>_soft_tcb,
304 atomic_<fetchop_name>_fetch<mode>_soft_imask,
305 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
306 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
307 Use atomic_mem_operand_1 predicate and SraSdd constraints.
309 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
311 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
312 and 3 earlyclobber operands.
314 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
316 * common.opt (fstack-reuse): Mark as optimization.
318 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
321 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
323 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
325 PR tree-optimization/64326
326 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
328 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
330 PR gcov-profile/61889
331 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
333 2015-02-10 Richard Biener <rguenther@suse.de>
335 PR tree-optimization/64995
336 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
337 value we use is final.
338 (visit_reference_op_store): Always valueize op.
339 (visit_use): Properly valueize vuses.
341 2015-02-10 Richard Biener <rguenther@suse.de>
343 PR tree-optimization/64909
344 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
345 pass a scalar-stmt count estimate to the cost model.
346 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
348 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
350 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
351 enabled by default together with var-tracking.
353 2015-02-10 Nick Clifton <nickc@redhat.com>
355 * config/rl78/rl78.c: Remove DIV attribute code accidentally
356 included in previous rl78 commit.
358 2015-02-10 Richard Biener <rguenther@suse.de>
360 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
361 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
364 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
366 PR gcov-profile/61889
367 * config.in: regenerate.
368 * configure.in: Likewise.
369 * configure.ac: Check for ftw.h.
370 * gcov-tool.c: Check for ftw.h before using nftw.
372 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
375 * ipa-visibility.c (update_visibility_by_resolution_info): Only
376 assert when not in lto mode.
378 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
380 * ira-color.c (setup_left_conflict_sizes_p): Simplify
381 initialization/assignment of conflict_size.
383 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
386 * ipa-cp.c (gather_caller_stats): Skip thunks.
387 (propagate_constants_topo): Skip aliases.
389 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
392 * config/sh/sh.c (sh_option_override): Don't change
393 -freorder-blocks-and-partition to -freorder-blocks even when
394 unwinding is enabled.
395 (sh_can_follow_jump): Return false if the followee jump is
396 a crossing jump when -freorder-blocks-and-partition is specified.
397 * config/sh/sh.md (*jump_compact_crossing): New insn.
399 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
400 Kaz Kojima <kkojima@gcc.gnu.org>
403 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
404 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
405 (sh_can_redirect_branch): Rename to ...
406 (sh_can_follow_jump): ... this. Constify argument types.
407 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
408 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
409 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
410 * doc/tm.texi: Regenerate.
412 2015-02-09 Jakub Jelinek <jakub@redhat.com>
415 * builtins.c (expand_builtin): Call targetm.expand_builtin
416 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
418 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
421 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
423 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
426 * ipa-icf.c (set_local): New function.
427 (sem_function::merge): Use it.
429 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
431 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
432 (add_type_duplicate): Fix comparison of BINFOs.
434 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
436 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
437 on getting VOID pointer.
439 2015-02-09 Jakub Jelinek <jakub@redhat.com>
442 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
445 2015-02-09 Richard Biener <rguenther@suse.de>
447 * genmatch.c (replace_id): Copy expr_type.
449 2015-02-09 Richard Biener <rguenther@suse.de>
451 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
452 (streamer_write_tree_bitfields): Declare.
453 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
454 properly unpack padding.
455 (unpack_value_fields): Inline ...
456 (streamer_read_tree_bitfields): ... here.
457 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
458 and properly add padding bits.
459 (streamer_pack_tree_bitfields): Fold into ...
460 (streamer_write_tree_bitfields): ... this new function,
461 exposing the bitpack object.
462 * lto-streamer-out.c (lto_write_tree_1): Call
463 streamer_write_tree_bitfields.
465 2015-02-09 Richard Biener <rguenther@suse.de>
467 PR tree-optimization/54000
468 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
469 (struct ivopts_data): Add loop_loc member.
470 (tree_ssa_iv_optimize_loop): Dump loop location.
471 (create_new_ivs): Likewise, also dump number of IVs generated.
473 2015-02-09 Martin Liska <mliska@suse.cz>
475 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
476 just if not yet registered.
477 (ipa_icf_generate_summary): Register callgraph hooks.
479 2015-02-08 Andrew Pinski <apinski@cavium.com>
481 * config/aarch64/aarch64.c (gty_dummy): Delete.
483 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
486 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
487 (cgraph_node::local_p): Remove thunk related FIXME.
489 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
492 * i386.c (ix86_function_regparm): Look through aliases to see if callee
493 is local and optimized.
494 (ix86_function_sseregparm): Likewise; also use target's SSE math
495 settings; error out instead of silently generating wrong code
497 (init_cumulative_args): Look through aliases.
499 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
502 * ipa-split.c (execute_split_functions): Split if function has aliases.
504 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
507 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
508 aliases before trying to expand it.
509 (cgraph_node::expand_thunk): Fix formating.
511 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
513 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
514 (Using Assembly Language with C): Expand introduction.
515 (Basic Asm): Copy-edit. Add more information about uses of
517 (Extended Asm): Copy-edit. Document new escape syntax and
519 (Global Reg Vars): Copy-edit.
520 (Local Reg Vars): Likewise.
522 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
526 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
527 (DBX_CONTIN_CHAR): Define.
529 2015-02-06 Sebastian Pop <s.pop@samsung.com>
530 Brian Rzycki <b.rzycki@samsung.com>
532 PR tree-optimization/64878
533 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
534 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
535 Stop recursion at loop phi nodes after having visited a loop phi node.
537 2015-02-06 Jakub Jelinek <jakub@redhat.com>
539 * toplev.c (process_options): Change flag_ipa_ra before creating
540 optimization_{default,current}_node.
543 * cgraphunit.c (cgraph_node::expand_thunk): If
544 restype is not is_gimple_reg_type nor the thunk_fndecl
545 returns aggregate_value_p, set restmp to a temporary variable
548 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
550 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
552 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
555 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
556 add a general secondary reload handler for SDmode, unless we have
557 both read/write support for SDmode.
559 2015-02-06 Jakub Jelinek <jakub@redhat.com>
562 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
563 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
564 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
565 1 before, push it to abstract_vec.
566 (dwarf2out_abstract_function): Adjust caller. Don't call
567 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
568 DECL_ABSTRACT_P flags for all abstract_vec elts.
570 2015-02-06 Renlin Li <renlin.li@arm.com>
572 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
574 * tree-ssa.c (execute_update_addresses_taken): Likewise.
576 2015-02-06 Jeff Law <law@redhat.com>
579 * config/h8300/h8300.c (push): New argument "in_prologue".
580 Pass "in_prologue" along to "F".
581 (h8300_push_pop): Corresponding changes.
582 (h8300_expand_prologue): Likewise.
583 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
585 2015-02-06 Jakub Jelinek <jakub@redhat.com>
587 PR rtl-optimization/64957
589 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
590 IOR rather than for AND.
592 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
595 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
596 of shift-add and (add + shift) operations. Rename local variable.
598 2015-02-05 Jeff Law <law@redhat.com>
601 * config/h8300/constraints.md (U): Correctly dectect
602 "eightbit_data" memory addresses.
603 * config/h8300/h8300.c (eightbit_constant_address_p): Also
604 handle (const (plus (symbol_ref (x)))) where x is declared
605 as an 8-bit data memory address.
606 * config/h8300/h8300.md (call, call_value): Correctly detect
610 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
611 24 to 28 bits for the H8/300.
613 2015-02-06 Alan Modra <amodra@gmail.com>
616 * config/rs6000/rs6000.c (chain_already_loaded): New function.
617 (rs6000_call_aix): Use it.
619 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
621 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
624 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
626 * config/h8300/constraints.md ("U" constraint): Use strict
627 variant of REG_OK_FOR_BASE_P after reload has started.
629 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
631 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
632 define to zero if !TARGET_NEON.
633 (TARGET_CPU_CPP_BUILTINS): Added second condition before defining
636 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
637 Trevor Saunders <tsaunders@mozilla.com>
640 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
642 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
645 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
646 when removing varpool nodes.
648 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
651 * varpool.c (varpool_node::remove): Fix order of variables.
653 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
656 * ipa-inline.c (inline_small_functions): Fix ordering issue between
657 speculation resolution and key updates.
659 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
661 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
662 about not letting any speculative edges unupdated.
664 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
667 * gcov-io.c (gcov_var): Export.
669 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
672 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
673 edges that become speculative.
675 2015-02-04 Jakub Jelinek <jakub@redhat.com>
677 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
678 or DW_LANG_Fortran08.
679 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
681 (gen_compile_unit_die): Handle "GNU Fortran2003" and
682 "GNU Fortran2008" language strings.
683 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
684 * langhooks.h (lang_GNU_Fortran): New prototype.
685 * langhooks.c (lang_GNU_Fortran): New function.
686 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
689 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
691 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
692 (RTX_OK_FOR_OLO10_P): Likewise.
694 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
696 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
698 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
701 * gimple.c: Include gimple-ssa.h.
702 (maybe_remove_unused_call_args): New function.
703 * gimple.h (maybe_remove_unused_call_args): Declare.
704 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
705 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
706 * gimple-fold.c (gimple_fold_call): Likewise.
708 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
710 PR rtl-optimization/64905
711 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
712 pointer alignment if it isn't needed.
714 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
716 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
717 cortex-a72.cortex-a53.
718 * config/aarch64/aarch64-tune.md: Regenerate.
719 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
721 2015-02-04 Nick Clifton <nickc@redhat.com>
723 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
726 2015-02-04 Jakub Jelinek <jakub@redhat.com>
728 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
729 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
730 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
732 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
733 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
734 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
735 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
736 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
737 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
738 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
739 * tree-core.h (enum built_in_function): In between
740 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
741 for builtins that use DEF_BUILTIN_CHKP macro.
743 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
746 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
747 operands for tcc_comparison exprs. Fix typos.
750 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
751 of two XORs that have an intervening AND or IOR.
754 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
755 simplification of XOR of AND to not allocate new rtx before
756 committing to a simplification.
758 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
760 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
761 manual swaps in all peepholes.
763 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
765 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
766 of manual swapping implementation.
767 (aarch64_expand_vec_perm_const_1): Likewise.
769 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
771 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
772 (generic_addrcost_table): Remove NAMED_PARAM.
773 (cortexa57_addrcost_table): Likewise.
774 (xgene1_addrcost_table): Likewise.
775 (generic_regmove_table): Likewise.
776 (cortexa53_regmove_table): Likewise.
777 (xgene1_regmove_table): Likewise.
778 (generic_vector_table): Likewise.
779 (cortexa57_vector_table): Likewise.
780 (xgene1_vector_table): Likewise.
781 (generic_tunings): Likewise.
782 (cortexa53_tunings): Likewise.
783 (cortexa57_tunings): Likewise.
784 (xgene1_tunings): Likewise.
786 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
788 * config/arm/arm-cores.def: Add cortex-a72 and
789 cortex-a72.cortex-a53.
790 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
791 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
792 * config/arm/arm-tune.md: Regenerate.
793 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
794 "cortex-a72.cortex-a53".
795 * doc/invoke.texi (ARM Options/-mtune): Likewise.
797 2015-02-04 Nick Clifton <nickc@redhat.com>
800 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
802 (nonimmediate_di_operand): Likewise.
804 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
805 prefixes of known F5 using MSP430 MCUs.
807 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
809 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
810 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
811 instead of __builtin_sqrt.
813 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
815 * varasm.c (do_assemble_alias): Follow transparent alias
817 (default_assemble_visibility): Follow transparent alias
820 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
823 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
824 to compute size of referenced value in the constant case.
826 2015-02-03 Jakub Jelinek <jakub@redhat.com>
828 PR rtl-optimization/64756
829 * cse.c (invalidate_dest): New function.
830 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
831 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
832 invalidate and do not record it.
834 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
837 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
838 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
839 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
840 atomic_nand<mode>_soft_tcb): New insns.
841 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
842 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
843 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
844 Split into atomic_not_fetchsi_hard if operands[0] is unused.
845 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
846 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
847 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
848 atomic_not<mode>_hard if operands[0] is unused.
849 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
850 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
851 if operands[0] is unused.
852 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
853 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
854 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
855 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
857 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
858 into atomic_not<mode>_soft_tcb if operands[0] is unused.
859 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
860 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
861 if operands[0] is unused.
862 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
863 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
864 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
865 atomic_nand_fetchsi_hard if operands[0] is unused.
866 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
867 atomic_nand<mode>_hard if operands[0] is unused.
868 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
869 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
870 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
871 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
872 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
873 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
874 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
875 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
876 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
877 atomic_not<mode>_hard if operands[0] is unused.
878 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
879 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
881 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
882 into atomic_not<mode>_soft_tcb if operands[0] is unused.
883 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
884 atomic_nand<mode>_hard if operands[0] is unused.
885 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
886 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
888 2015-02-03 David Malcolm <dmalcolm@redhat.com>
891 * Makefile.in (GCC_OBJS): Add gcc-main.o.
892 * gcc-main.c: New file, containing "main" taken from gcc.c.
893 * gcc.c (do_self_spec): Free decoded_options.
894 (class driver): Move declaration to gcc.h.
895 (main): Move declaration and implementation to new file
897 (driver_get_configure_time_options): New function.
898 * gcc.h (class driver): Move this declaration here, from
900 (driver_get_configure_time_options): New declaration.
902 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
904 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
905 cross-module inlining.
906 * cgraph.h (cgraph_node): Add flag merged.
907 * ipa-icf.c (sem_function::merge): Maintain it.
909 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
911 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
914 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
917 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
918 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
919 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
920 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
922 2015-02-03 Jakub Jelinek <jakub@redhat.com>
925 * combine.c (reg_n_sets_max): New variable.
926 (can_change_dest_mode, reg_nonzero_bits_for_combine,
927 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
928 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
929 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
930 (rest_of_handle_combine): Initialize reg_n_sets_max.
932 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
934 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
935 if some always_inline was inlined, apply changes before inlining
938 2015-02-02 David Malcolm <dmalcolm@redhat.com>
941 * config/arm/arm.c (arm_option_override): Set
942 arm_selected_arch/cpu/tune to NULL on entry.
944 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
945 Andrew Pinski <pinskia@gcc.gnu.org>
946 Jakub Jelinek <jakub@gcc.gnu.org>
949 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
950 integer typing for small model. Use IN_RANGE.
952 2015-02-02 Richard Biener <rguenther@suse.de>
954 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
955 * tree-vrp.c (vrp_valueize_1): Likewise.
957 2015-02-02 Alan Modra <amodra@gmail.com>
959 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
960 than mem for toc_restore.
961 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
962 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
963 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
965 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
968 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
969 explicit default options.
971 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
974 * ipa-utils.c (ipa_merge_profiles): Add release argument.
975 * ipa-icf.c (sem_function::merge): Do not release body when merging.
976 * ipa-utils.h (ipa_merge_profiles): Update prototype.
978 2015-02-01 Jakub Jelinek <jakub@redhat.com>
981 * cfgexpand.c (deep_ter_debug_map): New variable.
982 (avoid_deep_ter_for_debug): New function.
983 (expand_debug_expr): If TERed SSA_NAME is in
984 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
985 instead of trying to expand SSA_NAME's def stmt.
986 (expand_debug_locations): When expanding debug bind
987 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
988 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
990 (pass_expand::execute): Call avoid_deep_ter_for_debug on
991 all debug bind stmts. Delete deep_ter_debug_map after
992 expand_debug_location if non-NULL and clear it.
994 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
997 * config/sh/sync.md (atomic_fetch_notsi_hard,
998 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
999 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
1000 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
1001 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
1002 atomic_not_fetch<mode>_soft_imask): New insns.
1004 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1006 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
1007 (rank_for_schedule_debug): Split from ...
1008 (rank_for_schedule): ... this.
1009 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
1010 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
1012 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1014 * doc/md.texi (Machine Constraints): Alphabetize table by target.
1015 * doc/extend.texi (x86 Variable Attributes): Move section to
1016 correct alphabetization after renaming.
1017 (x86 Type Attributes): Likewise.
1018 (Target Builtins): Re-alphabetize menu.
1019 (x86 Built-in Functions): Move section to correct alphabetization
1021 (x86 transactional memory intrinsics): Likewise.
1022 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
1023 and x86 Windows Options in table and menu.
1024 (x86 Options): Move section to correct alphabetization after
1026 (x86 Windows Options): Likewise.
1028 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
1030 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
1031 preferred names of the architecture and its 32- and 64-bit
1033 * doc/invoke.texi: Likewise.
1034 * doc/md.texi: Likewise.
1036 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
1039 * config/i386/predicates.md (address_no_seg_operand): Reject
1040 non-CONST_INT_P operands in invalid mode.
1042 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
1044 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
1045 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
1046 * config/i386/predicates.md (address_no_seg_operand): Call
1047 address_operand with VOIDmode.
1048 (vsib_address_operand): Ditto.
1049 (address_mpx_no_base_operand): Ditto.
1050 (address_mpx_no_index_operand): Ditto.
1052 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1055 * lra-constraints.c (original_subreg_reg_mode): New.
1056 (simplify_operand_subreg): Try to simplify subreg of const. Use
1057 original_subreg_reg_mode for it.
1058 (swap_operands): Update original_subreg_reg_mode.
1059 (curr_insn_transform): Set up original_subreg_reg_mode.
1061 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
1064 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
1066 (process_alt_operands): Use it.
1067 (curr_insn_transform): Check the optional reload pseudo class is
1070 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1072 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
1073 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
1075 * toplev.h (init_asm_output): Update comment on use of
1076 UNKNOWN_LOCATION with fatal_error.
1077 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
1078 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
1079 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
1080 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
1081 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
1082 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
1083 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
1084 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
1085 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
1086 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
1087 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
1088 fatal_error changed to pass input_location as first argument.
1090 2015-01-30 Martin Liska <mliska@suse.cz>
1092 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
1093 in #pragma GCC diagnostic guards.
1095 2015-01-30 Richard Biener <rguenther@suse.de>
1097 PR tree-optimization/64829
1098 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
1099 not add a widening conversion pattern but hand off extra
1100 widenings to callers.
1101 (vect_recog_widen_mult_pattern): Handle extra widening produced
1102 by vect_handle_widen_op_by_const.
1103 (vect_recog_widen_shift_pattern): Likewise.
1104 (vect_pattern_recog_1): Remove excess vertical space in dumping.
1105 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1106 (vect_init_vector_1): Likewise.
1107 (vect_get_vec_def_for_operand): Likewise.
1108 (vect_finish_stmt_generation): Likewise.
1109 (vectorizable_load): Likewise.
1110 (vect_analyze_stmt): Likewise.
1111 (vect_is_simple_use): Likewise.
1113 2015-01-29 Jeff Law <law@redhat.com>
1115 * combine.c (try_combine): Fix typo in comment.
1117 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
1120 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
1121 (rs6000_stack_info): Add assert.
1122 (rs6000_output_savres_externs): New function, split off from...
1123 (rs6000_output_function_prologue): ... here. Do not call it for
1126 2015-01-29 Jeff Law <law@redhat.com>
1129 * combine.c (try_combine): If I0 is a memory load and I3 a store
1130 to a related address, increase the "goodness" of doing a 4-insn
1131 combination with I0-I3.
1132 (make_field_assignment): Handle SUBREGs in the ior+and case.
1134 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
1136 PR tree-optimization/64746
1137 * tree-if-conv.c (mask_exists): New function.
1138 (predicate_mem_writes): Save created mask with given size for further
1140 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
1141 (ifcvt_repair_bool_pattern): Collect all statements that are root
1142 of bool pattern and use iterative algorithm to remove multiple uses
1143 of predicates, display number of required iterations.
1145 2015-01-29 Richard Biener <rguenther@suse.de>
1147 PR tree-optimization/64853
1148 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
1149 stmt will get simulated again.
1150 * tree-ssa-ccp.c (valueize_op_1): Likewise.
1152 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1154 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
1155 return_in_pc. Remove redundant assignments.
1156 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1157 (arm_expand_epilogue): Don't compare boolean with true in if condition.
1159 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
1161 * config/i386/i386.c (ix86_mode_after): Make static.
1163 2015-01-29 Richard Biener <rguenther@suse.de>
1165 PR tree-optimization/64844
1166 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1167 dump cost model analysis.
1168 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1169 Do not register adjusted load/store costs here.
1171 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1172 Uros Bizjak <ubizjak@gmail.com>
1174 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1175 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1176 using x86_use_pseudo_pic_reg.
1177 * config/i386/i386.c (ix86_conditional_register_usage): Remove
1178 support for fixed PIC register.
1179 (ix86_use_pseudo_pic_reg): Not static any more.
1181 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1184 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1185 to avoid error in cgraph node verification.
1187 2015-01-29 Marek Polacek <polacek@redhat.com>
1189 * doc/standards.texi: Reflect that the default for C is gnu11.
1191 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
1194 * reorg.c (switch_text_sections_between_p): New function.
1195 (relax_delay_slots): Call it when testing if the jump insn
1196 is removable. Use targetm.can_follow_jump when testing if
1197 the conditional branch can follow an unconditional jump.
1199 2015-01-27 Caroline Tice <cmtice@google.com>
1201 Committing VTV Cywin/Ming patch for Patrick Wollgast
1202 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
1203 if -fvtable-verify=preinit/std is used.
1204 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
1205 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
1206 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
1207 if -fvtable-verify=preinit/std is used.
1208 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
1209 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
1210 if -fvtable-verify=preinit/std is used.
1211 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
1212 * config/i386/mingw32.h (LIB_SPEC): Likewise.
1213 * varasm.c (assemble_variable): Add code to properly set the comdat
1214 section and name for the .vtable_map_vars section in case the
1215 target is PE or COFF.
1217 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
1220 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
1221 make sane BB profile.
1222 (cgraph_node::expand_thunk): Make sane BB profile.
1223 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
1224 * cgraph.h (init_lowered_empty_function): Update prototype.
1225 * config/i386/i386.c (make_resolver_func): Update call.
1226 * predict.c (gate): Disable branch prediction pass if
1227 profile is already there.
1229 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
1231 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
1232 * opth-gen.awk: Likewise.
1233 * common.opt: Mark flag_fp_contract_mode as Optimization.
1235 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
1237 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
1238 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
1240 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
1243 * config/sh/predicates.md (atomic_arith_operand,
1244 atomic_logical_operand): Remove.
1245 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
1246 (atomic_arith_operand_0): New predicate.
1247 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
1248 Use atomic_arith_operand_0 for input values.
1249 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1250 atomic_compare_and_swap<mode>_soft_gusa,
1251 atomic_compare_and_swap<mode>_soft_tcb,
1252 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
1253 arith_reg_operand instead of register_operand.
1254 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
1255 atomic_arith_operand_0 for newval input.
1256 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1257 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
1258 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
1259 arith_reg_operand instead of register_operand.
1260 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
1261 fetchop_predicate_1, fetchop_constraint_1_llcs,
1262 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
1263 fetchop_constraint_1_imask): New code iterator attributes.
1264 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
1265 register_operand. Use fetchop_predicate_1.
1266 (atomic_fetch_<fetchop_name>si_hard,
1267 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
1268 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
1269 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
1270 and arith_reg_operand instead of register_operand. Use
1271 fetchop_predicate_1, fetchop_constraint_1_gusa.
1272 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
1273 and arith_reg_operand instead of register_operand. Use
1274 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
1276 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
1277 and arith_reg_operand instead of register_operand. Use
1278 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
1280 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
1281 register_operand. Use atomic_logical_operand_1.
1282 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
1283 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
1284 arith_reg_operand instead of register_operand.
1285 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
1286 Use arith_reg_dest and arith_reg_operand instead of register_operand.
1287 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
1288 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
1289 register_operand. Use fetchop_predicate_1.
1290 (atomic_<fetchop_name>_fetchsi_hard,
1291 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
1292 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1293 fetchop_constraint_1_llcs.
1294 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
1295 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1296 fetchop_constraint_1_gusa.
1297 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
1298 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1299 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
1300 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
1301 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1302 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
1303 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
1304 register_operand. Use atomic_logical_operand_1.
1305 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
1306 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
1307 arith_reg_operand instead of register_operand.
1308 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
1309 arith_reg_operand instead of register_operand. Use logical_operand
1310 and K08. Adjust asm sequence to allow R0 usage.
1311 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
1312 arith_reg_operand instead of register_operand. Use logical_operand
1315 2015-01-28 Jakub Jelinek <jakub@redhat.com>
1318 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
1319 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
1320 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
1321 only get_full_len HOST_WIDE_INTs from get_val () array rather than
1322 all bits in *val_wide.
1324 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
1326 * varpool.c (tls_model_names): Fix names.
1327 (varpool_node::dump): Dump tls- prefix for tls models.
1329 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
1330 Bernd Schmidt <bernds@codesourcery.com>
1331 Nathan Sidwell <nathan@codesourcery.com>
1333 * config/nvptx/mkoffload.c: New file.
1334 * config/nvptx/t-nvptx: Add build rules for it.
1335 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
1336 (extra_programs): Add mkoffload.
1337 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
1339 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
1341 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
1344 * cfgexpand.c (reorder_operands): Skip debug gimples.
1346 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
1348 PR tree-optimization/64277
1349 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
1350 range info when possible to refine estimation.
1352 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
1354 PR tree-optimization/64718
1355 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
1356 be a 16bit unsigned integer when n->range is 16.
1357 (bswap_replace): Convert src to that type if necessary for all bswap
1358 sizes. Fix rotation right notation in nearby comment. Use bswap_type
1359 set in pass_optimize_bswap::execute ().
1361 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
1363 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
1364 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
1365 integer and floating point variants.
1366 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
1368 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
1370 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
1371 for all vector modes.
1373 2015-01-28 Jakub Jelinek <jakub@redhat.com>
1376 * doc/sourcebuild.texi (comdat_group): Document.
1378 2015-01-28 Terry Guo <terry.guo@arm.com>
1380 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
1382 2015-01-27 David Malcolm <dmalcolm@redhat.com>
1384 * toplev.c (print_version): Add param "show_global_state", and
1385 only print GGC and plugin information if it is true.
1386 (init_asm_output): Pass in "true" for the new param when calling
1388 (process_options): Likewise.
1389 (toplev::main): Likewise.
1390 * toplev.h (print_version): Add new param to decl.
1392 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
1396 * tree.c (lookup_binfo_at_offset): New function.
1397 (get_binfo_at_offset): Use it.
1399 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
1402 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
1403 on vtable being vtable.
1405 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
1407 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
1408 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
1410 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
1411 -mno-hotpatch options. Change syntax of -mhotpatch= option.
1412 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
1414 (s390_hotpatch_trampoline_halfwords_max): Renamed.
1415 (s390_hotpatch_hw_max): New name.
1416 (s390_hotpatch_trampoline_halfwords): Renamed.
1417 (s390_hotpatch_hw_before_label): New name.
1418 (get_hotpatch_attribute): Removed.
1419 (s390_hotpatch_hw_after_label): New name.
1420 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
1422 (s390_attribute_table): Ditto.
1423 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
1424 (s390_function_num_hotpatch_hw): New name.
1425 Remove special handling of inline functions and hotpatching.
1426 Return number of nops before and after the function label.
1427 (s390_can_inline_p): Removed.
1428 (s390_asm_output_function_label): Emit a configurable number of nops
1429 after the function label.
1430 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
1431 (TARGET_CAN_INLINE_P) Removed.
1432 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
1434 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1435 Jiong Wang <jiong.wang@arm.com>
1437 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
1439 (cb<optab><mode>1): Likewise.
1440 * config/aarch64/iterators.md (bcond): New define_code_attr.
1442 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1444 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
1447 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1449 * config/s390/s390.c (s390_register_move_cost): Increase costs for
1452 2015-01-27 Richard Biener <rguenther@suse.de>
1454 * tree-vrp.c (update_value_range): Intersect the range with
1455 old recorded SSA name range information.
1457 2015-01-27 Nick Clifton <nickc@redhat.com>
1459 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
1460 BC, DE and HL registers directly, not via AX.
1461 When decrementing the stack pointer by a large amount, transfer SP
1462 into AX and perform the subtraction there.
1463 (rl78_expand_epilogue): Perform the inverse of the above
1466 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1468 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
1470 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1471 Yury Gribov <y.gribov@samsung.com>
1474 * ubsan.c (ubsan_source_location): Refactor code.
1475 (ubsan_type_descriptor): Update type size. Refactor code.
1477 2015-01-27 Richard Biener <rguenther@suse.de>
1479 PR tree-optimization/56273
1480 PR tree-optimization/59124
1481 PR tree-optimization/64277
1482 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
1483 from the first VRP pass.
1485 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1488 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
1489 handle the first argument in the same loop as all the other arguments.
1491 PR rtl-optimization/61058
1492 * jump.c (cleanup_barriers): Update basic block boundaries
1493 if BLOCK_FOR_INSN is non-NULL on PREV.
1495 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
1497 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
1498 bounds narrowing, already instrumented calls and calls to
1499 not instrumentable functions.
1501 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1503 PR tree-optimization/64807
1504 * wide-int.cc (wi::divmod_internal): Clear
1505 b_dividend[dividend_blocks_needed].
1507 2015-01-26 DJ Delorie <dj@redhat.com>
1509 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
1510 volatile memory references.
1512 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
1515 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
1517 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
1518 shifts if it already fits into K08.
1520 2015-01-26 Jakub Jelinek <jakub@redhat.com>
1523 * ipa-inline.c (inline_small_functions): Print "unknown" even
1524 if edge->call_stmt is non-NULL, but has builtins or unknown
1528 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
1529 with asterisk, skip the first character.
1531 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
1534 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
1537 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
1540 * config/i386/i386.md (*movdi_internal): Also check operand 0
1541 to determine TYPE_LEA operand.
1542 (*movsi_internal): Ditto.
1544 2015-01-26 Jakub Jelinek <jakub@redhat.com>
1546 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
1547 OPTION_MASK_QUAD_MEMORY_ATOMIC.
1549 2015-01-26 Renlin Li <renlin.li@arm.com>
1551 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
1553 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
1556 2015-01-26 Richard Biener <rguenther@suse.de>
1559 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
1560 combining two BIT_AND_EXPR predicates.
1562 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
1565 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
1567 2015-01-26 Terry Guo <terry.guo@arm.com>
1569 * config/arm/arm.c (arm_file_start): Update the assignment of
1572 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
1574 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
1576 config/arm/arm.md: Include the new Cortex-A57 model.
1577 (generic_sched): Don't use generic_sched when tuning for
1580 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
1581 Uros Bizjak <ubizjak@gmail.com>
1583 * config/i386/i386.c (get_builtin_code_for_version): Add
1584 support for BMI and BMI2 multiversion functions.
1586 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1588 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
1589 (extract_bit_field): Likewise.
1590 (extract_low_bits): Likewise.
1591 (expand_mult): Likewise.
1592 (expand_mult_highpart_adjust): Likewise.
1594 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
1596 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
1597 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
1598 * config/i386/i386.c (processor_model): Add
1599 M_INTEL_COREI7_BROADWELL.
1600 (arch_names_table): Add "broadwell".
1602 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
1611 * config/sh/sh-protos.h
1612 (sh_extending_set_of_reg::can_use_as_unextended_reg,
1613 sh_extending_set_of_reg::use_as_unextended_reg,
1614 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
1615 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
1616 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
1617 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
1618 (sh_treg_insns): New class.
1619 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
1620 (scope_counter): New class.
1621 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
1622 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
1623 sh_extending_set_of_reg::can_use_as_unextended_reg,
1624 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
1625 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
1626 sh_split_treg_set_expr): New functions.
1627 (addsubcosts): Handle treg_set_expr.
1628 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
1629 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
1630 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
1631 (sh_insn_operands_modified_between_p): Make non-static.
1632 * config/sh/predicates.md (zero_extend_movu_operand): Allow
1633 simple_mem_operand in addition to displacement_mem_operand.
1634 (zero_extend_operand): Don't allow zero_extend_movu_operand.
1635 (treg_set_expr, treg_set_expr_not_const01,
1636 arith_reg_or_treg_set_expr): New predicates.
1637 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
1638 arith_or_int_operand instead of logical_operand. Convert to
1639 insn_and_split. Try to optimize constant operand in splitter.
1640 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
1641 (*tstqi_t_zero): Delete.
1642 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
1643 (tstsi_t_and_not): Delete.
1644 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
1645 Convert to insn_and_split.
1646 (unnamed split, tstsi_t_zero_extract_xor,
1647 tstsi_t_zero_extract_subreg_xor_little,
1648 tstsi_t_zero_extract_subreg_xor_big): Delete.
1649 (*tstsi_t_shift_mask): New insn_and_split.
1650 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
1651 to recombine with surrounding insns when splitting.
1652 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
1653 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
1654 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
1655 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
1656 (*cbranch_div0s: Delete.
1657 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
1658 Try to recombine with surrounding insns when splitting. Add operand
1660 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
1661 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
1662 *addc_r_r_msb, *addc_2r_msb): Delete.
1663 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
1665 (*addc_negreg_t): New insn_and_split.
1666 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
1667 Try to recombine with surrounding insns when splitting.
1668 Add operand order variants.
1669 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
1670 insn_and_split patterns.
1671 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
1672 surrounding insns when splitting.
1673 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
1674 (*rotcl): Likewise. Add zero_extract variant.
1675 (*ashrsi2_31): New insn_and_split.
1676 (*negc): Convert to insn_and_split. Use treg_set_expr.
1677 (*zero_extend<mode>si2_disp_mem): Update comment.
1678 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
1680 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
1681 with surrounding insns when splitting.
1682 (any_treg_expr_to_reg): New insn_and_split.
1683 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
1684 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
1685 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
1686 *zero_extract_2): New single bit zero extract patterns.
1687 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
1688 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
1689 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
1690 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
1692 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
1693 register_operand for set source.
1695 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
1697 * i386.opt (prefetch_sse): New targetsave.
1698 * i386.c (ix86_function_specific_save): Save prefetch_sse.
1699 (ix86_function_specific_restore): Restore prefetch_sse and initialize
1700 ix86_cost/ix86_tune_cost.
1702 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1704 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1705 Support the JIT by using 0 as the language type.
1707 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
1710 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
1711 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
1712 (mark_regno_live, process_bb_lives): Pass new parameter value to
1713 make_hard_regno_born.
1715 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1717 PR rtl-optimization/63637
1718 PR rtl-optimization/60663
1719 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
1720 if elt->cost is MAX_COST for ASM_OPERANDS.
1721 (find_sets_in_insn): Fix up comment typo.
1722 (cse_insn): Don't set src_volatile for all non-volatile
1723 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
1724 or with "memory" clobber. Set elt->cost to MAX_COST
1725 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
1726 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
1728 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
1730 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
1733 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
1735 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
1736 libgcc/config/i386/elf-lib.h.
1738 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1741 * gcc.c (print_configuration): Don't print a blank line at the end
1743 (run_attempt): ... but here unstead.
1746 * omp-low.c (scan_sharing_clauses): Don't ignore
1747 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
1748 on target data/update constructs.
1750 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
1753 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
1754 (DEBUG_RELOAD): Removed define.
1755 (m32c_limit_reload_class): Enable traces with if DEBUG0.
1756 (m32c_function_arg): Added a type cast.
1757 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
1758 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
1759 * config/m32c/bitops.md (andqi3_16): Likewise.
1760 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
1761 (push_a01_l): Likewise.
1763 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1766 * main.c (main): Construct toplev instances with init_signals=true.
1767 * toplev.c (general_init): Add param "init_signals", and use it to
1768 conditionalize the calls to signal and host_hooks.extra_signals.
1769 (toplev::toplev): Add param "init_signals".
1770 (toplev::main): When invoking general_init, pass m_init_signals
1771 to control whether signal-handlers are installed.
1772 * toplev.h (toplev::toplev): Add param "init_signals".
1773 (toplev::m_init_signals): New field.
1775 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1778 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
1779 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
1780 latter may be affected by the former (e.g. on i686).
1782 2015-01-23 Martin Liska <mliska@suse.cz>
1784 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
1785 false positive during profiledbootstrap.
1787 2015-01-23 Tom de Vries <tom@codesourcery.com>
1790 * lto-opts.c (lto_write_options): Output non-explicit conservative
1792 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
1793 (append_compiler_options): Pass -fopenacc through.
1795 2015-01-23 Tom de Vries <tom@codesourcery.com>
1798 * lto-opts.c (lto_write_options): Output non-explicit conservative
1800 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
1801 (append_compiler_options): Pass -fopenmp through.
1803 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1806 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
1809 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
1810 * diagnostic.def (DK_ICE_NOBT): New kind.
1811 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
1812 like DK_ICE, but never print backtrace.
1813 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
1814 (internal_error_no_backtrace): New function.
1815 * gcc.c (execute): Use internal_error_no_backtrace instead of
1818 2015-01-22 Jeff Law <law@redhat.com>
1821 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
1822 improve code density for small immediate to memory case.
1823 (insv): Better handle bitfield assignments when the field is
1824 being set to all ones.
1825 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
1828 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1829 Jakub Jelinek <jakub@redhat.com>
1831 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
1832 for !TARGET_LIBC_PROVIDES_SSP version and
1833 -fstack-protector-{all,strong,explicit} otherwise.
1834 * config/freebsd.h (LINK_SSP_SPEC): Handle
1835 -fstack-protector-{strong,explicit}.
1837 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
1838 H.J. Lu <hongjiu.lu@intel.com>
1841 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
1844 2015-01-22 Wei Mi <wmi@google.com>
1846 PR rtl-optimization/64557
1847 * dse.c (record_store): Call get_addr for mem_addr.
1848 (check_mem_read_rtx): Likewise.
1850 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
1852 * fold-const.c (const_binop): Add early return for non-tcc_binary.
1854 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
1856 * toplev.c (init_local_tick): Process the failure when read
1857 fails for random_seed.
1859 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
1860 'pretty_name' to avoid memory overflow.
1862 2015-01-22 Richard Biener <rguenther@suse.de>
1865 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
1866 abnormal coalescing on undefined SSA names.
1868 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
1872 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
1874 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
1876 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
1879 * fold-const.c (fold_checksum_tree): Don't include value of
1880 expr->decl_with_vis.symtab_node in the checksum.
1882 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1884 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
1886 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
1889 * gcc.c (insert_comments): New function.
1890 (try_generate_repro): Call it.
1891 (append_text): Removed.
1893 2015-01-22 Richard Biener <rguenther@suse.de>
1895 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
1896 with IL incompatible options. Properly honor user optimize
1899 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
1901 PR rtl-optimization/64682
1902 * combine.c (distribute_notes): When moving a death note for
1903 a register that is set in the new I2, make sure to put it
1906 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
1908 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
1911 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1914 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
1915 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
1916 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
1919 * doc/invoke.texi (-fsanitize=vptr): Document.
1921 PR rtl-optimization/62078
1922 * dse.c: Include cfgcleanup.h.
1923 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
1924 anything call purge_all_dead_edges and cleanup_cfg at the end
1927 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
1929 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
1932 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1934 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
1937 2015-01-21 David Sherwood <david.sherwood@arm.com>
1938 Tejas Belagod <Tejas.Belagod@arm.com>
1940 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
1941 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
1942 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
1945 2015-01-21 David Sherwood <david.sherwood@arm.com>
1946 Tejas Belagod <Tejas.Belagod@arm.com>
1948 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
1949 (aarch64_reverse_mask): New decls.
1950 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
1951 (insn_count): New mode_attr.
1952 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
1953 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
1954 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
1955 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
1956 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
1957 (aarch64_simd_st4): New patterns.
1958 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
1959 (aarch64_reverse_mask): New functions.
1961 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
1963 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
1965 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
1966 addressing modes for BE.
1967 (aarch64_print_operand): Add 'R' specifier.
1968 (aarch64_simd_disambiguate_copy): Delete.
1969 (aarch64_simd_emit_reg_reg_move): New function.
1970 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
1971 in define_splits for structural moves.
1972 (mov<mode>): Use less restrictive predicates.
1973 (*aarch64_mov<mode>): Simplify and only allow for LE.
1974 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
1976 2015-01-21 Alan Hayward <alan.hayward@arm.com>
1978 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
1980 2015-01-21 Richard Henderson <rth@redhat.com>
1983 * ccmp.c (used_in_cond_stmt_p): Remove.
1984 (expand_ccmp_expr): Don't use it.
1986 2015-01-21 Nick Clifton <nickc@redhat.com>
1988 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
1991 2015-01-21 Richard Biener <rguenther@suse.de>
1994 * tree-core.h (builtin_info, builtin_info_type): Turn from
1995 an object with two arrays into an array of an object with
1996 decl and two flags, implicit_p and declared_p.
1997 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
1998 set_builtin_decl, set_builtin_decl_implicit_p,
1999 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
2000 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
2001 * builtins.c (builtin_info): Adjust.
2002 * gimplify.c (gimplify_addr_expr): References to builtins
2003 that have been declared by the user makes them eligible for
2004 use by the compiler. Call set_builtin_decl_implicit_p on them.
2006 2015-01-20 Jeff Law <law@redhat.com>
2009 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
2010 allow pc-relative addresses in operand predicates or constraints.
2012 2015-01-21 Bin Cheng <bin.cheng@arm.com>
2014 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
2015 neon on aarch32 processors for stringops.
2017 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2020 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
2022 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2025 * ipa-inline.c: Include lto-streamer.h
2026 (report_inline_failed_reason): Output source file differences and
2027 flags on optimization/target node mismatch.
2028 (can_inline_edge_p): Consider caller to be the outer inline function;
2029 be less restrictive about matching opimize and optimize_size attributes.
2030 (inline_account_function_p): Break out from ...
2031 (inline_small_functions): ... here.
2032 * ipa-inline-transform.c (clone_inlined_nodes): Use
2033 inline_account_function_p.
2034 (inline_call): Use optimize attribution; use inline_account_function_p.
2035 (inline_transform): Use opt_for_fn.
2036 * ipa-inline.h (inline_account_function_p): Declare.
2038 2015-01-20 Jakub Jelinek <jakub@redhat.com>
2041 * dwarf2out.c (decl_piece_node): Don't put bitsize into
2042 mode if bitsize <= 0.
2043 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
2044 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
2045 sizes and positions.
2047 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
2049 * config/nios2/nios2.c (nios2_asm_file_end): Implement
2050 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
2052 (TARGET_ASM_FILE_END): Define.
2054 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2056 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
2057 (struct tune_params): Use the enum.
2058 * arm.c (arm_*_tune): Update.
2059 (arm_option_override): Update.
2061 2015-01-20 Richard Biener <rguenther@suse.de>
2064 * ipa-reference.c (add_static_var): Inline ...
2065 (analyze_function): ... here after splitting out from ...
2066 (is_proper_for_analysis): ... this.
2068 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
2071 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
2072 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
2073 replace the conditional with it's true branch.
2074 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
2075 (arm_lra_p): Remove.
2077 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
2079 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
2081 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2083 * config/tilegx/mul-tables.c: Move symtab.h include after
2084 coretypes.h include.
2085 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
2086 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
2087 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
2088 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
2089 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2091 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
2095 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2097 PR rtl-optimization/64081
2098 * loop-iv.c (def_pred_latch_p): New function.
2099 (latch_dominating_def): Allow specific cases with non-single
2101 (iv_get_reaching_def): Likewise.
2102 (check_complex_exit_p): New function.
2103 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2104 with exits not executing on any iteration.
2106 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2109 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
2112 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2115 * i386.c (gate): Check flag_expensive_optimizations and
2117 (ix86_option_override_internal): Drop optimize_size condition
2118 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
2119 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
2121 (ix86_avx256_split_vector_move_misalign,
2122 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
2123 * sse.md (all uses of TARGET_PREFER_AVX128): Add
2124 optimize_insn_for_speed_p check.
2126 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
2128 * config/mips/mips.h (FP_ASM_SPEC): New define.
2129 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
2132 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
2135 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
2136 nullptr for insn when reaching the first insn.
2137 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
2138 (sh_insn_operands_modified_between_p): Add nullptr check.
2139 (sh_find_extending_set_of_reg): Fix log message. Don't accept
2140 sign extending mem load if the insn contains any UNSPEC or
2143 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2145 * params.def (inline-unit-growth): Drop to 15%.
2146 * invoke.texi (inline-unit-growth): Document change.
2148 2015-01-19 Martin Liska <mliska@suse.cz>
2151 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
2152 function for second argument of OBJ_TYPE_REF.
2154 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2157 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2158 whether function is an alias.
2160 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2162 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2165 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
2167 PR rtl-optimization/64671
2168 * lra-remat.c (operand_to_remat): Don't consider jump and call
2171 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
2173 * config/rs6000/default64.h: Include rs6000-cpus.def.
2174 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2175 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2176 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2178 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2180 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2181 pseudo-op to specify assembler dialect.
2183 2015-01-19 Martin Liska <mliska@suse.cz>
2186 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2187 Handle safe potentially removed nodes during filtering.
2189 2015-01-19 Martin Liska <mliska@suse.cz>
2191 * doc/extend.texi (no_icf): Add new attribute description.
2192 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2193 where the pass attempts to merge a function with no_icf attribute.
2195 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2198 * doc/md.texi (ARM Options): Document register constraints.
2200 2015-01-19 Jiong Wang <jiong.wang@arm.com>
2201 Andrew Pinski <apinski@cavium.com>
2204 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
2205 (ashl<mode>3): Don't expand if operands[2] is not constant.
2207 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2210 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
2211 Match xor-and-xor RTL pattern.
2213 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2215 PR rtl-optimization/64081
2216 * loop-iv.c (def_pred_latch_p): New function.
2217 (latch_dominating_def): Allow specific cases with non-single
2219 (iv_get_reaching_def): Likewise.
2220 (check_complex_exit_p): New function.
2221 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2222 with exits not executing on any iteration.
2224 2015-01-19 Jakub Jelinek <jakub@redhat.com>
2226 * common.opt (fgraphite): Fix a typo.
2228 2015-01-19 Felix Yang <felix.yang@huawei.com>
2230 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
2232 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
2233 uminp, smax_nanp, smin_nanp): New builtins.
2234 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
2235 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
2236 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
2237 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
2238 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
2239 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
2240 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
2241 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
2242 vpminnms_f32): Rewrite using builtin functions.
2244 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
2247 * omp-low.c (offload_symbol_decl): Remove variable.
2248 (get_offload_symbol_decl): Remove function.
2249 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
2250 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
2251 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
2252 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
2253 BUILT_IN_GOACC_UPDATE don't pass it at all.
2255 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2257 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
2260 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2262 * ipa-chkp.c (chkp_produce_thunks): Add early param
2263 to split thunks production into two passes. Keep
2264 'always_inline' function bodies after the first pass.
2265 (pass_data_ipa_chkp_early_produce_thunks): New.
2266 (pass_ipa_chkp_early_produce_thunks): New.
2267 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
2268 chkp_produce_thunks signature.
2269 (make_pass_ipa_chkp_early_produce_thunks): New.
2270 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
2271 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
2272 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
2274 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2276 * cgraph.c (cgraph_node::dump): Dump profile flags.
2278 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
2281 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
2282 reg appear first in the parallel.
2284 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2286 * ipa-reference.c (set_reference_optimization_summary,
2287 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
2289 (ignore_module_statics): New static var.
2290 (propagate_bits): If ipa-reference is disabled, do not look into local
2292 (analyze_function): Disable analysis when ipa_reference is disabled.
2293 (generate_summary): Do not dump when reference is disabled;
2294 collect vars accessed from functions with ipa-reference disabled.
2295 (get_read_write_all_from_node): When ipa-reference is disabled, use the
2297 (gate): Enable for LTO.
2298 (ignore_edge_p): New function.
2299 (propagate): Skip functions w/o ipa-reference analysis.
2300 * optc-save-gen.awk: Handle optimize_debug correctly.
2301 * opth-gen.awk: Likewise.
2302 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
2303 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
2304 fira-share-save-slots, fira-share-spill-slots,
2305 fmodulo-sched-allow-regmoves, fpartial-inlining,
2306 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
2307 ftracer, ftree-parallelize-loops, fassociative-math,
2308 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
2310 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
2311 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
2313 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
2316 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2319 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
2321 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
2323 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
2325 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
2326 Remove duplicate option listings.
2328 2015-01-18 Felix Yang <felix.yang@huawei.com>
2330 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
2331 (autofdo_source_profile::get_callsite_total_count,
2332 function_instance::get_function_instance_by_decl,
2333 string_table::get_index, string_table::get_index_by_decl,
2334 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
2335 Fix comment typos. Reformatting and minor code rearrangement.
2337 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2339 * config/rs6000/rs6000.md (probe_stack): Delete.
2340 (probe_stack_address): New.
2342 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2344 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
2345 to test for 32-bit ABIs, not !TARGET_POWERPC64.
2347 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2349 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
2350 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
2351 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
2353 (rs6000_libcall_value): Use the new function.
2355 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
2357 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
2359 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
2361 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
2362 implement a more precise life analysis for it during backward scan.
2364 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2366 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
2368 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
2370 PR rtl-optimization/52773
2371 * calls.c (emit_library_call_value): When pushing arguments use
2372 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
2373 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
2374 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
2376 2015-01-17 Jeff Law <law@redhat.com>
2378 PR rtl-optimization/32790
2379 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
2380 not ZERO_EXTEND in SET_DESTs.
2382 2015-01-17 Alan Modra <amodra@gmail.com>
2384 * cprop.c (do_local_cprop): Revert last change.
2386 2015-01-16 DJ Delorie <dj@redhat.com>
2387 Nick Clifton <nickc@redhat.com>
2389 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
2390 (addhi3_real): Likewise. Fix [HL+0] syntax.
2391 (subqi3_real): Likewise.
2392 (subhi3_real): Likewise.
2393 (cbranchqi4_real): Likewise. Allow saddr,#imm.
2394 (cbranchhi4_real): Likewise.
2395 (cbranchhi4_real_inverted): Likewise.
2396 (cbranchsi4_real_lt): Likewise.
2397 (cbranchsi4_real_ge): Likewise.
2398 (cbranchsi4_real_ge): Likewise.
2399 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
2400 (sub<mode>3_virt): Likewise.
2401 (cbranchqi4_virt): Likewise.
2402 (cbranchhi4_virt): Likewise.
2403 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
2404 always use '[reg+imm]' even when imm is zero.
2405 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
2406 (rl78_general_operand): New.
2407 (rl78_nonimmediate_operand): New.
2408 (rl78_nonfar_operand): Use them.
2409 (rl78_nonfar_nonimm_operand): Likewise.
2410 (rl78_stack_based_mem): Fix.
2411 * config/rl78/constraints.md (Ibqi): New.
2416 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
2419 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
2421 * config/rl78/constrains (Qs8): New constraint.
2422 * config/rl78/rl78.c (rl78_flags_already_set): New function.
2423 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
2424 * config/rl78/rl78-real.md (update_Z): New attribute.
2425 Update patterns to set it.
2426 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
2427 shorter compare and branch sequence can be used.
2428 (cbranchhi4_real): Likewise.
2429 (cbranchhi4_real_inverted): Likewise.
2431 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
2432 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
2434 * config/rl78/rl78.c (rl78_get_name_encoding): New.
2435 (rl78_option_override): Allow -mes0 only if C.
2436 (characterize_address): Support subregs of symbol_refs.
2437 (rl78_addr_space_address_mode): Move. Add __near.
2438 (rl78_far_p): Likewise.
2439 (rl78_addr_space_pointer_mode): Likewise.
2440 (rl78_as_legitimate_address): Likewise.
2441 (rl78_addr_space_subset_p): Likewise.
2442 (rl78_addr_space_convert): Likewise.
2443 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
2445 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
2447 (rl78_alloc_physical_registers_op1): Change logic to prefer
2448 symbol[BC] addressing.
2449 (frodata_section): New.
2450 (rl78_asm_init_sections): Initialize it.
2451 (rl78_select_section): Put __far readonly symbols in .frodata.
2452 (rl78_make_type_far): New.
2453 (rl78_insert_attributes): Force all readonly symbols to be
2455 (rl78_asm_out_integer): New.
2456 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
2457 * config/rl78/rl78.opt (-mes0): New.
2459 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
2460 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2461 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2462 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
2463 (rl78_saddr_p): New.
2464 (rl78_output_aligned_common): New.
2465 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
2466 (rl78_handle_saddr_attribute): New.
2467 (rl78_handle_naked_attribute): New.
2468 (rl78_attribute_table): Add saddr.
2469 (rl78_print_operand_1): Don't print '!' on saddr operands.
2470 (rl78_print_operand_1): Strip encodings.
2472 (rl78_strip_name_encoding): New.
2473 (rl78_attrlist_to_encoding): New.
2474 (rl78_encode_section_info): New.
2475 (rl78_asm_init_sections): New.
2476 (rl78_select_section): New.
2477 (rl78_output_labelref): New.
2478 (rl78_output_aligned_common): New.
2479 (rl78_asm_out_integer): New.
2480 (rl78_asm_ctor_dtor): New.
2481 (rl78_asm_constructor): New.
2482 (rl78_asm_destructor): New.
2484 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
2485 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
2486 (transcode_memory_rtx): Update.
2487 (rl78_expand_epilogue): Use A_REG instead of 0.
2489 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2491 * config/arm/arm-protos.h (struct tune_params): New field
2492 sched_autopref_queue_depth.
2493 * config/arm/arm.c (sched-int.h): Include header.
2494 (arm_first_cycle_multipass_dfa_lookahead_guard,)
2495 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
2496 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
2497 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
2498 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
2499 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
2500 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
2501 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
2502 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
2503 * config/arm/t-arm (arm.o): Update.
2504 * haifa-sched.c (update_insn_after_change): Update.
2505 (rank_for_schedule): Use auto-prefetcher model, if requested.
2506 (autopref_multipass_init): New static function.
2507 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
2508 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
2509 variable for debug dumps.
2510 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
2511 (autopref_multipass_dfa_lookahead_guard): New global function that
2512 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
2513 (init_h_i_d): Update.
2514 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
2515 * sched-int.h (enum autopref_multipass_data_status): New const enum.
2516 (autopref_multipass_data_): Structure for auto-prefetcher data.
2517 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
2518 (struct _haifa_insn_data:autopref_multipass_data): New field.
2519 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
2520 (autopref_multipass_dfa_lookahead_guard): Declare.
2522 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2524 * rtlanal.c (get_base_term): Handle SCRATCH.
2526 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2528 * config/aarch64/aarch64.c
2529 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
2530 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2532 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
2533 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2535 2015-01-17 Alan Modra <amodra@gmail.com>
2537 * cprop.c (do_local_cprop): Disallow replacement of fixed
2540 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2543 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
2546 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2548 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
2549 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
2551 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2553 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
2554 * config/arm/thumb1.md: ... Here.
2556 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2558 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
2559 TImode for TARGET_32BIT.
2561 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2563 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
2564 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
2566 (rs6000_abi_word_mode): New function.
2568 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2570 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
2571 instead of UNITS_PER_WORD to describe the size of stack slots.
2573 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2575 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
2576 as rs6000_promote_function_mode. Move comment to there.
2577 (rs6000_promote_function_mode): New function.
2579 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2581 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
2582 -mpowerpc64 is active.
2584 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
2587 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
2590 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
2592 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
2593 introduced in revision 219724.
2595 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2596 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2599 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
2600 destination is not a GP reg.
2601 (*movdi_aarch64): Likewise.
2603 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
2606 * config/rs6000/default64.h: Revert ISA change.
2608 2015-01-16 Richard Biener <rguenther@suse.de>
2611 * tree-ssa-uninit.c: Include tree-cfg.h.
2612 (MAX_SWITCH_CASES): New define.
2613 (convert_control_dep_chain_into_preds): Handle switch statements.
2614 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
2615 (normalize_one_pred_1): Do not split bit-manipulations.
2618 2015-01-16 Richard Biener <rguenther@suse.de>
2620 PR tree-optimization/64568
2621 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
2622 complex load rewriting for TARGET_MEM_REFs.
2624 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
2626 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
2628 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
2631 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
2633 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
2634 (aarch64_lra_p): Remove.
2636 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
2639 * ipa-chkp.h (chkp_instrumentable_p): New.
2640 * ipa-chkp.c: Include tree-inline.h.
2641 (chkp_instrumentable_p): New.
2642 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
2643 Fix processing of not instrumentable functions.
2644 (chkp_versioning): Use chkp_instrumentable_p. Warn about
2645 not instrumentable functions.
2646 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
2647 chkp_instrumentable_p.
2648 * tree-inline.h (copy_forbidden): New.
2649 * tree-inline.c (copy_forbidden): Not static anymore.
2651 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2653 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
2656 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
2658 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
2659 type OP_OUT to OP_INOUT.
2661 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
2663 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
2664 (high x) y) to y if x and y have the same base.
2666 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
2668 * config/arm/cortex-a57.md: New.
2669 * config/aarch64/aarch64.md: Include it.
2670 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
2671 * config/aarch64/aarch64-tune.md: Regenerate.
2673 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
2676 * ccmp.c (expand_ccmp_next): New function.
2677 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
2678 and compare insn sequence.
2679 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2680 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
2681 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
2682 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
2683 (*ccmp_ior): Changed to ccmp_ior<mode>.
2684 (cmp<mode>): New pattern.
2685 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
2687 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
2689 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
2691 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
2692 _mm256_bsrli_epi128): New.
2693 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
2695 2015-01-15 Jiong Wang <jiong.wang@arm.com>
2697 * expmed.c (store_bit_field_using_insv): Improve warning message.
2698 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
2700 2015-01-15 Jiong Wang <jiong.wang@arm.com>
2702 PR rtl-optimization/64011
2703 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
2704 there is partial overflow.
2706 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2708 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
2710 (nds32_expand_epilogue_v3pop): Likewise.
2711 * config/nds32/nds32.md (sibcall): Define this for sibling call
2713 (sibcall_register): Likewise.
2714 (sibcall_immediate): Likewise.
2715 (sibcall_value): Likewise.
2716 (sibcall_value_register): Likewise.
2717 (sibcall_value_immediate): Likewise.
2718 (sibcall_epilogue): Likewise.
2719 (epilogue): Pass false to indicate this is not a sibcall epilogue.
2720 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
2721 (nds32_expand_epilogue_v3pop): Likewise.
2723 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2725 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
2726 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
2727 (return_internal): New.
2728 (return): Define this named pattern.
2729 (simple_return): Define this named pattern.
2730 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
2731 pattern instead of unspec_volatile_func_return.
2732 (nds32_expand_epilogue_v3pop): Likewise.
2733 (nds32_can_use_return_insn): New function.
2735 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2737 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
2738 * config/nds32/nds32.md (pop25return): New.
2739 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
2740 pop25return pattern.
2742 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2744 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
2745 -mforbid-fp-as-gp, and -mex9 options.
2747 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2749 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
2750 remove -mgp-direct option.
2752 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2754 * doc/invoke.texi (--param early-inlining-insns): Update default value.
2755 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
2757 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2759 * ipa-inline.c (inline_small_functions): Work around hints
2762 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
2765 * doc/invoke.texi (Option Summary): Document new Nios II
2767 (Nios II Options): Likewise.
2768 * config/nios2/nios2.opt: Add -mgpopt= option support.
2769 Modify existing -mgpopt and -mno-gpopt options to be aliases.
2770 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
2771 * config/nios2/nios2.c (nios2_option_override): Adjust
2773 (nios2_in_small_data_p): Return true for explicit small data
2774 sections even with -G0.
2775 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
2778 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2781 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
2783 (inline_call): Fix removal of aliases.
2785 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2787 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
2788 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
2789 * opts.c (common_handle_option): Add -fsanitize=vptr.
2790 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
2791 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
2792 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
2793 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
2794 (ubsan_expand_vptr_ifn): New prototype.
2795 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
2796 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
2797 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
2798 expand_LOOP_VECTORIZED): Make argument nameless, remove
2800 (expand_UBSAN_VPTR): New function.
2801 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
2803 (UBSAN_VPTR): New internal function.
2804 * sanopt.c (tree_map_traits): Renamed to ...
2805 (sanopt_tree_map_traits): ... this.
2806 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
2807 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
2808 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
2809 (maybe_optimize_ubsan_vptr_ifn): New function.
2810 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
2811 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
2813 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
2814 internal calls like pure functions for aliasing, even when they
2815 have other side-effects that prevent making them ECF_PURE.
2816 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
2817 (ubsan_expand_vptr_ifn): New function.
2819 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
2821 PR rtl-optimization/64110
2822 * stmt.c (parse_output_constraint): Process '^' and '$'.
2823 (parse_input_constraint): Ditto.
2824 * lra-constraints.c (process_alt_operands): Process the new
2826 * ira-costs.c (record_reg_classes): Process the new constraint
2828 * genoutput.c (indep_constraints): Add '^' and '$'.
2829 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
2830 * doc/md.texi: Add description of the new constraints.
2832 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2833 Bernd Schmidt <bernds@codesourcery.com>
2834 Cesar Philippidis <cesar@codesourcery.com>
2835 James Norris <jnorris@codesourcery.com>
2836 Tom de Vries <tom@codesourcery.com>
2837 Ilmir Usmanov <i.usmanov@samsung.com>
2838 Dmitry Bocharnikov <dmitry.b@samsung.com>
2839 Evgeny Gavrin <e.gavrin@samsung.com>
2840 Jakub Jelinek <jakub@redhat.com>
2842 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
2843 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
2844 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
2846 * builtins.c: Include "gomp-constants.h".
2847 (expand_builtin_acc_on_device): New function.
2848 (expand_builtin, is_inexpensive_builtin): Handle
2849 BUILT_IN_ACC_ON_DEVICE.
2850 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
2852 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
2854 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
2855 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
2856 i386/intelmic-offload.h.
2857 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
2858 to libgomp and its dependencies.
2859 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
2860 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2861 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2862 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2863 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2864 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2865 * doc/generic.texi: Update for OpenACC changes.
2866 * doc/gimple.texi: Likewise.
2867 * doc/invoke.texi: Likewise.
2868 * doc/sourcebuild.texi: Likewise.
2869 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
2870 GF_OMP_FOR_KIND_OACC_LOOP.
2871 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
2872 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
2873 GF_OMP_TARGET_KIND_OACC_UPDATE,
2874 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2876 * gimple.c: Update comments for OpenACC changes.
2877 * gimple.def: Likewise.
2878 * gimple.h: Likewise.
2879 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
2880 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2881 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
2882 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2883 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
2885 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
2886 * gimplify.c: Include "gomp-constants.h".
2887 Update comments for OpenACC changes.
2888 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
2889 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
2890 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2891 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2892 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2893 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2894 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
2895 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2896 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2898 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
2899 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2900 OMP_CLAUSE_SET_MAP_KIND.
2901 (gimplify_oacc_cache): New function.
2902 (gimplify_omp_for): Handle OACC_LOOP.
2903 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
2905 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
2906 OACC_EXIT_DATA, OACC_UPDATE.
2907 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
2908 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
2909 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
2910 (gimplify_body): Consider flag_openacc next to flag_openmp.
2911 * lto-streamer-out.c: Include "gomp-constants.h".
2912 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
2913 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
2914 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
2915 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
2916 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
2917 (BUILT_IN_ACC_ON_DEVICE): New builtins.
2918 * omp-low.c: Include "gomp-constants.h".
2919 Update comments for OpenACC changes.
2920 (struct omp_context): Add reduction_map, gwv_below, gwv_this
2922 (extract_omp_for_data, use_pointer_for_field, install_var_field)
2923 (new_omp_context, delete_omp_context, scan_sharing_clauses)
2924 (create_omp_child_function, scan_omp_for, scan_omp_target)
2925 (check_omp_nesting_restrictions, lower_reduction_clauses)
2926 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
2927 Update for OpenACC changes.
2928 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
2929 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
2930 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
2931 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2932 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
2933 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
2935 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2936 Handle GF_OMP_FOR_KIND_OACC_LOOP.
2937 (expand_omp_target, lower_omp_target): Handle
2938 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2939 GF_OMP_TARGET_KIND_OACC_UPDATE,
2940 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
2941 GF_OMP_TARGET_KIND_OACC_DATA.
2942 (pass_expand_omp::execute, execute_lower_omp)
2943 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
2945 (offload_symbol_decl): New variable.
2946 (oacc_get_reduction_array_id, oacc_max_threads)
2947 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
2948 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
2949 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
2950 (oacc_gimple_assign, oacc_initialize_reduction_data)
2951 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
2953 (is_targetreg_ctx): Remove function.
2954 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
2955 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
2956 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2957 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
2958 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
2959 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
2960 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
2961 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
2962 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
2963 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
2964 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
2965 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
2966 * tree-core.h: Update comments for OpenACC changes.
2967 (enum omp_clause_map_kind): Remove.
2968 (struct tree_omp_clause): Change type of map_kind member from enum
2969 omp_clause_map_kind to unsigned char.
2970 * tree-inline.c: Update comments for OpenACC changes.
2971 * tree-nested.c: Likewise. Include "gomp-constants.h".
2972 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
2973 (convert_tramp_reference_stmt, convert_gimple_call): Update for
2974 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2975 OMP_CLAUSE_SET_MAP_KIND.
2976 * tree-pretty-print.c: Include "gomp-constants.h".
2977 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
2978 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
2979 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
2980 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
2981 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2982 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
2983 instead of OMP_CLAUSE_MAP_*.
2984 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
2985 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
2986 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2987 * tree-streamer-in.c: Include "gomp-constants.h".
2988 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
2989 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
2990 * tree-streamer-out.c: Include "gomp-constants.h".
2991 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
2993 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
2994 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
2995 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
2996 * tree.c (omp_clause_num_ops): Update accordingly.
2997 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
2999 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
3000 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
3001 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
3002 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
3003 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
3004 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
3005 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
3006 (OMP_CLAUSE_SET_MAP_KIND): New macro.
3007 * varpool.c (varpool_node::get_create): Consider flag_openacc next
3009 * config/i386/intelmic-offload.h: New file.
3010 * config/nvptx/offload.h: Likewise.
3012 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3014 * explow.h: Remove duplicate contents.
3015 * dojump.h: Likewise.
3017 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
3019 * arm.c (arm_xgene_tune): Add default initializer for instruction
3022 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
3026 * ipa.c (symbol_table::remove_unreachable_nodes):
3027 Do not put abstract origins into boundary.
3029 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
3031 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
3032 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
3034 2015-01-15 Steve Ellcey <sellcey@mips.com>
3036 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
3037 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
3038 builtins.def, and chkp-builtins.def.
3040 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
3042 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
3045 2015-01-15 Richard Biener <rguenther@suse.de>
3047 PR tree-optimization/61743
3048 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
3049 information on PHIs for some simple cases.
3051 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3053 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
3055 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
3056 * config/arm/arm-cores.def (xgene1): New entry.
3057 * config/arm/arm-tables.opt: Regenerate.
3058 * config/arm/arm-tune.md: Regenerate.
3059 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
3061 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
3063 * tree-if-conv.c: Include hash-map.h.
3064 (aggressive_if_conv): New variable.
3065 (fold_build_cond_expr): Add simplification of non-zero condition.
3066 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
3067 destination block is not always executed.
3068 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
3069 than two predecessors if AGGRESSIVE_IF_CONV is true.
3070 (if_convertible_stmt_p): Fix commentary.
3071 (all_preds_critical_p): New function.
3072 (has_pred_critical_p): New function.
3073 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
3074 BB can have more than two predecessors and all incoming edges can be
3076 (predicate_bbs): Skip predication for loop exit block, use build2_loc
3077 to compute predicate for true edge.
3078 (find_phi_replacement_condition): Delete this function.
3079 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
3080 Allow interchange PHI arguments if EXTENDED is false.
3081 Change check that block containing reduction statement candidate
3082 is predecessor of phi-block since phi may have more than two arguments.
3083 (phi_args_hash_traits): New helper structure.
3084 (struct phi_args_hash_traits): New type.
3085 (phi_args_hash_traits::hash): New function.
3086 (phi_args_hash_traits::equal_keys): New function.
3087 (gen_phi_arg_condition): New function.
3088 (predicate_scalar_phi): Add handling of phi nodes with more than two
3089 arguments, delete COND and TRUE_BB arguments, insert body of
3090 find_phi_replacement_condition to predicate ordinary phi nodes.
3091 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
3092 delete call of find_phi_replacement_condition and invoke
3093 predicate_scalar_phi with two arguments.
3094 (insert_gimplified_predicates): Add assert that non-predicated block
3095 don't have statements to insert.
3096 (ifcvt_split_critical_edges): New function.
3097 (ifcvt_split_def_stmt): Likewise.
3098 (ifcvt_walk_pattern_tree): Likewise.
3099 (stmt_is_root_of_bool_pattern): Likewise.
3100 (ifcvt_repair_bool_pattern): Likewise.
3101 (ifcvt_local_dce): Likewise.
3102 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
3103 is copy of inner or outer loop force_vectorize field, invoke
3104 ifcvt_split_critical_edges, ifcvt_local_dce and
3105 ifcvt_repair_bool_pattern for aggressive if-conversion.
3107 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
3109 * config/aarch64/aarch64.md: Include xgene1.md.
3110 * config/aarch64/xgene1.md: New file.
3112 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3114 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
3115 xgene1 (APM XGene-1) core definition.
3116 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
3117 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
3118 * doc/invoke.texi: Document -mcpu=xgene1.
3120 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3122 * dojump.h: New header file.
3123 * explow.h: Likewise.
3124 * expr.h: Remove includes.
3125 Move expmed.c prototypes to expmed.h.
3126 Move dojump.c prototypes to dojump.h.
3127 Move alias.c prototypes to alias.h.
3128 Move explow.c prototypes to explow.h.
3129 Move calls.c prototypes to calls.h.
3130 Move emit-rtl.c prototypes to emit-rtl.h.
3131 Move varasm.c prototypes to varasm.h.
3132 Move stmt.c prototypes to stmt.h.
3133 (saved_pending_stack_adjust): Move to dojump.h.
3134 (adjust_address): Move to explow.h.
3135 (adjust_address_nv): Move to emit-rtl.h.
3136 (adjust_bitfield_address): Likewise.
3137 (adjust_bitfield_address_size): Likewise.
3138 (adjust_bitfield_address_nv): Likewise.
3139 (adjust_automodify_address_nv): Likewise.
3140 * explow.c (expr_size): Move to expr.c.
3141 (int_expr_size): Likewise.
3142 (tree_expr_size): Likewise.
3143 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3144 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3145 * genemit.c (main): Generate includes statistics.h, real.h,
3146 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
3148 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
3149 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
3150 explow.h, emit-rtl.h, stmt.h.
3151 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
3152 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
3153 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
3154 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
3155 emit-rtl.h, varasm.h, stmt.h.
3156 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3157 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3158 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3159 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3160 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3161 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3162 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3163 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3164 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3165 tm.h tree.h varasm.h vec.h wide-int.h.
3166 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3167 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3168 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3169 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
3170 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3171 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3172 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
3173 * loop-iv.c: Likewise.
3174 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3175 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
3176 statistics.h stmt.h tree.h varasm.h wide-int.h.
3177 * lra-constraints.c: Likewise.
3178 * lra-eliminations.c: Likewise.
3179 * lra-lives.c: Likewise.
3180 * lra-remat.c: Likewise.
3181 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3182 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3183 statistics.h stmt.h tree.h varasm.h wide-int.h.
3184 * hw-doloop.c: Likewise.
3185 * ira-color.c: Likewise.
3186 * ira-emit.c: Likewise.
3187 * loop-doloop.c: Likewise.
3188 * loop-invariant.c: Likewise.
3189 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3190 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3191 statistics.h stmt.h tree.h varasm.h wide-int.h.
3192 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3193 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3194 statistics.h stmt.h tree.h varasm.h wide-int.h.
3195 * combine-stack-adj.c: Likewise.
3198 * ifcvt.c: Likewise.
3199 * ira-costs.c: Likewise.
3201 * lra-coalesce.c: Likewise.
3202 * lra-spills.c: Likewise.
3203 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3204 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
3205 stmt.h varasm.h wide-int.h.
3206 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3207 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3209 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
3210 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
3211 statistics.h stmt.h varasm.h wide-int.h.
3212 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
3213 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
3214 varasm.h wide-int.h.
3215 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
3216 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3217 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
3218 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
3219 statistics.h stmt.h.
3220 * config/tilepro/tilepro.c: Likewise.
3221 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
3222 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
3223 * config/pdp11/pdp11.c: Likewise.
3224 * config/xtensa/xtensa.c: Likewise.
3225 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
3226 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3228 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3229 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3230 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
3231 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3232 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3233 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
3234 * rtl-chkp.c: Likewise.
3235 * tree-chkp-opt.c: Likewise.
3236 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
3237 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3238 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
3239 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3240 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3241 statistics.h stmt.h.
3242 * tree-vect-data-refs.c: Likewise.
3243 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
3244 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3245 rtl.h statistics.h stmt.h varasm.h.
3246 * internal-fn.c: Likewise.
3247 * ipa-icf-gimple.c: Likewise.
3248 * lto-section-out.c: Likewise.
3249 * tree-data-ref.c: Likewise.
3250 * tree-nested.c: Likewise.
3251 * tree-outof-ssa.c: Likewise.
3252 * tree-predcom.c: Likewise.
3253 * tree-pretty-print.c: Likewise.
3254 * tree-scalar-evolution.c: Likewise.
3255 * tree-ssa-strlen.c: Likewise.
3256 * tree-vect-loop.c: Likewise.
3257 * tree-vect-patterns.c: Likewise.
3258 * tree-vect-slp.c: Likewise.
3259 * tree-vect-stmts.c: Likewise.
3261 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3262 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
3264 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
3265 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3266 statistics.h stmt.h varasm.h.
3267 * loop-unroll.c: Likewise.
3268 * ubsan.c: Likewise.
3269 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
3270 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
3272 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3273 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
3274 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
3275 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3276 statistics.h stmt.h.
3277 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
3278 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3279 statistics.h stmt.h varasm.h.
3280 * gimple-match-head.c: Likewise.
3281 * lto-cgraph.c: Likewise.
3282 * lto-section-in.c: Likewise.
3283 * lto-streamer-in.c: Likewise.
3284 * lto-streamer-out.c: Likewise.
3285 * tree-affine.c: Likewise.
3286 * tree-cfg.c: Likewise.
3287 * tree-cfgcleanup.c: Likewise.
3288 * tree-if-conv.c: Likewise.
3289 * tree-into-ssa.c: Likewise.
3290 * tree-ssa-alias.c: Likewise.
3291 * tree-ssa-copyrename.c: Likewise.
3292 * tree-ssa-dse.c: Likewise.
3293 * tree-ssa-forwprop.c: Likewise.
3294 * tree-ssa-live.c: Likewise.
3295 * tree-ssa-math-opts.c: Likewise.
3296 * tree-ssa-pre.c: Likewise.
3297 * tree-ssa-sccvn.c: Likewise.
3298 * tree-tailcall.c: Likewise.
3299 * tree-vect-generic.c: Likewise.
3300 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3301 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
3302 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3303 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
3304 * varasm.c: Likewise.
3305 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3306 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
3308 * init-regs.c: Likewise.
3310 * omp-low.c: Likewise.
3311 * stack-ptr-mod.c: Likewise.
3312 * tree-ssa-reassoc.c: Likewise.
3313 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3314 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
3316 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3317 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
3318 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3319 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
3320 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3321 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
3322 * tree-ssa-phiopt.c: Likewise.
3323 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3324 fixed-value.h hashtab.h real.h statistics.h stmt.h.
3325 * config/fr30/fr30.c: Likewise.
3326 * config/frv/frv.c: Likewise.
3328 * final.c: Likewise.
3329 * optabs.c: Likewise.
3330 * passes.c: Likewise.
3331 * simplify-rtx.c: Likewise.
3333 * toplev.c: Likewise.
3334 * var-tracking.c: Likewise.
3335 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3336 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3337 * lower-subreg.c: Likewise.
3338 * postreload-gcse.c: Likewise.
3340 * reginfo.c: Likewise.
3341 * store-motion.c: Likewise.
3342 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3343 fixed-value.h hashtab.h real.h stmt.h varasm.h.
3344 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3345 fixed-value.h hashtab.h statistics.h stmt.h.
3346 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3347 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3348 * except.c: Likewise.
3349 * explow.c: Likewise.
3350 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3351 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
3353 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3354 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
3355 * tree-ssa-structalias.c: Likewise.
3356 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3357 fixed-value.h insn-config.h real.h statistics.h.
3358 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3359 fixed-value.h insn-config.h real.h statistics.h stmt.h.
3360 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3361 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3362 * cfgbuild.c: Likewise.
3363 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3364 fixed-value.h real.h rtl.h statistics.h stmt.h.
3365 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3366 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3367 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3368 fixed-value.h real.h statistics.h stmt.h.
3369 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3370 fixed-value.h real.h statistics.h stmt.h varasm.h.
3371 * cprop.c: Likewise.
3372 * modulo-sched.c: Likewise.
3373 * postreload.c: Likewise.
3374 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3375 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
3376 statistics.h stmt.h varasm.h.
3377 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
3378 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3379 rtl.h statistics.h stmt.h varasm.h.
3380 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
3381 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
3383 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3384 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
3386 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
3387 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
3389 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
3390 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3391 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3392 function.h real.h statistics.h stmt.h varasm.h.
3393 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3394 insn-config.h real.h statistics.h stmt.h.
3395 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3396 statistics.h stmt.h.
3397 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
3398 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
3399 statistics.h stmt.h varasm.h.
3400 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
3401 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
3402 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3403 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
3404 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
3405 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3406 statistics.h stmt.h varasm.h.
3407 * ipa-polymorphic-call.c: Likewise.
3408 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
3409 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3410 statistics.h stmt.h.
3411 * config/c6x/c6x.c: Likewise.
3412 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
3413 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3414 statistics.h stmt.h varasm.h.
3415 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
3416 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
3418 * ipa-split.c: Likewise.
3419 * tree-eh.c: Likewise.
3420 * tree-ssa-dce.c: Likewise.
3421 * tree-ssa-loop-niter.c: Likewise.
3422 * tree-vrp.c: Likewise.
3423 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
3424 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
3426 * config/nds32/nds32-fp-as-gp.c: Likewise.
3427 * config/nds32/nds32-intrinsic.c: Likewise.
3428 * config/nds32/nds32-isr.c: Likewise.
3429 * config/nds32/nds32-md-auxiliary.c: Likewise.
3430 * config/nds32/nds32-memory-manipulation.c: Likewise.
3431 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3432 * config/nds32/nds32-predicates.c: Likewise.
3433 * config/nds32/nds32.c: Likewise.
3434 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
3435 fixed-value.h hashtab.h real.h statistics.h.
3436 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
3437 fixed-value.h hashtab.h real.h statistics.h stmt.h.
3438 * config/arm/arm.c: Likewise.
3439 * config/avr/avr.c: Likewise.
3440 * config/bfin/bfin.c: Likewise.
3441 * config/h8300/h8300.c: Likewise.
3442 * config/i386/i386.c: Likewise.
3443 * config/ia64/ia64.c: Likewise.
3444 * config/iq2000/iq2000.c: Likewise.
3445 * config/m32c/m32c.c: Likewise.
3446 * config/m32r/m32r.c: Likewise.
3447 * config/m68k/m68k.c: Likewise.
3448 * config/mcore/mcore.c: Likewise.
3449 * config/mep/mep.c: Likewise.
3450 * config/mips/mips.c: Likewise.
3451 * config/mn10300/mn10300.c: Likewise.
3452 * config/moxie/moxie.c: Likewise.
3453 * config/pa/pa.c: Likewise.
3454 * config/rl78/rl78.c: Likewise.
3455 * config/rx/rx.c: Likewise.
3456 * config/s390/s390.c: Likewise.
3457 * config/sh/sh.c: Likewise.
3458 * config/sparc/sparc.c: Likewise.
3459 * config/spu/spu.c: Likewise.
3460 * config/stormy16/stormy16.c: Likewise.
3461 * config/v850/v850.c: Likewise.
3462 * config/vax/vax.c: Likewise.
3463 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
3464 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3465 * config/msp430/msp430.c: Likewise.
3466 * predict.c: Likewise.
3467 * value-prof.c: Likewise.
3468 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
3469 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
3470 * config/microblaze/microblaze.c: Likewise.
3471 * config/nios2/nios2.c: Likewise.
3472 * config/rs6000/rs6000.c: Likewise.
3473 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3474 insn-config.h real.h rtl.h statistics.h stmt.h.
3475 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3476 insn-config.h real.h statistics.h stmt.h.
3477 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
3478 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3479 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
3480 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3481 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
3482 fixed-value.h real.h statistics.h stmt.h.
3483 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
3484 fixed-value.h statistics.h stmt.h.
3485 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
3488 2015-01-15 Jakub Jelinek <jakub@redhat.com>
3490 * gengtype.c (create_user_defined_type): Workaround
3491 -Wmaybe-uninitialized false positives.
3492 * cse.c (fold_rtx): Likewise.
3493 * loop-invariant.c (gain_for_invariant): Likewise.
3495 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
3497 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
3498 set the memory attributes in all cases but clear MEM_EXPR if need be.
3500 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
3502 PR tree-optimization/64434
3503 * cfgexpand.c (reorder_operands): New function.
3504 (expand_gimple_basic_block): Insert call of reorder_operands if
3507 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
3509 * config/mips/micromips.md (*swp): Remove explicit parallel.
3510 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
3511 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
3512 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
3513 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
3514 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
3515 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
3516 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
3517 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
3518 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
3519 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
3520 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
3521 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
3522 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
3523 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
3524 (mips_wrdsp): Likewise.
3525 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
3527 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
3528 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
3529 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
3530 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
3531 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
3532 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
3533 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
3534 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
3535 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
3537 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3539 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
3540 (mips_print_operand): Support 'y' to print exact log2 in decimal
3542 * config/mips/mips.h (ISA_HAS_LSA): New define.
3543 (ISA_HAS_DLSA): Likewise.
3544 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
3545 * config/mips/predicates.md (const_immlsa_operand): New predicate.
3547 2015-01-15 Martin Liska <mliska@suse.cz>
3550 * optc-save-gen.awk: Add support for array types.
3552 2015-01-15 Richard Biener <rguenther@suse.de>
3555 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
3556 for MEM_REF access functions with the same base can never partially
3559 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
3561 * common.opt: New option -fstack-protector-explicit.
3562 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
3563 (stack_protect_decl_phase): Handle stack_protect attribute for
3564 explicit stack protection requests.
3565 (expand_used_vars): Similarly.
3566 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
3567 * doc/extend.texi: Add documentation for "stack_protect" attribute.
3568 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
3570 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
3573 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
3575 (sh_extending_set_of_reg): New struct.
3576 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
3577 sh_remove_reg_dead_or_unused_notes): New Declarations.
3578 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
3579 sh_find_extending_set_of_reg, sh_split_tst_subregs,
3580 sh_extending_set_of_reg::use_as_extended_reg): New functions.
3581 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
3582 convert to insn_and_split and use new function sh_split_tst_subregs.
3584 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
3586 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
3588 (Optimization Options): Move -fuse-ld documentation to...
3589 (Link Options): ...here.
3591 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3593 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
3595 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
3596 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
3597 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
3598 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
3599 instead of ZR for the memory operand of LL/SC.
3600 (compare_and_swap_12, sync_add<mode>): Likewise.
3601 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
3602 (sync_new_<optab>_12, sync_nand_12): Likewise.
3603 (sync_old_nand_12, sync_new_nand_12): Likewise.
3604 (sync_sub<mode>, sync_old_add<mode>): Likewise.
3605 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
3606 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
3607 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
3608 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
3609 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
3610 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
3611 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
3612 * doc/md.texi (ZC): Update description.
3614 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
3616 * builtins.c (expand_builtin_atomic_exchange): Remove error when
3617 memory model is CONSUME.
3618 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
3619 expand_builtin_atomic_store): Change invalid memory model errors to
3621 (expand_builtin_atomic_clear): Change invalid model errors to warnings
3622 and issue warning for CONSUME.
3624 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
3626 * lto-cgraph: Update function comments for
3627 lto_symtab_encoder_encode_*.
3629 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
3631 * Makefile.in (site.exp): Do not set ENABLE_LTO.
3633 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
3635 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
3636 * lto-cgraph.c (select_what_to_stream): Remove argument, use
3637 lto_stream_offload_p instead.
3638 * lto-streamer.h (select_what_to_stream): Remove argument.
3639 * passes.c (ipa_write_summaries): Likewise.
3640 * tree-pass.h (ipa_write_summaries): Likewise.
3642 2015-01-14 Richard Biener <rguenther@suse.de>
3644 PR tree-optimization/59354
3645 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
3646 groups larger than the slp group size as having gaps.
3648 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
3651 * builtins.c (get_memmodel): Promote consume to acquire always.
3653 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3656 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
3659 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3662 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
3664 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
3665 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
3666 AVX512VBMI, as it implies AVX512BW.
3668 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3671 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
3672 (vec_unpacks_hi_v16sf): Ditto.
3674 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3676 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
3679 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3681 * doc/invoke.texi (mapcs): Mention deprecation.
3682 (mapcs-frame): Likewise.
3684 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3687 * config/arm/arm.c (callee_saved_reg_p): Define.
3688 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
3689 register is callee saved instead of !call_used_regs[reg].
3690 (thumb1_compute_save_reg_mask): Likewise.
3692 2015-01-14 Hale Wang <hale.wang@arm.com>
3694 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
3697 2015-01-14 Richard Biener <rguenther@suse.de>
3700 * tree-inline.c (insert_debug_decl_map): Check destination
3701 function MAY_HAVE_DEBUG_STMTS.
3702 (insert_init_debug_bind): Likewise.
3703 (insert_init_stmt): Remove redundant check.
3704 (remap_gimple_stmt): Drop debug stmts if the destination
3705 function has var-tracking assignments disabled.
3707 2015-01-14 Martin Liska <mliska@suse.cz>
3709 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
3710 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
3712 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3715 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
3716 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
3718 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3720 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
3721 level from an ARCH; do not inject the default.
3722 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
3723 MIPS_ISA_LEVEL_SPEC.
3724 (MIPS_ISA_NAN2008_SPEC): Update comment.
3725 (BASE_DRIVER_SELF_SPECS): Likewise.
3726 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
3727 MIPS_DEFAULT_ISA_LEVEL_SPEC.
3728 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
3729 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
3730 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
3732 2015-01-14 Richard Biener <rguenther@suse.de>
3734 PR tree-optimization/64493
3735 PR tree-optimization/64495
3736 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
3737 assign the proper vectorized PHI to the inner loop exit PHIs.
3739 2015-01-14 Joey Ye <joey.ye@arm.com>
3741 * config/arm/arm.c (arm_compute_save_reg_mask):
3742 Do not save lr in case of tail call.
3743 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
3745 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
3747 * tree-vrp.c (check_array_ref): Emit more warnings
3748 for warn_array_bounds >= 2.
3749 * common.opt: New option -Warray-bounds=.
3750 * doc/invoke.texi: Document -Warray-bounds=.
3752 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
3754 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
3755 (mforbid-fp-as-gp): Remove.
3757 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
3758 (nds32_symbol_load_store_p): Remove.
3759 (nds32_fp_as_gp_check_available): Clean up implementation.
3760 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
3762 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
3763 fp-as-gp and ex9 cases.
3765 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3767 * tree-profile.c (init_ic_make_global_vars): Drop workaround
3768 for bintuils bug 14342.
3769 (init_ic_make_global_vars): Likewise.
3770 (gimple_init_edge_profiler): Likewise.
3771 (gimple_gen_ic_func_profiler): Likewise.
3773 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3775 * ipa-inline.c (inline_small_functions): Swap the operands in
3778 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3781 * ipa-inline-analysis.c (node_growth_cache): Remove.
3782 (initialize_growth_caches): Do not initialize it.
3783 (free_growth_caches): Do not free it.
3784 (do_estimate_growth): Rename to ...
3785 (estimate_growth): ... this one; drop growth cache code.
3786 (growth_likely_positive): Always go the heuristics way.
3787 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
3788 (reset_edge_caches): Do not reset node growth.
3789 (heap_edge_removal_hook): Do not maintain cache.
3790 (inline_small_functions): Likewise; strenghten sanity check.
3791 (ipa_inline): Do not maintain caches.
3792 * ipa-inline.h (node_growth_cache): Remove.
3793 (do_estimate_growth): Remove to ...
3794 (estimate_growth): this one; remove inline version.
3795 (reset_node_growth_cache): Remove.
3797 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3800 * ipa-inline.c (inline_small_functions): Update callee keys after
3801 resolving speculation
3802 (inline_small_functions): Always check monotonicity of the queue.
3804 2015-01-13 Marek Polacek <polacek@redhat.com>
3807 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
3809 2015-01-13 Jakub Jelinek <jakub@redhat.com>
3811 PR rtl-optimization/64286
3812 * ree.c (combine_reaching_defs): Move part of comment earlier,
3813 remove !SCALAR_INT_MODE_P check.
3814 (add_removable_extension): Don't add vector mode
3815 extensions if all uses of the source register aren't the same
3818 2015-01-13 Renlin Li <renlin.li@arm.com>
3820 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
3821 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
3823 2015-01-13 Martin Liska <mliska@suse.cz>
3825 * ipa-icf.c (sem_function::equals_private): Call new functions
3826 cl_target_option_print_diff and cl_optimization_print_diff.
3827 * optc-save-gen.awk (cl_target_option_print_diff): New function.
3828 (cl_optimization_print_diff): Likewise.
3829 * opth-gen.awk: Likewise.
3831 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
3833 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
3834 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
3835 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
3836 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
3837 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
3838 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
3840 2015-01-13 Andrew Pinski <apinski@cavium.com>
3842 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
3843 instead of src mode.
3845 2015-01-13 Richard Biener <rguenther@suse.de>
3848 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
3851 2015-01-13 Andrew Pinski <apinski@cavium.com>
3853 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
3855 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
3857 2015-01-13 Jakub Jelinek <jakub@redhat.com>
3860 * cfgexpand.c (expand_computed_goto): Don't call
3861 convert_memory_address here.
3863 2015-01-13 Richard Biener <rguenther@suse.de>
3865 PR tree-optimization/64406
3866 * tree-loop-distibution.c (pass_loop_distribution::execute):
3867 Reset the SCEV hashtable if we distributed anything.
3869 2015-01-13 Richard Biener <rguenther@suse.de>
3871 PR tree-optimization/64404
3872 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
3873 SLP types for CSEd loads.
3875 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3877 PR tree-optimization/64436
3878 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
3879 merge of two symbolic numbers for a bitwise OR to ...
3880 (perform_symbolic_merge): This. Also fix computation of the range and
3881 end of the symbolic number corresponding to the result of a bitwise OR.
3883 2015-01-13 Richard Biener <rguenther@suse.de>
3885 PR tree-optimization/64568
3886 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
3887 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
3889 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3891 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
3892 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
3894 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3896 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
3897 target-specific symbol_ref flag.
3898 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
3899 resides in rodata section.
3900 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
3901 (nds32_encode_section_info): New function.
3903 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3905 * config/nds32/nds32.md (call): Use pseudo instruction bal which
3906 clobbers TA_REGNUM if large code model is specified.
3907 (call_register): Likewise.
3908 (call_immediate): Likewise.
3909 (call_value): Likewise.
3910 (call_value_register): Likewise.
3911 (call_value_immediate): Likewise.
3913 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3915 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
3916 (TARGET_CMODEL_MEDIUM): New macro.
3917 (TARGET_CMODEL_LARGE): New macro.
3918 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
3919 code model setting in assembly code.
3921 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3923 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
3924 Remove MASK_GP_DIRECT flag.
3925 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
3926 one of the multilib default options.
3927 * config/nds32/nds32.opt (mgp-direct): Remove.
3928 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
3929 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
3931 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3933 * config/nds32/nds32.opt (mcmodel): Add new option.
3934 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
3935 to describe code model.
3937 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
3940 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
3942 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
3944 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
3945 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
3946 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
3947 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
3948 __builtin_sh_set_fpscr.
3950 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3952 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
3953 after a funtion name just to indicate it is a function.
3954 ([-fsanitize-undefined-trap-on-error]): Likewise.
3955 ([-fdbg-cnt=]): Likewise.
3956 ([-mmemcpy]): Likewise.
3957 ([-mflush-func]): Likewise.
3958 ([-msynci]): Likewise.
3960 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3962 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
3965 2015-01-12 Jakub Jelinek <jakub@redhat.com>
3967 PR tree-optimization/64563
3968 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
3969 instead of != VR_VARYING.
3972 * config/i386/i386.c (ix86_expand_prologue): Add
3973 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
3975 PR tree-optimization/64454
3976 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
3977 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
3978 for signed or [0, op1 - 1] for unsigned modulo.
3979 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3980 even if op1 does not satisfy integer_pow2p.
3983 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
3985 2015-01-12 Jeff Law <law@redhat.com>
3988 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
3989 (trunchiqi2, truncsihi2): Similarly.
3991 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
3992 rather than calling F.
3994 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3996 * tsan.c (instrument_expr): Use force_gimple_operand.
3997 Use may_be_nonaddressable_p instead of is_gimple_addressable.
3999 2015-01-12 Richard Biener <rguenther@suse.de>
4001 PR tree-optimization/64530
4002 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
4005 2015-01-12 Richard Biener <rguenther@suse.de>
4008 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
4011 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4013 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
4014 Cortex-A17 tuning parameters.
4015 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
4017 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4019 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
4020 * config/arm/arm.c (arm_macro_fusion_p): New function.
4021 (arm_macro_fusion_pair_p): Likewise.
4022 (TARGET_SCHED_MACRO_FUSION_P): Define.
4023 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
4024 (ARM_FUSE_NOTHING): Likewise.
4025 (ARM_FUSE_MOVW_MOVT): Likewise.
4026 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4027 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4028 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4029 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4030 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4031 arm_cortex_a5_tune): Specify fuseable_ops value.
4033 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
4036 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
4037 test for PIE with copy reloc.
4038 * configure: Regenerated.
4040 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4042 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
4044 (arm_tls_descseq_addr): Likewise.
4045 (arm_gen_movmemqi): Likewise.
4046 (arm_expand_epilogue_apcs_frame): Likewise.
4047 (arm_expand_epilogue): Likewise.
4048 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
4051 2015-01-12 Martin Liska <mliska@suse.cz>
4054 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
4055 volatility for correct operands.
4057 2015-01-12 Martin Liska <mliska@suse.cz>
4059 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4060 that a function is not leaf.
4061 (sem_function::compare_polymorphic_p): Likewise.
4063 2015-01-12 Martin Liska <mliska@suse.cz>
4065 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4066 that a function is not leaf.
4067 (sem_function::compare_polymorphic_p): Likewise.
4069 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4071 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
4072 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
4073 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
4074 fold-const.h, tree-check.h.
4076 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
4080 * ipa-inline.c (compute_uninlined_call_time,
4081 compute_inlined_call_time): Use counts for extra precision when
4083 (big_speedup_p): Fix formating.
4084 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
4085 (relative_time_benefit): Remove.
4086 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
4087 merge guessed and read profile paths.
4088 (inline_small_functions): Count only !optimize_size functions into
4089 initial size; be more lax about sanity check when profile is used;
4090 be sure to update inlined function profile when profile is read.
4092 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
4095 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
4096 cost when edge becomes direct.
4097 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
4098 is resolved or when introducing new speculation.
4100 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
4104 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
4105 '||' to fix typo issue.
4107 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
4108 accept and return NULL.
4110 2015-01-12 Martin Liska <mliska@suse.cz>
4112 * cgraph.c (cgraph_edge::remove_callee): Move function to header
4113 file for being inlined.
4114 (cgraph_set_edge_callee): Delete.
4115 (cgraph_edge::redirect_callee): Move function to header file
4117 (cgraph_edge::make_direct): Use new function.
4118 (cgraph_edge::dump_edge_flags): New function created from
4119 static dump_edge_flags function.
4120 (cgraph_node::dump): Use new function.
4121 (cgraph_edge::verify_count_and_frequency): New function created
4122 from verify_edge_count_and_frequency.
4123 (cgraph_edge::verify_corresponds_to_fndecl): New function created
4124 from verify_edge_corresponds_to_fndecl.
4125 (verify_edge_corresponds_to_fndecl): Delete.
4126 (cgraph_node::verify_node): Use new function.
4127 * cgraph.h (cgraph_edge::set_callee): New function.
4128 (cgraph_edge::dump_edge_flags): Likewise.
4129 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
4131 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
4133 * ipa-utils.c (estimate_function_body_sizes): Do not
4134 free node params when called late with early=true.
4136 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
4138 * doc/md.texi (Instruction Patterns): Rewrite text for
4140 (Example): Likewise.
4142 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
4144 * doc/invoke.texi (Option Summary): Break long lines.
4145 [(-fdiagnostics-color)]: Put long literal in @smallexample
4147 [(-fsanitize-recover)]: Likewise.
4148 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
4149 [(-ffast-math)]: Likewise.
4150 [(--param max-inline-insns-recursive)]: Likewise.
4151 [(--param max-inline-recursive-depth)]: Likewise.
4152 [(-mno-text-section-literals)]: Likewise.
4154 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4156 * doc/install.texi: Update for libgomp being renamed from "GNU
4157 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4159 * doc/sourcebuild.texi: Likewise.
4161 2015-01-10 Anthony Green <green@moxielogic.com>
4163 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4164 mul.x availability for moxiebox configuration.
4166 2015-01-09 Anthony Green <green@moxielogic.com>
4168 * config/moxie/moxie.md: Tabify assembly output.
4170 2015-01-09 Anthony Green <green@moxielogic.com>
4172 * config/moxie/moxie.md (CC_REG): Correct register definition.
4174 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
4176 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4177 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
4180 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4182 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4184 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
4185 Jakub Jelinek <jakub@redhat.com>
4188 * lto-streamer.h (lto_stream_offload_p): New declaration.
4189 * lto-streamer.c (lto_stream_offload_p): New variable.
4190 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4191 at the same time as section_name_prefix.
4192 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4193 if lto_stream_offload_p.
4194 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4195 stream TREE_TARGET_OPTION if lto_stream_offload_p.
4196 (write_ts_function_decl_tree_pointers): Don't
4197 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4198 * tree-streamer-in.c (unpack_value_fields): Don't stream
4199 TREE_TARGET_OPTION in if ACCEL_COMPILER.
4200 (lto_input_ts_function_decl_tree_pointers): Don't stream
4201 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
4202 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
4203 instead of section_name_prefix string comparisons.
4205 2015-01-09 Jakub Jelinek <jakub@redhat.com>
4207 PR rtl-optimization/64536
4208 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
4211 2015-01-09 Michael Collison <michael.collison@linaro.org>
4213 PR tree-optimization/64322
4214 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
4215 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
4217 2015-01-09 Tom de Vries <tom@codesourcery.com>
4219 PR rtl-optimization/64539
4220 * regcprop.c (kill_clobbered_values): Factor out of ...
4221 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
4222 instead of note_stores with kill_clobbered_value.
4224 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4226 * ginclude/unwind-arm-common.h: Revert previous commit.
4228 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4230 * config.gcc (arm*-*-freebsd*): New configuration.
4231 * config/arm/freebsd.h: New file.
4232 * config.host: Add extra components for arm*-*-freebsd*.
4233 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
4234 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
4236 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4238 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4240 * config/rs6000/t-rtems: Add e6500 multilibs.
4242 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4244 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
4247 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4249 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
4250 MULTILIB_EXCEPTIONS.
4252 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4254 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
4255 MULTILIB_EXCEPTIONS.
4257 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4259 * config/arm/t-rtems-eabi: Rename to...
4260 * config/arm/t-rtems: ...this.
4261 * config/arm/rtems-eabi.h: Rename to...
4262 * config/arm/rtems.h: ...this.
4263 * config.gcc (arm*-*-rtems*): Reflect changes above.
4265 2015-01-09 Richard Biener <rguenther@suse.de>
4267 PR tree-optimization/64410
4268 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
4270 (execute_update_addresses_taken): Deal with that.
4271 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
4272 loads/stores for complex variables.
4274 2015-01-09 Martin Liska <mliska@suse.cz>
4276 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
4278 (func_checker::compare_memory_operand): New function.
4279 (func_checker::compare_operand): Split case to newly
4281 (func_checker::compare_cst_or_decl): New function.
4282 (func_checker::compare_gimple_call): Identify
4284 (func_checker::compare_gimple_assign): Likewise.
4285 * ipa-icf-gimple.h: New function.
4287 2015-01-09 Martin Liska <mliska@suse.cz>
4290 * sreal.c (sreal::dump): Change unsigned format to signed for
4292 (sreal::to_double): Replace exp2 with scalbln.
4294 2015-01-09 Martin Liska <mliska@suse.cz>
4296 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
4297 * ipa-icf.c (sem_function::equals_private): Add support for target and
4298 (sem_item_optimizer::merge_classes): Remove redundant function
4299 optimization flags comparison.
4300 * tree.h (target_opts_for_fn): New function.
4302 2015-01-09 Tom de Vries <tom@codesourcery.com>
4304 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
4306 2015-01-09 Kito Cheng <kito@0xlab.org>
4308 PR rtl-optimization/64348
4309 * lra-constraints.c (split_reg): Fix caller-save store/restore
4310 instruction generation.
4312 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
4314 PR gcov-profile/61790
4315 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
4316 long long. Fallback to int64_t if host doesn't have long long and
4317 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
4319 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4321 PR tree-optimization/63989
4322 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
4324 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
4325 (get_stridx): If we don't have a record for certain SSA_NAME,
4326 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
4327 constant offset, call get_stridx_plus_constant.
4328 (get_stridx_plus_constant): New function.
4329 (zero_length_string): Don't use get_stridx here.
4333 * dse.c (struct insn_info): Mention frame_read set also
4334 before reload for tail calls on some targets.
4335 (scan_insn): Revert 2014-12-22 change. Set frame_read
4336 also before reload for tail calls if
4337 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
4338 instead of add_non_frame_wild_read for non-const/memset
4339 tail calls after reload.
4341 2015-01-08 Jason Merrill <jason@redhat.com>
4343 * ubsan.c (do_ubsan_in_current_function): New.
4344 (pass_ubsan::gate): Use it.
4345 * ubsan.h: Declare it.
4346 * convert.c (convert_to_integer): Use it.
4348 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4351 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
4352 compare_code when it is unconditionally overwritten afterwards.
4353 Use ix86_reverse_condition instead of reverse_condition. Don't
4354 change code if *reverse_condition* returned UNKNOWN and don't
4355 swap ct/cf and negate diff in that case.
4357 2015-01-08 Mike Stump <mikestump@comcast.net>
4359 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
4360 (pass_tsan_O0::gate): Likewise.
4361 * extend.texi (Function Attributes): Add no_sanitize_thread
4364 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
4366 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
4367 for registering builtins.
4368 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
4369 add -fopenmp to the argv_obstack used when invoking
4372 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
4373 add "-m32" or "-m64" to argv_obstack.
4374 (generate_host_descr_file): Likewise, when invoking host_compiler.
4375 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
4378 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
4380 * config/sh/sh-mem.cc: Use constant as second operand when emitting
4383 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
4386 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
4387 constant load if constant operand fits into I08.
4389 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4392 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
4393 and TREE_THIS_VOLATILE for MEM_REFs.
4394 (build5_stat): Fix up initialization of TREE_READONLY and
4395 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
4397 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
4400 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
4401 of r for the second alternative of the destination operand.
4403 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
4406 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
4408 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
4410 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
4412 ([-fivar-visibility], [-fvisibility]): Likewise.
4414 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
4416 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
4417 the file where @code, @command, etc is more appropriate.
4419 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
4421 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
4422 of -mrecip= documentation.
4424 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4427 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
4428 correct reload handler if -m32 -mpowerpc64 is used.
4430 2015-01-06 Tom de Vries <tom@codesourcery.com>
4432 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
4434 2015-01-08 Christian Bruel <christian.bruel@st.com>
4437 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
4439 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
4441 PR tree-optimization/63259
4442 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
4443 if optab exists for 16bit byteswap.
4445 2015-01-06 Jakub Jelinek <jakub@redhat.com>
4447 * opts.c (common_handle_option): Add support for
4448 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
4449 * doc/invoke.texi: Document -fno-sanitize=all,
4450 -f{,no-}sanitize-recover=all. Document that
4451 -fsanitize=float-cast-overflow is not enabled
4452 by -fsanitize=undefined. Fix up documentation
4453 of -f{,no-}sanitize-recover.
4455 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
4457 * config.gcc: Add Visium support.
4458 * configure.ac: Likewise.
4459 * configure: Regenerate.
4460 * doc/extend.texi (interrupt attribute): Add Visium.
4461 * doc/invoke.texi: Document Visium options.
4462 * doc/install.texi: Document Visium target.
4463 * doc/md.texi: Document Visium constraints.
4464 * common/config/visium: New directory.
4465 * config/visium: Likewise.
4467 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
4469 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
4470 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
4472 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
4474 * combine.c (combine_validate_cost): Do not count the cost of a
4475 split I2 twice. Do not display it twice in the dump, either.
4477 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
4479 Revert parts of r219199.
4480 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
4482 ([-Wtraditional]): Restore markup on <limits.h>.
4484 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4487 * doc/invoke.texi: Document -Wsuggest-override.
4489 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
4491 PR rtl-optimization/64287
4492 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
4493 (process_options): Disable flag_ipa_ra if profiling.
4495 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
4497 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
4499 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
4501 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
4502 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
4503 put under #if TARGET_LOOPS guard.
4505 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
4507 * config/i386/i386.c (output_387_binary_op): Use std::swap.
4509 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
4511 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
4512 * rtl.h (refers_to_regno_p): Add overload.
4514 * bt-load.c: Likewise.
4515 * combine.c: Likewise.
4516 * df-scan.c: Likewise.
4517 * sched-deps.c: Likewise.
4518 * config/s390/s390.c: Likewise.
4519 * config/m32r/m32r.c: Likewise.
4520 * config/rs6000/spe.md: Likewise.
4521 * config/rs6000/rs6000.c: Likewise.
4522 * config/pa/pa.c: Likewise.
4523 * config/stormy16/stormy16.c: Likewise.
4524 * config/cris/cris.c: Likewise.
4525 * config/arc/arc.md: Likewise.
4526 * config/arc/arc.c: Likewise.
4527 * config/sh/sh.md: Likewise.
4528 * config/sh/sh.c: Likewise.
4529 * config/frv/frv.c: Likewise.
4531 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4534 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
4535 call as cleanup of the whole body.
4536 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
4537 * tsan.c (replace_func_exit): New function.
4538 (instrument_func_exit): Moved earlier.
4539 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
4540 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
4542 (tsan_pass): Don't call instrument_func_exit.
4543 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
4544 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
4548 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
4549 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
4550 it to libubsan handler instead of EXPR. Fold comparisons earlier,
4551 if the result is integer_zerop, return NULL_TREE.
4552 * convert.c (convert_to_integer): Pass expr as ARG.
4554 PR tree-optimization/64465
4555 * tree-inline.c (redirect_all_calls): During inlining
4556 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
4557 changed the stmt to a non-throwing call.
4559 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
4561 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
4562 etc markup throughout the file.
4564 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4566 Enable experimental TSAN support for Ada.
4567 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
4569 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4571 PR tree-optimization/64494
4572 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
4573 clear SSA_NAME_ANTI_RANGE_P flag.
4575 2015-01-05 Marek Polacek <polacek@redhat.com>
4577 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
4579 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4581 Update copyright years.
4583 * gcc.c (process_command): Update copyright notice dates.
4584 * gcov-dump.c: Ditto.
4586 * doc/cpp.texi: Bump @copying's copyright year.
4587 * doc/cppinternals.texi: Ditto.
4588 * doc/gcc.texi: Ditto.
4589 * doc/gccint.texi: Ditto.
4590 * doc/gcov.texi: Ditto.
4591 * doc/install.texi: Ditto.
4592 * doc/invoke.texi: Ditto.
4594 * auto-profile.c, auto-profile.h: Fix up Copyright line.
4596 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
4598 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
4600 ([-fvtable-verify], [-fvtv-debug]): Likewise.
4601 ([-Wabi]): Likewise.
4602 ([-fmessage-length]): Likewise.
4603 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
4604 ([-Wno-discarded-qualifiers]): Likewise.
4605 ([-Wnodiscarded-array-qualifiers]): Likewise.
4606 ([-Wno-virtual-move-assign]): Likewise.
4607 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
4608 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
4609 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
4610 ([-fsanitize-undefined-trap-on-error]): Likewise.
4611 ([-floop-interchange]): Likewise.
4612 ([-ftree-coalesce-inlined-vars]): Likewise.
4613 ([-fvect-cost-model]): Likewise.
4614 ([-flto]): Likewise.
4615 ([--param]): Likewise.
4616 (Spec Files): Likewise.
4617 ([-mstrict-align]): Likewise.
4618 ([-mfix-cortex-a53-835769]): Likewise.
4619 ([-march], [-mtune]): Likewise.
4620 ([-mpic-register]): Likewise.
4621 ([-munaligned-access]): Likewise.
4622 ([-msp8]): Likewise.
4623 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
4624 (AVR Built-in Macros): Likewise.
4625 ([-mpreferred-stack-boundary]): Likewise.
4626 ([-mtune-crtl]): Likewise.
4627 ([-mashf]): Likewise.
4628 ([-mmcu=]): Likewise.
4629 ([-minrt]): Likewise.
4630 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
4631 ([-mupper-regs]): Likewise.
4632 ([-matomic-model]): Likewise.
4633 ([-mdiv]): Likewise.
4634 ([-mzdcbranch]): Likewise.
4635 ([-mdisable-callt]): Likewise.
4636 ([-msoft-float]): Likewise.
4637 ([-m8byte-align]): Likewise.
4638 ([-fstack-reuse]): Likewise.
4640 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4642 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
4643 Fix markup, light copy-editing.
4644 ([-fauto-profile]): Rewrite to fix formatting and content
4647 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4649 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
4650 Copy-edit description.
4651 ([-fisolate-erroneous-paths-attribute]): Likewise.
4652 * common.opt (fisolate-erroneous-paths-dereference):
4653 Copy-edit description.
4654 (fisolate-erroneous-paths-attribute): Likewise.
4656 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4658 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
4661 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4663 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
4664 ([-fvtv-debug]): Likewise.
4665 ([-Wc++-compat]): Likewise.
4666 ([-Wc++11-compat]): Likewise.
4667 ([-Wc++14-compat]): Likewise.
4668 ([-Wno-sized-deallocation]): Likewise.
4669 ([-femit-class-debug-always]): Likewise.
4670 ([-femit-struct-debug-detailed]): Likewise.
4671 ([-fno-keep-inline-dllexport]): Likewise.
4672 ([-fira-algorithm]): Likewise.
4673 ([-fira-region]): Likewise.
4674 ([-flra-remat]): Likewise.
4675 ([-fipa-ra]): Likewise.
4676 ([-fhoist-adjacent-loads]): Likewise.
4677 ([-fisolate-erroneous-paths-dereference]): Likewise.
4678 ([-fisolate-erroneous-paths-attribute]): Likewise.
4679 ([-ftree-switch-conversion]): Likewise.
4680 ([-ftree-tail-merge]): Likewise.
4681 ([-ftree-loop-if-convert]): Likewise.
4682 ([-ftree-loop-if-convert-stores]): Likewise.
4683 ([-ftree-loop-distribution]): Likewise.
4684 ([-ftree-loop-distribute-patterns]): Likewise.
4685 ([-flto-compression-level]): Likewise.
4686 ([-flto-report]): Likewise.
4687 ([-flto-report-wpa]): Likewise.
4688 ([-fuse-linker-plugin]): Likewise.
4689 ([-mfix-cortex-a53-835769]): Likewise.
4690 ([-mno-fix-cortex-a53-835769]): Likewise.
4691 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
4692 explicit listing; add a note to the discussion indicating they
4693 exist. Reorder table to group similar options. Add missing
4694 @opindex entries. Add @need commands throughout the table to
4695 allow it to be split across multiple pages.
4696 ([-m8bit-idiv]): Fix @opindex.
4697 ([-mavx256-split-unaligned-load]): Likewise.
4698 ([-mavx256-split-unaligned-store]): Likewise.
4699 ([-mstack-protector-guard]): Likewise.
4700 ([-mcpu=]): Likewise.
4701 ([-mcpu]): Likewise.
4702 ([-mpointer-size=]): Likewise.
4704 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
4706 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
4707 instead of `m' constraint. Likewise for unnamed movb comparison
4708 patterns using reg_before_reload_operand predicate.
4709 * config/pa/predicates.md (reg_before_reload_operand): Tighten
4710 predicate to reject register index and LO_SUM DLT memory forms
4713 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
4715 * doc/invoke.texi (Option Summary): Fix spelling of
4716 -fdevirtualize-at-ltrans.
4717 ([-fdevirtualize]): Fix markup.
4718 ([-fdevirtualize-speculatively]): Fix typo.
4719 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
4721 * common.opt (fdevirtualize-at-ltrans): Likewise.
4722 * ipa-devirt.c: Fix typos in comments throughout the file.
4723 (ipa_devirt): Fix typos in format strings for dump output.
4725 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
4727 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
4728 discussion of defaults, light copy-editing.
4730 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4732 * tsan.c (instrument_expr): corrected previous checkin.
4734 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4736 Instrument bit field and unaligned accesses for TSAN.
4737 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
4738 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
4739 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
4740 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
4741 unaligned memory regions.
4743 2015-01-01 Anthony Green <green@moxielogic.com>
4745 * config/moxie/predicates.md (moxie_general_movsrc_operand):
4746 Restrict move source register offsets to 16 bits.
4748 Copyright (C) 2015 Free Software Foundation, Inc.
4750 Copying and distribution of this file, with or without modification,
4751 are permitted in any medium without royalty provided the copyright
4752 notice and this notice are preserved.