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