PR ada/65156
[official-gcc.git] / gcc / ChangeLog
blob8c2ea4ae6002950b0f491eedfbe80c860a98300b
1 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
3         * doc/rtl.texi (fma): Clarify documentation.
5 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
7         PR debug/58123
8         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
9         over input_location.
11 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
14         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
15         restrict alignments to absolute_biggest_alignment.
16         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
17         Define.
18         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
19         * doc/tm.texi: Regenerate.
20         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
22 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
24         PR target/64172
25         * ira-color.c (color_pass): Prevent splitting multi-register
26         pseudos.
28 2015-02-20  Richard Biener  <rguenther@suse.de>
30         PR tree-optimization/65136
31         * tree-ssa-propagate.c: Include cfgloop.h.
32         (replace_phi_args_in): Avoid replacing loop latch edge PHI
33         arguments with constants.
35 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
36             Martin Liska  <mliska@suse.cz>
38         PR target/63892
39         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
40         don't try to create_thunk if stdarg_p.  If
41         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
42         redirect_callers if possible.
43         (sem_item_optimizer::execute): Call unregister_hooks here...
44         (ipa_icf_driver): ... instead of here.
46 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
48         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
49         Mark operand 0 as earlyclobber in 2nd alternative.
50         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
51         Write negated shift amount into QI lowpart operand 0 and use it
52         in the shift step.
53         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
55 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
57         * cgraph.h (clone_function_name_1): Declare.
58         * cgraphclones.c (clone_function_name_1): New function.
59         (clone_function_name): Use it.
60         * lto-partition.c: Include "stringpool.h".
61         (must_not_rename, maybe_rewrite_identifier,
62         validize_symbol_for_target): New static functions.
63         (privatize_symbol_name): Use must_not_rename.
64         (promote_symbol): Call validize_symbol_for_target.
65         (lto_promote_cross_file_statics): Likewise.
66         (lto_promote_statics_nonwpa): Likewise.
68 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
70         PR target/64452
71         * config/avr/avr.md (pushhi_insn): New insn.
72         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
74 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
75             Jakub Jelinek  <jakub@redhat.com>
77         * tree-streamer.c (preload_common_nodes): Don't preload
78         TI_VA_LIST* for offloading.
79         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
80         in_lto_p.
82 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
84         * config/pa/pa.c (pa_emit_move_sequence): Always force
85         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
86         note on insn.
88         * config/pa/pa.c (pa_reloc_rw_mask): New function.
89         (TARGET_ASM_RELOC_RW_MASK): Define.
90         (pa_cannot_force_const_mem): Revert previous change.
92 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
93             Jan Hubicka  <hubicka@ucw.cz>
95         PR ipa/65028
96         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
97         across jump functions.
99 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
101         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
103 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
105         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
107 2015-02-19  Richard Henderson  <rth@redhat.com>
109         PR middle-end/65074
110         * varasm.c (default_binds_local_p_2): Don't test node->definition;
111         test DECL_EXTERNAL independent of symtab_node.
113 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
115         PR lto/65012
116         * varpool.c (varpool_node::get_constructor): Return early
117         if this->lto_file_data is NULL.
119 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
121         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
122         (rank_for_schedule_debug): Update.
123         (ready_sort): Make static.  Move sorting logic to ...
124         (ready_sort_debug, ready_sort_real): New static functions.
125         (schedule_block): Sort both debug insns and real insns in preparation
126         for ready list trimming.  Improve debug output.
127         * sched-int.h (ready_sort): Remove global declaration.
129 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
131         * ipa-icf.c (sem_function::equals_private): Adjust.
132         (sem_function::bb_dict_test): Take a vec<int> * instead of
133         auto_vec<int>.
134         * ipa-icf.h (bb_dict_test): Likewise.
136 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
138         PR gcov-profile/64634
139         * tree-eh.c (frob_into_branch_around): Fix up typos
140         in function comment.
141         (lower_catch): Put eh_seq resulting from EH lowering of
142         the cleanup sequence after the cleanup rather than before
143         it.
145 2015-02-18  Tom de Vries  <tom@codesourcery.com>
147         * common.opt (fstdarg-opt): New option.
148         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
149         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
150         (@item -fstdarg-opt): New item.
152 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
154         PR target/65064
155         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
156         for common symbols.
158 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
160         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
161         insn-modes.h.
162         (ALL_HOST_OBJS): Add mkoffload.o.
163         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
165 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
167         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
168         (compare_virtual_tables): Be smarter about skipping typeinfos;
169         do sane output on virtual table table mismatch.
170         (warn_odr): Be ready for forward declarations of enums;
171         output sane info on base mismatch and virtual table mismatch.
172         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
173         when only one type is polymorphic.
174         (get_odr_type): Fix hashtable corruption.
175         (dump_odr_type): Dump mangled names.
177 2015-02-18  Richard Biener  <rguenther@suse.de>
179         PR tree-optimization/65063
180         * tree-predcom.c (determine_unroll_factor): Return 1 if we
181         have replaced looparound PHIs.
183 2015-02-18  Martin Liska  <mliska@suse.cz>
185         * lto-streamer.c (lto_streamer_init): Encapsulate
186         streamer_check_handled_ts_structures with checking macro.
188 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
190         PR ipa/65087
191         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
192         section if !implicit_section.
193         (cgraph_node::create_version_clone_with_body): Likewise.
194         * trans-mem.c (ipa_tm_create_version): Likewise.
196 2015-02-18  Richard Biener  <rguenther@suse.de>
198         PR tree-optimization/62217
199         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
200         into BIVs.
202 2015-02-18  Marek Polacek  <polacek@redhat.com>
204         PR sanitizer/65081
205         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
206         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
207         is in range [-16K, -1].  Don't issue run-time error if
208         (ptr > ptr + offset).
210 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
212         * doc/install.texi (nvptx-*-none): New section.
213         * doc/invoke.texi (Nvidia PTX Options): Likewise.
214         * config/nvptx/nvptx.opt: Update.
216         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
217         (access_check): New functions, copied from
218         config/i386/intelmic-mkoffload.c.
219         (main): For non-installed testing, look in all COMPILER_PATHs for
220         GCC_INSTALL_NAME.
222         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
224 2015-02-18  Andrew Pinski  <apinski@cavium.com>
225             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
227         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
228         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
230 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
232         * ipa-visibility.c (function_and_variable_visibility): Only
233         check locality if node is not already local.
234         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
235         call_for_symbol_and_aliases instead of
236         call_for_symbol_thunks_and_aliases.
237         (ipa_inline): Likewise.
238         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
239         first walk aliases.
240         * ipa.c (symbol_table::remove_unreachable_nodes): Use
241         call_for_symbol_and_aliases.
242         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
243         (ipa_propagate_frequency_1): Use it; use opt_for_fn
244         (ipa_propagate_frequency): Update.
245         (ipa_profile): Add opt_for_fn gueards.
247 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
249         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
250         * doc/invoke.texi (SH options): Document it.
251         * config/sh/sh.c (sh_insn_length_adjustment): Check
252         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
254 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
256         * common.opt (fipa-cp-alignment): New.
257         * ipa-cp.c (ipcp_store_alignment_results): Check
258         flag_ipa_cp_alignment.
259         * opts.c (default_options_table): Enable -fipa-cp-alignment for
260         -O2.
261         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
262         * doc/invoke.texi: Document -fipa-cp-alignment.
264 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
266         PR target/64793
267         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
268         to nil.  Adjust comments.
270 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
272         * ipa-visibility.c (function_and_variable_visibility): Only
273         check locality if node is not already local.
274         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
275         call_for_symbol_and_aliases instead of
276         call_for_symbol_thunks_and_aliases.
277         (ipa_inline): Likewise.
278         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
279         first walk aliases.
280         * ipa.c (symbol_table::remove_unreachable_nodes): Use
281         call_for_symbol_and_aliases.
282         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
283         (ipa_propagate_frequency_1): Use it; use opt_for_fn
284         (ipa_propagate_frequency): Update.
285         (ipa_profile): Add opt_for_fn guards.
287 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
289         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
290         skipping of "strange" tokens.
292 2015-02-17  Jeff Law  <law@redhat.com>
294         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
295         obsolete comment.
297 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
299         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
300         as forcing a HARD_DEP between instructions, thereby
301         disallowing rewriting to break dependencies.
303 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
305         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
306         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
307         variables in boundary that have no inlitalizer encoded and are
308         not aliases.
309         * varasm.c (default_binds_local_p_2): External definitions do not
310         count as definitions here.
312 2015-02-16  Jeff Law  <law@redhat.com>
314         PR tree-optimization/64823
315         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
316         statements.
317         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
318         threading through blocks with PHIs, but no statements.
319         (thread_through_normal_block): Distinguish between blocks where
320         we did not process all the statements and blocks with no statements.
322 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
323             James Greenhalgh  <james.greenhalgh@arm.com>
325         PR ipa/64963
326         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
327         section if not linkonce.  Fix up formatting.
328         (cgraph_node::create_version_clone_with_body): Copy section.
329         * trans-mem.c (ipa_tm_create_version): Likewise.
331 2015-02-16  Richard Biener  <rguenther@suse.de>
333         PR tree-optimization/65077
334         * tree-ssa-structalias.c (get_constraint_for_1): Handle
335         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
336         (find_func_aliases): Allow float values to carry pointers again.
338 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
340         * doc/install.texi (Specific): Reorder targets list to put
341         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
342         from the top menu.
344 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
345             David Edelsohn  <dje.gcc@gmail.com>
347         PR target/65058
348         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
349         mapping class to external variable or function reference.
350         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
351         mapping class.
353 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
355         PR target/53348
356         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
357         ASM_WEAKEN_DECL if defined.
359 2015-02-16  Richard Biener  <rguenther@suse.de>
361         PR lto/65015
362         * varasm.c (default_file_start): For LTO produced units
363         emit <artificial> as file directive.
365 2015-02-16  Richard Biener  <rguenther@suse.de>
367         PR tree-optimization/63593
368         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
369         stmts and releasing SSA names until...
370         (execute_pred_commoning): ... after processing all chains.
372 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
374         PR ipa/65059
375         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
376         external functions.
378 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
380         * doc/bugreport.texi: Adjust section titles throughout the file
381         to use "Title Case".
382         * doc/extend.texi: Likewise.
383         * doc/gcov.texi: Likewise.
384         * doc/implement-c.texi: Likewise.
385         * doc/implement-cxx.texi: Likewise.
386         * doc/invoke.texi: Likewise.
387         * doc/objc.texi: Likewise.
388         * doc/standards.texi: Likewise.
389         * doc/trouble.texi: Likewise.
391 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
393         * cgraph.h (symtab_node::has_aliases_p): Simplify.
394         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
395         * tree.c (lookup_binfo_at_offset): Make static.
396         (get_binfo_at_offset): Do not shadow offset; add explanatory
397         comment.
399 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
401         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
402         for all floading point loads and stores except those using a register
403         index address.
404         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
405         to a register.
407 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
409         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
410         (do_estimate_growth_1): Record if any uninlinable edge was seen.
411         (estimate_growth): Handle uninlinable edges correctly.
412         (check_callers): New.
413         (growth_likely_positive): Handle aliases correctly.
415 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
417         * ipa-chkp.c: Use iterate_direct_aliases.
418         * symtab.c (resolution_used_from_other_file_p): Move inline.
419         (symtab_node::create_reference): Fix formating.
420         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
421         (symtab_node::iterate_reference): Move inline.
422         (symtab_node::iterate_referring): Move inline.
423         (symtab_node::iterate_direct_aliases): Move inline.
424         (symtab_node::used_from_object_file_p_worker): Inline into ...
425         (symtab_node::used_from_object_file_p): ... this one; move inline.
426         (symtab_node::call_for_symbol_and_aliases): Move inline;
427         use iterate_direct_aliases.
428         (symtab_node::call_for_symbol_and_aliases_1): New method.
429         (cgraph_node::call_for_symbol_and_aliases): Move inline;
430         use iterate_direct_aliases.
431         (cgraph_node::call_for_symbol_and_aliases_1): New method.
432         (varpool_node::call_for_node_and_aliases): Rename to ...
433         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
434         use iterate_direct_aliases.
435         (varpool_node::call_for_symbol_and_aliases_1): New method.
436         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
437         (ipa_discover_readonly_nonaddressable_var): Update.
438         * ipa-devirt.c: Fix formating.
439         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
440         Move inline.
441         (cgraph_node::call_for_symbol_and_aliases): Move inline.
442         (cgraph_node::call_for_symbol_and_aliases_1): New function..
443         * cgraph.h (used_from_object_file_p_worker): Remove.
444         (resolution_used_from_other_file_p): Move inline.
445         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
446         (symtab_node::iterate_reference): Move inline.
447         (symtab_node::iterate_referring): Move inline.
448         (symtab_node::iterate_direct_aliases): Move inline.
449         (symtab_node::used_from_object_file_p_worker): Inline into ...
450         (symtab_node::used_from_object_file_p): Move inline.
451         * tree-emutls.c (ipa_lower_emutls): Update.
452         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
453         (varpool_node::call_for_node_and_aliases): Remove.
455 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
457         PR tree-optimization/62209
458         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
459         op == range->exp, insert seq and gimplified code after labels
460         instead of after the phi.
462 2015-02-13  Jeff Law  <law@redhat.com>
464         PR bootstrap/65060
465         Revert my change for tree-optimization/64823.
467 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
469         PR tree-optimization/65053
470         * tree-ssa-phiopt.c (value_replacement): When moving assign before
471         cond, either reset VR on lhs or set it to phi result VR.
473 2015-02-13  Jeff Law  <law@redhat.com>
475         PR tree-optimization/64823
476         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
477         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
478         threading through blocks with PHIs, but no statements.
479         (thread_through_normal_block): Distinguish between blocks where
480         we did not process all the statements and blocks with no statements.
482         PR rtl-optimization/47477
483         * match.pd (convert (plus/minus (convert @0) (convert @1): New
484         simplifier to narrow arithmetic.
486 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
488         PR ipa/65028
489         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
490         polymorphic call info when type is not known to be preserved.
492 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
494         PR ipa/65028
495         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
496         (inline_call): Use it.
498 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
500         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
501         GOMP_DEVICE_NVIDIA_PTX.
503 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
505         PR ipa/65034
506         * stmt.c (emit_case_nodes): Use void_type_node instead of
507         NULL_TREE as LABEL_DECL type.
509 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
511         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
512         constraints.
513         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
514         symbolic references to data to be forced to constant memory on the
515         SOM target.
517 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
519         PR tree-optimization/65002
520         * tree-cfg.c (pass_data_fixup_cfg): Don't update
521         SSA on start.
522         * tree-sra.c (some_callers_have_no_vuse_p): New.
523         (ipa_early_sra): Reject functions whose callers
524         assume function is read only.
526 2015-02-13  Richard Biener  <rguenther@suse.de>
528         PR lto/65015
529         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
530         for LTO produced CUs.
532 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
534         PR tree-optimization/64705
535         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
536         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
537         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
538         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
539         expand_simple_operations.
541 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
542             Richard Henderson  <rth@redhat.com>
544         PR rtl/32219
545         * cgraphunit.c (cgraph_node::finalize_function): Set definition
546         before notice_global_symbol.
547         (varpool_node::finalize_decl): Likewise.
548         * varasm.c (default_binds_local_p_2): Rename from
549         default_binds_local_p_1, add weak_dominate argument.  Use direct
550         returns instead of assigning to local variable.  Unify varpool and
551         cgraph paths via symtab_node.  Reject undef weak variables before
552         testing visibility.  Reorder tests for simplicity.
553         (default_binds_local_p): Use default_binds_local_p_2.
554         (default_binds_local_p_1): Likewise.
555         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
556         via symtab_node.
557         (default_elf_asm_output_external): Emit visibility when specified.
559 2015-02-13  Alan Modra  <amodra@gmail.com>
561         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
562         code setting up r11 for out-of-line fp restore.
564 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
566         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
567         (muser-mode): Likewise.
569 2015-02-13  Alan Modra  <amodra@gmail.com>
571         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
572         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
574 2015-02-12  David Howells  <dhowells@redhat.com>
576         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
577         warning.
578         * tree-ssa-uninit.c (dump_predicates): Likewise.
579         * opts.c (print_filtered_help): Likewise.
581 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
583         * dwarf2out.c (output_die): Use "%s", name instead of name to
584         avoid -Wformat-security warning.
586         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
587         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
588         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
589         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
591 2015-02-12  Jason Merrill  <jason@redhat.com>
593         * common.opt (-flifetime-dse): New.
595 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
597         PR sanitizer/65019
598         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
600         PR tree-optimization/65014
601         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
602         use original second operand of arg0 or arg1 instead of
603         that adjusted by STRIP_NOPS.
605 2015-02-11  Jeff Law  <law@redhat.com>
607         PR target/63347
608         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
609         that needs to be queued, just queue it for a single cycle.
611 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
613         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
614         bodies of thunks; comment on why.
615         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
616         symbols are extern.
618 2015-02-11  Richard Henderson  <rth@redhat.com>
620         PR sanitize/65000
621         * tree-eh.c (mark_reachable_handlers): Mark source and destination
622         regions of __builtin_eh_copy_values.
624 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
626         PR middle-end/65003
627         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
628         ultimate alias is MEM with SYMBOL_REF satisfying
629         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
630         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
632 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
634         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
635         "diagnostic-core.h".
636         (main): Initialize progname, and call diagnostic_initialize.
638         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
639         instead of __OPENMP_TARGET__.
641         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
642         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
643         hard-coding PTX_ID.
645 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
647         * doc/sourcebuild.texi (pie_enabled): Document.
649 2015-02-11  Martin Liska  <mliska@suse.cz>
651         PR ipa/64813
652         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
653         a return value for call to a function that is noreturn.
655 2015-02-11  Richard Biener  <rguenther@suse.de>
657         PR lto/65015
658         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
659         and -fresolution.
661 2015-02-11  Andrew Pinski  <apinski@cavium.com>
663         PR target/64893
664         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
665         Change the first argument type to size_type_node and add another
666         size_type_node.
667         (aarch64_simd_expand_builtin): Handle the new argument to
668         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
669         print an out when the first two arguments are not
670         nonzero integer constants.
671         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
672         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
674 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
676         PR target/61925
677         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
678         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
679         (ix86_set_current_function): Rewritten.
680         (ix86_add_new_builtins): Temporarily clear current_target_pragma
681         when creating builtin fndecls.
683 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
685         PR ipa/65005
686         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
687         function.
688         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
689         have no comdat group.
690         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
691         (lto_output_varpool_node): Always output alias info.
692         (output_refs): Output refs of boundary aliases, too.
693         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
694         (output_symtab): Output call eges in thunks in boundary.
695         (get_alias_symbol): Remove.
696         (input_node, input_varpool_node): Do not special case weakrefs.
697         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
698         alias and thunks targets in the boundary; do not take removed symbols
699         from their comdat groups.
700         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
701         (cgraph_node::global_info): Remove.
702         (cgraph_node::rtl_info): Look through aliases and thunks.
703         * cgrpah.h (global_info): Remove.
704         (non_local_p): Remove.
706 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
707             Sandra Loosemore  <sandra@codesourcery.com>
709         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
710         to inline asm.  List dialects in proper order.
712 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
713             Sandra Loosemore  <sandra@codesourcery.com>
715         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
717 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
719         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
720         modified) reference to Solaris.
722 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
724         * doc/extend.texi (Extended Asm): Fix typos.
726 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
728         PR sanitizer/65004
729         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
731 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
733         PR target/64661
734         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
735         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
736         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
737         * config/sh/constraints.md (Ara, Add): New constraints.
738         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
739         predicates.
740         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
741         atomic_mem_operand_0.  Don't use force_reg on the memory address.
742         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
743         Sra constraint.  Convert to insn_and_split.  Add workaround for
744         PR 64974.
745         (atomic_compare_and_swap<mode>_hard): Copy to
746         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
747         Use atomic_mem_operand_0 predicate.
748         (atomic_compare_and_swap<mode>_soft_gusa,
749         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
750         AraAdd constraints.
751         (atomic_compare_and_swap<mode>_soft_tcb,
752         atomic_compare_and_swap<mode>_soft_imask,
753         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
754         atomic_mem_operand_0 predicate and SraSdd constraints.
755         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
756         constraint.
757         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
758         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
759         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
760         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
761         force_reg on the memory address.
762         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
763         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
764         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
765         atomic_mem_operand_1 predicate and Sra constraint.
766         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
767         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
768         Use atomic_mem_operand_1 predicate.
769         (atomic_<fetchop_name><mode>_hard): Copy to
770         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
771         Use atomic_mem_operand_1 predicate.
772         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
773         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
774         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
775         insn_and_split.  Use atomic_mem_operand_1 predicate.
776         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
777         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
778         Use atomic_mem_operand_1 predicate.
779         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
780         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
781         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
782         in generated insn with original mem operand before emitting the insn.
783         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
784         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
785         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
786         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
787         Use atomic_mem_operand_1 predicate and AraAdd constraints.
788         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
789         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
790         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
791         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
792         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
793         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
794         atomic_not_fetch<mode>_soft_tcb,
795         atomic_<fetchop_name>_fetch<mode>_soft_imask,
796         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
797         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
798         Use atomic_mem_operand_1 predicate and SraSdd constraints.
800 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
802         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
803         and 3 earlyclobber operands.
805 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
807         * common.opt (fstack-reuse): Mark as optimization.
809 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
811         PR ipa/64982
812         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
814 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
816         PR tree-optimization/64326
817         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
819 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
821         PR gcov-profile/61889
822         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
824 2015-02-10  Richard Biener  <rguenther@suse.de>
826         PR tree-optimization/64995
827         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
828         value we use is final.
829         (visit_reference_op_store): Always valueize op.
830         (visit_use): Properly valueize vuses.
832 2015-02-10  Richard Biener  <rguenther@suse.de>
834         PR tree-optimization/64909
835         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
836         pass a scalar-stmt count estimate to the cost model.
837         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
839 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
841         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
842         enabled by default together with var-tracking.
844 2015-02-10  Nick Clifton  <nickc@redhat.com>
846         * config/rl78/rl78.c: Remove DIV attribute code accidentally
847         included in previous rl78 commit.
849 2015-02-10  Richard Biener  <rguenther@suse.de>
851         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
852         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
853         return the bitpack.
855 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
857         PR gcov-profile/61889
858         * config.in: regenerate.
859         * configure.in: Likewise.
860         * configure.ac: Check for ftw.h.
861         * gcov-tool.c: Check for ftw.h before using nftw.
863 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
865         PR lto/64076
866         * ipa-visibility.c (update_visibility_by_resolution_info): Only
867         assert when not in lto mode.
869 2015-02-09  Zhouyi Zhou   <yizhouzhou@ict.ac.cn>
871         * ira-color.c (setup_left_conflict_sizes_p): Simplify
872         initialization/assignment of conflict_size.
874 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
876         PR ipa/64978
877         * ipa-cp.c (gather_caller_stats): Skip thunks.
878         (propagate_constants_topo): Skip aliases.
880 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
882         PR target/64761
883         * config/sh/sh.c (sh_option_override): Don't change
884         -freorder-blocks-and-partition to -freorder-blocks even when
885         unwinding is enabled.
886         (sh_can_follow_jump): Return false if the followee jump is
887         a crossing jump when -freorder-blocks-and-partition is specified.
888         * config/sh/sh.md (*jump_compact_crossing): New insn.
890 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
891             Kaz Kojima  <kkojima@gcc.gnu.org>
893         PR target/64761
894         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
895         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
896         (sh_can_redirect_branch): Rename to ...
897         (sh_can_follow_jump): ... this.  Constify argument types.
898         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
899         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
900         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
901         * doc/tm.texi: Regenerate.
903 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
905         PR sanitizer/64981
906         * builtins.c (expand_builtin): Call targetm.expand_builtin
907         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
909 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
911         PR ipa/61548
912         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
914 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
916         PR ipa/63566
917         * ipa-icf.c (set_local): New function.
918         (sem_function::merge): Use it.
920 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
922         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
923         (add_type_duplicate): Fix comparison of BINFOs.
925 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
927         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
928         on getting VOID pointer.
930 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
932         PR target/64979
933         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
934         va_list escapes.
936 2015-02-09  Richard Biener  <rguenther@suse.de>
938         * genmatch.c (replace_id): Copy expr_type.
940 2015-02-09  Richard Biener  <rguenther@suse.de>
942         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
943         (streamer_write_tree_bitfields): Declare.
944         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
945         properly unpack padding.
946         (unpack_value_fields): Inline ...
947         (streamer_read_tree_bitfields): ... here.
948         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
949         and properly add padding bits.
950         (streamer_pack_tree_bitfields): Fold into ...
951         (streamer_write_tree_bitfields): ... this new function,
952         exposing the bitpack object.
953         * lto-streamer-out.c (lto_write_tree_1): Call
954         streamer_write_tree_bitfields.
956 2015-02-09  Richard Biener  <rguenther@suse.de>
958         PR tree-optimization/54000
959         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
960         (struct ivopts_data): Add loop_loc member.
961         (tree_ssa_iv_optimize_loop): Dump loop location.
962         (create_new_ivs): Likewise, also dump number of IVs generated.
964 2015-02-09  Martin Liska  <mliska@suse.cz>
966         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
967         just if not yet registered.
968         (ipa_icf_generate_summary): Register callgraph hooks.
970 2015-02-08  Andrew Pinski  <apinski@cavium.com>
972         * config/aarch64/aarch64.c (gty_dummy): Delete.
974 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
976         PR ipa/63566
977         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
978         (cgraph_node::local_p): Remove thunk related FIXME.
980 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
982         PR ipa/63566
983         * i386.c (ix86_function_regparm): Look through aliases to see if callee
984         is local and optimized.
985         (ix86_function_sseregparm): Likewise; also use target's SSE math
986         settings; error out instead of silently generating wrong code
987         on mismatches.
988         (init_cumulative_args): Look through aliases.
990 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
992         PR ipa/63566
993         * ipa-split.c (execute_split_functions): Split if function has aliases.
995 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
997         PR ipa/63566
998         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
999         aliases before trying to expand it.
1000         (cgraph_node::expand_thunk): Fix formating.
1002 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
1004         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
1005         (Using Assembly Language with C): Expand introduction.
1006         (Basic Asm): Copy-edit.  Add more information about uses of
1007         basic asm.
1008         (Extended Asm): Copy-edit.  Document new escape syntax and
1009         %l[label] syntax.
1010         (Global Reg Vars): Copy-edit.
1011         (Local Reg Vars): Likewise.
1013 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
1015         PR debug/2714
1016         PR bootstrap/64256
1017         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
1018         (DBX_CONTIN_CHAR): Define.
1020 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
1021             Brian Rzycki  <b.rzycki@samsung.com>
1023         PR tree-optimization/64878
1024         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
1025         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
1026         Stop recursion at loop phi nodes after having visited a loop phi node.
1028 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
1030         * toplev.c (process_options): Change flag_ipa_ra before creating
1031         optimization_{default,current}_node.
1033         PR ipa/64896
1034         * cgraphunit.c (cgraph_node::expand_thunk): If
1035         restype is not is_gimple_reg_type nor the thunk_fndecl
1036         returns aggregate_value_p, set restmp to a temporary variable
1037         instead of resdecl.
1039 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
1041         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
1043 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1045         PR target/64205
1046         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1047         add a general secondary reload handler for SDmode, unless we have
1048         both read/write support for SDmode.
1050 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
1052         PR middle-end/64937
1053         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
1054         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
1055         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
1056         1 before, push it to abstract_vec.
1057         (dwarf2out_abstract_function): Adjust caller.  Don't call
1058         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
1059         DECL_ABSTRACT_P flags for all abstract_vec elts.
1061 2015-02-06  Renlin Li  <renlin.li@arm.com>
1063         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
1064         complex gimple.
1065         * tree-ssa.c (execute_update_addresses_taken): Likewise.
1067 2015-02-06  Jeff Law  <law@redhat.com>
1069         PR target/64889
1070         * config/h8300/h8300.c (push): New argument "in_prologue".
1071         Pass "in_prologue" along to "F".
1072         (h8300_push_pop): Corresponding changes.
1073         (h8300_expand_prologue): Likewise.
1074         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
1076 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
1078         PR rtl-optimization/64957
1079         PR debug/64817
1080         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
1081         IOR rather than for AND.
1083 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
1085         PR target/62631
1086         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
1087         of shift-add and (add + shift) operations.  Rename local variable.
1089 2015-02-05  Jeff Law  <law@redhat.com>
1091         PR target/17306
1092         * config/h8300/constraints.md (U): Correctly dectect
1093         "eightbit_data" memory addresses.
1094         * config/h8300/h8300.c (eightbit_constant_address_p): Also
1095         handle (const (plus (symbol_ref (x)))) where x is declared
1096         as an 8-bit data memory address.
1097         * config/h8300/h8300.md (call, call_value): Correctly detect
1098         "funcvec" functions.
1100         PR target/43264
1101         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
1102         24 to 28 bits for the H8/300.
1104 2015-02-06  Alan Modra  <amodra@gmail.com>
1106         PR target/64876
1107         * config/rs6000/rs6000.c (chain_already_loaded): New function.
1108         (rs6000_call_aix): Use it.
1110 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
1112         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
1113         check.
1115 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
1117         * config/h8300/constraints.md ("U" constraint): Use strict
1118         variant of REG_OK_FOR_BASE_P after reload has started.
1120 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
1122         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
1123         define to zero if !TARGET_NEON.
1124         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
1126 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1127             Trevor Saunders  <tsaunders@mozilla.com>
1129         PR ipa/61548
1130         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
1132 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1134         PR ipa/61548
1135         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
1136         when removing varpool nodes.
1138 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1140         PR ipa/61548
1141         * varpool.c (varpool_node::remove): Fix order of variables.
1143 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1145         PR ipa/64686
1146         * ipa-inline.c (inline_small_functions): Fix ordering issue between
1147         speculation resolution and key updates.
1149 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1151         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
1152         about not letting any speculative edges unupdated.
1154 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1156         PR gcov/64123
1157         * gcov-io.c (gcov_var): Export.
1159 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1161         PR middle-end/64922
1162         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
1163         edges that become speculative.
1165 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
1167         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
1168         or DW_LANG_Fortran08.
1169         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
1170         DW_LANG_Fortran08.
1171         (gen_compile_unit_die): Handle "GNU Fortran2003" and
1172         "GNU Fortran2008" language strings.
1173         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
1174         * langhooks.h (lang_GNU_Fortran): New prototype.
1175         * langhooks.c (lang_GNU_Fortran): New function.
1176         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1177         lang_GNU_Fortran.
1179 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
1181         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
1182         (RTX_OK_FOR_OLO10_P): Likewise.
1184 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
1186         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
1188 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1190         PR middle-end/64922
1191         * gimple.c: Include gimple-ssa.h.
1192         (maybe_remove_unused_call_args): New function.
1193         * gimple.h (maybe_remove_unused_call_args): Declare.
1194         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1195         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
1196         * gimple-fold.c (gimple_fold_call): Likewise.
1198 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1200         PR rtl-optimization/64905
1201         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
1202         pointer alignment if it isn't needed.
1204 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
1206         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
1207         cortex-a72.cortex-a53.
1208         * config/aarch64/aarch64-tune.md: Regenerate.
1209         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
1211 2015-02-04  Nick Clifton  <nickc@redhat.com>
1213         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
1214         inside a MEM.
1216 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
1218         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
1219         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
1220         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
1221         of DEF_BUILTIN.
1222         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
1223         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
1224         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
1225         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
1226         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
1227         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
1228         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
1229         * tree-core.h (enum built_in_function): In between
1230         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
1231         for builtins that use DEF_BUILTIN_CHKP macro.
1233 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
1235         PR debug/64817
1236         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
1237         operands for tcc_comparison exprs.  Fix typos.
1239         PR debug/64817
1240         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
1241         of two XORs that have an intervening AND or IOR.
1243         PR debug/64817
1244         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
1245         simplification of XOR of AND to not allocate new rtx before
1246         committing to a simplification.
1248 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1250         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
1251         manual swaps in all peepholes.
1253 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1255         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
1256         of manual swapping implementation.
1257         (aarch64_expand_vec_perm_const_1): Likewise.
1259 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
1261         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
1262         (generic_addrcost_table): Remove NAMED_PARAM.
1263         (cortexa57_addrcost_table): Likewise.
1264         (xgene1_addrcost_table): Likewise.
1265         (generic_regmove_table): Likewise.
1266         (cortexa53_regmove_table): Likewise.
1267         (xgene1_regmove_table): Likewise.
1268         (generic_vector_table): Likewise.
1269         (cortexa57_vector_table): Likewise.
1270         (xgene1_vector_table): Likewise.
1271         (generic_tunings): Likewise.
1272         (cortexa53_tunings): Likewise.
1273         (cortexa57_tunings): Likewise.
1274         (xgene1_tunings): Likewise.
1276 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
1278         * config/arm/arm-cores.def: Add cortex-a72 and
1279         cortex-a72.cortex-a53.
1280         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
1281         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
1282         * config/arm/arm-tune.md: Regenerate.
1283         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
1284         "cortex-a72.cortex-a53".
1285         * doc/invoke.texi (ARM Options/-mtune): Likewise.
1287 2015-02-04  Nick Clifton  <nickc@redhat.com>
1289         PR target/64408
1290         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
1291         of accepted codes.
1292         (nonimmediate_di_operand): Likewise.
1294         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
1295         prefixes of known F5 using MSP430 MCUs.
1297 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1299         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
1300         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
1301         instead of __builtin_sqrt.
1303 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
1305         * varasm.c (do_assemble_alias): Follow transparent alias
1306         chain for target.
1307         (default_assemble_visibility): Follow transparent alias
1308         chain for decl name.
1310 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1312         PR middle-end/62103
1313         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
1314         to compute size of referenced value in the constant case.
1316 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
1318         PR rtl-optimization/64756
1319         * cse.c (invalidate_dest): New function.
1320         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
1321         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
1322         invalidate and do not record it.
1324 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
1326         PR target/64660
1327         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
1328         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
1329         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
1330         atomic_nand<mode>_soft_tcb): New insns.
1331         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
1332         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
1333         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
1334         Split into atomic_not_fetchsi_hard if operands[0] is unused.
1335         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
1336         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1337         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
1338         atomic_not<mode>_hard if operands[0] is unused.
1339         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
1340         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
1341         if operands[0] is unused.
1342         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
1343         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
1344         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
1345         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1346         unused.
1347         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
1348         into atomic_not<mode>_soft_tcb if operands[0] is unused.
1349         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
1350         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
1351         if operands[0] is unused.
1352         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
1353         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
1354         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
1355         atomic_nand_fetchsi_hard if operands[0] is unused.
1356         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
1357         atomic_nand<mode>_hard if operands[0] is unused.
1358         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
1359         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
1360         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
1361         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1362         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
1363         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
1364         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
1365         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1366         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
1367         atomic_not<mode>_hard if operands[0] is unused.
1368         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
1369         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1370         unused.
1371         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
1372         into atomic_not<mode>_soft_tcb if operands[0] is unused.
1373         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
1374         atomic_nand<mode>_hard if operands[0] is unused.
1375         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
1376         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1378 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
1380         PR jit/64810
1381         * Makefile.in (GCC_OBJS): Add gcc-main.o.
1382         * gcc-main.c: New file, containing "main" taken from gcc.c.
1383         * gcc.c (do_self_spec): Free decoded_options.
1384         (class driver): Move declaration to gcc.h.
1385         (main): Move declaration and implementation to new file
1386         gcc-main.c.
1387         (driver_get_configure_time_options): New function.
1388         * gcc.h (class driver): Move this declaration here, from
1389         gcc.c.
1390         (driver_get_configure_time_options): New declaration.
1392 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
1394         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
1395         cross-module inlining.
1396         * cgraph.h (cgraph_node): Add flag merged.
1397         * ipa-icf.c (sem_function::merge): Maintain it.
1399 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
1401         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
1402         instead of OBJECT_P.
1404 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
1406         PR target/62631
1407         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
1408         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
1409         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
1410         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
1412 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
1414         PR other/63504
1415         * combine.c (reg_n_sets_max): New variable.
1416         (can_change_dest_mode, reg_nonzero_bits_for_combine,
1417         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
1418         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
1419         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
1420         (rest_of_handle_combine): Initialize reg_n_sets_max.
1422 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
1424         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
1425         if some always_inline was inlined, apply changes before inlining
1426         heuristically.
1428 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
1430         PR jit/64810
1431         * config/arm/arm.c (arm_option_override): Set
1432         arm_selected_arch/cpu/tune to NULL on entry.
1434 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
1435             Andrew Pinski  <pinskia@gcc.gnu.org>
1436             Jakub Jelinek  <jakub@gcc.gnu.org>
1438         PR target/64231
1439         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
1440         integer typing for small model. Use IN_RANGE.
1442 2015-02-02  Richard Biener  <rguenther@suse.de>
1444         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
1445         * tree-vrp.c (vrp_valueize_1): Likewise.
1447 2015-02-02  Alan Modra  <amodra@gmail.com>
1449         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
1450         than mem for toc_restore.
1451         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
1452         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
1453         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
1455 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
1457         PR target/64047
1458         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
1459         explicit default options.
1461 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
1463         PR ipa/64872
1464         * ipa-utils.c (ipa_merge_profiles): Add release argument.
1465         * ipa-icf.c (sem_function::merge): Do not release body when merging.
1466         * ipa-utils.h (ipa_merge_profiles): Update prototype.
1468 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
1470         PR debug/64817
1471         * cfgexpand.c (deep_ter_debug_map): New variable.
1472         (avoid_deep_ter_for_debug): New function.
1473         (expand_debug_expr): If TERed SSA_NAME is in
1474         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
1475         instead of trying to expand SSA_NAME's def stmt.
1476         (expand_debug_locations): When expanding debug bind
1477         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
1478         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
1479         value.
1480         (pass_expand::execute): Call avoid_deep_ter_for_debug on
1481         all debug bind stmts.  Delete deep_ter_debug_map after
1482         expand_debug_location if non-NULL and clear it.
1484 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
1486         PR target/64851
1487         * config/sh/sync.md (atomic_fetch_notsi_hard,
1488         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
1489         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
1490         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
1491         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
1492         atomic_not_fetch<mode>_soft_imask): New insns.
1494 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1496         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
1497         (rank_for_schedule_debug): Split from ...
1498         (rank_for_schedule): ... this.
1499         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
1500         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
1502 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
1504         * doc/md.texi (Machine Constraints): Alphabetize table by target.
1505         * doc/extend.texi (x86 Variable Attributes): Move section to
1506         correct alphabetization after renaming.
1507         (x86 Type Attributes): Likewise.
1508         (Target Builtins): Re-alphabetize menu.
1509         (x86 Built-in Functions): Move section to correct alphabetization
1510         after renaming.
1511         (x86 transactional memory intrinsics): Likewise.
1512         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
1513         and x86 Windows Options in table and menu.
1514         (x86 Options): Move section to correct alphabetization after
1515         renaming.
1516         (x86 Windows Options): Likewise.
1518 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
1520         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
1521         preferred names of the architecture and its 32- and 64-bit
1522         variants.
1523         * doc/invoke.texi: Likewise.
1524         * doc/md.texi: Likewise.
1526 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
1528         PR target/64882
1529         * config/i386/predicates.md (address_no_seg_operand): Reject
1530         non-CONST_INT_P operands in invalid mode.
1532 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
1534         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
1535         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
1536         * config/i386/predicates.md (address_no_seg_operand): Call
1537         address_operand with VOIDmode.
1538         (vsib_address_operand): Ditto.
1539         (address_mpx_no_base_operand): Ditto.
1540         (address_mpx_no_index_operand): Ditto.
1542 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
1544         PR target/64688
1545         * lra-constraints.c (original_subreg_reg_mode): New.
1546         (simplify_operand_subreg): Try to simplify subreg of const.  Use
1547         original_subreg_reg_mode for it.
1548         (swap_operands): Update original_subreg_reg_mode.
1549         (curr_insn_transform): Set up original_subreg_reg_mode.
1551 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
1553         PR target/64617
1554         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
1555         function.
1556         (process_alt_operands): Use it.
1557         (curr_insn_transform): Check the optional reload pseudo class is
1558         ok for the mode.
1560 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
1562         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
1563         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
1564         prototype.
1565         * toplev.h (init_asm_output): Update comment on use of
1566         UNKNOWN_LOCATION with fatal_error.
1567         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
1568         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
1569         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
1570         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
1571         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
1572         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
1573         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
1574         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
1575         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
1576         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
1577         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
1578         fatal_error changed to pass input_location as first argument.
1580 2015-01-30  Martin Liska  <mliska@suse.cz>
1582         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
1583         in #pragma GCC diagnostic guards.
1585 2015-01-30  Richard Biener  <rguenther@suse.de>
1587         PR tree-optimization/64829
1588         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
1589         not add a widening conversion pattern but hand off extra
1590         widenings to callers.
1591         (vect_recog_widen_mult_pattern): Handle extra widening produced
1592         by vect_handle_widen_op_by_const.
1593         (vect_recog_widen_shift_pattern): Likewise.
1594         (vect_pattern_recog_1): Remove excess vertical space in dumping.
1595         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1596         (vect_init_vector_1): Likewise.
1597         (vect_get_vec_def_for_operand): Likewise.
1598         (vect_finish_stmt_generation): Likewise.
1599         (vectorizable_load): Likewise.
1600         (vect_analyze_stmt): Likewise.
1601         (vect_is_simple_use): Likewise.
1603 2015-01-29  Jeff Law  <law@redhat.com>
1605         * combine.c (try_combine): Fix typo in comment.
1607 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
1609         PR target/64580
1610         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
1611         (rs6000_stack_info): Add assert.
1612         (rs6000_output_savres_externs): New function, split off from...
1613         (rs6000_output_function_prologue): ... here.  Do not call it for
1614         thunks.
1616 2015-01-29  Jeff Law  <law@redhat.com>
1618         PR target/15184
1619         * combine.c (try_combine): If I0 is a memory load and I3 a store
1620         to a related address, increase the "goodness" of doing a 4-insn
1621         combination with I0-I3.
1622         (make_field_assignment): Handle SUBREGs in the ior+and case.
1624 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
1626         PR tree-optimization/64746
1627         * tree-if-conv.c (mask_exists): New function.
1628         (predicate_mem_writes): Save created mask with given size for further
1629         use.
1630         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
1631         (ifcvt_repair_bool_pattern): Collect all statements that are root
1632         of bool pattern and use iterative algorithm to remove multiple uses
1633         of predicates, display number of required iterations.
1635 2015-01-29  Richard Biener  <rguenther@suse.de>
1637         PR tree-optimization/64853
1638         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
1639         stmt will get simulated again.
1640         * tree-ssa-ccp.c (valueize_op_1): Likewise.
1642 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1644         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
1645         return_in_pc.  Remove redundant assignments.
1646         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1647         (arm_expand_epilogue): Don't compare boolean with true in if condition.
1649 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
1651         * config/i386/i386.c (ix86_mode_after): Make static.
1653 2015-01-29  Richard Biener  <rguenther@suse.de>
1655         PR tree-optimization/64844
1656         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1657         dump cost model analysis.
1658         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1659         Do not register adjusted load/store costs here.
1661 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1662             Uros Bizjak  <ubizjak@gmail.com>
1664         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1665         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1666         using x86_use_pseudo_pic_reg.
1667         * config/i386/i386.c (ix86_conditional_register_usage): Remove
1668         support for fixed PIC register.
1669         (ix86_use_pseudo_pic_reg): Not static any more.
1671 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1673         PR middle-end/64805
1674         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1675         to avoid error in cgraph node verification.
1677 2015-01-29  Marek Polacek  <polacek@redhat.com>
1679         * doc/standards.texi: Reflect that the default for C is gnu11.
1681 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1683         PR target/64761
1684         * reorg.c (switch_text_sections_between_p): New function.
1685         (relax_delay_slots): Call it when testing if the jump insn
1686         is removable.  Use targetm.can_follow_jump when testing if
1687         the conditional branch can follow an unconditional jump.
1689 2015-01-27  Caroline Tice  <cmtice@google.com>
1691         Committing VTV Cywin/Ming patch for Patrick Wollgast
1692         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
1693         if -fvtable-verify=preinit/std is used.
1694         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
1695         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
1696         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
1697         if -fvtable-verify=preinit/std is used.
1698         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
1699         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
1700         if -fvtable-verify=preinit/std is used.
1701         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
1702         * config/i386/mingw32.h (LIB_SPEC): Likewise.
1703         * varasm.c (assemble_variable): Add code to properly set the comdat
1704         section and name for the .vtable_map_vars section in case the
1705         target is PE or COFF.
1707 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
1709         PR ipa/64801
1710         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
1711         make sane BB profile.
1712         (cgraph_node::expand_thunk): Make sane BB profile.
1713         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
1714         * cgraph.h (init_lowered_empty_function): Update prototype.
1715         * config/i386/i386.c (make_resolver_func): Update call.
1716         * predict.c (gate): Disable branch prediction pass if
1717         profile is already there.
1719 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
1721         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
1722         * opth-gen.awk: Likewise.
1723         * common.opt: Mark flag_fp_contract_mode as Optimization.
1725 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1727         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
1728         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
1730 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
1732         PR target/64659
1733         * config/sh/predicates.md (atomic_arith_operand,
1734         atomic_logical_operand): Remove.
1735         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
1736         (atomic_arith_operand_0): New predicate.
1737         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
1738         Use atomic_arith_operand_0 for input values.
1739         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1740         atomic_compare_and_swap<mode>_soft_gusa,
1741         atomic_compare_and_swap<mode>_soft_tcb,
1742         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
1743         arith_reg_operand instead of register_operand.
1744         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
1745         atomic_arith_operand_0 for newval input.
1746         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1747         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
1748         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
1749         arith_reg_operand instead of register_operand.
1750         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
1751         fetchop_predicate_1, fetchop_constraint_1_llcs,
1752         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
1753         fetchop_constraint_1_imask): New code iterator attributes.
1754         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
1755         register_operand.  Use fetchop_predicate_1.
1756         (atomic_fetch_<fetchop_name>si_hard,
1757         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
1758         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
1759         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
1760         and arith_reg_operand instead of register_operand.  Use
1761         fetchop_predicate_1, fetchop_constraint_1_gusa.
1762         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
1763         and arith_reg_operand instead of register_operand.  Use
1764         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
1765         to allow R0 usage.
1766         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
1767         and arith_reg_operand instead of register_operand.  Use
1768         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
1769         to allow R0 usage.
1770         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
1771         register_operand.  Use atomic_logical_operand_1.
1772         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
1773         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
1774         arith_reg_operand instead of register_operand.
1775         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
1776         Use arith_reg_dest and arith_reg_operand instead of register_operand.
1777         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
1778         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
1779         register_operand.  Use fetchop_predicate_1.
1780         (atomic_<fetchop_name>_fetchsi_hard,
1781         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
1782         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1783         fetchop_constraint_1_llcs.
1784         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
1785         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1786         fetchop_constraint_1_gusa.
1787         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
1788         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1789         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
1790         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
1791         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1792         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
1793         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
1794         register_operand.  Use atomic_logical_operand_1.
1795         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
1796         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
1797         arith_reg_operand instead of register_operand.
1798         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
1799         arith_reg_operand instead of register_operand.  Use logical_operand
1800         and K08.  Adjust asm sequence to allow R0 usage.
1801         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
1802         arith_reg_operand instead of register_operand.  Use logical_operand
1803         and K08.
1805 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
1807         PR other/63504
1808         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
1809         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
1810         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
1811         only get_full_len HOST_WIDE_INTs from get_val () array rather than
1812         all bits in *val_wide.
1814 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
1816         * varpool.c (tls_model_names): Fix names.
1817         (varpool_node::dump): Dump tls- prefix for tls models.
1819 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
1820             Bernd Schmidt  <bernds@codesourcery.com>
1821             Nathan Sidwell  <nathan@codesourcery.com>
1823         * config/nvptx/mkoffload.c: New file.
1824         * config/nvptx/t-nvptx: Add build rules for it.
1825         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
1826         (extra_programs): Add mkoffload.
1827         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
1828         function.
1829         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
1831 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
1833         PR middle-end/64809
1834         * cfgexpand.c (reorder_operands): Skip debug gimples.
1836 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
1838         PR tree-optimization/64277
1839         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
1840         range info when possible to refine estimation.
1842 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1844         PR tree-optimization/64718
1845         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
1846         be a 16bit unsigned integer when n->range is 16.
1847         (bswap_replace): Convert src to that type if necessary for all bswap
1848         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
1849         set in pass_optimize_bswap::execute ().
1851 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
1853         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
1854         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
1855         integer and floating point variants.
1856         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
1858 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
1860         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
1861         for all vector modes.
1863 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
1865         PR bootstrap/64612
1866         * doc/sourcebuild.texi (comdat_group): Document.
1868 2015-01-28  Terry Guo  <terry.guo@arm.com>
1870         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
1872 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
1874         * toplev.c (print_version): Add param "show_global_state", and
1875         only print GGC and plugin information if it is true.
1876         (init_asm_output): Pass in "true" for the new param when calling
1877         print_version.
1878         (process_options): Likewise.
1879         (toplev::main): Likewise.
1880         * toplev.h (print_version): Add new param to decl.
1882 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
1884         PR ipa/60871
1885         PR ipa/64139
1886         * tree.c (lookup_binfo_at_offset): New function.
1887         (get_binfo_at_offset): Use it.
1889 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
1891         PR ipa/64282
1892         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
1893         on vtable being vtable.
1895 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1897         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
1898         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
1899         -mhotpatch= option.
1900         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
1901         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
1902         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
1903         Renamed.
1904         (s390_hotpatch_trampoline_halfwords_max): Renamed.
1905         (s390_hotpatch_hw_max): New name.
1906         (s390_hotpatch_trampoline_halfwords): Renamed.
1907         (s390_hotpatch_hw_before_label): New name.
1908         (get_hotpatch_attribute): Removed.
1909         (s390_hotpatch_hw_after_label): New name.
1910         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
1911         attribute.
1912         (s390_attribute_table): Ditto.
1913         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
1914         (s390_function_num_hotpatch_hw): New name.
1915         Remove special handling of inline functions and hotpatching.
1916         Return number of nops before and after the function label.
1917         (s390_can_inline_p): Removed.
1918         (s390_asm_output_function_label): Emit a configurable number of nops
1919         after the function label.
1920         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
1921         (TARGET_CAN_INLINE_P) Removed.
1922         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
1924 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1925             Jiong Wang  <jiong.wang@arm.com>
1927         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
1928         of scratch reg.
1929         (cb<optab><mode>1): Likewise.
1930         * config/aarch64/iterators.md (bcond): New define_code_attr.
1932 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1934         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
1935         memory accesses.
1937 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1939         * config/s390/s390.c (s390_register_move_cost): Increase costs for
1940         FPR->GPR moves.
1942 2015-01-27  Richard Biener  <rguenther@suse.de>
1944         * tree-vrp.c (update_value_range): Intersect the range with
1945         old recorded SSA name range information.
1947 2015-01-27  Nick Clifton  <nickc@redhat.com>
1949         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
1950         BC, DE and HL registers directly, not via AX.
1951         When decrementing the stack pointer by a large amount, transfer SP
1952         into AX and perform the subtraction there.
1953         (rl78_expand_epilogue): Perform the inverse of the above
1954         enhancements.
1956 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1958         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
1960 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
1961             Yury Gribov  <y.gribov@samsung.com>
1963         PR ubsan/64741
1964         * ubsan.c (ubsan_source_location): Refactor code.
1965         (ubsan_type_descriptor): Update type size. Refactor code.
1967 2015-01-27  Richard Biener  <rguenther@suse.de>
1969         PR tree-optimization/56273
1970         PR tree-optimization/59124
1971         PR tree-optimization/64277
1972         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
1973         from the first VRP pass.
1975 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
1977         PR ipa/64776
1978         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
1979         handle the first argument in the same loop as all the other arguments.
1981         PR rtl-optimization/61058
1982         * jump.c (cleanup_barriers): Update basic block boundaries
1983         if BLOCK_FOR_INSN is non-NULL on PREV.
1985 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
1987         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
1988         bounds narrowing, already instrumented calls and calls to
1989         not instrumentable functions.
1991 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
1993         PR tree-optimization/64807
1994         * wide-int.cc (wi::divmod_internal): Clear
1995         b_dividend[dividend_blocks_needed].
1997 2015-01-26  DJ Delorie  <dj@redhat.com>
1999         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
2000         volatile memory references.
2002 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
2004         PR target/49263
2005         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
2006         remove_insn.
2007         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
2008         shifts if it already fits into K08.
2010 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
2012         PR ipa/64730
2013         * ipa-inline.c (inline_small_functions): Print "unknown" even
2014         if edge->call_stmt is non-NULL, but has builtins or unknown
2015         location.
2017         PR middle-end/64421
2018         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
2019         with asterisk, skip the first character.
2021 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
2023         PR target/64806
2024         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
2025         order change.
2027 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
2029         PR target/64795
2030         * config/i386/i386.md (*movdi_internal): Also check operand 0
2031         to determine TYPE_LEA operand.
2032         (*movsi_internal): Ditto.
2034 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
2036         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
2037         OPTION_MASK_QUAD_MEMORY_ATOMIC.
2039 2015-01-26  Renlin Li  <renlin.li@arm.com>
2041         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
2042         the comment.
2043         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
2044         for higher part.
2046 2015-01-26  Richard Biener  <rguenther@suse.de>
2048         PR middle-end/64764
2049         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
2050         combining two BIT_AND_EXPR predicates.
2052 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
2054         PR bootstrap/64754
2055         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
2057 2015-01-26  Terry Guo  <terry.guo@arm.com>
2059         * config/arm/arm.c (arm_file_start): Update the assignment of
2060         Tag_ABI_HardFP_use.
2062 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
2064         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
2065         pipeline model.
2066         config/arm/arm.md: Include the new Cortex-A57 model.
2067         (generic_sched): Don't use generic_sched when tuning for
2068         Cortex-A57.
2070 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
2071             Uros Bizjak  <ubizjak@gmail.com>
2073         * config/i386/i386.c (get_builtin_code_for_version): Add
2074         support for BMI and BMI2 multiversion functions.
2076 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2078         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
2079         (extract_bit_field): Likewise.
2080         (extract_low_bits): Likewise.
2081         (expand_mult): Likewise.
2082         (expand_mult_highpart_adjust): Likewise.
2084 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
2086         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
2087         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
2088         * config/i386/i386.c (processor_model): Add
2089         M_INTEL_COREI7_BROADWELL.
2090         (arch_names_table): Add "broadwell".
2092 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
2094         PR target/49263
2095         PR target/53987
2096         PR target/64345
2097         PR target/59533
2098         PR target/52933
2099         PR target/54236
2100         PR target/51244
2101         * config/sh/sh-protos.h
2102         (sh_extending_set_of_reg::can_use_as_unextended_reg,
2103         sh_extending_set_of_reg::use_as_unextended_reg,
2104         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
2105         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
2106         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
2107         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
2108         (sh_treg_insns): New class.
2109         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
2110         (scope_counter): New class.
2111         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
2112         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
2113         sh_extending_set_of_reg::can_use_as_unextended_reg,
2114         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
2115         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
2116         sh_split_treg_set_expr): New functions.
2117         (addsubcosts): Handle treg_set_expr.
2118         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
2119         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
2120         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
2121         (sh_insn_operands_modified_between_p): Make non-static.
2122         * config/sh/predicates.md (zero_extend_movu_operand): Allow
2123         simple_mem_operand in addition to displacement_mem_operand.
2124         (zero_extend_operand): Don't allow zero_extend_movu_operand.
2125         (treg_set_expr, treg_set_expr_not_const01,
2126         arith_reg_or_treg_set_expr): New predicates.
2127         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
2128         arith_or_int_operand instead of logical_operand.  Convert to
2129         insn_and_split.  Try to optimize constant operand in splitter.
2130         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
2131         (*tstqi_t_zero): Delete.
2132         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
2133         (tstsi_t_and_not): Delete.
2134         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
2135         Convert to insn_and_split.
2136         (unnamed split, tstsi_t_zero_extract_xor,
2137         tstsi_t_zero_extract_subreg_xor_little,
2138         tstsi_t_zero_extract_subreg_xor_big): Delete.
2139         (*tstsi_t_shift_mask): New insn_and_split.
2140         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
2141         to recombine with surrounding insns when splitting.
2142         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
2143         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
2144         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
2145         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
2146         (*cbranch_div0s: Delete.
2147         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
2148         Try to recombine with surrounding insns when splitting.  Add operand
2149         order variants.
2150         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
2151         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
2152         *addc_r_r_msb, *addc_2r_msb): Delete.
2153         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
2154         order variant.
2155         (*addc_negreg_t): New insn_and_split.
2156         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
2157         Try to recombine with surrounding insns when splitting.
2158         Add operand order variants.
2159         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
2160         insn_and_split patterns.
2161         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
2162         surrounding insns when splitting.
2163         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
2164         (*rotcl): Likewise.  Add zero_extract variant.
2165         (*ashrsi2_31): New insn_and_split.
2166         (*negc): Convert to insn_and_split.  Use treg_set_expr.
2167         (*zero_extend<mode>si2_disp_mem): Update comment.
2168         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
2169         condition.
2170         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
2171         with surrounding insns when splitting.
2172         (any_treg_expr_to_reg): New insn_and_split.
2173         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
2174         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
2175         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
2176         *zero_extract_2): New single bit zero extract patterns.
2177         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
2178         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
2179         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
2180         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
2181         set destination.
2182         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
2183         register_operand for set source.
2185 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
2187         * i386.opt (prefetch_sse): New targetsave.
2188         * i386.c (ix86_function_specific_save): Save prefetch_sse.
2189         (ix86_function_specific_restore): Restore prefetch_sse and initialize
2190         ix86_cost/ix86_tune_cost.
2192 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
2194         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2195         Support the JIT by using 0 as the language type.
2197 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
2199         PR target/64317
2200         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
2201         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
2202         (mark_regno_live, process_bb_lives): Pass new parameter value to
2203         make_hard_regno_born.
2205 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
2207         PR rtl-optimization/63637
2208         PR rtl-optimization/60663
2209         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
2210         if elt->cost is MAX_COST for ASM_OPERANDS.
2211         (find_sets_in_insn): Fix up comment typo.
2212         (cse_insn): Don't set src_volatile for all non-volatile
2213         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
2214         or with "memory" clobber.  Set elt->cost to MAX_COST
2215         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
2216         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
2218 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
2220         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
2221         alternative 1.
2223 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
2225         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
2226         libgcc/config/i386/elf-lib.h.
2228 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
2230         PR driver/64737
2231         * gcc.c (print_configuration): Don't print a blank line at the end
2232         here...
2233         (run_attempt): ... but here unstead.
2235         PR middle-end/64734
2236         * omp-low.c (scan_sharing_clauses): Don't ignore
2237         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
2238         on target data/update constructs.
2240 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2242         PR target/50928
2243         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
2244         (DEBUG_RELOAD): Removed define.
2245         (m32c_limit_reload_class): Enable traces with if DEBUG0.
2246         (m32c_function_arg): Added a type cast.
2247         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
2248         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
2249         * config/m32c/bitops.md (andqi3_16): Likewise.
2250         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
2251         (push_a01_l): Likewise.
2253 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
2255         PR jit/64721
2256         * main.c (main): Construct toplev instances with init_signals=true.
2257         * toplev.c (general_init): Add param "init_signals", and use it to
2258         conditionalize the calls to signal and host_hooks.extra_signals.
2259         (toplev::toplev): Add param "init_signals".
2260         (toplev::main): When invoking general_init, pass m_init_signals
2261         to control whether signal-handlers are installed.
2262         * toplev.h (toplev::toplev): Add param "init_signals".
2263         (toplev::m_init_signals): New field.
2265 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
2267         PR jit/64722
2268         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
2269         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
2270         latter may be affected by the former (e.g. on i686).
2272 2015-01-23  Martin Liska  <mliska@suse.cz>
2274         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
2275         false positive during profiledbootstrap.
2277 2015-01-23  Tom de Vries  <tom@codesourcery.com>
2279         PR libgomp/64672
2280         * lto-opts.c (lto_write_options): Output non-explicit conservative
2281         -fno-openacc.
2282         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
2283         (append_compiler_options): Pass -fopenacc through.
2285 2015-01-23  Tom de Vries  <tom@codesourcery.com>
2287         PR libgomp/64707
2288         * lto-opts.c (lto_write_options): Output non-explicit conservative
2289         -fno-openmp.
2290         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
2291         (append_compiler_options): Pass -fopenmp through.
2293 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
2295         PR debug/64511
2296         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
2297         GTY markup.
2299         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
2300         * diagnostic.def (DK_ICE_NOBT): New kind.
2301         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
2302         like DK_ICE, but never print backtrace.
2303         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
2304         (internal_error_no_backtrace): New function.
2305         * gcc.c (execute): Use internal_error_no_backtrace instead of
2306         internal_error.
2308 2015-01-22  Jeff Law  <law@redhat.com>
2310         PR target/52076
2311         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
2312         improve code density for small immediate to memory case.
2313         (insv): Better handle bitfield assignments when the field is
2314         being set to all ones.
2315         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
2316         operand predicate.
2318 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2319             Jakub Jelinek  <jakub@redhat.com>
2321         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
2322         for !TARGET_LIBC_PROVIDES_SSP version and
2323         -fstack-protector-{all,strong,explicit} otherwise.
2324         * config/freebsd.h (LINK_SSP_SPEC): Handle
2325         -fstack-protector-{strong,explicit}.
2327 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
2328             H.J. Lu  <hongjiu.lu@intel.com>
2330         PR ipa/64694
2331         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
2332         heap.
2334 2015-01-22  Wei Mi  <wmi@google.com>
2336         PR rtl-optimization/64557
2337         * dse.c (record_store): Call get_addr for mem_addr.
2338         (check_mem_read_rtx): Likewise.
2340 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
2342         * fold-const.c (const_binop): Add early return for non-tcc_binary.
2344 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
2346         * toplev.c (init_local_tick): Process the failure when read
2347         fails for random_seed.
2349         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
2350         'pretty_name' to avoid memory overflow.
2352 2015-01-22  Richard Biener  <rguenther@suse.de>
2354         PR middle-end/64728
2355         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
2356         abnormal coalescing on undefined SSA names.
2358 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
2360         PR target/64688
2361         PR target/64477
2362         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
2363         for alternative 3.
2364         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
2366 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
2368         PR middle-end/63325
2369         * fold-const.c (fold_checksum_tree): Don't include value of
2370         expr->decl_with_vis.symtab_node in the checksum.
2372 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2374         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
2376 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2378         PR driver/64690
2379         * gcc.c (insert_comments): New function.
2380         (try_generate_repro): Call it.
2381         (append_text): Removed.
2383 2015-01-22  Richard Biener  <rguenther@suse.de>
2385         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
2386         with IL incompatible options.  Properly honor user optimize
2387         attributes.
2389 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
2391         PR rtl-optimization/64682
2392         * combine.c (distribute_notes): When moving a death note for
2393         a register that is set in the new I2, make sure to put it
2394         before that new I2.
2396 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
2398         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
2399         not TARGET_DEFAULT.
2401 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
2403         PR debug/64511
2404         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
2405         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
2406         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
2408         PR sanitizer/64706
2409         * doc/invoke.texi (-fsanitize=vptr): Document.
2411         PR rtl-optimization/62078
2412         * dse.c: Include cfgcleanup.h.
2413         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
2414         anything call purge_all_dead_edges and cleanup_cfg at the end
2415         of the pass.
2417 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
2419         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
2420         edges.
2422 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2424         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
2425         decl attribute.
2427 2015-01-21  David Sherwood  <david.sherwood@arm.com>
2428             Tejas Belagod <Tejas.Belagod@arm.com>
2430         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
2431         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
2432         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
2433         Removed.
2435 2015-01-21  David Sherwood  <david.sherwood@arm.com>
2436             Tejas Belagod <Tejas.Belagod@arm.com>
2438         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
2439         (aarch64_reverse_mask): New decls.
2440         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
2441         (insn_count): New mode_attr.
2442         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
2443         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
2444         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
2445         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
2446         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
2447         (aarch64_simd_st4): New patterns.
2448         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
2449         (aarch64_reverse_mask): New functions.
2451 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
2453         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
2454         Declare.
2455         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
2456         addressing modes for BE.
2457         (aarch64_print_operand): Add 'R' specifier.
2458         (aarch64_simd_disambiguate_copy): Delete.
2459         (aarch64_simd_emit_reg_reg_move): New function.
2460         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
2461         in define_splits for structural moves.
2462         (mov<mode>): Use less restrictive predicates.
2463         (*aarch64_mov<mode>): Simplify and only allow for LE.
2464         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
2466 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
2468         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
2470 2015-01-21  Richard Henderson  <rth@redhat.com>
2472         PR target/64669
2473         * ccmp.c (used_in_cond_stmt_p): Remove.
2474         (expand_ccmp_expr): Don't use it.
2476 2015-01-21  Nick Clifton  <nickc@redhat.com>
2478         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
2479         PARALLELs.
2481 2015-01-21  Richard Biener  <rguenther@suse.de>
2483         PR middle-end/64313
2484         * tree-core.h (builtin_info, builtin_info_type): Turn from
2485         an object with two arrays into an array of an object with
2486         decl and two flags, implicit_p and declared_p.
2487         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
2488         set_builtin_decl, set_builtin_decl_implicit_p,
2489         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
2490         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
2491         * builtins.c (builtin_info): Adjust.
2492         * gimplify.c (gimplify_addr_expr): References to builtins
2493         that have been declared by the user makes them eligible for
2494         use by the compiler.  Call set_builtin_decl_implicit_p on them.
2496 2015-01-20  Jeff Law  <law@redhat.com>
2498         PR target/59946
2499         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
2500         allow pc-relative addresses in operand predicates or constraints.
2502 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
2504         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
2505         neon on aarch32 processors for stringops.
2507 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2509         PR ipa/63576
2510         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
2512 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2514         PR lto/45375
2515         * ipa-inline.c: Include lto-streamer.h
2516         (report_inline_failed_reason): Output source file differences and
2517         flags on optimization/target node mismatch.
2518         (can_inline_edge_p): Consider caller to be the outer inline function;
2519         be less restrictive about matching opimize and optimize_size attributes.
2520         (inline_account_function_p): Break out from ...
2521         (inline_small_functions): ... here.
2522         * ipa-inline-transform.c (clone_inlined_nodes): Use
2523         inline_account_function_p.
2524         (inline_call): Use optimize attribution; use inline_account_function_p.
2525         (inline_transform): Use opt_for_fn.
2526         * ipa-inline.h (inline_account_function_p): Declare.
2528 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
2530         PR debug/64663
2531         * dwarf2out.c (decl_piece_node): Don't put bitsize into
2532         mode if bitsize <= 0.
2533         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
2534         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
2535         sizes and positions.
2537 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
2539         * config/nios2/nios2.c (nios2_asm_file_end): Implement
2540         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
2541         needed.
2542         (TARGET_ASM_FILE_END): Define.
2544 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2546         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
2547         (struct tune_params): Use the enum.
2548         * arm.c (arm_*_tune): Update.
2549         (arm_option_override): Update.
2551 2015-01-20  Richard Biener  <rguenther@suse.de>
2553         PR ipa/64684
2554         * ipa-reference.c (add_static_var): Inline ...
2555         (analyze_function): ... here after splitting out from ...
2556         (is_proper_for_analysis): ... this.
2558 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
2560         PR target/64149
2561         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
2562         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
2563         replace the conditional with it's true branch.
2564         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
2565         (arm_lra_p): Remove.
2567 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
2569         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
2571 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2573         * config/tilegx/mul-tables.c: Move symtab.h include after
2574         coretypes.h include.
2575         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
2576         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
2577         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
2578         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
2579         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2581 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
2583         PR bootstrap/64676
2584         Revert:
2585         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
2587         PR rtl-optimization/64081
2588         * loop-iv.c (def_pred_latch_p): New function.
2589         (latch_dominating_def): Allow specific cases with non-single
2590         definitions.
2591         (iv_get_reaching_def): Likewise.
2592         (check_complex_exit_p): New function.
2593         (check_simple_exit): Use check_complex_exit_p to allow certain cases
2594         with exits not executing on any iteration.
2596 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2598         PR lto/45375
2599         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
2600         to set branch cost.
2602 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2604         PR lto/45375
2605         * i386.c (gate): Check flag_expensive_optimizations and
2606         optimize_size.
2607         (ix86_option_override_internal): Drop optimize_size condition
2608         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
2609         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
2610         MASK_PREFER_AVX128.
2611         (ix86_avx256_split_vector_move_misalign,
2612         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
2613         * sse.md (all uses of TARGET_PREFER_AVX128): Add
2614         optimize_insn_for_speed_p check.
2616 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
2618         * config/mips/mips.h (FP_ASM_SPEC): New define.
2619         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
2620         instead.
2622 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
2624         PR target/53988
2625         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
2626         nullptr for insn when reaching the first insn.
2627         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
2628         (sh_insn_operands_modified_between_p): Add nullptr check.
2629         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
2630         sign extending mem load if the insn contains any UNSPEC or
2631         UNSPEC_VOLATILE.
2633 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2635         * params.def (inline-unit-growth): Drop to 15%.
2636         * invoke.texi (inline-unit-growth): Document change.
2638 2015-01-19  Martin Liska  <mliska@suse.cz>
2640         PR ipa/64668
2641         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
2642         function for second argument of OBJ_TYPE_REF.
2644 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2646         PR ipa/64218
2647         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2648         whether function is an alias.
2650 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2652         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2653         cases.
2655 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
2657         PR rtl-optimization/64671
2658         * lra-remat.c (operand_to_remat): Don't consider jump and call
2659         insns.
2661 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
2663         * config/rs6000/default64.h: Include rs6000-cpus.def.
2664         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2665         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2666         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2667         and POWER8.
2668         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2669         POWER8.
2670         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2671         pseudo-op to specify assembler dialect.
2673 2015-01-19  Martin Liska  <mliska@suse.cz>
2675         PR ipa/64664
2676         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2677         Handle safe potentially removed nodes during filtering.
2679 2015-01-19  Martin Liska  <mliska@suse.cz>
2681         * doc/extend.texi (no_icf): Add new attribute description.
2682         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2683         where the pass attempts to merge a function with no_icf attribute.
2685 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2687         PR target/64532
2688         * doc/md.texi (ARM Options): Document register constraints.
2690 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
2691             Andrew Pinski  <apinski@cavium.com>
2693         PR target/64304
2694         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
2695         (ashl<mode>3): Don't expand if operands[2] is not constant.
2697 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2699         PR target/64448
2700         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
2701         Match xor-and-xor RTL pattern.
2703 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
2705         PR rtl-optimization/64081
2706         * loop-iv.c (def_pred_latch_p): New function.
2707         (latch_dominating_def): Allow specific cases with non-single
2708         definitions.
2709         (iv_get_reaching_def): Likewise.
2710         (check_complex_exit_p): New function.
2711         (check_simple_exit): Use check_complex_exit_p to allow certain cases
2712         with exits not executing on any iteration.
2714 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
2716         * common.opt (fgraphite): Fix a typo.
2718 2015-01-19  Felix Yang  <felix.yang@huawei.com>
2720         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
2721         pattern.
2722         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
2723         uminp, smax_nanp, smin_nanp): New builtins.
2724         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
2725         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
2726         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
2727         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
2728         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
2729         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
2730         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
2731         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
2732         vpminnms_f32): Rewrite using builtin functions.
2734 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
2736         PR libgomp/64625
2737         * omp-low.c (offload_symbol_decl): Remove variable.
2738         (get_offload_symbol_decl): Remove function.
2739         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
2740         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
2741         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
2742         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
2743         BUILT_IN_GOACC_UPDATE don't pass it at all.
2745 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
2747         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
2748         callers.
2750 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
2752         * ipa-chkp.c (chkp_produce_thunks): Add early param
2753         to split thunks production into two passes.  Keep
2754         'always_inline' function bodies after the first pass.
2755         (pass_data_ipa_chkp_early_produce_thunks): New.
2756         (pass_ipa_chkp_early_produce_thunks): New.
2757         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
2758         chkp_produce_thunks signature.
2759         (make_pass_ipa_chkp_early_produce_thunks): New.
2760         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
2761         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
2762         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
2764 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
2766         * cgraph.c (cgraph_node::dump): Dump profile flags.
2768 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
2770         PR target/64652
2771         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
2772         reg appear first in the parallel.
2774 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
2776         * ipa-reference.c (set_reference_optimization_summary,
2777         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
2778         disabled.
2779         (ignore_module_statics): New static var.
2780         (propagate_bits): If ipa-reference is disabled, do not look into local
2781         properties.
2782         (analyze_function): Disable analysis when ipa_reference is disabled.
2783         (generate_summary): Do not dump when reference is disabled;
2784         collect vars accessed from functions with ipa-reference disabled.
2785         (get_read_write_all_from_node): When ipa-reference is disabled, use the
2786         node flags.
2787         (gate): Enable for LTO.
2788         (ignore_edge_p): New function.
2789         (propagate): Skip functions w/o ipa-reference analysis.
2790         * optc-save-gen.awk: Handle optimize_debug correctly.
2791         * opth-gen.awk: Likewise.
2792         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
2793         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
2794         fira-share-save-slots, fira-share-spill-slots,
2795         fmodulo-sched-allow-regmoves, fpartial-inlining,
2796         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
2797         ftracer, ftree-parallelize-loops, fassociative-math,
2798         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
2799         Optimization
2800         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
2801         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
2802         Optimization.
2803         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
2804         Fix for IPA.
2806 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
2808         PR ipa/64378
2809         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
2810         flag correctly.
2811         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
2813 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
2815         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
2816         Remove duplicate option listings.
2818 2015-01-18  Felix Yang  <felix.yang@huawei.com>
2820         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
2821         (autofdo_source_profile::get_callsite_total_count,
2822         function_instance::get_function_instance_by_decl,
2823         string_table::get_index, string_table::get_index_by_decl,
2824         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
2825         Fix comment typos. Reformatting and minor code rearrangement.
2827 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
2829         * config/rs6000/rs6000.md (probe_stack): Delete.
2830         (probe_stack_address): New.
2832 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
2834         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
2835         to test for 32-bit ABIs, not !TARGET_POWERPC64.
2837 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
2839         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
2840         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
2841         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
2842         snafu.
2843         (rs6000_libcall_value): Use the new function.
2845 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
2847         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
2849 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
2851         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
2852         implement a more precise life analysis for it during backward scan.
2854 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2856         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
2858 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
2860         PR rtl-optimization/52773
2861         * calls.c (emit_library_call_value): When pushing arguments use
2862         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
2863         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
2864         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
2866 2015-01-17  Jeff Law  <law@redhat.com>
2868         PR rtl-optimization/32790
2869         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
2870         not ZERO_EXTEND in SET_DESTs.
2872 2015-01-17  Alan Modra  <amodra@gmail.com>
2874         * cprop.c (do_local_cprop): Revert last change.
2876 2015-01-16  DJ Delorie  <dj@redhat.com>
2877             Nick Clifton  <nickc@redhat.com>
2879         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
2880         (addhi3_real): Likewise.  Fix [HL+0] syntax.
2881         (subqi3_real): Likewise.
2882         (subhi3_real): Likewise.
2883         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
2884         (cbranchhi4_real): Likewise.
2885         (cbranchhi4_real_inverted): Likewise.
2886         (cbranchsi4_real_lt): Likewise.
2887         (cbranchsi4_real_ge): Likewise.
2888         (cbranchsi4_real_ge): Likewise.
2889         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
2890         (sub<mode>3_virt): Likewise.
2891         (cbranchqi4_virt): Likewise.
2892         (cbranchhi4_virt): Likewise.
2893         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
2894         always use '[reg+imm]' even when imm is zero.
2895         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
2896         (rl78_general_operand): New.
2897         (rl78_nonimmediate_operand): New.
2898         (rl78_nonfar_operand): Use them.
2899         (rl78_nonfar_nonimm_operand): Likewise.
2900         (rl78_stack_based_mem): Fix.
2901         * config/rl78/constraints.md (Ibqi): New.
2902         (IBqi): New.
2903         (Wsa): New.
2904         (Wsf): New.
2905         (Cs1): Fix.
2906         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
2907         (iorqi3): Likewise.
2908         (xorqi3): Likewise.
2909         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
2911         * config/rl78/constrains (Qs8): New constraint.
2912         * config/rl78/rl78.c (rl78_flags_already_set): New function.
2913         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
2914         * config/rl78/rl78-real.md (update_Z): New attribute.
2915         Update patterns to set it.
2916         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
2917         shorter compare and branch sequence can be used.
2918         (cbranchhi4_real): Likewise.
2919         (cbranchhi4_real_inverted): Likewise.
2921         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
2922         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
2923         address space.
2924         * config/rl78/rl78.c (rl78_get_name_encoding): New.
2925         (rl78_option_override): Allow -mes0 only if C.
2926         (characterize_address): Support subregs of symbol_refs.
2927         (rl78_addr_space_address_mode): Move.  Add __near.
2928         (rl78_far_p): Likewise.
2929         (rl78_addr_space_pointer_mode): Likewise.
2930         (rl78_as_legitimate_address): Likewise.
2931         (rl78_addr_space_subset_p): Likewise.
2932         (rl78_addr_space_convert): Likewise.
2933         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
2934         symbols with -mes0.
2935         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
2936         addressing.
2937         (rl78_alloc_physical_registers_op1): Change logic to prefer
2938         symbol[BC] addressing.
2939         (frodata_section): New.
2940         (rl78_asm_init_sections): Initialize it.
2941         (rl78_select_section): Put __far readonly symbols in .frodata.
2942         (rl78_make_type_far): New.
2943         (rl78_insert_attributes): Force all readonly symbols to be
2944         __far when -mes0.
2945         (rl78_asm_out_integer): New.
2946         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
2947         * config/rl78/rl78.opt (-mes0): New.
2949         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
2950         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2951         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2952         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
2953         (rl78_saddr_p): New.
2954         (rl78_output_aligned_common): New.
2955         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
2956         (rl78_handle_saddr_attribute): New.
2957         (rl78_handle_naked_attribute): New.
2958         (rl78_attribute_table): Add saddr.
2959         (rl78_print_operand_1): Don't print '!' on saddr operands.
2960         (rl78_print_operand_1): Strip encodings.
2961         (rl78_sfr_p): New.
2962         (rl78_strip_name_encoding): New.
2963         (rl78_attrlist_to_encoding): New.
2964         (rl78_encode_section_info): New.
2965         (rl78_asm_init_sections): New.
2966         (rl78_select_section): New.
2967         (rl78_output_labelref): New.
2968         (rl78_output_aligned_common): New.
2969         (rl78_asm_out_integer): New.
2970         (rl78_asm_ctor_dtor): New.
2971         (rl78_asm_constructor): New.
2972         (rl78_asm_destructor): New.
2974         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
2975         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
2976         (transcode_memory_rtx): Update.
2977         (rl78_expand_epilogue): Use A_REG instead of 0.
2979 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2981         * config/arm/arm-protos.h (struct tune_params): New field
2982         sched_autopref_queue_depth.
2983         * config/arm/arm.c (sched-int.h): Include header.
2984         (arm_first_cycle_multipass_dfa_lookahead_guard,)
2985         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
2986         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
2987         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
2988         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
2989         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
2990         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
2991         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
2992         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
2993         * config/arm/t-arm (arm.o): Update.
2994         * haifa-sched.c (update_insn_after_change): Update.
2995         (rank_for_schedule): Use auto-prefetcher model, if requested.
2996         (autopref_multipass_init): New static function.
2997         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
2998         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
2999         variable for debug dumps.
3000         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
3001         (autopref_multipass_dfa_lookahead_guard): New global function that
3002         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
3003         (init_h_i_d): Update.
3004         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
3005         * sched-int.h (enum autopref_multipass_data_status): New const enum.
3006         (autopref_multipass_data_): Structure for auto-prefetcher data.
3007         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
3008         (struct _haifa_insn_data:autopref_multipass_data): New field.
3009         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
3010         (autopref_multipass_dfa_lookahead_guard): Declare.
3012 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3014         * rtlanal.c (get_base_term): Handle SCRATCH.
3016 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3018         * config/aarch64/aarch64.c
3019         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
3020         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3021         * config/arm/arm.c
3022         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
3023         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3025 2015-01-17  Alan Modra  <amodra@gmail.com>
3027         * cprop.c (do_local_cprop): Disallow replacement of fixed
3028         hard registers.
3030 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3032         PR target/62066
3033         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
3034         early return 0.
3036 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3038         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
3039         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
3041 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3043         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
3044         * config/arm/thumb1.md: ... Here.
3046 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
3048         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
3049         TImode for TARGET_32BIT.
3051 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
3053         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
3054         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
3055         as ...
3056         (rs6000_abi_word_mode): New function.
3058 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
3060         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
3061         instead of UNITS_PER_WORD to describe the size of stack slots.
3063 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
3065         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
3066         as rs6000_promote_function_mode.  Move comment to there.
3067         (rs6000_promote_function_mode): New function.
3069 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
3071         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
3072         -mpowerpc64 is active.
3074 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
3076         PR middle-end/64353
3077         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
3078         virtuals on start.
3080 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
3082         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
3083         introduced in revision 219724.
3085 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3086             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3088         PR target/64263
3089         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
3090         destination is not a GP reg.
3091         (*movdi_aarch64): Likewise.
3093 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
3095         PR target/64623
3096         * config/rs6000/default64.h: Revert ISA change.
3098 2015-01-16  Richard Biener  <rguenther@suse.de>
3100         PR middle-end/64614
3101         * tree-ssa-uninit.c: Include tree-cfg.h.
3102         (MAX_SWITCH_CASES): New define.
3103         (convert_control_dep_chain_into_preds): Handle switch statements.
3104         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
3105         (normalize_one_pred_1): Do not split bit-manipulations.
3106         Record (x & CST).
3108 2015-01-16  Richard Biener  <rguenther@suse.de>
3110         PR tree-optimization/64568
3111         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
3112         complex load rewriting for TARGET_MEM_REFs.
3114 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
3116         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
3118 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
3120         PR target/64149
3121         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
3122         variable.
3123         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
3124         (aarch64_lra_p): Remove.
3126 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
3128         PR target/64363
3129         * ipa-chkp.h (chkp_instrumentable_p): New.
3130         * ipa-chkp.c: Include tree-inline.h.
3131         (chkp_instrumentable_p): New.
3132         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
3133         Fix processing of not instrumentable functions.
3134         (chkp_versioning): Use chkp_instrumentable_p. Warn about
3135         not instrumentable functions.
3136         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
3137         chkp_instrumentable_p.
3138         * tree-inline.h (copy_forbidden): New.
3139         * tree-inline.c (copy_forbidden): Not static anymore.
3141 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3143         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
3144         ptr1, ptr2 unused.
3146 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
3148         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
3149         type OP_OUT to OP_INOUT.
3151 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
3153         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
3154         (high x) y) to y if x and y have the same base.
3156 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
3158         * config/arm/cortex-a57.md: New.
3159         * config/aarch64/aarch64.md: Include it.
3160         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
3161         * config/aarch64/aarch64-tune.md: Regenerate.
3163 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3165         PR target/64015
3166         * ccmp.c (expand_ccmp_next): New function.
3167         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
3168         and compare insn sequence.
3169         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
3170         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
3171         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
3172         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
3173         (*ccmp_ior): Changed to ccmp_ior<mode>.
3174         (cmp<mode>): New pattern.
3175         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
3176         parameters.
3177         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
3179 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
3181         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
3182         _mm256_bsrli_epi128): New.
3183         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
3185 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
3187         * expmed.c (store_bit_field_using_insv): Improve warning message.
3188         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
3190 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
3192         PR rtl-optimization/64011
3193         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
3194         there is partial overflow.
3196 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3198         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
3199         prototype.
3200         (nds32_expand_epilogue_v3pop): Likewise.
3201         * config/nds32/nds32.md (sibcall): Define this for sibling call
3202         optimization.
3203         (sibcall_register): Likewise.
3204         (sibcall_immediate): Likewise.
3205         (sibcall_value): Likewise.
3206         (sibcall_value_register): Likewise.
3207         (sibcall_value_immediate): Likewise.
3208         (sibcall_epilogue): Likewise.
3209         (epilogue): Pass false to indicate this is not a sibcall epilogue.
3210         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
3211         (nds32_expand_epilogue_v3pop): Likewise.
3213 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3215         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
3216         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
3217         (return_internal): New.
3218         (return): Define this named pattern.
3219         (simple_return): Define this named pattern.
3220         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
3221         pattern instead of unspec_volatile_func_return.
3222         (nds32_expand_epilogue_v3pop): Likewise.
3223         (nds32_can_use_return_insn): New function.
3225 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3227         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
3228         * config/nds32/nds32.md (pop25return): New.
3229         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
3230         pop25return pattern.
3232 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3234         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
3235         -mforbid-fp-as-gp, and -mex9 options.
3237 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3239         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
3240         remove -mgp-direct option.
3242 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3244         * doc/invoke.texi (--param early-inlining-insns): Update default value.
3245         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
3247 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3249         * ipa-inline.c (inline_small_functions): Work around hints
3250         cache issue.
3252 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
3254         PR target/59710
3255         * doc/invoke.texi (Option Summary): Document new Nios II
3256         -mgpopt= syntax.
3257         (Nios II Options): Likewise.
3258         * config/nios2/nios2.opt: Add -mgpopt= option support.
3259         Modify existing -mgpopt and -mno-gpopt options to be aliases.
3260         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
3261         * config/nios2/nios2.c (nios2_option_override): Adjust
3262         -mgpopt defaulting.
3263         (nios2_in_small_data_p): Return true for explicit small data
3264         sections even with -G0.
3265         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
3266         option choices.
3268 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3270         PR ipa/64612
3271         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
3272         of comdat locals.
3273         (inline_call): Fix removal of aliases.
3275 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
3277         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
3278         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
3279         * opts.c (common_handle_option): Add -fsanitize=vptr.
3280         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
3281         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
3282         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
3283         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
3284         (ubsan_expand_vptr_ifn): New prototype.
3285         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
3286         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
3287         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
3288         expand_LOOP_VECTORIZED): Make argument nameless, remove
3289         ATTRIBUTE_UNUSED.
3290         (expand_UBSAN_VPTR): New function.
3291         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
3292         in fn spec.
3293         (UBSAN_VPTR): New internal function.
3294         * sanopt.c (tree_map_traits): Renamed to ...
3295         (sanopt_tree_map_traits): ... this.
3296         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
3297         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
3298         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
3299         (maybe_optimize_ubsan_vptr_ifn): New function.
3300         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
3301         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
3302         -fsanitize=vptr.
3303         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
3304         internal calls like pure functions for aliasing, even when they
3305         have other side-effects that prevent making them ECF_PURE.
3306         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
3307         (ubsan_expand_vptr_ifn): New function.
3309 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
3311         PR rtl-optimization/64110
3312         * stmt.c (parse_output_constraint): Process '^' and '$'.
3313         (parse_input_constraint): Ditto.
3314         * lra-constraints.c (process_alt_operands): Process the new
3315         constraints.
3316         * ira-costs.c (record_reg_classes): Process the new constraint
3317         '^'.
3318         * genoutput.c (indep_constraints): Add '^' and '$'.
3319         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
3320         * doc/md.texi: Add description of the new constraints.
3322 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
3323             Bernd Schmidt  <bernds@codesourcery.com>
3324             Cesar Philippidis  <cesar@codesourcery.com>
3325             James Norris  <jnorris@codesourcery.com>
3326             Tom de Vries  <tom@codesourcery.com>
3327             Ilmir Usmanov  <i.usmanov@samsung.com>
3328             Dmitry Bocharnikov  <dmitry.b@samsung.com>
3329             Evgeny Gavrin  <e.gavrin@samsung.com>
3330             Jakub Jelinek  <jakub@redhat.com>
3332         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
3333         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
3334         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
3335         New function types.
3336         * builtins.c: Include "gomp-constants.h".
3337         (expand_builtin_acc_on_device): New function.
3338         (expand_builtin, is_inexpensive_builtin): Handle
3339         BUILT_IN_ACC_ON_DEVICE.
3340         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
3341         New macros.
3342         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
3343         flag_openmp.
3344         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
3345         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
3346         i386/intelmic-offload.h.
3347         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
3348         to libgomp and its dependencies.
3349         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
3350         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
3351         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
3352         * config/ia64/hpux.h (LIB_SPEC): Likewise.
3353         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3354         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3355         * doc/generic.texi: Update for OpenACC changes.
3356         * doc/gimple.texi: Likewise.
3357         * doc/invoke.texi: Likewise.
3358         * doc/sourcebuild.texi: Likewise.
3359         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
3360         GF_OMP_FOR_KIND_OACC_LOOP.
3361         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
3362         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
3363         GF_OMP_TARGET_KIND_OACC_UPDATE,
3364         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3365         Dump more data.
3366         * gimple.c: Update comments for OpenACC changes.
3367         * gimple.def: Likewise.
3368         * gimple.h: Likewise.
3369         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
3370         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3371         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
3372         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3373         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
3374         appropriate place.
3375         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
3376         * gimplify.c: Include "gomp-constants.h".
3377         Update comments for OpenACC changes.
3378         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
3379         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
3380         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3381         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3382         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3383         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3384         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
3385         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3386         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3387         OMP_CLAUSE_SEQ.
3388         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
3389         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
3390         OMP_CLAUSE_SET_MAP_KIND.
3391         (gimplify_oacc_cache): New function.
3392         (gimplify_omp_for): Handle OACC_LOOP.
3393         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
3394         OACC_DATA.
3395         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
3396         OACC_EXIT_DATA, OACC_UPDATE.
3397         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
3398         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
3399         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
3400         (gimplify_body): Consider flag_openacc next to flag_openmp.
3401         * lto-streamer-out.c: Include "gomp-constants.h".
3402         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
3403         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
3404         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
3405         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
3406         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
3407         (BUILT_IN_ACC_ON_DEVICE): New builtins.
3408         * omp-low.c: Include "gomp-constants.h".
3409         Update comments for OpenACC changes.
3410         (struct omp_context): Add reduction_map, gwv_below, gwv_this
3411         members.
3412         (extract_omp_for_data, use_pointer_for_field, install_var_field)
3413         (new_omp_context, delete_omp_context, scan_sharing_clauses)
3414         (create_omp_child_function, scan_omp_for, scan_omp_target)
3415         (check_omp_nesting_restrictions, lower_reduction_clauses)
3416         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
3417         Update for OpenACC changes.
3418         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
3419         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
3420         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
3421         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3422         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
3423         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
3424         OMP_CLAUSE_MAP_*.
3425         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3426         Handle GF_OMP_FOR_KIND_OACC_LOOP.
3427         (expand_omp_target, lower_omp_target): Handle
3428         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3429         GF_OMP_TARGET_KIND_OACC_UPDATE,
3430         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
3431         GF_OMP_TARGET_KIND_OACC_DATA.
3432         (pass_expand_omp::execute, execute_lower_omp)
3433         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
3434         flag_openmp.
3435         (offload_symbol_decl): New variable.
3436         (oacc_get_reduction_array_id, oacc_max_threads)
3437         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
3438         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
3439         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
3440         (oacc_gimple_assign, oacc_initialize_reduction_data)
3441         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
3442         functions.
3443         (is_targetreg_ctx): Remove function.
3444         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
3445         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
3446         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3447         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
3448         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
3449         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
3450         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
3451         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
3452         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
3453         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
3454         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
3455         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
3456         * tree-core.h: Update comments for OpenACC changes.
3457         (enum omp_clause_map_kind): Remove.
3458         (struct tree_omp_clause): Change type of map_kind member from enum
3459         omp_clause_map_kind to unsigned char.
3460         * tree-inline.c: Update comments for OpenACC changes.
3461         * tree-nested.c: Likewise.  Include "gomp-constants.h".
3462         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
3463         (convert_tramp_reference_stmt, convert_gimple_call): Update for
3464         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
3465         OMP_CLAUSE_SET_MAP_KIND.
3466         * tree-pretty-print.c: Include "gomp-constants.h".
3467         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
3468         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
3469         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
3470         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
3471         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3472         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
3473         instead of OMP_CLAUSE_MAP_*.
3474         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
3475         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
3476         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3477         * tree-streamer-in.c: Include "gomp-constants.h".
3478         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
3479         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
3480         * tree-streamer-out.c: Include "gomp-constants.h".
3481         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
3482         OMP_CLAUSE_MAP_*.
3483         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
3484         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
3485         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
3486         * tree.c (omp_clause_num_ops): Update accordingly.
3487         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
3488         Likewise.
3489         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
3490         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
3491         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
3492         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
3493         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
3494         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
3495         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
3496         (OMP_CLAUSE_SET_MAP_KIND): New macro.
3497         * varpool.c (varpool_node::get_create): Consider flag_openacc next
3498         to flag_openmp.
3499         * config/i386/intelmic-offload.h: New file.
3500         * config/nvptx/offload.h: Likewise.
3502 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3504         * explow.h: Remove duplicate contents.
3505         * dojump.h: Likewise.
3507 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
3509         * arm.c (arm_xgene_tune): Add default initializer for instruction
3510         fusion.
3512 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3514         PR ipa/64068
3515         PR ipa/64559
3516         * ipa.c (symbol_table::remove_unreachable_nodes):
3517         Do not put abstract origins into boundary.
3519 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
3521         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
3522         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
3524 2015-01-15  Steve Ellcey  <sellcey@mips.com>
3526         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
3527         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
3528         builtins.def, and chkp-builtins.def.
3530 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
3532         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
3533         ISA 2.7 (POWER8).
3535 2015-01-15  Richard Biener  <rguenther@suse.de>
3537         PR tree-optimization/61743
3538         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
3539         information on PHIs for some simple cases.
3541 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3543         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
3544         Include xgene1.md.
3545         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
3546         * config/arm/arm-cores.def (xgene1): New entry.
3547         * config/arm/arm-tables.opt: Regenerate.
3548         * config/arm/arm-tune.md: Regenerate.
3549         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
3551 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
3553         * tree-if-conv.c: Include hash-map.h.
3554         (aggressive_if_conv): New variable.
3555         (fold_build_cond_expr): Add simplification of non-zero condition.
3556         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
3557         destination block is not always executed.
3558         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
3559         than two predecessors if AGGRESSIVE_IF_CONV is true.
3560         (if_convertible_stmt_p): Fix commentary.
3561         (all_preds_critical_p): New function.
3562         (has_pred_critical_p): New function.
3563         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
3564         BB can have more than two predecessors and all incoming edges can be
3565         critical.
3566         (predicate_bbs): Skip predication for loop exit block, use build2_loc
3567         to compute predicate for true edge.
3568         (find_phi_replacement_condition): Delete this function.
3569         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
3570         Allow interchange PHI arguments if EXTENDED is false.
3571         Change check that block containing reduction statement candidate
3572         is predecessor of phi-block since phi may have more than two arguments.
3573         (phi_args_hash_traits): New helper structure.
3574         (struct phi_args_hash_traits): New type.
3575         (phi_args_hash_traits::hash): New function.
3576         (phi_args_hash_traits::equal_keys): New function.
3577         (gen_phi_arg_condition): New function.
3578         (predicate_scalar_phi): Add handling of phi nodes with more than two
3579         arguments, delete COND and TRUE_BB arguments, insert body of
3580         find_phi_replacement_condition to predicate ordinary phi nodes.
3581         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
3582         delete call of find_phi_replacement_condition and invoke
3583         predicate_scalar_phi with two arguments.
3584         (insert_gimplified_predicates): Add assert that non-predicated block
3585         don't have statements to insert.
3586         (ifcvt_split_critical_edges): New function.
3587         (ifcvt_split_def_stmt): Likewise.
3588         (ifcvt_walk_pattern_tree): Likewise.
3589         (stmt_is_root_of_bool_pattern): Likewise.
3590         (ifcvt_repair_bool_pattern): Likewise.
3591         (ifcvt_local_dce): Likewise.
3592         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
3593         is copy of inner or outer loop force_vectorize field, invoke
3594         ifcvt_split_critical_edges, ifcvt_local_dce and
3595         ifcvt_repair_bool_pattern for aggressive if-conversion.
3597 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
3599         * config/aarch64/aarch64.md: Include xgene1.md.
3600         * config/aarch64/xgene1.md: New file.
3602 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3604         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
3605         xgene1 (APM XGene-1) core definition.
3606         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
3607         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
3608         * doc/invoke.texi: Document -mcpu=xgene1.
3610 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3612         * dojump.h: New header file.
3613         * explow.h: Likewise.
3614         * expr.h: Remove includes.
3615         Move expmed.c prototypes to expmed.h.
3616         Move dojump.c prototypes to dojump.h.
3617         Move alias.c prototypes to alias.h.
3618         Move explow.c prototypes to explow.h.
3619         Move calls.c prototypes to calls.h.
3620         Move emit-rtl.c prototypes to emit-rtl.h.
3621         Move varasm.c prototypes to varasm.h.
3622         Move stmt.c prototypes to stmt.h.
3623         (saved_pending_stack_adjust): Move to dojump.h.
3624         (adjust_address): Move to explow.h.
3625         (adjust_address_nv): Move to emit-rtl.h.
3626         (adjust_bitfield_address): Likewise.
3627         (adjust_bitfield_address_size): Likewise.
3628         (adjust_bitfield_address_nv): Likewise.
3629         (adjust_automodify_address_nv): Likewise.
3630         * explow.c (expr_size): Move to expr.c.
3631         (int_expr_size): Likewise.
3632         (tree_expr_size): Likewise.
3633         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3634         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3635         * genemit.c (main): Generate includes statistics.h, real.h,
3636         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
3637         stmt.h.
3638         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
3639         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
3640         explow.h, emit-rtl.h, stmt.h.
3641         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
3642         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
3643         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
3644         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
3645         emit-rtl.h, varasm.h, stmt.h.
3646         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3647         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3648         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3649         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3650         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3651         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3652         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3653         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3654         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3655         tm.h tree.h varasm.h vec.h wide-int.h.
3656         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3657         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3658         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3659         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
3660         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3661         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3662         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
3663         * loop-iv.c: Likewise.
3664         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3665         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
3666         statistics.h stmt.h tree.h varasm.h wide-int.h.
3667         * lra-constraints.c: Likewise.
3668         * lra-eliminations.c: Likewise.
3669         * lra-lives.c: Likewise.
3670         * lra-remat.c: Likewise.
3671         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3672         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3673         statistics.h stmt.h tree.h varasm.h wide-int.h.
3674         * hw-doloop.c: Likewise.
3675         * ira-color.c: Likewise.
3676         * ira-emit.c: Likewise.
3677         * loop-doloop.c: Likewise.
3678         * loop-invariant.c: Likewise.
3679         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3680         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3681         statistics.h stmt.h tree.h varasm.h wide-int.h.
3682         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3683         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3684         statistics.h stmt.h tree.h varasm.h wide-int.h.
3685         * combine-stack-adj.c: Likewise.
3686         * cse.c: Likewise.
3687         * ddg.c: Likewise.
3688         * ifcvt.c: Likewise.
3689         * ira-costs.c: Likewise.
3690         * jump.c: Likewise.
3691         * lra-coalesce.c: Likewise.
3692         * lra-spills.c: Likewise.
3693         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3694         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
3695         stmt.h varasm.h wide-int.h.
3696         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3697         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3698         varasm.h.
3699         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
3700         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
3701         statistics.h stmt.h varasm.h wide-int.h.
3702         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
3703         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
3704         varasm.h wide-int.h.
3705         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
3706         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3707         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
3708         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
3709         statistics.h stmt.h.
3710         * config/tilepro/tilepro.c: Likewise.
3711         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
3712         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
3713         * config/pdp11/pdp11.c: Likewise.
3714         * config/xtensa/xtensa.c: Likewise.
3715         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
3716         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3717         varasm.h.
3718         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3719         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3720         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
3721         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3722         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3723         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
3724         * rtl-chkp.c: Likewise.
3725         * tree-chkp-opt.c: Likewise.
3726         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
3727         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3728         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
3729         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3730         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3731         statistics.h stmt.h.
3732         * tree-vect-data-refs.c: Likewise.
3733         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
3734         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3735         rtl.h statistics.h stmt.h varasm.h.
3736         * internal-fn.c: Likewise.
3737         * ipa-icf-gimple.c: Likewise.
3738         * lto-section-out.c: Likewise.
3739         * tree-data-ref.c: Likewise.
3740         * tree-nested.c: Likewise.
3741         * tree-outof-ssa.c: Likewise.
3742         * tree-predcom.c: Likewise.
3743         * tree-pretty-print.c: Likewise.
3744         * tree-scalar-evolution.c: Likewise.
3745         * tree-ssa-strlen.c: Likewise.
3746         * tree-vect-loop.c: Likewise.
3747         * tree-vect-patterns.c: Likewise.
3748         * tree-vect-slp.c: Likewise.
3749         * tree-vect-stmts.c: Likewise.
3750         * tsan.c: Likewise.
3751         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3752         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
3753         stmt.h.
3754         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
3755         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3756         statistics.h stmt.h varasm.h.
3757         * loop-unroll.c: Likewise.
3758         * ubsan.c: Likewise.
3759         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
3760         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
3761         stmt.h varasm.h.
3762         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3763         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
3764         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
3765         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3766         statistics.h stmt.h.
3767         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
3768         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3769         statistics.h stmt.h varasm.h.
3770         * gimple-match-head.c: Likewise.
3771         * lto-cgraph.c: Likewise.
3772         * lto-section-in.c: Likewise.
3773         * lto-streamer-in.c: Likewise.
3774         * lto-streamer-out.c: Likewise.
3775         * tree-affine.c: Likewise.
3776         * tree-cfg.c: Likewise.
3777         * tree-cfgcleanup.c: Likewise.
3778         * tree-if-conv.c: Likewise.
3779         * tree-into-ssa.c: Likewise.
3780         * tree-ssa-alias.c: Likewise.
3781         * tree-ssa-copyrename.c: Likewise.
3782         * tree-ssa-dse.c: Likewise.
3783         * tree-ssa-forwprop.c: Likewise.
3784         * tree-ssa-live.c: Likewise.
3785         * tree-ssa-math-opts.c: Likewise.
3786         * tree-ssa-pre.c: Likewise.
3787         * tree-ssa-sccvn.c: Likewise.
3788         * tree-tailcall.c: Likewise.
3789         * tree-vect-generic.c: Likewise.
3790         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3791         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
3792         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3793         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
3794         * varasm.c: Likewise.
3795         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3796         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
3797         varasm.h.
3798         * init-regs.c: Likewise.
3799         * ira.c: Likewise.
3800         * omp-low.c: Likewise.
3801         * stack-ptr-mod.c: Likewise.
3802         * tree-ssa-reassoc.c: Likewise.
3803         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3804         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
3805         varasm.h.
3806         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3807         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
3808         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3809         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
3810         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3811         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
3812         * tree-ssa-phiopt.c: Likewise.
3813         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3814         fixed-value.h hashtab.h real.h statistics.h stmt.h.
3815         * config/fr30/fr30.c: Likewise.
3816         * config/frv/frv.c: Likewise.
3817         * expr.c: Likewise.
3818         * final.c: Likewise.
3819         * optabs.c: Likewise.
3820         * passes.c: Likewise.
3821         * simplify-rtx.c: Likewise.
3822         * stmt.c: Likewise.
3823         * toplev.c: Likewise.
3824         * var-tracking.c: Likewise.
3825         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3826         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3827         * lower-subreg.c: Likewise.
3828         * postreload-gcse.c: Likewise.
3829         * ree.c: Likewise.
3830         * reginfo.c: Likewise.
3831         * store-motion.c: Likewise.
3832         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3833         fixed-value.h hashtab.h real.h stmt.h varasm.h.
3834         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3835         fixed-value.h hashtab.h statistics.h stmt.h.
3836         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3837         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3838         * except.c: Likewise.
3839         * explow.c: Likewise.
3840         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3841         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
3842         varasm.h.
3843         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3844         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
3845         * tree-ssa-structalias.c: Likewise.
3846         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3847         fixed-value.h insn-config.h real.h statistics.h.
3848         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3849         fixed-value.h insn-config.h real.h statistics.h stmt.h.
3850         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3851         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3852         * cfgbuild.c: Likewise.
3853         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3854         fixed-value.h real.h rtl.h statistics.h stmt.h.
3855         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3856         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3857         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3858         fixed-value.h real.h statistics.h stmt.h.
3859         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3860         fixed-value.h real.h statistics.h stmt.h varasm.h.
3861         * cprop.c: Likewise.
3862         * modulo-sched.c: Likewise.
3863         * postreload.c: Likewise.
3864         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3865         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
3866         statistics.h stmt.h varasm.h.
3867         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
3868         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3869         rtl.h statistics.h stmt.h varasm.h.
3870         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
3871         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
3872         varasm.h.
3873         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3874         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
3875         varasm.h.
3876         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
3877         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
3878         varasm.h.
3879         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
3880         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3881         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3882         function.h real.h statistics.h stmt.h varasm.h.
3883         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3884         insn-config.h real.h statistics.h stmt.h.
3885         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3886         statistics.h stmt.h.
3887         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
3888         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
3889         statistics.h stmt.h varasm.h.
3890         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
3891         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
3892         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3893         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
3894         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
3895         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3896         statistics.h stmt.h varasm.h.
3897         * ipa-polymorphic-call.c: Likewise.
3898         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
3899         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3900         statistics.h stmt.h.
3901         * config/c6x/c6x.c: Likewise.
3902         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
3903         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3904         statistics.h stmt.h varasm.h.
3905         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
3906         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
3907         stmt.h varasm.h.
3908         * ipa-split.c: Likewise.
3909         * tree-eh.c: Likewise.
3910         * tree-ssa-dce.c: Likewise.
3911         * tree-ssa-loop-niter.c: Likewise.
3912         * tree-vrp.c: Likewise.
3913         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
3914         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
3915         stmt.h.
3916         * config/nds32/nds32-fp-as-gp.c: Likewise.
3917         * config/nds32/nds32-intrinsic.c: Likewise.
3918         * config/nds32/nds32-isr.c: Likewise.
3919         * config/nds32/nds32-md-auxiliary.c: Likewise.
3920         * config/nds32/nds32-memory-manipulation.c: Likewise.
3921         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3922         * config/nds32/nds32-predicates.c: Likewise.
3923         * config/nds32/nds32.c: Likewise.
3924         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
3925         fixed-value.h hashtab.h real.h statistics.h.
3926         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
3927         fixed-value.h hashtab.h real.h statistics.h stmt.h.
3928         * config/arm/arm.c: Likewise.
3929         * config/avr/avr.c: Likewise.
3930         * config/bfin/bfin.c: Likewise.
3931         * config/h8300/h8300.c: Likewise.
3932         * config/i386/i386.c: Likewise.
3933         * config/ia64/ia64.c: Likewise.
3934         * config/iq2000/iq2000.c: Likewise.
3935         * config/m32c/m32c.c: Likewise.
3936         * config/m32r/m32r.c: Likewise.
3937         * config/m68k/m68k.c: Likewise.
3938         * config/mcore/mcore.c: Likewise.
3939         * config/mep/mep.c: Likewise.
3940         * config/mips/mips.c: Likewise.
3941         * config/mn10300/mn10300.c: Likewise.
3942         * config/moxie/moxie.c: Likewise.
3943         * config/pa/pa.c: Likewise.
3944         * config/rl78/rl78.c: Likewise.
3945         * config/rx/rx.c: Likewise.
3946         * config/s390/s390.c: Likewise.
3947         * config/sh/sh.c: Likewise.
3948         * config/sparc/sparc.c: Likewise.
3949         * config/spu/spu.c: Likewise.
3950         * config/stormy16/stormy16.c: Likewise.
3951         * config/v850/v850.c: Likewise.
3952         * config/vax/vax.c: Likewise.
3953         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
3954         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3955         * config/msp430/msp430.c: Likewise.
3956         * predict.c: Likewise.
3957         * value-prof.c: Likewise.
3958         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
3959         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
3960         * config/microblaze/microblaze.c: Likewise.
3961         * config/nios2/nios2.c: Likewise.
3962         * config/rs6000/rs6000.c: Likewise.
3963         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3964         insn-config.h real.h rtl.h statistics.h stmt.h.
3965         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3966         insn-config.h real.h statistics.h stmt.h.
3967         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
3968         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3969         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
3970         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3971         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
3972         fixed-value.h real.h statistics.h stmt.h.
3973         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
3974         fixed-value.h statistics.h stmt.h.
3975         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
3976         stmt.h.
3978 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
3980         * gengtype.c (create_user_defined_type): Workaround
3981         -Wmaybe-uninitialized false positives.
3982         * cse.c (fold_rtx): Likewise.
3983         * loop-invariant.c (gain_for_invariant): Likewise.
3985 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
3987         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
3988         set the memory attributes in all cases but clear MEM_EXPR if need be.
3990 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
3992         PR tree-optimization/64434
3993         * cfgexpand.c (reorder_operands): New function.
3994         (expand_gimple_basic_block): Insert call of reorder_operands if
3995         optimized is true.
3997 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
3999         * config/mips/micromips.md (*swp): Remove explicit parallel.
4000         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
4001         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
4002         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
4003         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
4004         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
4005         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
4006         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
4007         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
4008         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
4009         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
4010         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
4011         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
4012         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
4013         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
4014         (mips_wrdsp): Likewise.
4015         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
4016         parallel.
4017         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
4018         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
4019         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
4020         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
4021         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
4022         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
4023         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
4024         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
4025         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
4027 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4029         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
4030         (mips_print_operand): Support 'y' to print exact log2 in decimal
4031         of a const_int.
4032         * config/mips/mips.h (ISA_HAS_LSA): New define.
4033         (ISA_HAS_DLSA): Likewise.
4034         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
4035         * config/mips/predicates.md (const_immlsa_operand): New predicate.
4037 2015-01-15  Martin Liska  <mliska@suse.cz>
4039         PR target/64377
4040         * optc-save-gen.awk: Add support for array types.
4042 2015-01-15  Richard Biener  <rguenther@suse.de>
4044         PR middle-end/64365
4045         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
4046         for MEM_REF access functions with the same base can never partially
4047         overlap.
4049 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
4051         * common.opt: New option -fstack-protector-explicit.
4052         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
4053         (stack_protect_decl_phase): Handle stack_protect attribute for
4054         explicit stack protection requests.
4055         (expand_used_vars): Similarly.
4056         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
4057         * doc/extend.texi: Add documentation for "stack_protect" attribute.
4058         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
4060 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
4062         PR target/53988
4063         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
4064         reg-reg copies.
4065         (sh_extending_set_of_reg): New struct.
4066         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
4067         sh_remove_reg_dead_or_unused_notes): New Declarations.
4068         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
4069         sh_find_extending_set_of_reg, sh_split_tst_subregs,
4070         sh_extending_set_of_reg::use_as_extended_reg): New functions.
4071         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
4072         convert to insn_and_split and use new function sh_split_tst_subregs.
4074 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
4076         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
4077         option.
4078         (Optimization Options): Move -fuse-ld documentation to...
4079         (Link Options): ...here.
4081 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4083         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
4084         offsets.
4085         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
4086         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
4087         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
4088         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
4089         instead of ZR for the memory operand of LL/SC.
4090         (compare_and_swap_12, sync_add<mode>): Likewise.
4091         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
4092         (sync_new_<optab>_12, sync_nand_12): Likewise.
4093         (sync_old_nand_12, sync_new_nand_12): Likewise.
4094         (sync_sub<mode>, sync_old_add<mode>): Likewise.
4095         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
4096         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
4097         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
4098         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
4099         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
4100         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
4101         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
4102         * doc/md.texi (ZC): Update description.
4104 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
4106         * builtins.c (expand_builtin_atomic_exchange): Remove error when
4107         memory model is CONSUME.
4108         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
4109         expand_builtin_atomic_store): Change invalid memory model errors to
4110         warnings.
4111         (expand_builtin_atomic_clear): Change invalid model errors to warnings
4112         and issue warning for CONSUME.
4114 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
4116         * lto-cgraph: Update function comments for
4117         lto_symtab_encoder_encode_*.
4119 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
4121         * Makefile.in (site.exp): Do not set ENABLE_LTO.
4123 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
4125         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
4126         * lto-cgraph.c (select_what_to_stream): Remove argument, use
4127         lto_stream_offload_p instead.
4128         * lto-streamer.h (select_what_to_stream): Remove argument.
4129         * passes.c (ipa_write_summaries): Likewise.
4130         * tree-pass.h (ipa_write_summaries): Likewise.
4132 2015-01-14  Richard Biener  <rguenther@suse.de>
4134         PR tree-optimization/59354
4135         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
4136         groups larger than the slp group size as having gaps.
4138 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
4140         PR middle-end/59448
4141         * builtins.c (get_memmodel): Promote consume to acquire always.
4143 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
4145         PR target/64386
4146         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
4147         V32HImode.
4149 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
4151         PR target/64393
4152         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
4153         Enable AVX512BW.
4154         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
4155         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
4156         AVX512VBMI, as it implies AVX512BW.
4158 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
4160         PR target/64387
4161         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
4162         (vec_unpacks_hi_v16sf): Ditto.
4164 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4166         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
4167         is not available.
4169 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4171         * doc/invoke.texi (mapcs): Mention deprecation.
4172         (mapcs-frame): Likewise.
4174 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4176         PR target/64453
4177         * config/arm/arm.c (callee_saved_reg_p): Define.
4178         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
4179         register is callee saved instead of !call_used_regs[reg].
4180         (thumb1_compute_save_reg_mask): Likewise.
4182 2015-01-14  Hale Wang  <hale.wang@arm.com>
4184         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
4185         Cortex-M7.
4187 2015-01-14  Richard Biener  <rguenther@suse.de>
4189         PR lto/64415
4190         * tree-inline.c (insert_debug_decl_map): Check destination
4191         function MAY_HAVE_DEBUG_STMTS.
4192         (insert_init_debug_bind): Likewise.
4193         (insert_init_stmt): Remove redundant check.
4194         (remap_gimple_stmt): Drop debug stmts if the destination
4195         function has var-tracking assignments disabled.
4197 2015-01-14  Martin Liska  <mliska@suse.cz>
4199         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
4200         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
4202 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4204         PR target/64460
4205         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
4206         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
4208 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4210         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
4211         level from an ARCH; do not inject the default.
4212         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
4213         MIPS_ISA_LEVEL_SPEC.
4214         (MIPS_ISA_NAN2008_SPEC): Update comment.
4215         (BASE_DRIVER_SELF_SPECS): Likewise.
4216         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
4217         MIPS_DEFAULT_ISA_LEVEL_SPEC.
4218         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
4219         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
4220         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
4222 2015-01-14  Richard Biener  <rguenther@suse.de>
4224         PR tree-optimization/64493
4225         PR tree-optimization/64495
4226         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
4227         assign the proper vectorized PHI to the inner loop exit PHIs.
4229 2015-01-14  Joey Ye  <joey.ye@arm.com>
4231         * config/arm/arm.c (arm_compute_save_reg_mask):
4232         Do not save lr in case of tail call.
4233         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
4235 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
4237         * tree-vrp.c (check_array_ref): Emit more warnings
4238         for warn_array_bounds >= 2.
4239         * common.opt: New option -Warray-bounds=.
4240         * doc/invoke.texi: Document -Warray-bounds=.
4242 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
4244         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
4245         (mforbid-fp-as-gp): Remove.
4246         (mex9): Remove.
4247         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
4248         (nds32_symbol_load_store_p): Remove.
4249         (nds32_fp_as_gp_check_available): Clean up implementation.
4250         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
4251         cases.
4252         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
4253         fp-as-gp and ex9 cases.
4255 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
4257         * tree-profile.c (init_ic_make_global_vars): Drop workaround
4258         for bintuils bug 14342.
4259         (init_ic_make_global_vars): Likewise.
4260         (gimple_init_edge_profiler): Likewise.
4261         (gimple_gen_ic_func_profiler): Likewise.
4263 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4265         * ipa-inline.c (inline_small_functions): Swap the operands in
4266         enum.
4268 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
4270         PR ipa/64481
4271         * ipa-inline-analysis.c (node_growth_cache): Remove.
4272         (initialize_growth_caches): Do not initialize it.
4273         (free_growth_caches): Do not free it.
4274         (do_estimate_growth): Rename to ...
4275         (estimate_growth): ... this one; drop growth cache code.
4276         (growth_likely_positive): Always go the heuristics way.
4277         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
4278         (reset_edge_caches): Do not reset node growth.
4279         (heap_edge_removal_hook): Do not maintain cache.
4280         (inline_small_functions): Likewise; strenghten sanity check.
4281         (ipa_inline): Do not maintain caches.
4282         * ipa-inline.h (node_growth_cache): Remove.
4283         (do_estimate_growth): Remove to ...
4284         (estimate_growth): this one; remove inline version.
4285         (reset_node_growth_cache): Remove.
4287 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
4289         PR ipa/64565
4290         * ipa-inline.c (inline_small_functions): Update callee keys after
4291         resolving speculation
4292         (inline_small_functions): Always check monotonicity of the queue.
4294 2015-01-13  Marek Polacek  <polacek@redhat.com>
4296         PR middle-end/64391
4297         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
4299 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
4301         PR rtl-optimization/64286
4302         * ree.c (combine_reaching_defs): Move part of comment earlier,
4303         remove !SCALAR_INT_MODE_P check.
4304         (add_removable_extension): Don't add vector mode
4305         extensions if all uses of the source register aren't the same
4306         vector extensions.
4308 2015-01-13  Renlin Li  <renlin.li@arm.com>
4310         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
4311         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
4313 2015-01-13  Martin Liska  <mliska@suse.cz>
4315         * ipa-icf.c (sem_function::equals_private): Call new functions
4316         cl_target_option_print_diff and cl_optimization_print_diff.
4317         * optc-save-gen.awk (cl_target_option_print_diff): New function.
4318         (cl_optimization_print_diff): Likewise.
4319         * opth-gen.awk: Likewise.
4321 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
4323         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
4324         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
4325         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
4326         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
4327         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
4328         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
4330 2015-01-13  Andrew Pinski   <apinski@cavium.com>
4332         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
4333         instead of src mode.
4335 2015-01-13  Richard Biener  <rguenther@suse.de>
4337         PR lto/64373
4338         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
4339         DECL_CONTEXT.
4341 2015-01-13  Andrew Pinski   <apinski@cavium.com>
4343         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
4344         volatile mems.
4345         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4347 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
4349         PR middle-end/63974
4350         * cfgexpand.c (expand_computed_goto): Don't call
4351         convert_memory_address here.
4353 2015-01-13  Richard Biener  <rguenther@suse.de>
4355         PR tree-optimization/64406
4356         * tree-loop-distibution.c (pass_loop_distribution::execute):
4357         Reset the SCEV hashtable if we distributed anything.
4359 2015-01-13  Richard Biener  <rguenther@suse.de>
4361         PR tree-optimization/64404
4362         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
4363         SLP types for CSEd loads.
4365 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4367         PR tree-optimization/64436
4368         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
4369         merge of two symbolic numbers for a bitwise OR to ...
4370         (perform_symbolic_merge): This. Also fix computation of the range and
4371         end of the symbolic number corresponding to the result of a bitwise OR.
4373 2015-01-13  Richard Biener  <rguenther@suse.de>
4375         PR tree-optimization/64568
4376         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
4377         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
4379 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4381         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
4382         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
4384 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4386         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
4387         target-specific symbol_ref flag.
4388         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
4389         resides in rodata section.
4390         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
4391         (nds32_encode_section_info): New function.
4393 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4395         * config/nds32/nds32.md (call): Use pseudo instruction bal which
4396         clobbers TA_REGNUM if large code model is specified.
4397         (call_register): Likewise.
4398         (call_immediate): Likewise.
4399         (call_value): Likewise.
4400         (call_value_register): Likewise.
4401         (call_value_immediate): Likewise.
4403 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4405         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
4406         (TARGET_CMODEL_MEDIUM): New macro.
4407         (TARGET_CMODEL_LARGE): New macro.
4408         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
4409         code model setting in assembly code.
4411 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4413         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
4414         Remove MASK_GP_DIRECT flag.
4415         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
4416         one of the multilib default options.
4417         * config/nds32/nds32.opt (mgp-direct): Remove.
4418         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
4419         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
4421 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4423         * config/nds32/nds32.opt (mcmodel): Add new option.
4424         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
4425         to describe code model.
4427 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
4429         PR target/64479
4430         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
4432 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4434         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
4435         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
4436         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
4437         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
4438         __builtin_sh_set_fpscr.
4440 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4442         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
4443         after a funtion name just to indicate it is a function.
4444         ([-fsanitize-undefined-trap-on-error]): Likewise.
4445         ([-fdbg-cnt=]): Likewise.
4446         ([-mmemcpy]): Likewise.
4447         ([-mflush-func]): Likewise.
4448         ([-msynci]): Likewise.
4450 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4452         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
4453         example.
4455 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
4457         PR tree-optimization/64563
4458         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
4459         instead of != VR_VARYING.
4461         PR target/64513
4462         * config/i386/i386.c (ix86_expand_prologue): Add
4463         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
4465         PR tree-optimization/64454
4466         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
4467         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
4468         for signed or [0, op1 - 1] for unsigned modulo.
4469         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4470         even if op1 does not satisfy integer_pow2p.
4472         PR other/64370
4473         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
4475 2015-01-12  Jeff Law  <law@redhat.com>
4477         PR target/64461
4478         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
4479         (trunchiqi2, truncsihi2): Similarly.
4481         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
4482         rather than calling F.
4484 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4486         * tsan.c (instrument_expr): Use force_gimple_operand.
4487         Use may_be_nonaddressable_p instead of is_gimple_addressable.
4489 2015-01-12  Richard Biener  <rguenther@suse.de>
4491         PR tree-optimization/64530
4492         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
4493         back dr1.
4495 2015-01-12  Richard Biener  <rguenther@suse.de>
4497         PR middle-end/64357
4498         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
4499         latches properly.
4501 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4503         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
4504         Cortex-A17 tuning parameters.
4505         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
4507 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4509         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
4510         * config/arm/arm.c (arm_macro_fusion_p): New function.
4511         (arm_macro_fusion_pair_p): Likewise.
4512         (TARGET_SCHED_MACRO_FUSION_P): Define.
4513         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
4514         (ARM_FUSE_NOTHING): Likewise.
4515         (ARM_FUSE_MOVW_MOVT): Likewise.
4516         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4517         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4518         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4519         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4520         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4521         arm_cortex_a5_tune): Specify fuseable_ops value.
4523 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4525         PR bootstrap/64561
4526         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
4527         test for PIE with copy reloc.
4528         * configure: Regenerated.
4530 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4532         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
4533         in gen_rtx_REG.
4534         (arm_tls_descseq_addr): Likewise.
4535         (arm_gen_movmemqi): Likewise.
4536         (arm_expand_epilogue_apcs_frame): Likewise.
4537         (arm_expand_epilogue): Likewise.
4538         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
4539         in gen_rtx_REG.
4541 2015-01-12  Martin Liska  <mliska@suse.cz>
4543         PR ipa/64550
4544         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
4545         volatility for correct operands.
4547 2015-01-12  Martin Liska  <mliska@suse.cz>
4549         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4550         that a function is not leaf.
4551         (sem_function::compare_polymorphic_p): Likewise.
4553 2015-01-12  Martin Liska  <mliska@suse.cz>
4555         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4556         that a function is not leaf.
4557         (sem_function::compare_polymorphic_p): Likewise.
4559 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4561         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
4562         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
4563         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
4564         fold-const.h, tree-check.h.
4566 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
4568         PR ipa/63967
4569         PR ipa/64425
4570         * ipa-inline.c (compute_uninlined_call_time,
4571         compute_inlined_call_time): Use counts for extra precision when
4572         needed possible.
4573         (big_speedup_p): Fix formating.
4574         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
4575         (relative_time_benefit): Remove.
4576         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
4577         merge guessed and read profile paths.
4578         (inline_small_functions): Count only !optimize_size functions into
4579         initial size; be more lax about sanity check when profile is used;
4580         be sure to update inlined function profile when profile is read.
4582 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
4584         PR ipa/63470
4585         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
4586         cost when edge becomes direct.
4587         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
4588         is resolved or when introducing new speculation.
4590 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
4592         PR ipa/64551
4593         PR ipa/64552
4594         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
4595         '||' to fix typo issue.
4597         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
4598         accept and return NULL.
4600 2015-01-12  Martin Liska  <mliska@suse.cz>
4602         * cgraph.c (cgraph_edge::remove_callee): Move function to header
4603         file for being inlined.
4604         (cgraph_set_edge_callee): Delete.
4605         (cgraph_edge::redirect_callee): Move function to header file
4606         for being inlined.
4607         (cgraph_edge::make_direct): Use new function.
4608         (cgraph_edge::dump_edge_flags): New function created from
4609         static dump_edge_flags function.
4610         (cgraph_node::dump): Use new function.
4611         (cgraph_edge::verify_count_and_frequency): New function created
4612         from verify_edge_count_and_frequency.
4613         (cgraph_edge::verify_corresponds_to_fndecl): New function created
4614         from verify_edge_corresponds_to_fndecl.
4615         (verify_edge_corresponds_to_fndecl): Delete.
4616         (cgraph_node::verify_node): Use new function.
4617         * cgraph.h (cgraph_edge::set_callee): New function.
4618         (cgraph_edge::dump_edge_flags): Likewise.
4619         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
4621 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
4623         * ipa-utils.c (estimate_function_body_sizes): Do not
4624         free node params when called late with early=true.
4626 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
4628         * doc/md.texi (Instruction Patterns): Rewrite text for
4629         clarity.
4630         (Example): Likewise.
4632 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
4634         * doc/invoke.texi (Option Summary): Break long lines.
4635         [(-fdiagnostics-color)]: Put long literal in @smallexample
4636         instead of inline.
4637         [(-fsanitize-recover)]: Likewise.
4638         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
4639         [(-ffast-math)]: Likewise.
4640         [(--param max-inline-insns-recursive)]: Likewise.
4641         [(--param max-inline-recursive-depth)]: Likewise.
4642         [(-mno-text-section-literals)]: Likewise.
4644 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
4646         * doc/install.texi: Update for libgomp being renamed from "GNU
4647         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4648         Runtime Library".
4649         * doc/sourcebuild.texi: Likewise.
4651 2015-01-10  Anthony Green  <green@moxielogic.com>
4653         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4654         mul.x availability for moxiebox configuration.
4656 2015-01-09  Anthony Green  <green@moxielogic.com>
4658         * config/moxie/moxie.md: Tabify assembly output.
4660 2015-01-09  Anthony Green  <green@moxielogic.com>
4662         * config/moxie/moxie.md (CC_REG): Correct register definition.
4664 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
4666         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4667         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
4668         of log files.
4670 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4672         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4674 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
4675             Jakub Jelinek  <jakub@redhat.com>
4677         PR middle-end/64412
4678         * lto-streamer.h (lto_stream_offload_p): New declaration.
4679         * lto-streamer.c (lto_stream_offload_p): New variable.
4680         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4681         at the same time as section_name_prefix.
4682         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4683         if lto_stream_offload_p.
4684         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4685         stream TREE_TARGET_OPTION if lto_stream_offload_p.
4686         (write_ts_function_decl_tree_pointers): Don't
4687         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4688         * tree-streamer-in.c (unpack_value_fields): Don't stream
4689         TREE_TARGET_OPTION in if ACCEL_COMPILER.
4690         (lto_input_ts_function_decl_tree_pointers): Don't stream
4691         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
4692         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
4693         instead of section_name_prefix string comparisons.
4695 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
4697         PR rtl-optimization/64536
4698         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
4699         tablejumps.
4701 2015-01-09  Michael Collison  <michael.collison@linaro.org>
4703         PR tree-optimization/64322
4704         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
4705         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
4707 2015-01-09  Tom de Vries  <tom@codesourcery.com>
4709         PR rtl-optimization/64539
4710         * regcprop.c (kill_clobbered_values): Factor out of ...
4711         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
4712         instead of note_stores with kill_clobbered_value.
4714 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4716          * ginclude/unwind-arm-common.h: Revert previous commit.
4718 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4720         * config.gcc (arm*-*-freebsd*): New configuration.
4721         * config/arm/freebsd.h: New file.
4722         * config.host: Add extra components for arm*-*-freebsd*.
4723         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
4724         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
4726 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4728         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4729         for -mcpu=e6500.
4730         * config/rs6000/t-rtems: Add e6500 multilibs.
4732 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4734         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
4735         MPC8540.
4737 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4739         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
4740         MULTILIB_EXCEPTIONS.
4742 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4744         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
4745         MULTILIB_EXCEPTIONS.
4747 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4749         * config/arm/t-rtems-eabi: Rename to...
4750         * config/arm/t-rtems: ...this.
4751         * config/arm/rtems-eabi.h: Rename to...
4752         * config/arm/rtems.h: ...this.
4753         * config.gcc (arm*-*-rtems*): Reflect changes above.
4755 2015-01-09  Richard Biener  <rguenther@suse.de>
4757         PR tree-optimization/64410
4758         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
4759         on the LHS.
4760         (execute_update_addresses_taken): Deal with that.
4761         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
4762         loads/stores for complex variables.
4764 2015-01-09  Martin Liska  <mliska@suse.cz>
4766         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
4767         name comparison.
4768         (func_checker::compare_memory_operand): New function.
4769         (func_checker::compare_operand): Split case to newly
4770         added functions.
4771         (func_checker::compare_cst_or_decl): New function.
4772         (func_checker::compare_gimple_call): Identify
4773         memory operands.
4774         (func_checker::compare_gimple_assign): Likewise.
4775         * ipa-icf-gimple.h: New function.
4777 2015-01-09  Martin Liska  <mliska@suse.cz>
4779         PR ipa/64503
4780         * sreal.c (sreal::dump): Change unsigned format to signed for
4781         m_exp value.
4782         (sreal::to_double): Replace exp2 with scalbln.
4784 2015-01-09  Martin Liska  <mliska@suse.cz>
4786         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
4787         * ipa-icf.c (sem_function::equals_private): Add support for target and
4788         (sem_item_optimizer::merge_classes): Remove redundant function
4789         optimization flags comparison.
4790         * tree.h (target_opts_for_fn): New function.
4792 2015-01-09  Tom de Vries  <tom@codesourcery.com>
4794         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
4796 2015-01-09  Kito Cheng  <kito@0xlab.org>
4798         PR rtl-optimization/64348
4799         * lra-constraints.c (split_reg): Fix caller-save store/restore
4800         instruction generation.
4802 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
4804         PR gcov-profile/61790
4805         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
4806         long long.  Fallback to int64_t if host doesn't have long long and
4807         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
4809 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
4811         PR tree-optimization/63989
4812         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
4813         from 1000 to 10000.
4814         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
4815         (get_stridx): If we don't have a record for certain SSA_NAME,
4816         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
4817         constant offset, call get_stridx_plus_constant.
4818         (get_stridx_plus_constant): New function.
4819         (zero_length_string): Don't use get_stridx here.
4821         PR target/55023
4822         PR middle-end/64388
4823         * dse.c (struct insn_info): Mention frame_read set also
4824         before reload for tail calls on some targets.
4825         (scan_insn): Revert 2014-12-22 change.  Set frame_read
4826         also before reload for tail calls if
4827         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
4828         instead of add_non_frame_wild_read for non-const/memset
4829         tail calls after reload.
4831 2015-01-08  Jason Merrill  <jason@redhat.com>
4833         * ubsan.c (do_ubsan_in_current_function): New.
4834         (pass_ubsan::gate): Use it.
4835         * ubsan.h: Declare it.
4836         * convert.c (convert_to_integer): Use it.
4838 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
4840         PR target/64338
4841         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
4842         compare_code when it is unconditionally overwritten afterwards.
4843         Use ix86_reverse_condition instead of reverse_condition.  Don't
4844         change code if *reverse_condition* returned UNKNOWN and don't
4845         swap ct/cf and negate diff in that case.
4847 2015-01-08  Mike Stump  <mikestump@comcast.net>
4849         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
4850         (pass_tsan_O0::gate): Likewise.
4851         * extend.texi (Function Attributes): Add no_sanitize_thread
4852         documentation.
4854 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
4856         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
4857         for registering builtins.
4858         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
4859         add -fopenmp to the argv_obstack used when invoking
4860         compile_for_target.
4862         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
4863         add "-m32" or "-m64" to argv_obstack.
4864         (generate_host_descr_file): Likewise, when invoking host_compiler.
4865         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
4866         ld.
4868 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
4870         * config/sh/sh-mem.cc: Use constant as second operand when emitting
4871         tstsi_t insns.
4873 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
4875         PR target/55212
4876         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
4877         constant load if constant operand fits into I08.
4879 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
4881         PR sanitizer/64336
4882         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
4883         and TREE_THIS_VOLATILE for MEM_REFs.
4884         (build5_stat): Fix up initialization of TREE_READONLY and
4885         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
4887 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
4889         PR target/64533
4890         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
4891         of r for the second alternative of the destination operand.
4893 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
4895         PR target/36557
4896         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
4898 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4900         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
4901         keywords.
4902         ([-fivar-visibility], [-fvisibility]): Likewise.
4904 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4906         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
4907         the file where @code, @command, etc is more appropriate.
4909 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
4911         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
4912         of -mrecip= documentation.
4914 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4916         PR target/64505
4917         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
4918         correct reload handler if -m32 -mpowerpc64 is used.
4920 2015-01-06  Tom de Vries  <tom@codesourcery.com>
4922         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
4924 2015-01-08  Christian Bruel  <christian.bruel@st.com>
4926         PR target/64507
4927         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
4929 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4931         PR tree-optimization/63259
4932         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
4933         if optab exists for 16bit byteswap.
4935 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
4937         * opts.c (common_handle_option): Add support for
4938         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
4939         * doc/invoke.texi: Document -fno-sanitize=all,
4940         -f{,no-}sanitize-recover=all.  Document that
4941         -fsanitize=float-cast-overflow is not enabled
4942         by -fsanitize=undefined.  Fix up documentation
4943         of -f{,no-}sanitize-recover.
4945 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
4947         * config.gcc: Add Visium support.
4948         * configure.ac: Likewise.
4949         * configure: Regenerate.
4950         * doc/extend.texi (interrupt attribute): Add Visium.
4951         * doc/invoke.texi: Document Visium options.
4952         * doc/install.texi: Document Visium target.
4953         * doc/md.texi: Document Visium constraints.
4954         * common/config/visium: New directory.
4955         * config/visium: Likewise.
4957 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
4959         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
4960         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
4962 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
4964         * combine.c (combine_validate_cost): Do not count the cost of a
4965         split I2 twice.  Do not display it twice in the dump, either.
4967 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
4969         Revert parts of r219199.
4970         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
4971         <inttypes.h>.
4972         ([-Wtraditional]): Restore markup on <limits.h>.
4974 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
4976         PR c++/31397
4977         * doc/invoke.texi: Document -Wsuggest-override.
4979 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
4981         PR rtl-optimization/64287
4982         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
4983         (process_options): Disable flag_ipa_ra if profiling.
4985 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
4987         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
4989 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
4991         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
4992         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
4993         put under #if TARGET_LOOPS guard.
4995 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
4997         * config/i386/i386.c (output_387_binary_op): Use std::swap.
4999 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
5001         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
5002         * rtl.h (refers_to_regno_p): Add overload.
5003         * cse.c: Use it.
5004         * bt-load.c: Likewise.
5005         * combine.c: Likewise.
5006         * df-scan.c: Likewise.
5007         * sched-deps.c: Likewise.
5008         * config/s390/s390.c: Likewise.
5009         * config/m32r/m32r.c: Likewise.
5010         * config/rs6000/spe.md: Likewise.
5011         * config/rs6000/rs6000.c: Likewise.
5012         * config/pa/pa.c: Likewise.
5013         * config/stormy16/stormy16.c: Likewise.
5014         * config/cris/cris.c: Likewise.
5015         * config/arc/arc.md: Likewise.
5016         * config/arc/arc.c: Likewise.
5017         * config/sh/sh.md: Likewise.
5018         * config/sh/sh.c: Likewise.
5019         * config/frv/frv.c: Likewise.
5021 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
5023         PR sanitizer/64265
5024         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
5025         call as cleanup of the whole body.
5026         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
5027         * tsan.c (replace_func_exit): New function.
5028         (instrument_func_exit): Moved earlier.
5029         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
5030         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
5031         been found.
5032         (tsan_pass): Don't call instrument_func_exit.
5033         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
5034         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
5035         inlining.
5037         PR sanitizer/64344
5038         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
5039         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
5040         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
5041         if the result is integer_zerop, return NULL_TREE.
5042         * convert.c (convert_to_integer): Pass expr as ARG.
5044         PR tree-optimization/64465
5045         * tree-inline.c (redirect_all_calls): During inlining
5046         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
5047         changed the stmt to a non-throwing call.
5049 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5051         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
5052         etc markup throughout the file.
5054 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5056         Enable experimental TSAN support for Ada.
5057         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
5059 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
5061         PR tree-optimization/64494
5062         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
5063         clear SSA_NAME_ANTI_RANGE_P flag.
5065 2015-01-05  Marek Polacek  <polacek@redhat.com>
5067         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
5069 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
5071         Update copyright years.
5073         * gcc.c (process_command): Update copyright notice dates.
5074         * gcov-dump.c: Ditto.
5075         * gcov.c: Ditto.
5076         * doc/cpp.texi: Bump @copying's copyright year.
5077         * doc/cppinternals.texi: Ditto.
5078         * doc/gcc.texi: Ditto.
5079         * doc/gccint.texi: Ditto.
5080         * doc/gcov.texi: Ditto.
5081         * doc/install.texi: Ditto.
5082         * doc/invoke.texi: Ditto.
5084         * auto-profile.c, auto-profile.h: Fix up Copyright line.
5086 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
5088         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
5089         verb tense, etc.
5090         ([-fvtable-verify], [-fvtv-debug]): Likewise.
5091         ([-Wabi]): Likewise.
5092         ([-fmessage-length]): Likewise.
5093         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
5094         ([-Wno-discarded-qualifiers]): Likewise.
5095         ([-Wnodiscarded-array-qualifiers]): Likewise.
5096         ([-Wno-virtual-move-assign]): Likewise.
5097         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
5098         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
5099         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
5100         ([-fsanitize-undefined-trap-on-error]): Likewise.
5101         ([-floop-interchange]): Likewise.
5102         ([-ftree-coalesce-inlined-vars]): Likewise.
5103         ([-fvect-cost-model]): Likewise.
5104         ([-flto]): Likewise.
5105         ([--param]): Likewise.
5106         (Spec Files): Likewise.
5107         ([-mstrict-align]): Likewise.
5108         ([-mfix-cortex-a53-835769]): Likewise.
5109         ([-march], [-mtune]): Likewise.
5110         ([-mpic-register]): Likewise.
5111         ([-munaligned-access]): Likewise.
5112         ([-msp8]): Likewise.
5113         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
5114         (AVR Built-in Macros): Likewise.
5115         ([-mpreferred-stack-boundary]): Likewise.
5116         ([-mtune-crtl]): Likewise.
5117         ([-mashf]): Likewise.
5118         ([-mmcu=]): Likewise.
5119         ([-minrt]): Likewise.
5120         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
5121         ([-mupper-regs]): Likewise.
5122         ([-matomic-model]): Likewise.
5123         ([-mdiv]): Likewise.
5124         ([-mzdcbranch]): Likewise.
5125         ([-mdisable-callt]): Likewise.
5126         ([-msoft-float]): Likewise.
5127         ([-m8byte-align]): Likewise.
5128         ([-fstack-reuse]): Likewise.
5130 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5132         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
5133         Fix markup, light copy-editing.
5134         ([-fauto-profile]): Rewrite to fix formatting and content
5135         problems.
5137 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5139         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
5140         Copy-edit description.
5141         ([-fisolate-erroneous-paths-attribute]): Likewise.
5142         * common.opt (fisolate-erroneous-paths-dereference):
5143         Copy-edit description.
5144         (fisolate-erroneous-paths-attribute): Likewise.
5146 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5148         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
5149         tidy grammar.
5151 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5153         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
5154         ([-fvtv-debug]): Likewise.
5155         ([-Wc++-compat]): Likewise.
5156         ([-Wc++11-compat]): Likewise.
5157         ([-Wc++14-compat]): Likewise.
5158         ([-Wno-sized-deallocation]): Likewise.
5159         ([-femit-class-debug-always]): Likewise.
5160         ([-femit-struct-debug-detailed]): Likewise.
5161         ([-fno-keep-inline-dllexport]): Likewise.
5162         ([-fira-algorithm]): Likewise.
5163         ([-fira-region]): Likewise.
5164         ([-flra-remat]): Likewise.
5165         ([-fipa-ra]): Likewise.
5166         ([-fhoist-adjacent-loads]): Likewise.
5167         ([-fisolate-erroneous-paths-dereference]): Likewise.
5168         ([-fisolate-erroneous-paths-attribute]): Likewise.
5169         ([-ftree-switch-conversion]): Likewise.
5170         ([-ftree-tail-merge]): Likewise.
5171         ([-ftree-loop-if-convert]): Likewise.
5172         ([-ftree-loop-if-convert-stores]): Likewise.
5173         ([-ftree-loop-distribution]): Likewise.
5174         ([-ftree-loop-distribute-patterns]): Likewise.
5175         ([-flto-compression-level]): Likewise.
5176         ([-flto-report]): Likewise.
5177         ([-flto-report-wpa]): Likewise.
5178         ([-fuse-linker-plugin]): Likewise.
5179         ([-mfix-cortex-a53-835769]): Likewise.
5180         ([-mno-fix-cortex-a53-835769]): Likewise.
5181         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
5182         explicit listing; add a note to the discussion indicating they
5183         exist.  Reorder table to group similar options.  Add missing
5184         @opindex entries.  Add @need commands throughout the table to
5185         allow it to be split across multiple pages.
5186         ([-m8bit-idiv]): Fix @opindex.
5187         ([-mavx256-split-unaligned-load]): Likewise.
5188         ([-mavx256-split-unaligned-store]): Likewise.
5189         ([-mstack-protector-guard]): Likewise.
5190         ([-mcpu=]): Likewise.
5191         ([-mcpu]): Likewise.
5192         ([-mpointer-size=]): Likewise.
5194 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
5196         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
5197         instead of `m' constraint.  Likewise for unnamed movb comparison
5198         patterns using reg_before_reload_operand predicate.
5199         * config/pa/predicates.md (reg_before_reload_operand): Tighten
5200         predicate to reject register index and LO_SUM DLT memory forms
5201         after reload.
5203 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
5205         * doc/invoke.texi (Option Summary): Fix spelling of
5206         -fdevirtualize-at-ltrans.
5207         ([-fdevirtualize]): Fix markup.
5208         ([-fdevirtualize-speculatively]): Fix typo.
5209         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
5210         implementor-speaky.
5211         * common.opt (fdevirtualize-at-ltrans): Likewise.
5212         * ipa-devirt.c: Fix typos in comments throughout the file.
5213         (ipa_devirt): Fix typos in format strings for dump output.
5215 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
5217         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
5218         discussion of defaults, light copy-editing.
5220 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5222         * tsan.c (instrument_expr): corrected previous checkin.
5224 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5226         Instrument bit field and unaligned accesses for TSAN.
5227         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
5228         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
5229         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
5230         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
5231         unaligned memory regions.
5233 2015-01-01  Anthony Green  <green@moxielogic.com>
5235         * config/moxie/predicates.md (moxie_general_movsrc_operand):
5236         Restrict move source register offsets to 16 bits.
5238 Copyright (C) 2015 Free Software Foundation, Inc.
5240 Copying and distribution of this file, with or without modification,
5241 are permitted in any medium without royalty provided the copyright
5242 notice and this notice are preserved.