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