Copy shadow argument conditionally (PR hsa/70337)
[official-gcc.git] / gcc / ChangeLog
blob9a1eb039d880cf6ce6bc303ef32e5df3c22503bf
1 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
3         PR tree-optimization/70354
4         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
5         oprnd0 is wider than oprnd1 and there is a cast from the wider
6         type to oprnd1, mask it with the mask of the narrower type.
8         PR target/70321
9         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
10         Optimize TARGET_STV splitters, if high or low word of last argument
11         is 0 or -1.
13 2016-03-22  Jeff Law  <law@redhat.com>
15         PR target/70232
16         tree-ssa-threadbackward.c
17         (fsm_find_control_statement_thread_paths): Correctly distinguish
18         between old style jump threads vs FSM jump threads.
20 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
22         PR target/70302
23         * config/i386/i386.c (scalar_chain::convert_op): Support
24         uninitialized register usage case.
26 2016-03-22  Richard Biener  <rguenther@suse.de>
28         PR middle-end/70251
29         * genmatch.c (gen_transform): Adjust last parameter to a three-state
30         int...
31         (capture::gen_transform): ... to change behavior when substituting
32         a condition into cond or not-cond expr context.
33         (dt_simplify::gen_1): Adjust.
34         * gimple-match-head.c: Include gimplify.h for unshare_expr.
35         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
36         last change and instead change to
37         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
38         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
40 2016-03-22  Anthony Green  <green@moxielogic.com>
42         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
43         issue for moxiebox targets.
44         (CC1PLUS_SPEC): Ditto.
46 2016-03-22  Richard Biener  <rguenther@suse.de>
48         PR middle-end/70333
49         * fold-const.c (extract_muldiv_1): Properly perform multiplication
50         in the wide type.
52 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
54         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
56 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
58         PR target/70325
59         * config/i386/i386.c (def_builtin): Handle
60         OPTION_MASK_ISA_AVX512VL to be and-ed with other
61         bits.
62         (const struct builtin_description bdesc_special_args[]):
63         Remove duplicate ISA bits.
65 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
67         PR target/70329
68         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
69         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
70         in a way that works also for AVX512BW.
72         PR target/70300
73         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
74         instead of source if operands[1] is xmm16 and above and
75         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
76         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
78         PR c++/70295
79         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
80         on assign if (*from_p) is a comparison, set it to
81         TREE_NO_WARNING (*from_p).
83 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
85         PR middle-end/70326
86         * lra.c (restore_scratches): Ignore deleted insns.
88 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
89             Jakub Jelinek  <jakub@redhat.com>
91         PR tree-optimization/70317
92         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
93         to HONOR_NANS.
95 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
97         PR target/70327
98         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
99         of ix86_expand_move.
100         (movoi): Ditto.
101         (movti): Use general_operand for operand 1 predicate.
103 2016-03-21  Martin Liska  <mliska@suse.cz>
105         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
106         insns.
107         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
109 2016-03-21  Martin Liska  <mliska@suse.cz>
111         PR ipa/70306
112         * ipa-icf.c (sem_function::parse): Skip static
113         constructors and destructors.
115 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
117         PR target/70296
118         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
119         function-like macro, peek following token(s) if it is followed
120         by CPP_OPEN_PAREN token with optional padding in between, and
121         if not, don't treat it like a macro.
123 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
124             Alexander Monakov  <amonakov@ispras.ru>
126         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
127         for the stabs debug format.
129 2016-03-21  Richard Biener  <rguenther@suse.de>
131         PR tree-optimization/70310
132         * tree-vect-generic.c (expand_vector_condition): Fold the built
133         condition.
135 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
137         PR target/70293
138         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
139         Block third alternative for AVX-512VL target,
141 2016-03-21  Martin Liska  <mliska@suse.cz>
143         PR hsa/70234
144         * hsa-brig.c (emit_function_directives): Mark unemitted
145         global variables for emission.
146         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
147         (get_symbol_for_decl): Likewise.
148         * hsa.h (struct hsa_symbol): New flag.
150 2016-03-21  Richard Biener  <rguenther@suse.de>
152         PR tree-optimization/70288
153         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
154         we do not estimate unsimplified all-constant conditionals or
155         switches as optimized away.
157 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
159         PR rtl-optimization/69102
160         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
161         when we have a readonly dependency context.
163 2016-03-18  Jeff Law  <law@redhat.com>
165         PR rtl-optimization/70263
166         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
167         (update_equiv_regs): When trying to move a store to after the insn
168         that sets the source of the store, make sure the store occurs after
169         the insn that sets the source of the store.  When successful note
170         the REG_EQUIV note created in the dump file.
172 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
173             Bernd Schmidt  <bschmidt@redhat.com>
175         * doc/extend.texi: Document more potential problems with basic asms.
177 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
179         PR rtl-optimization/70278
180         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
181         VOIDmode.
183 2016-03-18  Jason Merrill  <jason@redhat.com>
185         * calls.c (load_register_parameters): Fix zero size sibcall logic.
187 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
189         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
190         values to 128b regs.
192 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
194         PR tree-optimization/70252
195         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
196         boolean vector has a proper number of elements.
197         (supportable_narrowing_operation): Likewise.
199 2016-03-18  Tom de Vries  <tom@codesourcery.com>
201         PR ipa/70269
202         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
204 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
206         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
207         instead of replace_rtx for DEBUG_INSNs.
209 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
211         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
212         load type reservations.
214 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
216         PR target/70188
217         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
218         define_constraint for "Q" and "T" constraints.
220 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
222         Tweak the pipeline model for Exynos M1
224         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
225         model.
227 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
229         PR c/70264
230         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
231         where one or both locations aren't within a line_map.
233 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
235         PR driver/70192
236         * opts.c (finish_options): Don't set flag_pie to the default if
237         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
238         if it is -1.
240 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
242         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
243         true as ALL_REGS argument to replace_rtx.
245 2016-03-17  Richard Biener  <rguenther@suse.de>
247         PR debug/70271
248         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
249         last.
251 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
253         PR target/70245
254         * rtl.h (replace_rtx): Add ALL_REGS argument.
255         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
256         equality and assert mode is the same, instead of just rtx pointer
257         equality.
258         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
259         true as ALL_REGS argument to replace_rtx.
261 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
263         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
264         for boolean vector with vector mode only.
265         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
267 2016-03-17  Nick Clifton  <nickc@redhat.com>
269         PR target/70162
270         * config/rx/rx.c (rx_print_integer): Print negative constants in
271         decimal.
273 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
275         PR target/70261
276         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
278 2016-03-16  Richard Henderson  <rth@redhat.com>
279             Richard Biener  <rguenth@suse.de>
281         PR middle-end/70240
282         PR middle-end/68215
283         PR tree-opt/68714
284         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
285         first operand as is_gimple_condexpr.
287         PR middle-end/70240
288         PR middle-end/68215
289         Revert r231575
290         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
291         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
292         Do not gimplify the result.
293         (do_unop): Adjust call to tree_vec_extract.
294         (do_binop): Likewise.
295         (do_compare): Likewise.
296         (do_plus_minus): Likewise.
297         (do_negate): Likewise.
298         (expand_vector_condition): Likewise.
299         (do_cond): Likewise.
301 2016-03-16  Richard Henderson  <rth@redhat.com>
303         PR target/70048
304         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
305         (aarch64_classify_address): Use it.
306         (aarch64_legitimize_address): Force all subexpressions of PLUS
307         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
309 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
310             Richard Biener  <rguenth@suse.de>
312         PR target/70245
313         * rtlanal.c (replace_rtx): For REG, if from is a REG,
314         return to even if only REGNO is equal, and assert
315         mode is the same.
317 2016-03-11  Jeff Law  <law@redhat.com>
319         PR rtl-optimization/70224
320         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
322 2016-03-16  Richard Henderson  <rth@redhat.com>
324         PR middle-end/70199
325         * function.h (struct function): Add has_forced_label_in_static.
326         * gimplify.c (force_labels_r): Set it.
327         * lto-streamer-in.c (input_struct_function_base): Read it.
328         * lto-streamer-out.c (output_struct_function_base): Write it.
329         * tree-inline.c (has_label_address_in_static_1): Remove.
330         (copy_forbidden): Remove fndecl parameter; test
331         has_forced_label_in_static.
332         (inline_forbidden_p): Update call to copy_forbidden.
333         (tree_versionable_function_p): Likewise.
334         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
335         (chkp_versioning): Likewise.
336         * tree-inline.h (copy_forbidden): Update decl.
338 2016-03-16  Marek Polacek  <polacek@redhat.com>
340         PR c/70093
341         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
342         function being thunked if the result type doesn't have fixed size.
343         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
344         doesn't have fixed size.
346 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
348         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
349         reporting malformed loop nest.
351 2016-03-16  Tom de Vries  <tom@codesourcery.com>
353         PR lto/70187
354         * ipa-devirt.c (possible_polymorphic_call_targets): Move
355         nodes.length () == 1 test to before first nodes[0] access.
357 2016-03-16  Tom de Vries  <tom@codesourcery.com>
359         PR tree-optimization/68715
360         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
361         single_pred_p test.
363 2016-03-16  Tom de Vries  <tom@codesourcery.com>
365         PR tree-optimization/68809
366         * graphite-scop-detection.c (same_close_phi_node): Test if result types
367         are the same.
369 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
370             Sandra Loosemore  <sandra@codesourcery.com>
372         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
373         on leaf attribute. Mention ELF interposition problems.
375 2016-03-16  Alan Modra  <amodra@gmail.com>
377         PR rtl-optimization/69195
378         PR rtl-optimization/47992
379         * ira.c (indirect_jump_optimize): Ignore artificial defs.
380         Add comments.
382 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
384         PR bootstrap/69513
385         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
387 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
389         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
391 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
393         PR rtl-optimization/70222
394         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
395         optimization if mode is different from result_mode, queue up masking
396         of the result in outer_op.  Formatting fix.
398         PR middle-end/70239
399         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
400         of safe_grow.
402 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
404         PR rtl-optimization/69032
405         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
406         looping backwards over basic block insns.
408 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
410         PR target/66660
411         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
412         to non-speculative when propagating trap bits.
414 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
416         PR rtl-optimization/63384
417         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
418         DEBUG_INSN_P insns.
420 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
422         PR target/64411
423         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
424         factored out from ...
425         (sched_analyze_insn): ... here.
426         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
427         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
428         get_implicit_reg_pending_clobbers in it.
429         (setup_id_reg_sets): Use setup_id_implicit_regs.
430         (deps_init_id): Ditto.
432 2016-03-15  Tom de Vries  <tom@codesourcery.com>
434         PR ipa/70161
435         * cgraph.c (cgraph_node::get_body): Save, reset and restore
436         dump_file_name.
437         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
438         execute_function_dump.
439         (execute_one_pass): Don't dump function if it will be dumped after ipa
440         transform.
442 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
444         * genrecog.c (match_pattern_2): If pred is NULL don't call
445         safe_predicate_mode on it.
447 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
449         PR middle-end/70219
450         * lra-constraints.c (delete_move_and_clobber): Change assertion
451         to also allow dregno == 0.
453 2016-03-14  Richard Henderson  <rth@redhat.com>
455         PR tree-opt/68714
456         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
457         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
458         (reassociate_bb): Use optimize_vec_cond_expr; avoid
459         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
460         on vectors.
462 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
464         PR target/70083
465         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
466         regs.
467         (lra_create_live_ranges_1): initialize hard register biggest_mode to
468         VOIDmode.
469         * lra-constraints.c (split_reg): For hard regs, try to find the
470         biggest single-register mode used in the function.
472 2016-03-14  Richard Biener  <rguenther@suse.de>
474         PR tree-optimization/56365
475         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
476         constants to compare against.
478 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
480         PR target/70098
481         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
482         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
483         (define_split for the GPR case): Use int_reg_operand instead of
484         gpc_reg_operand for the output.
486 2016-03-14  Tom de Vries  <tom@codesourcery.com>
488         PR tree-optimization/70045
489         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
490         create_empty_if_region_on_edge argument.
492 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
494         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
495         (STACK_CHECK_PROTECT): Likewise.
496         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
497         (STACK_CHECK_PROTECT): Likewise.
498         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
499         (STACK_CHECK_PROTECT): Likewise.
500         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
501         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
502         (STACK_CHECK_PROTECT): Likewise.
504 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
506         PR rtl-optimization/69307
507         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
508         registers in modes that span more than one register.
510 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
512         PR target/69614
513         * lra-constraints.c (delete_move_and_clobber): New.
514         (remove_inheritance_pseudos): Use it.
516 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
518         PR ada/70017
519         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
520         the libcall is LCT_THROW.
521         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
522         for the checking routine.
524 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
526         PR target/70131
527         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
528         optimization if we have direct move.
529         (roundu32<mode>2_fprs): Likewise.
531 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
533         PR target/70123
534         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
535         be rematerialized.
536         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
537         Arguments swapped.  All callers changed.  Take reg_renumber into
538         account, and Calculate and compare register ranges for hard regs.
540 2016-03-11  Jeff Law  <law@redhat.com>
542         PR tree-optimization/70190
543         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
544         Handle cases where we can not extract the taken edge, even though we
545         found a constant value.
547         PR tree-optimization/64058
548         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
549         (num_coalesce_pairs): Move up earlier in file.
550         (find_coalesce_pair): Initialize the INDEX field for each pair
551         discovered.
552         (compare_pairs): No longer sort on the elements in each pair.
553         Instead break ties with the index of the coalesce pair.
555 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
557         PR target/70002
558         * config/aarch64/aarch64-protos.h
559         (aarch64_save_restore_target_globals): New prototype.
560         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
561         Call the above when popping pragma.
562         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
563         New function.
564         (aarch64_set_current_function): Rewrite using the above.
566 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
568         PR tree-optimization/70177
569         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
570         (extract_ops_from_tree): ... this.  In the 2 argument
571         overload remove _1 suffix.
572         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
573         (extract_ops_from_tree): ... this.
574         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
575         Adjust callers.
576         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
577         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
578         extract_ops_from_tree instead of 2 operand one.
580 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
582         PR tree-optimization/70013
583         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
584         for constant-pool entries.
586 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
588         PR rtl-optimization/70174
589         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
590         followed by gen_lowpart on force_reg instead of just gen_lowpart.
592         PR tree-optimization/70169
593         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
594         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
595         for unknown codes.
597 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
598             Jakub Jelinek  <jakub@redhat.com>
600         PR target/70160
601         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
602         of uninitialized values.
604 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
606         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
607         define_expand.
608         ("*trunctddd2"): New pattern definition.
609         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
610         TD->DD truncation.
612 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
614         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
615         definitions for BFP and DFP rounding modes.
616         ("fixuns_truncdddi2", "fixuns_trunctddi2")
617         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
618         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
619         ("fix_trunctf<mode>2"): Use the new constants instead of magic
620         numbers.
622 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
624         * config/s390/constraints.md: Adjust comment.
625         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
626         s390_decompose_addrstyle_without_index.
627         * config/s390/predicates.md (shift_count_or_setmem_operand):
628         Rename to setmem_operand.
629         * config/s390/s390-protos.h
630         (s390_decompose_shift_count): Rename to
631         s390_decompose_addrstyle_without_index.
632         * config/s390/s390.c (s390_decompose_shift_count)
633         (s390_mem_constraint, print_shift_count_operand)
634         (print_operand_address, print_operand): Rename
635         s390_decompose_shift_count to
636         s390_decompose_addrstyle_without_index and rename
637         print_shift_count_operand to print_addrstyle_operand troughout the
638         file.
639         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
640         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
641         Rename shift_count_or_setmem_operand to setmem_operand.
642         * config/s390/vx-builtins.md ("vec_insert<mode>")
643         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
644         nonmemory_operand.
646 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
648         PR target/70168
649         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
650         Handle overlapping retval and newval.
652 2016-03-10  Nick Clifton  <nickc@redhat.com>
654         PR target/7044
655         * config/aarch64/aarch64.c
656         (aarch64_override_options_after_change_1): When forcing
657         flag_omit_frame_pointer to be true, use a special value that can
658         be detected if this function is called again, thus preventing
659         flag_omit_leaf_frame_pointer from being forced to be false.
661 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
663         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
664         Set x_flag_omit_leaf_frame_pointer when handling
665         -momit-leaf-frame-pointer.
667 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
669         PR lto/69589
670         * cgraph.c (cgraph_node::dump): Dump split_part and
671         indirect_call_target.
672         * cgraph.h (cgraph_node): Add indirect_call_target flag.
673         * ipa.c (has_addr_references_p): Cleanup.
674         (is_indirect_call_target_p): New.
675         (walk_polymorphic_call_targets): Do not mark virtuals that may be
676         called indirectly as local.
677         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
679 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
681         PR ipa/69630
682         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
683         on cxa_pure_virtual.
685 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
687         PR lto/69589
688         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
690 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
692         PR lto/69589
693         * tree.c (need_assembler_name_p): Only record main variant type names.
695 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
697         PR target/70113.
698         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
699         Always define to 0 or 1.
700         (TARGET_FIX_ERR_A53_843419): New macro.
701         * config/aarch64/aarch64-elf-raw.h
702         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
703         * config/aarch64/aarch64-linux.h: Likewise.
704         * config/aarch64/aarch64.c
705         (aarch64_override_options_after_change_1): Do not default
706         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
707         843419 is on.
708         (aarch64_attributes): Handle fix-cortex-a53-843419.
709         (aarch64_can_inline_p): Likewise.
710         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
712 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
713         Jakub Jelinek <jakub@redhat.com>
715         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
716         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
717         DECL_COMMONS if flag_unconstrained_commons is set.
718         * tree-dfa.c (get_ref_base_and_extent): Likewise.
719         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
720         (funconstrained-commons): Document.
722 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
724         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
725         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
727 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
729         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
730         has a proper number of elements.
732 2016-03-10  Alan Modra  <amodra@gmail.com>
734         PR rtl-optimization/69195
735         PR rtl-optimization/47992
736         * ira.c (recorded_label_ref): Delete.
737         (update_equiv_regs): Return void.
738         (indirect_jump_optimize): New function.
739         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
740         before regstat_compute_ri.  Don't rebuild_jump_labels here.
741         Delete update_regstat.
743 2016-03-10  Richard Biener  <rguenther@suse.de>
745         PR tree-optimization/70128
746         * tree-ssa-structalias.c (set_uids_in_ptset): Set
747         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
749 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
751         PR tree-optimization/70152
752         * tree-sra.c (replace_removed_params_ssa_names): Copy over
753         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
755         PR target/70086
756         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
757         instead of gen_sse2_loadlpd.
758         * config/i386/sse.md (*vec_concatv2df): Rename to...
759         (vec_concatv2df): ... this.
761         PR tree-optimization/70127
762         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
764 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
766         PR c/68473
767         PR c++/70105
768         * diagnostic-show-locus.c (compatible_locations_p): New function.
769         (layout::layout): Sanitize ranges using compatible_locations_p.
771 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
773         PR c/68473
774         PR c++/70105
775         * diagnostic-show-locus.c (layout_range::layout_range): Replace
776         location_range param with three const expanded_locations * and a
777         bool.
778         (layout::layout): Replace call to
779         rich_location::lazily_expand_location with get_expanded_location.
780         Extract the range and perform location expansion here, passing
781         the results to the layout_range ctor.
782         * diagnostic.c (source_range::debug): Delete.
783         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
784         of rich_location::get_expanded_location.
785         * gcc-rich-location.c (get_range_for_expr): Delete.
786         (gcc_rich_location::add_expr): Reimplement to avoid the
787         rich_location::add_range overload that took a location_range,
788         passing a location_t instead.
790 2016-03-09  Richard Biener  <rguenther@suse.de>
791         Jakub Jelinek  <jakub@redhat.com>
793         PR tree-optimization/70138
794         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
795         Also skip vect_double_reduction_def.
797 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
799         PR target/70049
800         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
801         if the operand is "m".
803 2016-03-09  Nathan Sidwell  <nathan@acm.org>
805         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
807 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
809         * config/i386/i386.c (processor_target_table): Fix cost table
810         intialization order for znver1.
812 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
814         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
815         - becuase -> because.
816         * ipa-reference.c (ignore_module_statics): Likewise.
817         * cgraph.c (cgraph_node::get_body): Likewise.
818         * ipa-inline.c (early_inliner): Likewise.
819         * ipa-devirt.c (types_same_for_odr): Likewise.
820         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
821         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
823 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
825         * tree-ssa-math-opts.c: Fix typo in comment.
827 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
829         PR target/70110
830         * config/i386/i386.c (scalar_chain::make_vector_copies,
831         scalar_chain::convert_reg): Call end_sequence in between
832         get_insns and emit_conversion_insns rather than after both
833         calls.
835 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
837         PR target/70064
838         * config/i386/i386.h (machine_function): Add
839         pc_thunk_call_expanded flag.
840         (ix86_pc_thunk_call_expanded): New define.
841         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
842         (*set_got): Rename insn pattern from set_got.
843         (*set_got_labelled): Rename inst pattern from set_got_labelled.
844         * config/i386/i386.c (ix86_compute_frame_layout): Use
845         ix86_pc_thunk_call_expanded to prevent red-zone.
847 2016-03-07  Martin Jambor  <mjambor@suse.cz>
849         * hsa.h (hsa_get_ctor_statements): Declare.
850         (hsa_get_dtor_statements): Likewise.
851         (hsa_get_kernel_dispatch_type): Likewise.
852         * hsa.c (hsa_get_ctor_statements): New function.
853         (hsa_get_dtor_statements): Likewise.
854         (hsa_get_kernel_dispatch_type): Likewise.
855         * hsa-brig.c (hsa_cdtor_statements): Removed.
856         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
857         hsa_get_dtor_statements.
858         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
859         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
861 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
863         * config/arm/arm-cores.def (cortex-r8): New.
864         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
865         * config/arm/arm-tune.md: Likewise.
866         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
868 2016-03-07  Martin Sebor  <msebor@redhat.com>
870         PR rtl-optimization/19705
871         * doc/invoke.texi (Options That Control Optimization): Clarify
872         -fno-branch-count-reg.
874 2016-02-26  Richard Biener  <rguenther@suse.de>
875             Jeff Law  <law@redhat.com>
877         PR tree-optimization/69740
878         * cfghooks.c (remove_edge): Request loop fixups if we delete
879         an edge that might turn an irreducible loop into a natural
880         loop.
881         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
882         Move after definition of loops_state_clear.
884 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
886         PR rtl-optimization/69052
887         * rtlanal.c (commutative_operand_precedence): Set higher precedence
888         to CONST_WIDE_INT.
890 2016-03-07  Tom de Vries  <tom@codesourcery.com>
892         PR tree-optimization/70116
893         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
894         is_tm_ending stmts and ubsan/asan internal functions.
895         (find_duplicate): Use it.  Don't test is_tm_ending here.
897 2016-03-07  Richard Biener  <rguenther@suse.de>
899         PR tree-optimization/70115
900         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
901         (propagate_constants_for_unrolling): Use replace_uses_by.
903 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
905         PR middle-end/69916
906         * omp-low.c (struct oacc_loop): Add ifns.
907         (new_oacc_loop_raw): Initialize it.
908         (finish_oacc_loop): Clear mask & flags if no ifns.
909         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
910         (oacc_loop_xform_loop): Add ifns arg & adjust.
911         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
913 2016-03-07  Richard Henderson  <rth@redhat.com>
915         PR rtl-opt/70061
916         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
917         (insert_value_copy_on_edge): Likewise.
919 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
921         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
923 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
925         PR target/62281
926         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
928 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
930         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
932 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
934         Fix sseimul type attribute.
935         * config/i386/znver1.md
936         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
937         znver1_sseimul_avx256_load) : Fix the type attribute.
938         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
939         pipe usage and latency.
941 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
943         PR c++/70084
944         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
945         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
946         to the right type.
948 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
950         PR c/69973
951         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
953         PR rtl-optimization/69941
954         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
955         the reg share its mode.
957 2016-03-04  Jeff Law  <law@redhat.com>
959         PR tree-optimization/69196
960         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
961         If the both SSA_NAMEs are anonymous, then consider them unassociated
962         and include the PHI in the statement count.
964 2016-03-05  Tom de Vries  <tom@codesourcery.com>
966         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
967         construct in oacc routine.  Check for oacc region in oacc routine.
969 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
971         PR target/70062
972         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
973         2016-02-22 changes, instead don't recurse if RECUR is already true.
974         Don't change *dynamic_check if RECUR.  Adjust recursive caller
975         to pass true to the new argument.
976         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
978         PR target/70059
979         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
980         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
981         fixes.
982         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
984 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
986         PR rtl-optimization/57676
987         * lra-assigns.c (lra_assign): Guard test for maximum iterations
988         with flag_checking.
990 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
992         * tree-vect-patterns.c (search_type_for_mask): Handle
993         comparison of booleans.
995 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
997         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
998         Fix @xref usage.
1000         PR debug/69947
1001         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
1002         all other ops that have dw_val_class_die_ref operands,
1003         and DW_OP_GNU_entry_value.
1005 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1007         PR rtl-optimization/69904
1008         * config/arm/arm.c (arm_cannot_copy_insn_p):
1009         Return true for load-exclusive instructions.
1011 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
1013         PR target/70021
1014         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
1015         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
1016         the pattern no matter if it is used just by non-pattern, pattern
1017         or mix thereof.
1018         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
1019         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
1020         oprnd1 def_stmt is in pattern, don't look through it.
1022 2016-03-03  Marek Polacek  <polacek@redhat.com>
1024         PR middle-end/70050
1025         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
1027 2016-03-03  Martin Liska  <mliska@suse.cz>
1029         PR tree-optimization/70043
1030         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
1031         previous statement if we see a debug statement.
1033 2016-03-03  Richard Biener  <rguenther@suse.de>
1035         PR tree-optimization/55936
1036         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
1037         parameter and guard unsafe equivalence use.
1038         (vrp_evaluate_conditional_warnv_with_ops): Always use
1039         safe equivalences but not via the quadratic compare_names
1040         helper.
1042 2016-03-03  Michael Collison  <michael.collison@linaro.org>
1044         PR target/70014
1045         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
1046         for operand 1 to s_register_operand. Change predicate for operand
1047         2 to arm_not_immediate_operand.
1049 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
1051         * doc/tm.texi: Regenerated.
1053 2016-03-02  Richard Henderson  <rth@redhat.com>
1055         PR rtl-opt/67145
1056         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
1057         simplification when all args are positive non-fixed registers.
1059 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1061         * target.def (lra_p): Specify that new ports should use LRA.
1063 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
1065         PR libgomp/69555
1066         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
1067         gimplify_type_sizes the type they refer to.
1068         (omp_notice_variable): Handle reference vars to VLAs.
1069         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
1070         reference to VLA decls in the second pass instead of first pass.
1072 2016-03-02  Tom de Vries  <tom@codesourcery.com>
1074         PR tree-optimization/68659
1075         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
1076         new_expr == NULL_TREE.
1077         (get_new_name): Handle ADDR_EXPR.
1079 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
1081         PR rtl-optimization/69052
1082         * loop-invariant.c (canonicalize_address): New function.
1083         (inv_can_prop_to_addr_use): Check validity of address expression
1084         which is canonicalized by above function.
1086 2016-03-02  Alan Modra  <amodra@gmail.com>
1088         PR ipa/69990
1089         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
1090         larger alignment.
1092 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
1094         PR target/70028
1095         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
1096         (*movhi_internal): Put mask moves from and to memory separately
1097         from moves from/to GPRs.
1099 2016-03-02  Richard Biener  <rguenther@suse.de>
1101         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
1102         GENERIC expressions in GIMPLE.
1104 2016-03-02  Richard Biener  <rguenther@suse.de>
1106         * config/i386/i386.c (type_natural_mode): Fix typo.
1108 2016-03-02  Nick Clifton  <nickc@redhat.com>
1110         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
1112 2016-03-02  Richard Biener  <rguenther@suse.de>
1113             Uros Bizjak  <ubizjak@gmail.com>
1115         PR target/67278
1116         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
1118 2016-03-02  Richard Biener  <rguenther@suse.de>
1120         PR middle-end/67278
1121         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
1123 2016-03-02  Marek Polacek  <polacek@redhat.com>
1125         PR c/67854
1126         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
1127         "is promoted to" warning.
1129 2016-03-01  DJ Delorie  <dj@redhat.com>
1131         * config.gcc: Deprecate mep-*.
1133 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
1135         PR middle-end/70025
1136         * lra-constraints.c (regno_val_use_in): New.
1137         (match_reload): Use it instead of regno_use_in.
1139 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
1141         PR rtl-optimization/70007
1142         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
1143         references present in REG_EQUAL notes attached to non-SET patterns.
1145 2016-03-01  Jeff Law  <law@redhat.com>
1147         PR tree-optimization/69196
1148         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1149         Appropriately clamp the number of statements to copy when the
1150         thread path does not traverse a loop backedge.
1152         PR tree-optimization/69196
1153         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1154         Do count some PHIs in the thread path against the insn count.  Decrease
1155         final statement count by one as the control statement in the last
1156         block will get removed.  Remove special cased code for handling PHIs
1157         in the last block.
1159 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
1161         PR target/70027
1162         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
1163         asm dialect alternatives to explicit GOTPCREL calls.
1165 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
1167         PR ada/70017
1168         * ira.c (do_reload): Issue warning for generic stack checking here...
1169         * reload1.c (reload): ...instead of here and streamline it.
1171 2016-03-01  Nick Clifton  <nickc@redhat.com>
1173         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
1175 2016-03-01  Richard Biener  <rguenther@suse.de>
1177         PR tree-optimization/69983
1178         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
1179         types and fall back to operand_equal_p.
1181 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1183         Revert
1184         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1186         * config/s390/constraints.md ("jm8"): New constraint.
1187         * config/s390/predicates.md ("const_int_8bitset_operand"): New
1188         predicate.
1189         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
1190         into ...
1191         ("*setmem_long<setmem_and>"): New pattern.
1192         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
1193         into ...
1194         ("*setmem_long_31z<setmem_and>"): New pattern.
1195         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
1196         New substitution rules with the required attributes.
1199 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1201         Revert
1202         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1204         * gensupport.c (process_substs_on_one_elem): Split loop to
1205         complete mark_operands_used_in_match_dup on all expressions in the
1206         vector first.
1207         (adjust_operands_numbers): Inline into process_substs_on_one_elem
1208         and remove function.
1210 2016-03-01  Richard Biener  <rguenther@suse.de>
1212         PR middle-end/70022
1213         * fold-const.c (fold_indirect_ref_1): Fix range checking for
1214         vector BIT_FIELD_REF extract.
1216 2016-03-01  Richard Biener  <rguenther@suse.de>
1218         PR tree-optimization/69994
1219         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
1221 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
1223         PR tree-optimization/69956
1224         * tree-vect-stmts.c (supportable_widening_operation): Support
1225         multi-step conversion of boolean vectors.
1226         (supportable_narrowing_operation): Likewise.
1228 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1230         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
1231         anymore.
1233 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1235         * config/s390/subst.md (DSI_VI): New mode iterator.
1236         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
1237         * config/s390/vector.md ("vec_set<mode>"): Move expander before
1238         the insn definition.
1239         ("*vec_set<mode>"): Change predicate and add alternative to
1240         support only either register or const_int operands as element
1241         selector.
1242         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
1243         operands.
1244         ("vec_extract<mode>"): New expander.
1245         ("*vec_extract<mode>"): New insn definition supporting reg and
1246         const_int element selectors.
1247         ("*vec_extract<mode>_plus"): New insn definition supporting
1248         reg+const_int element selectors.
1249         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
1250         following expander+insn definition.
1251         ("<vec_shifts_name><mode>3"): New expander.
1252         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
1254 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1256         * config/s390/s390.md ("*tabort_1"): Change predicate to
1257         nonmemory_operand.  Add a second alternative to cover
1258         register as well as const int operands.
1259         ("*tabort_1_plus"): New pattern definition.
1261 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1263         * config/s390/s390.md ("*ashrdi3_cc_31")
1264         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
1265         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
1266         Merge insn definitions into ...
1267         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
1268         New pattern definition.
1269         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
1270         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
1271         ("*ashr<mode>3_and"): Merge insn definitions into ...
1272         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
1273         New pattern definition.
1274         * config/s390/subst.md ("addr_style_op_cc_subst")
1275         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
1276         substitutions patterns plus attributes.
1277         Add ashiftrt to SUBST iterator.
1279 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1281         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
1282         op2 to nonmemory_operand.
1283         ("*<shift>di3_31", "*<shift>di3_31_and"):
1284         Merge into single pattern definition ...
1285         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
1286         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
1287         pattern definition ...
1288         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
1289         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
1290         iterator.
1292 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1294         * config/s390/predicates.md (const_int_6bitset_operand): New
1295         predicate.
1296         * config/s390/s390.md: Include subst.md.
1297         ("rotl<mode>3"): New expander.
1298         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
1299         ...
1300         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
1301         * config/s390/subst.md: New file.
1303 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1305         * config/s390/s390.md ("op_type", "atype", "length" attributes):
1306         Remove RRR type.  It doesn't really exist.
1307         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
1308         attributes.
1309         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
1310         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
1311         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
1312         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
1313         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
1314         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
1315         `enabled' attribute.
1317 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1319         * gensupport.c (process_substs_on_one_elem): Split loop to
1320         complete mark_operands_used_in_match_dup on all expressions in the
1321         vector first.
1322         (adjust_operands_numbers): Inline into process_substs_on_one_elem
1323         and remove function.
1325 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1327         PR target/69706
1328         * config/sparc/sparc.c (NWORDS_UP): Rename to...
1329         (CEIL_NWORDS): ...this.  Use CEIL macro.
1330         (compute_fp_layout): Adjust to above renaming.
1331         (function_arg_union_value): Likewise.
1332         (sparc_arg_partial_bytes): Likewise.
1333         (sparc_function_arg_advance): Likewise.
1335 2016-02-29  Jeff Law  <law@redhat.com>
1337         PR tree-optimization/70005
1338         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
1339         where an object with a boolean range is compared against a value
1340         outside [0..1].
1342         PR tree-optimization/69999
1343         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
1344         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
1345         loop cleanups.
1347 2016-02-29  Richard Biener  <rguenther@suse.de>
1349         PR tree-optimization/69994
1350         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
1351         (get_unary_op): Look through nop conversions.
1352         (ops_equal_values_p): New function, look for equality diregarding
1353         nop conversions.
1354         (eliminate_plus_minus_pair): Use ops_equal_values_p
1355         (repropagate_negates): Do not use get_unary_op here.
1357 2016-02-29  Martin Liska  <mliska@suse.cz>
1359         * system.h: Poison ENABLE_CHECKING macro.
1361 2016-02-29  Martin Liska  <mliska@suse.cz>
1363         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
1364         is presented in dump flags.
1365         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
1366         (hsa_regalloc): Likewise.
1368 2016-02-19  Richard Biener  <rguenther@suse.de>
1370         PR tree-optimization/69980
1371         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
1372         permutation of those we need to keep.
1374 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1376         PR target/69706
1377         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
1378         (NWORDS_UP): ...this
1379         (init_cumulative_args): Minor tweaks.
1380         (sparc_promote_function_mode): Likewise.
1381         (scan_record_type): Delete.
1382         (traverse_record_type): New function template.
1383         (classify_data_t): New structure type.
1384         (classify_registers): New inline function.
1385         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
1386         exhausted.  Instantiate traverse_record_type on classify_registers and
1387         deal with the case of a structure passed in slot #15 with no FP field
1388         in the first word.
1389         (assign_data_t): New structure type.
1390         (compute_int_layout): New static function.
1391         (compute_fp_layout): Likewise.
1392         (count_registers): New inline function.
1393         (assign_int_registers): New static function.
1394         (assign_fp_registers): Likewise.
1395         (assign_registers): New inline function.
1396         (function_arg_record_value_1): Delete.
1397         (function_arg_record_value_2): Likewise.
1398         (function_arg_record_value_3): Likewise.
1399         (function_arg_record_value): Adjust to above changes.  Instantiate
1400         traverse_record_type on count_registers to first count the number of
1401         registers to be used and then on assign_registers to assign them.
1402         (function_arg_union_value): Adjust to above renaming.
1403         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
1404         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
1405         case of a structure passed in slot #15
1406         (sparc_function_arg_advance): Likewise.
1407         (function_arg_padding): Minor tweak.
1409 2016-02-29  Richard Biener  <rguenther@suse.de>
1411         PR tree-optimization/69720
1412         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
1413         the adjustment_def path for possibly vectorized defs.
1414         (vect_create_epilog_for_reduction): Handle vectorized initial
1415         defs properly.
1417 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
1419         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
1421 2016-02-27  Jeff Law  <law@redhat.com>
1423         Revert
1424         2016-02-26  Richard Biener  <rguenther@suse.de>
1425                     Jeff Law  <law@redhat.com>
1427         PR tree-optimization/69740
1428         * cfghooks.c (remove_edge): Request loop fixups if we delete
1429         an edge that might turn an irreducible loop into a natural
1430         loop.
1432 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
1434         PR rtl-optimization/69896
1435         * tree-vect-generic.c (get_compute_type): Avoid single element
1436         vector types.
1438 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
1440         Rename the AArch64 tuning option and related functions to enable the
1441         Newton series for the reciprocal square root to reflect its
1442         approximative characteristic.
1444         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
1445         function to "aarch64_emit_approx_rsqrt".
1446         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
1447         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
1448         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
1449         (xgene1_tunings): Likewise.
1450         (use_rsqrt_p): Likewise.
1451         (aarch64_emit_swrsqrt): Use new function name.
1452         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
1453         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
1454         text explaining this option.
1455         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
1457 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
1459         PR target/69969
1460         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1461         complain about -mallow-movmisalign without -mvsx if
1462         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
1464 2016-02-26  Joel Sherrill  <joel@rtems.org>
1466         * config.gcc: Add x86_64-*-rtems*.
1467         * gcc/config/i386/rtems-64.h: New file.
1469 2016-02-26  Joel Sherrill  <joel@rtems.org>
1471         * config.gcc: Add aarch64-*-rtems*.
1472         * gcc/config/aarch64/rtems.h: New file.
1474 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
1476         PR target/69946
1477         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
1478         shift amount using %h.  Add comment.
1480 2016-02-26  Richard Biener  <rguenther@suse.de>
1481             Jeff Law  <law@redhat.com>
1483         PR tree-optimization/69740
1484         * cfghooks.c (remove_edge): Request loop fixups if we delete
1485         an edge that might turn an irreducible loop into a natural
1486         loop.
1488 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1490         PR middle-end/69920
1491         * tree-sra.c (sra_modify_assign): Do not remove loads of
1492         uninitialized aggregates to SSA_NAMEs.
1494 2016-02-26  Richard Henderson  <rth@redhat.com>
1496         PR target/69709
1497         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
1498         pseudo in case the target rtx matches the source of the left
1499         shift.
1501 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1503         PR hsa/69568
1504         * hsa.h (hsa_type_packed_p): Declare.
1505         * hsa.c (hsa_type_packed_p): New function.
1506         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
1507         loads.
1508         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
1509         * hsa-brig.c (emit_basic_insn): Likewise.
1511 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1513         pr hsa/69674
1514         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
1515         pointers.
1516         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
1518 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1520         * hsa.h (is_a_helper): New overload for hsa_op_immed for
1521         hsa_op_with_type operands.
1522         (hsa_unsigned_type_for_type): Declare.
1523         * hsa.c (hsa_unsigned_type_for_type): New function.
1524         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
1525         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
1526         the finalizer.  Do not emit extra move.
1528 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1530         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
1531         atomic operations in private segment.
1533 2016-02-26  Martin Jambor  <mjambor@suse.cz>
1535         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
1536         statements to wi->info.  Also disallow omp simd constructs.
1537         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
1538         for not gridifying.  Dump special string for omp_for.
1540 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1542         PR target/69245
1543         * config/aarch64/aarch64.c (aarch64_set_current_function):
1544         Save/restore target globals when switching to
1545         target_option_default_node.
1547 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1549         PR target/69613
1550         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
1551         Return 0 if !SHIFT_COUNT_TRUNCATED.
1553 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
1554             Eric Botcazou  <ebotcazou@adacore.com>
1556         PR rtl-optimization/69891
1557         * dse.c (scan_insn): If we can't figure out memset arguments
1558         or they are non-constant, call clear_rhs_from_active_local_stores.
1560 2016-02-26  Martin Liska  <mliska@suse.cz>
1562         * doc/extend.texi: Mention clog10, clog10f an clog10l
1563         in Builtins section.
1565 2016-02-26  Martin Liska  <mliska@suse.cz>
1567         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
1568         CHECKING_P.
1569         (resolve_args_picking_1): Likewise.
1570         * dwarf2out.h (struct GTY): Likewise.
1572 2016-02-26  Martin Liska  <mliska@suse.cz>
1574         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
1575         with flag_checking.
1576         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
1578 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1579             Martin Liska  <mliska@suse.cz>
1581         * doc/install.texi: Mention --enable-valgrind-annotations.
1583 2016-02-26  Richard Biener  <rguenther@suse.de>
1585         PR tree-optimization/69551
1586         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
1587         looking through aliases adjust DECL_PT_UID to refer to the
1588         ultimate alias target.
1590 2016-02-25  Martin Liska  <mliska@suse.cz>
1592         PR middle-end/69919
1593         * alloc-pool.c (after_memory_report): New variable.
1594         * alloc-pool.h (base_pool_allocator ::release): Do not use
1595         the infrastructure if after_memory_report.
1596         * toplev.c (toplev::main): Mark after memory report.
1598 2016-02-25  Richard Biener  <rguenther@suse.de>
1600         PR tree-optimization/48795
1601         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
1603 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
1605         PR driver/68463
1606         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
1607         offloading is enabled and -fopenacc or -fopenmp is specified.
1608         (CRTOFFLOADEND): Likewise.
1609         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
1610         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
1611         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
1612         (offload_objects_file_name): New static var.
1613         (tool_cleanup): Remove offload_objects_file_name file.
1614         (find_offloadbeginend): Replace with ...
1615         (find_crtoffloadtable): ... this.
1616         (run_gcc): Remove offload_argc and offload_argv.
1617         Get offload_objects_file_name from -foffload-objects=... option.
1618         Read names of object files with offload from this file, pass them to
1619         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
1620         don't pass offloadbegin and offloadend to the linker.  Don't pass
1621         offload non-LTO files to the linker, because now they're not claimed.
1623 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
1625         PR ipa/69630
1626         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
1627         on builtin_unreachable.
1629 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
1631         PR rtl-optimization/69896
1632         * regcprop.c: Include cfgrtl.h.
1633         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
1634         than remembered mode, either delete it (if noop_move_p), or
1635         treat like copy_p but not noop_p instruction.
1637 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
1639         PR debug/69705
1640         * dwarf2out.c (gen_variable_die): Work around buggy LTO
1641         - allow NULL decl for Fortran DW_TAG_common_block variables.
1643 2016-02-24  Jason Merrill  <jason@redhat.com>
1645         * common.opt (flifetime-dse): Add -flifetime-dse=1.
1647 2016-02-24  Richard Biener  <rguenther@suse.de>
1648             Jakub Jelinek  <jakub@redhat.com>
1650         PR middle-end/69760
1651         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
1652         conditionally executed ops to well-defined overflow behavior.
1654 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
1656         PR middle-end/69915
1657         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
1658         elements.
1660 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1662         PR rtl-optimization/69886
1663         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
1664         argument.  Use it when checking validity of set instructions.
1665         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
1666         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
1667         callsite.
1668         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
1669         * store-motion.c (find_moveable_store): Update
1670         can_assign_to_reg_without_clobbers_p callsite.
1672 2016-02-24  Richard Biener  <rguenther@suse.de>
1674         PR middle-end/68963
1675         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
1676         bogus check.
1677         (record_nonwrapping_iv): Do not fall back to the low/high bound
1678         for non-constant IV bases if the stmt is not always executed.
1680 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1682         * config/arm/arm-cores.def (cortex-a32): New entry.
1683         * config/arm/arm-tables.opt: Regenerate.
1684         * config/arm/arm-tune.md: Regenerate.
1685         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
1686         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
1687         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
1688         for -mcpu and -mtune.
1690 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1692         PR target/69875
1693         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
1694         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
1695         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
1696         (atomic_loaddi_1): Delete.
1697         (atomic_loaddi): Rewrite expander using the above changes.
1699 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
1701         PR c/69918
1702         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
1703         2 to 3.
1705 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
1706             Richard Biener  <rguenth@suse.de>
1708         PR middle-end/69909
1709         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
1710         set_mem_attributes if tem is SSA_NAME which got expanded
1711         as a MEM.
1713 2016-02-24  Richard Biener  <rguenther@suse.de>
1715         PR tree-optimization/69907
1716         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
1717         end of permutations for BB vectorization.
1719 2016-02-24  Christian Bruel  <christian.bruel@st.com>
1721         * config/arm/arm-c.c (arm_option_override): Initialize
1722         target_option_current_node.
1723         * config/arm/arm.c (arm_pragma_target_parse): Replace
1724         build_target_option_node call by target_option_current_node.
1725         Set target_option_current_node.
1726         Fix comments.
1728 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
1730         PR target/69810
1731         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
1732         define_insn_and_split to define_insn.
1733         (zero_extendqi<mode>2_dot2): Same.
1734         (extendqi<mode>2_dot): Same.
1735         (extendqi<mode>2_dot2): Same.
1737 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
1739         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
1740         and add bypass for AES{D,E} and AESMC pairs.
1741         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
1742         and AESMC pairs.
1744 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
1746         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
1747         series for reciprocal square root in Exynos M1.
1749 2016-02-23  Martin Sebor  <msebor@redhat.com>
1751         PR c/69759
1752         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
1753         __builtin_alloca_with_align.
1755 2016-02-23  Richard Henderson  <rth@redhat.com>
1757         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
1758         (ix86_register_pragmas): Remove __seg_tls.
1759         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
1760         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
1761         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
1762         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
1763         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
1764         * doc/extend.texi (__seg_tls): Remove item.
1766 2016-02-23  Richard Biener  <rguenther@suse.de>
1768         * alloc-pool.h (struct allocation_object): Make id member
1769         conditional on CHECKING_P again.
1770         (get_instance): Adjust.
1771         (base_pool_allocator): Likewise.
1773 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
1775         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
1776         (parallelize_loops): In OpenACC kernels mode, set n_threads to
1777         zero.
1778         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
1779         flag_openacc.
1780         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1782 2016-02-23  Richard Biener  <rguenther@suse.de>
1784         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
1785         * bitmap.h (struct bitmap_usage): Likewise.
1786         (bitmap_move): Declare.
1787         * bitmap.c (register_overhead): Take size_t argument.
1788         (bitmap_move): New function.
1789         * df-problems.c (df_rd_transfer_function): Use bitmap_move
1790         to properly account overhead.
1791         * tree.c (free_node): Use tree_size.
1793 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
1795         PR c++/69902
1796         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
1797         when inverting comparison.
1799         PR c/69900
1800         * common.opt (Wunreachable-code): Add Warning flag.
1802 2016-02-23  Mark Wielaard  <mjw@redhat.com>
1803             Jakub Jelinek  <jakub@redhat.com>
1805         PR c/69911
1806         * cgraphunit.c (check_global_declaration): Check main_input_filename
1807         and DECL_SOURCE_FILE are not NULL.
1809 2016-02-23  Martin Jambor  <mjambor@suse.cz>
1811         PR tree-optimization/69666
1812         * tree-sra.c (sra_modify_assign): Do not attempt to create
1813         default_def replacements for unscalarizable regions.
1815 2016-02-20  Mark Wielaard  <mjw@redhat.com>
1817         PR c/28901
1818         * cgraphunit.c (check_global_declaration): Check level of
1819         warn_unused_const_variable and main_input_filename.
1820         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
1821         (-Wunused-variable): For C implies -Wunused-const-variable=1.
1822         (-Wunused-const-variable): Explain levels 1 and 2.
1824 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
1826         PR target/69888
1827         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
1828         identical arguments.  Formatting and spelling fixes.
1830         PR target/69885
1831         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
1832         be specified.
1834         PR target/69894
1835         PR target/69895
1836         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
1837         and m68k-devices.def.
1838         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
1839         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
1841 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
1843         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
1844         and HImode registers.
1846 2016-02-22  Richard Biener  <rguenther@suse.de>
1848         PR tree-optimization/69882
1849         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
1850         preserve permutations present because of gaps.
1851         (vect_supported_load_permutation_p): Always continue checking
1852         permutations after vect_attempt_slp_rearrange_stmts.
1854 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
1856         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
1857         min_profitable_estimate, rather than min_profitable_iters.
1859 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
1861         PR target/69885
1862         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
1863         SImode for last match_operand.
1865 2016-02-22  Martin Liska  <mliska@suse.cz>
1867         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
1868         return bitsize - 1 as the return value.
1870 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
1872         PR target/69806
1873         PR target/54089
1874         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
1875         Handle negative shift counts.
1876         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
1877         force_reg on the shift constant.
1878         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
1879         (lshrsi3_d): Handle negative shift counts.
1881 2016-02-22  Richard Biener  <rguenther@suse.de>
1882             Tom de Vries  <tom@codesourcery.com>
1884         * graph.c: Include dumpfile.h.
1885         (print_graph_cfg): Split into three overloads.
1886         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
1888 2016-02-22  Tom de Vries  <tom@codesourcery.com>
1890         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
1891         dump-fn.
1893 2016-02-22  Richard Biener  <rguenther@suse.de>
1895         PR ipa/37448
1896         * ipa-inline-transform.c (inline_call): When not updating
1897         overall summaries adjust self size by the growth estimate.
1898         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
1899         hash-set, do not update overall summaries here.  Renamed from ...
1900         (inline_to_all_callers): ... this which is now wrapping the
1901         above and performing delayed overall summary update.
1902         (early_inline_small_functions): Delay updating of the overall
1903         summary.
1905 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1907         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
1908         variable.
1910 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
1912         PR driver/69805
1913         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
1914         :%* in %:gt() argument.
1915         (greater_than_spec_func): Adjust for expecting only numbers,
1916         if there are more than two numbers, compare the last two.
1918 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
1920         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
1921         -Wnarrowing with -std.
1923 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
1925         PR c++/69851
1926         * expr.c (store_field): Don't use bit-field path if exp is
1927         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
1928         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
1929         and the assignment can be performed by bitwise copy.  Formatting
1930         fix.
1932         PR middle-end/69838
1933         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
1934         call copy_reg_eh_region_note_forward on before and/or after sequences
1935         and remove note from insn if it no longer can throw.
1937         PR target/69820
1938         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
1939         if TARGET_AVX512BW.
1941 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1943         * config/s390/vector.md: Add missing commutative operand markers
1944         to the patterns which qualify for one.
1945         * config/s390/vx-builtins.md: Likewise.
1947 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1949         * config/s390/vector.md (VI, VI_QHS): Add single element vector
1950         types to mode iterators.
1951         (vec_double): ... and mode attribute.
1952         * config/s390/vx-builtins.md (non_vec_int): Likewise.
1954 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1956         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
1957         Change the predicate of op2 from nonimmediate to general and let
1958         reload fix it if necessary.
1960 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1962         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
1964 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1966         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
1967         mode.
1969 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1971         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
1972         * config/s390/s390.c (s390_expand_vec_movstr): New function.
1973         * config/s390/s390.md ("movstr<P:mode>"): Call
1974         s390_expand_vec_movstr.
1976 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1978         * config/s390/s390.md: Add missing output modifier for operand 1
1979         to print it as address properly.
1981 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1983         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
1984         * config/s390/2964.md: New file.
1985         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
1986         of insn grouping attributes depending on the CPU level.
1987         (s390_get_unit_mask): New function.
1988         (s390_sched_score): Remove the OOO from the scheduling macros.
1989         Add loop to calculate a score for the instruction mix.
1990         (s390_sched_reorder): Likewise plus improve debug output.
1991         (s390_sched_variable_issue): Rename macros as above.  Calculate
1992         the unit distances after actually scheduling an insn.  Improve
1993         debug output.
1994         (s390_sched_init): Clear last_scheduled_unit_distance array.
1995         * config/s390/s390.md: Include 2964.md.
1997 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
1999         PR target/69671
2000         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
2001         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
2002         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
2003         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
2004         *avx512f_<code>v8div16qi2_mask_1): New insns.
2006 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2008         PR target/68404
2009         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
2010         2016-02-09 change.
2012         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
2013         earlyclobber from target.  Use wF constraint for fused memory
2014         address.
2015         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
2017 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
2018             Martin Liska  <mliska@suse.cz>
2020         PR sanitizer/69863
2021         * cfgexpand.c (asan_sanitize_stack_p): New function.
2022         (partition_stack_vars): Use the function.
2023         (expand_stack_vars): Likewise.
2024         (defer_stack_allocation): Likewise.
2025         (expand_used_vars): Likewise.
2027 2016-02-18  Richard Biener  <rguenther@suse.de>
2029         PR middle-end/69553
2030         * fold-const.c (operand_equal_p): Properly compare offsets for
2031         IMAGPART_EXPR and ARRAY_REF.
2033 2016-02-18  Nick Clifton  <nickc@redhat.com>
2035         PR target/62254
2036         PR target/69610
2037         * config/arm/arm.c (arm_option_override_internal): Disable
2038         interworking if the target does not support thumb instructions.
2039         (arm_reload_in_hi): Handle the case where a register to register
2040         move needs reloading because there is no simple pattern to handle
2041         it.
2042         (arm_reload_out_hi): Likewise.
2044 2016-02-18  Richard Biener  <rguenther@suse.de>
2046         PR middle-end/69854
2047         * match.pd: Don't use fold_binary or fold_unary for folding
2048         constants.
2050 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
2052         PR c++/69850
2053         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
2054         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
2055         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
2056         warn on gimple_no_warning_p statements.
2058 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
2060         * doc/extend.texi (C++ Attributes): Correct description of
2061         warn_unused type attribute.
2063 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2065         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
2066         correct instruction.
2068 2016-02-17  Richard Biener  <rguenther@suse.de>
2070         PR rtl-optimization/69609
2071         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
2072         (find_traces_1_round): When ending a trace update cached priority
2073         of successors.
2074         (bb_to_key): Use cached priority when available.
2075         (copy_bb): Initialize cached priority.
2076         (reorder_basic_blocks_software_trace_cache): Likewise.
2078 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2080         PR target/69161
2081         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
2082         New predicate.
2083         (aarch64_comparison_operator): Break overly long line into two.
2084         (aarch64_comparison_operation): Likewise.
2085         * config/aarch64/aarch64.md (cstorecc4): Use
2086         aarch64_comparison_operator_mode instead of
2087         aarch64_comparison_operator.
2088         (cstore<mode>4): Likewise.
2089         (aarch64_cstore<mode>): Likewise.
2090         (*cstoresi_insn_uxtw): Likewise.
2091         (cstore<mode>_neg): Likewise.
2092         (*cstoresi_neg_uxtw): Likewise.
2094 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2096         PR target/69161
2097         * config/arm/predicates.md (arm_comparison_operator_mode):
2098         New predicate.
2099         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
2100         instead of arm_comparison_operator.
2101         (*mov_negscc): Likewise.
2102         (*mov_notscc): Likewise.
2103         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
2104         (*thumb2_mov_negscc): Likewise.
2105         (*thumb2_mov_negscc_strict_it): Likewise.
2106         (*thumb2_mov_notscc): Likewise.
2107         (*thumb2_mov_notscc_strict_it): Likewise.
2109 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
2111         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
2112         Add missing return.
2114 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
2116         * config/visium/visium.c (machine_libfunc_index): New enum.
2117         (machine_libfuncs): New structure.
2118         (visium_libfuncs): New static variable.
2119         (TARGET_INIT_LIBFUNCS): Define to...
2120         (visium_init_libfuncs): ...this.  New function.
2121         (expand_block_move_4): Use the appropriate libfunc.
2122         (expand_block_move_2): Likewise.
2123         (expand_block_move_1): Likewise.
2124         (expand_block_set_4): Likewise.
2125         (expand_block_set_2): Likewise.
2126         (expand_block_set_1): Likewise.
2127         (visium_trampoline_init): Likewise.
2129 2016-02-17  Nick Clifton  <nickc@redhat.com>
2131         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
2132         TI's devices.csv file as of March 2016.
2134 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2136         PR Target/48344
2137         * opts-global.c (handle_common_deferred_options): Introduce and
2138         initialize two global variables to remember command-line options
2139         specifying a stack-limiting register.
2140         * opts.h: Add extern declarations of the two new global variables.
2141         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
2142         variable based on the values of the two new global variables.
2144 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
2146         PR c/69835
2147         * common.opt (Wnonnull-compare): New warning.
2148         * doc/invoke.texi (-Wnonnull): Remove text about comparison
2149         of arguments against NULL.
2150         (-Wnonnull-compare): Document.
2151         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
2152         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
2153         * passes.def (pass_warn_nonnull_compare): Add.
2154         * gimple-ssa-nonnull-compare.c: New file.
2156 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
2158         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
2159         AARCH64_EXTRA_TUNE_RECIP_SQRT.
2161 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
2163         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
2164         reciprocal sqrt for -mlow-precision-recip-sqrt.
2166 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
2167             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2169         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
2170         always use lane loads to construct non-constant vectors.
2172 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
2174         * config/aarch64/aarch64.md
2175         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
2176         constraints for operand 3.
2177         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
2179 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
2180             Richard Biener  <rguenther@suse.de>
2182         PR tree-optimization/69820
2183         * tree-vect-patterns.c (type_conversion_p): Return false if
2184         *orig_type is unsigned single precision or boolean.
2185         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
2186         Formatting fix.
2188 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
2190         PR rtl-optimization/69764
2191         PR rtl-optimization/69771
2192         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
2193         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
2195 2016-02-16  Richard Biener  <rguenther@suse.de>
2197         PR tree-optimization/69776
2198         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
2199         sets from caller.
2200         (indirect_refs_may_alias_p): Likewise.
2201         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
2202         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
2203         according to tbaa_p.
2204         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
2205         (optimize_stmt): For redundant store discovery do not allow tbaa.
2207 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
2209         PR tree-optimization/69714
2210         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
2211         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
2213 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
2215         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
2216         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
2217         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
2218         * config/arc/arc.c (arc_init): Check FPU options.
2219         (get_arc_condition_code): Handle new CC_FPU* modes.
2220         (arc_select_cc_mode): Likewise.
2221         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
2222         register pair only. Allow access for ARCv2 accumulator.
2223         (gen_compare_reg): Whenever we have FPU support use FPU compare
2224         instructions.
2225         (arc_reorg): Don't generate brcc insns when FPU compare
2226         instructions are involved.
2227         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
2228         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
2229         floating point emulation.
2230         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
2231         (REVERSE_CONDITION): Add new CC_FPU* modes.
2232         (TARGET_FP_SP_BASE): Define.
2233         (TARGET_FP_DP_BASE): Likewise.
2234         (TARGET_FP_SP_FUSED): Likewise.
2235         (TARGET_FP_DP_FUSED): Likewise.
2236         (TARGET_FP_SP_CONV): Likewise.
2237         (TARGET_FP_DP_CONV): Likewise.
2238         (TARGET_FP_SP_SQRT): Likewise.
2239         (TARGET_FP_DP_SQRT): Likewise.
2240         (TARGET_FP_DP_AX): Likewise.
2241         * config/arc/arc.md (ARCV2_ACC): New constant.
2242         (type): New fpu type attribute.
2243         (SDF): Conditional iterator.
2244         (cstore<mode>, cbranch<mode>): Change expand condition.
2245         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
2246         handles FPU/FPX cases as well.
2247         * config/arc/arc.opt (mfpu): New option.
2248         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
2249         Renamed.
2250         (adddf3, muldf3, subdf3): Removed.
2251         * config/arc/predicates.md (proper_comparison_operator): Recognize
2252         CC_FPU* modes.
2253         * config/arc/fpu.md: New file.
2254         * doc/invoke.texi (ARC Options): Document mfpu option.
2256 2016-02-16  Richard Biener  <rguenther@suse.de>
2258         PR rtl-optimization/69291
2259         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
2260         noce_operand_ok check.
2262 2016-02-16  Tom de Vries  <tom@codesourcery.com>
2264         PR lto/67709
2265         * omp-low.c (simd_clone_create): Remove call to
2266         symtab->call_cgraph_insertion_hooks.
2268 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
2270         PR tree-optimization/69802
2271         * tree-ssa-reassoc.c (update_range_test): If op is
2272         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
2273         op == 1 test of precision 1 integral op, otherwise handle
2274         that case as op itself.  Fix up formatting.
2275         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
2276         up formatting.
2278 2016-02-16  Richard Biener  <rguenther@suse.de>
2280         PR tree-optimization/69586
2281         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
2282         types for conversion sources.
2284 2016-02-16  Richard Biener  <rguenther@suse.de>
2286         PR middle-end/69801
2287         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
2288         mask OEP_ADDRESS_OF.
2290 2016-02-16  Alan Modra  <amodra@gmail.com>
2292         PR target/68973
2293         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
2294         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
2295         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
2296         (p8_mtvsrwz): New.
2297         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
2298         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
2299         (p8_fmrgow_<mode>): Likewise.
2300         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
2301         changes.
2302         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
2303         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
2304         to use movdi_internal64.  Remove op0_di.
2305         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
2307 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
2309         Add support for the FCCMP insn types
2311         * config/aarch64/aarch64.md (fccmp): Change insn type.
2312         (fccmpe): Likewise.
2313         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
2314         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
2315         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
2316         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
2317         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
2318         * config/arm/types.md (fccmps): Add new insn type.
2319         (fccmpd): Likewise.
2321 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2323         * alias.c (get_alias_set): Fix a typo in comment.
2325 2016-02-15  Richard Biener  <rguenther@suse.de>
2327         PR tree-optimization/69595
2328         * match.pd: Complete range test simplification to true.
2330 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
2332         PR rtl-optimization/69648
2333         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
2334         pic_offset_table_rtx.
2336         PR rtl-optimization/69752
2337         * ira.c (update_equiv_regs): When looking for more than a single SET,
2338         also take other side effects into account.
2340 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
2342         * config/s390/s390.c (s390_function_profiler): Add a new sequence
2343         for z900+ CPUs in 31-bit mode.
2345 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
2347         * common/config/s390/s390-common.c (s390_supports_split_stack):
2348         New function.
2349         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
2350         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
2351         * config/s390/s390.c (struct machine_function): New field
2352         split_stack_varargs_pointer.
2353         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
2354         in s390_emit_prologue.
2355         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
2356         vararg pointer.
2357         (morestack_ref): New global.
2358         (SPLIT_STACK_AVAILABLE): New macro.
2359         (s390_expand_split_stack_prologue): New function.
2360         (s390_live_on_entry): New function.
2361         (s390_va_start): Use split-stack vararg pointer if appropriate.
2362         (s390_asm_file_end): Emit the split-stack note sections.
2363         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
2364         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
2365         (UNSPECV_SPLIT_STACK_CALL): New unspec.
2366         (UNSPECV_SPLIT_STACK_DATA): New unspec.
2367         (split_stack_prologue): New expand.
2368         (split_stack_space_check): New expand.
2369         (split_stack_data): New insn.
2370         (split_stack_call): New expand.
2371         (split_stack_call_*): New insn.
2372         (split_stack_cond_call): New expand.
2373         (split_stack_cond_call_*): New insn.
2375 2016-02-15  Richard Biener  <rguenther@suse.de>
2377         PR tree-optimization/69783
2378         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2379         Add trivially correct cases.
2381 2016-02-15  Tom de Vries  <tom@codesourcery.com>
2383         PR lto/69655
2384         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
2385         do_force_output.
2386         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
2388 2016-02-15  Richard Biener  <rguenther@suse.de>
2390         PR tree-optimization/69776
2391         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
2392         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
2393         indicate whether we can use TBAA to disambiguate against stores.
2394         Use alias-set zero if not.
2395         (visit_reference_op_store): Do not use TBAA when looking up
2396         redundant stores.
2397         * tree-ssa-pre.c (compute_avail): Use TBAA here.
2398         (eliminate_dom_walker::before_dom_children): But not when looking
2399         up redundant stores.
2401 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
2403         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
2405 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2407         *  config/i386/znver1.md
2408         (znver1_pop, znver1_pop_mem,
2409         znver1_load_imov_double_store,
2410         znver1_load_imov_direct_store,
2411         znver1_load_imov_direct_load,
2412         znver1_load_imov_double_load): Add new.
2413         (znver1_insn, znver1_insn_load): Add icmov type.
2414         (znver1_sseavx_fma,
2415         znver1_sseavx_fma_load,
2416         znver1_avx256_fma,
2417         znver1_avx256_fma_load): Fix pipe usage.
2419 2016-02-14  Alan Modra  <amodra@gmail.com>
2421         PR target/68973
2422         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
2423         with an invalid hard reg, reload just the reg not the entire
2424         pre/post-inc/dec address expression.
2426 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
2428         PR target/67260
2429         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
2430         fixed R1_REG scratch reg.
2431         (sibcall_value_pcrel_fdpic): Likewise.
2433 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
2435         PR target/67636
2436         PR target/64345
2437         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
2439 2016-02-12  Walter Lee  <walt@tilera.com>
2441         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
2442         * config/tilegx/t-tilegx: Likewise.
2444 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
2446         PR other/69554
2447         * diagnostic-show-locus.c (struct line_span): New struct.
2448         (layout::get_first_line): Delete.
2449         (layout::get_last_line): Delete.
2450         (layout::get_num_line_spans): New member function.
2451         (layout::get_line_span): Likewise.
2452         (layout::print_heading_for_line_span_index_p): Likewise.
2453         (layout::get_expanded_location): Likewise.
2454         (layout::calculate_line_spans): Likewise.
2455         (layout::m_first_line): Delete.
2456         (layout::m_last_line): Delete.
2457         (layout::m_line_spans): New field.
2458         (layout::layout): Update comment.  Replace m_first_line and
2459         m_last_line with m_line_spans, replacing their initialization
2460         with a call to calculate_line_spans.
2461         (diagnostic_show_locus): When printing source lines and
2462         annotations, rather than looping over a single span
2463         of lines, instead loop over each line_span within
2464         the layout, with an inner loop over the lines within them.
2465         Call the context's start_span callback when changing line spans.
2466         * diagnostic.c (diagnostic_initialize): Initialize start_span.
2467         (diagnostic_build_prefix): Break out the building of the location
2468         part of the string into...
2469         (diagnostic_get_location_text): ...this new function, rewriting
2470         it from nested ternary expressions to a sequence of "if"
2471         statements.
2472         (default_diagnostic_start_span_fn): New function.
2473         * diagnostic.h (diagnostic_start_span_fn): New typedef.
2474         (diagnostic_context::start_span): New field.
2475         (default_diagnostic_start_span_fn): New prototype.
2477 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
2479         PR driver/69779
2480         * gcc.c (driver::finalize): Fix cleanup of "specs".
2482 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
2484         PR driver/69265
2485         PR driver/69453
2486         * gcc.c (driver::driver): Initialize m_option_suggestions.
2487         (driver::~driver): Clean up m_option_suggestions.
2488         (suggest_option): Convert to...
2489         (driver::suggest_option): ...this, and split out into
2490         driver::build_option_suggestions and find_closest_string.
2491         (driver::build_option_suggestions): New function, from
2492         first half of suggest_option.  Special-case
2493         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
2494         the sanitizer_opts array.  For options of enum types, add the
2495         various enum values to the candidate strings.
2496         (driver::handle_unrecognized_options): Remove "const".
2497         * gcc.h (driver::handle_unrecognized_options): Likewise.
2498         (driver::build_option_suggestions): New decl.
2499         (driver::suggest_option): New decl.
2500         (driver::m_option_suggestions): New field.
2501         * opts-common.c (add_misspelling_candidates): New function.
2502         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
2503         and make non-static.
2504         * opts.h (sanitizer_opts): New array decl.
2505         (add_misspelling_candidates): New function decl.
2506         * spellcheck.c (find_closest_string): New function.
2507         * spellcheck.h (find_closest_string): New function decl.
2509 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
2511         PR rtl-optimization/69764
2512         PR rtl-optimization/69771
2513         * optabs.c (expand_binop_directly): For shift_optab_p, force
2514         convert_modes with VOIDmode if xop1 has VOIDmode.
2516 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
2518         PR target/69729
2519         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
2520         to correctly determine instrumentation thunks.
2522 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
2524         PR ipa/69241
2525         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
2526         type by reference, force lhs on the call.
2528         PR ipa/68672
2529         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
2530         Compute retval and retbnd early in all cases if split_part_return_p
2531         and return_bb is not EXIT.  Remove all clobber stmts and reset
2532         all debug stmts that refer to SSA_NAMEs defined in split part,
2533         except if it is retval, in that case replace the old retval with the
2534         lhs of the call to the split part.
2536 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
2538         revert:
2539         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
2541         PR middle-end/66726
2542         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
2543         whose result is used in PHI.
2544         (maybe_optimize_range_tests): Likewise.
2545         (final_range_test_p): Likweise.
2547 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
2549         PR middle-end/66726
2550         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
2551         whose result is used in PHI.
2552         (maybe_optimize_range_tests): Likewise.
2553         (final_range_test_p): Likweise.
2555 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
2557         * cgraph.c: Spelling fixes - behaviour -> behavior and
2558         neighbour -> neighbor.
2559         * target.def: Likewise.
2560         * sel-sched.c: Likewise.
2561         * config/mips/mips.c: Likewise.
2562         * config/arc/arc.md: Likewise.
2563         * config/arm/cortex-a57.md: Likewise.
2564         * config/arm/arm.c: Likewise.
2565         * config/arm/neon.md: Likewise.
2566         * config/arm/arm-c.c: Likewise.
2567         * config/vms/vms-c.c: Likewise.
2568         * config/s390/s390.c: Likewise.
2569         * config/i386/znver1.md: Likewise.
2570         * config/i386/i386.c: Likewise.
2571         * config/ia64/hpux-unix2003.h: Likewise.
2572         * config/msp430/msp430.md: Likewise.
2573         * config/rx/rx.c: Likewise.
2574         * config/rx/rx.md: Likewise.
2575         * config/aarch64/aarch64-simd.md: Likewise.
2576         * config/aarch64/aarch64.c: Likewise.
2577         * config/nvptx/nvptx.c: Likewise.
2578         * config/bfin/bfin.c: Likewise.
2579         * config/cris/cris.opt: Likewise.
2580         * config/rs6000/rs6000.c: Likewise.
2581         * target.h: Likewise.
2582         * spellcheck.c: Likewise.
2583         * ira-build.c: Likewise.
2584         * tree-inline.c: Likewise.
2585         * builtins.c: Likewise.
2586         * lra-constraints.c: Likewise.
2587         * explow.c: Likewise.
2588         * hwint.h: Likewise.
2589         * targhooks.c: Likewise.
2590         * tree-vect-data-refs.c: Likewise.
2591         * expr.c: Likewise.
2592         * doc/tm.texi: Likewise.
2593         * doc/extend.texi: Likewise.
2594         * doc/install.texi: Likewise.
2595         * doc/md.texi: Likewise.
2596         * tree-ssa-tail-merge.c: Likewise.
2597         * sched-int.h: Likewise.
2598         * match.pd: Likewise.
2599         * sched-ebb.c: Likewise.
2600         * target.def (omit_struct_return_reg): Likewise.
2601         * gimple-ssa-isolate-paths.c: Likewise.
2602         (find_implicit_erroneous_behaviour): Renamed to...
2603         (find_implicit_erroneous_behavior): ... this.
2604         (find_explicit_erroneous_behaviour): Renamed to...
2605         (find_explicit_erroneous_behavior): ... this.
2606         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
2608 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
2610         PR rtl-optimization/64682
2611         PR rtl-optimization/69567
2612         PR rtl-optimization/69737
2613         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
2614         in I2 as well, just lose it.
2616 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2618         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
2619         New variable.
2620         (aarch64_last_printed_tune_string): Likewise.
2621         (aarch64_declare_function_name): Only output .arch assembler
2622         directive if it will be different from the previously output
2623         directive.  Same for .tune comment but only if -dA is set.
2624         (aarch64_start_file): New function.
2625         (TARGET_ASM_FILE_START): Define.
2627 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
2629         PR plugins/69758
2630         * Makefile.in (PLUGIN_HEADERS): Add params.list.
2632 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
2634         PR target/65313
2635         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
2636         -Wmaybe-uninitialized warning.
2638 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
2640         PR target/69713
2641         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
2643 2016-02-11  Richard Biener  <rguenther@suse.de>
2645         PR rtl-optimization/69291
2646         * ifcvt.c (noce_try_store_flag_constants): Do not allow
2647         subexpressions affected by changing the result.
2649 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
2651         PR target/69148
2652         * lra-constraints.c (curr_insn_transform): Find in/out operands
2653         for secondary memory moves.  Update dups.
2655 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
2657         PR tree-optimization/69652
2658         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
2659         to nested loop, did source re-formatting, skip debug statements,
2660         add check on statement with volatile operand, remove dead scalar
2661         statements.
2663 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
2664             Patrick Palka  <ppalka@gcc.gnu.org>
2666         PR ipa/69241
2667         PR c++/69649
2668         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
2669         calls if the return type is TREE_ADDRESSABLE.
2670         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
2671         * ipa-split.c (split_function): Fix doubled "we" in comment.
2672         Use void return type for the split part even if
2673         !split_point->split_part_set_retval.
2675 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
2677         PR tree-optimization/68021
2678         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
2679         when computing the value of biv cand by itself.
2681 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
2683         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
2684         (cortexa57_tunings): Likewise.
2685         (cortexa72_tunings): Likewise.
2686         (arch_macro_fusion_pair_p): Add support for AES fusion.
2687         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
2688         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2689         Allow virtual registers before reload so early scheduling works.
2690         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
2691         correct latency and pipeline.
2692         (cortex_a57_crypto_complex): Likewise.
2693         (cortex_a57_crypto_xor): Likewise.
2694         (define_bypass): Add AES bypass.
2696 2016-02-10  Richard Biener  <rguenther@suse.de>
2698         PR tree-optimization/69726
2699         * passes.def: Add DCE pass before late uninit.
2700         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
2701         really fixup if-conversions job.
2703 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
2705         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
2706         (arm_cortex_a57_tune): Likewise.
2707         (aarch_macro_fusion_pair_p): Add support for AES fusion.
2708         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
2710 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
2712         * timevar.def (TV_PHASE_DBGINFO): Delete.
2713         (TV_PHASE_CHECK_DBGINFO): Likewise.
2714         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
2716 2016-02-10  Richard Biener  <rguenther@suse.de>
2718         PR tree-optimization/69719
2719         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2720         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
2722 2016-02-09  Andrew Pinski  <apinski@cavium.com>
2724         PR tree-opt/69282
2725         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
2726         get_vcond_mask_icode returns false.
2728 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
2730         PR target/68404
2731         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
2732         an ADDIS that adds a pointer to a large constant that sets the
2733         upper16 bits with a load operation.
2735 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
2737         PR target/68532
2738         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
2739         order.
2740         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
2741         endian.
2742         (vzipq_s16): Likewise.
2743         (vzipq_s32): Likewise.
2744         (vzipq_f32): Likewise.
2745         (vzipq_u8): Likewise.
2746         (vzipq_u16): Likewise.
2747         (vzipq_u32): Likewise.
2748         (vzipq_p8): Likewise.
2749         (vzipq_p16): Likewise.
2751 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
2753         PR target/68532
2754         * config/arm/arm.c (neon_endian_lane_map): New function.
2755         (neon_vector_pair_endian_lane_map): New function.
2756         (arm_evpc_neon_vuzp): Allow for big endian lane order.
2757         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
2758         endian.
2759         (vuzpq_s16): Likewise.
2760         (vuzpq_s32): Likewise.
2761         (vuzpq_f32): Likewise.
2762         (vuzpq_u8): Likewise.
2763         (vuzpq_u16): Likewise.
2764         (vuzpq_u32): Likewise.
2765         (vuzpq_p8): Likewise.
2766         (vuzpq_p16): Likewise.
2768 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
2770         PR target/69634
2771         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
2772         debug insns.
2774 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
2776         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
2777         truncate const_int operand 1 to QImode.
2779 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
2781         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
2782         corresponding to an abnormal edge.
2784 2016-02-09  Tom de Vries  <tom@codesourcery.com>
2786         PR tree-optimization/69599
2787         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
2788         function.
2789         (find_func_aliases_for_builtin_call, find_func_clobbers)
2790         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
2791         partition.
2793 2016-02-09  Richard Biener  <rguenther@suse.de>
2795         PR tree-optimization/69715
2796         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
2797         LHS on calls as non-rewritable.
2799 2016-02-09  Tom de Vries  <tom@codesourcery.com>
2801         PR lto/69707
2802         * lto-wrapper.c (append_diag_options): New function.
2803         (compile_offload_image): Call append_diag_options.
2805 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
2807         PR other/69722
2808         * doc/extend.texi (Flag Output Operands): Correct sectioning.
2809         Minor copy-edit to fix verb tenses.
2811 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
2813         PR tree-optimization/69209
2814         * ipa-split.c (split_function): If split part is not
2815         returning retval, retval has gimple type but is not
2816         gimple value, force it into a SSA_NAME first.
2818 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
2820         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
2821         outdated section.
2823 2016-02-08  Jason Merrill  <jason@redhat.com>
2825         PR c++/69631
2826         * convert.c (convert_to_integer_1): Check dofold on truncation
2827         distribution.
2828         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
2829         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
2830         Rename from *_nofold.
2831         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
2832         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
2834 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
2836         PR target/60410
2837         * tree.c (build_common_tree_nodes): Remove short_double argument.
2838         All callers changed.
2839         * tree.h (build_common_tree_nodes): Adjust declaration.
2840         * doc/invoke.texi (-fshort-double): Remove documentation.
2841         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2842         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
2843         * lto-wrapper.c (merge_and_complain, append_compiler_options)
2844         (append_linker_options): Don't handle OPT_fshort_double.
2846         PR rtl-optimization/68730
2847         * lra-remat.c (insn_to_cand_activation): New static variable.
2848         (lra_remat): Allocate and free it.
2849         (create_cand): New arg activation. Initialize a field in
2850         insn_to_cand_activation if it is nonnull.
2851         (create_cands): Pass the activation insn to create_cand when making
2852         a candidate involving an output reload.  Reorganize code a little.
2853         (do_remat): Keep track of active status of candidates in a separate
2854         bitmap.
2856 2016-02-08  Richard Biener  <rguenther@suse.de>
2858         PR tree-optimization/69719
2859         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2860         Properly use absolute of the difference of the two offsets to
2861         compare or adjust the segment length.
2863 2016-02-08  Richard Biener  <rguenther@suse.de>
2864             Jeff Law  <law@redhat.com>
2866         PR target/68273
2867         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
2868         types for anonymous SSA names.
2870 2016-02-08   Richard Biener  <rguenther@suse.de>
2872         PR rtl-optimization/69274
2873         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
2875 2016-02-08  Jeff Law  <law@redhat.com>
2877         PR tree-optimization/65917
2878         * tree-ssa-dom.c (record_temporary_equivalences): Record both
2879         equivalences from if (x == y) style conditionals.
2880         (loop_depth_of_name): Remove.
2881         (record_equality): Remove loop depth check.
2882         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
2883         (const_and_copies::record_const_or_copy_raw): New member function.
2884         * tree-ssa-scopedtables.c
2885         (const_and_copies::record_const_or_copy_raw): New, factored out of
2886         (const_and_copies::record_const_or_copy): Call new member function.
2888 2016-02-05  Jeff Law  <law@redhat.com>
2890         PR tree-optimization/68541
2891         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
2892         (count_stmts_in_block): New function.
2893         (poor_ifcvt_candidate_code): Likewise.
2894         (is_feasible_trace): Add some heuristics to determine when path
2895         splitting is profitable.
2896         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
2897         is a diamond with a single exit.
2899 2016-02-05  Martin Sebor  <msebor@redhat.com>
2901         PR c++/69662
2902         * doc/invoke.texi: Update -Wplacement-new to take an optional
2903         argument.
2905 2016-02-06  Richard Henderson  <rth@redhat.com>
2907         PR c/69643
2908         * tree.c (tree_nop_conversion_p): Do not strip casts into or
2909         out of non-standard address spaces.
2911 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
2913         PR rtl-optimization/69691
2914         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
2916 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
2918         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
2919         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
2920         (*ieee128_mfvsrd_64bit): Likewise.
2921         (*ieee128_mfvsrd_32bit): Likewise.
2923 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2925         PR target/69369
2926         Revert r232560:
2927         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
2929         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
2930         instrumented_version.
2932 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
2934         * doc/invoke.texi (Optimize Options): In table of --param options
2935         rename second occurrence of tracer-min-branch-ratio to
2936         tracer-min-branch-probability, rename
2937         tracer-min-branch-ratio-feedback to
2938         tracer-min-branch-probability-feedback and clarify description,
2939         rename sched-spec-state-edge-prob-cutoff to
2940         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
2941         to selsched-insns-to-rename, rename lto-minpartition to
2942         lto-min-partition, delete reorder-blocks-duplicate and
2943         reorder-blocks-duplicate-feedback.
2945 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2947         * config/s390/s390.c (s390_register_info_set_ranges): Remove
2948         superfluous loops.
2950 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2952         * doc/extend.texi: S/390: Correct some typos.
2954 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2956         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
2958 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2960         PR target/69625
2961         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
2962         (s390_register_info_gprtofpr): Use new macros above.
2963         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
2964         its name.
2965         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
2966         its name.  Adjust restore and save gpr ranges.
2967         (s390_register_info_set_ranges): New function.
2968         (s390_register_info): Use new macros above.  Call
2969         s390_register_info_set_ranges.
2970         (s390_optimize_register_info): Likewise.
2971         (s390_hard_regno_rename_ok): Use new macros.
2972         (s390_hard_regno_scratch_ok): Likewise.
2973         (s390_emit_epilogue): Likewise.
2974         (s390_can_use_return_insn): Likewise.
2975         (s390_optimize_prologue): Likewise.
2976         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
2978 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
2980         PR bootstrap/69677
2981         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
2982         alignment fixes.
2983         (ix86_option_override_internal): Disable TARGET_STV even for
2984         -m{incoming,preferred}-stack-boundary=3.
2986 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2988         * config.gcc: Mark deprecated rtems targets as obsolete.
2990 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
2992         PR rtl-optimization/64682
2993         PR rtl-optimization/69567
2994         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
2995         before I2 only if the register is both used and set in I2.
2997 2016-02-04  DJ Delorie  <dj@redhat.com>
2999         * config/msp430/msp430.c (msp430_start_function): Add function type.
3001 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
3003         PR fortran/69368
3004         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
3006 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
3008         PR rtl-optimization/69577
3009         Revert:
3010         2015-10-29  Richard Henderson  <rth@redhat.com>
3012         PR target/68124
3013         PR rtl-opt/67609
3014         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3015         sse check to the exact conditions of PR 67609.
3017 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
3019         PR target/69667
3020         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
3021         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
3022         not allowed into the traditional Altivec registers.
3023         (movtd_64bit_nodm): Likewise.
3024         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3026 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
3028         * config/aarch64/cortex-a57-fma-steering.c
3029         (aarch64_register_fma_steering): Remove "static" from arguments
3030         to register_pass.
3032 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
3034         PR target/69619
3035         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
3036         twice when complex.
3038 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
3040         * doc/invoke.texi: Delete -mno-fma4.
3042 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
3044         PR rtl-optimization/69577
3045         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
3046         (find_subregs_of_mode): Update accordingly.  Iterate over partial
3047         definitions.
3049 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
3051         * config/arm/arm-protos.h (neon_reinterpret): Remove.
3052         * config/arm/arm.c (neon_reinterpret): Remove.
3053         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
3054         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
3055         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
3056         vreinterpretti): Remove.
3057         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
3058         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
3059         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
3060         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
3061         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
3062         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
3063         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
3064         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
3065         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
3066         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
3067         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
3068         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
3069         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
3070         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
3071         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
3072         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
3073         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
3074         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
3075         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
3076         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
3077         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
3078         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
3079         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
3080         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
3081         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
3082         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
3083         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
3084         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
3085         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
3086         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
3087         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
3088         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
3089         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
3090         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
3091         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
3092         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
3093         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
3094         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
3095         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
3096         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
3097         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
3098         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
3099         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
3100         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
3101         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
3102         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
3103         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
3104         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
3105         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
3106         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
3107         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
3108         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
3109         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
3110         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
3111         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
3112         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
3113         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
3114         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
3115         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
3116         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
3117         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
3118         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
3119         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
3120         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
3121         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
3122         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
3123         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
3124         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
3125         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
3126         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
3127         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
3128         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
3129         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
3130         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
3131         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
3132         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
3133         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
3134         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
3135         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
3136         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
3137         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
3138         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
3139         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
3140         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
3141         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
3142         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
3143         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
3144         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
3145         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
3146         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
3147         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
3148         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
3149         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
3150         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
3151         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
3152         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
3153         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
3154         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
3155         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
3156         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
3157         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
3158         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
3159         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
3161 2016-02-04  Martin Liska  <mliska@suse.cz>
3163         PR sanitizer/69276
3164         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
3165         that are gimple_store_p.
3166         (maybe_instrument_call): Likewise.
3168 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
3170         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
3171         register scaling out of memory reference and comment why.
3173 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3175         PR target/65932
3176         PR target/67714
3177         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
3178         folding the source of a SET.
3180 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3182         PR target/65932
3183         PR target/67714
3184         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
3185         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
3187 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
3189         PR target/65932
3190         PR target/67714
3191         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
3192         HImode.
3194 2016-02-04  Christian Bruel  <christian.bruel@st.com>
3196         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
3197         * config/arm/arm.c (arm_set_current_function): Likewise.
3199 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
3200             Ilya Enkovich  <enkovich.gnu@gmail.com>
3201             H.J. Lu  <hongjiu.lu@intel.com>
3203         PR target/69454
3204         * config/i386/i386.c (convert_scalars_to_vector): Remove
3205         stack alignment fixes.
3206         (ix86_option_override_internal): Disable TARGET_STV if stack
3207         might not be aligned enough.
3208         (ix86_minimum_alignment): Assert that TARGET_STV is false.
3210 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
3212         * gcc/config/i386/x86-tune.def: Disable default prefetching
3213         for -march=znver1.
3215 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3216             Vladimir Makarov  <vmakarov@redhat.com>
3218         PR target/69461
3219         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
3220         in validating fused toc addresses.
3222 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
3224         PR c/69627
3225         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
3226         range->m_caret fields if range->m_show_caret_p is false.
3228         PR target/69644
3229         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3230         Force oldval into register if it does not satisfy reg_or_short_operand
3231         predicate.  Fix up formatting.
3233 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
3234             Alexandre Oliva  <aoliva@redhat.com>
3236         PR target/69461
3237         * lra-constraints.c (simplify_operand_subreg): Check additionally
3238         address validity after potential reloading.
3239         (process_address_1): Check insns validity.  In case of failure do
3240         nothing.
3242 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
3244         PR target/69118
3245         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
3246         Fix target.
3248 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
3250         * wide-int.cc (canonize_uhwi): New function.
3251         (wi::divmod_internal): Use it.
3253 2016-02-02  James Norris  <jnorris@codesourcery.com
3255         * gimplify.c (omp_notice_variable): Add usage check.
3257 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
3259         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
3260         like LE, GE, LT, GT when emitting relational operator.
3262 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
3264         * ira-costs.c (find_costs_and_classes): Add extra argument.
3265         * target.def (ira_change_pseudo_allocno_class): Add parameter.
3266         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
3267         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
3268         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
3269         Add best_class parameter, and return it if not ALL_REGS.
3270         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
3271         Add parameter.
3272         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
3273         Update target hook.
3275 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
3277         * config/aarch64/aarch64.c
3278         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
3279         (aarch64_ira_change_pseudo_allocno_class): New function.
3281 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
3283         PR target/67032
3284         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
3286 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3288         * config/avr/avr.c (avr_option_override): Set
3289         PARAM_ALLOW_STORE_DATA_RACES to 1.
3291 2016-02-02  Richard Biener  <rguenther@suse.de>
3293         PR tree-optimization/69595
3294         * match.pd: Add range test simplifications to true/false.
3296 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
3298         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
3299         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
3300         instead.
3302 2016-02-02  Richard Biener  <rguenther@suse.de>
3304         PR tree-optimization/69606
3305         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
3306         info on the result before moving a stmt.
3308 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
3310         PR middle-end/68542
3311         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
3312         branch with vector comparison.
3313         * config/i386/sse.md (VI48_AVX): New mode iterator.
3314         (define_expand "cbranch<mode>4): Add support for conditional branch
3315         with vector comparison.
3316         * tree-vect-loop.c (optimize_mask_stores): New function.
3317         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
3318         has_mask_store field of vect_info.
3319         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
3320         vectorized loops having masked stores after vec_info destroy.
3321         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
3322         correspondent macros.
3323         (optimize_mask_stores): Add prototype.
3325 2016-02-02  Alan Modra  <amodra@gmail.com>
3327         PR target/69548
3328         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
3329         allow subregs.
3331 2016-02-02  Alan Modra  <amodra@gmail.com>
3333         PR target/68662
3334         * config/rs6000/rs6000.c (need_toc_init): New var, set it
3335         whenever toc_label_name used.
3336         (rs6000_file_start): Don't set up toc section here,
3337         (rs6000_output_function_epilogue): do so here instead,
3338         (rs6000_xcoff_file_start): and here.
3339         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
3340         (load_toc_aix_di): Likewise.
3342 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
3344         PR rtl-optimization/69592
3345         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
3346         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
3347         (num_sign_bit_copies_binary_arith_p): New inline function.
3348         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
3350 2016-02-01  Jeff Law  <law@redhat.com>
3352         PR tree-optimization/69580
3353         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
3354         * tree-ssa-threadbackward.c
3355         (fsm_find_control_statement_thread_paths): Do not try to walk
3356         through large PHI nodes.
3358 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
3360         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
3361         when count is incremented above limit, don't analyze further
3362         insns afterwards.
3364         * omp-low.c (oacc_parse_default_dims): Avoid
3365         -Wsign-compare warning, make sure value fits into int
3366         rather than just unsigned int.
3368 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
3370         PR tree-optimization/67921
3371         * fold-const.c (split_tree): New parameters.  Convert pointer
3372         type variable part to proper type before negating.
3373         (fold_binary_loc): Pass new arguments to split_tree.
3375 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
3377         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
3378         (nvptx_goacc_validate_dims): Extend to handle global defaults.
3379         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
3380         * doc/tm.texti: Rebuilt.
3381         * doc/invoke.texi (fopenacc-dim): Document.
3382         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
3383         (append_compiler_options): Likewise.
3384         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
3385         (oacc_parse_default_dims): New.
3386         (oacc_validate_dims): Add USED arg.  Select non-unity default when
3387         possible.
3388         (oacc_loop_fixed_partitions): Return mask of used partitions.
3389         (oacc_loop_auto_partitions): Emit dump info.
3390         (oacc_loop_partition): Return mask of used partitions.
3391         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
3392         loop partitioning and validation calls.
3394 2016-02-01  Richard Biener  <rguenther@suse.de>
3396         PR middle-end/69556
3397         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
3399 2016-02-01  Richard Biener  <rguenther@suse.de>
3401         PR tree-optimization/69574
3402         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
3403         of asserting return chrec_dont_know.
3405 2016-02-01  Martin Liska  <mliska@suse.cz>
3407         * mem-stats-traits.h: Add copyright header.
3408         * mem-stats.h: Likewise.
3410 2016-02-01  Richard Biener  <rguenther@suse.de>
3412         PR tree-optimization/69579
3413         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
3414         Do not propagate through abnormal PHI results.
3416 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
3418         * postreload.c (reload_cse_simplify): Remove dead code.
3420 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
3422         PR rtl-optimization/69570
3423         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
3424         if there is more than one set, not if there is a single set.
3426 2016-02-01  Richard Henderson  <rth@redhat.com>
3428         PR rtl-opt/69535
3429         * combine.c (make_compound_operation): When looking through a
3430         subreg, make sure to re-extend to the width of the outer mode.
3432 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
3434         PR tree-optimization/69546
3435         * wide-int.cc (wi::divmod_internal): For unsigned division
3436         where both operands fit into uhwi, if o1 is 1 and o0 has
3437         msb set, if divident_prec is larger than bits per hwi,
3438         clear another quotient word and return 2 instead of 1.
3439         Similarly for remainder with msb in HWI set, if dividend_prec
3440         is larger than bits per hwi.
3442 2016-01-29  Martin Jambor  <mjambor@suse.cz>
3444         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
3445         Use short lowercase names.
3446         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
3447         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
3448         acq_rel one.  Protect warning agains segfaults if
3449         get_memory_order_name returns NULL.
3450         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
3451         with release semantics.  Do not warn if get_memory_order already did.
3452         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
3453         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
3454         if get_memory_order already did.
3456 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
3458         * doc/install.texi: Document that isl-0.16 is supported.
3460 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
3462         PR target/69299
3463         * config/i386/constraints.md (Bm): Describe as special memory
3464         constraint.
3465         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
3466         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
3467         * genpreds.c (struct constraint_data): Add is_special_memory.
3468         (have_special_memory_constraints, special_memory_start): New
3469         static vars.
3470         (special_memory_end): Ditto.
3471         (add_constraint): Add new arg is_special_memory.  Add code to
3472         process its true value.  Update have_special_memory_constraints.
3473         (process_define_constraint): Pass the new arg.
3474         (process_define_register_constraint): Ditto.
3475         (choose_enum_order): Process special memory.
3476         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
3477         function insn_extra_special_memory_constraint.
3478         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
3479         * gensupport.c (process_rtx): Process
3480         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
3481         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
3482         * ira-lives.c (single_reg_class): Use
3483         insn_extra_special_memory_constraint.
3484         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
3485         * lra-constraints.c (process_alt_operands): Ditto.
3486         (curr_insn_transform): Use insn_extra_special_memory_constraint.
3487         * recog.c (asm_operand_ok, preprocess_constraints): Process
3488         CT_SPECIAL_MEMORY.
3489         * reload.c (find_reloads): Ditto.
3490         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
3491         * stmt.c (parse_input_constraint): Use
3492         insn_extra_special_memory_constraint.
3494 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
3496         PR target/69530
3497         * lra-splill.c (lra_final_code_change): Revert r229087 by
3498         removing all sub-registers.
3500 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
3502         PR target/65604
3503         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
3505 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
3507         PR target/69551
3508         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
3509         SSE1, copy target into the temporary reg first before recursing
3510         on it.
3512 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
3514         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
3515         with vm.
3517 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
3519         * ginclude/stdarg.h: Test __cplusplus instead of
3520         __GXX_EXPERIMENTAL_CXX0X__.
3522 2016-01-29  Richard Biener  <rguenther@suse.de>
3524         PR tree-optimization/69547
3525         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
3526         Do not mark clobbers necessary.
3527         (mark_all_reaching_defs_necessary_1): Likewise.
3529 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3531         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
3532         declaration name with %qs and print it in both error messages.
3533         Also fix indentation.
3535 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3537         PR other/69006
3538         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
3539         trailing blank line from error message.
3541 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
3543         PR c++/69462
3544         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
3545         for C++-11.
3547 2016-01-29  Richard Biener  <rguenther@suse.de>
3549         PR middle-end/69537
3550         * match.pd: Allow all integral types when simplifying a
3551         widening or sign-changing conversion.
3553 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
3555         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
3556         back to setting codegen_error to fail codegen.
3558 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
3560         PR target/69459
3561         * config/i386/constraints.md (C): Only accept constant zero operand.
3562         (BC): New constraint.
3563         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
3564         instead of C constraint.
3565         * doc/md.texi (Machine Constraints): Update description
3566         of C constraint.
3568 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
3570         PR target/68400
3571         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
3573 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
3575         PR middle-end/69542
3576         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
3577         non-debug insns.
3579 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
3581         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
3582         branches if using guessed profile.
3584 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
3586         * graphite-optimize-isl.c (optimize_isl): Fix dump.
3588 2016-01-28  Richard Henderson  <rth@redhat.com>
3590         PR target/69305
3591         * config/aarch64/aarch64-modes.def (CC_Cmode): New
3592         * config/aarch64/aarch64-protos.h: Update.
3593         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
3594         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
3595         (aarch64_get_condition_code_1): Handle CC_Cmode.
3596         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
3597         (*add<mode>3_compareC_cconly_imm): New.
3598         (*add<mode>3_compareC_cconly): New.
3599         (*add<mode>3_compareC_imm): New.
3600         (add<mode>3_compareC): New.
3601         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
3602         to be first.  Use aarch64_carry_operation.
3603         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
3604         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
3605         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
3606         (subti3): Use subdi3_compare1.
3607         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
3608         (sub<mode>3_compare1): New.
3609         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
3610         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
3611         (*subsi3_carryin_uxtw): Likewise.
3612         (*ngc<mode>, *ngcsi_uxtw): Likewise.
3613         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
3614         * config/aarch64/iterators.md (DWI): New.
3615         * config/aarch64/predicates.md (aarch64_carry_operation): New.
3616         (aarch64_borrow_operation): New.
3618 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3620         * graphite-optimize-isl.c (optimize_isl): Print a different debug
3621         message when isl does not return a valid schedule.
3623 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
3625         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3626         Remove comments from class declarations: they are already in the code
3627         close by the defs.
3629 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
3631         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
3632         codegen_error_p.
3633         (ternary_op_to_tree): Same.
3634         (unary_op_to_tree): Same.
3635         (nary_op_to_tree): Same.
3636         (gcc_expression_from_isl_expr_op): Same.
3637         (gcc_expression_from_isl_expression): Same.
3638         (graphite_create_new_loop): Same.
3639         (graphite_create_new_loop_guard): Same.
3640         (build_iv_mapping): Same.
3641         (graphite_create_new_guard): Same.
3642         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
3643         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
3645 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
3647         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
3648         instead of setting codegen_error to fail codegen.
3650 2016-01-28  Jason Merrill  <jason@redhat.com>
3652         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
3654 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
3656         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
3657         Remove CONST_INT_P check in CCMP cost calculation.
3659 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
3661         * config/aarch64/aarch64.c (generic_vector_cost):
3662         Set vec_permute_cost.
3663         (cortexa57_vector_cost): Likewise.
3664         (exynosm1_vector_cost): Likewise.
3665         (xgene1_vector_cost): Likewise.
3666         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
3667         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
3668         Add vec_permute_cost entry.
3670 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
3672         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
3673         immediate as %1.
3674         (add<mode>3_compare0): Likewise.
3675         (addsi3_compare0_uxtw): Likewise.
3676         (add<mode>3nr_compare0): Likewise.
3677         (compare_neg<mode>): Likewise.
3678         (<optab><mode>3): Likewise.
3680 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
3682         * tree-vect-stmts.c (vectorizable_comparison): Add
3683         NULL check for vectype.
3685 2016-01-28  Richard Biener  <rguenther@suse.de>
3687         PR tree-optimization/69466
3688         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3689         Account for PHIs we couldn't duplicate.
3691 2016-01-28  Martin Liska  <mliska@suse.cz>
3693         PR pch/68758
3694         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
3695         instead of ENABLE_VALGRIND_CHECKING.
3697 2016-01-27  Richard Henderson  <rth@redhat.com>
3699         PR rtl-opt/69447
3700         * lra-remat.c (subreg_regs): New.
3701         (dump_candidates_and_remat_bb_data): Dump it.
3702         (operand_to_remat): Reject if operand in subreg_regs.
3703         (set_bb_regs): Collect subreg_regs.
3704         (lra_remat): Init and free subreg_regs.  Compute
3705         calculate_local_reg_remat_bb_data before create_cands.
3707 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
3709         PR target/68986
3710         * config/i386/i386.c (ix86_update_stack_boundary): Don't
3711         change stack_alignment_needed for __tls_get_addr call.
3713 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
3715         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
3717 2016-01-27  Jeff Law  <law@redhat.com>
3719         PR tree-optimization/68398
3720         PR tree-optimization/69196
3721         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
3722         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
3723         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3724         Only count PHIs in the last block in the path.  The others will
3725         const/copy propagate away.  Add heuristic to allow more irreducible
3726         subloops to be created when it is likely profitable to do so.
3728         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3729         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
3730         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
3732 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
3734         PR lto/69254
3735         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
3736         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
3737         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
3738         * tree-streamer-in.c: Include asan.h.
3739         (streamer_get_builtin_tree): For builtins in sanitizer
3740         range call initialize_sanitizer_builtins and retry.
3742 2016-01-27  Ian Lance Taylor  <iant@google.com>
3744         * common.opt (fkeep-gc-roots-live): New undocumented option.
3745         * tree-ssa-loop-ivopts.c (add_candidate_1): If
3746         -fkeep-gc-roots-live, skip pointers.
3747         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
3748         NULL.
3750 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
3752         PR target/69512
3753         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
3754         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
3756 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
3758         PR target/68380
3759         * configure.ac: NetBSD provides SSP in its C library.
3760         * configure: Updated.
3762 2016-01-27  Richard Biener  <rguenther@suse.de>
3764         PR tree-optimization/69166
3765         * tree-vect-loop.c (vect_is_simple_reduction): Always check
3766         reduction code for commutativity / associativity.
3768 2016-01-27  Martin Jambor  <mjambor@suse.cz>
3770         PR tree-optimization/69355
3771         * tree-sra.c (analyze_access_subtree): Correct hole detection when
3772         total_scalarization fails.
3774 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
3776         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
3777         power9.
3779 2016-01-27  Christian Bruel  <christian.bruel@st.com>
3781         PR target/69245
3782         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
3783         Move arm_reset_previous_fndecl and set_target_option_current_node in
3784         the conditional part.  Call save_restore_target_globals.
3785         * config/arm/arm.c (arm_set_current_function):
3786         Refactor to better support #pragma target and attribute mix.
3787         Call save_restore_target_globals.
3788         * config/arm/arm-protos.h (save_restore_target_globals): New function.
3790 2016-01-27  Martin Liska  <mliska@suse.cz>
3792         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
3793         reference for an HSA kernel and its host function.
3795 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
3797         PR tree-optimization/69399
3798         * wide-int.h (wi::lrshift): For larger precisions, only
3799         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
3801 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
3803         * config/arc/predicates.md (proper_comparison_operator): Reject
3804         constant-constant comparison.
3806 2016-01-26  Tom de Vries  <tom@codesourcery.com>
3808         PR tree-optimization/69110
3809         * tree-data-ref.c (initialize_data_dependence_relation): Handle
3810         DR_NUM_DIMENSIONS == 0.
3812 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
3813             Sebastian Pop  <s.pop@samsung.com>
3815         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
3816         isl_ast_op_cond and isl_ast_op_select.
3817         (gcc_expression_from_isl_expr_op): Same.
3819 2016-01-26  Jason Merrill  <jason@redhat.com>
3821         PR c++/68782
3822         * tree.c (recompute_constructor_flags): Split out from
3823         build_constructor.
3824         (verify_constructor_flags): New.
3825         * tree.h: Declare them.
3827 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
3829         PR rtl-optimization/69217
3830         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
3831         are no TYPE_FIELDS set for the record type.
3833 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3835         PR target/68662
3836         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
3837         toc_label_name unconditionally.
3838         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
3839         SYMBOL_REF string.  Use toc_label_name instead of constructing
3840         LCTOC1.
3841         (rs6000_elf_declare_function_name): Use toc_label_name instead of
3842         constructing LCTOC1.
3844 2016-01-26  Martin Sebor  <msebor@redhat.com>
3846         PR other/69477
3847         * doc/extend.texi (Common Type Attributes): Move text that talks about
3848         attribute packed from attribute aligned to the section discussing
3849         the former attribute for clarity.
3851 2016-01-26  Richard Henderson  <rth@redhat.com>
3853         PR middle-end/60908
3854         * trans-mem.c (tm_region_init): Mark entry block as visited.
3856 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
3858         PR other/69006
3859         * diagnostic-show-locus.c (layout::print_source_line): Replace
3860         call to pp_newline with call to layout::print_newline.
3861         (layout::print_annotation_line): Likewise.
3862         (layout::move_to_column): Likewise.
3863         (layout::print_any_fixits): After printing any fixits, print a
3864         trailing newline, if necessary.
3865         (layout::print_newline): New method, resetting any colorization
3866         before a newline.
3867         (diagnostic_show_locus): Move the pp_newline to before the
3868         early bailout.  Remove dummy block enclosing the layout instance.
3869         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
3870         of pp_newline_and_flush with pp_flush.
3871         (diagnostic_append_note): Delete use of pp_newline.
3872         (diagnostic_append_note_at_rich_loc): Delete.
3873         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
3874         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
3875         when newline characters are added to the buffer.
3877 2016-01-26  Michael Matz  <matz@suse.de>
3879         * configure.ac (ac_cv_std_swap_in_utility): New test.
3880         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
3881         * configure: Regenerate.
3882         * config.in: Regenerate.
3884 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
3886         * config/arc/arc.md (cstoresi4): Force operand into register.
3887         (arcset<code>): Fix predicate.
3888         (arcsetltu): Likewise.
3889         (arcsetgeu): Likewise.
3890         (arcsethi): Likewise.
3891         (arcsetls): Likewise.
3893 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3895         PR tree-optimization/69483
3896         * gimple-fold.c (canonicalize_constructor_val): Return NULL
3897         if base has error_mark_node type.
3899 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
3901         PR target/68620
3902         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
3903         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
3904         New helper macros.
3905         (vget_lane_f16): Handle big-endian.
3906         (vgetq_lane_f16): Likewise.
3907         (vset_lane_f16): Likewise.
3908         (vsetq_lane_f16): Likewise.
3909         * config/arm/iterators.md (VQXMOV): Add V8HF.
3910         (VDQ): Add V4HF and V8HF.
3911         (V_reg): Handle V4HF and V8HF.
3912         (Is_float_mode): Likewise.
3913         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
3914         neon_vdup_nv8hf): New patterns.
3915         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
3916         Use VD_LANE iterator.
3917         (neon_vld1_dup<mode>): Use VQ2 iterator.
3919 2016-01-26  Nathan Sidwell  <nathan@acm.org>
3921         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
3922         (set_oacc_fn_attrib): Add IS_KERNEL arg.
3923         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
3924         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
3925         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
3926         (oacc_validate_dims): Add LEVEL arg, don't return level.
3927         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
3928         oacc_validate_dims.
3929         (execute_oacc_device_lower): Adjust, add more dump output.
3930         * tree-ssa-loop.c (gate_oacc_kernels): Use
3931         oacc_fn_attrib_kernels_p.
3932         * tree-parloops.c (create_parallel_loop): Adjust
3933         set_oacc_fn_attrib call.
3935 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3937         PR lto/69254
3938         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
3939         (append_compiler_options): Handle -fcilkplus.
3940         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
3942 2016-01-26  Nick Clifton  <nickc@redhat.com>
3944         PR target/66655
3945         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
3946         been marked as DECL_ONE_ONLY but we do not the means to make it
3947         so, then do not allow it to bind locally.
3949 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3951         PR lto/69254
3952         * opts.h (parse_sanitizer_options): New prototype.
3953         * opts.c (sanitizer_opts): New array.
3954         (parse_sanitizer_options): New function.
3955         (common_handle_option): Use parse_sanitizer_options.
3957 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
3959         PR target/68986
3960         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
3961         alignment adjustment to ...
3962         (ix86_update_stack_boundary): Here.  Don't over-align stack for
3963         __tls_get_addr.
3964         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
3965         if __tls_get_addr is called.
3967 2016-01-26  Christian Bruel  <christian.bruel@st.com>
3969         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
3971 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
3973         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
3975 2016-01-26  Richard Biener  <rguenther@suse.de>
3977         PR middle-end/69467
3978         * match.pd: Guard X * CST CMP 0 pattern with single_use.
3980 2016-01-26  Richard Biener  <rguenther@suse.de>
3982         PR tree-optimization/69452
3983         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
3984         (move_computations_dom_walker::before_dom_children): Rename
3985         to ...
3986         (move_computations_worker): This.
3987         (move_computations): Perform an RPO rather than a DOM walk.
3989 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3991         PR target/69442
3992         * combine.c (combine_instructions): For REG_EQUAL note with
3993         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
3994         to the underlying register.
3995         * doc/rtl.texi (REG_EQUAL): Document the behavior of
3996         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
3998 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
4000         PR target/67896
4001         * config/aarch64/aarch64-builtins.c
4002         (aarch64_init_simd_builtin_types): Do not set structural
4003         equality to __Poly{8,16,64,128}_t types.
4005 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
4007         PR tree-optimization/69400
4008         * wide-int.cc (wi_pack): Take the precision as argument and
4009         perform canonicalization here rather than in the callers.
4010         Use the main loop to handle all full-width HWIs.  Add a
4011         zero HWI if in_len isn't a full result.
4012         (wi::divmod_internal): Update accordingly.
4013         (wi::mul_internal): Likewise.  Simplify.
4015 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
4016             Sebastian Pop  <s.pop@samsung.com>
4018         * graphite-poly.c (apply_poly_transforms): Simplify.
4019         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
4020         (print_isl_map): Same.
4021         (print_isl_union_map): Same.
4022         (print_isl_schedule): New.
4023         (debug_isl_schedule): New.
4024         * graphite-dependences.c (scop_get_reads): Do not call
4025         isl_union_map_add_map that is undocumented isl functionality.
4026         (scop_get_must_writes): Same.
4027         (scop_get_may_writes): Same.
4028         (scop_get_original_schedule): Remove.
4029         (scop_get_dependences): Do not call isl_union_map_compute_flow that
4030         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
4031         (compute_deps): Remove.
4032         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
4033         (debug_schedule_ast): New.
4034         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
4035         set_separate_option.
4036         (graphite_regenerate_ast_isl): Add dump.
4037         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
4038         from scop->transformed_schedule.
4039         (graphite_regenerate_ast_isl): Add more dump.
4040         * graphite-optimize-isl.c (optimize_isl): Set
4041         scop->transformed_schedule.  Check whether schedules are equal.
4042         (apply_poly_transforms): Move here.
4043         * graphite-poly.c (apply_poly_transforms): ... from here.
4044         (free_poly_bb): Static.
4045         (free_scop): Static.
4046         (pbb_number_of_iterations_at_time): Remove.
4047         (print_isl_ast): New.
4048         (debug_isl_ast): New.
4049         (debug_scop_pbb): New.
4050         * graphite-scop-detection.c (print_edge): Move.
4051         (print_sese): Move.
4052         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4053         (build_scop_scattering): Remove.
4054         (create_pw_aff_from_tree): Assert instead of bailing out.
4055         (add_condition_to_pbb): Remove unused code, do not fail.
4056         (add_conditions_to_domain): Same.
4057         (add_conditions_to_constraints): Remove.
4058         (build_scop_context): New.
4059         (add_iter_domain_dimension): New.
4060         (build_iteration_domains): Initialize pbb->iterators.
4061         Call add_conditions_to_domain.
4062         (nested_in): New.
4063         (loop_at): New.
4064         (index_outermost_in_loop): New.
4065         (index_pbb_in_loop): New.
4066         (outermost_pbb_in): New.
4067         (add_in_sequence): New.
4068         (add_outer_projection): New.
4069         (outer_projection_mupa): New.
4070         (add_loop_schedule): New.
4071         (build_schedule_pbb): New.
4072         (build_schedule_loop): New.
4073         (embed_in_surrounding_loops): New.
4074         (build_schedule_loop_nest): New.
4075         (build_original_schedule): New.
4076         (build_poly_scop): Call build_original_schedule.
4077         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
4078         (free_poly_dr): Remove.
4079         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
4080         (free_poly_bb): Remove.
4081         (debug_loop_vec): Remove.
4082         (print_isl_ast): Declare.
4083         (debug_isl_ast): Declare.
4084         (scop_do_interchange): Remove.
4085         (scop_do_strip_mine): Remove.
4086         (scop_do_block): Remove.
4087         (flatten_all_loops): Remove.
4088         (optimize_isl): Remove.
4089         (pbb_number_of_iterations_at_time): Remove.
4090         (debug_scop_pbb): Declare.
4091         (print_schedule_ast): Declare.
4092         (debug_schedule_ast): Declare.
4093         (struct scop): Remove schedule.  Add original_schedule,
4094         transformed_schedule.
4095         (free_gimple_poly_bb): Remove.
4096         (print_generated_program): Remove.
4097         (debug_generated_program): Remove.
4098         (unify_scattering_dimensions): Remove.
4099         * sese.c (print_edge): ... here.
4100         (print_sese): ... here.
4101         (debug_edge): ... here.
4102         (debug_sese): ... here.
4103         * sese.h (print_edge): Declare.
4104         (print_sese): Declare.
4105         (dump_edge): Declare.
4106         (dump_sese): Declare.
4108 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
4109             Sebastian Pop  <s.pop@samsung.com>
4111         * Makefile.in: Set ISLVER in site.exp.
4113 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
4115         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
4116         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
4117         through DECL_VALUE_EXPR for expansion.
4119 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4121         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
4122         the frame info after reload completed.
4124 2016-01-25  Jeff Law  <law@redhat.com>
4126         PR tree-optimization/69196
4127         PR tree-optimization/68398
4128         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
4129         tree-ssa-threadupdate.c.
4130         (determine_bb_domination_status): Prototype
4131         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
4132         (determine_bb_domination_status): No longer static.
4133         (valid_jump_thread_path): Remove code to detect characteristics
4134         of the jump thread path not associated with correctness.
4135         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
4136         Correct test for thread path length.  Count PHIs for real operands as
4137         statements that need to be copied.  Do not count ASSERT_EXPRs.
4138         Look at all the blocks in the thread path.  Compute and selectively
4139         filter thread paths based on threading through the latch, threading
4140         a multiway branch or crossing a multiway branch.
4142 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4144         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
4145         decl with __attribute__ ((unused)) annotation.
4147 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
4149         PR target/69421
4150         * tree-vect-stmts.c (vectorizable_condition): Check vectype
4151         of operands is compatible with a statement vectype.
4153 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
4155         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
4156         improve wording for mixed storage order support.
4158 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
4160         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
4161         (vcvt_u64_f64): Likewise.
4162         (vcvta_s64_f64): Likewise.
4163         (vcvta_u64_f64): Likewise.
4164         (vcvtm_s64_f64): Likewise.
4165         (vcvtm_u64_f64): Likewise.
4166         (vcvtn_s64_f64): Likewise.
4167         (vcvtn_u64_f64): Likewise.
4168         (vcvtp_s64_f64): Likewise.
4169         (vcvtp_u64_f64): Likewise.
4171 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
4173         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
4174         (arc_init): Check validity mll64 option.
4175         (arc_save_restore): Use double load/store instruction.
4176         (arc_expand_movmem): Likewise.
4177         (arc_split_move): Don't split if we have double load/store
4178         instructions. Returns a boolean.
4179         (arc_process_double_reg_moves): Change function to return boolean
4180         instead of a sequence of instructions.
4181         (arc_dwarf_register_span): New function.
4182         * config/arc/arc-protos.h (arc_split_move): Change prototype.
4183         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
4184         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
4185         (*movdf_insn): Likewise.
4186         * config/arc/arc.opt (mll64): New option.
4187         * config/arc/predicates.md (even_register_operand): New predicate.
4188         * doc/invoke.texi (ARC Options): Add mll64 documentation.
4190 2016-01-25  Richard Biener  <rguenther@suse.de>
4192         PR lto/69393
4193         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
4194         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
4195         DECL_NAMELESS.
4196         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
4198 2016-01-25  Richard Biener  <rguenther@suse.de>
4200         PR tree-optimization/69376
4201         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
4202         flag.
4203         (VN_INFO_ANTI_RANGE_P): New inline.
4204         (VN_INFO_RANGE_TYPE): Likewise.
4205         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
4206         SSA_NAME_ANTI_RANGE_P.
4207         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
4208         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4209         Properly query VN_INFO_RANGE_TYPE.
4211 2016-01-25  Nick Clifton  <nickc@redhat.com>
4213         PR target/66655
4214         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
4216 2016-01-23  Tom de Vries  <tom@codesourcery.com>
4218         PR tree-optimization/69426
4219         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
4220         removed clobber.
4222 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
4224         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
4225         "the the" with "the" in the comments.
4226         * ipa-devirt.c (build_type_inheritance_graph,
4227         update_type_inheritance_graph): Likewise.
4228         * tree.c (build_function_type_list_1): Likewise.
4229         * cfgloopmanip.c (scale_loop_profile): Likewise.
4230         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
4231         * gimple-ssa-split-paths.c
4232         (find_block_to_duplicate_for_splitting_paths): Likewise.
4233         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
4234         * expr.c (convert_move): Likewise.
4235         * var-tracking.c (vt_stack_adjustments): Likewise.
4236         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
4237         * tree-vrp.c (test_for_singularity): Likewise.
4239         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
4240         directly instead of building a temporary tree.
4242         PR bootstrap/69434
4243         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
4244         remove <algorithm> include.
4246 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
4248         PR target/69432
4249         * config/i386/i386.c: Include dojump.h.
4250         (expand_small_movmem_or_setmem,
4251         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
4252         fixes.
4253         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
4254         if dynamic_check != -1.
4256 2016-01-21  Jeff Law  <law@redhat.com>
4258         PR middle-end/69347
4259         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
4260         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
4261         into dominated_by_p.
4262         (cprop_into_successor_phis): Avoid unnecessary tests.
4264 2016-01-22  Richard Henderson  <rth@redhat.com>
4266         PR target/69416
4267         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
4268         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
4270 2016-01-22  Michael Matz  <matz@suse.de>
4272         * system.h (string, algorithm): Include only conditionally.
4273         (new): Include always under C++.
4274         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
4275         * final.c (toplevel): Ditto.
4276         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
4277         * genconditions.c (write_header): Make gencondmd.c define
4278         INCLUDE_STRING.
4279         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
4281         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
4282         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
4284 2016-01-22  Christian Bruel  <christian.bruel@st.com>
4286         PR target/68674
4287         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
4289 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4291         PR target/69403
4292         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
4293         define_insn_and_split.  Ensure operands[1] and operands[0] do not
4294         get assigned the same register.
4296 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
4298         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
4300 2016-01-22  Christian Bruel  <christian.bruel@st.com>
4302         * config/arm/arm-c.c (arm_pragma_target_parse):
4303         Remove warn_builtin_macro_redefined overwrite.
4305 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
4307         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
4308         flag_non_call_exceptions compatibility.
4310 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
4312         PR debug/66668
4313         * dwarf2out.c (add_child_die_after): New function.
4314         (dwarf_qual_info_t): New type.
4315         (dwarf_qual_info): New variable.
4316         (qualified_die_p): New function.
4317         (modified_type_die): For -fdebug-types-section, ensure
4318         canonical order of qualifiers.  Put qualified DIEs adjacent
4319         to the corresponding non-qualified type DIE and search there
4320         for existing qualified DIEs.
4322 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
4324         * doc/extend.texi (scalar_storage_order type attribute): Document
4325         restriction on type punning and aliasing, and remove future tense.
4327 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
4329         PR target/69252
4330         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
4331         first stage.
4333 2016-01-21  Jeff Law  <law@redhat.com>
4335         PR middle-end/69347
4336         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
4337         useless call to record_temporary_equivalences.
4338         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
4339         allocate 10 slots in the bb_path vector and let it grow as needed.
4340         (fsm_find_control_statement_thread_paths): Similarly for the next_path
4341         vector.
4343 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
4345         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
4346         Detangle.
4347         * configure: Regenerate.
4349 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
4351         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
4352         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
4354 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
4356         PR middle-end/66178
4357         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
4358         drop EXPAND_INITIALIZER.
4359         * rtl.h (contains_symbolic_reference_p): Declare.
4360         * rtlanal.c (contains_symbolic_reference_p): New function.
4361         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
4362         a subtraction into a NOT if symbolic constants are involved.
4364 2016-01-21  Anton Blanchard  <anton@samba.org>
4365             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4367         PR target/63354
4368         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
4369         #define.
4370         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
4371         function.
4373 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
4375         * config/microblaze/microblaze.c
4376         (get_branch_target): New.
4377         (insert_wic_for_ilb_runout): New.
4378         (insert_wic): New.
4379         (microblaze_machine_dependent_reorg): New.
4380         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
4381         * config/microblaze/microblaze.md
4382         (UNSPEC_IPREFETCH): Define.
4383         (iprefetch): New pattern
4384         * config/microblaze/microblaze.opt
4385         (mxl-prefetch): New flag.
4387 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
4389         * config/microblaze/microblaze.h
4390         (FIXED_REGISTERS): Update in macro.
4391         (CALL_USED_REGISTERS): Update in macro.
4393 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
4395         PR rtl-optimization/68920
4396         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
4397         moves.
4399 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
4401         PR rtl-optimization/68990
4402         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
4403         pseudo instead of inheritance ones.
4405 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4406             Nick Clifton  <nickc@redhat.com>
4408         PR target/69129
4409         PR target/69012
4410         * config/mips/mips.c (mips_compute_frame_info): Initialise
4411         args_size and hard_frame_pointer_offset fields of the frame
4412         structure before calling mips_global_pointer.
4414 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
4416         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
4417         label reference.
4418         * configure: Regenerate.
4420 2016-01-21  Richard Biener  <rguenther@suse.de>
4422         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
4424 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
4426         * config/s390/s390.c (s390_asm_declare_function_size): Add code
4427         to actually emit the .size directive.
4429 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
4430              Jakub Jelinek  <jakub@redhat.com>
4432         PR target/69187
4433         PR target/65624
4434         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
4435         args array size by one to avoid buffer overflow.
4437 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
4439         * config/s390/s390.md (pool_section_start): Use switch_to_section
4440         to select proper read-only data section instead of hardcoding
4441         .rodata.
4442         (pool_section_end): Use switch_to_section to match the above.
4444 2016-01-21  Richard Biener  <rguenther@suse.de>
4446         PR tree-optimization/69378
4447         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
4448         (set_ssa_val_to): Use it for dominance checks taking into
4449         account not executable edges.
4451 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
4453         PR c++/69355
4454         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
4455         for bitsize instead of GET_MODE_PRECISION (mode).
4457 2016-01-20  Martin Sebor  <msebor@redhat.com>
4459         PR c/52291
4460         * extend.texi (__sync Builtins): Clarify the semantics of
4461         __sync_fetch_and_OP built-ins on pointers.
4462         (__atomic Builtins): Same.
4464 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4465             Sebastian Pop  <s.pop@samsung.com>
4467         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
4468         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
4469         (is_valid_rename): Same.
4470         (translate_isl_ast_to_gimple::get_rename): Same.
4471         (translate_isl_ast_to_gimple::rename_all_uses): Same.
4472         (translate_isl_ast_to_gimple::rename_uses): Same.
4473         (get_new_name): Check for close_phi nodes.
4474         (copy_loop_phi_args): Use phi_node_kind.
4475         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
4476         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
4478 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4479             Sebastian Pop  <s.pop@samsung.com>
4481         Revert commit r229783.
4482         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4483         Remove use of parameter_rename_map.
4484         (copy_def): Remove.
4485         (copy_internal_parameters): Remove.
4486         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4487         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4488         (free_sese_info): Do not free parameter_rename_map.
4489         (set_rename): Do not use parameter_rename_map.
4490         (rename_uses): Update call to set_rename.
4491         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4492         * sese.h (parameter_rename_map_t): Remove.
4493         (struct sese_info_t): Remove field parameter_rename_map.
4495 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4496             Sebastian Pop  <s.pop@samsung.com>
4498         * graphite-isl-ast-to-gimple.c: Fix comment.
4499         * graphite-scop-detection.c (defined_in_loop_p): New.
4500         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
4501         names defined in loop.
4503 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4504             Sebastian Pop  <s.pop@samsung.com>
4506         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
4507         Discard unstructured if-then-else regions.
4509 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4510             Sebastian Pop  <s.pop@samsung.com>
4512         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
4513         (cleanup_loop_iter_dom): Remove.
4514         (build_loop_iteration_domains): Remove.
4515         (build_scop_context): Remove.
4516         (build_scop_iteration_domain): Remove.
4517         (add_loop_constraints): New.
4518         (build_iteration_domains): New.
4519         (build_poly_scop): Call build_iteration_domains.
4521 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4522             Sebastian Pop  <s.pop@samsung.com>
4524         * graphite-scop-detection.c
4525         (scop_detection::harmful_loop_in_region): Free dom and loops.
4526         (scop_detection::loop_body_is_valid_scop): Free bbs.
4528 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4529             Sebastian Pop  <s.pop@samsung.com>
4531         * graphite-scop-detection.c (record_loop_in_sese): New.
4532         (gather_bbs::before_dom_children): Call record_loop_in_sese.
4533         (build_scops): Remove call to build_sese_loop_nests.
4534         * sese.c (sese_record_loop): Remove.
4535         (build_sese_loop_nests): Remove.
4536         (new_sese_info): Remove region->loops.
4537         (free_sese_info): Same.
4538         * sese.h (sese_contains_loop): Same.
4539         (build_sese_loop_nests): Remove.
4540         (sese_contains_loop): Remove.
4542 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4543             Sebastian Pop  <s.pop@samsung.com>
4545         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
4546         loop_is_valid_in_scop.
4547         (scop_detection::harmful_stmt_in_region): Renamed
4548         harmful_loop_in_region.
4549         Call loop_is_valid_in_scop.
4551 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4552             Sebastian Pop  <s.pop@samsung.com>
4554         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
4555         isl_ast_node_mark.
4557 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4558             Sebastian Pop  <s.pop@samsung.com>
4560         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
4561         * graphite.h (struct poly_bb): Remove field is_reduction.
4562         (PBB_IS_REDUCTION): Remove.
4564 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
4565             Sebastian Pop  <s.pop@samsung.com>
4567         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
4568         (add_pdr_constraints): Same.
4569         (scop_get_reads): Same.
4570         (scop_get_must_writes): Same.
4571         (scop_get_may_writes): Same.
4572         (scop_get_original_schedule): Same.
4573         (extend_schedule): Same.
4574         (apply_schedule_on_deps): Same.
4575         (carries_deps): Same.
4576         (compute_deps): Same.
4577         (scop_get_dependences): Same.
4578         * graphite-isl-ast-to-gimple.c
4579         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
4580         * graphite-optimize-isl.c (get_schedule_for_band): Same.
4581         (get_schedule_for_band_list): Same.
4582         (get_schedule_map): Same.
4583         (apply_schedule_map_to_scop): Same.
4584         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
4585         (build_loop_iteration_domains): Same.
4586         (add_condition_to_pbb): Same.
4587         (add_param_constraints): Same.
4588         (pdr_add_memory_accesses): Same.
4589         (pdr_add_data_dimensions): Same.
4591 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
4593         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
4594         requirements.
4596 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
4598         * common.opt (feliminate-dwarf2-dups): Replace references to
4599         "DWARF 2" with just "DWARF".
4600         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
4601         * doc/extend.texi: Likewise.
4602         * doc/cpp.texi: Likewise.
4603         * doc/invoke.texi: Likewise.
4604         (Option Summary): Add -gdwarf to list of Debugging Options.
4605         (Debugging Options): Document -gdwarf.
4606         * doc/contrib.texi: Spell "DWARF" like that.
4608 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
4610         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
4611         warning.  Fix up formatting.
4613         PR middle-end/67653
4614         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
4615         attempt to mark memory input operand addressable and
4616         call prepare_gimple_addressable in that case.  Don't adjust
4617         input_location for diagnostics, use error_at instead.
4619 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
4621         * config/rs6000/ppc-auxv.h: New file.
4622         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
4623         (cpu_is): Likewise.
4624         (cpu_supports): Likewise.
4625         * config/rs6000/rs6000.c: include "ppc-auxv.h".
4626         (cpu_is_info): New variable.
4627         (cpu_supports_info): Likewise.
4628         (tcb_verification_symbol): Likewise.
4629         (cpu_builtin_p): Likewise.
4630         (cpu_expand_builtin): New function.
4631         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
4632         (rs6000_init_builtins): Likewise.
4633         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
4634         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
4635         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
4636         * configure: Regenerate.
4637         * config.in: Likewise.
4638         * doc/extend.texi (PowerPC Built-in Functions): Document
4639         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
4641 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
4643         PR target/68609
4644         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
4645         domain check.
4646         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
4647         for V4SFmode.
4649 2016-01-20  Richard Henderson  <rth@redhat.com>
4651         PR bootstrap/69343
4652         PR bootstrap/69339
4653         PR tree-opt/68964
4654         Revert:
4655         * tree.c (tm_define_builtin): New.
4656         (find_tm_vector_type): New.
4657         (build_tm_vector_builtins): New.
4658         (build_common_builtin_nodes): Call it.
4660 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
4662         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
4663         (arm_fp_ok): Likewise.
4664         (arm_fp): Likewise.
4665         (arm_crypto): Likewise.
4667 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
4668             Richard Biener  <rguenther@suse.de>
4670         PR tree-optimization/69328
4671         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
4672         vectors have same number of elements.
4673         (vectorizable_condition): Fix masked version recognition.
4675 2016-01-20  Richard Biener  <rguenther@suse.de>
4677         PR tree-optimization/69345
4678         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
4679         (VN_INFO_PTR_INFO): Likewise.
4680         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
4681         info when it is equal between non-dominating SSA names.
4682         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4683         Make sure to look at original SSA infos.
4685 2016-01-20  Jeff Law  <law@redhat.com>
4687         PR target/25114
4688         * config/m68k/predicates.md (pow2_m1_operand): New predicate
4689         extracted from ...
4690         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
4691         (pc_or_label_operand): New predicate.
4692         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
4693         tests for small integers that are 2^n - 1.
4695 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
4697         * doc/invoke.texi (Options Summary): Add '.' after @xref.
4699 2016-01-19  Jeff Law  <law@redhat.com>
4701         PR middle-end/69347
4702         * tree-ssa-threadbackwards.c
4703         (fsm_find_control_statement_thread_paths): Do not try to lookup
4704         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
4706 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4708         * doc/lto.texi: Remove text that says only Gold has linker plugin
4709         support.
4711 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
4713         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
4714         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
4715         the DIE accordingly.
4716         (modified_type_die): Add REVERSE parameter and pass it recursively,
4717         as well as to base_type_die.  Adjust presence check accordingly.
4718         (base_type_for_mode): Adjust call to modified_type_die.
4719         (add_type_attribute): Add REVERSE parameter and pass it to
4720         modified_type_die.
4721         (generic_parameter_die): Adjust call to add_type_attribute.
4722         (add_scalar_info): Likewise.
4723         (add_subscript_info): Likewise.
4724         (gen_array_type_die): Likewise.
4725         (gen_descr_array_type_die): Likewise.
4726         (gen_entry_point_die): Likewise.
4727         (gen_enumeration_type_die): Likewise.
4728         (gen_formal_parameter_die): Likewise.
4729         (gen_subprogram_die): Likewise.
4730         (gen_variable_die ): Likewise.
4731         (gen_const_die): Likewise.
4732         (gen_field_die): Likewise.
4733         (gen_pointer_type_die): Likewise.
4734         (gen_reference_type_die): Likewise.
4735         (gen_ptr_to_mbr_type_die): Likewise.
4736         (gen_inheritance_die): Likewise.
4737         (gen_subroutine_type_die): Likewise.
4738         (gen_typedef_die): Likewise.
4739         (force_type_die): Adjust call to modified_type_die.
4741 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
4743         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
4744         flow throughout the file.  Fix broken link to Objective-C 2.0
4745         documentation.
4746         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
4747         errors.
4749 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4751         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
4753 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4755         PR ipa/66223
4756         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
4757         (maybe_record_node): Record cxa_pure_virtual as the only possible
4758         target if there are not ohter candidates.
4759         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
4761 2016-01-19  Richard Biener  <rguenther@suse.de>
4763         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
4764         (get_memory_order): Likewise.
4766 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
4768         * tree-vect-stmts.c (vectorizable_store): Check
4769         rhs vectype.
4771 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
4773         PR jit/68446
4774         * gcc.c (driver::decode_argv): Add call to
4775         init_opts_obstack before init_options_struct.
4776         * opts.c (init_opts_obstack): Remove idempotency.
4777         (init_options_struct): Replace call to init_opts_obstack
4778         with a gcc_assert to verify that it has already been called.
4779         * toplev.c (toplev::main): Add call to init_opts_obstack before
4780         calls to init_options_struct.
4781         (toplev::finalize): Move cleanup of opts_obstack next to
4782         cleanup of save_decoded_options, clearing the latter, and
4783         save_decoded_options_count.
4785 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4787         PR target/69135
4788         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
4789         attribute to unconditional.  Remove %? from output template.
4791 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4792             Jiong Wang  <jiong.wang@arm.com>
4794         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
4795         generated from different expand order.
4797 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4799         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
4800         Add support for CCMP costing.
4802 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4804         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
4805         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
4806         (fccmpe<mode>): Likewise.
4807         (fcmp): Rename to fcmp and globalize pattern.
4808         (fcmpe): Likewise.
4809         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
4810         (aarch64_gen_ccmp_next): Add FP support.
4812 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
4814         * target.def (gen_ccmp_first): Update documentation.
4815         (gen_ccmp_next): Likewise.
4816         * doc/tm.texi (gen_ccmp_first): Update documentation.
4817         (gen_ccmp_next): Likewise.
4818         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
4819         expand_ccmp_expr_1.  Improve comments.
4820         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
4821         (ccmp_ior<mode>): Remove pattern.
4822         (cmp<mode>): Remove expand.
4823         (cmp): Globalize pattern.
4824         (cstorecc4): Use cc_register.
4825         (mov<mode>cc): Remove ccmp_cc_register check.
4826         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
4827         Simplify after removal of CC_DNE/* modes.
4828         (aarch64_ccmp_mode_to_code): Remove.
4829         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
4830         In 'k' case use integer as condition.
4831         (aarch64_nzcv_codes): Remove inverted cases.
4832         (aarch64_code_to_ccmode): Remove.
4833         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
4834         comparison with CC register to be used in folowing CCMP/branch/CSEL.
4835         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
4836         pattern.  Return the comparison with CC register.  Invert conditions
4837         when bitcode is OR.
4838         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
4839         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
4841 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4843         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
4844         instrumented_version.
4846 2016-01-19  Richard Biener  <rguenther@suse.de>
4848         PR tree-optimization/69336
4849         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
4850         handled components with get_ref_base_and_extent.
4851         (equal_mem_array_ref_p): Adjust.
4853 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
4855         PR debug/65779
4856         * shrink-wrap.c: Include valtrack.h.
4857         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
4858         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
4859         in between insn and where it will be moved to.  Call
4860         dead_debug_insert_temp.
4861         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
4862         first and dead_debug_local_finish at the end.
4863         For uses and defs bitmap, handle all regs in between REGNO and
4864         END_REGNO, not just the first one.
4866 2016-01-19  Richard Biener  <rguenther@suse.de>
4868         PR tree-optimization/69352
4869         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
4870         (equal_mem_array_ref_p): Constrain size and max size properly.
4871         Compare the reverse flag.
4873 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
4875         * ira.c (ira): Update regstat data if we deleted insns.
4877 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
4879         PR rtl-optimization/68955
4880         PR rtl-optimization/64557
4881         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
4882         here.  Fix up formatting.
4883         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
4885 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4887         PR lto/69133
4888         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
4889         assume that the node has body.
4890         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
4891         check.
4893 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4895         * lto-streamer-out.c (lto_output): Do not stream instrumentation
4896         thunks.
4898 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4900         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
4901         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
4903 2016-01-19  Martin Jambor  <mjambor@suse.cz>
4904             Martin Liska  <mliska@suse.cz>
4905             Michael Matz  <matz@suse.de>
4907         * Makefile.in (OBJS): Add new source files.
4908         (GTFILES): Add hsa.c.
4909         * common.opt (disable_hsa): New variable.
4910         (-Whsa): New warning.
4911         * config.in (ENABLE_HSA): New.
4912         * configure.ac: Treat hsa differently from other accelerators.
4913         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
4914         $enable_offloading.
4915         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
4916         * doc/install.texi (Configuration): Document --with-hsa-runtime,
4917         --with-hsa-runtime-include, --with-hsa-runtime-lib and
4918         --with-hsa-kmt-lib.
4919         * doc/invoke.texi (-Whsa): Document.
4920         (hsa-gen-debug-stores): Likewise.
4921         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
4922         to invoke offload compiler for hsa acclerator.
4923         * opts.c (common_handle_option): Determine whether HSA offloading
4924         should be performed.
4925         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
4926         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
4927         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
4928         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
4929         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
4930         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
4931         GF_OMP_FOR_KIND_GRID_LOOP.
4932         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
4933         (pp_gimple_stmt_1): Likewise.
4934         * gimple-walk.c (walk_gimple_stmt): Likewise.
4935         * gimple.c (gimple_build_omp_grid_body): New function.
4936         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
4937         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
4938         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
4939         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
4940         GF_OMP_TEAMS_GRID_PHONY.
4941         (gimple_statement_omp_single_layout): Updated comments.
4942         (gimple_build_omp_grid_body): New function.
4943         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
4944         (gimple_omp_for_grid_phony): New function.
4945         (gimple_omp_for_set_grid_phony): Likewise.
4946         (gimple_omp_parallel_grid_phony): Likewise.
4947         (gimple_omp_parallel_set_grid_phony): Likewise.
4948         (gimple_omp_teams_grid_phony): Likewise.
4949         (gimple_omp_teams_set_grid_phony): Likewise.
4950         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
4951         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
4952         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
4953         (BUILT_IN_GOMP_TARGET): Updated type.
4954         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
4955         (adjust_for_condition): New function.
4956         (get_omp_for_step_from_incr): Likewise.
4957         (extract_omp_for_data): Moved parts to adjust_for_condition and
4958         get_omp_for_step_from_incr.
4959         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
4960         (fixup_child_record_type): Bail out if receiver_decl is NULL.
4961         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
4962         (scan_omp_parallel): Do not create child functions for phony
4963         constructs.
4964         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
4965         (scan_omp_1_op): Checking assert we are not remapping to
4966         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
4967         (parallel_needs_hsa_kernel_p): New function.
4968         (expand_parallel_call): Register apprpriate parallel child
4969         functions as HSA kernels.
4970         (grid_launch_attributes_trees): New type.
4971         (grid_attr_trees): New variable.
4972         (grid_create_kernel_launch_attr_types): New function.
4973         (grid_insert_store_range_dim): Likewise.
4974         (grid_get_kernel_launch_attributes): Likewise.
4975         (get_target_argument_identifier_1): Likewise.
4976         (get_target_argument_identifier): Likewise.
4977         (get_target_argument_value): Likewise.
4978         (push_target_argument_according_to_value): Likewise.
4979         (get_target_arguments): Likewise.
4980         (expand_omp_target): Call get_target_arguments instead of looking
4981         up for teams and thread limit.
4982         (grid_expand_omp_for_loop): New function.
4983         (grid_arg_decl_map): New type.
4984         (grid_remap_kernel_arg_accesses): New function.
4985         (grid_expand_target_kernel_body): New function.
4986         (expand_omp): Call it.
4987         (lower_omp_for): Do not emit phony constructs.
4988         (lower_omp_taskreg): Do not emit phony constructs but create for them
4989         a temporary variable receiver_decl.
4990         (lower_omp_taskreg): Do not emit phony constructs.
4991         (lower_omp_teams): Likewise.
4992         (lower_omp_grid_body): New function.
4993         (lower_omp_1): Call it.
4994         (grid_reg_assignment_to_local_var_p): New function.
4995         (grid_seq_only_contains_local_assignments): Likewise.
4996         (grid_find_single_omp_among_assignments_1): Likewise.
4997         (grid_find_single_omp_among_assignments): Likewise.
4998         (grid_find_ungridifiable_statement): Likewise.
4999         (grid_target_follows_gridifiable_pattern): Likewise.
5000         (grid_remap_prebody_decls): Likewise.
5001         (grid_copy_leading_local_assignments): Likewise.
5002         (grid_process_kernel_body_copy): Likewise.
5003         (grid_attempt_target_gridification): Likewise.
5004         (grid_gridify_all_targets_stmt): Likewise.
5005         (grid_gridify_all_targets): Likewise.
5006         (execute_lower_omp): Call grid_gridify_all_targets.
5007         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
5008         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
5009         (tree_omp_clause): Added union field dimension.
5010         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
5011         * tree.c (omp_clause_num_ops): Added number of arguments of
5012         OMP_CLAUSE__GRIDDIM_.
5013         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
5014         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
5015         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
5016         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
5017         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
5018         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
5019         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
5020         * tree-pass.h (make_pass_gen_hsail): Declare.
5021         (make_pass_ipa_hsa): Likewise.
5022         * ipa-hsa.c: New file.
5023         * lto-section-in.c (lto_section_name): Add hsa section name.
5024         * lto-streamer.h (lto_section_type): Add hsa section.
5025         * timevar.def (TV_IPA_HSA): New.
5026         * hsa-brig-format.h: New file.
5027         * hsa-brig.c: New file.
5028         * hsa-dump.c: Likewise.
5029         * hsa-gen.c: Likewise.
5030         * hsa.c: Likewise.
5031         * hsa.h: Likewise.
5032         * toplev.c (compile_file): Call hsa_output_brig.
5033         * hsa-regalloc.c: New file.
5035 2016-01-18  Jeff Law  <law@redhat.com>
5037         PR tree-optimization/69320
5038         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
5039         ranged object, do nothing if the RHS constant is not [0..1].
5040         (optimize_stmt): Comparing a boolean ranged object against a
5041         constant outside [0..1] results in a compile-time constant.
5043         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
5044         test.
5046 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
5048         * doc/invoke.texi (Invoking GCC): Add new section to menu.
5049         (Option Summary): Update to reflect new section and moved options.
5050         (C++ Dialect Options): Move -fstats to new section.
5051         (Debugging Options): Move all dump, statistics, and other GCC
5052         developer options to new section.  Rewrite section introduction
5053         and re-order remaining options to put the more basic ones first.
5054         (Optimization Options): Move -fira-verbose and -flto-report* to
5055         new section.
5056         (Developer Options): New section incorporating moved options.
5057         * doc/cppopts.texi (-dM): Update cross-reference.
5059 2016-01-18  Richard Henderson  <rth@redhat.com>
5061         PR target/69176
5062         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
5063         operands to pseudo only if CSE is expected.  Split long immediate
5064         operands only after reload, and for the stack pointer.
5065         (*add<GPI>3_pluslong): Remove.
5066         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
5067         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
5068         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
5069         (*add<GPI>3 peepholes): New.
5070         (*add<GPI>3 splitters): New.
5071         * config/aarch64/constraints.md (Upl): New.
5072         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
5074 2016-01-18  Richard Biener  <rguenther@suse.de>
5076         PR tree-optimization/69297
5077         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
5078         stmt at most once.
5079         (vect_bb_vectorization_profitable_p): Clear visited flag again.
5081 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
5083         PR middle-end/68542
5084         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
5085         of mixind vector and scalar types.
5086         (fold_relational_const): Add handling of vector
5087         comparison with boolean result.
5088         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
5089         comparison of vector operands with boolean result for EQ/NE only.
5090         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
5091         (verify_gimple_cond): Likewise.
5092         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
5093         valid type of VAL.
5095 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5097         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
5098         !TARGET_OCTEON.
5100 2016-01-18  Richard Biener  <rguenther@suse.de>
5102         PR middle-end/69308
5103         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
5105 2016-01-18  Tom de Vries  <tom@codesourcery.com>
5107         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
5109 2016-01-18  Tom de Vries  <tom@codesourcery.com>
5111         * omp-low.c (set_oacc_fn_attrib): Make extern.
5112         * omp-low.h (set_oacc_fn_attrib): Declare.
5113         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
5114         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
5115         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
5116         Add and handle function parameter oacc_kernels_p.
5117         (find_reduc_addr, get_omp_data_i_param): New function.
5118         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
5119         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
5120         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
5121         Calculate dominance info.  Skip loops that are not in a kernels region
5122         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
5123         (pass_parallelize_loops::execute): Call parallelize_loops with
5124         oacc_kernels_p argument.
5125         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
5126         New member function.
5127         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
5128         * passes.def: Add argument to pass_parallelize_loops instantation.
5130 2016-01-18  Tom de Vries  <tom@codesourcery.com>
5132         * tree-parloops.c (pass_parallelize_loops::execute): Allow
5133         pass_parallelize_loops to be run outside the loop pipeline.
5135 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
5137         * tree-scalar-evolution.c (follow_copies_to_constant): New.
5138         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
5140 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
5142         PR target/63679
5143         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
5144         using get_ref_base_and_extent.
5145         (equal_mem_array_ref_p): New.
5146         (hashable_expr_equal_p): Add call to previous.
5148 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
5150         PR target/63679
5151         * tree-sra.c (disqualified_constants, constant_decl_p): New.
5152         (sra_initialize): Allocate disqualified_constants.
5153         (sra_deinitialize): Free disqualified_constants.
5154         (disqualify_candidate): Update disqualified_constants when appropriate.
5155         (create_access): Scan for constant-pool entries as we go along.
5156         (scalarizable_type_p): Add check against type_contains_placeholder_p.
5157         (maybe_add_sra_candidate): Allow constant-pool entries.
5158         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
5159         (initialize_constant_pool_replacements): New.
5160         (sra_modify_assign): Avoid mangling assignments created by previous,
5161         and don't generate writes into constant pool.
5162         (sra_modify_function_body): Call initialize_constant_pool_replacements.
5164 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5166         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
5167         andnot instruction.
5168         (scalar_chain::convert_op): Likewise.
5169         * config/i386/i386.md (*andndi3_doubleword): New.
5171 2016-01-18  Richard Biener  <rguenther@suse.de>
5173         PR tree-optimization/69170
5174         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
5175         building a vector from scalar results of a pattern stmt.
5177 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
5179         * haifa-sched.c (autopref_multipass_init): Work around
5180         -Wmaybe-uninitialized warning.
5182 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5184         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
5185         against the constant 0.
5187 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5189         PR tree-optimization/68799
5190         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
5191         look up phi candidates in the statement-candidate map.
5192         (phi_add_costs): Likewise.
5193         (record_phi_increments): Likewise.
5194         (phi_incr_cost): Likewise.
5195         (ncd_with_phi): Likewise.
5196         (all_phi_incrs_profitable): Likewise.
5198 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
5200         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
5201         -Wmaybe-uninitialized warning.
5203 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
5205         * doc/invoke.texi (Invoking GCC): Add new section to menu.
5206         (Option Summary): Update to reflect new section and moved options.
5207         (C++ Dialect Options): Move -fvtable-verify and related options.
5208         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
5209         and profiling-related options.
5210         (Optimization Options): Move profile generation options and
5211         -fstack-protector and related options.
5212         (Instrumentation Options): New section incorporating moved options.
5213         (Code Generation Options): Move -finstrument-functions and
5214         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
5216 2016-01-16  Tom de Vries  <tom@codesourcery.com>
5218         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
5220 2016-01-16  Tom de Vries  <tom@codesourcery.com>
5222         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
5224 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
5226         * hash-table.h (hash_table::empty): Turn into an inline wrapper
5227         that checks whether the table is already empty.  Rename the
5228         original implementation to...
5229         (hash_table::empty_slot): ...this new private function.
5231 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
5233         PR diagnostic/68899
5234         * diagnostic-show-locus.c (layout::print_source_line): Move x
5235         offset of line until after call to
5236         get_line_width_without_trailing_whitespace.
5238 2016-01-15  Jeff Law  <law@redhat.com>
5240         PR tree-optimization/69270
5241         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
5242         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
5243         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
5244         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
5245         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
5246         ssa_name_has_boolean_range and constant_boolean_node.
5248 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
5250         PR rtl-optimization/69030
5251         * lra-spills.c (remove_pseudos): Check nrefs and make the function
5252         returning bool.
5253         (spill_pseudos): Delete debug insn for dead pseudo.
5254         (lra_spill): Initiate spill_hard_reg and slots memory separately.
5256 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
5258         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
5259         New.
5260         (TYPES_UNOPUS): Likewise.
5261         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
5262         builtin type, from UNOP to UNOPUS.
5263         (lbtruncuv4sf): Likewise.
5264         (lbtruncuv2df): Likewise.
5265         (lrounduv2sf): Likewise.
5266         (lrounduv4sf): Likewise.
5267         (lrounduv2df): Likewise.
5268         (lroundusf): Likewise.
5269         (lroundusf): Likewise.
5270         (lceiluv2sf): Likewise.
5271         (lceiluv4sf): Likewise.
5272         (lceiluv2df): Likewise.
5273         (lceilusf): Likewise.
5274         (lceiludf): Likewise.
5275         (lflooruv2sf): Likewise.
5276         (lflooruv4sf): Likewise.
5277         (lflooruv2df): Likewise.
5278         (lfloorusf): Likewise.
5279         (lfloorudf): Likewise.
5280         (lfrintnuv2sf): Likewise.
5281         (lfrintnuv4sf): Likewise.
5282         (lfrintnuv2df): Likewise.
5283         (lfrintnusf): Likewise.
5284         (lfrintnudf): Likewise.
5285         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
5286         conversion.
5287         (vcvtq_u32_f32): Likewise.
5288         (vcvtq_u64_f64): Likewise.
5289         (vcvta_u32_f32): Likewise.
5290         (vcvtaq_u32_f32): Likewise.
5291         (vcvtaq_u64_f64): Likewise.
5292         (vcvtm_u32_f32): Likewise.
5293         (vcvtmq_u32_f32): Likewise.
5294         (vcvtmq_u64_f64): Likewise.
5295         (vcvtn_u32_f32): Likwise.
5296         (vcvtnq_u32_f32): Likewise.
5297         (vcvtnq_u64_f64): Likewise.
5298         (vcvtp_u32_f32): Likewise.
5299         (vcvtpq_u32_f32): Likewise.
5300         (vcvtpq_u64_f64): Likewise.
5301         (vcvtmd_u64_f64): Likewise.
5302         (vcvtms_u32_f32): Likewise.
5303         (vcvtad_u64_f64): Likewise.
5304         (vcvtas_u32_f32): Likewise.
5305         (vcvtnd_u64_f64): Likewise.
5306         (vcvtns_u32_f32): Likewise.
5307         (vcvtpd_u64_f64): Likewise.
5308         (vcvtps_u32_f32): Likewise.
5310 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5312         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
5313         CSEL of zero_extended registers.
5315 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5317         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
5318         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
5320 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5322         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
5323         false when argument string is not found in the attributes table
5324         at all.
5326 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
5328         PR target/68609
5329         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
5330         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
5331         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
5332         precision estimate.
5334 2016-01-15  Richard Biener  <rguenther@suse.de>
5336         PR tree-optimization/66856
5337         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
5338         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
5339         (vect_create_new_slp_node): Increment stmt reference count.
5340         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
5341         an SLP tree before swapping operands.
5342         (vect_build_slp_tree): Likewise.
5343         (destroy_bb_vec_info): Free stmt info after SLP instances.
5344         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
5345         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
5346         (STMT_VINFO_NUM_SLP_USES): New macro.
5348 2016-01-15  Richard Biener  <rguenther@suse.de>
5350         PR debug/69137
5351         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
5352         (add_linkage_name): ... here.
5353         (gen_typedef_die): Use add_linkage_name_raw instead of
5354         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
5355         if necessary.
5357 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
5359         * gimplify.c (oacc_default_clause): Decode reference and pointer
5360         types for both kernels and parallel regions.
5362 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
5364         PR middle-end/69246
5365         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
5367 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
5369         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
5370         (convert_scalars_to_vector): Likewise.
5372 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
5374         * doc/extend.texi (Type Traits): Fix grammar.
5376 2016-01-15  Martin Jambor  <mjambor@suse.cz>
5378         * tree-inline.c (remap_decl): Use existing dclarations if
5379         remapping a type and prevent_decl_creation_for_types.
5380         (replace_locals_stmt): Do an initial remapping of non-VLA typed
5381         decls first.  Do real remapping with
5382         prevent_decl_creation_for_types set.
5383         * tree-inline.h (copy_body_data): New field
5384         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
5385         padding.
5387 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5389         * config/s390/s390.opt (mmvcle): More verbose help text.
5391 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5393         * config/s390/s390.opt: Add period to -mzvector option text.
5395 2016-01-15  Richard Biener  <rguenther@suse.de>
5397         PR tree-optimization/68961
5398         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
5399         of invariants in stores again.
5401 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5403         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
5405 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
5407         * config/i386/i386.c (ix86_expand_branch): Don't split
5408         DI mode xor instruction to SI mode.
5410 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
5412         PR ipa/68148
5413         * ipa-icf.c (sem_function::merge): Virtual functions may become
5414         reachable even if they address is not taken and there are no
5415         idrect calls.
5417 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
5419         * lto-streamer-out.c (subtract_estimated_size): New function.
5420         (get_symbol_initial_value): Use it.
5422 2016-01-15  Christian Bruel  <christian.bruel@st.com>
5424         PR target/65837
5425         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
5426         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
5427         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
5428         use add_builtin_function_ext_scope instead of add_builtin_function.
5429         (neon_set_p, neon_crypto_set_p): Remove.
5430         (arm_init_builtins): Always call arm_init_neon_builtins and
5431         arm_init_crypto_builtins.
5432         (arm_expand_builtin): Check that builtins are allowed for the arch.
5433         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
5434         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
5435         arm_init_neon_builtins call.
5437 2016-01-15  Richard Biener  <rguenther@suse.de>
5439         PR tree-optimization/69117
5440         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
5441         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
5442         of the leader conservatively.
5443         (free_scc_vn): Restore original SSA name infos.
5445 2016-01-14  Jeff Law  <law@redhat.com>
5447         PR tree-optimization/69270
5448         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
5449         single bit of precision, verify it's also unsigned.
5450         (record_edge_info): Use constant_boolean_node rather than fold_convert
5451         to convert boolean_true/boolean_false to the right type.
5453 2016-01-14  Richard Henderson  <rth@redhat.com>
5455         PR rtl-opt/69014
5456         * loop-doloop.c (record_reg_sets): New.
5457         (doloop_optimize): Reject the transform if the sequence
5458         clobbers registers live at the end of the loop block.
5459         (doloop_optimize_loops): Enable df_live if needed.
5461 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5463         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
5464         * gcc/config/rs6000/rs6000.c: Likewise.
5465         * gcc/config/rs6000/rs6000.h: Likewise.
5466         * gcc/config/rs6000/rs6000.md: Likewise.
5467         * gcc/doc/extend.texi: Likewsie.
5469 2016-01-14  Jeff Law  <law@redhat.com>
5471         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
5472         typo.
5474 2016-01-14  Richard Henderson  <rth@redhat.com>
5476         PR c/69272
5477         PR tree-opt/68964
5478         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
5479         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
5480         instead of builtin_decl_declared_p to test for declaration.
5482 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
5484         * doc/loop.texi (Loop Analysis and Representation): Document
5485         loop_depth function.
5487 2016-01-14  Tom de Vries  <tom@codesourcery.com>
5489         PR tree-optimization/68773
5490         * omp-low.c (expand_omp_target): Don't set force_output.
5491         * varpool.c (varpool_node::get_create): Same.
5492         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
5493         offload_funcs with force_output.
5495 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
5497         PR debug/69244
5498         * lra-eliminations.c (move_plus_up): Don't change anything if either
5499         the outer or inner subreg mode is not MODE_INT.
5500         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
5501         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
5503 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
5505         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
5506         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
5507         reduc_uplus_@var{m}): Remove.
5508         * expr.c (expand_expr_real_2): Remove expansion path for
5509         reduc_[us](min|max|plus) optabs.
5510         * optabs-tree.c (scalar_reduc_to_vector): Remove.
5511         * optabs-tree.h (scalar_reduc_to_vector): Remove.
5512         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
5513         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
5514         * tree-vect-loop.c (vectorizable_reduction): Remove test for
5515         reduc_[us](min|max|plus) optabs.
5517 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
5519         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
5520         (reduc_plus_scal_v2sf): New.
5521         (reduc_smax_v2sf): Rename to...
5522         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
5523         (reduc_smin_v2sf): Rename to...
5524         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
5526 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
5528         * alias.c (compare_base_symbol_refs): New function.
5529         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
5530         it.
5532 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
5534         PR middle-end/68146
5535         PR tree-optimization/69155
5536         * tree-complex.c: Include cfganal.h.
5537         (phis_to_revisit): New variable.
5538         (extract_component): Add phiarg_p argument.  Assert that returned
5539         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
5540         (update_phi_components): Partly rewrite to use loop over real/imag
5541         components instead of code duplication.  If extract_component returns
5542         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
5543         create_tmp_reg into the PHI node instead, and mention the phi triplet
5544         in phis_to_revisit.
5545         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
5546         in phis_to_revisit at the end.
5548 2016-01-14  Richard Biener  <rguenther@suse.de>
5550         PR tree-optimization/68060
5551         * tree-vect-loop.c (vect_is_simple_reduction): Check the
5552         outer loop reduction is only used in the inner loop before
5553         detecting a double reduction.
5555 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
5557         PR target/68269
5558         * combine.c (expand_field_assignment): Punt if compute_mode is
5559         unsupported scalar mode.
5561 2016-01-14  Richard Biener  <rguenther@suse.de>
5563         PR tree-optimization/66856
5564         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
5565         SLP node only if it built successfully.
5566         (vect_analyze_slp_instance): Adjust.
5568 2016-01-14  Jeff Law  <law@redhat.com>
5570         PR tree-optimization/69270
5571         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
5572         (record_edge_info): Use it.  Convert boolean_{true,false}_node
5573         to the type of op0.
5575 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
5577         PR ipa/66487
5578         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
5579         use block_ultimate_origin
5580         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
5582 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
5584         * doc/invoke.texi (Submodel Options): Rename section to
5585         "Machine-Dependent Options" to better reflect its content.
5586         Rewrite introductory text to remove archaic CPU names.
5587         Update references.
5589 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
5591         * doc/invoke.texi (Code Gen Options): Move section up in file,
5592         before target-specific options.  Update menu and option summary
5593         to reflect the new section ordering.
5595 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
5597         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
5598         (C++ Dialect Options): Add cross-reference to -std option.
5599         * doc/standards.texi (C++ Language): Document C++14 support.
5601 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
5603         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
5604         for pack/unpack functions for __ibm128.
5605         (PACK_IF): Likewise.
5606         (UNPACK_IF): Likewise.
5608         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
5609         support for __ibm128 pack/unpack functions.
5610         (rs6000_invalid_builtin): Likewise.
5611         (rs6000_init_builtins): Likewise.
5612         (rs6000_opt_masks): Likewise.
5614         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
5615         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
5616         functions
5617         (RS6000_BTM_COMMON): Likewise.
5619         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
5620         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
5621         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
5622         128-bit floating point.  Add support for the double values to be
5623         in Altivec registers for TF/IF packing and unpacking, but restrict
5624         TD packing sub-fields to be FPR registers.  Don't allow overlapped
5625         register support for packing.  Allow pack inputs to be memory
5626         locations.  Don't build generator functions for unpack<mode>_dm
5627         and unpack<mode>_nodm.
5628         (unpack<mode>_dm): Likewise.
5629         (unpack<mode>_nodm): Likewise.
5630         (pack<mode>): Likewise.
5632         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
5633         built-in functions to pack/unpack explicit __ibm128 values.
5634         (__builtin_unpack_ibm128): Likewise.
5636         * doc/extend.texi (PowerPC Built-in Functions): Document
5637         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
5639 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
5641         PR c/66208
5642         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
5643         Add new arg loc and pass it down as context.
5644         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
5645         to the location to use for the warning.
5646         (check_function_arguments): New arg loc.  All callers changed.  Pass
5647         it to check_function_nonnull.
5648         * c-common.h (check_function_arguments): Adjust declaration.
5650 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
5652         PR tree-optimization/69156
5653         * gimple.c (validate_type): Removed.
5654         (gimple_builtin_call_types_compatible_p): Use
5655         useless_type_conversion_p instead of validate_type.
5656         * value-prof.c (gimple_stringop_fixed_value): Fold
5657         icall_size to correct type.
5659 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
5661         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
5662         effects.
5664 2016-01-13  Richard Henderson  <rth@redhat.com>
5666         PR tree-opt/68964
5667         * target.def (builtin_tm_load, builtin_tm_store): Remove.
5668         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
5669         (ix86_builtin_tm_store): Remove.
5670         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
5671         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
5672         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
5673         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
5674         * doc/tm.texi: Rebuild.
5676         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
5677         (BUILT_IN_TM_MEMCPY_RTWN): New.
5678         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
5679         fallback from vector to integer helpers.
5680         (build_tm_load): Handle vector types directly, instead of
5681         via target hook.
5682         (build_tm_store): Likewise.
5683         (expand_assign_tm): Prepare for register types not handled by
5684         the above.  Copy them to memory and use memcpy.
5685         * tree.c (tm_define_builtin): New.
5686         (find_tm_vector_type): New.
5687         (build_tm_vector_builtins): New.
5688         (build_common_builtin_nodes): Call it.
5690 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
5692         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
5693         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
5695 2016-01-13  Tom de Vries  <tom@codesourcery.com>
5697         PR tree-optimization/69169
5698         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
5699         handled_struct_type param.
5700         (create_variable_info_for, intra_create_variable_infos): Call
5701         create_variable_info_for_1 with extra arg.
5703 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
5705         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
5706         and "armv8.1-a+crc" entries.
5708 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
5710         PR target/69228
5711         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
5712         Change first operand predicate from register_or_constm1_operand
5713         to register_operand.
5714         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
5715         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
5716         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
5717         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
5718         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
5719         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
5720         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
5721         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
5722         comparison with constm1_rtx from vec_prefetch_gen part.
5724 2016-01-13  Richard Biener  <rguenther@suse.de>
5726         PR tree-optimization/69013
5727         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
5728         Exchange assert for a test.
5730 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5732         PR target/69247
5733         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
5735 2016-01-13  Richard Biener  <rguenther@suse.de>
5737         PR tree-optimization/69242
5738         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
5739         assert with a check.
5741 2016-01-13  Richard Biener  <rguenther@suse.de>
5743         PR tree-optimization/69186
5744         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5745         Properly guard vect_update_misalignment_for_peel call.
5747 2016-01-12  Jeff Law  <law@redhat.com>
5749         PR tree-optimization/pr67755
5750         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
5751         "need_profile_correction".
5752         (thread_block_1): Initialize new field to false by default.  If we
5753         have multiple thread paths through a common joiner to different
5754         final targets, then set new field to true.
5755         (compute_path_counts): Only do count adjustment when it's really
5756         needed.
5758 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5760         * doc/invoke.texi (Spec Files): Move section down in file, past
5761         all command-line option descriptions.
5763 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5765         PR middle-end/54809
5766         * doc/gty.texi: Remove documentation of mark_hook.
5767         * gengtype.c (struct write_types_data): Remove code to support
5768         mark_hook attribute.
5769         (walk_type): Likewise.
5770         (write_func_for_structure): Likewise.
5772 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5774         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
5775         Directory Options, and -specs= to Overall Options.
5776         (Overall Options): Adjust similarly.  Reorder to group related
5777         options together.  Make -specs= cross-reference the spec file details.
5778         (Directory Options): Adjust similarly.
5780 2016-01-12  Jeff Law  <law@redhat.com>
5782         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
5784 2016-01-12  Olivier Hainque  <hainque@adacore.com>
5786         * gcc.c (spec_undefvar_allowed): New global.
5787         (process_command): Set to true when running for --version or --help,
5788         alone or together.
5789         (getenv_spec_function): When the variable is not defined, use the
5790         variable name as the variable value if we're allowed not to issue
5791         a fatal error.
5793 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
5795         PR tree-optimization/68911
5796         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
5797         information computed for expression "init + nit * step".
5799 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5801         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
5802         about name of GCC executable.  Remove deleted node from menu.
5803         (Directory Options) <-B>: Remove cross-reference to deleted node.
5804         (Target Options): Delete section.
5806 2016-01-12  Christian Bruel  <christian.bruel@st.com>
5808         PR target/69180
5809         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
5810         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
5812 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
5814         PR target/69198
5815         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
5816         aligned_mem is properly set for AVX512-VL floating point masked
5817         stores.
5819         PR target/69175
5820         * ifcvt.c (cond_exec_process_if_block): When removing the last
5821         insn from then_bb, remove also any possible barriers that follow it.
5823 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5825         PR target/68456
5826         PR target/69226
5827         * config/i386/iamcu.h (SIZE_TYPE): New macro.
5828         (PTRDIFF_TYPE): Likewise.
5829         (WCHAR_TYPE): Likewise.
5830         (WCHAR_TYPE_SIZE): Likewise.
5831         (STDINT_LONG32): Likewise.
5833 2016-01-12  Richard Biener  <rguenther@suse.de>
5835         PR tree-optimization/69053
5836         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
5837         convert initial value for cond reductions.
5839 2016-01-12  Richard Biener  <rguenther@suse.de>
5841         PR tree-optimization/69007
5842         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
5843         widen_sum after dot_prod and sad.
5845 2016-01-12  Richard Biener  <rguenther@suse.de>
5847         PR tree-optimization/69168
5848         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
5849         pattern stmt SLP type.
5850         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
5851         end up unused so cope with that case.
5853 2016-01-12  Richard Biener  <rguenther@suse.de>
5855         PR tree-optimization/69157
5856         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5857         stmts def type only during analyze phase.
5858         (vectorizable_call): Likewise.
5859         (vectorizable_simd_clone_call): Likewise.
5860         (vectorizable_conversion): Likewise.
5861         (vectorizable_assignment): Likewise.
5862         (vectorizable_shift): Likewise.
5863         (vectorizable_operation): Likewise.
5864         (vectorizable_store): Likewise.
5865         (vectorizable_load): Likewise.
5867 2016-01-12  Richard Biener  <rguenther@suse.de>
5869         PR tree-optimization/69174
5870         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
5871         space.
5872         (vectorizable_load): Properly compute the number of loads needed
5873         for permuted strided SLP loads and do not spuriously assign
5874         to SLP_TREE_VEC_STMTS.
5876 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
5878         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
5879         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
5880         (MD_EXEC_PREFIX): Remove.
5881         (MD_STARTFILE_PREFIX) Removee.
5882         (FILE_NAME_ABSOLUTE_P): Remove.
5883         (CPP_SPEC): Do not read macros from sys/version.h.
5884         (LINK_COMMAND_SPEC): Remove.
5885         (LOCAL_INCLUDE_DIR): Remove.
5886         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
5887         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
5888         (POST_LINK_SPEC): Define to invoke stubify after linker
5889         (LIBSTDCXX): Remove define
5890         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
5891         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
5892         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
5893         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
5894         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
5895         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
5896         (i386_djgpp_asm_named_section): Add propotype of new procedure
5898         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
5899         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
5900         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
5901         in config/i386/djgpp.h).
5902         (STANDARD_STARTFILE_PREFIX_2): Define identical to
5903         STANDARD_STARTFILE_PREFIX_1.
5904         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
5905         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
5906         installation errors.
5907         (MAX_OFILE_ALIGNMENT): Define to 128.
5908         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
5910         * config/i386/djgpp.c: New file. Add implementation of
5911         i386_djgpp_asm_named_section.
5913         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
5915         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
5916         Add rule for building djgpp.o.
5918 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5920         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
5921         (rtx_is_swappable_p): Reductions are swappable.
5922         (insn_is_swappable_p): V2DF reductions are swappable.
5924 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
5926         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
5927         reloads for other unsupported memory operands.
5929 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5930             Jim Wilson  <jim.wilson@linaro.org>
5932         PR target/69194
5933         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
5934         copy_to_mode_reg instead of force_reg.
5936 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5938         PR target/69225
5939         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
5940         TARGET_80387 is true.
5942 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
5944         PR target/69071
5945         * lra-eliminations.c (move_plus_up): Only move plus up
5946         if subreg of the constant can be simplified into constant
5947         and use the simplified subreg of the constant instead of
5948         the original constant.
5950         * fold-const.c (fold_convertible_p): Don't return true
5951         for conversion of VECTOR_TYPE to same sized integral type.
5952         (fold_convert_loc): Fix up formatting.  Fold conversion of
5953         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
5954         instead of NOP_EXPR.
5956         PR tree-optimization/69214
5957         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
5958         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5959         Formatting fix.
5961         PR tree-optimization/69207
5962         * tree-vect-slp.c (vect_get_constant_vectors): For
5963         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
5964         fold_convertible_p to vector_type's element type, and always
5965         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
5967 2016-01-11  Richard Biener  <rguenther@suse.de>
5969         PR tree-optimization/69173
5970         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
5971         fixup the cycle if all stmts are in a pattern.
5973 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
5975         PR middle-end/68999
5976         * alias.c (base_alias_check): Move check for addresses with
5977         alignment ANDs before the call for compare_base_decls.
5978         (memrefs_conflict_p): Return -1 for different decls
5979         that went through alignment adjustments.
5981 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5983         PR rtl-optimization/68796
5984         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
5985         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
5986         and QImode comparisons against zero with CC_NZmode.
5987         * config/aarch64/iterators.md (short_mask): New mode_attr.
5989 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5991         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
5992         (<avx512>_store<mode>_mask): Likewise.
5994 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
5995             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5997         PR rtl-optimization/68841
5998         * ifcvt.c (struct noce_if_info): Add orig_x field.
5999         (bbs_ok_for_cmove_arith): Add to_rename parameter.
6000         Don't record conflicts on to_rename if it's present.
6001         Allow memory destinations in sets.
6002         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
6003         blocks, passing orig_x to the checks.
6004         (noce_process_if_block): Set if_info->orig_x appropriately.
6006 2016-01-11  Tom de Vries  <tom@codesourcery.com>
6008         PR tree-optimization/69069
6009         * tree-parloops.c (create_parallel_loop): Add missing phi args.
6011 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
6013         PR rtl-optimization/68920
6014         * config/i386/i386.c (ix86_option_override_internal): Restrict number
6015         of conditional moves for  RTL if-conversion to 1 for
6016         TARGET_ONE_IF_CONV_INSN.
6017         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
6018         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
6019         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
6020         parameter to restirct number of conditional moves for
6021         RTL if-conversion.
6022         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
6023         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
6024         conditionl moves.
6026 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
6028         PR bootstrap/69123
6029         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
6030         onepart vars.  Fix typo in comment.  Fix reversed condition in
6031         unshare test.
6032         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
6034         PR bootstrap/69123
6035         * var-tracking.c (dump_onepart_variable_differences): New.
6036         (dataflow_set_different): If a detailed dump is requested,
6037         delay early returns and dump differences between onepart
6038         variables present before and after, and added variables.
6040 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
6042         PR target/69010
6043         * expr.c (expand_expr_real_1): For boolean vector constants
6044         with a scalar mode use const_scalar_mask_from_tree.
6045         (const_scalar_mask_from_tree): New.
6046         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
6047         assigned to a mask type to handle constants.
6049 2016-01-11  Martin Jambor  <mjambor@suse.cz>
6051         PR ipa/69044
6052         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
6053         useless parameters if we cannot change function signature.
6055 2016-01-11  Martin Jambor  <mjambor@suse.cz>
6057         PR ipa/66616
6058         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
6059         flag.
6061 2016-01-11  Tom de Vries  <tom@codesourcery.com>
6063         PR tree-optimization/69109
6064         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
6065         latch with phi.
6067 2016-01-11  Tom de Vries  <tom@codesourcery.com>
6069         PR tree-optimization/69108
6070         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
6071         res is not used in a phi.
6073 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
6075         PR 67425
6076         * common.opt (frandom-seed): Fix parameter name.
6077         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
6079 2016-01-11  Tom de Vries  <tom@codesourcery.com>
6081         PR tree-optimization/69058
6082         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
6083         not supported.
6085 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
6087         * config/arc/arc.opt (mdiv-rem): Add period to the end.
6088         (mcode-density): Likewise.
6090 2016-01-10  Tom de Vries  <tom@codesourcery.com>
6092         PR tree-optimization/69062
6093         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
6094         (parallelize_loops): Don't paralelize loop that has phi with address
6095         arg.
6097 2016-01-10  Tom de Vries  <tom@codesourcery.com>
6099         PR tree-optimization/69039
6100         * tree-parloops.c (try_create_reduction_list): Only allow single exit
6101         phi for reduction.
6103 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
6105         PR middle-end/68743
6106         * match.pd: Require target has function_c99_misc before doing
6107         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
6109 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
6111         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
6112         use GMPINC.
6113         * configure: Regenerate.
6115 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
6117         PR middle-end/50865
6118         PR tree-optimization/69097
6119         * fold-const.h (expr_not_equal_to): New prototype.
6120         * fold-const.c: Include stringpool.h and tree-ssanames.h.
6121         (expr_not_equal_to): New function.
6122         * match.pd (X % -Y is the same as X % Y): Don't optimize
6123         unless X is known not to be equal to minimum or Y is known
6124         not to be equal to -1.
6125         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
6126         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
6127         (simplify_stmt_using_ranges): Adjust caller.
6128         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
6129         substitute_and_fold.
6131 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
6133         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
6134         w/o DECL_NAME.
6136 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
6138         PR tree-optimization/69167
6139         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
6140         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
6141         ops[0] comparison.
6142         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
6144 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
6145             Richard Biener  <rguenther@suse.de>
6147         PR tree-optimization/68707
6148         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
6149         instances that can be handled via vect_load_lanes.
6151 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
6153         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
6154         if we can't determine address equivalence.
6155         * alias.c (compare_base_decl): Update for changed return value of
6156         symtab_node::equal_address_to.
6158 2016-01-08  Jason Merrill  <jason@redhat.com>
6160         PR c++/68983
6161         PR c++/67557
6162         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
6163         * expr.c (store_field): Not here.
6164         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
6165         call with TREE_ADDRESSABLE type.
6166         * tree-cfg.c (verify_gimple_call): Adjust.
6168 2016-01-08  Olivier Hainque  <hainque@adacore.com>
6170         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
6171         libc_internal.
6173 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
6175         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
6176         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
6177         (reduc_smin_v2sf): Rename to...
6178         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
6179         (reduc_splus_v2sf): Rename to...
6180         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
6182 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
6184         PR tree-optimization/69162
6185         * gimplify.c (gimplify_va_arg_expr): Encode original type of
6186         valist argument in another argument.
6187         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
6188         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
6189         to determine the va_list type, build a MEM_REF instead of
6190         build_fold_indirect_ref.
6192         PR tree-optimization/69172
6193         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
6194         gimple_build.
6196 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6198         PR tree-optimization/67781
6199         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
6200         and cmpnop in two steps: first the ones not accessed in original
6201         gimple expression in a endian independent way and then the ones not
6202         accessed in the final result in an endian-specific way.
6204 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
6206         PR tree-optimization/69083
6207         * tree-vect-slp.c (vect_get_constant_vectors): For
6208         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
6209         element type.  If op is fold_convertible_p to vector_type's element
6210         type, use NOP_EXPR instead of VCE.
6212 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
6214         PR rtl-optimization/67778
6215         PR rtl-optimization/68634
6216         PR rtl-optimization/68909
6217         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
6218         block from the stack until done with it.  Remove a superfluous
6219         bitmap set.  Remove a superfluous bitmap test.
6221 2016-01-07  Martin Sebor  <msebor@redhat.com>
6223         PR c/68966
6224         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
6225         constraint on the type of arguments.
6227 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
6229         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
6230         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
6231         unaligned_access on the gcc_options set.
6232         * config/arm/arm.c (arm_option_override_internal): Use
6233         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
6235 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
6237         PR target/69140
6238         * config/i386/i386.c (ix86_frame_pointer_required): Enable
6239         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
6241 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
6243         Revert
6244         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
6246         PR target/69140
6247         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
6248         depending on frame_pointer_needed before remaining integer and SSE
6249         registers are saved.
6251 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
6253         PR 1078
6254         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
6256 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
6258         PR target/69171
6259         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
6260         Use the "xBm" constraint.
6261         (float<sseintvecmodelower><mode>2<mask_name><round_name):
6262         Likewise.
6263         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
6264         (sse_cvtsi2ssq<round_name>): Likewise.
6265         (sse_cvtss2si<round_name>): Likewise.
6266         (sse_cvtss2siq<round_name>): Likewise.
6267         (sse2_cvtsi2sdq<round_name>): Likewise.
6268         (sse2_cvtsd2si<round_name>): Likewise.
6269         (sse2_cvtsd2siq<round_name>): Likewise.
6270         * config/i386/subst.md (round_nimm_scalar_predicate): New
6271         predicate.
6273 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
6275         PR middle-end/67639
6276         * varasm.c (make_decl_rtl): Mark invalid register vars as
6277         DECL_EXTERNAL.
6279         PR rtl-optimization/66206
6280         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
6281         All callers changed.
6283 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
6285         PR tree-optimization/69141
6286         * tree-ssa-pre.c: Include langhooks.h.
6287         (eliminate_dom_walker::before_dom_children): Use
6288         lang_hooks.decl_printable_name instead of
6289         cgraph_node::get ()->name ().
6291         PR middle-end/68960
6292         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
6293         it and DECL_ALIGN too.
6295 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
6297         * config/mips/mips-ftypes.def: Sort to lexicographical order.
6299 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
6301         PR target/69140
6302         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
6303         depending on frame_pointer_needed before remaining integer and SSE
6304         registers are saved.
6306 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6308         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
6309         mode iterator with VSX_M2.
6310         (*p9_vecstore_<mode>): Likewise.
6311         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
6312         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
6313         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
6314         (define_split for VSX_LE128 stores): Likewise.
6315         (define_peephole2 for TImode LE swaps): Likewise.
6316         (define_split for VSX_LE128 post-reload stores): Likewise.
6318 2016-01-06  Marek Polacek  <polacek@redhat.com>
6320         PR sanitizer/69099
6321         * convert.c (convert_to_integer_1): Adjust call to
6322         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
6323         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
6324         EXPR instead of ARG.
6325         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
6327 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
6329         PR 1078
6330         * doc/extend.texi (RL78 Variable Attributes): New section.
6332 2016-01-05  Marek Polacek  <polacek@redhat.com>
6334         PR c/69104
6335         * builtins.c (get_memmodel): Use expansion point location rather than
6336         the input location.  Call warning_at rather than warning.
6337         (expand_builtin_atomic_compare_exchange): Likewise.
6338         (expand_builtin_atomic_load): Likewise.
6339         (expand_builtin_atomic_store): Likewise.
6340         (expand_builtin_atomic_clear): Likewise.
6342 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6344         PR target/68991
6345         * config/i386/i386.c (ix86_expand_vector_logical_operator):
6346         Replace nonimmediate_operand with vector_operand.
6347         * config/i386/predicates.md (vector_operand): New predicate.
6348         (general_vector_operand): Replace nonimmediate_operand with
6349         vector_operand.
6350         * config/i386/sse.md: Replace nonimmediate_operand with
6351         vector_operand and m constraint with Bm constraint on SSE
6352         patterns with 16-byte memory operand.
6353         * config/i386/subst.md (round_nimm_predicate): Replace
6354         nonimmediate_operand with vector_operand.
6355         (round_saeonly_nimm_predicate): Likewise.
6356         (round_saeonly_nimm_scalar_predicate): New.
6358 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6360         PR target/68991
6361         * config/i386/constraints.md (Bm): New constraint.
6362         * config/i386/predicates.md (vector_memory_operand): New
6363         predicate.
6364         * config/i386/sse.md: Replace xm with xBm in plusminus and
6365         any_logic patterns.
6367 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
6369         PR 1078
6370         * doc/extend.texi (V850 Function Attributes): New section.
6371         (V850 Variable Attributes): New section.
6373 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
6375         PR 1078
6376         * doc/extend.texi (MicroBlaze Function Attributes): Document
6377         interrupt_handler and fast_interrupt attributes.
6379 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
6381         PR other/60465
6382         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
6383         for local symbolic operands.
6384         * config/ia64/predicates.md (local_symbolic_operand64): New
6385         predicate.
6387 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6389         PR rtl-optimization/68651
6390         * combine.c (combine_simplify_rtx): Canonicalize x + x into
6391         x << 1.
6393 2016-01-05  Nathan Sidwell  <nathan@acm.org>
6395         * alias.c (compare_base_decls): Use symtab_node::get.
6397 2016-01-05  Nick Clifton  <nickc@redhat.com>
6399         PR target/68770
6400         * ira-costs.c (copy_cost): Initialise the t_icode field of the
6401         secondary_reload_info structure.
6403         PR target/66655
6404         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
6405         decls if weak support is available.
6407 2016-01-04  Martin Sebor  <msebor@redhat.com>
6409         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
6411 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
6413         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
6414         OPTION_MASK_P9_DFORM.
6416         * config/rs6000/constraints.md (wo constraint): New constraint for
6417         ISA 3.0 (power9).
6419         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
6420         for wo constraint.
6421         (rs6000_init_hard_regno_mode_ok): Likewise.
6423         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
6424         wo constraint.
6426         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
6427         expanders not to have constraints.  Add support for ISA 3.0 xxperm
6428         instruction.  Add support for fusing xxlor with xxperm.
6429         (altivec_vperm_<mode>_internal): Likewise.
6430         (altivec_vperm_v8hiv16qi): Likewise.
6431         (altivec_vperm_<mode>v16q): Likewise.
6432         (altivec_vperm_<mode>_uns): Likewise.
6433         (vperm_v8hiv4si): Likewise.
6434         (vperm_v16qiv8hi): Likewise.
6436         * doc/md.texi (RS/6000 constraints): Document wo constraint.
6438 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
6440         Update copyright years.
6442         * gcc.c (process_command): Update copyright notice dates.
6443         * gcov-dump.c (print_version): Ditto.
6444         * gcov.c (print_version): Ditto.
6445         * gcov-tool.c (print_version): Ditto.
6446         * gengtype.c (create_file): Ditto.
6447         * doc/cpp.texi: Bump @copying's copyright year.
6448         * doc/cppinternals.texi: Ditto.
6449         * doc/gcc.texi: Ditto.
6450         * doc/gccint.texi: Ditto.
6451         * doc/gcov.texi: Ditto.
6452         * doc/install.texi: Ditto.
6453         * doc/invoke.texi: Ditto.
6455 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6457         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
6458         modes larger than TImode as TImode if NEON is not enabled.
6460 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6462         PR target/69100
6463         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
6464         mode for %f0-%f31 only if TARGET_FPU.
6466 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6468         PR target/69072
6469         * config/sparc/sparc.c (scan_record_type): Take into account subfields
6470         to compute the PACKED_P predicate.
6471         (function_arg_record_value): Minor tweaks.
6473 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6475         * doc/install.texi (--with-multilib-list): Describe the meaning of the
6476         option for arm*-*-* targets.
6478 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
6480         * doc/extend.texi (Common Function Attributes): Move docs for
6481         MSP430-specific attributes to....
6482         (MSP430 Function Attributes): ...here.  Delete the redundant
6483         entries and copy-edit the remaining text.
6484         (MSP430 Variable Attributes): Use uniform format for index
6485         entries and add a cross-reference to the corresponding function
6486         attribute docs.
6488 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
6490         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
6491         -finite-math typo.
6492         (x86 Options): Likewise.
6494 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
6496         PR 1078
6498         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
6499         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
6500         to corresponding attribute.
6502 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
6504         * doc/extend.texi (Common Function Attributes) <noplt>: Move
6505         to correct alphabetization of table.  Copy-edit and correct
6506         markup.
6507         <stack_protect>: Likewise.
6508         <target_clones>: Likewise.
6509         <simd>: Likewise.
6510         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
6511         Correct punctuation.
6512         (Code Gen Options) <-fno-plt>: Copy-edit.
6514 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6516         PR target/68917
6517         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
6518         SI values.  Explicitly convert SI to DI and vice-versa.
6520 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
6522         PR tree-optimization/69070
6523         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
6524         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
6526         PR sanitizer/69055
6527         * ubsan.c (ubsan_instrument_float_cast): Call
6528         initialize_sanitizer_builtins.
6530         PR target/69015
6531         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
6533 Copyright (C) 2016 Free Software Foundation, Inc.
6535 Copying and distribution of this file, with or without modification,
6536 are permitted in any medium without royalty provided the copyright
6537 notice and this notice are preserved.