1 2015-02-11 Martin Liska <mliska@suse.cz>
4 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
5 a return value for call to a function that is noreturn.
7 2015-02-11 Richard Biener <rguenther@suse.de>
10 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
13 2015-02-11 Andrew Pinski <apinski@cavium.com>
16 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17 Change the first argument type to size_type_node and add another
19 (aarch64_simd_expand_builtin): Handle the new argument to
20 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
21 print an out when the first two arguments are not
22 nonzero integer constants.
23 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
24 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
26 2015-02-11 Jakub Jelinek <jakub@redhat.com>
29 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
30 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
31 (ix86_set_current_function): Rewritten.
32 (ix86_add_new_builtins): Temporarily clear current_target_pragma
33 when creating builtin fndecls.
35 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
40 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
42 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
43 (lto_output_varpool_node): Always output alias info.
44 (output_refs): Output refs of boundary aliases, too.
45 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
46 (output_symtab): Output call eges in thunks in boundary.
47 (get_alias_symbol): Remove.
48 (input_node, input_varpool_node): Do not special case weakrefs.
49 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
50 alias and thunks targets in the boundary; do not take removed symbols
51 from their comdat groups.
52 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
53 (cgraph_node::global_info): Remove.
54 (cgraph_node::rtl_info): Look through aliases and thunks.
55 * cgrpah.h (global_info): Remove.
56 (non_local_p): Remove.
58 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
59 Sandra Loosemore <sandra@codesourcery.com>
61 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
62 to inline asm. List dialects in proper order.
64 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
65 Sandra Loosemore <sandra@codesourcery.com>
67 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
69 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
71 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
72 modified) reference to Solaris.
74 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
76 * doc/extend.texi (Extended Asm): Fix typos.
78 2015-02-10 Jakub Jelinek <jakub@redhat.com>
81 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
83 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
86 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
87 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
88 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
89 * config/sh/constraints.md (Ara, Add): New constraints.
90 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
92 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
93 atomic_mem_operand_0. Don't use force_reg on the memory address.
94 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
95 Sra constraint. Convert to insn_and_split. Add workaround for
97 (atomic_compare_and_swap<mode>_hard): Copy to
98 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
99 Use atomic_mem_operand_0 predicate.
100 (atomic_compare_and_swap<mode>_soft_gusa,
101 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
103 (atomic_compare_and_swap<mode>_soft_tcb,
104 atomic_compare_and_swap<mode>_soft_imask,
105 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
106 atomic_mem_operand_0 predicate and SraSdd constraints.
107 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
109 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
110 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
111 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
112 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
113 force_reg on the memory address.
114 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
115 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
116 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
117 atomic_mem_operand_1 predicate and Sra constraint.
118 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
119 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
120 Use atomic_mem_operand_1 predicate.
121 (atomic_<fetchop_name><mode>_hard): Copy to
122 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
123 Use atomic_mem_operand_1 predicate.
124 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
125 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
126 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
127 insn_and_split. Use atomic_mem_operand_1 predicate.
128 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
129 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
130 Use atomic_mem_operand_1 predicate.
131 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
132 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
133 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
134 in generated insn with original mem operand before emitting the insn.
135 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
136 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
137 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
138 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
139 Use atomic_mem_operand_1 predicate and AraAdd constraints.
140 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
141 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
142 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
143 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
144 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
145 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
146 atomic_not_fetch<mode>_soft_tcb,
147 atomic_<fetchop_name>_fetch<mode>_soft_imask,
148 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
149 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
150 Use atomic_mem_operand_1 predicate and SraSdd constraints.
152 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
154 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
155 and 3 earlyclobber operands.
157 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
159 * common.opt (fstack-reuse): Mark as optimization.
161 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
164 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
166 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
168 PR tree-optimization/64326
169 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
171 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
173 PR gcov-profile/61889
174 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
176 2015-02-10 Richard Biener <rguenther@suse.de>
178 PR tree-optimization/64995
179 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
180 value we use is final.
181 (visit_reference_op_store): Always valueize op.
182 (visit_use): Properly valueize vuses.
184 2015-02-10 Richard Biener <rguenther@suse.de>
186 PR tree-optimization/64909
187 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
188 pass a scalar-stmt count estimate to the cost model.
189 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
191 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
193 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
194 enabled by default together with var-tracking.
196 2015-02-10 Nick Clifton <nickc@redhat.com>
198 * config/rl78/rl78.c: Remove DIV attribute code accidentally
199 included in previous rl78 commit.
201 2015-02-10 Richard Biener <rguenther@suse.de>
203 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
204 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
207 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
209 PR gcov-profile/61889
210 * config.in: regenerate.
211 * configure.in: Likewise.
212 * configure.ac: Check for ftw.h.
213 * gcov-tool.c: Check for ftw.h before using nftw.
215 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
218 * ipa-visibility.c (update_visibility_by_resolution_info): Only
219 assert when not in lto mode.
221 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
223 * ira-color.c (setup_left_conflict_sizes_p): Simplify
224 initialization/assignment of conflict_size.
226 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
229 * ipa-cp.c (gather_caller_stats): Skip thunks.
230 (propagate_constants_topo): Skip aliases.
232 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
235 * config/sh/sh.c (sh_option_override): Don't change
236 -freorder-blocks-and-partition to -freorder-blocks even when
237 unwinding is enabled.
238 (sh_can_follow_jump): Return false if the followee jump is
239 a crossing jump when -freorder-blocks-and-partition is specified.
240 * config/sh/sh.md (*jump_compact_crossing): New insn.
242 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
243 Kaz Kojima <kkojima@gcc.gnu.org>
246 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
247 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
248 (sh_can_redirect_branch): Rename to ...
249 (sh_can_follow_jump): ... this. Constify argument types.
250 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
251 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
252 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
253 * doc/tm.texi: Regenerate.
255 2015-02-09 Jakub Jelinek <jakub@redhat.com>
258 * builtins.c (expand_builtin): Call targetm.expand_builtin
259 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
261 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
264 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
266 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
269 * ipa-icf.c (set_local): New function.
270 (sem_function::merge): Use it.
272 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
274 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
275 (add_type_duplicate): Fix comparison of BINFOs.
277 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
279 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
280 on getting VOID pointer.
282 2015-02-09 Jakub Jelinek <jakub@redhat.com>
285 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
288 2015-02-09 Richard Biener <rguenther@suse.de>
290 * genmatch.c (replace_id): Copy expr_type.
292 2015-02-09 Richard Biener <rguenther@suse.de>
294 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
295 (streamer_write_tree_bitfields): Declare.
296 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
297 properly unpack padding.
298 (unpack_value_fields): Inline ...
299 (streamer_read_tree_bitfields): ... here.
300 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
301 and properly add padding bits.
302 (streamer_pack_tree_bitfields): Fold into ...
303 (streamer_write_tree_bitfields): ... this new function,
304 exposing the bitpack object.
305 * lto-streamer-out.c (lto_write_tree_1): Call
306 streamer_write_tree_bitfields.
308 2015-02-09 Richard Biener <rguenther@suse.de>
310 PR tree-optimization/54000
311 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
312 (struct ivopts_data): Add loop_loc member.
313 (tree_ssa_iv_optimize_loop): Dump loop location.
314 (create_new_ivs): Likewise, also dump number of IVs generated.
316 2015-02-09 Martin Liska <mliska@suse.cz>
318 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
319 just if not yet registered.
320 (ipa_icf_generate_summary): Register callgraph hooks.
322 2015-02-08 Andrew Pinski <apinski@cavium.com>
324 * config/aarch64/aarch64.c (gty_dummy): Delete.
326 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
329 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
330 (cgraph_node::local_p): Remove thunk related FIXME.
332 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
335 * i386.c (ix86_function_regparm): Look through aliases to see if callee
336 is local and optimized.
337 (ix86_function_sseregparm): Likewise; also use target's SSE math
338 settings; error out instead of silently generating wrong code
340 (init_cumulative_args): Look through aliases.
342 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
345 * ipa-split.c (execute_split_functions): Split if function has aliases.
347 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
350 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
351 aliases before trying to expand it.
352 (cgraph_node::expand_thunk): Fix formating.
354 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
356 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
357 (Using Assembly Language with C): Expand introduction.
358 (Basic Asm): Copy-edit. Add more information about uses of
360 (Extended Asm): Copy-edit. Document new escape syntax and
362 (Global Reg Vars): Copy-edit.
363 (Local Reg Vars): Likewise.
365 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
369 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
370 (DBX_CONTIN_CHAR): Define.
372 2015-02-06 Sebastian Pop <s.pop@samsung.com>
373 Brian Rzycki <b.rzycki@samsung.com>
375 PR tree-optimization/64878
376 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
377 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
378 Stop recursion at loop phi nodes after having visited a loop phi node.
380 2015-02-06 Jakub Jelinek <jakub@redhat.com>
382 * toplev.c (process_options): Change flag_ipa_ra before creating
383 optimization_{default,current}_node.
386 * cgraphunit.c (cgraph_node::expand_thunk): If
387 restype is not is_gimple_reg_type nor the thunk_fndecl
388 returns aggregate_value_p, set restmp to a temporary variable
391 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
393 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
395 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
398 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
399 add a general secondary reload handler for SDmode, unless we have
400 both read/write support for SDmode.
402 2015-02-06 Jakub Jelinek <jakub@redhat.com>
405 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
406 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
407 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
408 1 before, push it to abstract_vec.
409 (dwarf2out_abstract_function): Adjust caller. Don't call
410 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
411 DECL_ABSTRACT_P flags for all abstract_vec elts.
413 2015-02-06 Renlin Li <renlin.li@arm.com>
415 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
417 * tree-ssa.c (execute_update_addresses_taken): Likewise.
419 2015-02-06 Jeff Law <law@redhat.com>
422 * config/h8300/h8300.c (push): New argument "in_prologue".
423 Pass "in_prologue" along to "F".
424 (h8300_push_pop): Corresponding changes.
425 (h8300_expand_prologue): Likewise.
426 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
428 2015-02-06 Jakub Jelinek <jakub@redhat.com>
430 PR rtl-optimization/64957
432 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
433 IOR rather than for AND.
435 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
438 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
439 of shift-add and (add + shift) operations. Rename local variable.
441 2015-02-05 Jeff Law <law@redhat.com>
444 * config/h8300/constraints.md (U): Correctly dectect
445 "eightbit_data" memory addresses.
446 * config/h8300/h8300.c (eightbit_constant_address_p): Also
447 handle (const (plus (symbol_ref (x)))) where x is declared
448 as an 8-bit data memory address.
449 * config/h8300/h8300.md (call, call_value): Correctly detect
453 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
454 24 to 28 bits for the H8/300.
456 2015-02-06 Alan Modra <amodra@gmail.com>
459 * config/rs6000/rs6000.c (chain_already_loaded): New function.
460 (rs6000_call_aix): Use it.
462 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
464 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
467 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
469 * config/h8300/constraints.md ("U" constraint): Use strict
470 variant of REG_OK_FOR_BASE_P after reload has started.
472 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
474 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
475 define to zero if !TARGET_NEON.
476 (TARGET_CPU_CPP_BUILTINS): Added second condition before defining
479 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
480 Trevor Saunders <tsaunders@mozilla.com>
483 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
485 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
488 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
489 when removing varpool nodes.
491 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
494 * varpool.c (varpool_node::remove): Fix order of variables.
496 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
499 * ipa-inline.c (inline_small_functions): Fix ordering issue between
500 speculation resolution and key updates.
502 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
504 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
505 about not letting any speculative edges unupdated.
507 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
510 * gcov-io.c (gcov_var): Export.
512 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
515 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
516 edges that become speculative.
518 2015-02-04 Jakub Jelinek <jakub@redhat.com>
520 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
521 or DW_LANG_Fortran08.
522 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
524 (gen_compile_unit_die): Handle "GNU Fortran2003" and
525 "GNU Fortran2008" language strings.
526 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
527 * langhooks.h (lang_GNU_Fortran): New prototype.
528 * langhooks.c (lang_GNU_Fortran): New function.
529 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
532 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
534 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
535 (RTX_OK_FOR_OLO10_P): Likewise.
537 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
539 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
541 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
544 * gimple.c: Include gimple-ssa.h.
545 (maybe_remove_unused_call_args): New function.
546 * gimple.h (maybe_remove_unused_call_args): Declare.
547 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
548 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
549 * gimple-fold.c (gimple_fold_call): Likewise.
551 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
553 PR rtl-optimization/64905
554 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
555 pointer alignment if it isn't needed.
557 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
559 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
560 cortex-a72.cortex-a53.
561 * config/aarch64/aarch64-tune.md: Regenerate.
562 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
564 2015-02-04 Nick Clifton <nickc@redhat.com>
566 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
569 2015-02-04 Jakub Jelinek <jakub@redhat.com>
571 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
572 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
573 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
575 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
576 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
577 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
578 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
579 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
580 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
581 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
582 * tree-core.h (enum built_in_function): In between
583 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
584 for builtins that use DEF_BUILTIN_CHKP macro.
586 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
589 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
590 operands for tcc_comparison exprs. Fix typos.
593 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
594 of two XORs that have an intervening AND or IOR.
597 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
598 simplification of XOR of AND to not allocate new rtx before
599 committing to a simplification.
601 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
603 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
604 manual swaps in all peepholes.
606 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
608 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
609 of manual swapping implementation.
610 (aarch64_expand_vec_perm_const_1): Likewise.
612 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
614 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
615 (generic_addrcost_table): Remove NAMED_PARAM.
616 (cortexa57_addrcost_table): Likewise.
617 (xgene1_addrcost_table): Likewise.
618 (generic_regmove_table): Likewise.
619 (cortexa53_regmove_table): Likewise.
620 (xgene1_regmove_table): Likewise.
621 (generic_vector_table): Likewise.
622 (cortexa57_vector_table): Likewise.
623 (xgene1_vector_table): Likewise.
624 (generic_tunings): Likewise.
625 (cortexa53_tunings): Likewise.
626 (cortexa57_tunings): Likewise.
627 (xgene1_tunings): Likewise.
629 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
631 * config/arm/arm-cores.def: Add cortex-a72 and
632 cortex-a72.cortex-a53.
633 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
634 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
635 * config/arm/arm-tune.md: Regenerate.
636 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
637 "cortex-a72.cortex-a53".
638 * doc/invoke.texi (ARM Options/-mtune): Likewise.
640 2015-02-04 Nick Clifton <nickc@redhat.com>
643 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
645 (nonimmediate_di_operand): Likewise.
647 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
648 prefixes of known F5 using MSP430 MCUs.
650 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
652 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
653 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
654 instead of __builtin_sqrt.
656 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
658 * varasm.c (do_assemble_alias): Follow transparent alias
660 (default_assemble_visibility): Follow transparent alias
663 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
666 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
667 to compute size of referenced value in the constant case.
669 2015-02-03 Jakub Jelinek <jakub@redhat.com>
671 PR rtl-optimization/64756
672 * cse.c (invalidate_dest): New function.
673 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
674 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
675 invalidate and do not record it.
677 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
680 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
681 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
682 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
683 atomic_nand<mode>_soft_tcb): New insns.
684 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
685 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
686 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
687 Split into atomic_not_fetchsi_hard if operands[0] is unused.
688 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
689 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
690 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
691 atomic_not<mode>_hard if operands[0] is unused.
692 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
693 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
694 if operands[0] is unused.
695 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
696 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
697 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
698 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
700 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
701 into atomic_not<mode>_soft_tcb if operands[0] is unused.
702 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
703 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
704 if operands[0] is unused.
705 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
706 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
707 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
708 atomic_nand_fetchsi_hard if operands[0] is unused.
709 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
710 atomic_nand<mode>_hard if operands[0] is unused.
711 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
712 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
713 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
714 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
715 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
716 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
717 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
718 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
719 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
720 atomic_not<mode>_hard if operands[0] is unused.
721 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
722 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
724 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
725 into atomic_not<mode>_soft_tcb if operands[0] is unused.
726 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
727 atomic_nand<mode>_hard if operands[0] is unused.
728 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
729 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
731 2015-02-03 David Malcolm <dmalcolm@redhat.com>
734 * Makefile.in (GCC_OBJS): Add gcc-main.o.
735 * gcc-main.c: New file, containing "main" taken from gcc.c.
736 * gcc.c (do_self_spec): Free decoded_options.
737 (class driver): Move declaration to gcc.h.
738 (main): Move declaration and implementation to new file
740 (driver_get_configure_time_options): New function.
741 * gcc.h (class driver): Move this declaration here, from
743 (driver_get_configure_time_options): New declaration.
745 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
747 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
748 cross-module inlining.
749 * cgraph.h (cgraph_node): Add flag merged.
750 * ipa-icf.c (sem_function::merge): Maintain it.
752 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
754 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
757 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
760 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
761 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
762 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
763 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
765 2015-02-03 Jakub Jelinek <jakub@redhat.com>
768 * combine.c (reg_n_sets_max): New variable.
769 (can_change_dest_mode, reg_nonzero_bits_for_combine,
770 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
771 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
772 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
773 (rest_of_handle_combine): Initialize reg_n_sets_max.
775 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
777 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
778 if some always_inline was inlined, apply changes before inlining
781 2015-02-02 David Malcolm <dmalcolm@redhat.com>
784 * config/arm/arm.c (arm_option_override): Set
785 arm_selected_arch/cpu/tune to NULL on entry.
787 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
788 Andrew Pinski <pinskia@gcc.gnu.org>
789 Jakub Jelinek <jakub@gcc.gnu.org>
792 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
793 integer typing for small model. Use IN_RANGE.
795 2015-02-02 Richard Biener <rguenther@suse.de>
797 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
798 * tree-vrp.c (vrp_valueize_1): Likewise.
800 2015-02-02 Alan Modra <amodra@gmail.com>
802 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
803 than mem for toc_restore.
804 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
805 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
806 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
808 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
811 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
812 explicit default options.
814 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
817 * ipa-utils.c (ipa_merge_profiles): Add release argument.
818 * ipa-icf.c (sem_function::merge): Do not release body when merging.
819 * ipa-utils.h (ipa_merge_profiles): Update prototype.
821 2015-02-01 Jakub Jelinek <jakub@redhat.com>
824 * cfgexpand.c (deep_ter_debug_map): New variable.
825 (avoid_deep_ter_for_debug): New function.
826 (expand_debug_expr): If TERed SSA_NAME is in
827 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
828 instead of trying to expand SSA_NAME's def stmt.
829 (expand_debug_locations): When expanding debug bind
830 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
831 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
833 (pass_expand::execute): Call avoid_deep_ter_for_debug on
834 all debug bind stmts. Delete deep_ter_debug_map after
835 expand_debug_location if non-NULL and clear it.
837 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
840 * config/sh/sync.md (atomic_fetch_notsi_hard,
841 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
842 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
843 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
844 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
845 atomic_not_fetch<mode>_soft_imask): New insns.
847 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
849 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
850 (rank_for_schedule_debug): Split from ...
851 (rank_for_schedule): ... this.
852 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
853 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
855 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
857 * doc/md.texi (Machine Constraints): Alphabetize table by target.
858 * doc/extend.texi (x86 Variable Attributes): Move section to
859 correct alphabetization after renaming.
860 (x86 Type Attributes): Likewise.
861 (Target Builtins): Re-alphabetize menu.
862 (x86 Built-in Functions): Move section to correct alphabetization
864 (x86 transactional memory intrinsics): Likewise.
865 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
866 and x86 Windows Options in table and menu.
867 (x86 Options): Move section to correct alphabetization after
869 (x86 Windows Options): Likewise.
871 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
873 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
874 preferred names of the architecture and its 32- and 64-bit
876 * doc/invoke.texi: Likewise.
877 * doc/md.texi: Likewise.
879 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
882 * config/i386/predicates.md (address_no_seg_operand): Reject
883 non-CONST_INT_P operands in invalid mode.
885 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
887 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
888 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
889 * config/i386/predicates.md (address_no_seg_operand): Call
890 address_operand with VOIDmode.
891 (vsib_address_operand): Ditto.
892 (address_mpx_no_base_operand): Ditto.
893 (address_mpx_no_index_operand): Ditto.
895 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
898 * lra-constraints.c (original_subreg_reg_mode): New.
899 (simplify_operand_subreg): Try to simplify subreg of const. Use
900 original_subreg_reg_mode for it.
901 (swap_operands): Update original_subreg_reg_mode.
902 (curr_insn_transform): Set up original_subreg_reg_mode.
904 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
907 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
909 (process_alt_operands): Use it.
910 (curr_insn_transform): Check the optional reload pseudo class is
913 2015-01-30 Joseph Myers <joseph@codesourcery.com>
915 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
916 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
918 * toplev.h (init_asm_output): Update comment on use of
919 UNKNOWN_LOCATION with fatal_error.
920 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
921 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
922 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
923 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
924 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
925 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
926 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
927 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
928 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
929 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
930 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
931 fatal_error changed to pass input_location as first argument.
933 2015-01-30 Martin Liska <mliska@suse.cz>
935 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
936 in #pragma GCC diagnostic guards.
938 2015-01-30 Richard Biener <rguenther@suse.de>
940 PR tree-optimization/64829
941 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
942 not add a widening conversion pattern but hand off extra
943 widenings to callers.
944 (vect_recog_widen_mult_pattern): Handle extra widening produced
945 by vect_handle_widen_op_by_const.
946 (vect_recog_widen_shift_pattern): Likewise.
947 (vect_pattern_recog_1): Remove excess vertical space in dumping.
948 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
949 (vect_init_vector_1): Likewise.
950 (vect_get_vec_def_for_operand): Likewise.
951 (vect_finish_stmt_generation): Likewise.
952 (vectorizable_load): Likewise.
953 (vect_analyze_stmt): Likewise.
954 (vect_is_simple_use): Likewise.
956 2015-01-29 Jeff Law <law@redhat.com>
958 * combine.c (try_combine): Fix typo in comment.
960 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
963 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
964 (rs6000_stack_info): Add assert.
965 (rs6000_output_savres_externs): New function, split off from...
966 (rs6000_output_function_prologue): ... here. Do not call it for
969 2015-01-29 Jeff Law <law@redhat.com>
972 * combine.c (try_combine): If I0 is a memory load and I3 a store
973 to a related address, increase the "goodness" of doing a 4-insn
974 combination with I0-I3.
975 (make_field_assignment): Handle SUBREGs in the ior+and case.
977 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
979 PR tree-optimization/64746
980 * tree-if-conv.c (mask_exists): New function.
981 (predicate_mem_writes): Save created mask with given size for further
983 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
984 (ifcvt_repair_bool_pattern): Collect all statements that are root
985 of bool pattern and use iterative algorithm to remove multiple uses
986 of predicates, display number of required iterations.
988 2015-01-29 Richard Biener <rguenther@suse.de>
990 PR tree-optimization/64853
991 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
992 stmt will get simulated again.
993 * tree-ssa-ccp.c (valueize_op_1): Likewise.
995 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
997 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
998 return_in_pc. Remove redundant assignments.
999 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1000 (arm_expand_epilogue): Don't compare boolean with true in if condition.
1002 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
1004 * config/i386/i386.c (ix86_mode_after): Make static.
1006 2015-01-29 Richard Biener <rguenther@suse.de>
1008 PR tree-optimization/64844
1009 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1010 dump cost model analysis.
1011 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1012 Do not register adjusted load/store costs here.
1014 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1015 Uros Bizjak <ubizjak@gmail.com>
1017 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1018 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1019 using x86_use_pseudo_pic_reg.
1020 * config/i386/i386.c (ix86_conditional_register_usage): Remove
1021 support for fixed PIC register.
1022 (ix86_use_pseudo_pic_reg): Not static any more.
1024 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
1027 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1028 to avoid error in cgraph node verification.
1030 2015-01-29 Marek Polacek <polacek@redhat.com>
1032 * doc/standards.texi: Reflect that the default for C is gnu11.
1034 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
1037 * reorg.c (switch_text_sections_between_p): New function.
1038 (relax_delay_slots): Call it when testing if the jump insn
1039 is removable. Use targetm.can_follow_jump when testing if
1040 the conditional branch can follow an unconditional jump.
1042 2015-01-27 Caroline Tice <cmtice@google.com>
1044 Committing VTV Cywin/Ming patch for Patrick Wollgast
1045 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
1046 if -fvtable-verify=preinit/std is used.
1047 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
1048 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
1049 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
1050 if -fvtable-verify=preinit/std is used.
1051 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
1052 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
1053 if -fvtable-verify=preinit/std is used.
1054 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
1055 * config/i386/mingw32.h (LIB_SPEC): Likewise.
1056 * varasm.c (assemble_variable): Add code to properly set the comdat
1057 section and name for the .vtable_map_vars section in case the
1058 target is PE or COFF.
1060 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
1063 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
1064 make sane BB profile.
1065 (cgraph_node::expand_thunk): Make sane BB profile.
1066 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
1067 * cgraph.h (init_lowered_empty_function): Update prototype.
1068 * config/i386/i386.c (make_resolver_func): Update call.
1069 * predict.c (gate): Disable branch prediction pass if
1070 profile is already there.
1072 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
1074 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
1075 * opth-gen.awk: Likewise.
1076 * common.opt: Mark flag_fp_contract_mode as Optimization.
1078 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
1080 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
1081 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
1083 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
1086 * config/sh/predicates.md (atomic_arith_operand,
1087 atomic_logical_operand): Remove.
1088 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
1089 (atomic_arith_operand_0): New predicate.
1090 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
1091 Use atomic_arith_operand_0 for input values.
1092 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1093 atomic_compare_and_swap<mode>_soft_gusa,
1094 atomic_compare_and_swap<mode>_soft_tcb,
1095 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
1096 arith_reg_operand instead of register_operand.
1097 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
1098 atomic_arith_operand_0 for newval input.
1099 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1100 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
1101 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
1102 arith_reg_operand instead of register_operand.
1103 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
1104 fetchop_predicate_1, fetchop_constraint_1_llcs,
1105 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
1106 fetchop_constraint_1_imask): New code iterator attributes.
1107 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
1108 register_operand. Use fetchop_predicate_1.
1109 (atomic_fetch_<fetchop_name>si_hard,
1110 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
1111 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
1112 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
1113 and arith_reg_operand instead of register_operand. Use
1114 fetchop_predicate_1, fetchop_constraint_1_gusa.
1115 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
1116 and arith_reg_operand instead of register_operand. Use
1117 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
1119 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
1120 and arith_reg_operand instead of register_operand. Use
1121 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
1123 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
1124 register_operand. Use atomic_logical_operand_1.
1125 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
1126 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
1127 arith_reg_operand instead of register_operand.
1128 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
1129 Use arith_reg_dest and arith_reg_operand instead of register_operand.
1130 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
1131 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
1132 register_operand. Use fetchop_predicate_1.
1133 (atomic_<fetchop_name>_fetchsi_hard,
1134 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
1135 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1136 fetchop_constraint_1_llcs.
1137 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
1138 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1139 fetchop_constraint_1_gusa.
1140 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
1141 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1142 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
1143 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
1144 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
1145 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
1146 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
1147 register_operand. Use atomic_logical_operand_1.
1148 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
1149 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
1150 arith_reg_operand instead of register_operand.
1151 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
1152 arith_reg_operand instead of register_operand. Use logical_operand
1153 and K08. Adjust asm sequence to allow R0 usage.
1154 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
1155 arith_reg_operand instead of register_operand. Use logical_operand
1158 2015-01-28 Jakub Jelinek <jakub@redhat.com>
1161 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
1162 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
1163 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
1164 only get_full_len HOST_WIDE_INTs from get_val () array rather than
1165 all bits in *val_wide.
1167 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
1169 * varpool.c (tls_model_names): Fix names.
1170 (varpool_node::dump): Dump tls- prefix for tls models.
1172 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
1173 Bernd Schmidt <bernds@codesourcery.com>
1174 Nathan Sidwell <nathan@codesourcery.com>
1176 * config/nvptx/mkoffload.c: New file.
1177 * config/nvptx/t-nvptx: Add build rules for it.
1178 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
1179 (extra_programs): Add mkoffload.
1180 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
1182 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
1184 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
1187 * cfgexpand.c (reorder_operands): Skip debug gimples.
1189 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
1191 PR tree-optimization/64277
1192 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
1193 range info when possible to refine estimation.
1195 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
1197 PR tree-optimization/64718
1198 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
1199 be a 16bit unsigned integer when n->range is 16.
1200 (bswap_replace): Convert src to that type if necessary for all bswap
1201 sizes. Fix rotation right notation in nearby comment. Use bswap_type
1202 set in pass_optimize_bswap::execute ().
1204 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
1206 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
1207 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
1208 integer and floating point variants.
1209 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
1211 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
1213 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
1214 for all vector modes.
1216 2015-01-28 Jakub Jelinek <jakub@redhat.com>
1219 * doc/sourcebuild.texi (comdat_group): Document.
1221 2015-01-28 Terry Guo <terry.guo@arm.com>
1223 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
1225 2015-01-27 David Malcolm <dmalcolm@redhat.com>
1227 * toplev.c (print_version): Add param "show_global_state", and
1228 only print GGC and plugin information if it is true.
1229 (init_asm_output): Pass in "true" for the new param when calling
1231 (process_options): Likewise.
1232 (toplev::main): Likewise.
1233 * toplev.h (print_version): Add new param to decl.
1235 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
1239 * tree.c (lookup_binfo_at_offset): New function.
1240 (get_binfo_at_offset): Use it.
1242 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
1245 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
1246 on vtable being vtable.
1248 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
1250 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
1251 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
1253 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
1254 -mno-hotpatch options. Change syntax of -mhotpatch= option.
1255 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
1257 (s390_hotpatch_trampoline_halfwords_max): Renamed.
1258 (s390_hotpatch_hw_max): New name.
1259 (s390_hotpatch_trampoline_halfwords): Renamed.
1260 (s390_hotpatch_hw_before_label): New name.
1261 (get_hotpatch_attribute): Removed.
1262 (s390_hotpatch_hw_after_label): New name.
1263 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
1265 (s390_attribute_table): Ditto.
1266 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
1267 (s390_function_num_hotpatch_hw): New name.
1268 Remove special handling of inline functions and hotpatching.
1269 Return number of nops before and after the function label.
1270 (s390_can_inline_p): Removed.
1271 (s390_asm_output_function_label): Emit a configurable number of nops
1272 after the function label.
1273 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
1274 (TARGET_CAN_INLINE_P) Removed.
1275 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
1277 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1278 Jiong Wang <jiong.wang@arm.com>
1280 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
1282 (cb<optab><mode>1): Likewise.
1283 * config/aarch64/iterators.md (bcond): New define_code_attr.
1285 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1287 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
1290 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1292 * config/s390/s390.c (s390_register_move_cost): Increase costs for
1295 2015-01-27 Richard Biener <rguenther@suse.de>
1297 * tree-vrp.c (update_value_range): Intersect the range with
1298 old recorded SSA name range information.
1300 2015-01-27 Nick Clifton <nickc@redhat.com>
1302 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
1303 BC, DE and HL registers directly, not via AX.
1304 When decrementing the stack pointer by a large amount, transfer SP
1305 into AX and perform the subtraction there.
1306 (rl78_expand_epilogue): Perform the inverse of the above
1309 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1311 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
1313 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1314 Yury Gribov <y.gribov@samsung.com>
1317 * ubsan.c (ubsan_source_location): Refactor code.
1318 (ubsan_type_descriptor): Update type size. Refactor code.
1320 2015-01-27 Richard Biener <rguenther@suse.de>
1322 PR tree-optimization/56273
1323 PR tree-optimization/59124
1324 PR tree-optimization/64277
1325 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
1326 from the first VRP pass.
1328 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1331 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
1332 handle the first argument in the same loop as all the other arguments.
1334 PR rtl-optimization/61058
1335 * jump.c (cleanup_barriers): Update basic block boundaries
1336 if BLOCK_FOR_INSN is non-NULL on PREV.
1338 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
1340 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
1341 bounds narrowing, already instrumented calls and calls to
1342 not instrumentable functions.
1344 2015-01-27 Jakub Jelinek <jakub@redhat.com>
1346 PR tree-optimization/64807
1347 * wide-int.cc (wi::divmod_internal): Clear
1348 b_dividend[dividend_blocks_needed].
1350 2015-01-26 DJ Delorie <dj@redhat.com>
1352 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
1353 volatile memory references.
1355 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
1358 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
1360 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
1361 shifts if it already fits into K08.
1363 2015-01-26 Jakub Jelinek <jakub@redhat.com>
1366 * ipa-inline.c (inline_small_functions): Print "unknown" even
1367 if edge->call_stmt is non-NULL, but has builtins or unknown
1371 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
1372 with asterisk, skip the first character.
1374 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
1377 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
1380 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
1383 * config/i386/i386.md (*movdi_internal): Also check operand 0
1384 to determine TYPE_LEA operand.
1385 (*movsi_internal): Ditto.
1387 2015-01-26 Jakub Jelinek <jakub@redhat.com>
1389 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
1390 OPTION_MASK_QUAD_MEMORY_ATOMIC.
1392 2015-01-26 Renlin Li <renlin.li@arm.com>
1394 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
1396 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
1399 2015-01-26 Richard Biener <rguenther@suse.de>
1402 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
1403 combining two BIT_AND_EXPR predicates.
1405 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
1408 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
1410 2015-01-26 Terry Guo <terry.guo@arm.com>
1412 * config/arm/arm.c (arm_file_start): Update the assignment of
1415 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
1417 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
1419 config/arm/arm.md: Include the new Cortex-A57 model.
1420 (generic_sched): Don't use generic_sched when tuning for
1423 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
1424 Uros Bizjak <ubizjak@gmail.com>
1426 * config/i386/i386.c (get_builtin_code_for_version): Add
1427 support for BMI and BMI2 multiversion functions.
1429 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1431 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
1432 (extract_bit_field): Likewise.
1433 (extract_low_bits): Likewise.
1434 (expand_mult): Likewise.
1435 (expand_mult_highpart_adjust): Likewise.
1437 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
1439 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
1440 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
1441 * config/i386/i386.c (processor_model): Add
1442 M_INTEL_COREI7_BROADWELL.
1443 (arch_names_table): Add "broadwell".
1445 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
1454 * config/sh/sh-protos.h
1455 (sh_extending_set_of_reg::can_use_as_unextended_reg,
1456 sh_extending_set_of_reg::use_as_unextended_reg,
1457 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
1458 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
1459 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
1460 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
1461 (sh_treg_insns): New class.
1462 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
1463 (scope_counter): New class.
1464 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
1465 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
1466 sh_extending_set_of_reg::can_use_as_unextended_reg,
1467 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
1468 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
1469 sh_split_treg_set_expr): New functions.
1470 (addsubcosts): Handle treg_set_expr.
1471 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
1472 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
1473 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
1474 (sh_insn_operands_modified_between_p): Make non-static.
1475 * config/sh/predicates.md (zero_extend_movu_operand): Allow
1476 simple_mem_operand in addition to displacement_mem_operand.
1477 (zero_extend_operand): Don't allow zero_extend_movu_operand.
1478 (treg_set_expr, treg_set_expr_not_const01,
1479 arith_reg_or_treg_set_expr): New predicates.
1480 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
1481 arith_or_int_operand instead of logical_operand. Convert to
1482 insn_and_split. Try to optimize constant operand in splitter.
1483 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
1484 (*tstqi_t_zero): Delete.
1485 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
1486 (tstsi_t_and_not): Delete.
1487 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
1488 Convert to insn_and_split.
1489 (unnamed split, tstsi_t_zero_extract_xor,
1490 tstsi_t_zero_extract_subreg_xor_little,
1491 tstsi_t_zero_extract_subreg_xor_big): Delete.
1492 (*tstsi_t_shift_mask): New insn_and_split.
1493 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
1494 to recombine with surrounding insns when splitting.
1495 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
1496 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
1497 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
1498 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
1499 (*cbranch_div0s: Delete.
1500 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
1501 Try to recombine with surrounding insns when splitting. Add operand
1503 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
1504 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
1505 *addc_r_r_msb, *addc_2r_msb): Delete.
1506 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
1508 (*addc_negreg_t): New insn_and_split.
1509 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
1510 Try to recombine with surrounding insns when splitting.
1511 Add operand order variants.
1512 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
1513 insn_and_split patterns.
1514 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
1515 surrounding insns when splitting.
1516 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
1517 (*rotcl): Likewise. Add zero_extract variant.
1518 (*ashrsi2_31): New insn_and_split.
1519 (*negc): Convert to insn_and_split. Use treg_set_expr.
1520 (*zero_extend<mode>si2_disp_mem): Update comment.
1521 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
1523 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
1524 with surrounding insns when splitting.
1525 (any_treg_expr_to_reg): New insn_and_split.
1526 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
1527 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
1528 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
1529 *zero_extract_2): New single bit zero extract patterns.
1530 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
1531 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
1532 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
1533 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
1535 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
1536 register_operand for set source.
1538 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
1540 * i386.opt (prefetch_sse): New targetsave.
1541 * i386.c (ix86_function_specific_save): Save prefetch_sse.
1542 (ix86_function_specific_restore): Restore prefetch_sse and initialize
1543 ix86_cost/ix86_tune_cost.
1545 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1547 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1548 Support the JIT by using 0 as the language type.
1550 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
1553 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
1554 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
1555 (mark_regno_live, process_bb_lives): Pass new parameter value to
1556 make_hard_regno_born.
1558 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1560 PR rtl-optimization/63637
1561 PR rtl-optimization/60663
1562 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
1563 if elt->cost is MAX_COST for ASM_OPERANDS.
1564 (find_sets_in_insn): Fix up comment typo.
1565 (cse_insn): Don't set src_volatile for all non-volatile
1566 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
1567 or with "memory" clobber. Set elt->cost to MAX_COST
1568 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
1569 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
1571 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
1573 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
1576 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
1578 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
1579 libgcc/config/i386/elf-lib.h.
1581 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1584 * gcc.c (print_configuration): Don't print a blank line at the end
1586 (run_attempt): ... but here unstead.
1589 * omp-low.c (scan_sharing_clauses): Don't ignore
1590 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
1591 on target data/update constructs.
1593 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
1596 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
1597 (DEBUG_RELOAD): Removed define.
1598 (m32c_limit_reload_class): Enable traces with if DEBUG0.
1599 (m32c_function_arg): Added a type cast.
1600 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
1601 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
1602 * config/m32c/bitops.md (andqi3_16): Likewise.
1603 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
1604 (push_a01_l): Likewise.
1606 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1609 * main.c (main): Construct toplev instances with init_signals=true.
1610 * toplev.c (general_init): Add param "init_signals", and use it to
1611 conditionalize the calls to signal and host_hooks.extra_signals.
1612 (toplev::toplev): Add param "init_signals".
1613 (toplev::main): When invoking general_init, pass m_init_signals
1614 to control whether signal-handlers are installed.
1615 * toplev.h (toplev::toplev): Add param "init_signals".
1616 (toplev::m_init_signals): New field.
1618 2015-01-23 David Malcolm <dmalcolm@redhat.com>
1621 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
1622 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
1623 latter may be affected by the former (e.g. on i686).
1625 2015-01-23 Martin Liska <mliska@suse.cz>
1627 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
1628 false positive during profiledbootstrap.
1630 2015-01-23 Tom de Vries <tom@codesourcery.com>
1633 * lto-opts.c (lto_write_options): Output non-explicit conservative
1635 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
1636 (append_compiler_options): Pass -fopenacc through.
1638 2015-01-23 Tom de Vries <tom@codesourcery.com>
1641 * lto-opts.c (lto_write_options): Output non-explicit conservative
1643 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
1644 (append_compiler_options): Pass -fopenmp through.
1646 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1649 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
1652 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
1653 * diagnostic.def (DK_ICE_NOBT): New kind.
1654 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
1655 like DK_ICE, but never print backtrace.
1656 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
1657 (internal_error_no_backtrace): New function.
1658 * gcc.c (execute): Use internal_error_no_backtrace instead of
1661 2015-01-22 Jeff Law <law@redhat.com>
1664 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
1665 improve code density for small immediate to memory case.
1666 (insv): Better handle bitfield assignments when the field is
1667 being set to all ones.
1668 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
1671 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1672 Jakub Jelinek <jakub@redhat.com>
1674 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
1675 for !TARGET_LIBC_PROVIDES_SSP version and
1676 -fstack-protector-{all,strong,explicit} otherwise.
1677 * config/freebsd.h (LINK_SSP_SPEC): Handle
1678 -fstack-protector-{strong,explicit}.
1680 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
1681 H.J. Lu <hongjiu.lu@intel.com>
1684 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
1687 2015-01-22 Wei Mi <wmi@google.com>
1689 PR rtl-optimization/64557
1690 * dse.c (record_store): Call get_addr for mem_addr.
1691 (check_mem_read_rtx): Likewise.
1693 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
1695 * fold-const.c (const_binop): Add early return for non-tcc_binary.
1697 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
1699 * toplev.c (init_local_tick): Process the failure when read
1700 fails for random_seed.
1702 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
1703 'pretty_name' to avoid memory overflow.
1705 2015-01-22 Richard Biener <rguenther@suse.de>
1708 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
1709 abnormal coalescing on undefined SSA names.
1711 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
1715 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
1717 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
1719 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
1722 * fold-const.c (fold_checksum_tree): Don't include value of
1723 expr->decl_with_vis.symtab_node in the checksum.
1725 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1727 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
1729 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
1732 * gcc.c (insert_comments): New function.
1733 (try_generate_repro): Call it.
1734 (append_text): Removed.
1736 2015-01-22 Richard Biener <rguenther@suse.de>
1738 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
1739 with IL incompatible options. Properly honor user optimize
1742 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
1744 PR rtl-optimization/64682
1745 * combine.c (distribute_notes): When moving a death note for
1746 a register that is set in the new I2, make sure to put it
1749 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
1751 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
1754 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1757 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
1758 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
1759 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
1762 * doc/invoke.texi (-fsanitize=vptr): Document.
1764 PR rtl-optimization/62078
1765 * dse.c: Include cfgcleanup.h.
1766 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
1767 anything call purge_all_dead_edges and cleanup_cfg at the end
1770 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
1772 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
1775 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1777 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
1780 2015-01-21 David Sherwood <david.sherwood@arm.com>
1781 Tejas Belagod <Tejas.Belagod@arm.com>
1783 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
1784 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
1785 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
1788 2015-01-21 David Sherwood <david.sherwood@arm.com>
1789 Tejas Belagod <Tejas.Belagod@arm.com>
1791 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
1792 (aarch64_reverse_mask): New decls.
1793 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
1794 (insn_count): New mode_attr.
1795 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
1796 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
1797 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
1798 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
1799 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
1800 (aarch64_simd_st4): New patterns.
1801 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
1802 (aarch64_reverse_mask): New functions.
1804 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
1806 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
1808 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
1809 addressing modes for BE.
1810 (aarch64_print_operand): Add 'R' specifier.
1811 (aarch64_simd_disambiguate_copy): Delete.
1812 (aarch64_simd_emit_reg_reg_move): New function.
1813 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
1814 in define_splits for structural moves.
1815 (mov<mode>): Use less restrictive predicates.
1816 (*aarch64_mov<mode>): Simplify and only allow for LE.
1817 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
1819 2015-01-21 Alan Hayward <alan.hayward@arm.com>
1821 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
1823 2015-01-21 Richard Henderson <rth@redhat.com>
1826 * ccmp.c (used_in_cond_stmt_p): Remove.
1827 (expand_ccmp_expr): Don't use it.
1829 2015-01-21 Nick Clifton <nickc@redhat.com>
1831 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
1834 2015-01-21 Richard Biener <rguenther@suse.de>
1837 * tree-core.h (builtin_info, builtin_info_type): Turn from
1838 an object with two arrays into an array of an object with
1839 decl and two flags, implicit_p and declared_p.
1840 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
1841 set_builtin_decl, set_builtin_decl_implicit_p,
1842 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
1843 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
1844 * builtins.c (builtin_info): Adjust.
1845 * gimplify.c (gimplify_addr_expr): References to builtins
1846 that have been declared by the user makes them eligible for
1847 use by the compiler. Call set_builtin_decl_implicit_p on them.
1849 2015-01-20 Jeff Law <law@redhat.com>
1852 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
1853 allow pc-relative addresses in operand predicates or constraints.
1855 2015-01-21 Bin Cheng <bin.cheng@arm.com>
1857 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
1858 neon on aarch32 processors for stringops.
1860 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1863 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
1865 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1868 * ipa-inline.c: Include lto-streamer.h
1869 (report_inline_failed_reason): Output source file differences and
1870 flags on optimization/target node mismatch.
1871 (can_inline_edge_p): Consider caller to be the outer inline function;
1872 be less restrictive about matching opimize and optimize_size attributes.
1873 (inline_account_function_p): Break out from ...
1874 (inline_small_functions): ... here.
1875 * ipa-inline-transform.c (clone_inlined_nodes): Use
1876 inline_account_function_p.
1877 (inline_call): Use optimize attribution; use inline_account_function_p.
1878 (inline_transform): Use opt_for_fn.
1879 * ipa-inline.h (inline_account_function_p): Declare.
1881 2015-01-20 Jakub Jelinek <jakub@redhat.com>
1884 * dwarf2out.c (decl_piece_node): Don't put bitsize into
1885 mode if bitsize <= 0.
1886 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
1887 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
1888 sizes and positions.
1890 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
1892 * config/nios2/nios2.c (nios2_asm_file_end): Implement
1893 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
1895 (TARGET_ASM_FILE_END): Define.
1897 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1899 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
1900 (struct tune_params): Use the enum.
1901 * arm.c (arm_*_tune): Update.
1902 (arm_option_override): Update.
1904 2015-01-20 Richard Biener <rguenther@suse.de>
1907 * ipa-reference.c (add_static_var): Inline ...
1908 (analyze_function): ... here after splitting out from ...
1909 (is_proper_for_analysis): ... this.
1911 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
1914 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
1915 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
1916 replace the conditional with it's true branch.
1917 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
1918 (arm_lra_p): Remove.
1920 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
1922 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
1924 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1926 * config/tilegx/mul-tables.c: Move symtab.h include after
1927 coretypes.h include.
1928 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
1929 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
1930 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
1931 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
1932 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1934 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
1938 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1940 PR rtl-optimization/64081
1941 * loop-iv.c (def_pred_latch_p): New function.
1942 (latch_dominating_def): Allow specific cases with non-single
1944 (iv_get_reaching_def): Likewise.
1945 (check_complex_exit_p): New function.
1946 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1947 with exits not executing on any iteration.
1949 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1952 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
1955 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1958 * i386.c (gate): Check flag_expensive_optimizations and
1960 (ix86_option_override_internal): Drop optimize_size condition
1961 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
1962 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
1964 (ix86_avx256_split_vector_move_misalign,
1965 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
1966 * sse.md (all uses of TARGET_PREFER_AVX128): Add
1967 optimize_insn_for_speed_p check.
1969 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
1971 * config/mips/mips.h (FP_ASM_SPEC): New define.
1972 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
1975 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
1978 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
1979 nullptr for insn when reaching the first insn.
1980 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
1981 (sh_insn_operands_modified_between_p): Add nullptr check.
1982 (sh_find_extending_set_of_reg): Fix log message. Don't accept
1983 sign extending mem load if the insn contains any UNSPEC or
1986 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1988 * params.def (inline-unit-growth): Drop to 15%.
1989 * invoke.texi (inline-unit-growth): Document change.
1991 2015-01-19 Martin Liska <mliska@suse.cz>
1994 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
1995 function for second argument of OBJ_TYPE_REF.
1997 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2000 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2001 whether function is an alias.
2003 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
2005 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2008 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
2010 PR rtl-optimization/64671
2011 * lra-remat.c (operand_to_remat): Don't consider jump and call
2014 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
2016 * config/rs6000/default64.h: Include rs6000-cpus.def.
2017 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2018 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2019 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2021 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2023 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2024 pseudo-op to specify assembler dialect.
2026 2015-01-19 Martin Liska <mliska@suse.cz>
2029 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2030 Handle safe potentially removed nodes during filtering.
2032 2015-01-19 Martin Liska <mliska@suse.cz>
2034 * doc/extend.texi (no_icf): Add new attribute description.
2035 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2036 where the pass attempts to merge a function with no_icf attribute.
2038 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2041 * doc/md.texi (ARM Options): Document register constraints.
2043 2015-01-19 Jiong Wang <jiong.wang@arm.com>
2044 Andrew Pinski <apinski@cavium.com>
2047 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
2048 (ashl<mode>3): Don't expand if operands[2] is not constant.
2050 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2053 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
2054 Match xor-and-xor RTL pattern.
2056 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
2058 PR rtl-optimization/64081
2059 * loop-iv.c (def_pred_latch_p): New function.
2060 (latch_dominating_def): Allow specific cases with non-single
2062 (iv_get_reaching_def): Likewise.
2063 (check_complex_exit_p): New function.
2064 (check_simple_exit): Use check_complex_exit_p to allow certain cases
2065 with exits not executing on any iteration.
2067 2015-01-19 Jakub Jelinek <jakub@redhat.com>
2069 * common.opt (fgraphite): Fix a typo.
2071 2015-01-19 Felix Yang <felix.yang@huawei.com>
2073 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
2075 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
2076 uminp, smax_nanp, smin_nanp): New builtins.
2077 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
2078 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
2079 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
2080 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
2081 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
2082 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
2083 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
2084 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
2085 vpminnms_f32): Rewrite using builtin functions.
2087 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
2090 * omp-low.c (offload_symbol_decl): Remove variable.
2091 (get_offload_symbol_decl): Remove function.
2092 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
2093 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
2094 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
2095 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
2096 BUILT_IN_GOACC_UPDATE don't pass it at all.
2098 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2100 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
2103 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
2105 * ipa-chkp.c (chkp_produce_thunks): Add early param
2106 to split thunks production into two passes. Keep
2107 'always_inline' function bodies after the first pass.
2108 (pass_data_ipa_chkp_early_produce_thunks): New.
2109 (pass_ipa_chkp_early_produce_thunks): New.
2110 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
2111 chkp_produce_thunks signature.
2112 (make_pass_ipa_chkp_early_produce_thunks): New.
2113 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
2114 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
2115 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
2117 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2119 * cgraph.c (cgraph_node::dump): Dump profile flags.
2121 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
2124 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
2125 reg appear first in the parallel.
2127 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2129 * ipa-reference.c (set_reference_optimization_summary,
2130 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
2132 (ignore_module_statics): New static var.
2133 (propagate_bits): If ipa-reference is disabled, do not look into local
2135 (analyze_function): Disable analysis when ipa_reference is disabled.
2136 (generate_summary): Do not dump when reference is disabled;
2137 collect vars accessed from functions with ipa-reference disabled.
2138 (get_read_write_all_from_node): When ipa-reference is disabled, use the
2140 (gate): Enable for LTO.
2141 (ignore_edge_p): New function.
2142 (propagate): Skip functions w/o ipa-reference analysis.
2143 * optc-save-gen.awk: Handle optimize_debug correctly.
2144 * opth-gen.awk: Likewise.
2145 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
2146 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
2147 fira-share-save-slots, fira-share-spill-slots,
2148 fmodulo-sched-allow-regmoves, fpartial-inlining,
2149 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
2150 ftracer, ftree-parallelize-loops, fassociative-math,
2151 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
2153 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
2154 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
2156 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
2159 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
2162 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
2164 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
2166 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
2168 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
2169 Remove duplicate option listings.
2171 2015-01-18 Felix Yang <felix.yang@huawei.com>
2173 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
2174 (autofdo_source_profile::get_callsite_total_count,
2175 function_instance::get_function_instance_by_decl,
2176 string_table::get_index, string_table::get_index_by_decl,
2177 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
2178 Fix comment typos. Reformatting and minor code rearrangement.
2180 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2182 * config/rs6000/rs6000.md (probe_stack): Delete.
2183 (probe_stack_address): New.
2185 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2187 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
2188 to test for 32-bit ABIs, not !TARGET_POWERPC64.
2190 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
2192 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
2193 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
2194 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
2196 (rs6000_libcall_value): Use the new function.
2198 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
2200 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
2202 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
2204 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
2205 implement a more precise life analysis for it during backward scan.
2207 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2209 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
2211 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
2213 PR rtl-optimization/52773
2214 * calls.c (emit_library_call_value): When pushing arguments use
2215 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
2216 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
2217 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
2219 2015-01-17 Jeff Law <law@redhat.com>
2221 PR rtl-optimization/32790
2222 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
2223 not ZERO_EXTEND in SET_DESTs.
2225 2015-01-17 Alan Modra <amodra@gmail.com>
2227 * cprop.c (do_local_cprop): Revert last change.
2229 2015-01-16 DJ Delorie <dj@redhat.com>
2230 Nick Clifton <nickc@redhat.com>
2232 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
2233 (addhi3_real): Likewise. Fix [HL+0] syntax.
2234 (subqi3_real): Likewise.
2235 (subhi3_real): Likewise.
2236 (cbranchqi4_real): Likewise. Allow saddr,#imm.
2237 (cbranchhi4_real): Likewise.
2238 (cbranchhi4_real_inverted): Likewise.
2239 (cbranchsi4_real_lt): Likewise.
2240 (cbranchsi4_real_ge): Likewise.
2241 (cbranchsi4_real_ge): Likewise.
2242 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
2243 (sub<mode>3_virt): Likewise.
2244 (cbranchqi4_virt): Likewise.
2245 (cbranchhi4_virt): Likewise.
2246 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
2247 always use '[reg+imm]' even when imm is zero.
2248 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
2249 (rl78_general_operand): New.
2250 (rl78_nonimmediate_operand): New.
2251 (rl78_nonfar_operand): Use them.
2252 (rl78_nonfar_nonimm_operand): Likewise.
2253 (rl78_stack_based_mem): Fix.
2254 * config/rl78/constraints.md (Ibqi): New.
2259 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
2262 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
2264 * config/rl78/constrains (Qs8): New constraint.
2265 * config/rl78/rl78.c (rl78_flags_already_set): New function.
2266 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
2267 * config/rl78/rl78-real.md (update_Z): New attribute.
2268 Update patterns to set it.
2269 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
2270 shorter compare and branch sequence can be used.
2271 (cbranchhi4_real): Likewise.
2272 (cbranchhi4_real_inverted): Likewise.
2274 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
2275 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
2277 * config/rl78/rl78.c (rl78_get_name_encoding): New.
2278 (rl78_option_override): Allow -mes0 only if C.
2279 (characterize_address): Support subregs of symbol_refs.
2280 (rl78_addr_space_address_mode): Move. Add __near.
2281 (rl78_far_p): Likewise.
2282 (rl78_addr_space_pointer_mode): Likewise.
2283 (rl78_as_legitimate_address): Likewise.
2284 (rl78_addr_space_subset_p): Likewise.
2285 (rl78_addr_space_convert): Likewise.
2286 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
2288 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
2290 (rl78_alloc_physical_registers_op1): Change logic to prefer
2291 symbol[BC] addressing.
2292 (frodata_section): New.
2293 (rl78_asm_init_sections): Initialize it.
2294 (rl78_select_section): Put __far readonly symbols in .frodata.
2295 (rl78_make_type_far): New.
2296 (rl78_insert_attributes): Force all readonly symbols to be
2298 (rl78_asm_out_integer): New.
2299 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
2300 * config/rl78/rl78.opt (-mes0): New.
2302 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
2303 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2304 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2305 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
2306 (rl78_saddr_p): New.
2307 (rl78_output_aligned_common): New.
2308 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
2309 (rl78_handle_saddr_attribute): New.
2310 (rl78_handle_naked_attribute): New.
2311 (rl78_attribute_table): Add saddr.
2312 (rl78_print_operand_1): Don't print '!' on saddr operands.
2313 (rl78_print_operand_1): Strip encodings.
2315 (rl78_strip_name_encoding): New.
2316 (rl78_attrlist_to_encoding): New.
2317 (rl78_encode_section_info): New.
2318 (rl78_asm_init_sections): New.
2319 (rl78_select_section): New.
2320 (rl78_output_labelref): New.
2321 (rl78_output_aligned_common): New.
2322 (rl78_asm_out_integer): New.
2323 (rl78_asm_ctor_dtor): New.
2324 (rl78_asm_constructor): New.
2325 (rl78_asm_destructor): New.
2327 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
2328 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
2329 (transcode_memory_rtx): Update.
2330 (rl78_expand_epilogue): Use A_REG instead of 0.
2332 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2334 * config/arm/arm-protos.h (struct tune_params): New field
2335 sched_autopref_queue_depth.
2336 * config/arm/arm.c (sched-int.h): Include header.
2337 (arm_first_cycle_multipass_dfa_lookahead_guard,)
2338 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
2339 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
2340 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
2341 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
2342 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
2343 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
2344 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
2345 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
2346 * config/arm/t-arm (arm.o): Update.
2347 * haifa-sched.c (update_insn_after_change): Update.
2348 (rank_for_schedule): Use auto-prefetcher model, if requested.
2349 (autopref_multipass_init): New static function.
2350 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
2351 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
2352 variable for debug dumps.
2353 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
2354 (autopref_multipass_dfa_lookahead_guard): New global function that
2355 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
2356 (init_h_i_d): Update.
2357 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
2358 * sched-int.h (enum autopref_multipass_data_status): New const enum.
2359 (autopref_multipass_data_): Structure for auto-prefetcher data.
2360 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
2361 (struct _haifa_insn_data:autopref_multipass_data): New field.
2362 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
2363 (autopref_multipass_dfa_lookahead_guard): Declare.
2365 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2367 * rtlanal.c (get_base_term): Handle SCRATCH.
2369 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2371 * config/aarch64/aarch64.c
2372 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
2373 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2375 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
2376 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2378 2015-01-17 Alan Modra <amodra@gmail.com>
2380 * cprop.c (do_local_cprop): Disallow replacement of fixed
2383 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2386 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
2389 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2391 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
2392 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
2394 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2396 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
2397 * config/arm/thumb1.md: ... Here.
2399 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2401 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
2402 TImode for TARGET_32BIT.
2404 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2406 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
2407 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
2409 (rs6000_abi_word_mode): New function.
2411 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2413 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
2414 instead of UNITS_PER_WORD to describe the size of stack slots.
2416 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2418 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
2419 as rs6000_promote_function_mode. Move comment to there.
2420 (rs6000_promote_function_mode): New function.
2422 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
2424 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
2425 -mpowerpc64 is active.
2427 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
2430 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
2433 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
2435 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
2436 introduced in revision 219724.
2438 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2439 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2442 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
2443 destination is not a GP reg.
2444 (*movdi_aarch64): Likewise.
2446 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
2449 * config/rs6000/default64.h: Revert ISA change.
2451 2015-01-16 Richard Biener <rguenther@suse.de>
2454 * tree-ssa-uninit.c: Include tree-cfg.h.
2455 (MAX_SWITCH_CASES): New define.
2456 (convert_control_dep_chain_into_preds): Handle switch statements.
2457 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
2458 (normalize_one_pred_1): Do not split bit-manipulations.
2461 2015-01-16 Richard Biener <rguenther@suse.de>
2463 PR tree-optimization/64568
2464 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
2465 complex load rewriting for TARGET_MEM_REFs.
2467 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
2469 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
2471 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
2474 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
2476 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
2477 (aarch64_lra_p): Remove.
2479 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
2482 * ipa-chkp.h (chkp_instrumentable_p): New.
2483 * ipa-chkp.c: Include tree-inline.h.
2484 (chkp_instrumentable_p): New.
2485 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
2486 Fix processing of not instrumentable functions.
2487 (chkp_versioning): Use chkp_instrumentable_p. Warn about
2488 not instrumentable functions.
2489 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
2490 chkp_instrumentable_p.
2491 * tree-inline.h (copy_forbidden): New.
2492 * tree-inline.c (copy_forbidden): Not static anymore.
2494 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2496 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
2499 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
2501 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
2502 type OP_OUT to OP_INOUT.
2504 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
2506 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
2507 (high x) y) to y if x and y have the same base.
2509 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
2511 * config/arm/cortex-a57.md: New.
2512 * config/aarch64/aarch64.md: Include it.
2513 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
2514 * config/aarch64/aarch64-tune.md: Regenerate.
2516 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
2519 * ccmp.c (expand_ccmp_next): New function.
2520 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
2521 and compare insn sequence.
2522 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2523 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
2524 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
2525 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
2526 (*ccmp_ior): Changed to ccmp_ior<mode>.
2527 (cmp<mode>): New pattern.
2528 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
2530 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
2532 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
2534 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
2535 _mm256_bsrli_epi128): New.
2536 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
2538 2015-01-15 Jiong Wang <jiong.wang@arm.com>
2540 * expmed.c (store_bit_field_using_insv): Improve warning message.
2541 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
2543 2015-01-15 Jiong Wang <jiong.wang@arm.com>
2545 PR rtl-optimization/64011
2546 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
2547 there is partial overflow.
2549 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2551 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
2553 (nds32_expand_epilogue_v3pop): Likewise.
2554 * config/nds32/nds32.md (sibcall): Define this for sibling call
2556 (sibcall_register): Likewise.
2557 (sibcall_immediate): Likewise.
2558 (sibcall_value): Likewise.
2559 (sibcall_value_register): Likewise.
2560 (sibcall_value_immediate): Likewise.
2561 (sibcall_epilogue): Likewise.
2562 (epilogue): Pass false to indicate this is not a sibcall epilogue.
2563 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
2564 (nds32_expand_epilogue_v3pop): Likewise.
2566 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2568 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
2569 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
2570 (return_internal): New.
2571 (return): Define this named pattern.
2572 (simple_return): Define this named pattern.
2573 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
2574 pattern instead of unspec_volatile_func_return.
2575 (nds32_expand_epilogue_v3pop): Likewise.
2576 (nds32_can_use_return_insn): New function.
2578 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2580 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
2581 * config/nds32/nds32.md (pop25return): New.
2582 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
2583 pop25return pattern.
2585 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2587 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
2588 -mforbid-fp-as-gp, and -mex9 options.
2590 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
2592 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
2593 remove -mgp-direct option.
2595 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2597 * doc/invoke.texi (--param early-inlining-insns): Update default value.
2598 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
2600 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2602 * ipa-inline.c (inline_small_functions): Work around hints
2605 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
2608 * doc/invoke.texi (Option Summary): Document new Nios II
2610 (Nios II Options): Likewise.
2611 * config/nios2/nios2.opt: Add -mgpopt= option support.
2612 Modify existing -mgpopt and -mno-gpopt options to be aliases.
2613 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
2614 * config/nios2/nios2.c (nios2_option_override): Adjust
2616 (nios2_in_small_data_p): Return true for explicit small data
2617 sections even with -G0.
2618 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
2621 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2624 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
2626 (inline_call): Fix removal of aliases.
2628 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2630 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
2631 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
2632 * opts.c (common_handle_option): Add -fsanitize=vptr.
2633 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
2634 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
2635 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
2636 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
2637 (ubsan_expand_vptr_ifn): New prototype.
2638 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
2639 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
2640 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
2641 expand_LOOP_VECTORIZED): Make argument nameless, remove
2643 (expand_UBSAN_VPTR): New function.
2644 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
2646 (UBSAN_VPTR): New internal function.
2647 * sanopt.c (tree_map_traits): Renamed to ...
2648 (sanopt_tree_map_traits): ... this.
2649 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
2650 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
2651 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
2652 (maybe_optimize_ubsan_vptr_ifn): New function.
2653 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
2654 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
2656 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
2657 internal calls like pure functions for aliasing, even when they
2658 have other side-effects that prevent making them ECF_PURE.
2659 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
2660 (ubsan_expand_vptr_ifn): New function.
2662 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
2664 PR rtl-optimization/64110
2665 * stmt.c (parse_output_constraint): Process '^' and '$'.
2666 (parse_input_constraint): Ditto.
2667 * lra-constraints.c (process_alt_operands): Process the new
2669 * ira-costs.c (record_reg_classes): Process the new constraint
2671 * genoutput.c (indep_constraints): Add '^' and '$'.
2672 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
2673 * doc/md.texi: Add description of the new constraints.
2675 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2676 Bernd Schmidt <bernds@codesourcery.com>
2677 Cesar Philippidis <cesar@codesourcery.com>
2678 James Norris <jnorris@codesourcery.com>
2679 Tom de Vries <tom@codesourcery.com>
2680 Ilmir Usmanov <i.usmanov@samsung.com>
2681 Dmitry Bocharnikov <dmitry.b@samsung.com>
2682 Evgeny Gavrin <e.gavrin@samsung.com>
2683 Jakub Jelinek <jakub@redhat.com>
2685 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
2686 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
2687 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
2689 * builtins.c: Include "gomp-constants.h".
2690 (expand_builtin_acc_on_device): New function.
2691 (expand_builtin, is_inexpensive_builtin): Handle
2692 BUILT_IN_ACC_ON_DEVICE.
2693 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
2695 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
2697 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
2698 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
2699 i386/intelmic-offload.h.
2700 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
2701 to libgomp and its dependencies.
2702 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
2703 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2704 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2705 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2706 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2707 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2708 * doc/generic.texi: Update for OpenACC changes.
2709 * doc/gimple.texi: Likewise.
2710 * doc/invoke.texi: Likewise.
2711 * doc/sourcebuild.texi: Likewise.
2712 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
2713 GF_OMP_FOR_KIND_OACC_LOOP.
2714 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
2715 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
2716 GF_OMP_TARGET_KIND_OACC_UPDATE,
2717 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2719 * gimple.c: Update comments for OpenACC changes.
2720 * gimple.def: Likewise.
2721 * gimple.h: Likewise.
2722 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
2723 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2724 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
2725 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2726 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
2728 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
2729 * gimplify.c: Include "gomp-constants.h".
2730 Update comments for OpenACC changes.
2731 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
2732 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
2733 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2734 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2735 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2736 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2737 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
2738 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2739 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2741 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
2742 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2743 OMP_CLAUSE_SET_MAP_KIND.
2744 (gimplify_oacc_cache): New function.
2745 (gimplify_omp_for): Handle OACC_LOOP.
2746 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
2748 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
2749 OACC_EXIT_DATA, OACC_UPDATE.
2750 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
2751 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
2752 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
2753 (gimplify_body): Consider flag_openacc next to flag_openmp.
2754 * lto-streamer-out.c: Include "gomp-constants.h".
2755 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
2756 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
2757 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
2758 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
2759 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
2760 (BUILT_IN_ACC_ON_DEVICE): New builtins.
2761 * omp-low.c: Include "gomp-constants.h".
2762 Update comments for OpenACC changes.
2763 (struct omp_context): Add reduction_map, gwv_below, gwv_this
2765 (extract_omp_for_data, use_pointer_for_field, install_var_field)
2766 (new_omp_context, delete_omp_context, scan_sharing_clauses)
2767 (create_omp_child_function, scan_omp_for, scan_omp_target)
2768 (check_omp_nesting_restrictions, lower_reduction_clauses)
2769 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
2770 Update for OpenACC changes.
2771 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
2772 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
2773 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
2774 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2775 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
2776 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
2778 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2779 Handle GF_OMP_FOR_KIND_OACC_LOOP.
2780 (expand_omp_target, lower_omp_target): Handle
2781 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2782 GF_OMP_TARGET_KIND_OACC_UPDATE,
2783 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
2784 GF_OMP_TARGET_KIND_OACC_DATA.
2785 (pass_expand_omp::execute, execute_lower_omp)
2786 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
2788 (offload_symbol_decl): New variable.
2789 (oacc_get_reduction_array_id, oacc_max_threads)
2790 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
2791 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
2792 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
2793 (oacc_gimple_assign, oacc_initialize_reduction_data)
2794 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
2796 (is_targetreg_ctx): Remove function.
2797 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
2798 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
2799 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2800 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
2801 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
2802 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
2803 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
2804 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
2805 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
2806 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
2807 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
2808 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
2809 * tree-core.h: Update comments for OpenACC changes.
2810 (enum omp_clause_map_kind): Remove.
2811 (struct tree_omp_clause): Change type of map_kind member from enum
2812 omp_clause_map_kind to unsigned char.
2813 * tree-inline.c: Update comments for OpenACC changes.
2814 * tree-nested.c: Likewise. Include "gomp-constants.h".
2815 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
2816 (convert_tramp_reference_stmt, convert_gimple_call): Update for
2817 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2818 OMP_CLAUSE_SET_MAP_KIND.
2819 * tree-pretty-print.c: Include "gomp-constants.h".
2820 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
2821 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
2822 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
2823 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
2824 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2825 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
2826 instead of OMP_CLAUSE_MAP_*.
2827 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
2828 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
2829 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2830 * tree-streamer-in.c: Include "gomp-constants.h".
2831 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
2832 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
2833 * tree-streamer-out.c: Include "gomp-constants.h".
2834 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
2836 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
2837 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
2838 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
2839 * tree.c (omp_clause_num_ops): Update accordingly.
2840 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
2842 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
2843 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
2844 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
2845 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
2846 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
2847 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
2848 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
2849 (OMP_CLAUSE_SET_MAP_KIND): New macro.
2850 * varpool.c (varpool_node::get_create): Consider flag_openacc next
2852 * config/i386/intelmic-offload.h: New file.
2853 * config/nvptx/offload.h: Likewise.
2855 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2857 * explow.h: Remove duplicate contents.
2858 * dojump.h: Likewise.
2860 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
2862 * arm.c (arm_xgene_tune): Add default initializer for instruction
2865 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2869 * ipa.c (symbol_table::remove_unreachable_nodes):
2870 Do not put abstract origins into boundary.
2872 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
2874 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
2875 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
2877 2015-01-15 Steve Ellcey <sellcey@mips.com>
2879 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
2880 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
2881 builtins.def, and chkp-builtins.def.
2883 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
2885 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
2888 2015-01-15 Richard Biener <rguenther@suse.de>
2890 PR tree-optimization/61743
2891 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
2892 information on PHIs for some simple cases.
2894 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2896 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
2898 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
2899 * config/arm/arm-cores.def (xgene1): New entry.
2900 * config/arm/arm-tables.opt: Regenerate.
2901 * config/arm/arm-tune.md: Regenerate.
2902 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
2904 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2906 * tree-if-conv.c: Include hash-map.h.
2907 (aggressive_if_conv): New variable.
2908 (fold_build_cond_expr): Add simplification of non-zero condition.
2909 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
2910 destination block is not always executed.
2911 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
2912 than two predecessors if AGGRESSIVE_IF_CONV is true.
2913 (if_convertible_stmt_p): Fix commentary.
2914 (all_preds_critical_p): New function.
2915 (has_pred_critical_p): New function.
2916 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
2917 BB can have more than two predecessors and all incoming edges can be
2919 (predicate_bbs): Skip predication for loop exit block, use build2_loc
2920 to compute predicate for true edge.
2921 (find_phi_replacement_condition): Delete this function.
2922 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
2923 Allow interchange PHI arguments if EXTENDED is false.
2924 Change check that block containing reduction statement candidate
2925 is predecessor of phi-block since phi may have more than two arguments.
2926 (phi_args_hash_traits): New helper structure.
2927 (struct phi_args_hash_traits): New type.
2928 (phi_args_hash_traits::hash): New function.
2929 (phi_args_hash_traits::equal_keys): New function.
2930 (gen_phi_arg_condition): New function.
2931 (predicate_scalar_phi): Add handling of phi nodes with more than two
2932 arguments, delete COND and TRUE_BB arguments, insert body of
2933 find_phi_replacement_condition to predicate ordinary phi nodes.
2934 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
2935 delete call of find_phi_replacement_condition and invoke
2936 predicate_scalar_phi with two arguments.
2937 (insert_gimplified_predicates): Add assert that non-predicated block
2938 don't have statements to insert.
2939 (ifcvt_split_critical_edges): New function.
2940 (ifcvt_split_def_stmt): Likewise.
2941 (ifcvt_walk_pattern_tree): Likewise.
2942 (stmt_is_root_of_bool_pattern): Likewise.
2943 (ifcvt_repair_bool_pattern): Likewise.
2944 (ifcvt_local_dce): Likewise.
2945 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
2946 is copy of inner or outer loop force_vectorize field, invoke
2947 ifcvt_split_critical_edges, ifcvt_local_dce and
2948 ifcvt_repair_bool_pattern for aggressive if-conversion.
2950 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
2952 * config/aarch64/aarch64.md: Include xgene1.md.
2953 * config/aarch64/xgene1.md: New file.
2955 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2957 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
2958 xgene1 (APM XGene-1) core definition.
2959 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
2960 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
2961 * doc/invoke.texi: Document -mcpu=xgene1.
2963 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2965 * dojump.h: New header file.
2966 * explow.h: Likewise.
2967 * expr.h: Remove includes.
2968 Move expmed.c prototypes to expmed.h.
2969 Move dojump.c prototypes to dojump.h.
2970 Move alias.c prototypes to alias.h.
2971 Move explow.c prototypes to explow.h.
2972 Move calls.c prototypes to calls.h.
2973 Move emit-rtl.c prototypes to emit-rtl.h.
2974 Move varasm.c prototypes to varasm.h.
2975 Move stmt.c prototypes to stmt.h.
2976 (saved_pending_stack_adjust): Move to dojump.h.
2977 (adjust_address): Move to explow.h.
2978 (adjust_address_nv): Move to emit-rtl.h.
2979 (adjust_bitfield_address): Likewise.
2980 (adjust_bitfield_address_size): Likewise.
2981 (adjust_bitfield_address_nv): Likewise.
2982 (adjust_automodify_address_nv): Likewise.
2983 * explow.c (expr_size): Move to expr.c.
2984 (int_expr_size): Likewise.
2985 (tree_expr_size): Likewise.
2986 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2987 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2988 * genemit.c (main): Generate includes statistics.h, real.h,
2989 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
2991 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
2992 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
2993 explow.h, emit-rtl.h, stmt.h.
2994 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
2995 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
2996 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
2997 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
2998 emit-rtl.h, varasm.h, stmt.h.
2999 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3000 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3001 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3002 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3003 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3004 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3005 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3006 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3007 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3008 tm.h tree.h varasm.h vec.h wide-int.h.
3009 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3010 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3011 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3012 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
3013 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3014 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3015 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
3016 * loop-iv.c: Likewise.
3017 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3018 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
3019 statistics.h stmt.h tree.h varasm.h wide-int.h.
3020 * lra-constraints.c: Likewise.
3021 * lra-eliminations.c: Likewise.
3022 * lra-lives.c: Likewise.
3023 * lra-remat.c: Likewise.
3024 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3025 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3026 statistics.h stmt.h tree.h varasm.h wide-int.h.
3027 * hw-doloop.c: Likewise.
3028 * ira-color.c: Likewise.
3029 * ira-emit.c: Likewise.
3030 * loop-doloop.c: Likewise.
3031 * loop-invariant.c: Likewise.
3032 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3033 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3034 statistics.h stmt.h tree.h varasm.h wide-int.h.
3035 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3036 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3037 statistics.h stmt.h tree.h varasm.h wide-int.h.
3038 * combine-stack-adj.c: Likewise.
3041 * ifcvt.c: Likewise.
3042 * ira-costs.c: Likewise.
3044 * lra-coalesce.c: Likewise.
3045 * lra-spills.c: Likewise.
3046 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3047 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
3048 stmt.h varasm.h wide-int.h.
3049 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3050 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3052 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
3053 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
3054 statistics.h stmt.h varasm.h wide-int.h.
3055 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
3056 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
3057 varasm.h wide-int.h.
3058 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
3059 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3060 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
3061 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
3062 statistics.h stmt.h.
3063 * config/tilepro/tilepro.c: Likewise.
3064 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
3065 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
3066 * config/pdp11/pdp11.c: Likewise.
3067 * config/xtensa/xtensa.c: Likewise.
3068 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
3069 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3071 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3072 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3073 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
3074 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3075 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3076 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
3077 * rtl-chkp.c: Likewise.
3078 * tree-chkp-opt.c: Likewise.
3079 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
3080 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3081 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
3082 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3083 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3084 statistics.h stmt.h.
3085 * tree-vect-data-refs.c: Likewise.
3086 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
3087 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3088 rtl.h statistics.h stmt.h varasm.h.
3089 * internal-fn.c: Likewise.
3090 * ipa-icf-gimple.c: Likewise.
3091 * lto-section-out.c: Likewise.
3092 * tree-data-ref.c: Likewise.
3093 * tree-nested.c: Likewise.
3094 * tree-outof-ssa.c: Likewise.
3095 * tree-predcom.c: Likewise.
3096 * tree-pretty-print.c: Likewise.
3097 * tree-scalar-evolution.c: Likewise.
3098 * tree-ssa-strlen.c: Likewise.
3099 * tree-vect-loop.c: Likewise.
3100 * tree-vect-patterns.c: Likewise.
3101 * tree-vect-slp.c: Likewise.
3102 * tree-vect-stmts.c: Likewise.
3104 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3105 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
3107 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
3108 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3109 statistics.h stmt.h varasm.h.
3110 * loop-unroll.c: Likewise.
3111 * ubsan.c: Likewise.
3112 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
3113 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
3115 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3116 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
3117 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
3118 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3119 statistics.h stmt.h.
3120 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
3121 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3122 statistics.h stmt.h varasm.h.
3123 * gimple-match-head.c: Likewise.
3124 * lto-cgraph.c: Likewise.
3125 * lto-section-in.c: Likewise.
3126 * lto-streamer-in.c: Likewise.
3127 * lto-streamer-out.c: Likewise.
3128 * tree-affine.c: Likewise.
3129 * tree-cfg.c: Likewise.
3130 * tree-cfgcleanup.c: Likewise.
3131 * tree-if-conv.c: Likewise.
3132 * tree-into-ssa.c: Likewise.
3133 * tree-ssa-alias.c: Likewise.
3134 * tree-ssa-copyrename.c: Likewise.
3135 * tree-ssa-dse.c: Likewise.
3136 * tree-ssa-forwprop.c: Likewise.
3137 * tree-ssa-live.c: Likewise.
3138 * tree-ssa-math-opts.c: Likewise.
3139 * tree-ssa-pre.c: Likewise.
3140 * tree-ssa-sccvn.c: Likewise.
3141 * tree-tailcall.c: Likewise.
3142 * tree-vect-generic.c: Likewise.
3143 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3144 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
3145 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3146 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
3147 * varasm.c: Likewise.
3148 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3149 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
3151 * init-regs.c: Likewise.
3153 * omp-low.c: Likewise.
3154 * stack-ptr-mod.c: Likewise.
3155 * tree-ssa-reassoc.c: Likewise.
3156 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3157 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
3159 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3160 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
3161 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3162 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
3163 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3164 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
3165 * tree-ssa-phiopt.c: Likewise.
3166 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3167 fixed-value.h hashtab.h real.h statistics.h stmt.h.
3168 * config/fr30/fr30.c: Likewise.
3169 * config/frv/frv.c: Likewise.
3171 * final.c: Likewise.
3172 * optabs.c: Likewise.
3173 * passes.c: Likewise.
3174 * simplify-rtx.c: Likewise.
3176 * toplev.c: Likewise.
3177 * var-tracking.c: Likewise.
3178 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3179 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3180 * lower-subreg.c: Likewise.
3181 * postreload-gcse.c: Likewise.
3183 * reginfo.c: Likewise.
3184 * store-motion.c: Likewise.
3185 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3186 fixed-value.h hashtab.h real.h stmt.h varasm.h.
3187 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3188 fixed-value.h hashtab.h statistics.h stmt.h.
3189 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3190 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3191 * except.c: Likewise.
3192 * explow.c: Likewise.
3193 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3194 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
3196 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3197 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
3198 * tree-ssa-structalias.c: Likewise.
3199 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3200 fixed-value.h insn-config.h real.h statistics.h.
3201 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3202 fixed-value.h insn-config.h real.h statistics.h stmt.h.
3203 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3204 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3205 * cfgbuild.c: Likewise.
3206 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3207 fixed-value.h real.h rtl.h statistics.h stmt.h.
3208 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3209 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3210 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3211 fixed-value.h real.h statistics.h stmt.h.
3212 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3213 fixed-value.h real.h statistics.h stmt.h varasm.h.
3214 * cprop.c: Likewise.
3215 * modulo-sched.c: Likewise.
3216 * postreload.c: Likewise.
3217 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3218 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
3219 statistics.h stmt.h varasm.h.
3220 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
3221 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3222 rtl.h statistics.h stmt.h varasm.h.
3223 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
3224 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
3226 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3227 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
3229 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
3230 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
3232 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
3233 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3234 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3235 function.h real.h statistics.h stmt.h varasm.h.
3236 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3237 insn-config.h real.h statistics.h stmt.h.
3238 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3239 statistics.h stmt.h.
3240 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
3241 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
3242 statistics.h stmt.h varasm.h.
3243 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
3244 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
3245 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3246 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
3247 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
3248 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3249 statistics.h stmt.h varasm.h.
3250 * ipa-polymorphic-call.c: Likewise.
3251 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
3252 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3253 statistics.h stmt.h.
3254 * config/c6x/c6x.c: Likewise.
3255 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
3256 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3257 statistics.h stmt.h varasm.h.
3258 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
3259 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
3261 * ipa-split.c: Likewise.
3262 * tree-eh.c: Likewise.
3263 * tree-ssa-dce.c: Likewise.
3264 * tree-ssa-loop-niter.c: Likewise.
3265 * tree-vrp.c: Likewise.
3266 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
3267 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
3269 * config/nds32/nds32-fp-as-gp.c: Likewise.
3270 * config/nds32/nds32-intrinsic.c: Likewise.
3271 * config/nds32/nds32-isr.c: Likewise.
3272 * config/nds32/nds32-md-auxiliary.c: Likewise.
3273 * config/nds32/nds32-memory-manipulation.c: Likewise.
3274 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3275 * config/nds32/nds32-predicates.c: Likewise.
3276 * config/nds32/nds32.c: Likewise.
3277 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
3278 fixed-value.h hashtab.h real.h statistics.h.
3279 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
3280 fixed-value.h hashtab.h real.h statistics.h stmt.h.
3281 * config/arm/arm.c: Likewise.
3282 * config/avr/avr.c: Likewise.
3283 * config/bfin/bfin.c: Likewise.
3284 * config/h8300/h8300.c: Likewise.
3285 * config/i386/i386.c: Likewise.
3286 * config/ia64/ia64.c: Likewise.
3287 * config/iq2000/iq2000.c: Likewise.
3288 * config/m32c/m32c.c: Likewise.
3289 * config/m32r/m32r.c: Likewise.
3290 * config/m68k/m68k.c: Likewise.
3291 * config/mcore/mcore.c: Likewise.
3292 * config/mep/mep.c: Likewise.
3293 * config/mips/mips.c: Likewise.
3294 * config/mn10300/mn10300.c: Likewise.
3295 * config/moxie/moxie.c: Likewise.
3296 * config/pa/pa.c: Likewise.
3297 * config/rl78/rl78.c: Likewise.
3298 * config/rx/rx.c: Likewise.
3299 * config/s390/s390.c: Likewise.
3300 * config/sh/sh.c: Likewise.
3301 * config/sparc/sparc.c: Likewise.
3302 * config/spu/spu.c: Likewise.
3303 * config/stormy16/stormy16.c: Likewise.
3304 * config/v850/v850.c: Likewise.
3305 * config/vax/vax.c: Likewise.
3306 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
3307 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3308 * config/msp430/msp430.c: Likewise.
3309 * predict.c: Likewise.
3310 * value-prof.c: Likewise.
3311 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
3312 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
3313 * config/microblaze/microblaze.c: Likewise.
3314 * config/nios2/nios2.c: Likewise.
3315 * config/rs6000/rs6000.c: Likewise.
3316 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3317 insn-config.h real.h rtl.h statistics.h stmt.h.
3318 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3319 insn-config.h real.h statistics.h stmt.h.
3320 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
3321 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3322 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
3323 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3324 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
3325 fixed-value.h real.h statistics.h stmt.h.
3326 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
3327 fixed-value.h statistics.h stmt.h.
3328 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
3331 2015-01-15 Jakub Jelinek <jakub@redhat.com>
3333 * gengtype.c (create_user_defined_type): Workaround
3334 -Wmaybe-uninitialized false positives.
3335 * cse.c (fold_rtx): Likewise.
3336 * loop-invariant.c (gain_for_invariant): Likewise.
3338 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
3340 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
3341 set the memory attributes in all cases but clear MEM_EXPR if need be.
3343 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
3345 PR tree-optimization/64434
3346 * cfgexpand.c (reorder_operands): New function.
3347 (expand_gimple_basic_block): Insert call of reorder_operands if
3350 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
3352 * config/mips/micromips.md (*swp): Remove explicit parallel.
3353 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
3354 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
3355 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
3356 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
3357 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
3358 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
3359 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
3360 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
3361 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
3362 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
3363 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
3364 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
3365 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
3366 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
3367 (mips_wrdsp): Likewise.
3368 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
3370 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
3371 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
3372 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
3373 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
3374 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
3375 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
3376 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
3377 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
3378 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
3380 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3382 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
3383 (mips_print_operand): Support 'y' to print exact log2 in decimal
3385 * config/mips/mips.h (ISA_HAS_LSA): New define.
3386 (ISA_HAS_DLSA): Likewise.
3387 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
3388 * config/mips/predicates.md (const_immlsa_operand): New predicate.
3390 2015-01-15 Martin Liska <mliska@suse.cz>
3393 * optc-save-gen.awk: Add support for array types.
3395 2015-01-15 Richard Biener <rguenther@suse.de>
3398 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
3399 for MEM_REF access functions with the same base can never partially
3402 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
3404 * common.opt: New option -fstack-protector-explicit.
3405 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
3406 (stack_protect_decl_phase): Handle stack_protect attribute for
3407 explicit stack protection requests.
3408 (expand_used_vars): Similarly.
3409 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
3410 * doc/extend.texi: Add documentation for "stack_protect" attribute.
3411 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
3413 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
3416 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
3418 (sh_extending_set_of_reg): New struct.
3419 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
3420 sh_remove_reg_dead_or_unused_notes): New Declarations.
3421 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
3422 sh_find_extending_set_of_reg, sh_split_tst_subregs,
3423 sh_extending_set_of_reg::use_as_extended_reg): New functions.
3424 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
3425 convert to insn_and_split and use new function sh_split_tst_subregs.
3427 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
3429 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
3431 (Optimization Options): Move -fuse-ld documentation to...
3432 (Link Options): ...here.
3434 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3436 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
3438 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
3439 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
3440 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
3441 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
3442 instead of ZR for the memory operand of LL/SC.
3443 (compare_and_swap_12, sync_add<mode>): Likewise.
3444 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
3445 (sync_new_<optab>_12, sync_nand_12): Likewise.
3446 (sync_old_nand_12, sync_new_nand_12): Likewise.
3447 (sync_sub<mode>, sync_old_add<mode>): Likewise.
3448 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
3449 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
3450 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
3451 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
3452 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
3453 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
3454 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
3455 * doc/md.texi (ZC): Update description.
3457 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
3459 * builtins.c (expand_builtin_atomic_exchange): Remove error when
3460 memory model is CONSUME.
3461 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
3462 expand_builtin_atomic_store): Change invalid memory model errors to
3464 (expand_builtin_atomic_clear): Change invalid model errors to warnings
3465 and issue warning for CONSUME.
3467 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
3469 * lto-cgraph: Update function comments for
3470 lto_symtab_encoder_encode_*.
3472 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
3474 * Makefile.in (site.exp): Do not set ENABLE_LTO.
3476 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
3478 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
3479 * lto-cgraph.c (select_what_to_stream): Remove argument, use
3480 lto_stream_offload_p instead.
3481 * lto-streamer.h (select_what_to_stream): Remove argument.
3482 * passes.c (ipa_write_summaries): Likewise.
3483 * tree-pass.h (ipa_write_summaries): Likewise.
3485 2015-01-14 Richard Biener <rguenther@suse.de>
3487 PR tree-optimization/59354
3488 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
3489 groups larger than the slp group size as having gaps.
3491 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
3494 * builtins.c (get_memmodel): Promote consume to acquire always.
3496 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3499 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
3502 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3505 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
3507 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
3508 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
3509 AVX512VBMI, as it implies AVX512BW.
3511 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
3514 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
3515 (vec_unpacks_hi_v16sf): Ditto.
3517 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3519 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
3522 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3524 * doc/invoke.texi (mapcs): Mention deprecation.
3525 (mapcs-frame): Likewise.
3527 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3530 * config/arm/arm.c (callee_saved_reg_p): Define.
3531 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
3532 register is callee saved instead of !call_used_regs[reg].
3533 (thumb1_compute_save_reg_mask): Likewise.
3535 2015-01-14 Hale Wang <hale.wang@arm.com>
3537 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
3540 2015-01-14 Richard Biener <rguenther@suse.de>
3543 * tree-inline.c (insert_debug_decl_map): Check destination
3544 function MAY_HAVE_DEBUG_STMTS.
3545 (insert_init_debug_bind): Likewise.
3546 (insert_init_stmt): Remove redundant check.
3547 (remap_gimple_stmt): Drop debug stmts if the destination
3548 function has var-tracking assignments disabled.
3550 2015-01-14 Martin Liska <mliska@suse.cz>
3552 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
3553 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
3555 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3558 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
3559 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
3561 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
3563 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
3564 level from an ARCH; do not inject the default.
3565 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
3566 MIPS_ISA_LEVEL_SPEC.
3567 (MIPS_ISA_NAN2008_SPEC): Update comment.
3568 (BASE_DRIVER_SELF_SPECS): Likewise.
3569 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
3570 MIPS_DEFAULT_ISA_LEVEL_SPEC.
3571 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
3572 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
3573 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
3575 2015-01-14 Richard Biener <rguenther@suse.de>
3577 PR tree-optimization/64493
3578 PR tree-optimization/64495
3579 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
3580 assign the proper vectorized PHI to the inner loop exit PHIs.
3582 2015-01-14 Joey Ye <joey.ye@arm.com>
3584 * config/arm/arm.c (arm_compute_save_reg_mask):
3585 Do not save lr in case of tail call.
3586 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
3588 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
3590 * tree-vrp.c (check_array_ref): Emit more warnings
3591 for warn_array_bounds >= 2.
3592 * common.opt: New option -Warray-bounds=.
3593 * doc/invoke.texi: Document -Warray-bounds=.
3595 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
3597 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
3598 (mforbid-fp-as-gp): Remove.
3600 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
3601 (nds32_symbol_load_store_p): Remove.
3602 (nds32_fp_as_gp_check_available): Clean up implementation.
3603 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
3605 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
3606 fp-as-gp and ex9 cases.
3608 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3610 * tree-profile.c (init_ic_make_global_vars): Drop workaround
3611 for bintuils bug 14342.
3612 (init_ic_make_global_vars): Likewise.
3613 (gimple_init_edge_profiler): Likewise.
3614 (gimple_gen_ic_func_profiler): Likewise.
3616 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3618 * ipa-inline.c (inline_small_functions): Swap the operands in
3621 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3624 * ipa-inline-analysis.c (node_growth_cache): Remove.
3625 (initialize_growth_caches): Do not initialize it.
3626 (free_growth_caches): Do not free it.
3627 (do_estimate_growth): Rename to ...
3628 (estimate_growth): ... this one; drop growth cache code.
3629 (growth_likely_positive): Always go the heuristics way.
3630 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
3631 (reset_edge_caches): Do not reset node growth.
3632 (heap_edge_removal_hook): Do not maintain cache.
3633 (inline_small_functions): Likewise; strenghten sanity check.
3634 (ipa_inline): Do not maintain caches.
3635 * ipa-inline.h (node_growth_cache): Remove.
3636 (do_estimate_growth): Remove to ...
3637 (estimate_growth): this one; remove inline version.
3638 (reset_node_growth_cache): Remove.
3640 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3643 * ipa-inline.c (inline_small_functions): Update callee keys after
3644 resolving speculation
3645 (inline_small_functions): Always check monotonicity of the queue.
3647 2015-01-13 Marek Polacek <polacek@redhat.com>
3650 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
3652 2015-01-13 Jakub Jelinek <jakub@redhat.com>
3654 PR rtl-optimization/64286
3655 * ree.c (combine_reaching_defs): Move part of comment earlier,
3656 remove !SCALAR_INT_MODE_P check.
3657 (add_removable_extension): Don't add vector mode
3658 extensions if all uses of the source register aren't the same
3661 2015-01-13 Renlin Li <renlin.li@arm.com>
3663 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
3664 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
3666 2015-01-13 Martin Liska <mliska@suse.cz>
3668 * ipa-icf.c (sem_function::equals_private): Call new functions
3669 cl_target_option_print_diff and cl_optimization_print_diff.
3670 * optc-save-gen.awk (cl_target_option_print_diff): New function.
3671 (cl_optimization_print_diff): Likewise.
3672 * opth-gen.awk: Likewise.
3674 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
3676 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
3677 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
3678 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
3679 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
3680 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
3681 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
3683 2015-01-13 Andrew Pinski <apinski@cavium.com>
3685 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
3686 instead of src mode.
3688 2015-01-13 Richard Biener <rguenther@suse.de>
3691 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
3694 2015-01-13 Andrew Pinski <apinski@cavium.com>
3696 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
3698 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
3700 2015-01-13 Jakub Jelinek <jakub@redhat.com>
3703 * cfgexpand.c (expand_computed_goto): Don't call
3704 convert_memory_address here.
3706 2015-01-13 Richard Biener <rguenther@suse.de>
3708 PR tree-optimization/64406
3709 * tree-loop-distibution.c (pass_loop_distribution::execute):
3710 Reset the SCEV hashtable if we distributed anything.
3712 2015-01-13 Richard Biener <rguenther@suse.de>
3714 PR tree-optimization/64404
3715 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
3716 SLP types for CSEd loads.
3718 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3720 PR tree-optimization/64436
3721 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
3722 merge of two symbolic numbers for a bitwise OR to ...
3723 (perform_symbolic_merge): This. Also fix computation of the range and
3724 end of the symbolic number corresponding to the result of a bitwise OR.
3726 2015-01-13 Richard Biener <rguenther@suse.de>
3728 PR tree-optimization/64568
3729 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
3730 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
3732 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3734 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
3735 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
3737 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3739 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
3740 target-specific symbol_ref flag.
3741 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
3742 resides in rodata section.
3743 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
3744 (nds32_encode_section_info): New function.
3746 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3748 * config/nds32/nds32.md (call): Use pseudo instruction bal which
3749 clobbers TA_REGNUM if large code model is specified.
3750 (call_register): Likewise.
3751 (call_immediate): Likewise.
3752 (call_value): Likewise.
3753 (call_value_register): Likewise.
3754 (call_value_immediate): Likewise.
3756 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3758 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
3759 (TARGET_CMODEL_MEDIUM): New macro.
3760 (TARGET_CMODEL_LARGE): New macro.
3761 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
3762 code model setting in assembly code.
3764 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3766 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
3767 Remove MASK_GP_DIRECT flag.
3768 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
3769 one of the multilib default options.
3770 * config/nds32/nds32.opt (mgp-direct): Remove.
3771 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
3772 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
3774 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3776 * config/nds32/nds32.opt (mcmodel): Add new option.
3777 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
3778 to describe code model.
3780 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
3783 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
3785 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
3787 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
3788 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
3789 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
3790 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
3791 __builtin_sh_set_fpscr.
3793 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3795 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
3796 after a funtion name just to indicate it is a function.
3797 ([-fsanitize-undefined-trap-on-error]): Likewise.
3798 ([-fdbg-cnt=]): Likewise.
3799 ([-mmemcpy]): Likewise.
3800 ([-mflush-func]): Likewise.
3801 ([-msynci]): Likewise.
3803 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3805 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
3808 2015-01-12 Jakub Jelinek <jakub@redhat.com>
3810 PR tree-optimization/64563
3811 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
3812 instead of != VR_VARYING.
3815 * config/i386/i386.c (ix86_expand_prologue): Add
3816 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
3818 PR tree-optimization/64454
3819 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
3820 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
3821 for signed or [0, op1 - 1] for unsigned modulo.
3822 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3823 even if op1 does not satisfy integer_pow2p.
3826 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
3828 2015-01-12 Jeff Law <law@redhat.com>
3831 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
3832 (trunchiqi2, truncsihi2): Similarly.
3834 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
3835 rather than calling F.
3837 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3839 * tsan.c (instrument_expr): Use force_gimple_operand.
3840 Use may_be_nonaddressable_p instead of is_gimple_addressable.
3842 2015-01-12 Richard Biener <rguenther@suse.de>
3844 PR tree-optimization/64530
3845 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
3848 2015-01-12 Richard Biener <rguenther@suse.de>
3851 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
3854 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3856 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
3857 Cortex-A17 tuning parameters.
3858 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
3860 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3862 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
3863 * config/arm/arm.c (arm_macro_fusion_p): New function.
3864 (arm_macro_fusion_pair_p): Likewise.
3865 (TARGET_SCHED_MACRO_FUSION_P): Define.
3866 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3867 (ARM_FUSE_NOTHING): Likewise.
3868 (ARM_FUSE_MOVW_MOVT): Likewise.
3869 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
3870 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
3871 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
3872 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
3873 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
3874 arm_cortex_a5_tune): Specify fuseable_ops value.
3876 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
3879 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
3880 test for PIE with copy reloc.
3881 * configure: Regenerated.
3883 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3885 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
3887 (arm_tls_descseq_addr): Likewise.
3888 (arm_gen_movmemqi): Likewise.
3889 (arm_expand_epilogue_apcs_frame): Likewise.
3890 (arm_expand_epilogue): Likewise.
3891 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
3894 2015-01-12 Martin Liska <mliska@suse.cz>
3897 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
3898 volatility for correct operands.
3900 2015-01-12 Martin Liska <mliska@suse.cz>
3902 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3903 that a function is not leaf.
3904 (sem_function::compare_polymorphic_p): Likewise.
3906 2015-01-12 Martin Liska <mliska@suse.cz>
3908 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3909 that a function is not leaf.
3910 (sem_function::compare_polymorphic_p): Likewise.
3912 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3914 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
3915 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
3916 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
3917 fold-const.h, tree-check.h.
3919 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3923 * ipa-inline.c (compute_uninlined_call_time,
3924 compute_inlined_call_time): Use counts for extra precision when
3926 (big_speedup_p): Fix formating.
3927 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
3928 (relative_time_benefit): Remove.
3929 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
3930 merge guessed and read profile paths.
3931 (inline_small_functions): Count only !optimize_size functions into
3932 initial size; be more lax about sanity check when profile is used;
3933 be sure to update inlined function profile when profile is read.
3935 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3938 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
3939 cost when edge becomes direct.
3940 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
3941 is resolved or when introducing new speculation.
3943 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
3947 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
3948 '||' to fix typo issue.
3950 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
3951 accept and return NULL.
3953 2015-01-12 Martin Liska <mliska@suse.cz>
3955 * cgraph.c (cgraph_edge::remove_callee): Move function to header
3956 file for being inlined.
3957 (cgraph_set_edge_callee): Delete.
3958 (cgraph_edge::redirect_callee): Move function to header file
3960 (cgraph_edge::make_direct): Use new function.
3961 (cgraph_edge::dump_edge_flags): New function created from
3962 static dump_edge_flags function.
3963 (cgraph_node::dump): Use new function.
3964 (cgraph_edge::verify_count_and_frequency): New function created
3965 from verify_edge_count_and_frequency.
3966 (cgraph_edge::verify_corresponds_to_fndecl): New function created
3967 from verify_edge_corresponds_to_fndecl.
3968 (verify_edge_corresponds_to_fndecl): Delete.
3969 (cgraph_node::verify_node): Use new function.
3970 * cgraph.h (cgraph_edge::set_callee): New function.
3971 (cgraph_edge::dump_edge_flags): Likewise.
3972 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
3974 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
3976 * ipa-utils.c (estimate_function_body_sizes): Do not
3977 free node params when called late with early=true.
3979 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
3981 * doc/md.texi (Instruction Patterns): Rewrite text for
3983 (Example): Likewise.
3985 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
3987 * doc/invoke.texi (Option Summary): Break long lines.
3988 [(-fdiagnostics-color)]: Put long literal in @smallexample
3990 [(-fsanitize-recover)]: Likewise.
3991 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
3992 [(-ffast-math)]: Likewise.
3993 [(--param max-inline-insns-recursive)]: Likewise.
3994 [(--param max-inline-recursive-depth)]: Likewise.
3995 [(-mno-text-section-literals)]: Likewise.
3997 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3999 * doc/install.texi: Update for libgomp being renamed from "GNU
4000 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4002 * doc/sourcebuild.texi: Likewise.
4004 2015-01-10 Anthony Green <green@moxielogic.com>
4006 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4007 mul.x availability for moxiebox configuration.
4009 2015-01-09 Anthony Green <green@moxielogic.com>
4011 * config/moxie/moxie.md: Tabify assembly output.
4013 2015-01-09 Anthony Green <green@moxielogic.com>
4015 * config/moxie/moxie.md (CC_REG): Correct register definition.
4017 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
4019 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4020 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
4023 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4025 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4027 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
4028 Jakub Jelinek <jakub@redhat.com>
4031 * lto-streamer.h (lto_stream_offload_p): New declaration.
4032 * lto-streamer.c (lto_stream_offload_p): New variable.
4033 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4034 at the same time as section_name_prefix.
4035 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4036 if lto_stream_offload_p.
4037 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4038 stream TREE_TARGET_OPTION if lto_stream_offload_p.
4039 (write_ts_function_decl_tree_pointers): Don't
4040 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4041 * tree-streamer-in.c (unpack_value_fields): Don't stream
4042 TREE_TARGET_OPTION in if ACCEL_COMPILER.
4043 (lto_input_ts_function_decl_tree_pointers): Don't stream
4044 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
4045 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
4046 instead of section_name_prefix string comparisons.
4048 2015-01-09 Jakub Jelinek <jakub@redhat.com>
4050 PR rtl-optimization/64536
4051 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
4054 2015-01-09 Michael Collison <michael.collison@linaro.org>
4056 PR tree-optimization/64322
4057 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
4058 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
4060 2015-01-09 Tom de Vries <tom@codesourcery.com>
4062 PR rtl-optimization/64539
4063 * regcprop.c (kill_clobbered_values): Factor out of ...
4064 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
4065 instead of note_stores with kill_clobbered_value.
4067 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4069 * ginclude/unwind-arm-common.h: Revert previous commit.
4071 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
4073 * config.gcc (arm*-*-freebsd*): New configuration.
4074 * config/arm/freebsd.h: New file.
4075 * config.host: Add extra components for arm*-*-freebsd*.
4076 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
4077 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
4079 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4081 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4083 * config/rs6000/t-rtems: Add e6500 multilibs.
4085 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4087 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
4090 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4092 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
4093 MULTILIB_EXCEPTIONS.
4095 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4097 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
4098 MULTILIB_EXCEPTIONS.
4100 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
4102 * config/arm/t-rtems-eabi: Rename to...
4103 * config/arm/t-rtems: ...this.
4104 * config/arm/rtems-eabi.h: Rename to...
4105 * config/arm/rtems.h: ...this.
4106 * config.gcc (arm*-*-rtems*): Reflect changes above.
4108 2015-01-09 Richard Biener <rguenther@suse.de>
4110 PR tree-optimization/64410
4111 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
4113 (execute_update_addresses_taken): Deal with that.
4114 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
4115 loads/stores for complex variables.
4117 2015-01-09 Martin Liska <mliska@suse.cz>
4119 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
4121 (func_checker::compare_memory_operand): New function.
4122 (func_checker::compare_operand): Split case to newly
4124 (func_checker::compare_cst_or_decl): New function.
4125 (func_checker::compare_gimple_call): Identify
4127 (func_checker::compare_gimple_assign): Likewise.
4128 * ipa-icf-gimple.h: New function.
4130 2015-01-09 Martin Liska <mliska@suse.cz>
4133 * sreal.c (sreal::dump): Change unsigned format to signed for
4135 (sreal::to_double): Replace exp2 with scalbln.
4137 2015-01-09 Martin Liska <mliska@suse.cz>
4139 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
4140 * ipa-icf.c (sem_function::equals_private): Add support for target and
4141 (sem_item_optimizer::merge_classes): Remove redundant function
4142 optimization flags comparison.
4143 * tree.h (target_opts_for_fn): New function.
4145 2015-01-09 Tom de Vries <tom@codesourcery.com>
4147 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
4149 2015-01-09 Kito Cheng <kito@0xlab.org>
4151 PR rtl-optimization/64348
4152 * lra-constraints.c (split_reg): Fix caller-save store/restore
4153 instruction generation.
4155 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
4157 PR gcov-profile/61790
4158 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
4159 long long. Fallback to int64_t if host doesn't have long long and
4160 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
4162 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4164 PR tree-optimization/63989
4165 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
4167 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
4168 (get_stridx): If we don't have a record for certain SSA_NAME,
4169 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
4170 constant offset, call get_stridx_plus_constant.
4171 (get_stridx_plus_constant): New function.
4172 (zero_length_string): Don't use get_stridx here.
4176 * dse.c (struct insn_info): Mention frame_read set also
4177 before reload for tail calls on some targets.
4178 (scan_insn): Revert 2014-12-22 change. Set frame_read
4179 also before reload for tail calls if
4180 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
4181 instead of add_non_frame_wild_read for non-const/memset
4182 tail calls after reload.
4184 2015-01-08 Jason Merrill <jason@redhat.com>
4186 * ubsan.c (do_ubsan_in_current_function): New.
4187 (pass_ubsan::gate): Use it.
4188 * ubsan.h: Declare it.
4189 * convert.c (convert_to_integer): Use it.
4191 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4194 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
4195 compare_code when it is unconditionally overwritten afterwards.
4196 Use ix86_reverse_condition instead of reverse_condition. Don't
4197 change code if *reverse_condition* returned UNKNOWN and don't
4198 swap ct/cf and negate diff in that case.
4200 2015-01-08 Mike Stump <mikestump@comcast.net>
4202 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
4203 (pass_tsan_O0::gate): Likewise.
4204 * extend.texi (Function Attributes): Add no_sanitize_thread
4207 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
4209 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
4210 for registering builtins.
4211 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
4212 add -fopenmp to the argv_obstack used when invoking
4215 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
4216 add "-m32" or "-m64" to argv_obstack.
4217 (generate_host_descr_file): Likewise, when invoking host_compiler.
4218 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
4221 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
4223 * config/sh/sh-mem.cc: Use constant as second operand when emitting
4226 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
4229 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
4230 constant load if constant operand fits into I08.
4232 2015-01-08 Jakub Jelinek <jakub@redhat.com>
4235 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
4236 and TREE_THIS_VOLATILE for MEM_REFs.
4237 (build5_stat): Fix up initialization of TREE_READONLY and
4238 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
4240 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
4243 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
4244 of r for the second alternative of the destination operand.
4246 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
4249 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
4251 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
4253 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
4255 ([-fivar-visibility], [-fvisibility]): Likewise.
4257 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
4259 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
4260 the file where @code, @command, etc is more appropriate.
4262 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
4264 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
4265 of -mrecip= documentation.
4267 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4270 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
4271 correct reload handler if -m32 -mpowerpc64 is used.
4273 2015-01-06 Tom de Vries <tom@codesourcery.com>
4275 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
4277 2015-01-08 Christian Bruel <christian.bruel@st.com>
4280 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
4282 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
4284 PR tree-optimization/63259
4285 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
4286 if optab exists for 16bit byteswap.
4288 2015-01-06 Jakub Jelinek <jakub@redhat.com>
4290 * opts.c (common_handle_option): Add support for
4291 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
4292 * doc/invoke.texi: Document -fno-sanitize=all,
4293 -f{,no-}sanitize-recover=all. Document that
4294 -fsanitize=float-cast-overflow is not enabled
4295 by -fsanitize=undefined. Fix up documentation
4296 of -f{,no-}sanitize-recover.
4298 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
4300 * config.gcc: Add Visium support.
4301 * configure.ac: Likewise.
4302 * configure: Regenerate.
4303 * doc/extend.texi (interrupt attribute): Add Visium.
4304 * doc/invoke.texi: Document Visium options.
4305 * doc/install.texi: Document Visium target.
4306 * doc/md.texi: Document Visium constraints.
4307 * common/config/visium: New directory.
4308 * config/visium: Likewise.
4310 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
4312 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
4313 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
4315 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
4317 * combine.c (combine_validate_cost): Do not count the cost of a
4318 split I2 twice. Do not display it twice in the dump, either.
4320 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
4322 Revert parts of r219199.
4323 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
4325 ([-Wtraditional]): Restore markup on <limits.h>.
4327 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4330 * doc/invoke.texi: Document -Wsuggest-override.
4332 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
4334 PR rtl-optimization/64287
4335 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
4336 (process_options): Disable flag_ipa_ra if profiling.
4338 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
4340 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
4342 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
4344 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
4345 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
4346 put under #if TARGET_LOOPS guard.
4348 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
4350 * config/i386/i386.c (output_387_binary_op): Use std::swap.
4352 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
4354 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
4355 * rtl.h (refers_to_regno_p): Add overload.
4357 * bt-load.c: Likewise.
4358 * combine.c: Likewise.
4359 * df-scan.c: Likewise.
4360 * sched-deps.c: Likewise.
4361 * config/s390/s390.c: Likewise.
4362 * config/m32r/m32r.c: Likewise.
4363 * config/rs6000/spe.md: Likewise.
4364 * config/rs6000/rs6000.c: Likewise.
4365 * config/pa/pa.c: Likewise.
4366 * config/stormy16/stormy16.c: Likewise.
4367 * config/cris/cris.c: Likewise.
4368 * config/arc/arc.md: Likewise.
4369 * config/arc/arc.c: Likewise.
4370 * config/sh/sh.md: Likewise.
4371 * config/sh/sh.c: Likewise.
4372 * config/frv/frv.c: Likewise.
4374 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4377 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
4378 call as cleanup of the whole body.
4379 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
4380 * tsan.c (replace_func_exit): New function.
4381 (instrument_func_exit): Moved earlier.
4382 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
4383 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
4385 (tsan_pass): Don't call instrument_func_exit.
4386 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
4387 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
4391 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
4392 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
4393 it to libubsan handler instead of EXPR. Fold comparisons earlier,
4394 if the result is integer_zerop, return NULL_TREE.
4395 * convert.c (convert_to_integer): Pass expr as ARG.
4397 PR tree-optimization/64465
4398 * tree-inline.c (redirect_all_calls): During inlining
4399 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
4400 changed the stmt to a non-throwing call.
4402 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
4404 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
4405 etc markup throughout the file.
4407 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
4409 Enable experimental TSAN support for Ada.
4410 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
4412 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4414 PR tree-optimization/64494
4415 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
4416 clear SSA_NAME_ANTI_RANGE_P flag.
4418 2015-01-05 Marek Polacek <polacek@redhat.com>
4420 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
4422 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4424 Update copyright years.
4426 * gcc.c (process_command): Update copyright notice dates.
4427 * gcov-dump.c: Ditto.
4429 * doc/cpp.texi: Bump @copying's copyright year.
4430 * doc/cppinternals.texi: Ditto.
4431 * doc/gcc.texi: Ditto.
4432 * doc/gccint.texi: Ditto.
4433 * doc/gcov.texi: Ditto.
4434 * doc/install.texi: Ditto.
4435 * doc/invoke.texi: Ditto.
4437 * auto-profile.c, auto-profile.h: Fix up Copyright line.
4439 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
4441 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
4443 ([-fvtable-verify], [-fvtv-debug]): Likewise.
4444 ([-Wabi]): Likewise.
4445 ([-fmessage-length]): Likewise.
4446 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
4447 ([-Wno-discarded-qualifiers]): Likewise.
4448 ([-Wnodiscarded-array-qualifiers]): Likewise.
4449 ([-Wno-virtual-move-assign]): Likewise.
4450 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
4451 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
4452 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
4453 ([-fsanitize-undefined-trap-on-error]): Likewise.
4454 ([-floop-interchange]): Likewise.
4455 ([-ftree-coalesce-inlined-vars]): Likewise.
4456 ([-fvect-cost-model]): Likewise.
4457 ([-flto]): Likewise.
4458 ([--param]): Likewise.
4459 (Spec Files): Likewise.
4460 ([-mstrict-align]): Likewise.
4461 ([-mfix-cortex-a53-835769]): Likewise.
4462 ([-march], [-mtune]): Likewise.
4463 ([-mpic-register]): Likewise.
4464 ([-munaligned-access]): Likewise.
4465 ([-msp8]): Likewise.
4466 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
4467 (AVR Built-in Macros): Likewise.
4468 ([-mpreferred-stack-boundary]): Likewise.
4469 ([-mtune-crtl]): Likewise.
4470 ([-mashf]): Likewise.
4471 ([-mmcu=]): Likewise.
4472 ([-minrt]): Likewise.
4473 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
4474 ([-mupper-regs]): Likewise.
4475 ([-matomic-model]): Likewise.
4476 ([-mdiv]): Likewise.
4477 ([-mzdcbranch]): Likewise.
4478 ([-mdisable-callt]): Likewise.
4479 ([-msoft-float]): Likewise.
4480 ([-m8byte-align]): Likewise.
4481 ([-fstack-reuse]): Likewise.
4483 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4485 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
4486 Fix markup, light copy-editing.
4487 ([-fauto-profile]): Rewrite to fix formatting and content
4490 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4492 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
4493 Copy-edit description.
4494 ([-fisolate-erroneous-paths-attribute]): Likewise.
4495 * common.opt (fisolate-erroneous-paths-dereference):
4496 Copy-edit description.
4497 (fisolate-erroneous-paths-attribute): Likewise.
4499 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4501 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
4504 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
4506 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
4507 ([-fvtv-debug]): Likewise.
4508 ([-Wc++-compat]): Likewise.
4509 ([-Wc++11-compat]): Likewise.
4510 ([-Wc++14-compat]): Likewise.
4511 ([-Wno-sized-deallocation]): Likewise.
4512 ([-femit-class-debug-always]): Likewise.
4513 ([-femit-struct-debug-detailed]): Likewise.
4514 ([-fno-keep-inline-dllexport]): Likewise.
4515 ([-fira-algorithm]): Likewise.
4516 ([-fira-region]): Likewise.
4517 ([-flra-remat]): Likewise.
4518 ([-fipa-ra]): Likewise.
4519 ([-fhoist-adjacent-loads]): Likewise.
4520 ([-fisolate-erroneous-paths-dereference]): Likewise.
4521 ([-fisolate-erroneous-paths-attribute]): Likewise.
4522 ([-ftree-switch-conversion]): Likewise.
4523 ([-ftree-tail-merge]): Likewise.
4524 ([-ftree-loop-if-convert]): Likewise.
4525 ([-ftree-loop-if-convert-stores]): Likewise.
4526 ([-ftree-loop-distribution]): Likewise.
4527 ([-ftree-loop-distribute-patterns]): Likewise.
4528 ([-flto-compression-level]): Likewise.
4529 ([-flto-report]): Likewise.
4530 ([-flto-report-wpa]): Likewise.
4531 ([-fuse-linker-plugin]): Likewise.
4532 ([-mfix-cortex-a53-835769]): Likewise.
4533 ([-mno-fix-cortex-a53-835769]): Likewise.
4534 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
4535 explicit listing; add a note to the discussion indicating they
4536 exist. Reorder table to group similar options. Add missing
4537 @opindex entries. Add @need commands throughout the table to
4538 allow it to be split across multiple pages.
4539 ([-m8bit-idiv]): Fix @opindex.
4540 ([-mavx256-split-unaligned-load]): Likewise.
4541 ([-mavx256-split-unaligned-store]): Likewise.
4542 ([-mstack-protector-guard]): Likewise.
4543 ([-mcpu=]): Likewise.
4544 ([-mcpu]): Likewise.
4545 ([-mpointer-size=]): Likewise.
4547 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
4549 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
4550 instead of `m' constraint. Likewise for unnamed movb comparison
4551 patterns using reg_before_reload_operand predicate.
4552 * config/pa/predicates.md (reg_before_reload_operand): Tighten
4553 predicate to reject register index and LO_SUM DLT memory forms
4556 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
4558 * doc/invoke.texi (Option Summary): Fix spelling of
4559 -fdevirtualize-at-ltrans.
4560 ([-fdevirtualize]): Fix markup.
4561 ([-fdevirtualize-speculatively]): Fix typo.
4562 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
4564 * common.opt (fdevirtualize-at-ltrans): Likewise.
4565 * ipa-devirt.c: Fix typos in comments throughout the file.
4566 (ipa_devirt): Fix typos in format strings for dump output.
4568 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
4570 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
4571 discussion of defaults, light copy-editing.
4573 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4575 * tsan.c (instrument_expr): corrected previous checkin.
4577 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4579 Instrument bit field and unaligned accesses for TSAN.
4580 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
4581 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
4582 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
4583 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
4584 unaligned memory regions.
4586 2015-01-01 Anthony Green <green@moxielogic.com>
4588 * config/moxie/predicates.md (moxie_general_movsrc_operand):
4589 Restrict move source register offsets to 16 bits.
4591 Copyright (C) 2015 Free Software Foundation, Inc.
4593 Copying and distribution of this file, with or without modification,
4594 are permitted in any medium without royalty provided the copyright
4595 notice and this notice are preserved.