ipa-chkp.c: Use iterate_direct_aliases.
[official-gcc.git] / gcc / ChangeLog
blob43c0e34877c84a708ac8c50a81451097c55b52b2
1 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
3         * ipa-chkp.c: Use iterate_direct_aliases.
4         * symtab.c (resolution_used_from_other_file_p): Move inline.
5         (symtab_node::create_reference): Fix formating.
6         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
7         (symtab_node::iterate_reference): Move inline.
8         (symtab_node::iterate_referring): Move inline.
9         (symtab_node::iterate_direct_aliases): Move inline.
10         (symtab_node::used_from_object_file_p_worker): Inline into ...
11         (symtab_node::used_from_object_file_p): ... this one; move inline.
12         (symtab_node::call_for_symbol_and_aliases): Move inline;
13         use iterate_direct_aliases.
14         (symtab_node::call_for_symbol_and_aliases_1): New method.
15         (cgraph_node::call_for_symbol_and_aliases): Move inline;
16         use iterate_direct_aliases.
17         (cgraph_node::call_for_symbol_and_aliases_1): New method.
18         (varpool_node::call_for_node_and_aliases): Rename to ...
19         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
20         use iterate_direct_aliases.
21         (varpool_node::call_for_symbol_and_aliases_1): New method.
22         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
23         (ipa_discover_readonly_nonaddressable_var): Update.
24         * ipa-devirt.c: Fix formating.
25         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
26         Move inline.
27         (cgraph_node::call_for_symbol_and_aliases): Move inline.
28         (cgraph_node::call_for_symbol_and_aliases_1): New function..
29         * cgraph.h (used_from_object_file_p_worker): Remove.
30         (resolution_used_from_other_file_p): Move inline.
31         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32         (symtab_node::iterate_reference): Move inline.
33         (symtab_node::iterate_referring): Move inline.
34         (symtab_node::iterate_direct_aliases): Move inline.
35         (symtab_node::used_from_object_file_p_worker): Inline into ...
36         (symtab_node::used_from_object_file_p): Move inline.
37         * tree-emutls.c (ipa_lower_emutls): Update.
38         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
39         (varpool_node::call_for_node_and_aliases): Remove.
41 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
43         PR tree-optimization/62209
44         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
45         op == range->exp, insert seq and gimplified code after labels
46         instead of after the phi.
48 2015-02-13  Jeff Law  <law@redhat.com>
50         PR bootstrap/65060
51         Revert my change for tree-optimization/64823.
53 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
55         PR tree-optimization/65053
56         * tree-ssa-phiopt.c (value_replacement): When moving assign before
57         cond, either reset VR on lhs or set it to phi result VR.
59 2015-02-13  Jeff Law  <law@redhat.com>
61         PR tree-optimization/64823
62         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
63         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
64         threading through blocks with PHIs, but no statements.
65         (thread_through_normal_block): Distinguish between blocks where
66         we did not process all the statements and blocks with no statements.
68         PR rtl-optimization/47477
69         * match.pd (convert (plus/minus (convert @0) (convert @1): New
70         simplifier to narrow arithmetic.
72 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
74         PR ipa/65028
75         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
76         polymorphic call info when type is not known to be preserved.
78 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
80         PR ipa/65028
81         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
82         (inline_call): Use it.
83         
84 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
86         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
87         GOMP_DEVICE_NVIDIA_PTX.
89 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
91         PR ipa/65034
92         * stmt.c (emit_case_nodes): Use void_type_node instead of
93         NULL_TREE as LABEL_DECL type.
95 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
97         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
98         constraints.
99         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
100         symbolic references to data to be forced to constant memory on the
101         SOM target.
103 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
105         PR tree-optimization/65002
106         * tree-cfg.c (pass_data_fixup_cfg): Don't update
107         SSA on start.
108         * tree-sra.c (some_callers_have_no_vuse_p): New.
109         (ipa_early_sra): Reject functions whose callers
110         assume function is read only.
112 2015-02-13  Richard Biener  <rguenther@suse.de>
114         PR lto/65015
115         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
116         for LTO produced CUs.
118 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
120         PR tree-optimization/64705
121         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
122         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
123         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
124         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
125         expand_simple_operations.
127 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
128             Richard Henderson  <rth@redhat.com>
130         PR rtl/32219
131         * cgraphunit.c (cgraph_node::finalize_function): Set definition
132         before notice_global_symbol.
133         (varpool_node::finalize_decl): Likewise.
134         * varasm.c (default_binds_local_p_2): Rename from
135         default_binds_local_p_1, add weak_dominate argument.  Use direct
136         returns instead of assigning to local variable.  Unify varpool and
137         cgraph paths via symtab_node.  Reject undef weak variables before
138         testing visibility.  Reorder tests for simplicity.
139         (default_binds_local_p): Use default_binds_local_p_2.
140         (default_binds_local_p_1): Likewise.
141         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
142         via symtab_node.
143         (default_elf_asm_output_external): Emit visibility when specified.
145 2015-02-13  Alan Modra  <amodra@gmail.com>
147         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
148         code setting up r11 for out-of-line fp restore.
150 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
152         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
153         (muser-mode): Likewise.
155 2015-02-13  Alan Modra  <amodra@gmail.com>
157         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
158         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
160 2015-02-12  David Howells  <dhowells@redhat.com>
162         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
163         warning.
164         * tree-ssa-uninit.c (dump_predicates): Likewise.
165         * opts.c (print_filtered_help): Likewise.
167 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
169         * dwarf2out.c (output_die): Use "%s", name instead of name to
170         avoid -Wformat-security warning.
172         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
173         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
174         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
175         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
177 2015-02-12  Jason Merrill  <jason@redhat.com>
179         * common.opt (-flifetime-dse): New.
181 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
183         PR sanitizer/65019
184         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
186         PR tree-optimization/65014
187         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
188         use original second operand of arg0 or arg1 instead of
189         that adjusted by STRIP_NOPS.
191 2015-02-11  Jeff Law  <law@redhat.com>
193         PR target/63347
194         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
195         that needs to be queued, just queue it for a single cycle.
197 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
199         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
200         bodies of thunks; comment on why.
201         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
202         symbols are extern.
204 2015-02-11  Richard Henderson  <rth@redhat.com>
206         PR sanitize/65000
207         * tree-eh.c (mark_reachable_handlers): Mark source and destination
208         regions of __builtin_eh_copy_values.
210 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
212         PR middle-end/65003
213         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
214         ultimate alias is MEM with SYMBOL_REF satisfying
215         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
216         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
218 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
220         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
221         "diagnostic-core.h".
222         (main): Initialize progname, and call diagnostic_initialize.
224         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
225         instead of __OPENMP_TARGET__.
227         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
228         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
229         hard-coding PTX_ID.
231 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
233         * doc/sourcebuild.texi (pie_enabled): Document.
235 2015-02-11  Martin Liska  <mliska@suse.cz>
237         PR ipa/64813
238         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
239         a return value for call to a function that is noreturn.
241 2015-02-11  Richard Biener  <rguenther@suse.de>
243         PR lto/65015
244         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
245         and -fresolution.
247 2015-02-11  Andrew Pinski  <apinski@cavium.com>
249         PR target/64893
250         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
251         Change the first argument type to size_type_node and add another
252         size_type_node.
253         (aarch64_simd_expand_builtin): Handle the new argument to
254         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
255         print an out when the first two arguments are not
256         nonzero integer constants.
257         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
258         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
260 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
262         PR target/61925
263         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
264         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
265         (ix86_set_current_function): Rewritten.
266         (ix86_add_new_builtins): Temporarily clear current_target_pragma
267         when creating builtin fndecls.
269 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
271         PR ipa/65005
272         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
273         function.
274         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
275         have no comdat group.
276         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
277         (lto_output_varpool_node): Always output alias info.
278         (output_refs): Output refs of boundary aliases, too.
279         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
280         (output_symtab): Output call eges in thunks in boundary.
281         (get_alias_symbol): Remove.
282         (input_node, input_varpool_node): Do not special case weakrefs.
283         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
284         alias and thunks targets in the boundary; do not take removed symbols
285         from their comdat groups.
286         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
287         (cgraph_node::global_info): Remove.
288         (cgraph_node::rtl_info): Look through aliases and thunks.
289         * cgrpah.h (global_info): Remove.
290         (non_local_p): Remove.
292 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
293             Sandra Loosemore  <sandra@codesourcery.com>
295         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
296         to inline asm.  List dialects in proper order.
298 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
299             Sandra Loosemore  <sandra@codesourcery.com>
301         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
303 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
305         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
306         modified) reference to Solaris.
308 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
310         * doc/extend.texi (Extended Asm): Fix typos.
312 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
314         PR sanitizer/65004
315         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
317 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
319         PR target/64661
320         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
321         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
322         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
323         * config/sh/constraints.md (Ara, Add): New constraints.
324         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
325         predicates.
326         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
327         atomic_mem_operand_0.  Don't use force_reg on the memory address.
328         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
329         Sra constraint.  Convert to insn_and_split.  Add workaround for
330         PR 64974.
331         (atomic_compare_and_swap<mode>_hard): Copy to
332         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
333         Use atomic_mem_operand_0 predicate.
334         (atomic_compare_and_swap<mode>_soft_gusa,
335         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
336         AraAdd constraints.
337         (atomic_compare_and_swap<mode>_soft_tcb,
338         atomic_compare_and_swap<mode>_soft_imask,
339         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
340         atomic_mem_operand_0 predicate and SraSdd constraints.
341         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
342         constraint.
343         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
344         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
345         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
346         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
347         force_reg on the memory address.
348         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
349         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
350         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
351         atomic_mem_operand_1 predicate and Sra constraint.
352         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
353         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
354         Use atomic_mem_operand_1 predicate.
355         (atomic_<fetchop_name><mode>_hard): Copy to
356         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
357         Use atomic_mem_operand_1 predicate.
358         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
359         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
360         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
361         insn_and_split.  Use atomic_mem_operand_1 predicate.
362         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
363         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
364         Use atomic_mem_operand_1 predicate.
365         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
366         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
367         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
368         in generated insn with original mem operand before emitting the insn.
369         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
370         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
371         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
372         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
373         Use atomic_mem_operand_1 predicate and AraAdd constraints.
374         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
375         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
376         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
377         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
378         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
379         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
380         atomic_not_fetch<mode>_soft_tcb,
381         atomic_<fetchop_name>_fetch<mode>_soft_imask,
382         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
383         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
384         Use atomic_mem_operand_1 predicate and SraSdd constraints.
386 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
388         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
389         and 3 earlyclobber operands.
391 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
393         * common.opt (fstack-reuse): Mark as optimization.
395 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
397         PR ipa/64982
398         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
400 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
402         PR tree-optimization/64326
403         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
405 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
407         PR gcov-profile/61889
408         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
410 2015-02-10  Richard Biener  <rguenther@suse.de>
412         PR tree-optimization/64995
413         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
414         value we use is final.
415         (visit_reference_op_store): Always valueize op.
416         (visit_use): Properly valueize vuses.
418 2015-02-10  Richard Biener  <rguenther@suse.de>
420         PR tree-optimization/64909
421         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
422         pass a scalar-stmt count estimate to the cost model.
423         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
425 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
427         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
428         enabled by default together with var-tracking.
430 2015-02-10  Nick Clifton  <nickc@redhat.com>
432         * config/rl78/rl78.c: Remove DIV attribute code accidentally
433         included in previous rl78 commit.
435 2015-02-10  Richard Biener  <rguenther@suse.de>
437         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
438         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
439         return the bitpack.
441 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
443         PR gcov-profile/61889
444         * config.in: regenerate.
445         * configure.in: Likewise.
446         * configure.ac: Check for ftw.h.
447         * gcov-tool.c: Check for ftw.h before using nftw.
449 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
451         PR lto/64076
452         * ipa-visibility.c (update_visibility_by_resolution_info): Only
453         assert when not in lto mode.
455 2015-02-09  Zhouyi Zhou   <yizhouzhou@ict.ac.cn>
457         * ira-color.c (setup_left_conflict_sizes_p): Simplify
458         initialization/assignment of conflict_size.
460 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
462         PR ipa/64978
463         * ipa-cp.c (gather_caller_stats): Skip thunks.
464         (propagate_constants_topo): Skip aliases.
466 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
468         PR target/64761
469         * config/sh/sh.c (sh_option_override): Don't change
470         -freorder-blocks-and-partition to -freorder-blocks even when
471         unwinding is enabled.
472         (sh_can_follow_jump): Return false if the followee jump is
473         a crossing jump when -freorder-blocks-and-partition is specified.
474         * config/sh/sh.md (*jump_compact_crossing): New insn.
476 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
477             Kaz Kojima  <kkojima@gcc.gnu.org>
479         PR target/64761
480         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
481         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
482         (sh_can_redirect_branch): Rename to ...
483         (sh_can_follow_jump): ... this.  Constify argument types.
484         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
485         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
486         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
487         * doc/tm.texi: Regenerate.
489 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
491         PR sanitizer/64981
492         * builtins.c (expand_builtin): Call targetm.expand_builtin
493         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
495 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
497         PR ipa/61548
498         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
500 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
502         PR ipa/63566
503         * ipa-icf.c (set_local): New function.
504         (sem_function::merge): Use it.
506 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
508         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
509         (add_type_duplicate): Fix comparison of BINFOs.
511 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
513         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
514         on getting VOID pointer.
516 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
518         PR target/64979
519         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
520         va_list escapes.
522 2015-02-09  Richard Biener  <rguenther@suse.de>
524         * genmatch.c (replace_id): Copy expr_type.
526 2015-02-09  Richard Biener  <rguenther@suse.de>
528         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
529         (streamer_write_tree_bitfields): Declare.
530         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
531         properly unpack padding.
532         (unpack_value_fields): Inline ...
533         (streamer_read_tree_bitfields): ... here.
534         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
535         and properly add padding bits.
536         (streamer_pack_tree_bitfields): Fold into ...
537         (streamer_write_tree_bitfields): ... this new function,
538         exposing the bitpack object.
539         * lto-streamer-out.c (lto_write_tree_1): Call
540         streamer_write_tree_bitfields.
542 2015-02-09  Richard Biener  <rguenther@suse.de>
544         PR tree-optimization/54000
545         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
546         (struct ivopts_data): Add loop_loc member.
547         (tree_ssa_iv_optimize_loop): Dump loop location.
548         (create_new_ivs): Likewise, also dump number of IVs generated.
550 2015-02-09  Martin Liska  <mliska@suse.cz>
552         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
553         just if not yet registered.
554         (ipa_icf_generate_summary): Register callgraph hooks.
556 2015-02-08  Andrew Pinski  <apinski@cavium.com>
558         * config/aarch64/aarch64.c (gty_dummy): Delete.
560 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
562         PR ipa/63566
563         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
564         (cgraph_node::local_p): Remove thunk related FIXME.
566 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
568         PR ipa/63566
569         * i386.c (ix86_function_regparm): Look through aliases to see if callee
570         is local and optimized.
571         (ix86_function_sseregparm): Likewise; also use target's SSE math
572         settings; error out instead of silently generating wrong code
573         on mismatches.
574         (init_cumulative_args): Look through aliases.
576 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
578         PR ipa/63566
579         * ipa-split.c (execute_split_functions): Split if function has aliases.
581 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
583         PR ipa/63566
584         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
585         aliases before trying to expand it.
586         (cgraph_node::expand_thunk): Fix formating.
588 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
590         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
591         (Using Assembly Language with C): Expand introduction.
592         (Basic Asm): Copy-edit.  Add more information about uses of
593         basic asm.
594         (Extended Asm): Copy-edit.  Document new escape syntax and
595         %l[label] syntax.
596         (Global Reg Vars): Copy-edit.
597         (Local Reg Vars): Likewise.
599 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
601         PR debug/2714
602         PR bootstrap/64256
603         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
604         (DBX_CONTIN_CHAR): Define.
606 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
607             Brian Rzycki  <b.rzycki@samsung.com>
609         PR tree-optimization/64878
610         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
611         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
612         Stop recursion at loop phi nodes after having visited a loop phi node.
614 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
616         * toplev.c (process_options): Change flag_ipa_ra before creating
617         optimization_{default,current}_node.
619         PR ipa/64896
620         * cgraphunit.c (cgraph_node::expand_thunk): If
621         restype is not is_gimple_reg_type nor the thunk_fndecl
622         returns aggregate_value_p, set restmp to a temporary variable
623         instead of resdecl.
625 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
627         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
629 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
631         PR target/64205
632         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
633         add a general secondary reload handler for SDmode, unless we have
634         both read/write support for SDmode.
636 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
638         PR middle-end/64937
639         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
640         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
641         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
642         1 before, push it to abstract_vec.
643         (dwarf2out_abstract_function): Adjust caller.  Don't call
644         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
645         DECL_ABSTRACT_P flags for all abstract_vec elts.
647 2015-02-06  Renlin Li  <renlin.li@arm.com>
649         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
650         complex gimple.
651         * tree-ssa.c (execute_update_addresses_taken): Likewise.
653 2015-02-06  Jeff Law  <law@redhat.com>
655         PR target/64889
656         * config/h8300/h8300.c (push): New argument "in_prologue".
657         Pass "in_prologue" along to "F".
658         (h8300_push_pop): Corresponding changes.
659         (h8300_expand_prologue): Likewise.
660         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
662 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
664         PR rtl-optimization/64957
665         PR debug/64817
666         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
667         IOR rather than for AND.
669 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
671         PR target/62631
672         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
673         of shift-add and (add + shift) operations.  Rename local variable.
675 2015-02-05  Jeff Law  <law@redhat.com>
677         PR target/17306
678         * config/h8300/constraints.md (U): Correctly dectect
679         "eightbit_data" memory addresses.
680         * config/h8300/h8300.c (eightbit_constant_address_p): Also
681         handle (const (plus (symbol_ref (x)))) where x is declared
682         as an 8-bit data memory address.
683         * config/h8300/h8300.md (call, call_value): Correctly detect
684         "funcvec" functions.
686         PR target/43264
687         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
688         24 to 28 bits for the H8/300.
690 2015-02-06  Alan Modra  <amodra@gmail.com>
692         PR target/64876
693         * config/rs6000/rs6000.c (chain_already_loaded): New function.
694         (rs6000_call_aix): Use it.
696 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
698         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
699         check.
701 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
703         * config/h8300/constraints.md ("U" constraint): Use strict
704         variant of REG_OK_FOR_BASE_P after reload has started.
706 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
708         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
709         define to zero if !TARGET_NEON.
710         (TARGET_CPU_CPP_BUILTINS): Added second condition before defining
711         __ARM_FP macro.
713 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
714             Trevor Saunders  <tsaunders@mozilla.com>
716         PR ipa/61548
717         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
719 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
721         PR ipa/61548
722         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
723         when removing varpool nodes.
725 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
727         PR ipa/61548
728         * varpool.c (varpool_node::remove): Fix order of variables.
730 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
732         PR ipa/64686
733         * ipa-inline.c (inline_small_functions): Fix ordering issue between
734         speculation resolution and key updates.
736 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
738         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
739         about not letting any speculative edges unupdated.
741 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
743         PR gcov/64123
744         * gcov-io.c (gcov_var): Export.
746 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
748         PR middle-end/64922
749         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
750         edges that become speculative.
752 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
754         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
755         or DW_LANG_Fortran08.
756         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
757         DW_LANG_Fortran08.
758         (gen_compile_unit_die): Handle "GNU Fortran2003" and
759         "GNU Fortran2008" language strings.
760         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
761         * langhooks.h (lang_GNU_Fortran): New prototype.
762         * langhooks.c (lang_GNU_Fortran): New function.
763         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
764         lang_GNU_Fortran.
766 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
768         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
769         (RTX_OK_FOR_OLO10_P): Likewise.
771 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
773         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
775 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
777         PR middle-end/64922
778         * gimple.c: Include gimple-ssa.h.
779         (maybe_remove_unused_call_args): New function.
780         * gimple.h (maybe_remove_unused_call_args): Declare.
781         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
782         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
783         * gimple-fold.c (gimple_fold_call): Likewise.
785 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
787         PR rtl-optimization/64905
788         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
789         pointer alignment if it isn't needed.
791 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
793         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
794         cortex-a72.cortex-a53.
795         * config/aarch64/aarch64-tune.md: Regenerate.
796         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
798 2015-02-04  Nick Clifton  <nickc@redhat.com>
800         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
801         inside a MEM.
803 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
805         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
806         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
807         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
808         of DEF_BUILTIN.
809         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
810         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
811         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
812         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
813         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
814         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
815         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
816         * tree-core.h (enum built_in_function): In between
817         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
818         for builtins that use DEF_BUILTIN_CHKP macro.
820 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
822         PR debug/64817
823         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
824         operands for tcc_comparison exprs.  Fix typos.
826         PR debug/64817
827         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
828         of two XORs that have an intervening AND or IOR.
830         PR debug/64817
831         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
832         simplification of XOR of AND to not allocate new rtx before
833         committing to a simplification.
835 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
837         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
838         manual swaps in all peepholes.
840 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
842         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
843         of manual swapping implementation.
844         (aarch64_expand_vec_perm_const_1): Likewise.
846 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
848         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
849         (generic_addrcost_table): Remove NAMED_PARAM.
850         (cortexa57_addrcost_table): Likewise.
851         (xgene1_addrcost_table): Likewise.
852         (generic_regmove_table): Likewise.
853         (cortexa53_regmove_table): Likewise.
854         (xgene1_regmove_table): Likewise.
855         (generic_vector_table): Likewise.
856         (cortexa57_vector_table): Likewise.
857         (xgene1_vector_table): Likewise.
858         (generic_tunings): Likewise.
859         (cortexa53_tunings): Likewise.
860         (cortexa57_tunings): Likewise.
861         (xgene1_tunings): Likewise.
863 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
865         * config/arm/arm-cores.def: Add cortex-a72 and
866         cortex-a72.cortex-a53.
867         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
868         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
869         * config/arm/arm-tune.md: Regenerate.
870         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
871         "cortex-a72.cortex-a53".
872         * doc/invoke.texi (ARM Options/-mtune): Likewise.
874 2015-02-04  Nick Clifton  <nickc@redhat.com>
876         PR target/64408
877         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
878         of accepted codes.
879         (nonimmediate_di_operand): Likewise.
881         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
882         prefixes of known F5 using MSP430 MCUs.
884 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
886         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
887         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
888         instead of __builtin_sqrt.
890 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
892         * varasm.c (do_assemble_alias): Follow transparent alias
893         chain for target.
894         (default_assemble_visibility): Follow transparent alias
895         chain for decl name.
897 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
899         PR middle-end/62103
900         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
901         to compute size of referenced value in the constant case.
903 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
905         PR rtl-optimization/64756
906         * cse.c (invalidate_dest): New function.
907         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
908         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
909         invalidate and do not record it.
911 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
913         PR target/64660
914         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
915         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
916         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
917         atomic_nand<mode>_soft_tcb): New insns.
918         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
919         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
920         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
921         Split into atomic_not_fetchsi_hard if operands[0] is unused.
922         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
923         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
924         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
925         atomic_not<mode>_hard if operands[0] is unused.
926         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
927         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
928         if operands[0] is unused.
929         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
930         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
931         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
932         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
933         unused.
934         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
935         into atomic_not<mode>_soft_tcb if operands[0] is unused.
936         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
937         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
938         if operands[0] is unused.
939         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
940         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
941         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
942         atomic_nand_fetchsi_hard if operands[0] is unused.
943         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
944         atomic_nand<mode>_hard if operands[0] is unused.
945         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
946         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
947         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
948         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
949         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
950         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
951         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
952         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
953         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
954         atomic_not<mode>_hard if operands[0] is unused.
955         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
956         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
957         unused.
958         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
959         into atomic_not<mode>_soft_tcb if operands[0] is unused.
960         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
961         atomic_nand<mode>_hard if operands[0] is unused.
962         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
963         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
965 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
967         PR jit/64810
968         * Makefile.in (GCC_OBJS): Add gcc-main.o.
969         * gcc-main.c: New file, containing "main" taken from gcc.c.
970         * gcc.c (do_self_spec): Free decoded_options.
971         (class driver): Move declaration to gcc.h.
972         (main): Move declaration and implementation to new file
973         gcc-main.c.
974         (driver_get_configure_time_options): New function.
975         * gcc.h (class driver): Move this declaration here, from
976         gcc.c.
977         (driver_get_configure_time_options): New declaration.
979 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
981         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
982         cross-module inlining.
983         * cgraph.h (cgraph_node): Add flag merged.
984         * ipa-icf.c (sem_function::merge): Maintain it.
986 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
988         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
989         instead of OBJECT_P.
991 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
993         PR target/62631
994         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
995         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
996         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
997         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
999 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
1001         PR other/63504
1002         * combine.c (reg_n_sets_max): New variable.
1003         (can_change_dest_mode, reg_nonzero_bits_for_combine,
1004         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
1005         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
1006         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
1007         (rest_of_handle_combine): Initialize reg_n_sets_max.
1009 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
1011         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
1012         if some always_inline was inlined, apply changes before inlining
1013         heuristically.
1015 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
1017         PR jit/64810
1018         * config/arm/arm.c (arm_option_override): Set
1019         arm_selected_arch/cpu/tune to NULL on entry.
1021 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
1022             Andrew Pinski  <pinskia@gcc.gnu.org>
1023             Jakub Jelinek  <jakub@gcc.gnu.org>
1025         PR target/64231
1026         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
1027         integer typing for small model. Use IN_RANGE.
1029 2015-02-02  Richard Biener  <rguenther@suse.de>
1031         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
1032         * tree-vrp.c (vrp_valueize_1): Likewise.
1034 2015-02-02  Alan Modra  <amodra@gmail.com>
1036         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
1037         than mem for toc_restore.
1038         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
1039         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
1040         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
1042 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
1044         PR target/64047
1045         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
1046         explicit default options.
1048 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
1050         PR ipa/64872
1051         * ipa-utils.c (ipa_merge_profiles): Add release argument.
1052         * ipa-icf.c (sem_function::merge): Do not release body when merging.
1053         * ipa-utils.h (ipa_merge_profiles): Update prototype.
1055 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
1057         PR debug/64817
1058         * cfgexpand.c (deep_ter_debug_map): New variable.
1059         (avoid_deep_ter_for_debug): New function.
1060         (expand_debug_expr): If TERed SSA_NAME is in
1061         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
1062         instead of trying to expand SSA_NAME's def stmt.
1063         (expand_debug_locations): When expanding debug bind
1064         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
1065         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
1066         value.
1067         (pass_expand::execute): Call avoid_deep_ter_for_debug on
1068         all debug bind stmts.  Delete deep_ter_debug_map after
1069         expand_debug_location if non-NULL and clear it.
1071 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
1073         PR target/64851
1074         * config/sh/sync.md (atomic_fetch_notsi_hard,
1075         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
1076         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
1077         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
1078         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
1079         atomic_not_fetch<mode>_soft_imask): New insns.
1081 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1083         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
1084         (rank_for_schedule_debug): Split from ...
1085         (rank_for_schedule): ... this.
1086         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
1087         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
1089 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
1091         * doc/md.texi (Machine Constraints): Alphabetize table by target.
1092         * doc/extend.texi (x86 Variable Attributes): Move section to
1093         correct alphabetization after renaming.
1094         (x86 Type Attributes): Likewise.
1095         (Target Builtins): Re-alphabetize menu.
1096         (x86 Built-in Functions): Move section to correct alphabetization
1097         after renaming.
1098         (x86 transactional memory intrinsics): Likewise.
1099         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
1100         and x86 Windows Options in table and menu.
1101         (x86 Options): Move section to correct alphabetization after
1102         renaming.
1103         (x86 Windows Options): Likewise.
1105 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
1107         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
1108         preferred names of the architecture and its 32- and 64-bit
1109         variants.
1110         * doc/invoke.texi: Likewise.
1111         * doc/md.texi: Likewise.
1113 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
1115         PR target/64882
1116         * config/i386/predicates.md (address_no_seg_operand): Reject
1117         non-CONST_INT_P operands in invalid mode.
1119 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
1121         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
1122         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
1123         * config/i386/predicates.md (address_no_seg_operand): Call
1124         address_operand with VOIDmode.
1125         (vsib_address_operand): Ditto.
1126         (address_mpx_no_base_operand): Ditto.
1127         (address_mpx_no_index_operand): Ditto.
1129 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
1131         PR target/64688
1132         * lra-constraints.c (original_subreg_reg_mode): New.
1133         (simplify_operand_subreg): Try to simplify subreg of const.  Use
1134         original_subreg_reg_mode for it.
1135         (swap_operands): Update original_subreg_reg_mode.
1136         (curr_insn_transform): Set up original_subreg_reg_mode.
1138 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
1140         PR target/64617
1141         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
1142         function.
1143         (process_alt_operands): Use it.
1144         (curr_insn_transform): Check the optional reload pseudo class is
1145         ok for the mode.
1147 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
1149         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
1150         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
1151         prototype.
1152         * toplev.h (init_asm_output): Update comment on use of
1153         UNKNOWN_LOCATION with fatal_error.
1154         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
1155         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
1156         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
1157         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
1158         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
1159         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
1160         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
1161         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
1162         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
1163         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
1164         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
1165         fatal_error changed to pass input_location as first argument.
1167 2015-01-30  Martin Liska  <mliska@suse.cz>
1169         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
1170         in #pragma GCC diagnostic guards.
1172 2015-01-30  Richard Biener  <rguenther@suse.de>
1174         PR tree-optimization/64829
1175         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
1176         not add a widening conversion pattern but hand off extra
1177         widenings to callers.
1178         (vect_recog_widen_mult_pattern): Handle extra widening produced
1179         by vect_handle_widen_op_by_const.
1180         (vect_recog_widen_shift_pattern): Likewise.
1181         (vect_pattern_recog_1): Remove excess vertical space in dumping.
1182         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1183         (vect_init_vector_1): Likewise.
1184         (vect_get_vec_def_for_operand): Likewise.
1185         (vect_finish_stmt_generation): Likewise.
1186         (vectorizable_load): Likewise.
1187         (vect_analyze_stmt): Likewise.
1188         (vect_is_simple_use): Likewise.
1190 2015-01-29  Jeff Law  <law@redhat.com>
1192         * combine.c (try_combine): Fix typo in comment.
1194 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
1196         PR target/64580
1197         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
1198         (rs6000_stack_info): Add assert.
1199         (rs6000_output_savres_externs): New function, split off from...
1200         (rs6000_output_function_prologue): ... here.  Do not call it for
1201         thunks.
1203 2015-01-29  Jeff Law  <law@redhat.com>
1205         PR target/15184
1206         * combine.c (try_combine): If I0 is a memory load and I3 a store
1207         to a related address, increase the "goodness" of doing a 4-insn
1208         combination with I0-I3.
1209         (make_field_assignment): Handle SUBREGs in the ior+and case.
1211 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
1213         PR tree-optimization/64746
1214         * tree-if-conv.c (mask_exists): New function.
1215         (predicate_mem_writes): Save created mask with given size for further
1216         use.
1217         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
1218         (ifcvt_repair_bool_pattern): Collect all statements that are root
1219         of bool pattern and use iterative algorithm to remove multiple uses
1220         of predicates, display number of required iterations.
1222 2015-01-29  Richard Biener  <rguenther@suse.de>
1224         PR tree-optimization/64853
1225         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
1226         stmt will get simulated again.
1227         * tree-ssa-ccp.c (valueize_op_1): Likewise.
1229 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1231         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
1232         return_in_pc.  Remove redundant assignments.
1233         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1234         (arm_expand_epilogue): Don't compare boolean with true in if condition.
1236 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
1238         * config/i386/i386.c (ix86_mode_after): Make static.
1240 2015-01-29  Richard Biener  <rguenther@suse.de>
1242         PR tree-optimization/64844
1243         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1244         dump cost model analysis.
1245         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1246         Do not register adjusted load/store costs here.
1248 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1249             Uros Bizjak  <ubizjak@gmail.com>
1251         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1252         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1253         using x86_use_pseudo_pic_reg.
1254         * config/i386/i386.c (ix86_conditional_register_usage): Remove
1255         support for fixed PIC register.
1256         (ix86_use_pseudo_pic_reg): Not static any more.
1258 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1260         PR middle-end/64805
1261         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1262         to avoid error in cgraph node verification.
1264 2015-01-29  Marek Polacek  <polacek@redhat.com>
1266         * doc/standards.texi: Reflect that the default for C is gnu11.
1268 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1270         PR target/64761
1271         * reorg.c (switch_text_sections_between_p): New function.
1272         (relax_delay_slots): Call it when testing if the jump insn
1273         is removable.  Use targetm.can_follow_jump when testing if
1274         the conditional branch can follow an unconditional jump.
1276 2015-01-27  Caroline Tice  <cmtice@google.com>
1278         Committing VTV Cywin/Ming patch for Patrick Wollgast
1279         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
1280         if -fvtable-verify=preinit/std is used.
1281         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
1282         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
1283         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
1284         if -fvtable-verify=preinit/std is used.
1285         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
1286         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
1287         if -fvtable-verify=preinit/std is used.
1288         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
1289         * config/i386/mingw32.h (LIB_SPEC): Likewise.
1290         * varasm.c (assemble_variable): Add code to properly set the comdat
1291         section and name for the .vtable_map_vars section in case the
1292         target is PE or COFF.
1294 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
1296         PR ipa/64801
1297         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
1298         make sane BB profile.
1299         (cgraph_node::expand_thunk): Make sane BB profile.
1300         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
1301         * cgraph.h (init_lowered_empty_function): Update prototype.
1302         * config/i386/i386.c (make_resolver_func): Update call.
1303         * predict.c (gate): Disable branch prediction pass if
1304         profile is already there.
1306 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
1308         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
1309         * opth-gen.awk: Likewise.
1310         * common.opt: Mark flag_fp_contract_mode as Optimization.
1312 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1314         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
1315         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
1317 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
1319         PR target/64659
1320         * config/sh/predicates.md (atomic_arith_operand,
1321         atomic_logical_operand): Remove.
1322         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
1323         (atomic_arith_operand_0): New predicate.
1324         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
1325         Use atomic_arith_operand_0 for input values.
1326         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1327         atomic_compare_and_swap<mode>_soft_gusa,
1328         atomic_compare_and_swap<mode>_soft_tcb,
1329         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
1330         arith_reg_operand instead of register_operand.
1331         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
1332         atomic_arith_operand_0 for newval input.
1333         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1334         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
1335         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
1336         arith_reg_operand instead of register_operand.
1337         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
1338         fetchop_predicate_1, fetchop_constraint_1_llcs,
1339         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
1340         fetchop_constraint_1_imask): New code iterator attributes.
1341         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
1342         register_operand.  Use fetchop_predicate_1.
1343         (atomic_fetch_<fetchop_name>si_hard,
1344         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
1345         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
1346         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
1347         and arith_reg_operand instead of register_operand.  Use
1348         fetchop_predicate_1, fetchop_constraint_1_gusa.
1349         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
1350         and arith_reg_operand instead of register_operand.  Use
1351         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
1352         to allow R0 usage.
1353         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
1354         and arith_reg_operand instead of register_operand.  Use
1355         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
1356         to allow R0 usage.
1357         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
1358         register_operand.  Use atomic_logical_operand_1.
1359         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
1360         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
1361         arith_reg_operand instead of register_operand.
1362         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
1363         Use arith_reg_dest and arith_reg_operand instead of register_operand.
1364         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
1365         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
1366         register_operand.  Use fetchop_predicate_1.
1367         (atomic_<fetchop_name>_fetchsi_hard,
1368         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
1369         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1370         fetchop_constraint_1_llcs.
1371         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
1372         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1373         fetchop_constraint_1_gusa.
1374         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
1375         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1376         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
1377         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
1378         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1379         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
1380         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
1381         register_operand.  Use atomic_logical_operand_1.
1382         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
1383         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
1384         arith_reg_operand instead of register_operand.
1385         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
1386         arith_reg_operand instead of register_operand.  Use logical_operand
1387         and K08.  Adjust asm sequence to allow R0 usage.
1388         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
1389         arith_reg_operand instead of register_operand.  Use logical_operand
1390         and K08.
1392 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
1394         PR other/63504
1395         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
1396         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
1397         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
1398         only get_full_len HOST_WIDE_INTs from get_val () array rather than
1399         all bits in *val_wide.
1401 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
1403         * varpool.c (tls_model_names): Fix names.
1404         (varpool_node::dump): Dump tls- prefix for tls models.
1406 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
1407             Bernd Schmidt  <bernds@codesourcery.com>
1408             Nathan Sidwell  <nathan@codesourcery.com>
1410         * config/nvptx/mkoffload.c: New file.
1411         * config/nvptx/t-nvptx: Add build rules for it.
1412         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
1413         (extra_programs): Add mkoffload.
1414         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
1415         function.
1416         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
1418 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
1420         PR middle-end/64809
1421         * cfgexpand.c (reorder_operands): Skip debug gimples.
1423 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
1425         PR tree-optimization/64277
1426         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
1427         range info when possible to refine estimation.
1429 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1431         PR tree-optimization/64718
1432         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
1433         be a 16bit unsigned integer when n->range is 16.
1434         (bswap_replace): Convert src to that type if necessary for all bswap
1435         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
1436         set in pass_optimize_bswap::execute ().
1438 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
1440         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
1441         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
1442         integer and floating point variants.
1443         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
1445 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
1447         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
1448         for all vector modes.
1450 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
1452         PR bootstrap/64612
1453         * doc/sourcebuild.texi (comdat_group): Document.
1455 2015-01-28  Terry Guo  <terry.guo@arm.com>
1457         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
1459 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
1461         * toplev.c (print_version): Add param "show_global_state", and
1462         only print GGC and plugin information if it is true.
1463         (init_asm_output): Pass in "true" for the new param when calling
1464         print_version.
1465         (process_options): Likewise.
1466         (toplev::main): Likewise.
1467         * toplev.h (print_version): Add new param to decl.
1469 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
1471         PR ipa/60871
1472         PR ipa/64139
1473         * tree.c (lookup_binfo_at_offset): New function.
1474         (get_binfo_at_offset): Use it.
1476 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
1478         PR ipa/64282
1479         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
1480         on vtable being vtable.
1482 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1484         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
1485         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
1486         -mhotpatch= option.
1487         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
1488         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
1489         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
1490         Renamed.
1491         (s390_hotpatch_trampoline_halfwords_max): Renamed.
1492         (s390_hotpatch_hw_max): New name.
1493         (s390_hotpatch_trampoline_halfwords): Renamed.
1494         (s390_hotpatch_hw_before_label): New name.
1495         (get_hotpatch_attribute): Removed.
1496         (s390_hotpatch_hw_after_label): New name.
1497         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
1498         attribute.
1499         (s390_attribute_table): Ditto.
1500         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
1501         (s390_function_num_hotpatch_hw): New name.
1502         Remove special handling of inline functions and hotpatching.
1503         Return number of nops before and after the function label.
1504         (s390_can_inline_p): Removed.
1505         (s390_asm_output_function_label): Emit a configurable number of nops
1506         after the function label.
1507         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
1508         (TARGET_CAN_INLINE_P) Removed.
1509         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
1511 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1512             Jiong Wang  <jiong.wang@arm.com>
1514         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
1515         of scratch reg.
1516         (cb<optab><mode>1): Likewise.
1517         * config/aarch64/iterators.md (bcond): New define_code_attr.
1519 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1521         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
1522         memory accesses.
1524 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1526         * config/s390/s390.c (s390_register_move_cost): Increase costs for
1527         FPR->GPR moves.
1529 2015-01-27  Richard Biener  <rguenther@suse.de>
1531         * tree-vrp.c (update_value_range): Intersect the range with
1532         old recorded SSA name range information.
1534 2015-01-27  Nick Clifton  <nickc@redhat.com>
1536         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
1537         BC, DE and HL registers directly, not via AX.
1538         When decrementing the stack pointer by a large amount, transfer SP
1539         into AX and perform the subtraction there.
1540         (rl78_expand_epilogue): Perform the inverse of the above
1541         enhancements.
1543 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1545         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
1547 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
1548             Yury Gribov  <y.gribov@samsung.com>
1550         PR ubsan/64741
1551         * ubsan.c (ubsan_source_location): Refactor code.
1552         (ubsan_type_descriptor): Update type size. Refactor code.
1554 2015-01-27  Richard Biener  <rguenther@suse.de>
1556         PR tree-optimization/56273
1557         PR tree-optimization/59124
1558         PR tree-optimization/64277
1559         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
1560         from the first VRP pass.
1562 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
1564         PR ipa/64776
1565         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
1566         handle the first argument in the same loop as all the other arguments.
1568         PR rtl-optimization/61058
1569         * jump.c (cleanup_barriers): Update basic block boundaries
1570         if BLOCK_FOR_INSN is non-NULL on PREV.
1572 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
1574         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
1575         bounds narrowing, already instrumented calls and calls to
1576         not instrumentable functions.
1578 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
1580         PR tree-optimization/64807
1581         * wide-int.cc (wi::divmod_internal): Clear
1582         b_dividend[dividend_blocks_needed].
1584 2015-01-26  DJ Delorie  <dj@redhat.com>
1586         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
1587         volatile memory references.
1589 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
1591         PR target/49263
1592         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
1593         remove_insn.
1594         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
1595         shifts if it already fits into K08.
1597 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
1599         PR ipa/64730
1600         * ipa-inline.c (inline_small_functions): Print "unknown" even
1601         if edge->call_stmt is non-NULL, but has builtins or unknown
1602         location.
1604         PR middle-end/64421
1605         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
1606         with asterisk, skip the first character.
1608 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1610         PR target/64806
1611         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
1612         order change.
1614 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
1616         PR target/64795
1617         * config/i386/i386.md (*movdi_internal): Also check operand 0
1618         to determine TYPE_LEA operand.
1619         (*movsi_internal): Ditto.
1621 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
1623         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
1624         OPTION_MASK_QUAD_MEMORY_ATOMIC.
1626 2015-01-26  Renlin Li  <renlin.li@arm.com>
1628         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
1629         the comment.
1630         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
1631         for higher part.
1633 2015-01-26  Richard Biener  <rguenther@suse.de>
1635         PR middle-end/64764
1636         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
1637         combining two BIT_AND_EXPR predicates.
1639 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1641         PR bootstrap/64754
1642         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
1644 2015-01-26  Terry Guo  <terry.guo@arm.com>
1646         * config/arm/arm.c (arm_file_start): Update the assignment of
1647         Tag_ABI_HardFP_use.
1649 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
1651         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
1652         pipeline model.
1653         config/arm/arm.md: Include the new Cortex-A57 model.
1654         (generic_sched): Don't use generic_sched when tuning for
1655         Cortex-A57.
1657 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
1658             Uros Bizjak  <ubizjak@gmail.com>
1660         * config/i386/i386.c (get_builtin_code_for_version): Add
1661         support for BMI and BMI2 multiversion functions.
1663 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1665         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
1666         (extract_bit_field): Likewise.
1667         (extract_low_bits): Likewise.
1668         (expand_mult): Likewise.
1669         (expand_mult_highpart_adjust): Likewise.
1671 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
1673         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
1674         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
1675         * config/i386/i386.c (processor_model): Add
1676         M_INTEL_COREI7_BROADWELL.
1677         (arch_names_table): Add "broadwell".
1679 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
1681         PR target/49263
1682         PR target/53987
1683         PR target/64345
1684         PR target/59533
1685         PR target/52933
1686         PR target/54236
1687         PR target/51244
1688         * config/sh/sh-protos.h
1689         (sh_extending_set_of_reg::can_use_as_unextended_reg,
1690         sh_extending_set_of_reg::use_as_unextended_reg,
1691         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
1692         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
1693         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
1694         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
1695         (sh_treg_insns): New class.
1696         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
1697         (scope_counter): New class.
1698         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
1699         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
1700         sh_extending_set_of_reg::can_use_as_unextended_reg,
1701         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
1702         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
1703         sh_split_treg_set_expr): New functions.
1704         (addsubcosts): Handle treg_set_expr.
1705         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
1706         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
1707         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
1708         (sh_insn_operands_modified_between_p): Make non-static.
1709         * config/sh/predicates.md (zero_extend_movu_operand): Allow
1710         simple_mem_operand in addition to displacement_mem_operand.
1711         (zero_extend_operand): Don't allow zero_extend_movu_operand.
1712         (treg_set_expr, treg_set_expr_not_const01,
1713         arith_reg_or_treg_set_expr): New predicates.
1714         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
1715         arith_or_int_operand instead of logical_operand.  Convert to
1716         insn_and_split.  Try to optimize constant operand in splitter.
1717         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
1718         (*tstqi_t_zero): Delete.
1719         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
1720         (tstsi_t_and_not): Delete.
1721         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
1722         Convert to insn_and_split.
1723         (unnamed split, tstsi_t_zero_extract_xor,
1724         tstsi_t_zero_extract_subreg_xor_little,
1725         tstsi_t_zero_extract_subreg_xor_big): Delete.
1726         (*tstsi_t_shift_mask): New insn_and_split.
1727         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
1728         to recombine with surrounding insns when splitting.
1729         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
1730         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
1731         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
1732         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
1733         (*cbranch_div0s: Delete.
1734         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
1735         Try to recombine with surrounding insns when splitting.  Add operand
1736         order variants.
1737         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
1738         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
1739         *addc_r_r_msb, *addc_2r_msb): Delete.
1740         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
1741         order variant.
1742         (*addc_negreg_t): New insn_and_split.
1743         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
1744         Try to recombine with surrounding insns when splitting.
1745         Add operand order variants.
1746         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
1747         insn_and_split patterns.
1748         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
1749         surrounding insns when splitting.
1750         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
1751         (*rotcl): Likewise.  Add zero_extract variant.
1752         (*ashrsi2_31): New insn_and_split.
1753         (*negc): Convert to insn_and_split.  Use treg_set_expr.
1754         (*zero_extend<mode>si2_disp_mem): Update comment.
1755         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
1756         condition.
1757         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
1758         with surrounding insns when splitting.
1759         (any_treg_expr_to_reg): New insn_and_split.
1760         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
1761         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
1762         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
1763         *zero_extract_2): New single bit zero extract patterns.
1764         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
1765         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
1766         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
1767         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
1768         set destination.
1769         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
1770         register_operand for set source.
1772 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
1774         * i386.opt (prefetch_sse): New targetsave.
1775         * i386.c (ix86_function_specific_save): Save prefetch_sse.
1776         (ix86_function_specific_restore): Restore prefetch_sse and initialize
1777         ix86_cost/ix86_tune_cost.
1779 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
1781         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1782         Support the JIT by using 0 as the language type.
1784 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
1786         PR target/64317
1787         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
1788         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
1789         (mark_regno_live, process_bb_lives): Pass new parameter value to
1790         make_hard_regno_born.
1792 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
1794         PR rtl-optimization/63637
1795         PR rtl-optimization/60663
1796         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
1797         if elt->cost is MAX_COST for ASM_OPERANDS.
1798         (find_sets_in_insn): Fix up comment typo.
1799         (cse_insn): Don't set src_volatile for all non-volatile
1800         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
1801         or with "memory" clobber.  Set elt->cost to MAX_COST
1802         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
1803         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
1805 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
1807         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
1808         alternative 1.
1810 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
1812         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
1813         libgcc/config/i386/elf-lib.h.
1815 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
1817         PR driver/64737
1818         * gcc.c (print_configuration): Don't print a blank line at the end
1819         here...
1820         (run_attempt): ... but here unstead.
1822         PR middle-end/64734
1823         * omp-low.c (scan_sharing_clauses): Don't ignore
1824         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
1825         on target data/update constructs.
1827 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1829         PR target/50928
1830         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
1831         (DEBUG_RELOAD): Removed define.
1832         (m32c_limit_reload_class): Enable traces with if DEBUG0.
1833         (m32c_function_arg): Added a type cast.
1834         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
1835         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
1836         * config/m32c/bitops.md (andqi3_16): Likewise.
1837         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
1838         (push_a01_l): Likewise.
1840 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
1842         PR jit/64721
1843         * main.c (main): Construct toplev instances with init_signals=true.
1844         * toplev.c (general_init): Add param "init_signals", and use it to
1845         conditionalize the calls to signal and host_hooks.extra_signals.
1846         (toplev::toplev): Add param "init_signals".
1847         (toplev::main): When invoking general_init, pass m_init_signals
1848         to control whether signal-handlers are installed.
1849         * toplev.h (toplev::toplev): Add param "init_signals".
1850         (toplev::m_init_signals): New field.
1852 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
1854         PR jit/64722
1855         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
1856         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
1857         latter may be affected by the former (e.g. on i686).
1859 2015-01-23  Martin Liska  <mliska@suse.cz>
1861         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
1862         false positive during profiledbootstrap.
1864 2015-01-23  Tom de Vries  <tom@codesourcery.com>
1866         PR libgomp/64672
1867         * lto-opts.c (lto_write_options): Output non-explicit conservative
1868         -fno-openacc.
1869         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
1870         (append_compiler_options): Pass -fopenacc through.
1872 2015-01-23  Tom de Vries  <tom@codesourcery.com>
1874         PR libgomp/64707
1875         * lto-opts.c (lto_write_options): Output non-explicit conservative
1876         -fno-openmp.
1877         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
1878         (append_compiler_options): Pass -fopenmp through.
1880 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
1882         PR debug/64511
1883         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
1884         GTY markup.
1886         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
1887         * diagnostic.def (DK_ICE_NOBT): New kind.
1888         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
1889         like DK_ICE, but never print backtrace.
1890         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
1891         (internal_error_no_backtrace): New function.
1892         * gcc.c (execute): Use internal_error_no_backtrace instead of
1893         internal_error.
1895 2015-01-22  Jeff Law  <law@redhat.com>
1897         PR target/52076
1898         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
1899         improve code density for small immediate to memory case.
1900         (insv): Better handle bitfield assignments when the field is
1901         being set to all ones.
1902         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
1903         operand predicate.
1905 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1906             Jakub Jelinek  <jakub@redhat.com>
1908         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
1909         for !TARGET_LIBC_PROVIDES_SSP version and
1910         -fstack-protector-{all,strong,explicit} otherwise.
1911         * config/freebsd.h (LINK_SSP_SPEC): Handle
1912         -fstack-protector-{strong,explicit}.
1914 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
1915             H.J. Lu  <hongjiu.lu@intel.com>
1917         PR ipa/64694
1918         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
1919         heap.
1921 2015-01-22  Wei Mi  <wmi@google.com>
1923         PR rtl-optimization/64557
1924         * dse.c (record_store): Call get_addr for mem_addr.
1925         (check_mem_read_rtx): Likewise.
1927 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
1929         * fold-const.c (const_binop): Add early return for non-tcc_binary.
1931 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
1933         * toplev.c (init_local_tick): Process the failure when read
1934         fails for random_seed.
1936         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
1937         'pretty_name' to avoid memory overflow.
1939 2015-01-22  Richard Biener  <rguenther@suse.de>
1941         PR middle-end/64728
1942         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
1943         abnormal coalescing on undefined SSA names.
1945 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
1947         PR target/64688
1948         PR target/64477
1949         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
1950         for alternative 3.
1951         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
1953 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
1955         PR middle-end/63325
1956         * fold-const.c (fold_checksum_tree): Don't include value of
1957         expr->decl_with_vis.symtab_node in the checksum.
1959 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1961         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
1963 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
1965         PR driver/64690
1966         * gcc.c (insert_comments): New function.
1967         (try_generate_repro): Call it.
1968         (append_text): Removed.
1970 2015-01-22  Richard Biener  <rguenther@suse.de>
1972         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
1973         with IL incompatible options.  Properly honor user optimize
1974         attributes.
1976 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
1978         PR rtl-optimization/64682
1979         * combine.c (distribute_notes): When moving a death note for
1980         a register that is set in the new I2, make sure to put it
1981         before that new I2.
1983 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
1985         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
1986         not TARGET_DEFAULT.
1988 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
1990         PR debug/64511
1991         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
1992         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
1993         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
1995         PR sanitizer/64706
1996         * doc/invoke.texi (-fsanitize=vptr): Document.
1998         PR rtl-optimization/62078
1999         * dse.c: Include cfgcleanup.h.
2000         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
2001         anything call purge_all_dead_edges and cleanup_cfg at the end
2002         of the pass.
2004 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
2006         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
2007         edges.
2009 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2011         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
2012         decl attribute.
2014 2015-01-21  David Sherwood  <david.sherwood@arm.com>
2015             Tejas Belagod <Tejas.Belagod@arm.com>
2017         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
2018         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
2019         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
2020         Removed.
2022 2015-01-21  David Sherwood  <david.sherwood@arm.com>
2023             Tejas Belagod <Tejas.Belagod@arm.com>
2025         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
2026         (aarch64_reverse_mask): New decls.
2027         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
2028         (insn_count): New mode_attr.
2029         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
2030         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
2031         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
2032         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
2033         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
2034         (aarch64_simd_st4): New patterns.
2035         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
2036         (aarch64_reverse_mask): New functions.
2038 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
2040         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
2041         Declare.
2042         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
2043         addressing modes for BE.
2044         (aarch64_print_operand): Add 'R' specifier.
2045         (aarch64_simd_disambiguate_copy): Delete.
2046         (aarch64_simd_emit_reg_reg_move): New function.
2047         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
2048         in define_splits for structural moves.
2049         (mov<mode>): Use less restrictive predicates.
2050         (*aarch64_mov<mode>): Simplify and only allow for LE.
2051         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
2053 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
2055         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
2057 2015-01-21  Richard Henderson  <rth@redhat.com>
2059         PR target/64669
2060         * ccmp.c (used_in_cond_stmt_p): Remove.
2061         (expand_ccmp_expr): Don't use it.
2063 2015-01-21  Nick Clifton  <nickc@redhat.com>
2065         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
2066         PARALLELs.
2068 2015-01-21  Richard Biener  <rguenther@suse.de>
2070         PR middle-end/64313
2071         * tree-core.h (builtin_info, builtin_info_type): Turn from
2072         an object with two arrays into an array of an object with
2073         decl and two flags, implicit_p and declared_p.
2074         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
2075         set_builtin_decl, set_builtin_decl_implicit_p,
2076         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
2077         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
2078         * builtins.c (builtin_info): Adjust.
2079         * gimplify.c (gimplify_addr_expr): References to builtins
2080         that have been declared by the user makes them eligible for
2081         use by the compiler.  Call set_builtin_decl_implicit_p on them.
2083 2015-01-20  Jeff Law  <law@redhat.com>
2085         PR target/59946
2086         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
2087         allow pc-relative addresses in operand predicates or constraints.
2089 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
2091         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
2092         neon on aarch32 processors for stringops.
2094 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2096         PR ipa/63576
2097         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
2099 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2101         PR lto/45375
2102         * ipa-inline.c: Include lto-streamer.h
2103         (report_inline_failed_reason): Output source file differences and
2104         flags on optimization/target node mismatch.
2105         (can_inline_edge_p): Consider caller to be the outer inline function;
2106         be less restrictive about matching opimize and optimize_size attributes.
2107         (inline_account_function_p): Break out from ...
2108         (inline_small_functions): ... here.
2109         * ipa-inline-transform.c (clone_inlined_nodes): Use
2110         inline_account_function_p.
2111         (inline_call): Use optimize attribution; use inline_account_function_p.
2112         (inline_transform): Use opt_for_fn.
2113         * ipa-inline.h (inline_account_function_p): Declare.
2115 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
2117         PR debug/64663
2118         * dwarf2out.c (decl_piece_node): Don't put bitsize into
2119         mode if bitsize <= 0.
2120         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
2121         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
2122         sizes and positions.
2124 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
2126         * config/nios2/nios2.c (nios2_asm_file_end): Implement
2127         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
2128         needed.
2129         (TARGET_ASM_FILE_END): Define.
2131 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2133         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
2134         (struct tune_params): Use the enum.
2135         * arm.c (arm_*_tune): Update.
2136         (arm_option_override): Update.
2138 2015-01-20  Richard Biener  <rguenther@suse.de>
2140         PR ipa/64684
2141         * ipa-reference.c (add_static_var): Inline ...
2142         (analyze_function): ... here after splitting out from ...
2143         (is_proper_for_analysis): ... this.
2145 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
2147         PR target/64149
2148         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
2149         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
2150         replace the conditional with it's true branch.
2151         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
2152         (arm_lra_p): Remove.
2154 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
2156         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
2158 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2160         * config/tilegx/mul-tables.c: Move symtab.h include after
2161         coretypes.h include.
2162         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
2163         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
2164         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
2165         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
2166         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2168 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
2170         PR bootstrap/64676
2171         Revert:
2172         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
2174         PR rtl-optimization/64081
2175         * loop-iv.c (def_pred_latch_p): New function.
2176         (latch_dominating_def): Allow specific cases with non-single
2177         definitions.
2178         (iv_get_reaching_def): Likewise.
2179         (check_complex_exit_p): New function.
2180         (check_simple_exit): Use check_complex_exit_p to allow certain cases
2181         with exits not executing on any iteration.
2183 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2185         PR lto/45375
2186         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
2187         to set branch cost.
2189 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2191         PR lto/45375
2192         * i386.c (gate): Check flag_expensive_optimizations and
2193         optimize_size.
2194         (ix86_option_override_internal): Drop optimize_size condition
2195         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
2196         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
2197         MASK_PREFER_AVX128.
2198         (ix86_avx256_split_vector_move_misalign,
2199         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
2200         * sse.md (all uses of TARGET_PREFER_AVX128): Add
2201         optimize_insn_for_speed_p check.
2203 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
2205         * config/mips/mips.h (FP_ASM_SPEC): New define.
2206         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
2207         instead.
2209 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
2211         PR target/53988
2212         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
2213         nullptr for insn when reaching the first insn.
2214         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
2215         (sh_insn_operands_modified_between_p): Add nullptr check.
2216         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
2217         sign extending mem load if the insn contains any UNSPEC or
2218         UNSPEC_VOLATILE.
2220 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2222         * params.def (inline-unit-growth): Drop to 15%.
2223         * invoke.texi (inline-unit-growth): Document change.
2225 2015-01-19  Martin Liska  <mliska@suse.cz>
2227         PR ipa/64668
2228         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
2229         function for second argument of OBJ_TYPE_REF.
2231 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2233         PR ipa/64218
2234         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2235         whether function is an alias.
2237 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2239         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2240         cases.
2242 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
2244         PR rtl-optimization/64671
2245         * lra-remat.c (operand_to_remat): Don't consider jump and call
2246         insns.
2248 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
2250         * config/rs6000/default64.h: Include rs6000-cpus.def.
2251         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2252         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2253         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2254         and POWER8.
2255         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2256         POWER8.
2257         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2258         pseudo-op to specify assembler dialect.
2260 2015-01-19  Martin Liska  <mliska@suse.cz>
2262         PR ipa/64664
2263         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2264         Handle safe potentially removed nodes during filtering.
2266 2015-01-19  Martin Liska  <mliska@suse.cz>
2268         * doc/extend.texi (no_icf): Add new attribute description.
2269         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2270         where the pass attempts to merge a function with no_icf attribute.
2272 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2274         PR target/64532
2275         * doc/md.texi (ARM Options): Document register constraints.
2277 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
2278             Andrew Pinski  <apinski@cavium.com>
2280         PR target/64304
2281         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
2282         (ashl<mode>3): Don't expand if operands[2] is not constant.
2284 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2286         PR target/64448
2287         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
2288         Match xor-and-xor RTL pattern.
2290 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
2292         PR rtl-optimization/64081
2293         * loop-iv.c (def_pred_latch_p): New function.
2294         (latch_dominating_def): Allow specific cases with non-single
2295         definitions.
2296         (iv_get_reaching_def): Likewise.
2297         (check_complex_exit_p): New function.
2298         (check_simple_exit): Use check_complex_exit_p to allow certain cases
2299         with exits not executing on any iteration.
2301 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
2303         * common.opt (fgraphite): Fix a typo.
2305 2015-01-19  Felix Yang  <felix.yang@huawei.com>
2307         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
2308         pattern.
2309         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
2310         uminp, smax_nanp, smin_nanp): New builtins.
2311         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
2312         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
2313         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
2314         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
2315         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
2316         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
2317         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
2318         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
2319         vpminnms_f32): Rewrite using builtin functions.
2321 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
2323         PR libgomp/64625
2324         * omp-low.c (offload_symbol_decl): Remove variable.
2325         (get_offload_symbol_decl): Remove function.
2326         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
2327         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
2328         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
2329         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
2330         BUILT_IN_GOACC_UPDATE don't pass it at all.
2332 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
2334         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
2335         callers.
2337 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
2339         * ipa-chkp.c (chkp_produce_thunks): Add early param
2340         to split thunks production into two passes.  Keep
2341         'always_inline' function bodies after the first pass.
2342         (pass_data_ipa_chkp_early_produce_thunks): New.
2343         (pass_ipa_chkp_early_produce_thunks): New.
2344         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
2345         chkp_produce_thunks signature.
2346         (make_pass_ipa_chkp_early_produce_thunks): New.
2347         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
2348         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
2349         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
2351 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
2353         * cgraph.c (cgraph_node::dump): Dump profile flags.
2355 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
2357         PR target/64652
2358         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
2359         reg appear first in the parallel.
2361 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
2363         * ipa-reference.c (set_reference_optimization_summary,
2364         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
2365         disabled.
2366         (ignore_module_statics): New static var.
2367         (propagate_bits): If ipa-reference is disabled, do not look into local
2368         properties.
2369         (analyze_function): Disable analysis when ipa_reference is disabled.
2370         (generate_summary): Do not dump when reference is disabled;
2371         collect vars accessed from functions with ipa-reference disabled.
2372         (get_read_write_all_from_node): When ipa-reference is disabled, use the
2373         node flags.
2374         (gate): Enable for LTO.
2375         (ignore_edge_p): New function.
2376         (propagate): Skip functions w/o ipa-reference analysis.
2377         * optc-save-gen.awk: Handle optimize_debug correctly.
2378         * opth-gen.awk: Likewise.
2379         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
2380         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
2381         fira-share-save-slots, fira-share-spill-slots,
2382         fmodulo-sched-allow-regmoves, fpartial-inlining,
2383         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
2384         ftracer, ftree-parallelize-loops, fassociative-math,
2385         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
2386         Optimization
2387         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
2388         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
2389         Optimization.
2390         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
2391         Fix for IPA.
2393 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
2395         PR ipa/64378
2396         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
2397         flag correctly.
2398         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
2400 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
2402         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
2403         Remove duplicate option listings.
2405 2015-01-18  Felix Yang  <felix.yang@huawei.com>
2407         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
2408         (autofdo_source_profile::get_callsite_total_count,
2409         function_instance::get_function_instance_by_decl,
2410         string_table::get_index, string_table::get_index_by_decl,
2411         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
2412         Fix comment typos. Reformatting and minor code rearrangement.
2414 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
2416         * config/rs6000/rs6000.md (probe_stack): Delete.
2417         (probe_stack_address): New.
2419 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
2421         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
2422         to test for 32-bit ABIs, not !TARGET_POWERPC64.
2424 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
2426         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
2427         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
2428         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
2429         snafu.
2430         (rs6000_libcall_value): Use the new function.
2432 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
2434         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
2436 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
2438         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
2439         implement a more precise life analysis for it during backward scan.
2441 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2443         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
2445 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
2447         PR rtl-optimization/52773
2448         * calls.c (emit_library_call_value): When pushing arguments use
2449         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
2450         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
2451         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
2453 2015-01-17  Jeff Law  <law@redhat.com>
2455         PR rtl-optimization/32790
2456         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
2457         not ZERO_EXTEND in SET_DESTs.
2459 2015-01-17  Alan Modra  <amodra@gmail.com>
2461         * cprop.c (do_local_cprop): Revert last change.
2463 2015-01-16  DJ Delorie  <dj@redhat.com>
2464             Nick Clifton  <nickc@redhat.com>
2466         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
2467         (addhi3_real): Likewise.  Fix [HL+0] syntax.
2468         (subqi3_real): Likewise.
2469         (subhi3_real): Likewise.
2470         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
2471         (cbranchhi4_real): Likewise.
2472         (cbranchhi4_real_inverted): Likewise.
2473         (cbranchsi4_real_lt): Likewise.
2474         (cbranchsi4_real_ge): Likewise.
2475         (cbranchsi4_real_ge): Likewise.
2476         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
2477         (sub<mode>3_virt): Likewise.
2478         (cbranchqi4_virt): Likewise.
2479         (cbranchhi4_virt): Likewise.
2480         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
2481         always use '[reg+imm]' even when imm is zero.
2482         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
2483         (rl78_general_operand): New.
2484         (rl78_nonimmediate_operand): New.
2485         (rl78_nonfar_operand): Use them.
2486         (rl78_nonfar_nonimm_operand): Likewise.
2487         (rl78_stack_based_mem): Fix.
2488         * config/rl78/constraints.md (Ibqi): New.
2489         (IBqi): New.
2490         (Wsa): New.
2491         (Wsf): New.
2492         (Cs1): Fix.
2493         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
2494         (iorqi3): Likewise.
2495         (xorqi3): Likewise.
2496         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
2498         * config/rl78/constrains (Qs8): New constraint.
2499         * config/rl78/rl78.c (rl78_flags_already_set): New function.
2500         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
2501         * config/rl78/rl78-real.md (update_Z): New attribute.
2502         Update patterns to set it.
2503         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
2504         shorter compare and branch sequence can be used.
2505         (cbranchhi4_real): Likewise.
2506         (cbranchhi4_real_inverted): Likewise.
2508         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
2509         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
2510         address space.
2511         * config/rl78/rl78.c (rl78_get_name_encoding): New.
2512         (rl78_option_override): Allow -mes0 only if C.
2513         (characterize_address): Support subregs of symbol_refs.
2514         (rl78_addr_space_address_mode): Move.  Add __near.
2515         (rl78_far_p): Likewise.
2516         (rl78_addr_space_pointer_mode): Likewise.
2517         (rl78_as_legitimate_address): Likewise.
2518         (rl78_addr_space_subset_p): Likewise.
2519         (rl78_addr_space_convert): Likewise.
2520         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
2521         symbols with -mes0.
2522         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
2523         addressing.
2524         (rl78_alloc_physical_registers_op1): Change logic to prefer
2525         symbol[BC] addressing.
2526         (frodata_section): New.
2527         (rl78_asm_init_sections): Initialize it.
2528         (rl78_select_section): Put __far readonly symbols in .frodata.
2529         (rl78_make_type_far): New.
2530         (rl78_insert_attributes): Force all readonly symbols to be
2531         __far when -mes0.
2532         (rl78_asm_out_integer): New.
2533         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
2534         * config/rl78/rl78.opt (-mes0): New.
2536         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
2537         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2538         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2539         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
2540         (rl78_saddr_p): New.
2541         (rl78_output_aligned_common): New.
2542         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
2543         (rl78_handle_saddr_attribute): New.
2544         (rl78_handle_naked_attribute): New.
2545         (rl78_attribute_table): Add saddr.
2546         (rl78_print_operand_1): Don't print '!' on saddr operands.
2547         (rl78_print_operand_1): Strip encodings.
2548         (rl78_sfr_p): New.
2549         (rl78_strip_name_encoding): New.
2550         (rl78_attrlist_to_encoding): New.
2551         (rl78_encode_section_info): New.
2552         (rl78_asm_init_sections): New.
2553         (rl78_select_section): New.
2554         (rl78_output_labelref): New.
2555         (rl78_output_aligned_common): New.
2556         (rl78_asm_out_integer): New.
2557         (rl78_asm_ctor_dtor): New.
2558         (rl78_asm_constructor): New.
2559         (rl78_asm_destructor): New.
2561         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
2562         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
2563         (transcode_memory_rtx): Update.
2564         (rl78_expand_epilogue): Use A_REG instead of 0.
2566 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2568         * config/arm/arm-protos.h (struct tune_params): New field
2569         sched_autopref_queue_depth.
2570         * config/arm/arm.c (sched-int.h): Include header.
2571         (arm_first_cycle_multipass_dfa_lookahead_guard,)
2572         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
2573         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
2574         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
2575         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
2576         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
2577         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
2578         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
2579         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
2580         * config/arm/t-arm (arm.o): Update.
2581         * haifa-sched.c (update_insn_after_change): Update.
2582         (rank_for_schedule): Use auto-prefetcher model, if requested.
2583         (autopref_multipass_init): New static function.
2584         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
2585         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
2586         variable for debug dumps.
2587         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
2588         (autopref_multipass_dfa_lookahead_guard): New global function that
2589         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
2590         (init_h_i_d): Update.
2591         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
2592         * sched-int.h (enum autopref_multipass_data_status): New const enum.
2593         (autopref_multipass_data_): Structure for auto-prefetcher data.
2594         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
2595         (struct _haifa_insn_data:autopref_multipass_data): New field.
2596         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
2597         (autopref_multipass_dfa_lookahead_guard): Declare.
2599 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2601         * rtlanal.c (get_base_term): Handle SCRATCH.
2603 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2605         * config/aarch64/aarch64.c
2606         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
2607         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2608         * config/arm/arm.c
2609         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
2610         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2612 2015-01-17  Alan Modra  <amodra@gmail.com>
2614         * cprop.c (do_local_cprop): Disallow replacement of fixed
2615         hard registers.
2617 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2619         PR target/62066
2620         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
2621         early return 0.
2623 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2625         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
2626         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
2628 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2630         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
2631         * config/arm/thumb1.md: ... Here.
2633 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
2635         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
2636         TImode for TARGET_32BIT.
2638 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
2640         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
2641         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
2642         as ...
2643         (rs6000_abi_word_mode): New function.
2645 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
2647         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
2648         instead of UNITS_PER_WORD to describe the size of stack slots.
2650 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
2652         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
2653         as rs6000_promote_function_mode.  Move comment to there.
2654         (rs6000_promote_function_mode): New function.
2656 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
2658         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
2659         -mpowerpc64 is active.
2661 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
2663         PR middle-end/64353
2664         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
2665         virtuals on start.
2667 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
2669         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
2670         introduced in revision 219724.
2672 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2673             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2675         PR target/64263
2676         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
2677         destination is not a GP reg.
2678         (*movdi_aarch64): Likewise.
2680 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
2682         PR target/64623
2683         * config/rs6000/default64.h: Revert ISA change.
2685 2015-01-16  Richard Biener  <rguenther@suse.de>
2687         PR middle-end/64614
2688         * tree-ssa-uninit.c: Include tree-cfg.h.
2689         (MAX_SWITCH_CASES): New define.
2690         (convert_control_dep_chain_into_preds): Handle switch statements.
2691         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
2692         (normalize_one_pred_1): Do not split bit-manipulations.
2693         Record (x & CST).
2695 2015-01-16  Richard Biener  <rguenther@suse.de>
2697         PR tree-optimization/64568
2698         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
2699         complex load rewriting for TARGET_MEM_REFs.
2701 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
2703         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
2705 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
2707         PR target/64149
2708         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
2709         variable.
2710         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
2711         (aarch64_lra_p): Remove.
2713 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
2715         PR target/64363
2716         * ipa-chkp.h (chkp_instrumentable_p): New.
2717         * ipa-chkp.c: Include tree-inline.h.
2718         (chkp_instrumentable_p): New.
2719         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
2720         Fix processing of not instrumentable functions.
2721         (chkp_versioning): Use chkp_instrumentable_p. Warn about
2722         not instrumentable functions.
2723         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
2724         chkp_instrumentable_p.
2725         * tree-inline.h (copy_forbidden): New.
2726         * tree-inline.c (copy_forbidden): Not static anymore.
2728 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2730         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
2731         ptr1, ptr2 unused.
2733 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
2735         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
2736         type OP_OUT to OP_INOUT.
2738 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
2740         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
2741         (high x) y) to y if x and y have the same base.
2743 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
2745         * config/arm/cortex-a57.md: New.
2746         * config/aarch64/aarch64.md: Include it.
2747         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
2748         * config/aarch64/aarch64-tune.md: Regenerate.
2750 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
2752         PR target/64015
2753         * ccmp.c (expand_ccmp_next): New function.
2754         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
2755         and compare insn sequence.
2756         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
2757         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
2758         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
2759         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
2760         (*ccmp_ior): Changed to ccmp_ior<mode>.
2761         (cmp<mode>): New pattern.
2762         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
2763         parameters.
2764         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
2766 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
2768         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
2769         _mm256_bsrli_epi128): New.
2770         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
2772 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
2774         * expmed.c (store_bit_field_using_insv): Improve warning message.
2775         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
2777 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
2779         PR rtl-optimization/64011
2780         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
2781         there is partial overflow.
2783 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
2785         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
2786         prototype.
2787         (nds32_expand_epilogue_v3pop): Likewise.
2788         * config/nds32/nds32.md (sibcall): Define this for sibling call
2789         optimization.
2790         (sibcall_register): Likewise.
2791         (sibcall_immediate): Likewise.
2792         (sibcall_value): Likewise.
2793         (sibcall_value_register): Likewise.
2794         (sibcall_value_immediate): Likewise.
2795         (sibcall_epilogue): Likewise.
2796         (epilogue): Pass false to indicate this is not a sibcall epilogue.
2797         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
2798         (nds32_expand_epilogue_v3pop): Likewise.
2800 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
2802         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
2803         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
2804         (return_internal): New.
2805         (return): Define this named pattern.
2806         (simple_return): Define this named pattern.
2807         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
2808         pattern instead of unspec_volatile_func_return.
2809         (nds32_expand_epilogue_v3pop): Likewise.
2810         (nds32_can_use_return_insn): New function.
2812 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
2814         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
2815         * config/nds32/nds32.md (pop25return): New.
2816         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
2817         pop25return pattern.
2819 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
2821         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
2822         -mforbid-fp-as-gp, and -mex9 options.
2824 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
2826         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
2827         remove -mgp-direct option.
2829 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
2831         * doc/invoke.texi (--param early-inlining-insns): Update default value.
2832         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
2834 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
2836         * ipa-inline.c (inline_small_functions): Work around hints
2837         cache issue.
2839 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
2841         PR target/59710
2842         * doc/invoke.texi (Option Summary): Document new Nios II
2843         -mgpopt= syntax.
2844         (Nios II Options): Likewise.
2845         * config/nios2/nios2.opt: Add -mgpopt= option support.
2846         Modify existing -mgpopt and -mno-gpopt options to be aliases.
2847         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
2848         * config/nios2/nios2.c (nios2_option_override): Adjust
2849         -mgpopt defaulting.
2850         (nios2_in_small_data_p): Return true for explicit small data
2851         sections even with -G0.
2852         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
2853         option choices.
2855 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
2857         PR ipa/64612
2858         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
2859         of comdat locals.
2860         (inline_call): Fix removal of aliases.
2862 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
2864         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
2865         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
2866         * opts.c (common_handle_option): Add -fsanitize=vptr.
2867         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
2868         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
2869         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
2870         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
2871         (ubsan_expand_vptr_ifn): New prototype.
2872         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
2873         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
2874         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
2875         expand_LOOP_VECTORIZED): Make argument nameless, remove
2876         ATTRIBUTE_UNUSED.
2877         (expand_UBSAN_VPTR): New function.
2878         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
2879         in fn spec.
2880         (UBSAN_VPTR): New internal function.
2881         * sanopt.c (tree_map_traits): Renamed to ...
2882         (sanopt_tree_map_traits): ... this.
2883         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
2884         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
2885         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
2886         (maybe_optimize_ubsan_vptr_ifn): New function.
2887         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
2888         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
2889         -fsanitize=vptr.
2890         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
2891         internal calls like pure functions for aliasing, even when they
2892         have other side-effects that prevent making them ECF_PURE.
2893         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
2894         (ubsan_expand_vptr_ifn): New function.
2896 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
2898         PR rtl-optimization/64110
2899         * stmt.c (parse_output_constraint): Process '^' and '$'.
2900         (parse_input_constraint): Ditto.
2901         * lra-constraints.c (process_alt_operands): Process the new
2902         constraints.
2903         * ira-costs.c (record_reg_classes): Process the new constraint
2904         '^'.
2905         * genoutput.c (indep_constraints): Add '^' and '$'.
2906         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
2907         * doc/md.texi: Add description of the new constraints.
2909 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
2910             Bernd Schmidt  <bernds@codesourcery.com>
2911             Cesar Philippidis  <cesar@codesourcery.com>
2912             James Norris  <jnorris@codesourcery.com>
2913             Tom de Vries  <tom@codesourcery.com>
2914             Ilmir Usmanov  <i.usmanov@samsung.com>
2915             Dmitry Bocharnikov  <dmitry.b@samsung.com>
2916             Evgeny Gavrin  <e.gavrin@samsung.com>
2917             Jakub Jelinek  <jakub@redhat.com>
2919         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
2920         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
2921         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
2922         New function types.
2923         * builtins.c: Include "gomp-constants.h".
2924         (expand_builtin_acc_on_device): New function.
2925         (expand_builtin, is_inexpensive_builtin): Handle
2926         BUILT_IN_ACC_ON_DEVICE.
2927         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
2928         New macros.
2929         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
2930         flag_openmp.
2931         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
2932         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
2933         i386/intelmic-offload.h.
2934         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
2935         to libgomp and its dependencies.
2936         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
2937         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2938         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2939         * config/ia64/hpux.h (LIB_SPEC): Likewise.
2940         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2941         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2942         * doc/generic.texi: Update for OpenACC changes.
2943         * doc/gimple.texi: Likewise.
2944         * doc/invoke.texi: Likewise.
2945         * doc/sourcebuild.texi: Likewise.
2946         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
2947         GF_OMP_FOR_KIND_OACC_LOOP.
2948         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
2949         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
2950         GF_OMP_TARGET_KIND_OACC_UPDATE,
2951         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2952         Dump more data.
2953         * gimple.c: Update comments for OpenACC changes.
2954         * gimple.def: Likewise.
2955         * gimple.h: Likewise.
2956         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
2957         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2958         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
2959         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2960         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
2961         appropriate place.
2962         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
2963         * gimplify.c: Include "gomp-constants.h".
2964         Update comments for OpenACC changes.
2965         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
2966         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
2967         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2968         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2969         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2970         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2971         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
2972         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2973         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2974         OMP_CLAUSE_SEQ.
2975         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
2976         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
2977         OMP_CLAUSE_SET_MAP_KIND.
2978         (gimplify_oacc_cache): New function.
2979         (gimplify_omp_for): Handle OACC_LOOP.
2980         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
2981         OACC_DATA.
2982         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
2983         OACC_EXIT_DATA, OACC_UPDATE.
2984         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
2985         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
2986         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
2987         (gimplify_body): Consider flag_openacc next to flag_openmp.
2988         * lto-streamer-out.c: Include "gomp-constants.h".
2989         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
2990         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
2991         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
2992         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
2993         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
2994         (BUILT_IN_ACC_ON_DEVICE): New builtins.
2995         * omp-low.c: Include "gomp-constants.h".
2996         Update comments for OpenACC changes.
2997         (struct omp_context): Add reduction_map, gwv_below, gwv_this
2998         members.
2999         (extract_omp_for_data, use_pointer_for_field, install_var_field)
3000         (new_omp_context, delete_omp_context, scan_sharing_clauses)
3001         (create_omp_child_function, scan_omp_for, scan_omp_target)
3002         (check_omp_nesting_restrictions, lower_reduction_clauses)
3003         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
3004         Update for OpenACC changes.
3005         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
3006         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
3007         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
3008         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3009         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
3010         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
3011         OMP_CLAUSE_MAP_*.
3012         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3013         Handle GF_OMP_FOR_KIND_OACC_LOOP.
3014         (expand_omp_target, lower_omp_target): Handle
3015         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3016         GF_OMP_TARGET_KIND_OACC_UPDATE,
3017         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
3018         GF_OMP_TARGET_KIND_OACC_DATA.
3019         (pass_expand_omp::execute, execute_lower_omp)
3020         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
3021         flag_openmp.
3022         (offload_symbol_decl): New variable.
3023         (oacc_get_reduction_array_id, oacc_max_threads)
3024         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
3025         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
3026         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
3027         (oacc_gimple_assign, oacc_initialize_reduction_data)
3028         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
3029         functions.
3030         (is_targetreg_ctx): Remove function.
3031         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
3032         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
3033         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3034         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
3035         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
3036         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
3037         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
3038         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
3039         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
3040         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
3041         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
3042         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
3043         * tree-core.h: Update comments for OpenACC changes.
3044         (enum omp_clause_map_kind): Remove.
3045         (struct tree_omp_clause): Change type of map_kind member from enum
3046         omp_clause_map_kind to unsigned char.
3047         * tree-inline.c: Update comments for OpenACC changes.
3048         * tree-nested.c: Likewise.  Include "gomp-constants.h".
3049         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
3050         (convert_tramp_reference_stmt, convert_gimple_call): Update for
3051         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
3052         OMP_CLAUSE_SET_MAP_KIND.
3053         * tree-pretty-print.c: Include "gomp-constants.h".
3054         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
3055         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
3056         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
3057         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
3058         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3059         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
3060         instead of OMP_CLAUSE_MAP_*.
3061         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
3062         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
3063         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3064         * tree-streamer-in.c: Include "gomp-constants.h".
3065         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
3066         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
3067         * tree-streamer-out.c: Include "gomp-constants.h".
3068         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
3069         OMP_CLAUSE_MAP_*.
3070         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
3071         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
3072         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
3073         * tree.c (omp_clause_num_ops): Update accordingly.
3074         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
3075         Likewise.
3076         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
3077         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
3078         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
3079         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
3080         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
3081         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
3082         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
3083         (OMP_CLAUSE_SET_MAP_KIND): New macro.
3084         * varpool.c (varpool_node::get_create): Consider flag_openacc next
3085         to flag_openmp.
3086         * config/i386/intelmic-offload.h: New file.
3087         * config/nvptx/offload.h: Likewise.
3089 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3091         * explow.h: Remove duplicate contents.
3092         * dojump.h: Likewise.
3094 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
3096         * arm.c (arm_xgene_tune): Add default initializer for instruction
3097         fusion.
3099 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3101         PR ipa/64068
3102         PR ipa/64559
3103         * ipa.c (symbol_table::remove_unreachable_nodes):
3104         Do not put abstract origins into boundary.
3106 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
3108         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
3109         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
3111 2015-01-15  Steve Ellcey  <sellcey@mips.com>
3113         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
3114         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
3115         builtins.def, and chkp-builtins.def.
3117 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
3119         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
3120         ISA 2.7 (POWER8).
3122 2015-01-15  Richard Biener  <rguenther@suse.de>
3124         PR tree-optimization/61743
3125         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
3126         information on PHIs for some simple cases.
3128 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3130         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
3131         Include xgene1.md.
3132         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
3133         * config/arm/arm-cores.def (xgene1): New entry.
3134         * config/arm/arm-tables.opt: Regenerate.
3135         * config/arm/arm-tune.md: Regenerate.
3136         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
3138 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
3140         * tree-if-conv.c: Include hash-map.h.
3141         (aggressive_if_conv): New variable.
3142         (fold_build_cond_expr): Add simplification of non-zero condition.
3143         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
3144         destination block is not always executed.
3145         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
3146         than two predecessors if AGGRESSIVE_IF_CONV is true.
3147         (if_convertible_stmt_p): Fix commentary.
3148         (all_preds_critical_p): New function.
3149         (has_pred_critical_p): New function.
3150         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
3151         BB can have more than two predecessors and all incoming edges can be
3152         critical.
3153         (predicate_bbs): Skip predication for loop exit block, use build2_loc
3154         to compute predicate for true edge.
3155         (find_phi_replacement_condition): Delete this function.
3156         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
3157         Allow interchange PHI arguments if EXTENDED is false.
3158         Change check that block containing reduction statement candidate
3159         is predecessor of phi-block since phi may have more than two arguments.
3160         (phi_args_hash_traits): New helper structure.
3161         (struct phi_args_hash_traits): New type.
3162         (phi_args_hash_traits::hash): New function.
3163         (phi_args_hash_traits::equal_keys): New function.
3164         (gen_phi_arg_condition): New function.
3165         (predicate_scalar_phi): Add handling of phi nodes with more than two
3166         arguments, delete COND and TRUE_BB arguments, insert body of
3167         find_phi_replacement_condition to predicate ordinary phi nodes.
3168         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
3169         delete call of find_phi_replacement_condition and invoke
3170         predicate_scalar_phi with two arguments.
3171         (insert_gimplified_predicates): Add assert that non-predicated block
3172         don't have statements to insert.
3173         (ifcvt_split_critical_edges): New function.
3174         (ifcvt_split_def_stmt): Likewise.
3175         (ifcvt_walk_pattern_tree): Likewise.
3176         (stmt_is_root_of_bool_pattern): Likewise.
3177         (ifcvt_repair_bool_pattern): Likewise.
3178         (ifcvt_local_dce): Likewise.
3179         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
3180         is copy of inner or outer loop force_vectorize field, invoke
3181         ifcvt_split_critical_edges, ifcvt_local_dce and
3182         ifcvt_repair_bool_pattern for aggressive if-conversion.
3184 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
3186         * config/aarch64/aarch64.md: Include xgene1.md.
3187         * config/aarch64/xgene1.md: New file.
3189 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3191         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
3192         xgene1 (APM XGene-1) core definition.
3193         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
3194         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
3195         * doc/invoke.texi: Document -mcpu=xgene1.
3197 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3199         * dojump.h: New header file.
3200         * explow.h: Likewise.
3201         * expr.h: Remove includes.
3202         Move expmed.c prototypes to expmed.h.
3203         Move dojump.c prototypes to dojump.h.
3204         Move alias.c prototypes to alias.h.
3205         Move explow.c prototypes to explow.h.
3206         Move calls.c prototypes to calls.h.
3207         Move emit-rtl.c prototypes to emit-rtl.h.
3208         Move varasm.c prototypes to varasm.h.
3209         Move stmt.c prototypes to stmt.h.
3210         (saved_pending_stack_adjust): Move to dojump.h.
3211         (adjust_address): Move to explow.h.
3212         (adjust_address_nv): Move to emit-rtl.h.
3213         (adjust_bitfield_address): Likewise.
3214         (adjust_bitfield_address_size): Likewise.
3215         (adjust_bitfield_address_nv): Likewise.
3216         (adjust_automodify_address_nv): Likewise.
3217         * explow.c (expr_size): Move to expr.c.
3218         (int_expr_size): Likewise.
3219         (tree_expr_size): Likewise.
3220         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3221         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3222         * genemit.c (main): Generate includes statistics.h, real.h,
3223         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
3224         stmt.h.
3225         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
3226         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
3227         explow.h, emit-rtl.h, stmt.h.
3228         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
3229         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
3230         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
3231         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
3232         emit-rtl.h, varasm.h, stmt.h.
3233         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3234         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3235         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3236         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3237         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3238         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3239         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3240         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3241         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3242         tm.h tree.h varasm.h vec.h wide-int.h.
3243         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3244         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3245         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3246         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
3247         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3248         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3249         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
3250         * loop-iv.c: Likewise.
3251         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3252         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
3253         statistics.h stmt.h tree.h varasm.h wide-int.h.
3254         * lra-constraints.c: Likewise.
3255         * lra-eliminations.c: Likewise.
3256         * lra-lives.c: Likewise.
3257         * lra-remat.c: Likewise.
3258         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3259         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3260         statistics.h stmt.h tree.h varasm.h wide-int.h.
3261         * hw-doloop.c: Likewise.
3262         * ira-color.c: Likewise.
3263         * ira-emit.c: Likewise.
3264         * loop-doloop.c: Likewise.
3265         * loop-invariant.c: Likewise.
3266         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3267         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3268         statistics.h stmt.h tree.h varasm.h wide-int.h.
3269         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3270         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3271         statistics.h stmt.h tree.h varasm.h wide-int.h.
3272         * combine-stack-adj.c: Likewise.
3273         * cse.c: Likewise.
3274         * ddg.c: Likewise.
3275         * ifcvt.c: Likewise.
3276         * ira-costs.c: Likewise.
3277         * jump.c: Likewise.
3278         * lra-coalesce.c: Likewise.
3279         * lra-spills.c: Likewise.
3280         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3281         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
3282         stmt.h varasm.h wide-int.h.
3283         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3284         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3285         varasm.h.
3286         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
3287         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
3288         statistics.h stmt.h varasm.h wide-int.h.
3289         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
3290         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
3291         varasm.h wide-int.h.
3292         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
3293         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3294         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
3295         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
3296         statistics.h stmt.h.
3297         * config/tilepro/tilepro.c: Likewise.
3298         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
3299         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
3300         * config/pdp11/pdp11.c: Likewise.
3301         * config/xtensa/xtensa.c: Likewise.
3302         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
3303         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3304         varasm.h.
3305         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3306         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3307         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
3308         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3309         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3310         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
3311         * rtl-chkp.c: Likewise.
3312         * tree-chkp-opt.c: Likewise.
3313         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
3314         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3315         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
3316         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3317         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3318         statistics.h stmt.h.
3319         * tree-vect-data-refs.c: Likewise.
3320         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
3321         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3322         rtl.h statistics.h stmt.h varasm.h.
3323         * internal-fn.c: Likewise.
3324         * ipa-icf-gimple.c: Likewise.
3325         * lto-section-out.c: Likewise.
3326         * tree-data-ref.c: Likewise.
3327         * tree-nested.c: Likewise.
3328         * tree-outof-ssa.c: Likewise.
3329         * tree-predcom.c: Likewise.
3330         * tree-pretty-print.c: Likewise.
3331         * tree-scalar-evolution.c: Likewise.
3332         * tree-ssa-strlen.c: Likewise.
3333         * tree-vect-loop.c: Likewise.
3334         * tree-vect-patterns.c: Likewise.
3335         * tree-vect-slp.c: Likewise.
3336         * tree-vect-stmts.c: Likewise.
3337         * tsan.c: Likewise.
3338         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3339         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
3340         stmt.h.
3341         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
3342         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3343         statistics.h stmt.h varasm.h.
3344         * loop-unroll.c: Likewise.
3345         * ubsan.c: Likewise.
3346         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
3347         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
3348         stmt.h varasm.h.
3349         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3350         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
3351         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
3352         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3353         statistics.h stmt.h.
3354         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
3355         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3356         statistics.h stmt.h varasm.h.
3357         * gimple-match-head.c: Likewise.
3358         * lto-cgraph.c: Likewise.
3359         * lto-section-in.c: Likewise.
3360         * lto-streamer-in.c: Likewise.
3361         * lto-streamer-out.c: Likewise.
3362         * tree-affine.c: Likewise.
3363         * tree-cfg.c: Likewise.
3364         * tree-cfgcleanup.c: Likewise.
3365         * tree-if-conv.c: Likewise.
3366         * tree-into-ssa.c: Likewise.
3367         * tree-ssa-alias.c: Likewise.
3368         * tree-ssa-copyrename.c: Likewise.
3369         * tree-ssa-dse.c: Likewise.
3370         * tree-ssa-forwprop.c: Likewise.
3371         * tree-ssa-live.c: Likewise.
3372         * tree-ssa-math-opts.c: Likewise.
3373         * tree-ssa-pre.c: Likewise.
3374         * tree-ssa-sccvn.c: Likewise.
3375         * tree-tailcall.c: Likewise.
3376         * tree-vect-generic.c: Likewise.
3377         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3378         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
3379         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3380         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
3381         * varasm.c: Likewise.
3382         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3383         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
3384         varasm.h.
3385         * init-regs.c: Likewise.
3386         * ira.c: Likewise.
3387         * omp-low.c: Likewise.
3388         * stack-ptr-mod.c: Likewise.
3389         * tree-ssa-reassoc.c: Likewise.
3390         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3391         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
3392         varasm.h.
3393         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3394         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
3395         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3396         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
3397         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3398         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
3399         * tree-ssa-phiopt.c: Likewise.
3400         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3401         fixed-value.h hashtab.h real.h statistics.h stmt.h.
3402         * config/fr30/fr30.c: Likewise.
3403         * config/frv/frv.c: Likewise.
3404         * expr.c: Likewise.
3405         * final.c: Likewise.
3406         * optabs.c: Likewise.
3407         * passes.c: Likewise.
3408         * simplify-rtx.c: Likewise.
3409         * stmt.c: Likewise.
3410         * toplev.c: Likewise.
3411         * var-tracking.c: Likewise.
3412         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3413         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3414         * lower-subreg.c: Likewise.
3415         * postreload-gcse.c: Likewise.
3416         * ree.c: Likewise.
3417         * reginfo.c: Likewise.
3418         * store-motion.c: Likewise.
3419         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3420         fixed-value.h hashtab.h real.h stmt.h varasm.h.
3421         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3422         fixed-value.h hashtab.h statistics.h stmt.h.
3423         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3424         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3425         * except.c: Likewise.
3426         * explow.c: Likewise.
3427         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3428         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
3429         varasm.h.
3430         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3431         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
3432         * tree-ssa-structalias.c: Likewise.
3433         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3434         fixed-value.h insn-config.h real.h statistics.h.
3435         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3436         fixed-value.h insn-config.h real.h statistics.h stmt.h.
3437         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3438         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3439         * cfgbuild.c: Likewise.
3440         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3441         fixed-value.h real.h rtl.h statistics.h stmt.h.
3442         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3443         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3444         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3445         fixed-value.h real.h statistics.h stmt.h.
3446         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3447         fixed-value.h real.h statistics.h stmt.h varasm.h.
3448         * cprop.c: Likewise.
3449         * modulo-sched.c: Likewise.
3450         * postreload.c: Likewise.
3451         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3452         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
3453         statistics.h stmt.h varasm.h.
3454         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
3455         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3456         rtl.h statistics.h stmt.h varasm.h.
3457         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
3458         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
3459         varasm.h.
3460         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3461         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
3462         varasm.h.
3463         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
3464         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
3465         varasm.h.
3466         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
3467         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3468         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3469         function.h real.h statistics.h stmt.h varasm.h.
3470         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3471         insn-config.h real.h statistics.h stmt.h.
3472         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3473         statistics.h stmt.h.
3474         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
3475         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
3476         statistics.h stmt.h varasm.h.
3477         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
3478         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
3479         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3480         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
3481         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
3482         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3483         statistics.h stmt.h varasm.h.
3484         * ipa-polymorphic-call.c: Likewise.
3485         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
3486         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3487         statistics.h stmt.h.
3488         * config/c6x/c6x.c: Likewise.
3489         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
3490         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3491         statistics.h stmt.h varasm.h.
3492         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
3493         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
3494         stmt.h varasm.h.
3495         * ipa-split.c: Likewise.
3496         * tree-eh.c: Likewise.
3497         * tree-ssa-dce.c: Likewise.
3498         * tree-ssa-loop-niter.c: Likewise.
3499         * tree-vrp.c: Likewise.
3500         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
3501         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
3502         stmt.h.
3503         * config/nds32/nds32-fp-as-gp.c: Likewise.
3504         * config/nds32/nds32-intrinsic.c: Likewise.
3505         * config/nds32/nds32-isr.c: Likewise.
3506         * config/nds32/nds32-md-auxiliary.c: Likewise.
3507         * config/nds32/nds32-memory-manipulation.c: Likewise.
3508         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3509         * config/nds32/nds32-predicates.c: Likewise.
3510         * config/nds32/nds32.c: Likewise.
3511         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
3512         fixed-value.h hashtab.h real.h statistics.h.
3513         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
3514         fixed-value.h hashtab.h real.h statistics.h stmt.h.
3515         * config/arm/arm.c: Likewise.
3516         * config/avr/avr.c: Likewise.
3517         * config/bfin/bfin.c: Likewise.
3518         * config/h8300/h8300.c: Likewise.
3519         * config/i386/i386.c: Likewise.
3520         * config/ia64/ia64.c: Likewise.
3521         * config/iq2000/iq2000.c: Likewise.
3522         * config/m32c/m32c.c: Likewise.
3523         * config/m32r/m32r.c: Likewise.
3524         * config/m68k/m68k.c: Likewise.
3525         * config/mcore/mcore.c: Likewise.
3526         * config/mep/mep.c: Likewise.
3527         * config/mips/mips.c: Likewise.
3528         * config/mn10300/mn10300.c: Likewise.
3529         * config/moxie/moxie.c: Likewise.
3530         * config/pa/pa.c: Likewise.
3531         * config/rl78/rl78.c: Likewise.
3532         * config/rx/rx.c: Likewise.
3533         * config/s390/s390.c: Likewise.
3534         * config/sh/sh.c: Likewise.
3535         * config/sparc/sparc.c: Likewise.
3536         * config/spu/spu.c: Likewise.
3537         * config/stormy16/stormy16.c: Likewise.
3538         * config/v850/v850.c: Likewise.
3539         * config/vax/vax.c: Likewise.
3540         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
3541         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3542         * config/msp430/msp430.c: Likewise.
3543         * predict.c: Likewise.
3544         * value-prof.c: Likewise.
3545         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
3546         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
3547         * config/microblaze/microblaze.c: Likewise.
3548         * config/nios2/nios2.c: Likewise.
3549         * config/rs6000/rs6000.c: Likewise.
3550         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3551         insn-config.h real.h rtl.h statistics.h stmt.h.
3552         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3553         insn-config.h real.h statistics.h stmt.h.
3554         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
3555         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3556         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
3557         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3558         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
3559         fixed-value.h real.h statistics.h stmt.h.
3560         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
3561         fixed-value.h statistics.h stmt.h.
3562         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
3563         stmt.h.
3565 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
3567         * gengtype.c (create_user_defined_type): Workaround
3568         -Wmaybe-uninitialized false positives.
3569         * cse.c (fold_rtx): Likewise.
3570         * loop-invariant.c (gain_for_invariant): Likewise.
3572 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
3574         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
3575         set the memory attributes in all cases but clear MEM_EXPR if need be.
3577 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
3579         PR tree-optimization/64434
3580         * cfgexpand.c (reorder_operands): New function.
3581         (expand_gimple_basic_block): Insert call of reorder_operands if
3582         optimized is true.
3584 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
3586         * config/mips/micromips.md (*swp): Remove explicit parallel.
3587         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
3588         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
3589         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
3590         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
3591         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
3592         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
3593         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
3594         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
3595         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
3596         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
3597         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
3598         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
3599         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
3600         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
3601         (mips_wrdsp): Likewise.
3602         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
3603         parallel.
3604         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
3605         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
3606         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
3607         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
3608         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
3609         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
3610         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
3611         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
3612         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
3614 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3616         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
3617         (mips_print_operand): Support 'y' to print exact log2 in decimal
3618         of a const_int.
3619         * config/mips/mips.h (ISA_HAS_LSA): New define.
3620         (ISA_HAS_DLSA): Likewise.
3621         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
3622         * config/mips/predicates.md (const_immlsa_operand): New predicate.
3624 2015-01-15  Martin Liska  <mliska@suse.cz>
3626         PR target/64377
3627         * optc-save-gen.awk: Add support for array types.
3629 2015-01-15  Richard Biener  <rguenther@suse.de>
3631         PR middle-end/64365
3632         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
3633         for MEM_REF access functions with the same base can never partially
3634         overlap.
3636 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
3638         * common.opt: New option -fstack-protector-explicit.
3639         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
3640         (stack_protect_decl_phase): Handle stack_protect attribute for
3641         explicit stack protection requests.
3642         (expand_used_vars): Similarly.
3643         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
3644         * doc/extend.texi: Add documentation for "stack_protect" attribute.
3645         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
3647 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
3649         PR target/53988
3650         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
3651         reg-reg copies.
3652         (sh_extending_set_of_reg): New struct.
3653         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
3654         sh_remove_reg_dead_or_unused_notes): New Declarations.
3655         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
3656         sh_find_extending_set_of_reg, sh_split_tst_subregs,
3657         sh_extending_set_of_reg::use_as_extended_reg): New functions.
3658         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
3659         convert to insn_and_split and use new function sh_split_tst_subregs.
3661 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
3663         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
3664         option.
3665         (Optimization Options): Move -fuse-ld documentation to...
3666         (Link Options): ...here.
3668 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3670         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
3671         offsets.
3672         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
3673         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
3674         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
3675         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
3676         instead of ZR for the memory operand of LL/SC.
3677         (compare_and_swap_12, sync_add<mode>): Likewise.
3678         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
3679         (sync_new_<optab>_12, sync_nand_12): Likewise.
3680         (sync_old_nand_12, sync_new_nand_12): Likewise.
3681         (sync_sub<mode>, sync_old_add<mode>): Likewise.
3682         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
3683         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
3684         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
3685         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
3686         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
3687         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
3688         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
3689         * doc/md.texi (ZC): Update description.
3691 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
3693         * builtins.c (expand_builtin_atomic_exchange): Remove error when
3694         memory model is CONSUME.
3695         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
3696         expand_builtin_atomic_store): Change invalid memory model errors to
3697         warnings.
3698         (expand_builtin_atomic_clear): Change invalid model errors to warnings
3699         and issue warning for CONSUME.
3701 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
3703         * lto-cgraph: Update function comments for
3704         lto_symtab_encoder_encode_*.
3706 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
3708         * Makefile.in (site.exp): Do not set ENABLE_LTO.
3710 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
3712         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
3713         * lto-cgraph.c (select_what_to_stream): Remove argument, use
3714         lto_stream_offload_p instead.
3715         * lto-streamer.h (select_what_to_stream): Remove argument.
3716         * passes.c (ipa_write_summaries): Likewise.
3717         * tree-pass.h (ipa_write_summaries): Likewise.
3719 2015-01-14  Richard Biener  <rguenther@suse.de>
3721         PR tree-optimization/59354
3722         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
3723         groups larger than the slp group size as having gaps.
3725 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
3727         PR middle-end/59448
3728         * builtins.c (get_memmodel): Promote consume to acquire always.
3730 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
3732         PR target/64386
3733         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
3734         V32HImode.
3736 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
3738         PR target/64393
3739         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
3740         Enable AVX512BW.
3741         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
3742         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
3743         AVX512VBMI, as it implies AVX512BW.
3745 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
3747         PR target/64387
3748         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
3749         (vec_unpacks_hi_v16sf): Ditto.
3751 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3753         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
3754         is not available.
3756 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3758         * doc/invoke.texi (mapcs): Mention deprecation.
3759         (mapcs-frame): Likewise.
3761 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3763         PR target/64453
3764         * config/arm/arm.c (callee_saved_reg_p): Define.
3765         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
3766         register is callee saved instead of !call_used_regs[reg].
3767         (thumb1_compute_save_reg_mask): Likewise.
3769 2015-01-14  Hale Wang  <hale.wang@arm.com>
3771         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
3772         Cortex-M7.
3774 2015-01-14  Richard Biener  <rguenther@suse.de>
3776         PR lto/64415
3777         * tree-inline.c (insert_debug_decl_map): Check destination
3778         function MAY_HAVE_DEBUG_STMTS.
3779         (insert_init_debug_bind): Likewise.
3780         (insert_init_stmt): Remove redundant check.
3781         (remap_gimple_stmt): Drop debug stmts if the destination
3782         function has var-tracking assignments disabled.
3784 2015-01-14  Martin Liska  <mliska@suse.cz>
3786         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
3787         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
3789 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3791         PR target/64460
3792         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
3793         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
3795 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3797         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
3798         level from an ARCH; do not inject the default.
3799         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
3800         MIPS_ISA_LEVEL_SPEC.
3801         (MIPS_ISA_NAN2008_SPEC): Update comment.
3802         (BASE_DRIVER_SELF_SPECS): Likewise.
3803         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
3804         MIPS_DEFAULT_ISA_LEVEL_SPEC.
3805         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
3806         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
3807         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
3809 2015-01-14  Richard Biener  <rguenther@suse.de>
3811         PR tree-optimization/64493
3812         PR tree-optimization/64495
3813         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
3814         assign the proper vectorized PHI to the inner loop exit PHIs.
3816 2015-01-14  Joey Ye  <joey.ye@arm.com>
3818         * config/arm/arm.c (arm_compute_save_reg_mask):
3819         Do not save lr in case of tail call.
3820         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
3822 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
3824         * tree-vrp.c (check_array_ref): Emit more warnings
3825         for warn_array_bounds >= 2.
3826         * common.opt: New option -Warray-bounds=.
3827         * doc/invoke.texi: Document -Warray-bounds=.
3829 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
3831         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
3832         (mforbid-fp-as-gp): Remove.
3833         (mex9): Remove.
3834         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
3835         (nds32_symbol_load_store_p): Remove.
3836         (nds32_fp_as_gp_check_available): Clean up implementation.
3837         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
3838         cases.
3839         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
3840         fp-as-gp and ex9 cases.
3842 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
3844         * tree-profile.c (init_ic_make_global_vars): Drop workaround
3845         for bintuils bug 14342.
3846         (init_ic_make_global_vars): Likewise.
3847         (gimple_init_edge_profiler): Likewise.
3848         (gimple_gen_ic_func_profiler): Likewise.
3850 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3852         * ipa-inline.c (inline_small_functions): Swap the operands in
3853         enum.
3855 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
3857         PR ipa/64481
3858         * ipa-inline-analysis.c (node_growth_cache): Remove.
3859         (initialize_growth_caches): Do not initialize it.
3860         (free_growth_caches): Do not free it.
3861         (do_estimate_growth): Rename to ...
3862         (estimate_growth): ... this one; drop growth cache code.
3863         (growth_likely_positive): Always go the heuristics way.
3864         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
3865         (reset_edge_caches): Do not reset node growth.
3866         (heap_edge_removal_hook): Do not maintain cache.
3867         (inline_small_functions): Likewise; strenghten sanity check.
3868         (ipa_inline): Do not maintain caches.
3869         * ipa-inline.h (node_growth_cache): Remove.
3870         (do_estimate_growth): Remove to ...
3871         (estimate_growth): this one; remove inline version.
3872         (reset_node_growth_cache): Remove.
3874 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
3876         PR ipa/64565
3877         * ipa-inline.c (inline_small_functions): Update callee keys after
3878         resolving speculation
3879         (inline_small_functions): Always check monotonicity of the queue.
3881 2015-01-13  Marek Polacek  <polacek@redhat.com>
3883         PR middle-end/64391
3884         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
3886 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
3888         PR rtl-optimization/64286
3889         * ree.c (combine_reaching_defs): Move part of comment earlier,
3890         remove !SCALAR_INT_MODE_P check.
3891         (add_removable_extension): Don't add vector mode
3892         extensions if all uses of the source register aren't the same
3893         vector extensions.
3895 2015-01-13  Renlin Li  <renlin.li@arm.com>
3897         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
3898         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
3900 2015-01-13  Martin Liska  <mliska@suse.cz>
3902         * ipa-icf.c (sem_function::equals_private): Call new functions
3903         cl_target_option_print_diff and cl_optimization_print_diff.
3904         * optc-save-gen.awk (cl_target_option_print_diff): New function.
3905         (cl_optimization_print_diff): Likewise.
3906         * opth-gen.awk: Likewise.
3908 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
3910         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
3911         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
3912         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
3913         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
3914         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
3915         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
3917 2015-01-13  Andrew Pinski   <apinski@cavium.com>
3919         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
3920         instead of src mode.
3922 2015-01-13  Richard Biener  <rguenther@suse.de>
3924         PR lto/64373
3925         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
3926         DECL_CONTEXT.
3928 2015-01-13  Andrew Pinski   <apinski@cavium.com>
3930         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
3931         volatile mems.
3932         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
3934 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
3936         PR middle-end/63974
3937         * cfgexpand.c (expand_computed_goto): Don't call
3938         convert_memory_address here.
3940 2015-01-13  Richard Biener  <rguenther@suse.de>
3942         PR tree-optimization/64406
3943         * tree-loop-distibution.c (pass_loop_distribution::execute):
3944         Reset the SCEV hashtable if we distributed anything.
3946 2015-01-13  Richard Biener  <rguenther@suse.de>
3948         PR tree-optimization/64404
3949         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
3950         SLP types for CSEd loads.
3952 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3954         PR tree-optimization/64436
3955         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
3956         merge of two symbolic numbers for a bitwise OR to ...
3957         (perform_symbolic_merge): This. Also fix computation of the range and
3958         end of the symbolic number corresponding to the result of a bitwise OR.
3960 2015-01-13  Richard Biener  <rguenther@suse.de>
3962         PR tree-optimization/64568
3963         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
3964         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
3966 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
3968         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
3969         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
3971 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
3973         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
3974         target-specific symbol_ref flag.
3975         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
3976         resides in rodata section.
3977         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
3978         (nds32_encode_section_info): New function.
3980 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
3982         * config/nds32/nds32.md (call): Use pseudo instruction bal which
3983         clobbers TA_REGNUM if large code model is specified.
3984         (call_register): Likewise.
3985         (call_immediate): Likewise.
3986         (call_value): Likewise.
3987         (call_value_register): Likewise.
3988         (call_value_immediate): Likewise.
3990 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
3992         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
3993         (TARGET_CMODEL_MEDIUM): New macro.
3994         (TARGET_CMODEL_LARGE): New macro.
3995         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
3996         code model setting in assembly code.
3998 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4000         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
4001         Remove MASK_GP_DIRECT flag.
4002         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
4003         one of the multilib default options.
4004         * config/nds32/nds32.opt (mgp-direct): Remove.
4005         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
4006         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
4008 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4010         * config/nds32/nds32.opt (mcmodel): Add new option.
4011         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
4012         to describe code model.
4014 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
4016         PR target/64479
4017         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
4019 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4021         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
4022         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
4023         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
4024         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
4025         __builtin_sh_set_fpscr.
4027 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4029         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
4030         after a funtion name just to indicate it is a function.
4031         ([-fsanitize-undefined-trap-on-error]): Likewise.
4032         ([-fdbg-cnt=]): Likewise.
4033         ([-mmemcpy]): Likewise.
4034         ([-mflush-func]): Likewise.
4035         ([-msynci]): Likewise.
4037 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4039         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
4040         example.
4042 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
4044         PR tree-optimization/64563
4045         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
4046         instead of != VR_VARYING.
4048         PR target/64513
4049         * config/i386/i386.c (ix86_expand_prologue): Add
4050         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
4052         PR tree-optimization/64454
4053         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
4054         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
4055         for signed or [0, op1 - 1] for unsigned modulo.
4056         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4057         even if op1 does not satisfy integer_pow2p.
4059         PR other/64370
4060         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
4062 2015-01-12  Jeff Law  <law@redhat.com>
4064         PR target/64461
4065         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
4066         (trunchiqi2, truncsihi2): Similarly.
4068         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
4069         rather than calling F.
4071 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4073         * tsan.c (instrument_expr): Use force_gimple_operand.
4074         Use may_be_nonaddressable_p instead of is_gimple_addressable.
4076 2015-01-12  Richard Biener  <rguenther@suse.de>
4078         PR tree-optimization/64530
4079         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
4080         back dr1.
4082 2015-01-12  Richard Biener  <rguenther@suse.de>
4084         PR middle-end/64357
4085         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
4086         latches properly.
4088 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4090         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
4091         Cortex-A17 tuning parameters.
4092         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
4094 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4096         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
4097         * config/arm/arm.c (arm_macro_fusion_p): New function.
4098         (arm_macro_fusion_pair_p): Likewise.
4099         (TARGET_SCHED_MACRO_FUSION_P): Define.
4100         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
4101         (ARM_FUSE_NOTHING): Likewise.
4102         (ARM_FUSE_MOVW_MOVT): Likewise.
4103         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4104         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4105         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4106         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4107         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4108         arm_cortex_a5_tune): Specify fuseable_ops value.
4110 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4112         PR bootstrap/64561
4113         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
4114         test for PIE with copy reloc.
4115         * configure: Regenerated.
4117 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4119         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
4120         in gen_rtx_REG.
4121         (arm_tls_descseq_addr): Likewise.
4122         (arm_gen_movmemqi): Likewise.
4123         (arm_expand_epilogue_apcs_frame): Likewise.
4124         (arm_expand_epilogue): Likewise.
4125         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
4126         in gen_rtx_REG.
4128 2015-01-12  Martin Liska  <mliska@suse.cz>
4130         PR ipa/64550
4131         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
4132         volatility for correct operands.
4134 2015-01-12  Martin Liska  <mliska@suse.cz>
4136         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4137         that a function is not leaf.
4138         (sem_function::compare_polymorphic_p): Likewise.
4140 2015-01-12  Martin Liska  <mliska@suse.cz>
4142         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4143         that a function is not leaf.
4144         (sem_function::compare_polymorphic_p): Likewise.
4146 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4148         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
4149         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
4150         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
4151         fold-const.h, tree-check.h.
4153 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
4155         PR ipa/63967
4156         PR ipa/64425
4157         * ipa-inline.c (compute_uninlined_call_time,
4158         compute_inlined_call_time): Use counts for extra precision when
4159         needed possible.
4160         (big_speedup_p): Fix formating.
4161         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
4162         (relative_time_benefit): Remove.
4163         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
4164         merge guessed and read profile paths.
4165         (inline_small_functions): Count only !optimize_size functions into
4166         initial size; be more lax about sanity check when profile is used;
4167         be sure to update inlined function profile when profile is read.
4169 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
4171         PR ipa/63470
4172         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
4173         cost when edge becomes direct.
4174         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
4175         is resolved or when introducing new speculation.
4177 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
4179         PR ipa/64551
4180         PR ipa/64552
4181         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
4182         '||' to fix typo issue.
4184         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
4185         accept and return NULL.
4187 2015-01-12  Martin Liska  <mliska@suse.cz>
4189         * cgraph.c (cgraph_edge::remove_callee): Move function to header
4190         file for being inlined.
4191         (cgraph_set_edge_callee): Delete.
4192         (cgraph_edge::redirect_callee): Move function to header file
4193         for being inlined.
4194         (cgraph_edge::make_direct): Use new function.
4195         (cgraph_edge::dump_edge_flags): New function created from
4196         static dump_edge_flags function.
4197         (cgraph_node::dump): Use new function.
4198         (cgraph_edge::verify_count_and_frequency): New function created
4199         from verify_edge_count_and_frequency.
4200         (cgraph_edge::verify_corresponds_to_fndecl): New function created
4201         from verify_edge_corresponds_to_fndecl.
4202         (verify_edge_corresponds_to_fndecl): Delete.
4203         (cgraph_node::verify_node): Use new function.
4204         * cgraph.h (cgraph_edge::set_callee): New function.
4205         (cgraph_edge::dump_edge_flags): Likewise.
4206         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
4208 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
4210         * ipa-utils.c (estimate_function_body_sizes): Do not
4211         free node params when called late with early=true.
4213 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
4215         * doc/md.texi (Instruction Patterns): Rewrite text for
4216         clarity.
4217         (Example): Likewise.
4219 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
4221         * doc/invoke.texi (Option Summary): Break long lines.
4222         [(-fdiagnostics-color)]: Put long literal in @smallexample
4223         instead of inline.
4224         [(-fsanitize-recover)]: Likewise.
4225         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
4226         [(-ffast-math)]: Likewise.
4227         [(--param max-inline-insns-recursive)]: Likewise.
4228         [(--param max-inline-recursive-depth)]: Likewise.
4229         [(-mno-text-section-literals)]: Likewise.
4231 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
4233         * doc/install.texi: Update for libgomp being renamed from "GNU
4234         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4235         Runtime Library".
4236         * doc/sourcebuild.texi: Likewise.
4238 2015-01-10  Anthony Green  <green@moxielogic.com>
4240         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4241         mul.x availability for moxiebox configuration.
4243 2015-01-09  Anthony Green  <green@moxielogic.com>
4245         * config/moxie/moxie.md: Tabify assembly output.
4247 2015-01-09  Anthony Green  <green@moxielogic.com>
4249         * config/moxie/moxie.md (CC_REG): Correct register definition.
4251 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
4253         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4254         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
4255         of log files.
4257 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4259         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4261 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
4262             Jakub Jelinek  <jakub@redhat.com>
4264         PR middle-end/64412
4265         * lto-streamer.h (lto_stream_offload_p): New declaration.
4266         * lto-streamer.c (lto_stream_offload_p): New variable.
4267         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4268         at the same time as section_name_prefix.
4269         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4270         if lto_stream_offload_p.
4271         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4272         stream TREE_TARGET_OPTION if lto_stream_offload_p.
4273         (write_ts_function_decl_tree_pointers): Don't
4274         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4275         * tree-streamer-in.c (unpack_value_fields): Don't stream
4276         TREE_TARGET_OPTION in if ACCEL_COMPILER.
4277         (lto_input_ts_function_decl_tree_pointers): Don't stream
4278         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
4279         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
4280         instead of section_name_prefix string comparisons.
4282 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
4284         PR rtl-optimization/64536
4285         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
4286         tablejumps.
4288 2015-01-09  Michael Collison  <michael.collison@linaro.org>
4290         PR tree-optimization/64322
4291         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
4292         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
4294 2015-01-09  Tom de Vries  <tom@codesourcery.com>
4296         PR rtl-optimization/64539
4297         * regcprop.c (kill_clobbered_values): Factor out of ...
4298         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
4299         instead of note_stores with kill_clobbered_value.
4301 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4303          * ginclude/unwind-arm-common.h: Revert previous commit.
4305 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4307         * config.gcc (arm*-*-freebsd*): New configuration.
4308         * config/arm/freebsd.h: New file.
4309         * config.host: Add extra components for arm*-*-freebsd*.
4310         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
4311         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
4313 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4315         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4316         for -mcpu=e6500.
4317         * config/rs6000/t-rtems: Add e6500 multilibs.
4319 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4321         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
4322         MPC8540.
4324 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4326         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
4327         MULTILIB_EXCEPTIONS.
4329 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4331         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
4332         MULTILIB_EXCEPTIONS.
4334 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4336         * config/arm/t-rtems-eabi: Rename to...
4337         * config/arm/t-rtems: ...this.
4338         * config/arm/rtems-eabi.h: Rename to...
4339         * config/arm/rtems.h: ...this.
4340         * config.gcc (arm*-*-rtems*): Reflect changes above.
4342 2015-01-09  Richard Biener  <rguenther@suse.de>
4344         PR tree-optimization/64410
4345         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
4346         on the LHS.
4347         (execute_update_addresses_taken): Deal with that.
4348         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
4349         loads/stores for complex variables.
4351 2015-01-09  Martin Liska  <mliska@suse.cz>
4353         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
4354         name comparison.
4355         (func_checker::compare_memory_operand): New function.
4356         (func_checker::compare_operand): Split case to newly
4357         added functions.
4358         (func_checker::compare_cst_or_decl): New function.
4359         (func_checker::compare_gimple_call): Identify
4360         memory operands.
4361         (func_checker::compare_gimple_assign): Likewise.
4362         * ipa-icf-gimple.h: New function.
4364 2015-01-09  Martin Liska  <mliska@suse.cz>
4366         PR ipa/64503
4367         * sreal.c (sreal::dump): Change unsigned format to signed for
4368         m_exp value.
4369         (sreal::to_double): Replace exp2 with scalbln.
4371 2015-01-09  Martin Liska  <mliska@suse.cz>
4373         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
4374         * ipa-icf.c (sem_function::equals_private): Add support for target and
4375         (sem_item_optimizer::merge_classes): Remove redundant function
4376         optimization flags comparison.
4377         * tree.h (target_opts_for_fn): New function.
4379 2015-01-09  Tom de Vries  <tom@codesourcery.com>
4381         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
4383 2015-01-09  Kito Cheng  <kito@0xlab.org>
4385         PR rtl-optimization/64348
4386         * lra-constraints.c (split_reg): Fix caller-save store/restore
4387         instruction generation.
4389 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
4391         PR gcov-profile/61790
4392         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
4393         long long.  Fallback to int64_t if host doesn't have long long and
4394         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
4396 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
4398         PR tree-optimization/63989
4399         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
4400         from 1000 to 10000.
4401         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
4402         (get_stridx): If we don't have a record for certain SSA_NAME,
4403         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
4404         constant offset, call get_stridx_plus_constant.
4405         (get_stridx_plus_constant): New function.
4406         (zero_length_string): Don't use get_stridx here.
4408         PR target/55023
4409         PR middle-end/64388
4410         * dse.c (struct insn_info): Mention frame_read set also
4411         before reload for tail calls on some targets.
4412         (scan_insn): Revert 2014-12-22 change.  Set frame_read
4413         also before reload for tail calls if
4414         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
4415         instead of add_non_frame_wild_read for non-const/memset
4416         tail calls after reload.
4418 2015-01-08  Jason Merrill  <jason@redhat.com>
4420         * ubsan.c (do_ubsan_in_current_function): New.
4421         (pass_ubsan::gate): Use it.
4422         * ubsan.h: Declare it.
4423         * convert.c (convert_to_integer): Use it.
4425 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
4427         PR target/64338
4428         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
4429         compare_code when it is unconditionally overwritten afterwards.
4430         Use ix86_reverse_condition instead of reverse_condition.  Don't
4431         change code if *reverse_condition* returned UNKNOWN and don't
4432         swap ct/cf and negate diff in that case.
4434 2015-01-08  Mike Stump  <mikestump@comcast.net>
4436         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
4437         (pass_tsan_O0::gate): Likewise.
4438         * extend.texi (Function Attributes): Add no_sanitize_thread
4439         documentation.
4441 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
4443         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
4444         for registering builtins.
4445         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
4446         add -fopenmp to the argv_obstack used when invoking
4447         compile_for_target.
4449         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
4450         add "-m32" or "-m64" to argv_obstack.
4451         (generate_host_descr_file): Likewise, when invoking host_compiler.
4452         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
4453         ld.
4455 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
4457         * config/sh/sh-mem.cc: Use constant as second operand when emitting
4458         tstsi_t insns.
4460 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
4462         PR target/55212
4463         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
4464         constant load if constant operand fits into I08.
4466 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
4468         PR sanitizer/64336
4469         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
4470         and TREE_THIS_VOLATILE for MEM_REFs.
4471         (build5_stat): Fix up initialization of TREE_READONLY and
4472         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
4474 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
4476         PR target/64533
4477         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
4478         of r for the second alternative of the destination operand.
4480 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
4482         PR target/36557
4483         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
4485 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4487         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
4488         keywords.
4489         ([-fivar-visibility], [-fvisibility]): Likewise.
4491 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4493         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
4494         the file where @code, @command, etc is more appropriate.
4496 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
4498         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
4499         of -mrecip= documentation.
4501 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4503         PR target/64505
4504         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
4505         correct reload handler if -m32 -mpowerpc64 is used.
4507 2015-01-06  Tom de Vries  <tom@codesourcery.com>
4509         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
4511 2015-01-08  Christian Bruel  <christian.bruel@st.com>
4513         PR target/64507
4514         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
4516 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4518         PR tree-optimization/63259
4519         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
4520         if optab exists for 16bit byteswap.
4522 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
4524         * opts.c (common_handle_option): Add support for
4525         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
4526         * doc/invoke.texi: Document -fno-sanitize=all,
4527         -f{,no-}sanitize-recover=all.  Document that
4528         -fsanitize=float-cast-overflow is not enabled
4529         by -fsanitize=undefined.  Fix up documentation
4530         of -f{,no-}sanitize-recover.
4532 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
4534         * config.gcc: Add Visium support.
4535         * configure.ac: Likewise.
4536         * configure: Regenerate.
4537         * doc/extend.texi (interrupt attribute): Add Visium.
4538         * doc/invoke.texi: Document Visium options.
4539         * doc/install.texi: Document Visium target.
4540         * doc/md.texi: Document Visium constraints.
4541         * common/config/visium: New directory.
4542         * config/visium: Likewise.
4544 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
4546         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
4547         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
4549 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
4551         * combine.c (combine_validate_cost): Do not count the cost of a
4552         split I2 twice.  Do not display it twice in the dump, either.
4554 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
4556         Revert parts of r219199.
4557         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
4558         <inttypes.h>.
4559         ([-Wtraditional]): Restore markup on <limits.h>.
4561 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
4563         PR c++/31397
4564         * doc/invoke.texi: Document -Wsuggest-override.
4566 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
4568         PR rtl-optimization/64287
4569         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
4570         (process_options): Disable flag_ipa_ra if profiling.
4572 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
4574         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
4576 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
4578         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
4579         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
4580         put under #if TARGET_LOOPS guard.
4582 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
4584         * config/i386/i386.c (output_387_binary_op): Use std::swap.
4586 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
4588         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
4589         * rtl.h (refers_to_regno_p): Add overload.
4590         * cse.c: Use it.
4591         * bt-load.c: Likewise.
4592         * combine.c: Likewise.
4593         * df-scan.c: Likewise.
4594         * sched-deps.c: Likewise.
4595         * config/s390/s390.c: Likewise.
4596         * config/m32r/m32r.c: Likewise.
4597         * config/rs6000/spe.md: Likewise.
4598         * config/rs6000/rs6000.c: Likewise.
4599         * config/pa/pa.c: Likewise.
4600         * config/stormy16/stormy16.c: Likewise.
4601         * config/cris/cris.c: Likewise.
4602         * config/arc/arc.md: Likewise.
4603         * config/arc/arc.c: Likewise.
4604         * config/sh/sh.md: Likewise.
4605         * config/sh/sh.c: Likewise.
4606         * config/frv/frv.c: Likewise.
4608 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
4610         PR sanitizer/64265
4611         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
4612         call as cleanup of the whole body.
4613         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
4614         * tsan.c (replace_func_exit): New function.
4615         (instrument_func_exit): Moved earlier.
4616         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
4617         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
4618         been found.
4619         (tsan_pass): Don't call instrument_func_exit.
4620         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
4621         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
4622         inlining.
4624         PR sanitizer/64344
4625         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
4626         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
4627         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
4628         if the result is integer_zerop, return NULL_TREE.
4629         * convert.c (convert_to_integer): Pass expr as ARG.
4631         PR tree-optimization/64465
4632         * tree-inline.c (redirect_all_calls): During inlining
4633         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
4634         changed the stmt to a non-throwing call.
4636 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
4638         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
4639         etc markup throughout the file.
4641 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4643         Enable experimental TSAN support for Ada.
4644         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
4646 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
4648         PR tree-optimization/64494
4649         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
4650         clear SSA_NAME_ANTI_RANGE_P flag.
4652 2015-01-05  Marek Polacek  <polacek@redhat.com>
4654         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
4656 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
4658         Update copyright years.
4660         * gcc.c (process_command): Update copyright notice dates.
4661         * gcov-dump.c: Ditto.
4662         * gcov.c: Ditto.
4663         * doc/cpp.texi: Bump @copying's copyright year.
4664         * doc/cppinternals.texi: Ditto.
4665         * doc/gcc.texi: Ditto.
4666         * doc/gccint.texi: Ditto.
4667         * doc/gcov.texi: Ditto.
4668         * doc/install.texi: Ditto.
4669         * doc/invoke.texi: Ditto.
4671         * auto-profile.c, auto-profile.h: Fix up Copyright line.
4673 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
4675         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
4676         verb tense, etc.
4677         ([-fvtable-verify], [-fvtv-debug]): Likewise.
4678         ([-Wabi]): Likewise.
4679         ([-fmessage-length]): Likewise.
4680         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
4681         ([-Wno-discarded-qualifiers]): Likewise.
4682         ([-Wnodiscarded-array-qualifiers]): Likewise.
4683         ([-Wno-virtual-move-assign]): Likewise.
4684         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
4685         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
4686         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
4687         ([-fsanitize-undefined-trap-on-error]): Likewise.
4688         ([-floop-interchange]): Likewise.
4689         ([-ftree-coalesce-inlined-vars]): Likewise.
4690         ([-fvect-cost-model]): Likewise.
4691         ([-flto]): Likewise.
4692         ([--param]): Likewise.
4693         (Spec Files): Likewise.
4694         ([-mstrict-align]): Likewise.
4695         ([-mfix-cortex-a53-835769]): Likewise.
4696         ([-march], [-mtune]): Likewise.
4697         ([-mpic-register]): Likewise.
4698         ([-munaligned-access]): Likewise.
4699         ([-msp8]): Likewise.
4700         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
4701         (AVR Built-in Macros): Likewise.
4702         ([-mpreferred-stack-boundary]): Likewise.
4703         ([-mtune-crtl]): Likewise.
4704         ([-mashf]): Likewise.
4705         ([-mmcu=]): Likewise.
4706         ([-minrt]): Likewise.
4707         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
4708         ([-mupper-regs]): Likewise.
4709         ([-matomic-model]): Likewise.
4710         ([-mdiv]): Likewise.
4711         ([-mzdcbranch]): Likewise.
4712         ([-mdisable-callt]): Likewise.
4713         ([-msoft-float]): Likewise.
4714         ([-m8byte-align]): Likewise.
4715         ([-fstack-reuse]): Likewise.
4717 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
4719         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
4720         Fix markup, light copy-editing.
4721         ([-fauto-profile]): Rewrite to fix formatting and content
4722         problems.
4724 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
4726         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
4727         Copy-edit description.
4728         ([-fisolate-erroneous-paths-attribute]): Likewise.
4729         * common.opt (fisolate-erroneous-paths-dereference):
4730         Copy-edit description.
4731         (fisolate-erroneous-paths-attribute): Likewise.
4733 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
4735         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
4736         tidy grammar.
4738 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
4740         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
4741         ([-fvtv-debug]): Likewise.
4742         ([-Wc++-compat]): Likewise.
4743         ([-Wc++11-compat]): Likewise.
4744         ([-Wc++14-compat]): Likewise.
4745         ([-Wno-sized-deallocation]): Likewise.
4746         ([-femit-class-debug-always]): Likewise.
4747         ([-femit-struct-debug-detailed]): Likewise.
4748         ([-fno-keep-inline-dllexport]): Likewise.
4749         ([-fira-algorithm]): Likewise.
4750         ([-fira-region]): Likewise.
4751         ([-flra-remat]): Likewise.
4752         ([-fipa-ra]): Likewise.
4753         ([-fhoist-adjacent-loads]): Likewise.
4754         ([-fisolate-erroneous-paths-dereference]): Likewise.
4755         ([-fisolate-erroneous-paths-attribute]): Likewise.
4756         ([-ftree-switch-conversion]): Likewise.
4757         ([-ftree-tail-merge]): Likewise.
4758         ([-ftree-loop-if-convert]): Likewise.
4759         ([-ftree-loop-if-convert-stores]): Likewise.
4760         ([-ftree-loop-distribution]): Likewise.
4761         ([-ftree-loop-distribute-patterns]): Likewise.
4762         ([-flto-compression-level]): Likewise.
4763         ([-flto-report]): Likewise.
4764         ([-flto-report-wpa]): Likewise.
4765         ([-fuse-linker-plugin]): Likewise.
4766         ([-mfix-cortex-a53-835769]): Likewise.
4767         ([-mno-fix-cortex-a53-835769]): Likewise.
4768         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
4769         explicit listing; add a note to the discussion indicating they
4770         exist.  Reorder table to group similar options.  Add missing
4771         @opindex entries.  Add @need commands throughout the table to
4772         allow it to be split across multiple pages.
4773         ([-m8bit-idiv]): Fix @opindex.
4774         ([-mavx256-split-unaligned-load]): Likewise.
4775         ([-mavx256-split-unaligned-store]): Likewise.
4776         ([-mstack-protector-guard]): Likewise.
4777         ([-mcpu=]): Likewise.
4778         ([-mcpu]): Likewise.
4779         ([-mpointer-size=]): Likewise.
4781 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
4783         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
4784         instead of `m' constraint.  Likewise for unnamed movb comparison
4785         patterns using reg_before_reload_operand predicate.
4786         * config/pa/predicates.md (reg_before_reload_operand): Tighten
4787         predicate to reject register index and LO_SUM DLT memory forms
4788         after reload.
4790 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
4792         * doc/invoke.texi (Option Summary): Fix spelling of
4793         -fdevirtualize-at-ltrans.
4794         ([-fdevirtualize]): Fix markup.
4795         ([-fdevirtualize-speculatively]): Fix typo.
4796         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
4797         implementor-speaky.
4798         * common.opt (fdevirtualize-at-ltrans): Likewise.
4799         * ipa-devirt.c: Fix typos in comments throughout the file.
4800         (ipa_devirt): Fix typos in format strings for dump output.
4802 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
4804         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
4805         discussion of defaults, light copy-editing.
4807 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4809         * tsan.c (instrument_expr): corrected previous checkin.
4811 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4813         Instrument bit field and unaligned accesses for TSAN.
4814         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
4815         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
4816         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
4817         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
4818         unaligned memory regions.
4820 2015-01-01  Anthony Green  <green@moxielogic.com>
4822         * config/moxie/predicates.md (moxie_general_movsrc_operand):
4823         Restrict move source register offsets to 16 bits.
4825 Copyright (C) 2015 Free Software Foundation, Inc.
4827 Copying and distribution of this file, with or without modification,
4828 are permitted in any medium without royalty provided the copyright
4829 notice and this notice are preserved.