[obvious] Fix param name in dump file
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2
3         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4         Change --param max-completely-peeled-times to
5         --param max-completely-peel-times in dump file printing.
6
7 2016-05-13  Richard Biener  <rguenther@suse.de>
8
9         PR tree-optimization/42587
10         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
11         (find_bswap_or_nop_1): Likewise.
12         (bswap_replace): Likewise.
13
14 2016-05-13  Martin Liska  <mliska@suse.cz>
15
16         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
17         Initialize a variable with default value.
18
19 2016-05-13  Martin Liska  <mliska@suse.cz>
20
21         * doc/invoke.texi: Enhance explanation of error recovery
22         of sanitizers.
23
24 2016-05-13  Martin Liska  <mliska@suse.cz>
25
26         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
27         (struct cost_pair): Change inv_expr_id (int) to inv_expr
28         (iv_inv_expr_ent *).
29         (struct iv_inv_expr_ent): Comment struct fields.
30         (sort_iv_inv_expr_ent): New function.
31         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
32         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
33         a hash_map between iv_inv_expr_ent and number of usages.
34         (niter_for_exit): Fix coding style.
35         (tree_ssa_iv_optimize_init): Use renamed variable.
36         (determine_base_object): Fix coding style.
37         (alloc_iv): Likewise.
38         (find_interesting_uses_outside): Likewise.
39         (add_candidate_1): Likewise.
40         (add_standard_iv_candidates): Likewise.
41         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
42         (prepare_decl_rtl): Fix coding style.
43         (get_address_cost): Likewise.
44         (get_shiftadd_cost): Likewise.
45         (force_expr_to_var_cost): Likewise.
46         (compare_aff_trees): Likewise.
47         (get_expr_id): Restructure the function.
48         (get_loop_invariant_expr_id): Renamed to
49         get_loop_invariant_expr.
50         (get_computation_cost_at): Replace usage of inv_expr_id with
51         inv_expr.
52         (get_computation_cost): Likewise.
53         (determine_group_iv_cost_generic): Likewise.
54         (determine_group_iv_cost_address): Likewise.
55         (iv_period): Fix coding style.
56         (iv_elimination_compare_lt): Likewise.
57         (may_eliminate_iv): Likewise.
58         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
59         inv_expr.
60         (determine_group_iv_costs): Dump invariant expressions.
61         (iv_ca_recount_cost): Use the newly added hash_map.
62         (iv_ca_set_remove_invariants): Fix coding style.
63         (iv_ca_set_add_invariants): Fix coding style.
64         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
65         invariants.
66         (iv_ca_set_cp): Likewise.
67         (iv_ca_new): Initialize the newly added hash_map and remove
68         initialization of fields.
69         (iv_ca_free): Delete the hash_map.
70         (iv_ca_dump): Dump invariant expressions.
71         (iv_ca_extend): Fix coding style.
72         (try_add_cand_for): Likewise.
73         (create_new_ivs): Dump information about # of avg iterations and
74         # of used invariant expressions.
75         (rewrite_use_compare): Fix coding style.
76         (free_loop_data): Set default value for max_inv_expr_id.
77
78 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
79
80         * cse.c (rest_of_handle_cse): Use cleanup_cfg
81         returned value cse_cfg_altered computation.
82         (rest_of_handle_cse2): Likewise.
83         (rest_of_handle_cse_after_global_opts): Likewise.
84
85 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
86
87         PR target/53440
88         * config/arm/arm.c (arm32_output_mi_thunk): New.
89         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
90         to split Thumb1 vs TARGET_32BIT functionality.
91         (arm_thumb1_mi_thunk): New.
92
93 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
94
95         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
96         to true.
97
98 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
99
100         PR target/71080
101         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
102
103 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
104
105         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
106         (expand_builtin_trap): Emit a regular call.
107         (set_builtin_user_assembler_name): Remove obsolete cases.
108         * dse.c (scan_insn): Adjust.
109         * except.c: Include calls.h.
110         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
111         emit a regular call to setjmp.
112         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
113         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
114         (emit_block_move_via_libcall): Delete.
115         (block_move_fn): Delete.
116         (init_block_move_fn): Likewise.
117         (emit_block_move_libcall_fn): Likewise.
118         (emit_block_op_via_libcall): New function.
119         (set_storage_via_libcall): Tidy up and use memset builtin.
120         (block_clear_fn): Delete.
121         (init_block_clear_fn): Likewise.
122         (clear_storage_libcall_fn): Likewise.
123         (expand_assignment): Call emit_block_move_via_libcall.
124         Do not include gt-expr.h.
125         * expr.h (emit_block_op_via_libcall): Declare.
126         (emit_block_copy_via_libcall): New inline function.
127         (emit_block_move_via_libcall): Likewise.
128         (emit_block_comp_via_libcall): Likewise.
129         (block_clear_fn): Delete.
130         (init_block_move_fn): Likewise.
131         (init_block_clear_fn): Likewise.
132         (emit_block_move_via_libcall): Likewise.
133         (set_storage_via_libcall): Add default parameter value.
134         * libfuncs.h (enum libfunc_index): Remove obsolete values.
135         (abort_libfunc): Delete.
136         (memcpy_libfunc): Likewise.
137         (memmove_libfunc): Likewise.
138         (memcmp_libfunc): Likewise.
139         (memset_libfunc): Likewise.
140         (setbits_libfunc): Likewise.
141         (setjmp_libfunc): Likewise.
142         (longjmp_libfunc): Likewise.
143         (profile_function_entry_libfunc): Likewise.
144         (profile_function_exit_libfunc): Likewise.
145         (gcov_flush_libfunc): Likewise.
146         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
147         and DECL_VISIBILITY on the declaration.
148         (init_optabs): Do not initialize obsolete libfuncs.
149         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
150         * tree-core.h (ECF_RET1): Define.
151         (ECF_TM_PURE): Adjust.
152         (ECF_TM_BUILTIN): Likewise.
153         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
154         (build_common_builtin_nodes): Initialize abort builtin.
155         Add ECF_RET1 on memcpy, memmove and memset builtins.
156         Pass final flags for alloca and alloca_with_align builtins.
157         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
158         obsolete builtins.
159         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
160         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
161         set_storage_via_libcall and call emit_block_copy_via_libcall.
162
163 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
164
165         * config/i386/i386.md (*call_got_x32): Change operand 0 to
166         DImode before it is passed to ix86_output_call_operand.
167         (*call_value_got_x32): Ditto for operand 1.
168
169 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
170
171         PR rtl-optimization/70904
172         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
173         reload for wide mode.
174
175 2016-05-12  Marek Polacek  <polacek@redhat.com>
176
177         PR c/70756
178         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
179         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
180         * langhooks.h (incomplete_type_error): Likewise.
181         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
182         parameter, pass it down to incomplete_type_error.
183         * tree.h (size_in_bytes): New inline overload.
184         (size_in_bytes_loc): Renamed from size_in_bytes.
185
186 2016-05-12  Richard Biener  <rguenther@suse.de>
187
188         PR tree-optimization/71059
189         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
190         nary before looking up or entering the expression into the VN
191         hashes.
192         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
193         Make sure to re-use NARYs without result as inserted by
194         phi-translation.
195
196 2016-05-12  Richard Biener  <rguenther@suse.de>
197
198         PR tree-optimization/71062
199         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
200         field.
201         * tree-ssa-structalias.c (set_uids_in_ptset): Set
202         vars_contains_restrict if the var is a restrict tag.
203         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
204         do not disambiguate pointers against it.
205         (dump_points_to_solution): Re-structure and adjust for new
206         vars_contains_restrict flag.
207         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
208
209 2016-05-12  Martin Liska  <mliska@suse.cz>
210
211         * doc/invoke.texi: Explain connection between
212         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
213
214 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
215
216         PR tree-optimization/71006
217         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
218         consider COND_EXPR as a mask producer.
219
220 2016-05-12  Marek Polacek  <polacek@redhat.com>
221
222         PR driver/71063
223         * opts.c (common_handle_option): Detect missing argument for --help^.
224
225 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
226
227         PR target/70830
228         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
229         when popping the PC and within an interrupt handler routine.
230         Add missing tab to output of "ldmfd".
231         (output_return_instruction): Output LDMFD with SP update rather
232         than POP when returning from interrupt handler.
233
234 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
235
236         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
237         TARGET_64BIT && TARGET_AVX512DQ.
238         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
239         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
240         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
241         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
242         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
243         (*vec_extractv4si_zext): Add avx512dq alternative.
244         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
245         use v instead of x constraint in other alternatives where possible.
246
247         * config/i386/sse.md (sse2_loadld): Use v instead of x
248         constraint in alternatives 0,1,4.
249
250         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
251         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
252         v constraints instead of x and <pinsr_evex_isa> isa attribute.
253
254         PR target/71019
255         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
256         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
257         is not emitted unless TARGET_AVX512BW.
258         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
259         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
260         for the result operand.
261
262         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
263         constraint instead of x in avx alternatives.  Use maybe_evex instead
264         of vex prefix.
265
266         * config/i386/constraints.md (Yv): New constraint.
267         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
268         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
269         * config/i386/i386.md (avx512fvecmode): New mode attr.
270         (*pushtf): Use v constraint instead of x.
271         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
272         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
273         (*absneg<mode>2): Use Yv constraint instead of x constraint.
274         (*absnegtf2_sse): Likewise.
275         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
276         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
277         avx512f alternatives.
278         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
279
280 2016-05-12  Richard Biener  <rguenther@suse.de>
281
282         PR tree-optimization/71060
283         * tree-data-ref.c (initialize_data_dependence_relation): Do not
284         require exact match of DR_BASE_OBJECT but only matching address and
285         type.
286
287 2016-05-12  Richard Biener  <rguenther@suse.de>
288
289         PR tree-optimization/70986
290         * cfganal.c: Include cfgloop.h.
291         (dfs_find_deadend): Prefer to take edges exiting loops.
292
293 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
294
295         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
296         compile and run time.
297
298 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
299
300         PR c/43651
301         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
302
303 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
304
305         * config/i386/i386.c (legitimize_pic_address): Use
306         copy_to_suggested_reg instead of gen_movsi.
307
308 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
309
310         * config/rs6000/predicates.md (quad_memory_operand): Move most of
311         the code into quad_address_p and call it to share code with
312         vsx_quad_dform_memory_operand.
313         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
314         d-form support.
315         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
316         bit instead of being a separate word.  Split -mpower9-dform into
317         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
318         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
319         for the register class supporting 128-bit quad word memory offsets.
320         (mode_supports_vsx_dform_quad): Helper function to return if the
321         register class uses quad word memory offsets.
322         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
323         (rs6000_debug_reg_global): Always print if we are using LRA or not.
324         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
325         instructions are enabled, set up the appropriate addr_masks for
326         128-bit types.
327         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
328         -mpower9-dform-scalar, instead of -mpower9-dform.
329         (rs6000_option_override_internal): Split -mpower9-dform into two
330         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
331         -mpower9-dform switch sets or clears both.  If we are not using
332         the LRA register allocator, do not enable -mpower9-dform-vector by
333         default.  If we are using LRA, enable -mpower9-dform-vector and
334         -mvsx-timode if it is appropriate.  Issue a warning if either
335         -mpower9-dform-vector or -mvsx-timode are explicitly used without
336         enabling LRA.
337         (quad_address_offset_p): New helper function to return if the
338         offset is legal for quad word memory instructions.
339         (quad_address_p): New function to determin if GPR or vector
340         register quad word memory addresses are legal.
341         (mem_operand_gpr): Validate quad word address offsets.
342         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
343         d-form (register + offset) instructions.
344         (offsettable_ok_by_alignment): Likewise.
345         (rs6000_legitimate_offset_address_p): Likewise.
346         (legitimate_lo_sum_address_p): Likewise.
347         (rs6000_legitimize_address): Likewise.
348         (rs6000_legitimize_reload_address): Add more debug statements for
349         -mdebug=addr.
350         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
351         d-form instructions.
352         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
353         d-form instructions.  Distinguish different cases in debug
354         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
355         d-form instructions.
356         (rs6000_preferred_reload_class): Likewise.
357         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
358         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
359         of the ISA 2.06 indexed memory instructions.
360         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
361         use them to save/restore the saved vector registers instead of
362         using Altivec instructions.
363         (rs6000_emit_epilogue): Likewise.
364         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
365         (rs6000_opt_masks): Split -mpower9-dform into
366         -mpower9-dform-scalar and -mpower9-dform-vector.
367         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
368         was not selected.
369         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
370         ISA 3.0 vector indexed memory instructions, and fold the code into
371         the normal mov<mode> patterns.
372         (p9_vecstore_<mode>): Likewise.
373         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
374         instructions.
375         (vsx_movti_64bit): Likewise.
376         (vsx_movti_32bit): Likewise.
377         * config/rs6000/constraints.md (wO constraint): New constraint for
378         ISA 3.0 vector d-form support.
379         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
380         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
381         include -mpower9-dform-vector until we switch over to LRA.
382         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
383         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
384         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
385         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
386         for -mpower9-dform and -mlra.
387         * doc/md.texi (wO constraint): Document wO constraint.
388
389 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
390
391         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
392         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
393         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
394         Move handling of non-insn arguments inline into the sole user:
395         (output_trans_func): ...here.
396         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
397         in emitted function prototype.
398         (output_internal_insn_latency_func): Ditto.  Simplify.
399         (output_internal_maximal_insn_latency_func): Ditto.  Delete
400         always-unused argument.
401         (output_insn_latency_func): Ditto.
402         (output_maximal_insn_latency_func): Ditto.
403
404 2016-05-11  Richard Biener  <rguenther@suse.de>
405
406         PR tree-optimization/71055
407         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
408         sth with precision not equal to access size verify we don't chop
409         off bits.
410
411 2016-05-11  Richard Biener  <rguenther@suse.de>
412
413         PR debug/71057
414         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
415         (dwarf2out_finish): Move retry_incomplete_types call ...
416         (dwarf2out_early_finish): ... here.
417
418 2016-05-11  Richard Biener  <rguenther@suse.de>
419
420         PR middle-end/71002
421         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
422         if the langhook insists on it.
423         * fold-const.c (make_bit_field_ref): Add arg for the original
424         reference and preserve its alias-set.
425         (decode_field_reference): Take exp by reference and adjust it
426         to the original memory reference.
427         (optimize_bit_field_compare): Adjust callers.
428         (fold_truth_andor_1): Likewise.
429         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
430
431 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
432
433         PR middle-end/70807
434         * cfgrtl.h (delete_insn_and_edges): Now return bool.
435         * cfgrtl.c (delete_insn_and_edges): Likewise.
436         * config/i386/i386.c (convert_scalars_to_vector): Remove
437         redundant code.
438         * cse.c (cse_insn): Compute cse_cfg_altered.
439         (delete_trivially_dead_insns): Likewise.
440         (cse_cc_succs): Likewise.
441         (rest_of_handle_cse): Free dominance info if required.
442         (rest_of_handle_cse2): Likewise.
443         (rest_of_handle_cse_after_global_opts): Likewise.
444
445 2016-05-11  Alan Modra  <amodra@gmail.com>
446
447         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
448         abi_v4_pass_in_fpr): New functions.
449         (rs6000_function_arg_boundary): Exclude complex IBM long double
450         from 64-bit alignment when ABI_V4.
451         (rs6000_function_arg, rs6000_function_arg_advance_1,
452         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
453
454 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
455
456         PR rtl-optimization/71028
457         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
458         jump with just a return in the fallthrough block if the branch
459         block contains just a return as well.
460
461 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
462
463         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
464         * match.pd ((X & Y) ^ Y): ... this.
465         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
466         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
467
468 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
469
470         * read-md.c (require_char_ws): New function.
471         (read_string): Simplify using require_char_ws.
472         (handle_constants): Likewise.
473         (handle_enum): Likewise.
474         (handle_file): Likewise.
475         * read-md.h (require_char_ws): New declaration.
476         * read-rtl.c (read_conditions): Simplify using require_char_ws.
477         (read_mapping): Likewise.
478         (read_rtx_code): Likewise.
479         (read_nested_rtx): Likewise.
480
481 2016-05-10  James Norris  <jnorris@codesourcery.com>
482
483         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
484         if offloading is enabled and -fopenacc or -fopenmp is specified.
485         (CRTOFFLOADEND): Likewise.
486         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
487         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
488
489 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
490
491         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
492         gotoff_operand code paths.  Use copy_to_suggested_regs and
493         expand_simple_binop where appropriate.  Cleanup.
494
495 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
496
497         PR target/70799
498         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
499         integer constants.
500         (dimode_scalar_chain::vector_const_cost): New.
501         (dimode_scalar_chain::compute_convert_gain): Handle constants.
502         (dimode_scalar_chain::convert_op): Likewise.
503         (dimode_scalar_chain::convert_insn): Likewise.
504
505 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
506
507         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
508         unary operation, not a binary one.
509
510 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
511
512         PR middle-end/70877
513         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
514         calls with type casted fndecl.
515
516 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
517
518         PR tree-optimization/70786
519         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
520         * gcc/calls.c (initialize_argument_information): Bind bounds
521         with corresponding args passed by reference.
522
523 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
524
525         PR target/70927
526         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
527         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
528         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
529         accordingly.
530
531 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
532
533         PR target/70963
534         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
535         code for a zero scale factor.
536         (vsx_xvcvdpuxds_scale): Likewise.
537
538 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
539
540         * diagnostic-show-locus.c (layout::layout): Call show_ruler
541         if show_ruler_p was set on the context.
542         (layout::show_ruler): New method.
543         * diagnostic.h (struct diagnostic_context): Add field
544         "show_ruler_p".
545
546 2016-05-10  Richard Biener  <rguenther@suse.de>
547
548         PR tree-optimization/71039
549         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
550         (chk_uses): New function.
551         (propagate_with_phi): Verify we can safely replicate the lhs of an
552         aggregate assignment on all incoming edges.
553
554 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
555
556         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
557         Forward declare.
558         (rx_atomic_sequence): New class.
559         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
560         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
561         non-inline.
562         (rx_atomic_sequence::rx_atomic_sequence,
563         rx_atomic_sequence::~rx_atomic_sequence): New functions.
564         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
565         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
566         CTRLREG_INTB): New constants.
567         (FETCHOP): New code iterator.
568         (fethcop_name, fetchop_name2): New iterator code attributes.
569         (QIHI): New mode iterator.
570         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
571         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
572         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
573
574 2016-05-10  Martin Liska  <mliska@suse.cz>
575
576         * tree-inline.c (remap_dependence_clique): Do not remap
577         debugging statements.
578
579 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
580
581         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
582         ("*fixuns_truncdfdi2_z13")
583         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
584         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
585         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
586
587 2016-05-10  Richard Biener  <rguenther@suse.de>
588
589         PR tree-optimization/70497
590         PR tree-optimization/28367
591         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
592         split out from ...
593         (visit_reference_op_load): ... here.
594         (vn_reference_lookup_3): Use it to handle subreg-like accesses
595         with simplified BIT_FIELD_REFs.
596         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
597         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
598         correctly.
599
600 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
601
602         * dwarf2out.c (add_abstract_origin_attribute): Adjust
603         documentation comment.  For BLOCK nodes, add a
604         DW_AT_abstract_origin attribute that points to the DIE generated
605         for the origin BLOCK.
606         (gen_lexical_block_die): Call add_abstract_origin_attribute for
607         blocks from inlined functions.
608
609 2016-05-10  Alan Modra  <amodra@gmail.com>
610
611         PR target/70947
612         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
613         regrename modifying insns saving lr before __morestack call.
614         * config/rs6000/rs6000.md (split_stack_return): Similarly for
615         insns restoring lr after __morestack call.
616
617 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
618
619         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
620         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
621         expanders.
622         * config/i386/sse.md (vec_interleave_high<mode>,
623         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
624         <avx512>_vpermt2var<mode>3_maskz): Likewise.
625
626 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
627
628         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
629         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
630         parallel reassociation for power8 and forward.
631
632 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
633
634         * config/i386/i386.md (absneg splitters with general regs): Use
635         general_reg_operand predicate.
636         (btsq peephole2): Use x86_64_immediate_operand to check if new
637         value is suitable for immediate operand.  Generate emitted insn
638         using RTL expressions.
639         (btcq peephole2): Ditto.
640         (btrq peephole2): Ditto.  Generate correct immediate operand
641         for AND masking.
642
643 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
644
645         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
646         bitpos.
647
648 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
649
650         * tree-affine.c (wide_int_constant_multiple_p): Add missing
651         pointer dereference.
652
653 2016-05-09  Richard Biener  <rguenther@suse.de>
654
655         PR tree-optimization/70985
656         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
657         op0 isn't a gimple register.
658
659 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
660
661         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
662         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
663         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
664         (i6400_fpu_mult): New cpu units.
665         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
666         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
667         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
668         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
669         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
670         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
671         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
672         (i6400_msa_long_float4, i6400_msa_long_float5)
673         (i6400_msa_long_float8, i6400_msa_fdiv_df)
674         (i6400_msa_fdiv_sf): New reservations.
675         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
676         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
677         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
678         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
679         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
680         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
681         (msa_short_cmp, msa_short_float2, msa_short_logic3)
682         (msa_short_store4, msa_long_load, msa_short_store)
683         (msa_long_logic, msa_long_float2, msa_long_float4)
684         (msa_long_float5, msa_long_float8, msa_long_mult)
685         (msa_long_fdiv, msa_long_div): New reservations.
686
687 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
688             Sameera Deshpande  <sameera.deshpande@imgtec.com>
689             Matthew Fortune  <matthew.fortune@imgtec.com>
690             Graham Stott  <graham.stott@imgtec.com>
691             Chao-ying Fu  <chao-ying.fu@imgtec.com>
692
693         * config.gcc: Add MSA header file for mips*-*-* target.
694         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
695         (Ubv8i, Urv8):  New constraints.
696         * config/mips/mips-ftypes.def: Add function types for MSA
697         builtins.
698         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
699         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
700         * config/mips/mips-msa.md: New file.
701         * config/mips/mips-protos.h
702         (mips_split_128bit_const_insns): New prototype.
703         (mips_msa_idiv_insns): Likewise.
704         (mips_split_128bit_move): Likewise.
705         (mips_split_128bit_move_p): Likewise.
706         (mips_split_msa_copy_d): Likewise.
707         (mips_split_msa_insert_d): Likewise.
708         (mips_split_msa_fill_d): Likewise.
709         (mips_expand_msa_branch): Likewise.
710         (mips_const_vector_same_val_p): Likewise.
711         (mips_const_vector_same_bytes_p): Likewise.
712         (mips_const_vector_same_int_p): Likewise.
713         (mips_const_vector_shuffle_set_p): Likewise.
714         (mips_const_vector_bitimm_set_p): Likewise.
715         (mips_const_vector_bitimm_clr_p): Likewise.
716         (mips_msa_vec_parallel_const_half): Likewise.
717         (mips_msa_output_division): Likewise.
718         (mips_ldst_scaled_shift): Likewise.
719         (mips_expand_vec_cond_expr): Likewise.
720         * config/mips/mips.c (enum mips_builtin_type): Add
721         MIPS_BUILTIN_MSA_TEST_BRANCH.
722         (mips_gen_const_int_vector_shuffle): New prototype.
723         (mips_const_vector_bitimm_set_p): New function.
724         (mips_const_vector_bitimm_clr_p): Likewise.
725         (mips_const_vector_same_val_p): Likewise.
726         (mips_const_vector_same_bytes_p): Likewise.
727         (mips_const_vector_same_int_p): Likewise.
728         (mips_const_vector_shuffle_set_p): Likewise.
729         (mips_symbol_insns): Forbid loading symbols via immediate for
730         MSA.
731         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
732         stores.
733         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
734         MSA.
735         (mips_lx_address_p): Add support load indexed address for MSA.
736         (mips_address_insns): Add calculation of instructions needed for
737         stores and loads for MSA.
738         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
739         CONST_VECTOR for MSA and let it fall through.
740         (mips_ldst_scaled_shift): New function.
741         (mips_subword_at_byte): Likewise.
742         (mips_msa_idiv_insns): Likewise.
743         (mips_legitimize_move): Validate MSA moves.
744         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
745         calculation of costs for MSA division.
746         (mips_split_move_p): Check if MSA moves need splitting.
747         (mips_split_move): Split MSA moves if necessary.
748         (mips_split_128bit_move_p): New function.
749         (mips_split_128bit_move): Likewise.
750         (mips_split_msa_copy_d): Likewise.
751         (mips_split_msa_insert_d): Likewise.
752         (mips_split_msa_fill_d): Likewise.
753         (mips_output_move): Handle MSA moves.
754         (mips_expand_msa_branch): New function.
755         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
756         Reinstate 'y' modifier.
757         (mips_file_start): Add MSA .gnu_attribute.
758         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
759         FPRs.
760         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
761         (mips_class_max_nregs): Add register size for MSA supported mode.
762         (mips_cannot_change_mode_class): Allow conversion between MSA
763         vector modes and TImode.
764         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
765         instruction.
766         (mips_secondary_reload_class): Force MSA loads/stores via memory.
767         (mips_preferred_simd_mode): Add preffered modes for MSA.
768         (mips_vector_mode_supported_p): Add MSA supported modes.
769         (mips_autovectorize_vector_sizes): New function.
770         (mips_msa_output_division): Likewise.
771         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
772         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
773         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
774         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
775         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
776         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
777         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
778         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
779         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
780         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
781         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
782         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
783         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
784         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
785         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
786         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
787         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
788         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
789         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
790         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
791         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
792         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
793         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
794         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
795         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
796         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
797         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
798         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
799         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
800         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
801         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
802         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
803         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
804         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
805         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
806         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
807         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
808         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
809         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
810         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
811         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
812         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
813         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
814         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
815         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
816         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
817         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
818         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
819         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
820         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
821         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
822         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
823         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
824         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
825         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
826         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
827         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
828         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
829         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
830         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
831         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
832         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
833         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
834         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
835         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
836         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
837         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
838         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
839         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
840         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
841         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
842         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
843         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
844         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
845         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
846         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
847         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
848         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
849         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
850         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
851         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
852         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
853         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
854         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
855         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
856         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
857         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
858         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
859         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
860         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
861         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
862         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
863         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
864         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
865         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
866         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
867         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
868         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
869         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
870         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
871         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
872         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
873         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
874         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
875         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
876         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
877         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
878         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
879         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
880         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
881         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
882         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
883         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
884         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
885         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
886         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
887         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
888         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
889         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
890         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
891         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
892         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
893         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
894         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
895         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
896         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
897         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
898         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
899         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
900         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
901         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
902         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
903         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
904         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
905         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
906         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
907         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
908         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
909         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
910         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
911         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
912         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
913         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
914         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
915         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
916         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
917         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
918         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
919         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
920         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
921         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
922         move_v builtins.
923         (mips_get_builtin_decl_index): New array.
924         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
925         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
926         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
927         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
928         (mips_init_builtins): Initialize mips_get_builtin_decl_index
929         array.
930         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
931         hook.
932         (mips_expand_builtin_insn): Prepare operands for
933         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
934         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
935         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
936         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
937         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
938         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
939         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
940         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
941         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
942         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
943         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
944         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
945         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
946         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
947         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
948         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
949         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
950         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
951         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
952         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
953         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
954         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
955         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
956         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
957         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
958         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
959         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
960         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
961         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
962         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
963         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
964         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
965         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
966         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
967         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
968         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
969         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
970         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
971         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
972         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
973         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
974         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
975         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
976         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
977         These are set implicitly and an error is reported if overridden.
978         (mips_expand_builtin_msa_test_branch): New function.
979         (mips_expand_msa_shuffle): Likewise.
980         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
981         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
982         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
983         (mips_expand_vec_unpack): Add support for MSA.
984         (mips_expand_vector_init): Likewise.
985         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
986         instead of const0_rtx.
987         (mips_msa_vec_parallel_const_half): New function.
988         (mips_gen_const_int_vector): Likewise.
989         (mips_gen_const_int_vector_shuffle): Likewise.
990         (mips_expand_msa_cmp): Likewise.
991         (mips_expand_vec_cond_expr): Likewise.
992         * config/mips/mips.h
993         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
994         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
995         specified.
996         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
997         (ISA_HAS_MSA): New macro.
998         (UNITS_PER_MSA_REG): Likewise.
999         (BITS_PER_MSA_REG): Likewise.
1000         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
1001         (MSA_REG_FIRST): New macro.
1002         (MSA_REG_LAST): Likewise.
1003         (MSA_REG_NUM): Likewise.
1004         (MSA_REG_P): Likewise.
1005         (MSA_REG_RTX_P): Likewise.
1006         (MSA_SUPPORTED_MODE_P): Likewise.
1007         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
1008         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
1009         * config/mips/mips.md: Include mips-msa.md.
1010         (alu_type): Add simd_add.
1011         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
1012         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
1013         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
1014         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
1015         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
1016         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
1017         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
1018         simd_move, simd_load, simd_store.  Choose "multi" for moves
1019         for "qword_mode".
1020         (qword_mode): New attribute.
1021         (insn_count): Add instruction count for quad moves.
1022         Increase the count for MIPS SIMD division.
1023         (UNITMODE): Add UNITMODEs for vector types.
1024         (addsub): New code iterator.
1025         * config/mips/mips.opt (mmsa): New option.
1026         * config/mips/msa.h: New file.
1027         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
1028         specified.
1029         * config/mips/mti-linux.h: Likewise.
1030         * config/mips/predicates.md
1031         (const_msa_branch_operand): New constraint.
1032         (const_uimm3_operand): Likewise.
1033         (const_uimm4_operand): Likewise.
1034         (const_uimm5_operand): Likewise.
1035         (const_uimm8_operand): Likewise.
1036         (const_imm5_operand): Likewise.
1037         (aq10b_operand): Likewise.
1038         (aq10h_operand): Likewise.
1039         (aq10w_operand): Likewise.
1040         (aq10d_operand): Likewise.
1041         (const_m1_operand): Likewise.
1042         (reg_or_m1_operand): Likewise.
1043         (const_exp_2_operand): Likewise.
1044         (const_exp_4_operand): Likewise.
1045         (const_exp_8_operand): Likewise.
1046         (const_exp_16_operand): Likewise.
1047         (const_vector_same_val_operand): Likewise.
1048         (const_vector_same_simm5_operand): Likewise.
1049         (const_vector_same_uimm5_operand): Likewise.
1050         (const_vector_same_uimm6_operand): Likewise.
1051         (const_vector_same_uimm8_operand): Likewise.
1052         (par_const_vector_shf_set_operand): Likewise.
1053         (reg_or_vector_same_val_operand): Likewise.
1054         (reg_or_vector_same_simm5_operand): Likewise.
1055         (reg_or_vector_same_uimm6_operand): Likewise.
1056         * doc/extend.texi (MIPS SIMD Architecture Functions): New
1057         section.
1058         * doc/invoke.texi (-mmsa): Document new option.
1059
1060 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1061
1062         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
1063         * configure: Regenerate.
1064         * config.in: Regenerate.
1065         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
1066         on -fvtable-verify.
1067         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
1068         (ENDFILE_VTV_SPEC): Define.
1069
1070 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
1071
1072         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
1073         registers in all interrupt handlers if necessary.
1074         (rl78_option_override): Add warning.
1075         (MUST_SAVE_MDUC_REGISTERS): New macro.
1076         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
1077         * config/rl78/rl78.c (check_mduc_usage): New function.
1078         (mduc_regs): New structure to hold MDUC register data.
1079         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
1080         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
1081         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
1082         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
1083         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
1084         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
1085
1086 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
1087
1088         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
1089         (tree-ssa-loop-niter.h): Ditto.
1090         (idx_within_array_bound, ref_within_array_bound): New functions.
1091         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
1092         Factor out check on writable base object to ...
1093         (base_object_writable): ... here.
1094
1095 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1096
1097         * config/arm/arm.md (probe_stack): Add modes to set source
1098         and destination.
1099
1100 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
1101
1102         * regrename.c (base_reg_class_for_rename): New static function.
1103         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
1104
1105 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
1106
1107         * cgraph.c (thunk_adjust): Export.
1108         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
1109         * cgraphunit.c (thunk_adjust): Export.
1110         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
1111         thunks.
1112         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
1113         inlinable.
1114         * tree-inline.c (expand_call_inline): Expand thunks inline.
1115
1116 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
1117
1118         PR target/70998
1119         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
1120         (*sse2_vd_cvtss2sd): Ditto.
1121         * config/i386/i386.md
1122         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
1123         Generate *sse2_vd_cvtsd2ss pattern.
1124         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
1125         Generate *sse2_vd_cvtss2sd pattern.
1126
1127 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
1128
1129         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
1130         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
1131         users.
1132
1133 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
1134
1135         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
1136         * config/sh/sh.c: Define and declare variables on first use throughout
1137         the file.
1138         (current_function_interrupt): Change to bool type.
1139         (frame_insn): Rename to emit_frame_insn and update users.
1140         (push_regs): Use bool for 'interrupt_handler' argument.
1141         (save_schedule_s): Remove.
1142         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
1143         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
1144         targetm.asm_out.unaligned_op.di.
1145         (gen_far_branch): Remove redundant forward declaration.
1146         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
1147         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
1148         (sh_set_return_address, sh_function_ok_for_sibcall,
1149         scavenge_reg): Update comments.
1150         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
1151         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
1152         (sh_attr_renesas_p): Remove unnecessary parentheses.
1153         (branch_dest): Simplify.
1154         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
1155         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
1156         (CUMULATIVE_ARGS): Change macro to typedef.
1157         (current_function_interrupt): Change to bool type.
1158         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
1159         Surround with __cplusplus ifdef.
1160         (sh_compare_op0, sh_compare_op1): Remove.
1161         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
1162
1163 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
1164
1165         * config/arm/arm.md: (arch): Add neon.
1166         (arch_enabled): Return yes for arch neon when TARGET_NEON.
1167         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
1168         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
1169         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
1170         attributes for alt renumbering.  Mark alt 3 as non-predicable.
1171         (thumb2_movdf_vfp): Likewise.
1172
1173 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
1174
1175         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
1176         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
1177         (*andqi_1): Add preferred_for_speed attribute to disparage
1178         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
1179         (*<code>qi_1): Ditto.
1180         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
1181         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
1182         (*ashlqi3_1): Ditto.
1183         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
1184         Add preferred_for_size attribute to disparage alternative 0 and
1185         preferred_for_speed attribute to disparage alternative 1 for
1186         TARGET_PARTIAL_REG_STALL targets.
1187
1188 2016-05-07  Tom de Vries  <tom@codesourcery.com>
1189
1190         PR tree-optimization/70956
1191         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
1192         def.
1193
1194 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
1195
1196         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
1197         * config/sh/sh.c (sh_cbranch_distance): Implement it.
1198         * config/sh/sh.md (branch_zero): Remove define_attr.
1199         (define_delay): Disable delay slot if branch distance is one insn.
1200
1201 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
1202
1203         * config/i386/i386.md (LEAMODE): New mode attribute.
1204         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
1205         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
1206         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
1207         operand 2 predicate.
1208         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
1209         (*lea<mode>_general_3): Ditto.
1210         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
1211
1212 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
1213
1214         * genmddump.c (main): Convert argv from char ** to const char **.
1215
1216 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
1217
1218         * coretypes.h (OVERRIDE): New macro.
1219         (FINAL): New macro.
1220
1221 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
1222
1223         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
1224         allow coalescing if the types are compatible.
1225
1226 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
1227
1228         * pass_manager.h (pass_manager::register_pass_name): New method.
1229         (pass_manager::get_pass_by_name): New method.
1230         (pass_manager::create_pass_tab): New method.
1231         (pass_manager::m_name_to_pass_map): New field.
1232         * passes.c (name_to_pass_map): Delete global in favor of field
1233         "m_name_to_pass_map" of pass_manager.
1234         (register_pass_name): Rename from a function to...
1235         (pass_manager::register_pass_name): ...this method, updating
1236         for renaming of global "name_to_pass_map" to field
1237         "m_name_to_pass_map".
1238         (create_pass_tab): Rename from a function to...
1239         (pass_manager::create_pass_tab): ...this method, updating
1240         for renaming of global "name_to_pass_map" to field.
1241         (get_pass_by_name): Rename from a function to...
1242         (pass_manager::get_pass_by_name): ...this method.
1243         (enable_disable_pass): Convert use of get_pass_by_name to
1244         a method call, locating the pass_manager singleton.
1245
1246 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
1247
1248         * genattr-common.c (main): Convert argv from char ** to const char **.
1249         * genattr.c (main): Likewise.
1250         * genattrtab.c (main): Likewise.
1251         * genautomata.c (initiate_automaton_gen): Likewise.
1252         (main): Likewise.
1253         * gencodes.c (main): Likewise.
1254         * genconditions.c (main): Likewise.
1255         * genconfig.c (main): Likewise.
1256         * genconstants.c (main): Likewise.
1257         * genemit.c (main): Likewise.
1258         * genenums.c (main): Likewise.
1259         * genextract.c (main): Likewise.
1260         * genflags.c (main): Likewise.
1261         * genmddeps.c (main): Likewise.
1262         * genopinit.c (main): Likewise.
1263         * genoutput.c (main): Likewise.
1264         * genpeep.c (main): Likewise.
1265         * genpreds.c (main): Likewise.
1266         * genrecog.c (main): Likewise.
1267         * gensupport.c (init_rtx_reader_args_cb): Likewise.
1268         (init_rtx_reader_args): Likewise.
1269         * gensupport.h (init_rtx_reader_args_cb): Likewise.
1270         (init_rtx_reader_args): Likewise.
1271         * gentarget-def.c (main): Likewise.
1272         * read-md.c (read_md_files): Likewise.
1273         * read-md.h (read_md_files): Likewise.
1274
1275 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
1276
1277         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
1278         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
1279         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
1280         Remove unused predicate.
1281         (register_and_not_fp_reg_operand): Ditto.
1282
1283 2016-05-06  Martin Liska  <mliska@suse.cz>
1284
1285         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
1286         instead of vec as the vector is local to the function.
1287
1288 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
1289
1290         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
1291         avx512bw alternative.
1292
1293         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
1294         before the ashr<mode>3 pattern.
1295
1296         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
1297         v instead of x in vex or maybe_vex alternatives, use
1298         maybe_evex instead of vex in prefix.
1299
1300         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
1301         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
1302         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
1303         in vex or maybe_vex alternatives, use maybe_evex instead of vex
1304         in prefix.
1305
1306         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
1307         v instead of x in vex or maybe_vex alternatives, use
1308         maybe_evex instead of vex in prefix.
1309
1310         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
1311         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
1312         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
1313         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
1314         alternatives, use maybe_evex instead of vex in prefix.
1315
1316         * config/i386/sse.md (vec_interleave_lowv4sf,
1317         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
1318         v instead of x in vex or maybe_vex alternatives, use
1319         maybe_evex instead of vex in prefix.
1320
1321         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
1322         v instead of x in vex or maybe_vex alternatives, use
1323         maybe_evex instead of vex in prefix.
1324
1325         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
1326         v constraint instead of x.
1327
1328 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
1329
1330         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
1331         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
1332         equality first.
1333
1334 2016-05-06  Richard Biener  <rguenther@suse.de>
1335
1336         PR tree-optimization/70948
1337         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1338         Properly clobber all fields of va_list for __builtin_va_start.
1339
1340 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
1341
1342         PR debug/70935
1343         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
1344         loop latch destination.
1345
1346 2016-05-06  Martin Liska  <mliska@suse.cz>
1347
1348         * tree-ssa-uninit.c: Apply manual changes
1349         to the GNU coding style.
1350         (prune_uninit_phi_opnds): Rename from
1351         prune_uninit_phi_opnds_in_unrealizable_paths.
1352
1353 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
1354
1355         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
1356         mspace): Remove deprecated options.
1357         * doc/invoke.texi (SH options): Remove -mspace.
1358
1359 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
1360
1361         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
1362
1363 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
1364
1365         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
1366         corresponding combine split pattern.
1367
1368 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
1369
1370         PR target/58219
1371         * config/sh/predicates.md (long_displacement_mem_operand): New.
1372         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
1373         Add movi20, movi20s alternatives.  Adjust length attribute for
1374         alternatives.
1375         (movsi_ie): Allow for any FPU.  Adjust length attribute for
1376         alternatives.
1377         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
1378         attribute for alternatives.
1379         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
1380         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
1381         length attribute for alternatives.
1382
1383 2016-05-06  Richard Biener  <rguenther@suse.de>
1384
1385         PR tree-optimization/70960
1386         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
1387
1388 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
1389
1390         PR target/52933
1391         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
1392         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
1393
1394 2016-05-06  Marek Polacek  <polacek@redhat.com>
1395
1396         PR sanitizer/70875
1397         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
1398
1399 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
1400
1401         PR target/54089
1402         * config/sh/sh.md (*rotcr): Add another variant.
1403
1404 2016-05-06  Richard Biener  <rguenther@suse.de>
1405
1406         PR middle-end/70931
1407         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
1408
1409 2016-05-06  Richard Biener  <rguenther@suse.de>
1410
1411         PR middle-end/70941
1412         * fold-const.c (split_tree): Always convert to the original type
1413         before negating.
1414
1415 2016-05-06  Richard Biener  <rguenther@suse.de>
1416
1417         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
1418         (fwprop_addr): Likewise.
1419
1420 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
1421
1422         PR target/70873
1423         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
1424         New prototype.
1425         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
1426         * config/i386/i386.md (push mem splitter): Use find_constant_src in
1427         the splitter condition.
1428         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
1429         the splitter condition.
1430         (FP float_extend load splitter): Ditto.
1431
1432 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
1433
1434         * config/i386/i386.md (peehole2 patterns): Change true_regnum
1435         to REGNO in all peephole2 patterns.
1436         (post-reload splitters): Change true_regnum to REGNO in
1437         post-reload splitters.
1438         (zero_extend splitters): Use general_reg_operand and
1439         nonimmediate_gr_operand predicates.
1440
1441 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
1442
1443         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
1444         v constraint instead of x.
1445
1446 2016-05-05  Alan Modra  <amodra@gmail.com>
1447
1448         PR target/68662
1449         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
1450         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
1451         TARGET_NO_FP_IN_TOC for -mrelocatable.
1452         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
1453         TARGET_RELOCATABLE test.
1454         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
1455         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
1456         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
1457         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
1458         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
1459         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
1460         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
1461         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
1462         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
1463         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
1464         Likewise.
1465         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
1466         (rs6000_stack_info): Likewise.
1467         (rs6000_elf_asm_out_constructor): Likewise.
1468         (rs6000_elf_asm_out_destructor): Likewise.
1469         (rs6000_elf_declare_function_name): Likewise.
1470         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
1471         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
1472         Don't define.
1473
1474 2016-05-05  Alan Modra  <amodra@gmail.com>
1475
1476         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
1477
1478 2016-05-05  Alan Modra  <amodra@gmail.com>
1479
1480         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
1481         out-of-line gpr restore for one or two regs if that would add
1482         a save of lr.
1483
1484 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
1485
1486         PR target/70873
1487         * config/i386/i386.md
1488         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
1489         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
1490         as operand 0 predicate.
1491         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
1492         Ditto.
1493         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
1494         Ditto.  Emit the pattern using RTX.
1495
1496         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
1497         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
1498         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
1499         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
1500         Ditto.
1501         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
1502         sse_reg_operand as operand 0 predicate.
1503
1504         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
1505         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
1506         instead of gen_rtx_REG.
1507         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
1508         Ditto.
1509
1510 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
1511
1512         * function.c (emit_use_return_register_into_block): Delete.
1513         (gen_return_pattern): Delete.
1514         (emit_return_into_block): Delete.
1515         (active_insn_between): Delete.
1516         (convert_jumps_to_returns): Delete.
1517         (emit_return_for_exit): Delete.
1518         (thread_prologue_and_epilogue_insns): Delete all code dealing with
1519         simple_return for shrink-wrapped blocks.
1520         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
1521         end of blocks that need one.
1522         (get_unconverted_simple_return): Delete.
1523         (convert_to_simple_return): Delete.
1524         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
1525         (convert_to_simple_return): Ditto.
1526
1527 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
1528
1529         * cfgcleanup.c (bb_is_just_return): New function.
1530         (try_optimize_cfg): Simplify jumps to return, branches to return,
1531         and branches around return.
1532
1533 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
1534
1535         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
1536         branch to a return.
1537
1538 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
1539
1540         PR c++/70906
1541         PR c++/70933
1542         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
1543         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
1544         assert flags & OEP_HASH_CHECK, instead of asserting it
1545         never happens.  Handle TARGET_EXPR.
1546         * fold-const.c (operand_equal_p): For hash verification,
1547         or in OEP_HASH_CHECK into flags.
1548
1549 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1550
1551         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
1552         comment.
1553         (compute_samebase_partition_bases): Fix typo.
1554
1555 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
1556
1557         * config/i386/sse.md (vec_interleave_highv8sf,
1558         vec_interleave_lowv8sf, vec_interleave_highv4df,
1559         vec_interleave_lowv4df): Remove constraints from expanders.
1560
1561         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
1562
1563 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
1564
1565         * tree-inline.c (expand_call_inline): Fix path dealing with
1566         making lhs of call statement undefined.
1567
1568 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
1569
1570         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1571         Check availability on NODE, too.
1572         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
1573         (cgraph_node::call_for_symbol_and_aliases): Likewise.
1574         (varpool_node::call_for_symbol_and_aliase): Likewise.
1575         * ipa-pure-const.c (add_new_function): Analyze all bodies.
1576         (propagate_pure_const): Propagate across interposable functions, too.
1577         (skip_function_for_local_pure_const): Do not skip interposable bodies
1578         with aliases.
1579         (pass_local_pure_const::execute): Update.
1580
1581 2016-05-04  Marek Polacek  <polacek@redhat.com>
1582
1583         * doc/invoke.texi: Document -Wdangling-else.
1584
1585 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1586
1587         * config.gcc: Error out when conflicting multilib is detected.  Do not
1588         loop over multilibs since no combination is legal.
1589
1590 2016-05-04  Alan Modra  <amodra@gmail.com>
1591
1592         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
1593         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
1594         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
1595         Align .toc.
1596
1597 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
1598
1599         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
1600         Clean up p5600 comments.
1601
1602 2016-05-04  Richard Biener  <rguenther@suse.de>
1603
1604         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
1605         constructor simplifications.
1606         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
1607
1608 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
1609
1610         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
1611         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
1612         result.set_rtx is null instead of aborting.
1613         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
1614         Always enable.
1615         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
1616         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
1617         *mov<mode>_store_postinc): New patterns.
1618
1619 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
1620
1621         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
1622         as commutative.  Check both conversions are NOP.
1623         ((A & B) OP (C & B)): Remove.
1624
1625 2016-05-04  Alan Modra  <amodra@gmail.com>
1626
1627         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
1628
1629 2016-05-04  Alan Modra  <amodra@gmail.com>
1630
1631         PR target/70866
1632         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
1633         when cr2,3,4 are all fixed regs.
1634
1635 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
1636
1637         PR rtl-optimization/57193
1638         * opts.c (default_options_table): Revert OPT_frename_registers change.
1639         * doc/invoke.texi (-frename-registers, -O2): Likewise.
1640
1641 2016-05-03  Martin Sebor  <msebor@redhat.com>
1642
1643         PR c++/66561
1644         * builtins.c (fold_builtin_FILE): New function.
1645         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
1646         (fold_builtin_0): Call them.
1647         * gimplify.c (gimplify_call_expr): Remove the handling of
1648         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
1649
1650         PR c++/66561
1651         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
1652         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
1653         constants.
1654
1655         PR c++/66639
1656         * doc/extend.texi (Function Names as Strings): Update __func__,
1657         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
1658         constants.
1659
1660 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
1661             Richard Biener  <rguenther@suse.de>
1662
1663         PR tree-optimization/70916
1664         * tree-if-conv.c: Include cfganal.h.
1665         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
1666         and remove_fake_exit_edges around the optimization pass.
1667
1668 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
1669
1670         * cgraph.c (symbol_table::create_edge): Set inline_failed.
1671         (cgraph_edge::make_direct): Likewise.
1672         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
1673         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
1674         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
1675         (CIF_THUNK): New code.
1676         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
1677         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
1678         (compute_inline_parameters): Set inline_failed for thunks.
1679         (inline_analyze_function): Cleanup.
1680         * ipa-inline.c (can_inline_edge_p): Do not deal with
1681         call_stmt_cannot_inline_p.
1682         (can_early_inline_edge_p): Likewise.
1683         (early_inliner): Initialize inline_failed.
1684         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
1685
1686 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
1687
1688         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
1689         from nonimm_ssenomem_operand.
1690         (nonimm_ssenomem_operand): New predicate.
1691         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
1692         as operand 0 predicate.
1693         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
1694         Disable unsupported alternatives using "enabled" attribute.
1695         Use register_ssemem_operand as operand 0 predicate.
1696         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
1697
1698 2016-05-03  Marek Polacek  <polacek@redhat.com>
1699
1700         PR c/70859
1701         * input.c (expansion_point_location): New function.
1702         * input.h (expansion_point_location): Declare.
1703
1704 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
1705
1706         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
1707         occurence with frame_offset_ ones.
1708
1709 2016-05-03  Alan Modra  <amodra@gmail.com>
1710
1711         PR rtl-optimization/70890
1712         * ira.c (combine_and_move_insns): When moving def_insn, remove
1713         equivs on use_insn.
1714
1715 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1716
1717         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
1718         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
1719         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
1720         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
1721
1722 2016-05-03  Alan Modra  <amodra@gmail.com>
1723
1724         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
1725         for SAVE_MULTIPLE/STORE_MULTIPLE.
1726
1727 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
1728
1729         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
1730         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
1731
1732 2016-05-03  Richard Biener  <rguenther@suse.de>
1733
1734         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
1735         default true.
1736         (gimplify_arg): Likewise.
1737         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
1738         re-writing the result to a decl if required.
1739         (internal_get_tmp_var): Add allow_ssa parameter
1740         and override into_ssa with it.
1741         (get_formal_tmp_var): Adjust.
1742         (get_initialized_tmp_var): Add allow_ssa parameter.
1743         (gimplify_arg): Add allow_ssa parameter and avoid generating
1744         SSA names for the result false.
1745         (gimplify_call_expr): If the call may return twice do not
1746         gimplify parameters into SSA.
1747         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
1748         (gimplify_modify_expr): Adjust assert.  For noreturn calls
1749         with a SSA name LHS adjust its def.
1750         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
1751         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
1752         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
1753         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
1754         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
1755         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
1756         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
1757         (optimize_target_teams): Do not allow SSA names for clause operands.
1758         (gimplify_expr): Likewise for where we mark the result addressable.
1759         * passes.def (pass_init_datastructures): Remove.
1760         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
1761         (rewrite_stmt): Likewise.
1762         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
1763         (replace_locals_op): Replace SSA names.
1764         (copy_gimple_seq_and_replace_locals): Init src_cfun.
1765         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
1766         * cgraph.c (release_function_body): Free CFG annotations only
1767         when we have a CFG.  Simplify.
1768         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
1769         force_gimple_operand instead of get_initialized_tmp_var.
1770         * tree-pass.h (make_pass_init_datastructures): Remove.
1771         * tree-ssa.c (execute_init_datastructures): Remove.
1772         (pass_data_init_datastructures): Likewise.
1773         (class pass_init_datastructures): Likewise.
1774         (make_pass_init_datastructures): Likewise.
1775         * omp-low.c (create_omp_child_function): Init SSA data structures.
1776         (grid_expand_target_grid_body): Likewise.
1777         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
1778         name before adding it to names_to_release.
1779         (remove_bb): Always release SSA defs.
1780         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
1781         before dereferencing it.
1782         * cgraphunit.c (init_lowered_empty_function): Always
1783         int SSA data structures.
1784         * tree-ssanames.c (release_defs): Remove assert that we are in
1785         SSA form.
1786         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
1787
1788 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
1789             Uros Bizjak  <ubizjak@gmail.com>
1790
1791         PR rtl-optimization/70467
1792         * config/i386/predicates.md (x86_64_hilo_int_operand,
1793         x86_64_hilo_general_operand): New predicates.
1794         * config/i386/constraints.md (Wd): New constraint.
1795         * config/i386/i386.md (mode attr di): Use Wd instead of e.
1796         (general_hilo_operand): New mode attr.
1797         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
1798         instead of <general_operand>.
1799         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
1800         x86_64_hilo_general_operand instead of <general_operand>.
1801
1802 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
1803
1804         PR tree-optimization/70916
1805         * tree-if-conv.c (constant_or_ssa_name): Removed.
1806         (fold_build_cond_expr): Use is_gimple_val instead of
1807         constant_or_ssa_name.
1808
1809         PR tree-optimization/70916
1810         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
1811         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
1812
1813         PR target/49244
1814         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
1815         (optimize_atomic_bit_test_and): New function.
1816         (pass_fold_builtins::execute): Use it.
1817         * optabs.def (atomic_bit_test_and_set_optab,
1818         atomic_bit_test_and_complement_optab,
1819         atomic_bit_test_and_reset_optab): New optabs.
1820         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
1821         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
1822         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
1823         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
1824         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
1825         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
1826         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
1827         * doc/md.texi (atomic_bit_test_and_set@var{mode},
1828         atomic_bit_test_and_complement@var{mode},
1829         atomic_bit_test_and_reset@var{mode}): Document.
1830         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
1831         atomic_bit_test_and_complement<mode>,
1832         atomic_bit_test_and_reset<mode>): New expanders.
1833         (atomic_bit_test_and_set<mode>_1,
1834         atomic_bit_test_and_complement<mode>_1,
1835         atomic_bit_test_and_reset<mode>_1): New insns.
1836
1837 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
1838
1839         PR rtl-optimization/70687
1840         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
1841         instead of unsigned HOST_WIDE_INT.
1842
1843 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
1844
1845         PR rtl-optimization/44281
1846         * hard-reg-set.h (struct target_hard_regs): New field
1847         x_fixed_nonglobal_reg_set.
1848         (fixed_nonglobal_reg_set): New macro.
1849         * reginfo.c (init_reg_sets_1): Initialize it.
1850         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
1851         of fixed_reg_set.
1852         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
1853
1854 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
1855
1856         PR tree-optimization/56541
1857         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
1858         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
1859         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
1860         (any_complicated_phi): new static variable.
1861         (aggressive_if_conv): delete.
1862         (if_convertible_phi_p): support phis with more than two arguments.
1863         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
1864         critical pred edges.
1865         (ifcvt_split_critical_edges): support phis with more than two
1866         arguments by checking new parameter.  only split critical edges
1867         if needed.
1868         (tree_if_conversion): handle simd pragma marked loop using new
1869         local variable aggressive_if_conv.  check any_complicated_phi.
1870
1871 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
1872
1873         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
1874         before using it.
1875
1876 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
1877
1878         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
1879         cbase.
1880
1881 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
1882
1883         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
1884         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
1885         define_insn_and_split.
1886         (mulsi3_i): New define_insn_and_split.
1887         (mulsi3_call): Convert to define_insn.
1888         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
1889         Remove constraints.
1890
1891 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
1892
1893         * machmode.h (mode_complex): Add support to give the complex mode
1894         for a given mode.
1895         (GET_MODE_COMPLEX_MODE): Likewise.
1896         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
1897         stored by build_complex_type and gfc_build_complex_type instead of
1898         trying to figure out the appropriate mode based on the size. Raise
1899         an assertion error, if the type was not set.
1900         * genmodes.c (struct mode_data): Add field for the complex type of
1901         the given type.
1902         (blank_mode): Likewise.
1903         (make_complex_modes): Remember the complex mode created in the
1904         base type.
1905         (emit_mode_complex): Write out the mode_complex array to map a
1906         type mode to the complex version.
1907         (emit_insn_modes_c): Likewise.
1908         * tree.c (build_complex_type): Set the complex type to use before
1909         calling layout_type.
1910         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
1911         support for __float128 complex datatypes.
1912         (rs6000_hard_regno_mode_ok): Likewise.
1913         (rs6000_setup_reg_addr_masks): Likewise.
1914         (rs6000_complex_function_value): Likewise.
1915         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
1916         __float128 and __ibm128 complex.
1917         (FLOAT128_IBM_P): Likewise.
1918         (ALTIVEC_ARG_MAX_RETURN): Likewise.
1919         * doc/extend.texi (Additional Floating Types): Document that
1920         -mfloat128 must be used to enable __float128.  Document complex
1921         __float128 and __ibm128 support.
1922
1923 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
1924
1925         PR target/49244
1926         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
1927         char/short arguments promoted to int because of promote_prototypes.
1928
1929 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
1930
1931         * config/i386/predicates.md (register_ssemem_operand): New predicate.
1932         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
1933         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
1934         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
1935         alternatives using "enabled" attribute.  Use register_ssemem_operand
1936         as operand 1 predicate.
1937         (*cmpi<unord>xf_i387): Split XFmode pattern from
1938         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
1939         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
1940         *absneg<mode>2_i387.  Disable unsupported alternatives using
1941         "enabled" attribute.
1942         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
1943
1944 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
1945
1946         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
1947         marker.
1948         (oacc_loop_process): Check mask for loop termination.
1949
1950 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
1951
1952         * cif-code.def (CIF_THUNK): Add.
1953         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
1954         accidental change.
1955
1956 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
1957
1958         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
1959         (dump_inline_summary): Dump it.
1960         (fp_expression_p): New predicate.
1961         (estimate_function_body_sizes): Use it.
1962         (inline_merge_summary): Merge fp_expressions.
1963         (inline_read_section): Read fp_expressions.
1964         (inline_write_summary): Write fp_expressions.
1965         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
1966         codegen boundary if either caller or callee is !fp_expressions.
1967         * ipa-inline.h (inline_summary): Add fp_expressions.
1968         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
1969         to fp_expressions be sure the fp generation flags are updated.
1970
1971 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
1972
1973         PR rtl-optimization/70467
1974         * cse.c (cse_insn): Handle no-op MEM moves after folding.
1975
1976         PR rtl-optimization/70467
1977         * ipa-pure-const.c (check_call): Handle internal calls even in
1978         ipa mode like in local mode.
1979
1980 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1981
1982         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
1983
1984 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
1985
1986         * match.pd (X u< X, X u> X): New transformations.
1987
1988 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
1989
1990         * flag-types.h (enum warn_strict_overflow_code): Move ...
1991         * coretypes.h: ... here.
1992         * fold-const.h (fold_overflow_warning): Declare.
1993         * fold-const.c (fold_overflow_warning): Make non-static.
1994         (fold_comparison): Move the transformation of X +- C1 CMP C2
1995         into X CMP C2 -+ C1 ...
1996         * match.pd: ... here.
1997         * gimple-fold.c (fold_stmt_1): Protect with
1998         fold_defer_overflow_warnings.
1999
2000 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
2001
2002         * omp-low.c (struct oacc_loop): Add 'inner' field.
2003         (new_oacc_loop_raw): Initialize it to zero.
2004         (oacc_loop_fixed_partitions): Initialize it.
2005         (oacc_loop_auto_partitions): Partition outermost loop to outermost
2006         available partitioning.
2007
2008 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
2009
2010         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
2011         register_operand.
2012         (umulsidi3): Likewise.
2013         (indirect_jump): Fix jump instruction assembly patterns.
2014
2015 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
2016
2017         PR target/70860
2018         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
2019         (nvptx_function_value): Assert non-NULL cfun.
2020
2021 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
2022
2023         PR rtl-optimization/70886
2024         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
2025
2026         * cselib.h (rtx_equal_for_cselib_1): Declare.
2027         (rtx_equal_for_cselib_p: New inline function.
2028         * cselib.c (rtx_equal_for_cselib_p): Delete.
2029         (rtx_equal_for_cselib_1): Make public.
2030
2031 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
2032
2033         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
2034         (register_mixssei387nonimm_operand): Remove predicate.
2035         * config/i386/i386.md (*fop_<mode>_comm): Merge from
2036         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
2037         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
2038         for TARGET_MIX_SSE_I387 alternatives.
2039         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
2040         Disable unsupported alternatives using "enabled" attribute.  Use
2041         nonimm_ssenomem_operand as operand 1 predicate.  Also check
2042         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
2043
2044 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
2045
2046         * tree.c (cst_and_fits_in_hwi): Simplify.
2047
2048 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
2049
2050         * tree.h (wi::to_wide): New function.
2051         * expr.c (expand_expr_real_1): Use wi::to_wide.
2052         * fold-const.c (int_const_binop_1): Likewise.
2053         (extract_muldiv_1): Likewise.
2054
2055 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
2056
2057         * wide-int.h: Update offset_int and widest_int documentation.
2058         (WI_SIGNED_SHIFT_RESULT): New macro.
2059         (wi::binary_shift): Define signed_shift_result_type for
2060         shifts on offset_int- and widest_int-like types.
2061         (generic_wide_int): Support <<= and >>= if << and >> are supported.
2062         * tree.h (int_bit_position): Use shift operators instead of wi::
2063          shifts.
2064         * alias.c (adjust_offset_for_component_ref): Likewise.
2065         * expr.c (get_inner_reference): Likewise.
2066         * fold-const.c (fold_comparison): Likewise.
2067         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
2068         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
2069         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2070         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2071         (stmt_kills_ref_p): Likewise.
2072         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
2073         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
2074         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2075         (ao_ref_init_from_vn_reference): Likewise.
2076
2077 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
2078
2079         * wide-int.h: Update offset_int and widest_int documentation.
2080         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
2081         (wi::binary_traits): Allow ordered comparisons between offset_int and
2082         offset_int, between widest_int and widest_int, and between either
2083         of these types and basic C types.
2084         (operator <, <=, >, >=): Define for the same combinations.
2085         * tree.h (tree_int_cst_lt): Use comparison operators instead
2086         of wi:: comparisons.
2087         (tree_int_cst_le): Likewise.
2088         * gimple-fold.c (fold_array_ctor_reference): Likewise.
2089         (fold_nonarray_ctor_reference): Likewise.
2090         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
2091         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
2092         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
2093         * tree-sra.c (completely_scalarize): Likewise.
2094         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
2095         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
2096         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
2097         (check_for_binary_op_overflow): Likewise.
2098         (search_for_addr_array): Likewise.
2099         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
2100
2101 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
2102
2103         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
2104         (arc_save_restore): Likewise.
2105         (arc_dwarf_register_span): Likewise.
2106         (arc_output_pic_addr_const): Initialize suffix variable.
2107
2108 2016-05-02  Martin Liska  <mliska@suse.cz>
2109
2110         * symbol-summary.h (function_summary::function_summary):
2111         Remove checking assert for all cgraph nodes.
2112         (function_summary::get): Check summary_uid.
2113         (symtab_insertion): Check summary_uid.
2114
2115 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
2116
2117         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
2118         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
2119         bmaskn instruction.
2120         (arc_dwarf_register_span): Remove enum keyword.
2121         (compact_memory_operand_p): New function.
2122         * config/arc/arc.h (reg_class): Add code density register classes.
2123         (REG_CLASS_NAMES): Likewise.
2124         (REG_CLASS_CONTENTS): Likewise.
2125         * config/arc/arc.md (*movqi_insn): Add code density instructions.
2126         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
2127         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
2128         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
2129         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
2130         constraints.
2131         (h, Rcd, Rsd, Rzd): New register constraints.
2132         (T): Use compact_memory_operand_p function.
2133         * config/arc/predicates.md (compact_load_memory_operand): Remove.
2134
2135 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
2136
2137         * config/sh/sh.md (*negnegt, *movtt): Remove.
2138
2139 2016-05-02  Marek Polacek  <polacek@redhat.com>
2140             Tom de Vries  <tom@codesourcery.com>
2141
2142         PR tree-optimization/70700
2143         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
2144         bigger than FIRST_REF_NODE.
2145
2146 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
2147
2148         PR target/52898
2149         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
2150         TARGET_CMPEQDI_T.
2151         (prepare_cbranch_operands): Don't use scratch register.  Assume that
2152         function is used when pseudos can be created.
2153         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
2154         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
2155         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
2156         define_expand.  Allow it only when pseudos can be created.
2157         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
2158
2159 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
2160
2161         * config/i386/constraints.md (BC): Only allow -1 operands.
2162         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
2163         Add "enabled" attribute.  Update XI mode attribute calculation.
2164         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
2165         (*movoi_internal_avx): Update XI mode attribute calculation.
2166         (*movti_internal): Ditto.
2167
2168 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
2169
2170         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
2171         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
2172
2173 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
2174
2175         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
2176         statement on instruction code.  Remove trailing spaces.
2177         (altivec_expand_stv_builtin): Likewise.
2178
2179 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
2180
2181         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
2182         (TARGET_FPU_DOUBLE): Simplify.
2183         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
2184         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
2185         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
2186         with 'TARGET_FPU_DOUBLE'.
2187         * config/sh/sh.md: Likewise.
2188
2189 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
2190
2191         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
2192         SH_DIV_STR_FOR_SIZE): Remove.
2193         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
2194         SH_DIV_STR_FOR_SIZE): Remove.
2195
2196 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
2197
2198         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
2199         logical_reg_operand): Delete.
2200         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
2201         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
2202         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
2203         match_operand and match_test.
2204         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
2205         variables on their first use.  Return bool values.
2206         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
2207         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
2208         arith_reg_operand for input operand.  Remove empty constraints.
2209         (xorsi3): Delete.
2210         (*xorsi3_compact): Rename to xorsi3.
2211         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
2212         (*zero_extend<mode>si2_disp_mem): Update comment.
2213         (mov_nop): Delete.
2214
2215 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
2216
2217         * config/sh/t-sh: Remove SH5 support.
2218         * config.gcc: Likewise.
2219         * configure: Likewise.
2220
2221 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2222
2223         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
2224
2225 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
2226
2227         * config/sh/sh.c (register_sh_passes, sh_option_override,
2228         sh_print_operand, prepare_move_operands,
2229         sh_can_follow_jump): Remove TARGET_SH1 checks.
2230         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
2231         PROMOTE_MODE): Likewise.
2232         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
2233         movdi): Likewise.
2234
2235 2016-04-30  Alan Modra  <amodra@gmail.com>
2236
2237         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
2238         restoring when fixed_reg_p, but allow out-of-line or stmw save.
2239         Check for user regs later to avoid unnecessary looping over regs.
2240         Merge user reg check with non-saved reg check.  Don't force
2241         inline VR restore when static chain used.
2242         (rs6000_frame_related): Omit eh_frame info for user regs when
2243         saving.
2244         (fixed_regs_p): Delete.
2245
2246 2016-04-30  Alan Modra  <amodra@gmail.com>
2247
2248         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
2249         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
2250         Update all uses.
2251
2252 2016-04-30  Alan Modra  <amodra@gmail.com>
2253
2254         PR target/69645
2255         * config/rs6000/rs6000.c (fixed_reg_p): New function.
2256         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
2257         Update all uses.
2258
2259 2016-04-30  Alan Modra  <amodra@gmail.com>
2260
2261         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
2262         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
2263         flag_pic test for Darwin.
2264
2265 2016-04-30  Alan Modra  <amodra@gmail.com>
2266
2267         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
2268         throw_calls_crossed.
2269         (REG_FREQ_CALLS_CROSSED): Delete.
2270         (REG_N_THROWING_CALLS_CROSSED): Delete.
2271         * regstat.c (regstat_bb_compute_ri): Don't calculate
2272         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
2273         (dump_reg_info): Don't print call cross frequency.
2274         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
2275         and REG_N_THROWING_CALLS_CROSSED.
2276
2277 2016-04-30  Alan Modra  <amodra@gmail.com>
2278
2279         * regs.h (struct reg_info_t): Delete live_length.
2280         (REG_LIVE_LENGTH): Delete macro.
2281         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
2282         local_live, local_processed and local_live_last_luid params.
2283         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
2284         Formatting fixes.
2285         (regstat_compute_ri): Adjust for above.  Don't set
2286         REG_LIVE_LENGTH.
2287         (dump_reg_info): Don't print live length.
2288         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
2289         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
2290         Localize loop_depth var.
2291
2292 2016-04-30  Alan Modra  <amodra@gmail.com>
2293
2294         * ira.c (enum valid_equiv): New.
2295         (validate_equiv_mem): Return enum.
2296         (update_equiv_mem): Create replacement in more cases.
2297         (add_store_equivs): Update validate_equiv_mem call.
2298
2299 2016-04-30  Alan Modra  <amodra@gmail.com>
2300
2301         * ira.c (combine_and_move_insns): Rather than scanning insns,
2302         use DF infrastucture to find use and def insns.
2303
2304 2016-04-30  Alan Modra  <amodra@gmail.com>
2305
2306         ira.c (combine_and_move_insns): Move invariant conditions..
2307         (ira.c): ..to here.  Call combine_and_move_insns before
2308         add_store_equivs.  Call grow_reg_equivs later.  Allocate
2309         req_equiv later using max_reg_num() rather than global max_regno.
2310         (contains_replace_regs): Delete.
2311         (add_store_equivs): Remove contains_replace_regs test.
2312
2313 2016-04-30  Alan Modra  <amodra@gmail.com>
2314
2315         * ira.c (struct equiv_mem_data): New.
2316         (equiv_mem, equiv_mem_modified): Delete static vars.
2317         (validate_equiv_mem_from_store): Use "data" param to communicate..
2318         (validate_equiv_mem): ..from here.
2319
2320 2016-04-30  Alan Modra  <amodra@gmail.com>
2321
2322         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
2323         split out from..
2324         (update_reg_equivs): ..here.  Move allocation and freeing of
2325         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
2326         end_alias_analysis to..
2327         (ira): ..here.
2328
2329 2016-04-30  Alan Modra  <amodra@gmail.com>
2330
2331         * ira.c (pdx_subregs): Delete.
2332         (struct equivalence): Add pdx_subregs field.
2333         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
2334         pdx_subregs access.
2335         (update_equiv_regs): Don't create or free pdx_subregs.  Update
2336         pdx_subregs access.
2337
2338 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2339
2340         * config/rs6000/altivec.h: Change definitions of vec_xl and
2341         vec_xst.
2342         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
2343         (LD_ELEMREV_V2DI): New.
2344         (LD_ELEMREV_V4SF): New.
2345         (LD_ELEMREV_V4SI): New.
2346         (LD_ELEMREV_V8HI): New.
2347         (LD_ELEMREV_V16QI): New.
2348         (ST_ELEMREV_V2DF): New.
2349         (ST_ELEMREV_V2DI): New.
2350         (ST_ELEMREV_V4SF): New.
2351         (ST_ELEMREV_V4SI): New.
2352         (ST_ELEMREV_V8HI): New.
2353         (ST_ELEMREV_V16QI): New.
2354         (XL): New.
2355         (XST): New.
2356         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2357         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
2358         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
2359         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
2360         (altivec_expand_builtin): Add handling for
2361         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
2362         (rs6000_invalid_builtin): Add error-checking for
2363         RS6000_BTM_P9_VECTOR.
2364         (altivec_init_builtins): Define builtins used to implement vec_xl
2365         and vec_xst.
2366         (rs6000_builtin_mask_names): Define power9-vector.
2367         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
2368         (RS6000_BTM_P9_VECTOR): Define.
2369         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
2370         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
2371         (vsx_ld_elemrev_v2df): Likewise.
2372         (vsx_ld_elemrev_v4sf): Likewise.
2373         (vsx_ld_elemrev_v4si): Likewise.
2374         (vsx_ld_elemrev_v8hi): Likewise.
2375         (vsx_ld_elemrev_v16qi): Likewise.
2376         (vsx_st_elemrev_v2df): Likewise.
2377         (vsx_st_elemrev_v2di): Likewise.
2378         (vsx_st_elemrev_v4sf): Likewise.
2379         (vsx_st_elemrev_v4si): Likewise.
2380         (vsx_st_elemrev_v8hi): Likewise.
2381         (vsx_st_elemrev_v16qi): Likewise.
2382         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
2383         grammar.
2384
2385 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
2386
2387         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
2388         out into ...
2389         (simplify_control_stmt_condition_1): ... here.  Recurse into
2390         BIT_AND_EXPRs and BIT_IOR_EXPRs.
2391
2392 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
2393
2394         PR target/69810
2395         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
2396         (zero_extendqi<mode>2_dot): Revert earlier conversion from
2397         define_insn_and_split to define_insn.
2398         (zero_extendqi<mode>2_dot2): Same.
2399         (extendqi<mode>2_dot): Same.
2400         (extendqi<mode>2_dot2): Same.
2401
2402 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
2403
2404         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
2405         (probe_stack): New expander.
2406         (probe_stack_<mode>): New insn pattern.
2407
2408 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
2409
2410         * config/i386/i386.md
2411         (operations with memory inputs setting flags peephole2):
2412         Remove uneeded REG_P checks.  Cleanup pattern generation.
2413
2414 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
2415
2416         * tree-vect-loop.c (vect_transform_loop): Fix
2417         nb_iterations_upper_bound computation for vectorized loop.
2418
2419 2016-04-29  Marek Polacek  <polacek@redhat.com>
2420             Jakub Jelinek  <jakub@redhat.com>
2421
2422         PR sanitizer/70342
2423         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
2424         TARGET_EXPR_SLOT as a base.
2425
2426 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
2427
2428         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
2429         with 'rCm2' constraints to limit possible immediate size.
2430         (*load_zeroextendqisi_update): Likewise.
2431         (*load_signextendqisi_update): Likewise.
2432         (*loadhi_update): Likewise.
2433         (*load_zeroextendhisi_update): Likewise.
2434         (*load_signextendhisi_update): Likewise.
2435         (*loadsi_update): Likewise.
2436         (*loadsf_update): Likewise.
2437
2438 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
2439
2440         * config/i386/predicates.md (constm1_operand): Fix comparison.
2441
2442 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
2443
2444         * testsuite/gcc.target/arc/ieee_eq.c: New test.
2445
2446 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
2447
2448         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2449         remaining SH5 related settings.
2450         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
2451         shmedia_prepare_call_address): Delete.
2452         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
2453         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
2454         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
2455         UNSUPPORTED_SH2A): Remove m5 checks.
2456         (sh_divide_strategy_e): Remove SH5 division strategies.
2457         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
2458         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
2459
2460 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2461
2462         * config/s390/s390.c (s390_rtx_costs): Update documentation.
2463
2464 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2465
2466         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
2467         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
2468         Change lder to ldr.
2469         * config/s390/vector.md ("mov<mode>"): Likewise.
2470
2471 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
2472
2473         * config/s390/constraints.md ("U", "W"): Invoke
2474         s390_mem_constraint with "ZR" and "ZT".
2475         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
2476         addresses when using LRA.  Accept also short displacements for S
2477         and T constraints.  Do not check for long displacement target for
2478         S and T constraints.
2479         (s390_mem_constraint): Remove handling of U and W constraints.
2480         * config/s390/s390.md (various patterns): Remove the short
2481         displacement constraints (Q and R) if a long displacement
2482         constraint is present.  Add longdisp as required CPU capability.
2483         * config/s390/vector.md: Likewise.
2484         * config/s390/vx-builtins.md: Likewise.
2485
2486 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2487
2488         PR target/60040
2489         * reload1.c (reload): Call finish_spills before
2490         restarting reload loop. Skip select_reload_regs
2491         if update_eliminables_and_spill returns true.
2492
2493 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
2494
2495         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
2496         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
2497         (umulhisi3_imm): Update predicates and constraint letters.
2498         (umulhisi3_reg): Declare instruction as commutative.
2499         * config/arc/constraints.md (J12, J16): New constraints.
2500         * config/arc/predicates.md (short_unsigned_const_operand): New
2501         predicate.
2502         (arc_short_operand): Likewise.
2503         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
2504
2505 2016-04-29  Richard Biener  <rguenther@suse.de>
2506
2507         PR tree-optimization/13962
2508         PR tree-optimization/65686
2509         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
2510         * tree-ssa-alias.c (ptrs_compare_unequal): New function
2511         using PTA to compare pointers.
2512         * match.pd: Add pattern for pointer equality compare simplification
2513         using ptrs_compare_unequal.
2514
2515 2016-04-29  Richard Biener  <rguenther@suse.de>
2516
2517         * stor-layout.c (layout_type): Do not build a pointer-to-element
2518         type for arrays.
2519
2520 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
2521
2522         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
2523         Use SWI mode iterator.  Use general_reg_operand predicate.
2524         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
2525         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
2526         predicates.
2527
2528 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
2529
2530         PR middle-end/70843
2531         * fold-const.c (operand_equal_p): Don't verify hash value equality
2532         if arg0 == arg1.
2533         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
2534         and OMP_CLAUSE.
2535
2536 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
2537
2538         PR target/70858
2539         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
2540         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
2541         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
2542         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
2543         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
2544
2545 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
2546
2547         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
2548         to info.  Don't initialize separate fields to 0.  Clean up
2549         formatting a bit.
2550
2551 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
2552
2553         * config/i386/i386.md (peephole2s for operations with memory inputs):
2554         Use SWI mode iterator.
2555         (peephole2s for operations with memory outputs): Ditto.
2556         Do not check for stack checking probe.
2557
2558         (probe_stack): Remove expander.
2559
2560 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
2561             Andrew Burgess  <andrew.burgess@embecosm.com>
2562
2563         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
2564         operands as 32-bits.
2565
2566 2016-04-28  Jason Merrill  <jason@redhat.com>
2567
2568         * gdbinit.in: Skip line-map.h.
2569
2570 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
2571             Andrew Burgess  <andrew.burgess@embecosm.com>
2572
2573         * config/arc/arc.c (arc_conditional_register_usage): Take
2574         TARGET_RRQ_CLASS into account.
2575         (arc_print_operand): Support printing 'p' and 's' operands.
2576         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
2577         as 0.
2578         (TARGET_RRQ_CLASS): Define.
2579         (IS_POWEROF2_OR_0_P): Define.
2580         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
2581         alternatives.
2582         (*tst_movb): New define_insn.
2583         (*tst): Avoid recognition if it could prevent '*tst_movb'
2584         combination; replace c/CnL with c/Chs alternative.
2585         (*tst_bitfield_tst): New define_insn.
2586         (*tst_bitfield_asr): New define_insn.
2587         (*tst_bitfield): New define_insn.
2588         (andsi3_i): Add Rrq variant.
2589         (extzv): New define_expand.
2590         (insv): New define_expand.
2591         (*insv_i): New define_insn.
2592         (*movb): New define_insn.
2593         (*movb_signed): New define_insn.
2594         (*movb_high): New define_insn.
2595         (*movb_high_signed): New define_insn.
2596         (*movb_high_signed + 1): New define_split pattern.
2597         (*mrgb): New define_insn.
2598         (*mrgb + 1): New define_peephole2 pattern.
2599         (*mrgb + 2): New define_peephole2 pattern.
2600         * config/arc/arc.opt (mbitops): New option for nps400, uses
2601         TARGET_NPS_BITOPS_DEFAULT.
2602         * config/arc/constraints.md (q): Make register class conditional.
2603         (Rrq): New register constraint.
2604         (Chs): New constraint.
2605         (Clo): New constraint.
2606         (Chi): New constraint.
2607         (Cbf): New constraint.
2608         (Cbn): New constraint.
2609         (C18): New constraint.
2610         (Cbi): New constraint.
2611
2612 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
2613
2614         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
2615         dst->popcount.
2616         (bitmap_intersection_of_preds): Ditto.
2617         (bitmap_union_of_succs): Ditto.
2618         (bitmap_union_of_preds): Ditto.
2619         * sbitmap.c (do_popcount): Delete.
2620         (BITMAP_DEBUGGING): Delete.
2621         (sbitmap_verify_popcount): Delete.
2622         (sbitmap_alloc): Don't initialize the popcount field.
2623         (sbitmap_alloc_with_popcount): Delete.
2624         (sbitmap_resize): Don't resize the popcount array.
2625         (sbitmap_vector_alloc): Don't initialize the popcount field.
2626         (bitmap_copy): Don't copy the popcount array.
2627         (bitmap_clear): Don't clear the popcount array.
2628         (bitmap_clear): Delete the popcount array handling.
2629         (bitmap_ior_and_compl): Delete the popcount assert.
2630         (bitmap_not): Ditto.
2631         (bitmap_and_compl): Ditto.
2632         (bitmap_and): Delete the popcount array handling.
2633         (bitmap_xor): Ditto.
2634         (bitmap_ior): Ditto.
2635         (bitmap_or_and): Delete the popcount assert.
2636         (bitmap_and_or): Ditto.
2637         (popcount_table): Delete.
2638         (sbitmap_elt_popcount): Delete.
2639         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
2640         (bitmap_set_bit): Delete the popcount assert.
2641         (bitmap_clear_bit): Ditto.
2642         (sbitmap_free): Don't free the popcount array.
2643         (sbitmap_alloc_with_popcount): Delete declaration.
2644         (sbitmap_popcount): Ditto.
2645
2646 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
2647             Andrew Burgess  <andrew.burgess@embecosm.com>
2648
2649         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
2650         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
2651         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
2652         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
2653         * config/arc/arc.opt (mcmem): New option.
2654         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
2655         supply length for r/m alternative.
2656         (*extendqisi2_ac): Likewise.
2657         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
2658         r/Uex alternative.
2659         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
2660         (movhi_insn): Likewise.
2661         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
2662         (*zero_extendqihi2_i): Add r/Ucm alternative.
2663         (*zero_extendqisi2_ac): Likewise.
2664         (*zero_extendhisi2_i): Likewise.
2665         * config/arc/constraints.md (Uex): New memory constraint.
2666         (Ucm): New define_constraint.
2667         * config/arc/predicates.md (long_immediate_loadstore_operand):
2668         Return 0 for MEM with cmem_address address.
2669         (cmem_address_0): New predicates.
2670         (cmem_address_1): Likewise.
2671         (cmem_address_2): Likewise.
2672         (cmem_address): Likewise.
2673
2674 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
2675
2676         * config/rs6000/rs6000.c (machine_function): Rename
2677         insn_chain_scanned_p to spe_insn_chain_scanned_p.
2678         (rs6000_stack_info): Adjust.
2679
2680 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
2681             Andrew Burgess  <andrew.burgess@embecosm.com>
2682
2683         * config/arc/constraints.md (Usd): Convert to define_constraint.
2684         (Us<): Likewise.
2685         (Us>): Likewise.
2686
2687 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
2688
2689         PR target/70821
2690         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
2691         Add new peephole2 where the first insn is *mov<mode>_or instead of
2692         *mov<mode>_internal.
2693
2694 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
2695
2696         * tracer.c (bb_seen): Make static.
2697
2698 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2699
2700         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
2701         support, setup defaults.
2702         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
2703         * config/arc/arc.c (arc_init): Add NPS400 support.
2704         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
2705         (TARGET_ARC700): NPS400 is also an ARC700.
2706         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
2707
2708 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
2709
2710         PR target/70668
2711         * config/nds32/nds32.md (casesi): Don't access the operands array
2712         out of bounds.
2713
2714 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
2715
2716         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
2717         (or $-1,reg peephole2): Ditto.
2718         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
2719
2720 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
2721
2722         * doc/extend.texi (Common Function Attributes) [optimize]:
2723         Discourage use of the optimize attribute.
2724
2725 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
2726
2727         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
2728         special case builtin.
2729         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
2730         ALTIVEC_BUILTIN_VEC_ADDE.
2731         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
2732         support for ALTIVEC_BUILTIN_VEC_ADDE.
2733         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
2734         for __builtin_vec_adde.
2735
2736 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
2737
2738         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
2739         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
2740
2741 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2742
2743         PR testsuite/70595
2744         * doc/sourcebuild.texi (Effective-Target Keywords, Other
2745         attributes): Document cilkplus_runtime.
2746
2747 2016-04-28  Martin Jambor  <mjambor@suse.cz>
2748
2749         * tree-cfg.c (verify_expr): Verify that local declarations belong to
2750         this function.  Call verify_expr on MEM_REFs and bases of other
2751         handled_components.
2752
2753 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2754
2755         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
2756         for WORD_REGISTER_OPERATIONS to runtime check.
2757
2758 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
2759
2760         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
2761
2762 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
2763
2764         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
2765         big-endian compilation.
2766         * config/arc/arc.md (addf3): Likewise.
2767         (subdf3): Likewise.
2768         (muldf3): Likewise.
2769
2770 2016-04-28  Richard Biener  <rguenther@suse.de>
2771
2772         PR tree-optimization/70840
2773         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
2774         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
2775         Mark x * pow(x,c) -> pow(x,c+1) commutative.
2776         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
2777
2778 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2779
2780         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
2781         and explain why in a comment.
2782
2783 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
2784
2785         * config/arc/arc.md (cpu_facility): Add fpx variant.
2786         (subdf3): Prohibit use reverse sub when assist operations option
2787         is enabled.
2788         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
2789         instructions only when FPX is enabled.
2790         * testsuite/gcc.target/arc/trsub.c: New test.
2791
2792 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
2793
2794         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
2795         mult_operator when calculating "type" attribute.
2796         (*fop_<mode>_1_i387): Ditto.
2797         (*fop_xf_1_i387): Ditto.
2798         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
2799         Use std::swap to swap operands.  Use RTL expressions to generate
2800         converted pattern.
2801
2802 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
2803             Joern Rennecke  <joern.rennecke@embecosm.com>
2804
2805         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
2806         declaration.
2807         (emit_pic_move): Remove.
2808         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
2809         * config/arc/arc.c (emit_pic_move): Removed.
2810         (TARGET_HAVE_TLS): Define.
2811         (arc_conditional_register_usage): Test for arc_tp_regno.
2812         (arc_print_operand, arc_print_operand_address): Handle TLS
2813         unspecs.
2814         (arc_needs_pcl_p): New function.
2815         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
2816         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
2817         (arc_raw_symbolic_reference_mentioned_p): Likewise.
2818         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
2819         (arc_legitimize_tls_address): Likewise.
2820         (DTPOFF_ZERO_SYM): Define.
2821         (arc_legitimize_pic_address): Make it static, handle TLS cases.
2822         (arc_output_pic_addr_const): Print TLS unspecs.
2823         (prepare_pic_move): New function, replaces emit_pic_move.
2824         (arc_legitimate_constant_p): Handle TLS unspecs.
2825         (arc_legitimate_address_p): Likewise.
2826         (arc_rewrite_small_data_p): Use assert for TLS constants.
2827         (prepare_move_operands): Use prepare_pic_move.
2828         (arc_legitimize_address): Legitimize tls addresses.
2829         (arc_epilogue_uses): Check for arc_tp_regno.
2830         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
2831         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
2832         Define.
2833         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
2834         Likewise.
2835         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
2836         %(arc_tls_extra_start_spec).
2837         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
2838         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
2839         (EH_USES): Define.
2840         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
2841         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
2842         (UNSPEC_TLS_OFF): Add.
2843         (R10_REG): Define.
2844         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
2845         (get_thread_pointersi): New patterns.
2846         * config/arc/arc.opt (mtp-regno): New option.
2847         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
2848         (move_dest_operand): Likewise.
2849         * configure: Regenerate.
2850         * configure.ac: Add arc*-*-* case to test for tls.
2851         * doc/invoke.texi (ARC options): Document mtp-regno.
2852
2853 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
2854
2855         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
2856         the new ARC HS SIMD instructions.
2857         (arc_preferred_simd_mode): New function.
2858         (arc_autovectorize_vector_sizes): Likewise.
2859         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
2860         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
2861         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
2862         (arc_init_builtins): Add new SIMD builtin types.
2863         (arc_split_move): Handle 64 bit vector moves.
2864         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
2865         (TARGET_PLUS_QMACW): Define.
2866         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
2867         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
2868         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
2869         (VSUBADD4H): New builtins.
2870         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
2871         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
2872
2873 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
2874             Matthias Klose  <doko@debian.org>
2875
2876         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
2877
2878 2016-04-28  Richard Biener  <rguenther@suse.de>
2879
2880         PR middle-end/70777
2881         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
2882         canonicalization.
2883
2884 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
2885
2886         * common/config/sh/sh-common.c: Remove SH5 support.
2887         * config/sh/constraints.md: Likewise.
2888         * config/sh/config/sh/elf.h: Likewise.
2889         * config/sh/linux.h: Likewise.
2890         * config/sh/netbsd-elf.h: Likewise.
2891         * config/sh/predicates.md: Likewise.
2892         * config/sh/sh-c.c: Likewise.
2893         * config/sh/sh-protos.h: Likewise.
2894         * config/sh/sh.c: Likewise.
2895         * config/sh/sh.h: Likewise.
2896         * config/sh/sh.md: Likewise.
2897         * config/sh/sh.opt: Likewise.
2898         * config/sh/sync.md: Likewise.
2899         * config/sh/sh64.h: Delete.
2900         * config/sh/shmedia.h: Likewise.
2901         * config/sh/shmedia.md: Likewise.
2902         * config/sh/sshmedia.h: Likewise.
2903         * config/sh/t-netbsd-sh5-64: Likewise.
2904         * config/sh/t-sh64: Likewise.
2905         * config/sh/ushmedia.h: Likewise.
2906
2907 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
2908
2909         * config/i386/i386.md (sign_extend to memory peephole2s): Use
2910         general_reg_operand instead of register_operand predicate.
2911
2912 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2913
2914         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
2915
2916 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
2917
2918         * match.pd (A - B > A, A + B < A): New transformations.
2919
2920 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
2921
2922         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
2923         which defaults to true.  Emit an outer pair of parentheses only if
2924         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
2925         don't emit parentheses for the right-hand operand.
2926
2927 2016-04-27  Jeff Law  <law@redhat.com>
2928
2929         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
2930
2931 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2932
2933         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
2934         (altivec_lvx_<mode>_internal): Document.
2935         (altivec_lvx_<mode>_2op): New define_insn.
2936         (altivec_lvx_<mode>_1op): Likewise.
2937         (altivec_lvx_<mode>_2op_si): Likewise.
2938         (altivec_lvx_<mode>_1op_si): Likewise.
2939         (altivec_stvx_<mode>): Remove.
2940         (altivec_stvx_<mode>_internal): Document.
2941         (altivec_stvx_<mode>_2op): New define_insn.
2942         (altivec_stvx_<mode>_1op): Likewise.
2943         (altivec_stvx_<mode>_2op_si): Likewise.
2944         (altivec_stvx_<mode>_1op_si): Likewise.
2945         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2946         Expand vec_ld and vec_st during parsing.
2947         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
2948         changes.
2949         (altivec_expand_stvx_be): Likewise.
2950         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
2951         address-masking behavior in RTL.
2952         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
2953         address-masking behavior in RTL.
2954         (altivec_expand_builtin): Change builtin code arguments for calls
2955         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
2956         (insn_is_swappable_p): Avoid incorrect swap optimization in the
2957         presence of lvx/stvx patterns.
2958         (alignment_with_canonical_addr): New function.
2959         (alignment_mask): Likewise.
2960         (find_alignment_op): Likewise.
2961         (recombine_lvx_pattern): Likewise.
2962         (recombine_stvx_pattern): Likewise.
2963         (recombine_lvx_stvx_patterns): Likewise.
2964         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
2965         stvx patterns from expand.
2966         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
2967         expansions.
2968         (vector_altivec_store_<mode>): Likewise.
2969
2970 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
2971
2972         * config/aarch64/aarch64.md
2973         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
2974         remove the "fp" attributes.
2975         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
2976         add the "simd" attributes.
2977         (*movdf_aarch64): Likewise.
2978         (*movtf_aarch64): Remove the "fp" attributes.
2979         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
2980         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
2981
2982 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
2983
2984         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
2985         rtx to rtx_code_label *.
2986         * rtl.h (maybe_set_first_label_num): Likewise.
2987
2988 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
2989
2990         * df-core.c (df_add_problem): Make the problem param be const.
2991         (df_remove_problem): Make local "problem" be const.
2992         * df-problems.c (problem_RD): Make const.
2993         (problem_LR): Likewise.
2994         (problem_LIVE): Likewise.
2995         (problem_MIR): Likewise.
2996         (problem_CHAIN): Likewise.
2997         (problem_WORD_LR): Likewise.
2998         (problem_NOTE): Likewise.
2999         (problem_MD): Likewise.
3000         * df-scan.c (problem_SCAN): Likewise.
3001         * df.h (struct df_problem): Make field "dependent_problem" be
3002         const.
3003         (struct dataflow): Likewise for field "problem".
3004         (df_add_problem): Make param const.
3005
3006 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
3007
3008         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
3009         inter-unit moves to/from vector registers are enabled.  Do not disable
3010         for TARGET_MMX.
3011
3012 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
3013
3014         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
3015         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
3016         #define to...
3017         (enum df_problem_id): ...this new enum.
3018         (struct df_problem): Convert field "id" from "int" to
3019         enum df_problem_id.
3020
3021 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
3022
3023         * rtl.def: Update comment for "things in the instruction chain" to
3024         reflect the removal of the leading "i" field for INSN_UID in
3025         r210360.  Fix bogus apostrophe.
3026
3027 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
3028
3029         * config/i386/i386.md
3030         (lea arith with mem operand + setcc peephole2): Set operator mode.
3031
3032 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
3033
3034         PR target/70155
3035         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
3036         (dimode_scalar_to_vector_candidate_p): This.
3037         (timode_scalar_to_vector_candidate_p): New function.
3038         (scalar_to_vector_candidate_p): Likewise.
3039         (timode_check_non_convertible_regs): Likewise.
3040         (timode_remove_non_convertible_regs): Likewise.
3041         (remove_non_convertible_regs): Likewise.
3042         (remove_non_convertible_regs): Renamed to ...
3043         (dimode_remove_non_convertible_regs): This.
3044         (scalar_chain::~scalar_chain): Make it virtual.
3045         (scalar_chain::compute_convert_gain): Make it pure virtual.
3046         (scalar_chain::mark_dual_mode_def): Likewise.
3047         (scalar_chain::convert_insn): Likewise.
3048         (scalar_chain::convert_registers): Likewise.
3049         (scalar_chain::add_to_queue): Make it protected.
3050         (scalar_chain::emit_conversion_insns): Likewise.
3051         (scalar_chain::replace_with_subreg): Likewise.
3052         (scalar_chain::replace_with_subreg_in_insn): Likewise.
3053         (scalar_chain::convert_op): Likewise.
3054         (scalar_chain::convert_reg): Likewise.
3055         (scalar_chain::make_vector_copies): Likewise.
3056         (scalar_chain::convert_registers): New pure virtual function.
3057         (class dimode_scalar_chain): New class.
3058         (class timode_scalar_chain): Likewise.
3059         (scalar_chain::mark_dual_mode_def): Renamed to ...
3060         (dimode_scalar_chain::mark_dual_mode_def): This.
3061         (timode_scalar_chain::mark_dual_mode_def): New function.
3062         (timode_scalar_chain::convert_insn): Likewise.
3063         (dimode_scalar_chain::convert_registers): Likewise.
3064         (scalar_chain::compute_convert_gain): Renamed to ...
3065         (dimode_scalar_chain::compute_convert_gain): This.
3066         (scalar_chain::replace_with_subreg): Renamed to ...
3067         (dimode_scalar_chain::replace_with_subreg): This.
3068         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
3069         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
3070         (scalar_chain::make_vector_copies): Renamed to ...
3071         (dimode_scalar_chain::make_vector_copies): This.
3072         (scalar_chain::convert_reg): Renamed to ...
3073         (dimode_scalar_chain::convert_reg ): This.
3074         (scalar_chain::convert_op): Renamed to ...
3075         (dimode_scalar_chain::convert_op): This.
3076         (scalar_chain::convert_insn): Renamed to ...
3077         (dimode_scalar_chain::convert_insn): This.
3078         (scalar_chain::convert): Call convert_registers.
3079         (convert_scalars_to_vector): Change to scalar_chain pointer to
3080         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
3081         in 32-bit mode.  Delete scalar_chain pointer.  Call
3082         free_dominance_info in 64-bit mode.
3083         (pass_stv::gate): Remove TARGET_64BIT check.
3084         (ix86_option_override): Put the 64-bit STV pass before the CSE
3085         pass.
3086
3087 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
3088
3089         * dwarf2out.h (struct dw_loc_descr_node): Remove the
3090         dw_loc_frame_offset field.
3091         * dwarf2out.c (new_loc_descr): Likewise.
3092         (resolve_args_picking_1): Turn the VISITED hash set into a
3093         FRAME_OFFSET hash map. Use it to associate a frame offset to
3094         visited nodes. Remove uses of the CHECKING_P macro.
3095         (resolve_args_picking): Update call to resolve_args_picking_1.
3096
3097 2016-04-27  Martin Liska  <mliska@suse.cz>
3098
3099         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
3100         (free_loop_data): Release vuses of groups.
3101
3102 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
3103
3104         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
3105         instead of redundant use_id and boolean have_use_for.
3106         (struct iv_use): Change sub_id into group_id.  Remove field next.
3107         Move fields: related_cands, n_map_members, cost_map and selected
3108         to ...
3109         (struct iv_group): ... here.  New structure.
3110         (struct iv_common_cand): Use structure declaration directly.
3111         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
3112         (MAX_CONSIDERED_USES): Rename macro to ...
3113         (MAX_CONSIDERED_GROUPS): ... here.
3114         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
3115         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
3116         (dump_uses): Rename to ...
3117         (dump_groups): ... here.  Update all uses.
3118         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
3119         (find_induction_variables): Refactor format of dump information.
3120         (record_sub_use): Delete.
3121         (record_use): Update all uses.
3122         (record_group): New function.
3123         (record_group_use, find_interesting_uses_op): Call above functions.
3124         Update all uses.
3125         (find_interesting_uses_cond): Ditto.
3126         (group_compare_offset): New function.
3127         (split_all_small_groups): Rename to ...
3128         (split_small_address_groups_p): ... here.  Update all uses.
3129         (split_address_groups):  Update all uses.
3130         (find_interesting_uses): Refactor format of dump information.
3131         (add_candidate_1): Update all uses.  Remove redundant check on iv,
3132         base and step.
3133         (add_candidate, record_common_cand): Remove redundant assert.
3134         (add_iv_candidate_for_biv): Update use.
3135         (add_iv_candidate_derived_from_uses): Update all uses.
3136         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
3137         (alloc_use_cost_map): Ditto.
3138         (set_use_iv_cost, get_use_iv_cost): Rename to ...
3139         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
3140         (determine_use_iv_cost_generic): Ditto.
3141         (determine_group_iv_cost_generic): Ditto.
3142         (determine_use_iv_cost_address): Ditto.
3143         (determine_group_iv_cost_address): Ditto.
3144         (determine_use_iv_cost_condition): Ditto.
3145         (determine_group_iv_cost_cond): Ditto.
3146         (determine_use_iv_cost): Ditto.
3147         (determine_group_iv_cost): Ditto.
3148         (set_autoinc_for_original_candidates): Update all uses.
3149         (find_iv_candidates): Update all uses.  Refactor dump information.
3150         (determine_use_iv_costs): Ditto.
3151         (determine_iv_costs): Ditto.
3152         (iv_ca_cand_for_use): Rename to ...
3153         (iv_ca_cand_for_group): ... here.  Update all uses.
3154         (iv_ca_add_use, iv_ca_add_group): Ditto.
3155         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
3156         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
3157         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
3158         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
3159         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
3160         (create_new_iv, adjust_iv_update_pos): Ditto.
3161         (rewrite_use_address): Delete.
3162         (rewrite_use_address_1): Rename to ...
3163         (rewrite_use_address): ... here.
3164         (rewrite_use_compare): Update all uses.
3165         (rewrite_use): Delete.
3166         (rewrite_uses): Rename to ...
3167         (rewrite_groups): ... here.  Update all uses.
3168         (remove_unused_ivs, free_loop_data): Update all uses.
3169         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
3170
3171 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3172
3173         * rtlanal.c (nonzero_bits1): Convert preprocessor check
3174         for WORD_REGISTER_OPERATIONS to runtime check.
3175
3176 2016-04-27  Richard Biener  <rguenther@suse.de>
3177
3178         PR ipa/70760
3179         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
3180         aggregate_value_p to determine if a function result is
3181         returned by reference.
3182         (ipa_pta_execute): Functions having their address taken are
3183         not automatically nonlocal.
3184
3185 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
3186
3187         PR sanitizer/70683
3188         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
3189         * fold-const.c (operand_equal_p): If flag_checking and
3190         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
3191         and if it returns non-zero, assert iterative_hash_expr on both
3192         args is the same.
3193
3194 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
3195
3196         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
3197
3198 2016-04-27  Nick Clifton  <nickc@redhat.com>
3199
3200         PR middle-end/49889
3201         * varasm.c (merge_weak): Generate an error if an attempt is made
3202         to convert a non-weak static function into a weak, public function.
3203
3204 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3205
3206         * params.def (MAX_PARTITION_SIZE): New param.
3207         * doc/invoke.texi: Document lto-max-partition.
3208
3209 2016-04-27  Richard Biener  <rguenther@suse.de>
3210
3211         PR ipa/70785
3212         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
3213         function cummulating used_from_other_partition, externally_visible
3214         and force_output from aliases.
3215         (refered_from_nonlocal_var): Likewise.
3216         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
3217         node flags properly.
3218
3219 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
3220
3221         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
3222         (-Wmemset-elt-size): New item.
3223
3224 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
3225
3226         PR ada/70759
3227         * stor-layout.h (internal_reference_types): Delete.
3228         * stor-layout.c (reference_types_internal): Likewise.
3229         (internal_reference_types): Likewise.
3230         (layout_type) <REFERENCE_TYPE>: Adjust.
3231
3232 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
3233
3234         PR sanitizer/70683
3235         * tree.h (inchash::add_expr): Add FLAGS argument.
3236         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
3237         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
3238         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
3239         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
3240         if swap_tree_comparison (code) is smaller than code, hash that
3241         and arguments in the other order.  Hash CONVERT_EXPR the same
3242         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
3243         of ADDR_EXPR of decl as the decl itself.  Add or remove
3244         OEP_ADDRESS_OF from recursive flags as needed.  For
3245         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
3246         operands commutatively and only the third one normally.
3247         For internal CALL_EXPR hash in CALL_EXPR_IFN.
3248
3249 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3250
3251         * config/rtems.h (LIB_SPEC): Add -latomic.
3252
3253 2016-04-27  Joel Sherrill  <joel@rtems.org>
3254
3255         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
3256         xilink.ld and flags not relevant to RTEMS.
3257
3258 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
3259
3260         * toplev.c (backend_init_target): Avoid calling init_reload when using
3261         LRA.
3262
3263 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
3264
3265         * reorg.c (try_merge_delay_insns): Declare i and j inside the
3266         for loops rather than one for the whole function.
3267
3268 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
3269
3270         * match.pd (X + CST CMP X): New transformation.
3271
3272 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
3273
3274         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
3275         * fold-const.c (fold_binary_loc): Remove 2 transformations
3276         superseded by match.pd.
3277         * match.pd (x+x -> x*2): Generalize to integers.
3278
3279 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
3280
3281         * config/i386/i386.md (operation on memory peephole): Duplicate an
3282         existing peephole and adapt it to match lea rather than an operation
3283         that clobbers CC.
3284
3285         PR rtl-optimization/57193
3286         * opts.c (default_options_table): Add OPT_frename_registers at -O2
3287         and above.
3288         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
3289
3290 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
3291
3292         * tree-if-conv.c (any_pred_load_store): New static variable.
3293         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
3294         any_pred_load_store instead of and_mask_load_store.
3295         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
3296         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
3297         (combine_blocks, tree_if_conversion): Ditto.
3298
3299 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
3300
3301         PR tree-optimization/70771
3302         PR tree-optimization/70775
3303         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
3304         virtual PHI nodes.  Delete parameter.
3305         (if_convertible_loop_p_1): Delete argument to above function.
3306         (predicate_all_scalar_phis): Delete code handling single-argument
3307         PHIs.
3308         (tree_if_conversion): Mark and update virtual SSA.
3309
3310 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3311
3312         PR target/61821
3313         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
3314         (x86_elf_aligned_common): Rename to ...
3315         (x86_elf_aligned_decl_common): ... this.
3316         Add decl arg.  Switch to .lbss for largecomm object.  Use
3317         LARGECOMM_SECTION_ASM_OP.
3318         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
3319         renaming.
3320         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
3321         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
3322         Pass new decl arg.
3323         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3324         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
3325
3326 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3327
3328         PR target/59407
3329         * config/i386/i386.c (SECTION_LARGE): Define.
3330         (x86_64_elf_select_section): Set it for large data/bss sections.
3331         Only clear SECTION_WRITE for .lrodata.
3332         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
3333         data/bss sections.
3334         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
3335         * varasm.c (default_elf_asm_named_section): Grow flagchars.
3336         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
3337         SECTION_MACH_DEP.
3338         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
3339         * doc/tm.texi: Regenerate.
3340
3341 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
3342
3343         PR bootstrap/70704
3344         * configure.ac (--enable-checking): Document extra flag, for
3345         non-release builds default to --enable-checking=yes,extra.
3346         If misc checking and extra checking, define CHECKING_P to 2 instead
3347         of 1.
3348         * common.opt (fchecking=): Add.
3349         * doc/invoke.texi (-fchecking=): Document.
3350         * doc/install.texi: Document --enable-checking changes.
3351         * configure: Regenerated.
3352         * config.in: Regenerated.
3353
3354 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
3355
3356         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
3357         attribute instead of which_alternative.
3358         * config/i386/sse.md (*mov<mode>_internal): Ditto.
3359         Use EXT_REX_SSE_REG_P where appropriate.
3360
3361 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
3362
3363         * config/i386/predicates.md (const0_operand): Do not match
3364         const_wide_int code.
3365         (const1_operand): Ditto.
3366
3367 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
3368
3369         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
3370         for SSE constm1 operands and TARGET_AVX512VL.
3371         (*movti_internal): Ditto.
3372         (*mov<mode>_or): Use constm1_operand predicate.
3373         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
3374         for SSE vector_all_ones operands and TARGET_AVX512VL.
3375         * config/i386/predicates.md (constm1_operand): New predicate.
3376         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
3377         emission of constant -1 load.
3378
3379 2016-04-25  Jason Merrill  <jason@redhat.com>
3380
3381         * gdbinit.in: Skip is-a.h.
3382
3383         * attribs.c (register_scoped_attributes): Fix logic.
3384         * attribs.h: Declare register_scoped_attributes.
3385
3386 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3387
3388         * config/rs6000/rs6000-builtin.def: Correct pasto error for
3389         stxvd2x and stxvw4x built-in functions.
3390
3391 2016-04-25  DJ Delorie  <dj@redhat.com>
3392
3393         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
3394         (ashrhi3): Likewise.
3395         (lshrhi3): Likewise.
3396
3397 2016-04-25  Richard Biener  <rguenther@suse.de>
3398
3399         PR tree-optimization/70780
3400         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
3401         wasn't visited yet.
3402         (compute_antic): Mark blocks with abnormal preds as visited as
3403         they have a final empty antic-in solution already.
3404
3405 2016-04-25  Michael Collison  <michael.collison@linaro.org>
3406
3407         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
3408
3409 2016-04-25  Michael Collison  <michael.collison@linaro.org>
3410
3411         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
3412         mode is VQI to improve mixed mode vectorization.
3413         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
3414         define_insn to match low half of signed vaddw.
3415         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
3416         define_insn to match high half of signed vaddw.
3417         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
3418         define_insn to match low half of unsigned vaddw.
3419         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
3420         define_insn to match high half of unsigned vaddw.
3421         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
3422         (arm_simd_check_vect_par_cnst_half_p): Likewise.
3423         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
3424         for new function.
3425         (arm_simd_check_vect_par_cnst_half_p): Likewise.
3426         * config/arm/predicates.md (vect_par_constant_high): Support
3427         big endian and simplify by calling
3428         arm_simd_check_vect_par_cnst_half
3429         (vect_par_constant_low): Likewise.
3430
3431 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
3432
3433         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
3434         predicate for operand 2.
3435
3436 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
3437             H.J. Lu  <hongjiu.lu@intel.com>
3438
3439         * config/i386/i386-protos.h (standard_sse_constant_p): Add
3440         machine_mode argument.
3441         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
3442         constm1_rtx operands.  For VOIDmode constants, get mode from
3443         pred_mode.  Check mode size if the mode is supported by ABI.
3444         (standard_sse_constant_opcode): Do not use standard_constant_p.
3445         Strictly check ABI support for all-ones operands.
3446         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
3447         immediates. Update calls to standard_sse_constant_p.
3448         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
3449         (ix86_rtx_costs): Ditto.
3450         * config/i386/i386.md (*movxi_internal_avx512f): Use
3451         nonimmediate_or_sse_const_operand instead of vector_move_operand.
3452         Use (v,BC) alternative instead of (v,C). Use register_operand
3453         checks instead of MEM_P.
3454         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
3455         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
3456         isa attribute.  Use register_operand checks instead of MEM_P.
3457         (*movti_internal): Use nonimmediate_or_sse_const_operand for
3458         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
3459         alternative and corresponding sse2 isa attribute.
3460         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
3461         to standard_sse_constant_p.
3462         (FP constant splitters): Ditto.
3463         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
3464         (C): Ditto.
3465         * config/i386/predicates.md (constm1_operand): Remove.
3466         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
3467         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
3468         vector_all_ones_operand instead of constm1_operand.
3469
3470 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3471
3472         * print-rtl.c (print_rtx_insn_vec): New function.
3473         * print-rtl.h: New prototype.
3474         * store-motion.c (struct st_expr): Make avail_stores a vector.
3475         (st_expr_entry): Adjust.
3476         (free_st_expr_entry): Likewise.
3477         (print_store_motion_mems): Likewise.
3478         (find_moveable_store): Likewise.
3479         (compute_store_table): Likewise.
3480         (delete_store): Likewise.
3481         (build_store_vectors): Likewise.
3482
3483 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3484
3485         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
3486
3487 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3488
3489         * vec.h (vec_safe_contains): New function.
3490         (vec::contains): Likewise.
3491         (vec::begin): Likewise.
3492         (vec::end): Likewise.
3493
3494 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
3495
3496         PR sanitizer/70712
3497         * cfgexpand.c (expand_stack_vars): Fix typo.
3498
3499 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3500
3501         * system.h (list, map, set, vector): Include conditionally.
3502         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
3503         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
3504         * ipa-icf.c (INCLUDE_LIST): Define.
3505         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
3506         * config/sh/sh.c (INCLUDE_VECTOR): Define.
3507         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
3508         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
3509         * cp/logic.cc (INCLUDE_LIST): Define.
3510         * fortran/trans-common.c (INCLUDE_MAP): Define.
3511
3512 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3513
3514         * auto-profile.c: Remove <string.h> include.
3515         * ipa-icf-gimple.c: Remove <list> include.
3516         * diagnostic.c: Remove <new> include.
3517         * genmatch.c: Likewise.
3518         * pretty-print.c: Likewise.
3519         * toplev.c: Likewise
3520         * c/c-objc-common.c: Likewise.
3521         * cp/error.c: Likewise.
3522         * fortran/error.c: Likewise.
3523
3524 2016-04-22  Richard Biener  <rguenther@suse.de>
3525
3526         * lto-streamer-in.c (input_ssa_names): Do not allocate
3527         GIMPLE_NOP for all SSA names.
3528         * lto-streamer-out.c (output_ssa_names): Do not output
3529         SSA names that should have been released.
3530
3531 2016-04-22  Richard Biener  <rguenther@suse.de>
3532
3533         PR tree-optimization/70740
3534         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
3535         VDEF.
3536
3537 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
3538
3539         PR target/70750
3540         * config/i386/predicates.md (call_insn_operand): Replace
3541         sibcall_memory_operand with memory_operand.
3542
3543 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
3544
3545         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
3546         has_single_use() tests.
3547         (register_edge_assert_for_1): Likewise.
3548         (find_assert_locations_1): Check the liveness bitmap instead of
3549         checking has_single_use().
3550
3551 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
3552
3553         PR target/70728
3554         * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
3555         Extract AVX-512BW constraint from AVX.
3556
3557 2016-04-21  Richard Biener  <rguenther@suse.de>
3558
3559         PR tree-optimization/70725
3560         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
3561         for phi_convertible_by_degenerating_args.
3562         (predicate_all_scalar_phis): Handle single-argument PHIs.
3563
3564 2016-04-21  Richard Biener  <rguenther@suse.de>
3565
3566         PR middle-end/70747
3567         * fold-const.c (fold_comparison): Return properly typed
3568         constant boolean.
3569
3570 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
3571
3572         PR tree-optimization/70715
3573         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
3574         after expanding BASE using expand_simple_operations.
3575
3576 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
3577
3578         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
3579         New transformations.
3580
3581 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
3582
3583         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
3584
3585 2016-04-20  Jan Hubicka  <jh@suse.cz>
3586
3587         * ipa-inline.c (can_inline_edge_p): Pass caller info to
3588         ultiimate_alias_target.
3589         (update_callee_keys): Likewise.
3590         (lookup_recursive_calls): Likewise.
3591         (speculation_useful_p): Likewise.
3592
3593 2016-04-20  Jan Hubicka  <jh@suse.cz>
3594
3595         PR ipa/70018
3596         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
3597         (set_nothrow_flag_1): ... this; handle interposition correctly;
3598         recurse on aliases and thunks.
3599         (cgraph_node::set_nothrow_flag): New.
3600         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
3601         functions compiled with non-call exceptions that binds to current
3602         def.
3603         (propagate_nothrow): Be safe WRT interposition.
3604         * cgraph.h (set_nothrow_flag): Update prototype.
3605
3606 2016-04-18  Jan Hubicka  <jh@suse.cz>
3607
3608         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
3609         max_loop_iterations_int.
3610         (tree_unswitch_outer_loop): Likewise.
3611
3612 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
3613
3614         PR tree-optimization/69489
3615         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
3616         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
3617         Revise dump message.
3618         (if_convertible_bb_p): Remove check on edge count of basic block's
3619         predecessors.
3620
3621 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
3622
3623         PR tree-optimization/56625
3624         PR tree-optimization/69489
3625         * tree-data-ref.h (DR_INNERMOST): New macro.
3626         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
3627         hashing struct innermost_loop_behavior.
3628         (ref_DR_map): Remove.
3629         (innermost_DR_map): New map.
3630         (baseref_DR_map): Revise comment.
3631         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
3632         to innermost_DR_map accroding to its innermost loop behavior.
3633         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
3634         to its innermost loop behavior.
3635         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
3636         Add initialization for innermost_DR_map.  Record memory reference
3637         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
3638         have innermost loop behavior.
3639         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
3640         innermost_DR_map.
3641
3642 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
3643
3644         * config/i386/i386.md (*lea<mode>_general_1): Rename from
3645         *lea_general_1.  Use explicit SWI12 mode interator.
3646         (*lea<mode>_general_2): Rename from *lea_general_2.
3647         Use explicit SWI12 mode interator.
3648         (*lea<mode>_general_3): Rename from *lea_general_3.
3649         Use explicit SWI12 mode interator.
3650         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
3651         Use explicit SWI12 mode interator.
3652         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
3653         Use explicit SWI48 mode interator.
3654
3655 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
3656
3657         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3658         Short-cut unaligned load and store cases.  Handle all integer
3659         vector modes.
3660         (ix86_expand_vector_move_misalign): Short-cut unaligned load
3661         and store cases.  Call ix86_avx256_split_vector_move_misalign
3662         directly without checking mode class.
3663
3664 2016-04-20  Andrew Pinski  <apinski@cavium.com>
3665             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3666
3667         PR target/64971
3668         * config/aarch64/aarch64.md (sibcall): Force call
3669         address to be DImode for ILP32.
3670         (sibcall_value): Likewise.
3671
3672 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
3673
3674         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
3675
3676 2016-04-20  Richard Biener  <rguenther@suse.de>
3677
3678         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
3679         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
3680         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
3681         (maybe_push_res_to_seq): Adjust.
3682         * gimple-fold.c (maybe_build_generic_op): Likewise.
3683
3684 2016-04-20  Marek Polacek  <polacek@redhat.com>
3685
3686         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
3687         rather than true.
3688
3689 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
3690
3691         * config/i386/sse.md (vec_unpacks_lo_hi): Always
3692         use kmovw to support AVX512F target.
3693
3694 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
3695
3696         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
3697
3698 2016-04-20  Marek Polacek  <polacek@redhat.com>
3699
3700         PR tree-optimization/70725
3701         * tree-if-conv.c (is_false_predicate): New function.
3702         (predicate_mem_writes): Use it.
3703
3704 2016-04-20  Richard Biener  <rguenther@suse.de>
3705
3706         PR tree-optimization/70726
3707         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
3708         shift amounts from a pattern stmt operand.
3709
3710 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3711
3712         PR target/70674
3713         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
3714         stack_restore_from_fpr pattern when restoring r15.
3715         (s390_optimize_prologue): Strip away the memory barrier in the
3716         parallel when trying to get rid of restore insns.
3717         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
3718         definition for loading the stack pointer from an FPR.  Compared to
3719         the normal move insn this pattern includes a full memory barrier.
3720
3721 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
3722
3723         PR middle-end/70680
3724         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
3725         implicitly linear or lastprivate iterator on the outer context.
3726
3727 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
3728
3729         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
3730         alignment check.
3731         * config/i386/i386.md (ssememalign): Removed.
3732         * config/i386/sse.md: Remove ssememalign attribute from patterns.
3733
3734 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
3735
3736         PR target/69201
3737         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
3738         const short * to __builtin_ia32_loaddquhi512_mask.
3739         (_mm512_maskz_loadu_epi16): Likewise.
3740         (_mm512_mask_storeu_epi16): Pass short * to
3741         __builtin_ia32_storedquhi512_mask.
3742         (_mm512_mask_loadu_epi8): Pass const char * to
3743         __builtin_ia32_loaddquqi512_mask.
3744         (_mm512_maskz_loadu_epi8): Likewise.
3745         (_mm512_mask_storeu_epi8): Pass char * to
3746         __builtin_ia32_storedquqi512_mask.
3747         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
3748         const double * to __builtin_ia32_loadupd512_mask.
3749         (_mm512_mask_loadu_pd): Likewise.
3750         (_mm512_maskz_loadu_pd): Likewise.
3751         (_mm512_storeu_pd): Pass double * to
3752         __builtin_ia32_storeupd512_mask.
3753         (_mm512_mask_storeu_pd): Likewise.
3754         (_mm512_loadu_ps): Pass const float * to
3755         __builtin_ia32_loadups512_mask.
3756         (_mm512_mask_loadu_ps): Likewise.
3757         (_mm512_maskz_loadu_ps): Likewise.
3758         (_mm512_storeu_ps): Pass float * to
3759         __builtin_ia32_storeups512_mask.
3760         (_mm512_mask_storeu_ps): Likewise.
3761         (_mm512_mask_loadu_epi64): Pass const long long * to
3762         __builtin_ia32_loaddqudi512_mask.
3763         (_mm512_maskz_loadu_epi64): Likewise.
3764         (_mm512_mask_storeu_epi64): Pass long long *
3765         to __builtin_ia32_storedqudi512_mask.
3766         (_mm512_loadu_si512): Pass const int * to
3767         __builtin_ia32_loaddqusi512_mask.
3768         (_mm512_mask_loadu_epi32): Likewise.
3769         (_mm512_maskz_loadu_epi32): Likewise.
3770         (_mm512_storeu_si512): Pass int * to
3771         __builtin_ia32_storedqusi512_mask.
3772         (_mm512_mask_storeu_epi32): Likewise.
3773         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
3774         char * to __builtin_ia32_storedquqi256_mask.
3775         (_mm_mask_storeu_epi8): Likewise.
3776         (_mm256_mask_loadu_epi16): Pass const short * to
3777         __builtin_ia32_loaddquhi256_mask.
3778         (_mm256_maskz_loadu_epi16): Likewise.
3779         (_mm_mask_loadu_epi16): Pass const short * to
3780         __builtin_ia32_loaddquhi128_mask.
3781         (_mm_maskz_loadu_epi16): Likewise.
3782         (_mm256_mask_loadu_epi8): Pass const char * to
3783         __builtin_ia32_loaddquqi256_mask.
3784         (_mm256_maskz_loadu_epi8): Likewise.
3785         (_mm_mask_loadu_epi8): Pass const char * to
3786         __builtin_ia32_loaddquqi128_mask.
3787         (_mm_maskz_loadu_epi8): Likewise.
3788         (_mm256_mask_storeu_epi16): Pass short * to.
3789         __builtin_ia32_storedquhi256_mask.
3790         (_mm_mask_storeu_epi16): Pass short * to.
3791         __builtin_ia32_storedquhi128_mask.
3792         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
3793         const double * to __builtin_ia32_loadupd256_mask.
3794         (_mm256_maskz_loadu_pd): Likewise.
3795         (_mm_mask_loadu_pd): Pass onst double * to
3796         __builtin_ia32_loadupd128_mask.
3797         (_mm_maskz_loadu_pd): Likewise.
3798         (_mm256_mask_storeu_pd): Pass double * to
3799         __builtin_ia32_storeupd256_mask.
3800         (_mm_mask_storeu_pd): Pass double * to
3801         __builtin_ia32_storeupd128_mask.
3802         (_mm256_mask_loadu_ps): Pass const float * to
3803         __builtin_ia32_loadups256_mask.
3804         (_mm256_maskz_loadu_ps): Likewise.
3805         (_mm_mask_loadu_ps): Pass const float * to
3806         __builtin_ia32_loadups128_mask.
3807         (_mm_maskz_loadu_ps): Likewise.
3808         (_mm256_mask_storeu_ps): Pass float * to
3809         __builtin_ia32_storeups256_mask.
3810         (_mm_mask_storeu_ps): ass float * to
3811         __builtin_ia32_storeups128_mask.
3812         (_mm256_mask_loadu_epi64): Pass const long long * to
3813         __builtin_ia32_loaddqudi256_mask.
3814         (_mm256_maskz_loadu_epi64): Likewise.
3815         (_mm_mask_loadu_epi64): Pass const long long * to
3816         __builtin_ia32_loaddqudi128_mask.
3817         (_mm_maskz_loadu_epi64): Likewise.
3818         (_mm256_mask_storeu_epi64): Pass long long * to
3819         __builtin_ia32_storedqudi256_mask.
3820         (_mm_mask_storeu_epi64): Pass long long * to
3821         __builtin_ia32_storedqudi128_mask.
3822         (_mm256_mask_loadu_epi32): Pass const int * to
3823         __builtin_ia32_loaddqusi256_mask.
3824         (_mm256_maskz_loadu_epi32): Likewise.
3825         (_mm_mask_loadu_epi32): Pass const int * to
3826         __builtin_ia32_loaddqusi128_mask.
3827         (_mm_maskz_loadu_epi32): Likewise.
3828         (_mm256_mask_storeu_epi32): Pass int * to
3829         __builtin_ia32_storedqusi256_mask.
3830         (_mm_mask_storeu_epi32): Pass int * to
3831         __builtin_ia32_storedqusi128_mask.
3832         * config/i386/i386-builtin-types.def (PCSHORT): New.
3833         (PINT64): Likewise.
3834         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
3835         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
3836         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
3837         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
3838         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
3839         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
3840         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
3841         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
3842         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
3843         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
3844         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
3845         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
3846         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
3847         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
3848         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
3849         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
3850         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
3851         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
3852         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
3853         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
3854         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
3855         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
3856         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
3857         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
3858         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
3859         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
3860         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
3861         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
3862         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
3863         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
3864         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
3865         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
3866         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
3867         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
3868         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
3869         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
3870         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
3871         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
3872         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
3873         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
3874         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
3875         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
3876         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
3877         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
3878         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
3879         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
3880         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
3881         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
3882         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
3883         use UNSPEC_STOREU.
3884         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
3885         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
3886         load nor store.
3887         (ix86_expand_vector_move_misalign): Likewise.
3888         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
3889         to scalar function prototype for unaligned load/store builtins.
3890         (ix86_expand_special_args_builtin): Updated.
3891         * config/i386/sse.md (UNSPEC_LOADU): Removed.
3892         (UNSPEC_STOREU): Likewise.
3893         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
3894         (VI_ULOADSTORE_F_AVX512VL): Likewise.
3895         (ssescalarsize): Handle V4TI, V2TI and V1TI.
3896         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
3897         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
3898         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
3899         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
3900         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
3901         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
3902         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
3903         (<avx512>_storedqu<mode>_mask): Likewise.
3904         (*sse4_2_pcmpestr_unaligned): Likewise.
3905         (*sse4_2_pcmpistr_unaligned): Likewise.
3906         (*mov<mode>_internal): Renamed to ...
3907         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
3908         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
3909         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
3910         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
3911
3912 2016-04-19  Richard Biener  <rguenther@suse.de>
3913
3914         PR tree-optimization/70171
3915         * tree-ssa-phiprop.c: Include stor-layout.h.
3916         (phiprop_insert_phi): Handle the aggregate copy case.
3917         (propagate_with_phi): Likewise.
3918
3919 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
3920
3921         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
3922         instead of simplify_gen_subreg (... , 0).
3923         (ix86_delegitimize_address): Ditto.
3924         (ix86_split_divmod): Ditto.
3925         (ix86_split_copysign_const): Ditto.
3926         (ix86_split_copysign_var): Ditto.
3927         (ix86_expand_args_builtin): Ditto.
3928         (ix86_expand_round_builtin): Ditto.
3929         (ix86_expand_special_args_builtin): Ditto.
3930         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
3931         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
3932         (udivmodqi4): Ditto.
3933         (absneg splitters): Ditto.
3934         (*jcc_bt<mode>_1): Ditto.
3935
3936 2016-04-19  Richard Biener  <rguenther@suse.de>
3937
3938         PR tree-optimization/70724
3939         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
3940         restoring out from ...
3941         (free_scc_vn): ... here.
3942         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
3943         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
3944         tail merging.
3945         (pass_fre::execute): Restore SSA info.
3946
3947 2016-04-19  Richard Biener  <rguenther@suse.de>
3948
3949         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
3950         * gimple-walk.c (walk_gimple_op): Initialize it.
3951         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
3952         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
3953         remapping SSA names of defs.
3954         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
3955         adjustment.
3956
3957 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
3958
3959         PR middle-end/70689
3960         * lra-constraints.c (equiv_substition_p): New.
3961         (process_alt_operands): Use it.
3962         (swap_operands): Swap it.
3963         (curr_insn_transform): Update it.
3964
3965 2016-04-18  Michael Matz  <matz@suse.de>
3966
3967         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
3968         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
3969         * tree-core.h (tree_type_common.align): Use bit-field.
3970         (tree_type_common.spare): New.
3971         (tree_decl_common.off_align): Make smaller.
3972         (tree_decl_common.align): Use bit-field.
3973
3974         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
3975         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
3976         (scan_sharing_clauses): Ditto.
3977         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
3978         (omp_finish_file): Ditto.
3979         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
3980         (layout_decl): Ditto.
3981         (relayout_decl): Ditto.
3982         (finalize_record_size): Use SET_TYPE_ALIGN.
3983         (finalize_type_size): Ditto.
3984         (finish_builtin_struct): Ditto.
3985         (layout_type): Ditto.
3986         (initialize_sizetypes): Ditto.
3987         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
3988         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
3989         (lookup_field_for_decl): Use SET_DECL_ALIGN.
3990         (get_chain_field): Ditto.
3991         (get_trampoline_type): Ditto.
3992         (get_nl_goto_field): Ditto.
3993         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
3994         SET_DECL_ALIGN.
3995         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
3996         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
3997         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
3998         (build_qualified_type): Use SET_TYPE_ALIGN.
3999         (build_aligned_type, build_range_type_1): Ditto.
4000         (build_atomic_base): Ditto.
4001         (build_common_tree_nodes): Ditto.
4002         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
4003         (expand_one_stack_var_at): Ditto.
4004         * coverage.c (build_var): Use SET_DECL_ALIGN.
4005         * except.c (init_eh): Ditto.
4006         * function.c (assign_parm_setup_block): Ditto.
4007         * symtab.c (increase_alignment_1): Ditto.
4008         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
4009         * tree-vect-stmts.c (ensure_base_align): Ditto.
4010         * varasm.c (align_variable): Ditto.
4011         (assemble_variable): Ditto.
4012         (build_constant_desc): Ditto.
4013         (output_constant_def_contents): Ditto.
4014
4015         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
4016         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
4017         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
4018         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
4019         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
4020
4021 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
4022
4023         PR target/70708
4024         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
4025         replace %vmovsd with "%vmovq".
4026         (vec_concatv2df): Likewise.
4027
4028 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
4029
4030         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
4031         (*vec_extractv2si_0): Ditto.
4032         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
4033         (zero_extended_scalar_load_operand splitters): Ditto.
4034         (vec_extract splitters): Ditto.
4035         (*vec_extractv4si_0_zext): Ditto.
4036         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
4037         and lowpart_subreg.
4038         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
4039         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
4040         (*sse4_1_extractps): Use lowpart_subreg.
4041         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
4042
4043 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4044
4045         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
4046         gld requirements.
4047         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
4048         Mention Solaris 11 packaging changes.
4049         Update gas and gld requirements.
4050         Remove reference to pre-Solaris 10 bug.
4051         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
4052         systems and bugs.
4053         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
4054         with cc.
4055
4056 2016-04-17  Jan Hubicka  <jh@suse.cz>
4057
4058         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
4059         max_loop_iterations_int.
4060
4061 2016-04-18  Richard Biener  <rguenther@suse.de>
4062
4063         PR tree-optimization/43434
4064         * tree-ssa-structalias.c (struct vls_data): New.
4065         (visit_loadstore): Handle all pointer-based accesses.
4066         (compute_dependence_clique): Compute a bitmap of restrict tags
4067         assigned bases and pass it to visit_loadstore.
4068
4069 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
4070
4071         PR target/70711
4072         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
4073         armv8.1-a and armv8.1-a+crc.
4074
4075 2016-04-18  Richard Biener  <rguenther@suse.de>
4076
4077         PR tree-optimization/70701
4078         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
4079         references after translating through a memcpy.
4080
4081 2016-04-18  Richard Biener  <rguenther@suse.de>
4082
4083         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
4084         (compute_antic): ... here.  For partial antic use regular
4085         postorder and scrap iteration.
4086         (compute_partial_antic_aux): Remove unused return value.
4087         (init_pre): Do not allocate postorder.
4088         (fini_pre): Do not free postorder.
4089
4090 2016-04-18  Richard Biener  <rguenther@suse.de>
4091
4092         PR middle-end/37870
4093         * expmed.c (extract_bit_field_1): Remove broken case
4094         using a wider MODE_INT mode.
4095
4096 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
4097
4098         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
4099         unless compiling with at least GCC-4.8.
4100
4101 2016-04-17  Jan Hubicka  <jh@suse.cz>
4102
4103         PR bootstrap/70706
4104         * graphite.c (graphite_finalize): Update call to
4105         tree_estimate_probability.
4106         * predict.h (tree_estimate_probability): Update prototype.
4107
4108 2016-04-17  Jan Hubicka  <jh@suse.cz>
4109
4110         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
4111         (tree_estimate_probability): Likewise.
4112         (pass_profile::execute): Update.
4113         (report_predictor_hitrates): New function.
4114         * profile.c (compute_branch_probabilities): Use it.
4115         * predict.h (report_predictor_hitrates): Declare.
4116
4117 2016-04-17  Jan Hubicka  <jh@suse.cz>
4118
4119         PR ipa/70018
4120         * cgraph.h (cgraph_node::set_const_flag,
4121         cgraph_node::set_pure_flag): Update prototype to return bool;
4122         update comment.
4123         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
4124         of interposable symbol are interposable, too.
4125         (cgraph_set_const_flag_1): Rename to ...
4126         (set_const_flag_1): ... this one; change to self recursive function
4127         instead of call_for_symbol_thunks_and_aliases. Handle correctly
4128         clearnig the flag in all variants and also virtual thunks of const
4129         functions are pure; track if any change was done.
4130         (cgraph_node::set_const_flag): Update.
4131         (struct set_pure_flag_info): New struct.
4132         (cgraph_set_pure_flag_1): Rename to ...
4133         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
4134         rather than pointer encoded flags; track if any changes was done;
4135         handle correctly clearning flag and setting flag of aliases already
4136         declared const.
4137         (cgraph_node::set_pure_flag): Update.
4138         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
4139
4140 2016-04-17  Tom de Vries  <tom@codesourcery.com>
4141
4142         PR other/70433
4143         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
4144         backslash in label.
4145
4146 2016-04-17  Tom de Vries  <tom@codesourcery.com>
4147
4148         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
4149         '{}<> ' as escape-for-record.
4150
4151 2016-04-17  Tom de Vries  <tom@codesourcery.com>
4152
4153         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
4154         structure.
4155
4156 2016-04-17  Tom de Vries  <tom@codesourcery.com>
4157
4158         PR other/70185
4159         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
4160         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
4161         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
4162         * passes.c (finish_optimization_passes): Only call
4163         finish_graph_dump_file if dfi->graph_dump_initialized.
4164         (execute_function_dump, pass_init_dump_file): Use
4165         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
4166
4167 2016-04-17  Tom de Vries  <tom@codesourcery.com>
4168
4169         PR tree-optimization/70256
4170         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
4171         (debug_varmap): New function.
4172
4173 2016-04-17  Tom de Vries  <tom@codesourcery.com>
4174
4175         PR other/70183
4176         * passes.c (pass_manager::register_pass): Propagate pflags.
4177
4178 2016-04-17  Tom de Vries  <tom@codesourcery.com>
4179
4180         PR other/68875
4181         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
4182         * passes.c (pass_manager::pass_manager): Declare and init p_start in
4183         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
4184         check if it's equal to p_start.
4185         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
4186
4187 2016-04-15  Jan Hubicka  <jh@suse.cz>
4188
4189         PR ipa/70018
4190         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
4191         function does not bind to current def.
4192         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
4193         handle conservatively calls to functions that does not need to bind
4194         to current def.
4195         (check_call): Update call of worse_state.
4196         (ignore_edge_for_nothrow): Update.
4197         (ignore_edge_for_pure_const): Likewise.
4198         (propagate_pure_const): Update calls to worse_state.
4199         (skip_function_for_local_pure_const): Reformat comments.
4200
4201 2016-04-15  Jan Hubicka  <jh@suse.cz>
4202
4203         PR ipa/70018
4204         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
4205         (cgraph_node::function_symbol): Likewise.
4206         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
4207         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
4208         (symtab_node::ultimate_alias_target): Add REF parameter.
4209         (symtab_node::binds_to_current_def_p): Declare.
4210         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
4211         (cgraph_node::function_symbol): Likewise.
4212         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
4213         (cgraph_node::get_availability): Likewise.
4214         (cgraph_edge::binds_to_current_def_p): New inline function.
4215         (varpool_node::get_availability): Add REF parameter.
4216         (varpool_node::ultimate_alias_target): Likewise.
4217         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
4218         (symtab_node::binds_to_current_def_p): Likewise.
4219         * varpool.c (varpool_node::get_availability): Likewise.
4220
4221 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
4222
4223         PR target/70662
4224         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
4225         Fix mode size check.
4226
4227 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
4228
4229         * BASE-VER: Set to 7.0.0.
4230
4231 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
4232
4233         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
4234
4235 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4236
4237         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
4238         architecture revisions.
4239
4240 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
4241
4242         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
4243         * config/i386/i386.c (ix86_using_red_zone): No longer static.
4244         * config/i386/i386.md (stack decrement to push peepholes): Guard
4245         with !x86_using_red_zone ().
4246
4247 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
4248
4249         PR c++/70675
4250         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
4251         to dump_generic_node.
4252         (NIY): Pass also flags to do_niy.
4253
4254 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
4255
4256         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
4257         (simd_clone_vector_of_formal_parm_types)
4258         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
4259         (simd_clone_mangle, simd_clone_create)
4260         (simd_clone_adjust_return_type, create_tmp_simd_array)
4261         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
4262         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
4263         (ipa_simd_modify_function_body, simd_clone_linear_addend)
4264         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
4265         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
4266         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
4267         * omp-simd-clone.c: ... this new file.
4268         (simd_clone_vector_of_formal_parm_types): Make it static.
4269         * Makefile.in (OBJS): Add omp-simd-clone.o.
4270
4271 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
4272
4273         PR target/70662
4274         * config/i386/sse.md: Use proper memory operand modifiers.
4275
4276
4277 2016-04-15  Richard Biener  <rguenther@suse.de>
4278         Alan Modra  <amodra@gmail.com>
4279
4280         PR tree-optimization/70130
4281         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
4282         when alignment stays not the same and no not use the realign
4283         scheme then.
4284
4285 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4286
4287         PR target/70669
4288         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4289         direct move handlers for KFmode. Change TFmode handlers test from
4290         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
4291
4292 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
4293
4294         PR c++/70594
4295         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
4296         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
4297         (inlined_polymorphic_ctor_dtor_block_p): Use it.
4298         * tree-ssa-live.c (remove_unused_scope_block_p): When
4299         in_ctor_dtor_block, avoid discarding not just BLOCKs with
4300         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
4301         block_ultimate_origin is FUNCTION_DECL.
4302         (remove_unused_locals): If current_function_decl is
4303         polymorphic_ctor_dtor_p, pass initial true to
4304         remove_unused_scope_block_p' is_ctor_dtor_block.
4305
4306 2016-04-14  Martin Sebor  <msebor@redhat.com>
4307
4308         PR c++/69517
4309         PR c++/70019
4310         PR c++/70588
4311         * doc/extend.texi (Variable Length): Revert.
4312
4313 2016-04-14  Marek Polacek  <polacek@redhat.com>
4314             Jan Hubicka  <hubicka@ucw.cz>
4315
4316         PR c++/70029
4317         * tree.c (verify_type): Disable the canonical type of main variant
4318         check.
4319
4320 2016-04-14  Jason Merrill  <jason@redhat.com>
4321
4322         * cfgexpand.c, expr.c: Revert previous change.
4323
4324 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
4325
4326         PR middle-end/70643
4327         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
4328         when building a mem ref for the incoming reduction variable.
4329
4330 2016-04-14  Richard Biener  <rguenther@suse.de>
4331
4332         PR tree-optimization/70614
4333         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
4334         loop if the evolution dropped to chrec_dont_know.
4335         (interpret_condition_phi): Likewise.
4336
4337 2016-04-14  Richard Biener  <rguenther@suse.de>
4338
4339         PR tree-optimization/70623
4340         * tree-ssa-pre.c (changed_blocks): Make global ...
4341         (compute_antic): ... local here.  Move and fix worklist
4342         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
4343         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
4344         worklist handling, dump when ANTIC_IN changed.
4345         (compute_partial_antic_aux): Remove worklist handling.
4346         (init_pre): Do not compute post dominators.  Add a comment about
4347         the CFG order chosen.
4348         (fini_pre): Do not free post dominators.
4349
4350 2016-04-13  Martin Sebor  <msebor@redhat.com>
4351
4352         PR c++/69517
4353         PR c++/70019
4354         PR c++/70588
4355         * doc/extend.texi (Variable Length): Document C++ specifics.
4356
4357 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
4358
4359         PR c++/70641
4360         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
4361         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
4362         eh edges have been purged.
4363
4364         PR c++/70594
4365         * tree-sra.c (create_access_replacement,
4366         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
4367         gets fancy name.
4368         * tree-pretty-print.c (dump_fancy_name): New function.
4369         (dump_decl_name, dump_generic_node): Use it.
4370
4371 2016-04-13  Jason Merrill  <jason@redhat.com>
4372
4373         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
4374         * expr.c (expand_expr_real_1): Likewise.
4375
4376 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4377
4378         * config/i386/i386.md (kunpckhi): Swap operands.
4379         (kunpcksi): Likewise.
4380         (kunpckdi): Likewise.
4381         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
4382         (vec_pack_trunc_<mode>): Likewise.
4383
4384 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
4385
4386         PR debug/70628
4387         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
4388
4389         PR middle-end/70633
4390         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
4391         gimplification turns some element into non-constant.
4392
4393         PR debug/70628
4394         * rtl.h (convert_memory_address_addr_space_1): New prototype.
4395         * explow.c (convert_memory_address_addr_space_1): No longer static,
4396         add NO_EMIT argument and don't call convert_modes if true, pass
4397         it down recursively, remove break after return.
4398         (convert_memory_address_addr_space): Adjust caller.
4399         * simplify-rtx.c (simplify_unary_operation_1): Call
4400         convert_memory_address_addr_space_1 instead of convert_memory_address,
4401         if it returns NULL, don't simplify.
4402
4403 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
4404
4405         PR target/70630
4406         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
4407
4408 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4409
4410         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4411         Bump the upper SIMDLEN limits, so that if the return type or
4412         characteristic type if the return type is void can be passed in
4413         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
4414         allowed.
4415
4416 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4417
4418         PR target/70640
4419         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
4420         Do not use "=" constraint on an input constraint.
4421         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
4422         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
4423         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
4424         generates (neg (abs ...)) instead of (abs ...).
4425
4426 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4427
4428         PR rtl-optimization/70596
4429         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
4430         just invalidate LRA data and reset them.  Adjust dump wording.
4431
4432 2016-04-12  Martin Liska  <mliska@suse.cz>
4433
4434         Revert
4435         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
4436
4437         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4438         estimates here.
4439         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4440         max_loop_iterations_int.
4441         (tree_unswitch_outer_loop): Likewise.
4442         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4443         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4444
4445 2016-04-12  Tom de Vries  <tom@codesourcery.com>
4446
4447         PR tree-optimization/68756
4448         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
4449         instead of new_name.
4450
4451 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4452
4453         PR tree-optimization/70602
4454         * tree-sra.c (generate_subtree_copies): Don't write anything into
4455         constant pool decls.
4456
4457         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
4458         regardless whether there are depend clauses or not.
4459
4460 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4461
4462         PR target/70381
4463         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
4464         target attribute and pragma from changing the -mfloat128
4465         and -mfloat128-hardware options.
4466
4467         * doc/extend.texi (Additional Floating Types): Document PowerPC
4468         __float128 restrictions.
4469
4470 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4471
4472         PR target/70133
4473         * config/aarch64/driver-aarch64.c
4474         (aarch64_get_extension_string_for_isa_flags): New.
4475         (arch_extension): Rename to...
4476         (aarch64_arch_extension): ...This.
4477         (ext_to_feat_string): Rename to...
4478         (aarch64_extensions): ...This.
4479         (aarch64_core_data): Keep track of architecture extension flags.
4480         (cpu_data): Rename to...
4481         (aarch64_cpu_data): ...This.
4482         (aarch64_arch_driver_info): Keep track of architecture extension
4483         flags.
4484         (get_arch_name_from_id): Rename to...
4485         (get_arch_from_id): ...This, change return type.
4486         (host_detect_local_cpu): Update and reformat for renames, handle
4487         extensions through common infrastructure.
4488
4489 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4490
4491         PR target/70133
4492         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
4493         track of a canonical flag name.
4494         (all_extensions): Likewise.
4495         (arch_to_arch_name): Also track extension flags enabled by the arch.
4496         (all_architectures): Likewise.
4497         (aarch64_parse_extension): Move to here.
4498         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
4499         rework.
4500         (aarch64_rewrite_selected_cpu): Update for above change.
4501         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
4502         are handled, such that the single explicit value enabled by an
4503         extension is kept seperate from the implicit values it also enables.
4504         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
4505         to here.
4506         (aarch64_parse_extension): New.
4507         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
4508         here to config/aarch64/aarch64-protos.h.
4509         (aarch64_parse_extension): Move from here to
4510         common/config/aarch64/aarch64-common.c.
4511         (aarch64_option_print): Update.
4512         (aarch64_declare_function_name): Likewise.
4513         (aarch64_start_file): Likewise.
4514         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
4515         the canonical flag for extensions.
4516         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
4517         flags.
4518
4519 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4520
4521         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
4522         AARCH64_FL_CRC.
4523
4524 2016-04-09  Tom de Vries  <tom@codesourcery.com>
4525
4526         PR tree-optimization/68953
4527         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
4528         first to last subscript.
4529
4530 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
4531
4532         PR tree-optimization/70586
4533         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
4534         for any calls.
4535
4536 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
4537
4538         PR lto/70289
4539         PR ipa/70348
4540         PR tree-optimization/70373
4541         PR middle-end/70533
4542         PR middle-end/70534
4543         PR middle-end/70535
4544         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
4545         clauses for acc parallel reductions as necessary.  Error on those
4546         that are private.
4547         * omp-low.c (scan_sharing_clauses): Don't install variables which
4548         are used in acc parallel reductions.
4549         (lower_rec_input_clauses): Remove dead code.
4550         (lower_oacc_reductions): Add support for reference reductions.
4551         (lower_reduction_clauses): Remove dead code.
4552         (lower_omp_target): Don't remap variables appearing in acc parallel
4553         reductions.
4554         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
4555
4556 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
4557
4558         PR middle-end/70593
4559         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
4560         with multiple SSA_NAME defs, force the outputs other than first
4561         to be live before calling live_track_process_def on each output.
4562
4563         PR rtl-optimization/70574
4564         * fwprop.c (forward_propagate_and_simplify): Don't add
4565         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
4566         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
4567         paradoxical subregs within *loc.
4568
4569 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
4570
4571         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
4572         -ftree-parallelize-loops={0,1}.
4573         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4574         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4575         * config/ia64/hpux.h (LIB_SPEC): Likewise.
4576         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4577         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4578
4579 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
4580
4581         PR sanitizer/70541
4582         * asan.c (instrument_derefs): If we get unknown location, extract it
4583         with EXPR_LOCATION.
4584         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
4585
4586 2016-04-08  Tom de Vries  <tom@codesourcery.com>
4587
4588         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
4589         implicit firstprivate clause.
4590
4591 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4592
4593         PR target/70566
4594         * config/arm/thumb2.md (tst + branch-> lsls + branch
4595         peephole below *orsi_not_shiftsi_si): Require that condition
4596         register is dead after the peephole.
4597         (second peephole after the above): Likewise.
4598
4599 2016-04-08  Alan Modra  <amodra@gmail.com>
4600
4601         PR target/70117
4602         * builtins.c (fold_builtin_classify): For IBM extended precision,
4603         look at just the high-order double to test for NaN.
4604         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
4605         test just the high double for Inf but both doubles for subnormal
4606         limit.
4607
4608 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
4609
4610         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
4611         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
4612         node->simdclone->mask_mode != VOIDmode masks.
4613         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
4614         earlier, use it instead of node->simdclone.
4615         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4616         Set clonei->mask_mode.
4617
4618 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
4619
4620         PR c/70436
4621         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
4622         Pass it through to cp_parser_already_scoped_statement.
4623         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
4624         it through to cp_parser_statement.
4625         (cp_parser_statement): Pass IF_P through to
4626         cp_parser_iteration_statement.
4627         (cp_parser_pragma): Adjust call to
4628         cp_parser_iteration_statement.
4629
4630 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
4631
4632         PR c/70436
4633         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
4634         resolve a future -Wparentheses warning.
4635         * omp-low.c (scan_sharing_clauses): Likewise.
4636         * tree-parloops.c (eliminate_local_variables): Likewise.
4637
4638 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
4639
4640         PR rtl-optimization/70398
4641         * lra-constraints.c (process_address_1): Check zero scale and code
4642         for reloading with zero scale.
4643
4644 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
4645
4646         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
4647         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
4648
4649 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
4650
4651         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4652         Add support for AVX512F clones, include them by default for
4653         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
4654         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
4655         up to 128.
4656
4657         PR middle-end/70550
4658         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
4659         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
4660         firstprivate clauses.
4661         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
4662         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
4663         (lower_omp_target): Set TREE_NO_WARNING for
4664         non-addressable possibly uninitialized vars which are copied into
4665         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
4666
4667 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
4668
4669         * config/pa/predicates.md (integer_store_memory_operand): Accept
4670         REG+D operands with a large offset when reload_in_progress is true.
4671         (floating_point_store_memory_operand): Likewise.
4672
4673 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
4674
4675         PR c++/70336
4676         * match.pd (nested int casts): Limit to GIMPLE.
4677
4678 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
4679
4680         PR ipa/66223
4681         * ipa-devirt.c (maybe_record_node): Fix comment; use
4682         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
4683
4684 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
4685
4686         PR rtl-optimization/70542
4687         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
4688         if there are any uses other than insn or debug insns.
4689
4690 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
4691             Jakub Jelinek  <jakub@redhat.com>
4692
4693         PR tree-optimization/70509
4694         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
4695         Shift HOST_WIDE_INT_1U instead of 1.
4696
4697 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
4698
4699         PR tree-optimization/70509
4700         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
4701         of the vector base type for index.
4702
4703 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
4704
4705         PR target/70510
4706         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
4707
4708 2016-04-05  Richard Biener  <rguenther@suse.de>
4709
4710         PR tree-optimization/70526
4711         * tree-sra.c (build_ref_for_offset): Use prev_base to
4712         extract the alias pointer type.
4713
4714 2016-04-05  Richard Biener  <rguenther@suse.de>
4715
4716         * dse.c (struct store_info): Remove alias_set member.
4717         (struct read_info_type): Likewise.
4718         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
4719         spill_deleted, clear_alias_set_lookup): Remove.
4720         (get_group_info): Remove dead base == NULL_RTX case.
4721         (dse_step0): Remove initialization of removed variables.
4722         (delete_dead_store_insn): Reomve alias set dumping.
4723         (free_read_records): Remove alias_set handling.
4724         (canon_address): Remove alias_set_out parameter.
4725         (record_store): Remove spill_alias_set, it's always zero.
4726         (check_mem_read_rtx): Likewise.
4727         (dse_step2): Rename from ...
4728         (dse_step2_nospill): ... this.  Adjust.
4729         (scan_stores): Rename from ...
4730         (scan_stores_nospill): ... this.
4731         (scan_reads): Rename from ...
4732         (scan_reads_nospill): ... this.
4733         (scan_stores_spill, scan_reads_spill): Remove.
4734         (dse_step3_scan): Remove for_spills argument which is always false.
4735         (dse_step3): Likewise.
4736         (dse_step5): Rename from ...
4737         (dse_step5_nospill): ... this.  Remove alias_set handling.
4738         (rest_of_handle_dse): Adjust.
4739
4740 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
4741
4742         PR target/70525
4743         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
4744         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
4745         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
4746         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
4747
4748 2016-04-05  Richard Biener  <rguenther@suse.de>
4749
4750         PR middle-end/70499
4751         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
4752         non-register type temporaries into SSA.
4753
4754 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
4755
4756         PR ipa/66223
4757         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
4758         calls when sanitizing.
4759         (possible_polymorphic_call_target_p): Fix formatting.
4760
4761 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4762             Jakub Jelinek <jakub@redhat.com>
4763
4764         PR middle-end/70457
4765         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
4766         to ensure a call statement is compatible with a built-in's
4767         prototype.
4768         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
4769         Likewise.
4770
4771 2016-04-04  Richard Biener  <rguenther@suse.de>
4772
4773         PR rtl-optimization/70484
4774         * rtl.h (canon_output_dependence): Declare.
4775         * alias.c (canon_output_dependence): New function.
4776         * dse.c (record_store): Use canon_output_dependence rather
4777         than canon_true_dependence.
4778
4779 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
4780
4781         PR ipa/68881
4782         * cgraph.h (symtab_node::copy_visibility_from): New function.
4783         * symtab.c (symtab_node::copy_visibility_from): New function.
4784         * ipa-visibility.c (optimize_weakref): New function.
4785         (function_and_variable_visibility): Use it.
4786
4787 2016-04-04  Martin Liska  <mliska@suse.cz>
4788
4789         PR hsa/70402
4790         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
4791         value that is really in range handled by SBR instruction.
4792         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
4793         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
4794         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
4795
4796 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
4797
4798         PR target/70416
4799         PR target/67391
4800         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
4801         set, but not for SP_REG operands.
4802
4803 2016-04-02  Martin Sebor  <msebor@redhat.com>
4804
4805         PR c++/67376
4806         * fold-const.c (maybe_nonzero_address): New function.
4807         (fold_comparison): Call it.  Fold equality and relational
4808         expressions involving null pointers.
4809         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
4810
4811 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
4812
4813         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
4814         the "Y" constraint (scalar FP 0.0 immediate).
4815
4816         * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
4817         Add the "const_double" to the list of operand constraints.
4818
4819 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
4820
4821         PR rtl-optimization/70467
4822         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
4823         If low word of the last operand is 0, just emit addition/subtraction
4824         for the high word.
4825
4826 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4827
4828         PR target/70404
4829         * config/s390/s390.c (s390_expand_insv): Check for everything
4830         constant instead of just VOIDmode stuff.
4831
4832 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4833
4834         PR target/70496
4835         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
4836
4837 2016-04-01  Nathan Sidwell  <nathan@acm.org>
4838
4839         * tree.def (TRY_CATCH_EXPR): Correct documentation.
4840
4841 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
4842
4843         PR rtl-optimization/70461
4844         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
4845         is necessary.
4846
4847 2016-03-31  Martin Liska  <mliska@suse.cz>
4848
4849         PR hsa/70399
4850         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
4851         a tree value or an immediate integer value to a buffer
4852         that is eventually copied to a BRIG section.
4853         (emit_immediate_operand): Call the function here.
4854         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
4855         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
4856         of class' fields that are removed.
4857         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
4858         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
4859         m_brig_repr_size fields.
4860
4861 2016-03-31  Martin Liska  <mliska@suse.cz>
4862
4863         PR hsa/70391
4864         * hsa-gen.c (hsa_function_representation::update_dominance): New
4865         function.
4866         (convert_addr_to_flat_segment): Likewise.
4867         (gen_hsa_memory_set): New alignment argument.
4868         (gen_hsa_ctor_assignment): Likewise.
4869         (gen_hsa_insns_for_single_assignment): Provide alignment
4870         to gen_hsa_ctor_assignment.
4871         (gen_hsa_insns_for_direct_call): Add new argument.
4872         (expand_lhs_of_string_op): New function.
4873         (expand_string_operation_builtin): Likewise.
4874         (expand_memory_copy): New function.
4875         (expand_memory_set): New function.
4876         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
4877         (convert_switch_statements): Change signature.
4878         (generate_hsa): Use a return value of the function.
4879         (pass_gen_hsail::execute): Do not call
4880         convert_switch_statements here.
4881         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
4882         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
4883         (hsa_function_representation::update_dominance): New function.
4884
4885 2016-03-31  Martin Liska  <mliska@suse.cz>
4886
4887         PR hsa/70391
4888         * hsa-brig.c (emit_directive_variable): Emit alignment
4889         according to hsa_symbol::m_align.
4890         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
4891         (dump_hsa_symbol): Dump alignment of HSA symbols.
4892         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
4893         (gen_hsa_addr_with_align): New function.
4894         (hsa_bitmemref_alignment): Use newly added function.
4895         (gen_hsa_insns_for_load): Likewise.
4896         (gen_hsa_insns_for_store): Likewise.
4897         (gen_hsa_memory_copy): New argument added.
4898         (gen_hsa_insns_for_single_assignment): Respect
4899         alignment for assignments processed via gen_hsa_memory_copy.
4900         (gen_hsa_insns_for_direct_call): Likewise.
4901         (gen_hsa_insns_for_return): Likewise.
4902         (gen_function_def_parameters): Set default alignment.
4903         * hsa.c (hsa_object_alignment): New function.
4904         (hsa_byte_alignment): Pasted function.
4905         * hsa.h (hsa_symbol::m_align): New field.
4906
4907 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
4908
4909         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
4910         scratch field for goto case.
4911
4912 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
4913
4914         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
4915
4916 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
4917
4918         PR target/70442
4919         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
4920         (scalar_chain::convert_insn): Call convert_op for reg
4921         moves to handle undefined registers.
4922
4923 2016-03-31  Nathan Sidwell  <nathan@acm.org>
4924
4925         PR c++/70393
4926         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
4927         Assert we don't want to move backwards.
4928
4929 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
4930
4931         PR target/70453
4932         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
4933
4934 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
4935
4936         PR rtl-optimization/70460
4937         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
4938         with operand from REG_LABEL_OPERAND, instead substitute
4939         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
4940         Don't do anything for REG_NON_LOCAL_GOTO jumps.
4941
4942 2016-03-31  Martin Liska  <mliska@suse.cz>
4943
4944         * passes.c (execute_one_pass): Do not call
4945         todo_after for a discarded function.
4946
4947 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
4948
4949         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
4950         (no_cost, infinite_cost): Initialize the new field.
4951         (get_computation_cost_at): Record setup cost.
4952         (determine_use_iv_cost_address): Skip cost computation for sub
4953         uses if we can estimate it without losing accuracy.
4954
4955 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
4956
4957         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4958         estimates here.
4959         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4960         max_loop_iterations_int.
4961         (tree_unswitch_outer_loop): Likewise.
4962         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4963         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4964
4965 2016-03-30  Richard Biener  <rguenther@suse.de>
4966
4967         PR middle-end/70450
4968         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
4969
4970 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
4971
4972         PR target/70421
4973         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
4974         in gen_blendm expander.
4975
4976 2016-03-30  Nick Clifton  <nickc@redhat.com>
4977
4978         PR target/62254
4979         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
4980         case where we are already provided with an SImode SUBREG.
4981
4982 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4983
4984         PR target/70439
4985         * config/i386/i386.c (ix86_expand_epilogue): Properly check
4986         conflict between DRAP register and __builtin_eh_return.
4987
4988 2016-03-30  Michael Matz  <matz@suse.de>
4989             Richard Biener  <rguenther@suse.de>
4990
4991         PR ipa/12392
4992         * ipa-polymorphic-call.c (struct type_change_info): Change
4993         speculative to an unsigned allowing to limit the work we do.
4994         (csftc_abort_walking_p): New inline function..
4995         (check_stmt_for_type_change): Limit the number of may-defs
4996         skipped for speculative devirtualization to
4997         max-speculative-devirt-maydefs.
4998         * params.def (max-speculative-devirt-maydefs): New param.
4999         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
5000
5001 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
5002
5003         PR target/63890
5004         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
5005         and TARGET_MACHO.
5006
5007 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
5008
5009         PR tree-optimization/59124
5010         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
5011         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
5012
5013 2016-03-29  Jeff Law  <law@redhat.com>
5014
5015         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
5016
5017 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5018
5019         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
5020         to HOST_WIDE_INT.
5021
5022 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
5023
5024         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
5025         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
5026         gcrt0.o if linking dynamically.
5027
5028 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5029
5030         PR ipa/70283
5031         * ipa-devirt.c (methods_equal_p): New function.
5032         (compare_virtual_tables): Use it.
5033         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
5034         * cgraphclones.c (clone_function_name_1): Use
5035         symbol_table::symbol_suffix_separator.
5036         * coverage.c (build_var): Likewise.
5037         * symtab.c (symbol_table::symbol_suffix_separator): New.
5038
5039 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
5040
5041         PR rtl-optimization/70429
5042         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
5043         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
5044         mode != result_mode.
5045
5046         PR c++/70353
5047         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
5048
5049         PR tree-optimization/70405
5050         * ssa-iterators.h (num_imm_uses): Add missing braces.
5051
5052 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5053
5054         PR rtl-optimization/68695
5055         * ira-color.c (allocno_copy_cost_saving): New.
5056         (improve_allocation): Use it.
5057
5058 2016-03-29  Richard Henderson  <rth@redhat.com>
5059
5060         PR middle-end/70355
5061         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
5062
5063 2016-03-29  Richard Biener  <rguenther@suse.de>
5064
5065         PR middle-end/70424
5066         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
5067         use alignment returned by get_pointer_alignment_1 if it is
5068         bigger than BITS_PER_UNIT.
5069         * builtins.c (get_pointer_alignment_1): Do not return true
5070         for alignment extracted from SSA info.
5071
5072 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
5073
5074         * config/ft32/ft32.opt (mnodiv): New.
5075         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
5076         * doc/invoke.texi (FT32 Options -mnodiv): New.
5077
5078 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
5079
5080         PR target/70406
5081         * config/i386/i386.md (define_split, andn): Fix modes.
5082
5083 2016-03-26  Richard Biener  <rguenther@suse.de>
5084             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5085
5086         PR ipa/70366
5087         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
5088         instead of
5089         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
5090         as 2nd argument to cl_optimization_restore().
5091
5092 2016-03-25  Richard Henderson  <rth@redhat.com>
5093
5094         PR target/70120
5095         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
5096         * config/aarch64/aarch64-protos.h: Declare it.
5097         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
5098
5099 2016-03-25  Alan Modra  <amodra@gmail.com>
5100
5101         PR target/70052
5102         * config/rs6000/constraints.md (j): Simplify.
5103         * config/rs6000/predicates.md (easy_fp_constant): Exclude
5104         decimal float 0.D.
5105         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
5106         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
5107          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
5108         in all constraint alternatives.
5109         (movtd_64bit_nodm): Delete "j" constraint alternative.
5110
5111 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
5112
5113         * tree-ssa-propagate.c: Enhance docs for
5114         SSA_PROP_NOT_INTERESTING.
5115
5116 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
5117
5118         * doc/extend.texi: Fix typo in documentation to pure attribute.
5119
5120 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
5121
5122         PR target/70319
5123         * config/pa/pa.md (bswapdi2): Use a scratch register.
5124
5125 2016-03-24  Richard Henderson  <rth@redhat.com>
5126
5127         PR middle-end/69845
5128         * fold-const.c (extract_muldiv_1): Correct test for multiplication
5129         overflow.
5130
5131 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
5132
5133         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
5134         using ix86_expand_binary_operator instead of gen_andsi3.
5135
5136 2016-03-24  Richard Biener  <rguenther@suse.de>
5137
5138         PR tree-optimization/70396
5139         * tree-vect-stmts.c (vectorizable_comparison): Use
5140         get_vectype_for_scalar_type.
5141
5142 2016-03-24  Richard Biener  <rguenther@suse.de>
5143
5144         PR middle-end/70370
5145         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
5146         with register bases.
5147
5148 2016-03-24  Richard Biener  <rguenther@suse.de>
5149
5150         PR tree-optimization/70372
5151         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
5152         build_all_ones_cst to also handle vector types correctly.
5153
5154 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5155
5156         PR target/70381
5157         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
5158         -mfloat128 here.
5159
5160 2016-03-23  Marek Polacek  <polacek@redhat.com>
5161
5162         PR c++/69884
5163         * doc/invoke.texi: Document -Wignored-attributes.
5164
5165 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
5166
5167         PR tree-optimization/69042
5168         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
5169         parameter from 30 to 40.
5170
5171 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
5172
5173         PR tree-optimization/69042
5174         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
5175         for use with constant offset stripped in base.
5176
5177 2016-03-23  Richard Biener  <rguenther@suse.de>
5178
5179         PR middle-end/70251
5180         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
5181         mode compatibility check.
5182         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5183
5184 2016-03-23  Jeff Law  <law@redhat.com>
5185
5186         PR tree-optimization/64058
5187         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
5188         CONFLICT_COUNT.
5189         (struct ssa_conflicts): Move up earlier in the file.
5190         (conflicts_, var_map_): New static variables.
5191         (initialize_conflict_count): New function to initialize the
5192         CONFLICT_COUNT field for each conflict pair.
5193         (compare_pairs): Lazily initialize the conflict count and use it
5194         as the first tie-breaker.
5195         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
5196         and wipe conflicts_ and map_ around the call to qsort.  Remove
5197         special case for 2 coalesce pairs.
5198         * bitmap.c (bitmap_count_unique_bits): New function.
5199         (bitmap_count_bits_in_word): New function, extracted from
5200         bitmap_count_bits.
5201         (bitmap_count_bits): Use bitmap_count_bits_in_word.
5202         * bitmap.h (bitmap_count_unique_bits): Declare it.
5203
5204 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
5205
5206         PR target/69917
5207         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
5208         transparent alias chain for decl assembler name.
5209         * config/sol2.c (solaris_assemble_visibility): Likewise.
5210
5211 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5212
5213         * config/arm/arm1020e.md (1020call_op): Reduce reservation
5214         duration.
5215         (v10_fdivs): Likewise.
5216         (v10_fdivd): Likewise.
5217
5218 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5219
5220         PR driver/70132
5221         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
5222         to not call fclose twice on file.
5223
5224 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
5225
5226         PR tree-optimization/70354
5227         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
5228         oprnd0 is wider than oprnd1 and there is a cast from the wider
5229         type to oprnd1, mask it with the mask of the narrower type.
5230
5231         PR target/70321
5232         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
5233         Optimize TARGET_STV splitters, if high or low word of last argument
5234         is 0 or -1.
5235
5236 2016-03-22  Jeff Law  <law@redhat.com>
5237
5238         PR target/70232
5239         tree-ssa-threadbackward.c
5240         (fsm_find_control_statement_thread_paths): Correctly distinguish
5241         between old style jump threads vs FSM jump threads.
5242
5243 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
5244
5245         PR target/70302
5246         * config/i386/i386.c (scalar_chain::convert_op): Support
5247         uninitialized register usage case.
5248
5249 2016-03-22  Richard Biener  <rguenther@suse.de>
5250
5251         PR middle-end/70251
5252         * genmatch.c (gen_transform): Adjust last parameter to a three-state
5253         int...
5254         (capture::gen_transform): ... to change behavior when substituting
5255         a condition into cond or not-cond expr context.
5256         (dt_simplify::gen_1): Adjust.
5257         * gimple-match-head.c: Include gimplify.h for unshare_expr.
5258         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
5259         last change and instead change to
5260         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
5261         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5262
5263 2016-03-22  Anthony Green  <green@moxielogic.com>
5264
5265         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
5266         issue for moxiebox targets.
5267         (CC1PLUS_SPEC): Ditto.
5268
5269 2016-03-22  Richard Biener  <rguenther@suse.de>
5270
5271         PR middle-end/70333
5272         * fold-const.c (extract_muldiv_1): Properly perform multiplication
5273         in the wide type.
5274
5275 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5276
5277         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
5278
5279 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5280
5281         PR target/70325
5282         * config/i386/i386.c (def_builtin): Handle
5283         OPTION_MASK_ISA_AVX512VL to be and-ed with other
5284         bits.
5285         (const struct builtin_description bdesc_special_args[]):
5286         Remove duplicate ISA bits.
5287
5288 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
5289
5290         PR target/70329
5291         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
5292         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
5293         in a way that works also for AVX512BW.
5294
5295         PR target/70300
5296         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
5297         instead of source if operands[1] is xmm16 and above and
5298         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
5299         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
5300
5301         PR c++/70295
5302         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
5303         on assign if (*from_p) is a comparison, set it to
5304         TREE_NO_WARNING (*from_p).
5305
5306 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
5307
5308         PR middle-end/70326
5309         * lra.c (restore_scratches): Ignore deleted insns.
5310
5311 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
5312             Jakub Jelinek  <jakub@redhat.com>
5313
5314         PR tree-optimization/70317
5315         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
5316         to HONOR_NANS.
5317
5318 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
5319
5320         PR target/70327
5321         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
5322         of ix86_expand_move.
5323         (movoi): Ditto.
5324         (movti): Use general_operand for operand 1 predicate.
5325
5326 2016-03-21  Martin Liska  <mliska@suse.cz>
5327
5328         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
5329         insns.
5330         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
5331
5332 2016-03-21  Martin Liska  <mliska@suse.cz>
5333
5334         PR ipa/70306
5335         * ipa-icf.c (sem_function::parse): Skip static
5336         constructors and destructors.
5337
5338 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
5339
5340         PR target/70296
5341         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
5342         function-like macro, peek following token(s) if it is followed
5343         by CPP_OPEN_PAREN token with optional padding in between, and
5344         if not, don't treat it like a macro.
5345
5346 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5347             Alexander Monakov  <amonakov@ispras.ru>
5348
5349         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
5350         for the stabs debug format.
5351
5352 2016-03-21  Richard Biener  <rguenther@suse.de>
5353
5354         PR tree-optimization/70310
5355         * tree-vect-generic.c (expand_vector_condition): Fold the built
5356         condition.
5357
5358 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
5359
5360         PR target/70293
5361         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
5362         Block third alternative for AVX-512VL target,
5363
5364 2016-03-21  Martin Liska  <mliska@suse.cz>
5365
5366         PR hsa/70234
5367         * hsa-brig.c (emit_function_directives): Mark unemitted
5368         global variables for emission.
5369         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
5370         (get_symbol_for_decl): Likewise.
5371         * hsa.h (struct hsa_symbol): New flag.
5372
5373 2016-03-21  Richard Biener  <rguenther@suse.de>
5374
5375         PR tree-optimization/70288
5376         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
5377         we do not estimate unsimplified all-constant conditionals or
5378         switches as optimized away.
5379
5380 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
5381
5382         PR rtl-optimization/69102
5383         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
5384         when we have a readonly dependency context.
5385
5386 2016-03-18  Jeff Law  <law@redhat.com>
5387
5388         PR rtl-optimization/70263
5389         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
5390         (update_equiv_regs): When trying to move a store to after the insn
5391         that sets the source of the store, make sure the store occurs after
5392         the insn that sets the source of the store.  When successful note
5393         the REG_EQUIV note created in the dump file.
5394
5395 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
5396             Bernd Schmidt  <bschmidt@redhat.com>
5397
5398         * doc/extend.texi: Document more potential problems with basic asms.
5399
5400 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
5401
5402         PR rtl-optimization/70278
5403         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
5404         VOIDmode.
5405
5406 2016-03-18  Jason Merrill  <jason@redhat.com>
5407
5408         * calls.c (load_register_parameters): Fix zero size sibcall logic.
5409
5410 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5411
5412         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
5413         values to 128b regs.
5414
5415 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5416
5417         PR tree-optimization/70252
5418         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
5419         boolean vector has a proper number of elements.
5420         (supportable_narrowing_operation): Likewise.
5421
5422 2016-03-18  Tom de Vries  <tom@codesourcery.com>
5423
5424         PR ipa/70269
5425         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
5426
5427 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
5428
5429         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
5430         instead of replace_rtx for DEBUG_INSNs.
5431
5432 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5433
5434         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
5435         load type reservations.
5436
5437 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
5438
5439         PR target/70188
5440         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
5441         define_constraint for "Q" and "T" constraints.
5442
5443 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
5444
5445         Tweak the pipeline model for Exynos M1
5446
5447         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
5448         model.
5449
5450 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
5451
5452         PR c/70264
5453         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
5454         where one or both locations aren't within a line_map.
5455
5456 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5457
5458         PR driver/70192
5459         * opts.c (finish_options): Don't set flag_pie to the default if
5460         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
5461         if it is -1.
5462
5463 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
5464
5465         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
5466         true as ALL_REGS argument to replace_rtx.
5467
5468 2016-03-17  Richard Biener  <rguenther@suse.de>
5469
5470         PR debug/70271
5471         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
5472         last.
5473
5474 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
5475
5476         PR target/70245
5477         * rtl.h (replace_rtx): Add ALL_REGS argument.
5478         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
5479         equality and assert mode is the same, instead of just rtx pointer
5480         equality.
5481         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
5482         true as ALL_REGS argument to replace_rtx.
5483
5484 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
5485
5486         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
5487         for boolean vector with vector mode only.
5488         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5489
5490 2016-03-17  Nick Clifton  <nickc@redhat.com>
5491
5492         PR target/70162
5493         * config/rx/rx.c (rx_print_integer): Print negative constants in
5494         decimal.
5495
5496 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
5497
5498         PR target/70261
5499         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
5500
5501 2016-03-16  Richard Henderson  <rth@redhat.com>
5502             Richard Biener  <rguenth@suse.de>
5503
5504         PR middle-end/70240
5505         PR middle-end/68215
5506         PR tree-opt/68714
5507         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
5508         first operand as is_gimple_condexpr.
5509
5510         PR middle-end/70240
5511         PR middle-end/68215
5512         Revert r231575
5513         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
5514         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
5515         Do not gimplify the result.
5516         (do_unop): Adjust call to tree_vec_extract.
5517         (do_binop): Likewise.
5518         (do_compare): Likewise.
5519         (do_plus_minus): Likewise.
5520         (do_negate): Likewise.
5521         (expand_vector_condition): Likewise.
5522         (do_cond): Likewise.
5523
5524 2016-03-16  Richard Henderson  <rth@redhat.com>
5525
5526         PR target/70048
5527         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
5528         (aarch64_classify_address): Use it.
5529         (aarch64_legitimize_address): Force all subexpressions of PLUS
5530         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
5531
5532 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
5533             Richard Biener  <rguenth@suse.de>
5534
5535         PR target/70245
5536         * rtlanal.c (replace_rtx): For REG, if from is a REG,
5537         return to even if only REGNO is equal, and assert
5538         mode is the same.
5539
5540 2016-03-11  Jeff Law  <law@redhat.com>
5541
5542         PR rtl-optimization/70224
5543         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
5544
5545 2016-03-16  Richard Henderson  <rth@redhat.com>
5546
5547         PR middle-end/70199
5548         * function.h (struct function): Add has_forced_label_in_static.
5549         * gimplify.c (force_labels_r): Set it.
5550         * lto-streamer-in.c (input_struct_function_base): Read it.
5551         * lto-streamer-out.c (output_struct_function_base): Write it.
5552         * tree-inline.c (has_label_address_in_static_1): Remove.
5553         (copy_forbidden): Remove fndecl parameter; test
5554         has_forced_label_in_static.
5555         (inline_forbidden_p): Update call to copy_forbidden.
5556         (tree_versionable_function_p): Likewise.
5557         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
5558         (chkp_versioning): Likewise.
5559         * tree-inline.h (copy_forbidden): Update decl.
5560
5561 2016-03-16  Marek Polacek  <polacek@redhat.com>
5562
5563         PR c/70093
5564         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
5565         function being thunked if the result type doesn't have fixed size.
5566         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
5567         doesn't have fixed size.
5568
5569 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
5570
5571         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
5572         reporting malformed loop nest.
5573
5574 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5575
5576         PR lto/70187
5577         * ipa-devirt.c (possible_polymorphic_call_targets): Move
5578         nodes.length () == 1 test to before first nodes[0] access.
5579
5580 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5581
5582         PR tree-optimization/68715
5583         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
5584         single_pred_p test.
5585
5586 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5587
5588         PR tree-optimization/68809
5589         * graphite-scop-detection.c (same_close_phi_node): Test if result types
5590         are the same.
5591
5592 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
5593             Sandra Loosemore  <sandra@codesourcery.com>
5594
5595         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
5596         on leaf attribute. Mention ELF interposition problems.
5597
5598 2016-03-16  Alan Modra  <amodra@gmail.com>
5599
5600         PR rtl-optimization/69195
5601         PR rtl-optimization/47992
5602         * ira.c (indirect_jump_optimize): Ignore artificial defs.
5603         Add comments.
5604
5605 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
5606
5607         PR bootstrap/69513
5608         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
5609
5610 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5611
5612         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
5613
5614 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
5615
5616         PR rtl-optimization/70222
5617         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
5618         optimization if mode is different from result_mode, queue up masking
5619         of the result in outer_op.  Formatting fix.
5620
5621         PR middle-end/70239
5622         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
5623         of safe_grow.
5624
5625 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5626
5627         PR rtl-optimization/69032
5628         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
5629         looping backwards over basic block insns.
5630
5631 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5632
5633         PR target/66660
5634         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
5635         to non-speculative when propagating trap bits.
5636
5637 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5638
5639         PR rtl-optimization/63384
5640         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
5641         DEBUG_INSN_P insns.
5642
5643 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5644
5645         PR target/64411
5646         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
5647         factored out from ...
5648         (sched_analyze_insn): ... here.
5649         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
5650         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
5651         get_implicit_reg_pending_clobbers in it.
5652         (setup_id_reg_sets): Use setup_id_implicit_regs.
5653         (deps_init_id): Ditto.
5654
5655 2016-03-15  Tom de Vries  <tom@codesourcery.com>
5656
5657         PR ipa/70161
5658         * cgraph.c (cgraph_node::get_body): Save, reset and restore
5659         dump_file_name.
5660         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
5661         execute_function_dump.
5662         (execute_one_pass): Don't dump function if it will be dumped after ipa
5663         transform.
5664
5665 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
5666
5667         * genrecog.c (match_pattern_2): If pred is NULL don't call
5668         safe_predicate_mode on it.
5669
5670 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
5671
5672         PR middle-end/70219
5673         * lra-constraints.c (delete_move_and_clobber): Change assertion
5674         to also allow dregno == 0.
5675
5676 2016-03-14  Richard Henderson  <rth@redhat.com>
5677
5678         PR tree-opt/68714
5679         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
5680         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
5681         (reassociate_bb): Use optimize_vec_cond_expr; avoid
5682         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
5683         on vectors.
5684
5685 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
5686
5687         PR target/70083
5688         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
5689         regs.
5690         (lra_create_live_ranges_1): initialize hard register biggest_mode to
5691         VOIDmode.
5692         * lra-constraints.c (split_reg): For hard regs, try to find the
5693         biggest single-register mode used in the function.
5694
5695 2016-03-14  Richard Biener  <rguenther@suse.de>
5696
5697         PR tree-optimization/56365
5698         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
5699         constants to compare against.
5700
5701 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
5702
5703         PR target/70098
5704         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
5705         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
5706         (define_split for the GPR case): Use int_reg_operand instead of
5707         gpc_reg_operand for the output.
5708
5709 2016-03-14  Tom de Vries  <tom@codesourcery.com>
5710
5711         PR tree-optimization/70045
5712         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
5713         create_empty_if_region_on_edge argument.
5714
5715 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
5716
5717         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
5718         (STACK_CHECK_PROTECT): Likewise.
5719         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
5720         (STACK_CHECK_PROTECT): Likewise.
5721         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
5722         (STACK_CHECK_PROTECT): Likewise.
5723         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
5724         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5725         (STACK_CHECK_PROTECT): Likewise.
5726
5727 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
5728
5729         PR rtl-optimization/69307
5730         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
5731         registers in modes that span more than one register.
5732
5733 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
5734
5735         PR target/69614
5736         * lra-constraints.c (delete_move_and_clobber): New.
5737         (remove_inheritance_pseudos): Use it.
5738
5739 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
5740
5741         PR ada/70017
5742         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
5743         the libcall is LCT_THROW.
5744         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
5745         for the checking routine.
5746
5747 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
5748
5749         PR target/70131
5750         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
5751         optimization if we have direct move.
5752         (roundu32<mode>2_fprs): Likewise.
5753
5754 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
5755
5756         PR target/70123
5757         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
5758         be rematerialized.
5759         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
5760         Arguments swapped.  All callers changed.  Take reg_renumber into
5761         account, and Calculate and compare register ranges for hard regs.
5762
5763 2016-03-11  Jeff Law  <law@redhat.com>
5764
5765         PR tree-optimization/70190
5766         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5767         Handle cases where we can not extract the taken edge, even though we
5768         found a constant value.
5769
5770         PR tree-optimization/64058
5771         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
5772         (num_coalesce_pairs): Move up earlier in file.
5773         (find_coalesce_pair): Initialize the INDEX field for each pair
5774         discovered.
5775         (compare_pairs): No longer sort on the elements in each pair.
5776         Instead break ties with the index of the coalesce pair.
5777
5778 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5779
5780         PR target/70002
5781         * config/aarch64/aarch64-protos.h
5782         (aarch64_save_restore_target_globals): New prototype.
5783         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
5784         Call the above when popping pragma.
5785         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
5786         New function.
5787         (aarch64_set_current_function): Rewrite using the above.
5788
5789 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
5790
5791         PR tree-optimization/70177
5792         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
5793         (extract_ops_from_tree): ... this.  In the 2 argument
5794         overload remove _1 suffix.
5795         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
5796         (extract_ops_from_tree): ... this.
5797         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
5798         Adjust callers.
5799         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
5800         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
5801         extract_ops_from_tree instead of 2 operand one.
5802
5803 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
5804
5805         PR tree-optimization/70013
5806         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
5807         for constant-pool entries.
5808
5809 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
5810
5811         PR rtl-optimization/70174
5812         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
5813         followed by gen_lowpart on force_reg instead of just gen_lowpart.
5814
5815         PR tree-optimization/70169
5816         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
5817         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
5818         for unknown codes.
5819
5820 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
5821             Jakub Jelinek  <jakub@redhat.com>
5822
5823         PR target/70160
5824         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
5825         of uninitialized values.
5826
5827 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5828
5829         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
5830         define_expand.
5831         ("*trunctddd2"): New pattern definition.
5832         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
5833         TD->DD truncation.
5834
5835 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5836
5837         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
5838         definitions for BFP and DFP rounding modes.
5839         ("fixuns_truncdddi2", "fixuns_trunctddi2")
5840         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
5841         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
5842         ("fix_trunctf<mode>2"): Use the new constants instead of magic
5843         numbers.
5844
5845 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5846
5847         * config/s390/constraints.md: Adjust comment.
5848         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
5849         s390_decompose_addrstyle_without_index.
5850         * config/s390/predicates.md (shift_count_or_setmem_operand):
5851         Rename to setmem_operand.
5852         * config/s390/s390-protos.h
5853         (s390_decompose_shift_count): Rename to
5854         s390_decompose_addrstyle_without_index.
5855         * config/s390/s390.c (s390_decompose_shift_count)
5856         (s390_mem_constraint, print_shift_count_operand)
5857         (print_operand_address, print_operand): Rename
5858         s390_decompose_shift_count to
5859         s390_decompose_addrstyle_without_index and rename
5860         print_shift_count_operand to print_addrstyle_operand troughout the
5861         file.
5862         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
5863         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
5864         Rename shift_count_or_setmem_operand to setmem_operand.
5865         * config/s390/vx-builtins.md ("vec_insert<mode>")
5866         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
5867         nonmemory_operand.
5868
5869 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5870
5871         PR target/70168
5872         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
5873         Handle overlapping retval and newval.
5874
5875 2016-03-10  Nick Clifton  <nickc@redhat.com>
5876
5877         PR target/7044
5878         * config/aarch64/aarch64.c
5879         (aarch64_override_options_after_change_1): When forcing
5880         flag_omit_frame_pointer to be true, use a special value that can
5881         be detected if this function is called again, thus preventing
5882         flag_omit_leaf_frame_pointer from being forced to be false.
5883
5884 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5885
5886         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
5887         Set x_flag_omit_leaf_frame_pointer when handling
5888         -momit-leaf-frame-pointer.
5889
5890 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5891
5892         PR lto/69589
5893         * cgraph.c (cgraph_node::dump): Dump split_part and
5894         indirect_call_target.
5895         * cgraph.h (cgraph_node): Add indirect_call_target flag.
5896         * ipa.c (has_addr_references_p): Cleanup.
5897         (is_indirect_call_target_p): New.
5898         (walk_polymorphic_call_targets): Do not mark virtuals that may be
5899         called indirectly as local.
5900         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
5901
5902 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5903
5904         PR ipa/69630
5905         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
5906         on cxa_pure_virtual.
5907
5908 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5909
5910         PR lto/69589
5911         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
5912
5913 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5914
5915         PR lto/69589
5916         * tree.c (need_assembler_name_p): Only record main variant type names.
5917
5918 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
5919
5920         PR target/70113.
5921         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
5922         Always define to 0 or 1.
5923         (TARGET_FIX_ERR_A53_843419): New macro.
5924         * config/aarch64/aarch64-elf-raw.h
5925         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
5926         * config/aarch64/aarch64-linux.h: Likewise.
5927         * config/aarch64/aarch64.c
5928         (aarch64_override_options_after_change_1): Do not default
5929         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
5930         843419 is on.
5931         (aarch64_attributes): Handle fix-cortex-a53-843419.
5932         (aarch64_can_inline_p): Likewise.
5933         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
5934
5935 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
5936         Jakub Jelinek <jakub@redhat.com>
5937
5938         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
5939         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
5940         DECL_COMMONS if flag_unconstrained_commons is set.
5941         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5942         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
5943         (funconstrained-commons): Document.
5944
5945 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
5946
5947         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
5948         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
5949
5950 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5951
5952         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
5953         has a proper number of elements.
5954
5955 2016-03-10  Alan Modra  <amodra@gmail.com>
5956
5957         PR rtl-optimization/69195
5958         PR rtl-optimization/47992
5959         * ira.c (recorded_label_ref): Delete.
5960         (update_equiv_regs): Return void.
5961         (indirect_jump_optimize): New function.
5962         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
5963         before regstat_compute_ri.  Don't rebuild_jump_labels here.
5964         Delete update_regstat.
5965
5966 2016-03-10  Richard Biener  <rguenther@suse.de>
5967
5968         PR tree-optimization/70128
5969         * tree-ssa-structalias.c (set_uids_in_ptset): Set
5970         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
5971
5972 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
5973
5974         PR tree-optimization/70152
5975         * tree-sra.c (replace_removed_params_ssa_names): Copy over
5976         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
5977
5978         PR target/70086
5979         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
5980         instead of gen_sse2_loadlpd.
5981         * config/i386/sse.md (*vec_concatv2df): Rename to...
5982         (vec_concatv2df): ... this.
5983
5984         PR tree-optimization/70127
5985         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
5986
5987 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
5988
5989         PR c/68473
5990         PR c++/70105
5991         * diagnostic-show-locus.c (compatible_locations_p): New function.
5992         (layout::layout): Sanitize ranges using compatible_locations_p.
5993
5994 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
5995
5996         PR c/68473
5997         PR c++/70105
5998         * diagnostic-show-locus.c (layout_range::layout_range): Replace
5999         location_range param with three const expanded_locations * and a
6000         bool.
6001         (layout::layout): Replace call to
6002         rich_location::lazily_expand_location with get_expanded_location.
6003         Extract the range and perform location expansion here, passing
6004         the results to the layout_range ctor.
6005         * diagnostic.c (source_range::debug): Delete.
6006         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
6007         of rich_location::get_expanded_location.
6008         * gcc-rich-location.c (get_range_for_expr): Delete.
6009         (gcc_rich_location::add_expr): Reimplement to avoid the
6010         rich_location::add_range overload that took a location_range,
6011         passing a location_t instead.
6012
6013 2016-03-09  Richard Biener  <rguenther@suse.de>
6014         Jakub Jelinek  <jakub@redhat.com>
6015
6016         PR tree-optimization/70138
6017         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6018         Also skip vect_double_reduction_def.
6019
6020 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
6021
6022         PR target/70049
6023         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
6024         if the operand is "m".
6025
6026 2016-03-09  Nathan Sidwell  <nathan@acm.org>
6027
6028         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
6029
6030 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6031
6032         * config/i386/i386.c (processor_target_table): Fix cost table
6033         intialization order for znver1.
6034
6035 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
6036
6037         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
6038         - becuase -> because.
6039         * ipa-reference.c (ignore_module_statics): Likewise.
6040         * cgraph.c (cgraph_node::get_body): Likewise.
6041         * ipa-inline.c (early_inliner): Likewise.
6042         * ipa-devirt.c (types_same_for_odr): Likewise.
6043         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
6044         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
6045
6046 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6047
6048         * tree-ssa-math-opts.c: Fix typo in comment.
6049
6050 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
6051
6052         PR target/70110
6053         * config/i386/i386.c (scalar_chain::make_vector_copies,
6054         scalar_chain::convert_reg): Call end_sequence in between
6055         get_insns and emit_conversion_insns rather than after both
6056         calls.
6057
6058 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
6059
6060         PR target/70064
6061         * config/i386/i386.h (machine_function): Add
6062         pc_thunk_call_expanded flag.
6063         (ix86_pc_thunk_call_expanded): New define.
6064         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
6065         (*set_got): Rename insn pattern from set_got.
6066         (*set_got_labelled): Rename inst pattern from set_got_labelled.
6067         * config/i386/i386.c (ix86_compute_frame_layout): Use
6068         ix86_pc_thunk_call_expanded to prevent red-zone.
6069
6070 2016-03-07  Martin Jambor  <mjambor@suse.cz>
6071
6072         * hsa.h (hsa_get_ctor_statements): Declare.
6073         (hsa_get_dtor_statements): Likewise.
6074         (hsa_get_kernel_dispatch_type): Likewise.
6075         * hsa.c (hsa_get_ctor_statements): New function.
6076         (hsa_get_dtor_statements): Likewise.
6077         (hsa_get_kernel_dispatch_type): Likewise.
6078         * hsa-brig.c (hsa_cdtor_statements): Removed.
6079         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
6080         hsa_get_dtor_statements.
6081         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
6082         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
6083
6084 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6085
6086         * config/arm/arm-cores.def (cortex-r8): New.
6087         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
6088         * config/arm/arm-tune.md: Likewise.
6089         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
6090
6091 2016-03-07  Martin Sebor  <msebor@redhat.com>
6092
6093         PR rtl-optimization/19705
6094         * doc/invoke.texi (Options That Control Optimization): Clarify
6095         -fno-branch-count-reg.
6096
6097 2016-02-26  Richard Biener  <rguenther@suse.de>
6098             Jeff Law  <law@redhat.com>
6099
6100         PR tree-optimization/69740
6101         * cfghooks.c (remove_edge): Request loop fixups if we delete
6102         an edge that might turn an irreducible loop into a natural
6103         loop.
6104         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
6105         Move after definition of loops_state_clear.
6106
6107 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
6108
6109         PR rtl-optimization/69052
6110         * rtlanal.c (commutative_operand_precedence): Set higher precedence
6111         to CONST_WIDE_INT.
6112
6113 2016-03-07  Tom de Vries  <tom@codesourcery.com>
6114
6115         PR tree-optimization/70116
6116         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
6117         is_tm_ending stmts and ubsan/asan internal functions.
6118         (find_duplicate): Use it.  Don't test is_tm_ending here.
6119
6120 2016-03-07  Richard Biener  <rguenther@suse.de>
6121
6122         PR tree-optimization/70115
6123         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
6124         (propagate_constants_for_unrolling): Use replace_uses_by.
6125
6126 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
6127
6128         PR middle-end/69916
6129         * omp-low.c (struct oacc_loop): Add ifns.
6130         (new_oacc_loop_raw): Initialize it.
6131         (finish_oacc_loop): Clear mask & flags if no ifns.
6132         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
6133         (oacc_loop_xform_loop): Add ifns arg & adjust.
6134         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
6135
6136 2016-03-07  Richard Henderson  <rth@redhat.com>
6137
6138         PR rtl-opt/70061
6139         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
6140         (insert_value_copy_on_edge): Likewise.
6141
6142 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6143
6144         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
6145
6146 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6147
6148         PR target/62281
6149         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
6150
6151 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6152
6153         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
6154
6155 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6156
6157         Fix sseimul type attribute.
6158         * config/i386/znver1.md
6159         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
6160         znver1_sseimul_avx256_load) : Fix the type attribute.
6161         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
6162         pipe usage and latency.
6163
6164 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
6165
6166         PR c++/70084
6167         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
6168         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
6169         to the right type.
6170
6171 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
6172
6173         PR c/69973
6174         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
6175
6176         PR rtl-optimization/69941
6177         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
6178         the reg share its mode.
6179
6180 2016-03-04  Jeff Law  <law@redhat.com>
6181
6182         PR tree-optimization/69196
6183         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6184         If the both SSA_NAMEs are anonymous, then consider them unassociated
6185         and include the PHI in the statement count.
6186
6187 2016-03-05  Tom de Vries  <tom@codesourcery.com>
6188
6189         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
6190         construct in oacc routine.  Check for oacc region in oacc routine.
6191
6192 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
6193
6194         PR target/70062
6195         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
6196         2016-02-22 changes, instead don't recurse if RECUR is already true.
6197         Don't change *dynamic_check if RECUR.  Adjust recursive caller
6198         to pass true to the new argument.
6199         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
6200
6201         PR target/70059
6202         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6203         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
6204         fixes.
6205         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
6206
6207 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
6208
6209         PR rtl-optimization/57676
6210         * lra-assigns.c (lra_assign): Guard test for maximum iterations
6211         with flag_checking.
6212
6213 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
6214
6215         * tree-vect-patterns.c (search_type_for_mask): Handle
6216         comparison of booleans.
6217
6218 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
6219
6220         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
6221         Fix @xref usage.
6222
6223         PR debug/69947
6224         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
6225         all other ops that have dw_val_class_die_ref operands,
6226         and DW_OP_GNU_entry_value.
6227
6228 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6229
6230         PR rtl-optimization/69904
6231         * config/arm/arm.c (arm_cannot_copy_insn_p):
6232         Return true for load-exclusive instructions.
6233
6234 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
6235
6236         PR target/70021
6237         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
6238         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
6239         the pattern no matter if it is used just by non-pattern, pattern
6240         or mix thereof.
6241         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
6242         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
6243         oprnd1 def_stmt is in pattern, don't look through it.
6244
6245 2016-03-03  Marek Polacek  <polacek@redhat.com>
6246
6247         PR middle-end/70050
6248         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
6249
6250 2016-03-03  Martin Liska  <mliska@suse.cz>
6251
6252         PR tree-optimization/70043
6253         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
6254         previous statement if we see a debug statement.
6255
6256 2016-03-03  Richard Biener  <rguenther@suse.de>
6257
6258         PR tree-optimization/55936
6259         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
6260         parameter and guard unsafe equivalence use.
6261         (vrp_evaluate_conditional_warnv_with_ops): Always use
6262         safe equivalences but not via the quadratic compare_names
6263         helper.
6264
6265 2016-03-03  Michael Collison  <michael.collison@linaro.org>
6266
6267         PR target/70014
6268         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
6269         for operand 1 to s_register_operand. Change predicate for operand
6270         2 to arm_not_immediate_operand.
6271
6272 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
6273
6274         * doc/tm.texi: Regenerated.
6275
6276 2016-03-02  Richard Henderson  <rth@redhat.com>
6277
6278         PR rtl-opt/67145
6279         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
6280         simplification when all args are positive non-fixed registers.
6281
6282 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6283
6284         * target.def (lra_p): Specify that new ports should use LRA.
6285
6286 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
6287
6288         PR libgomp/69555
6289         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
6290         gimplify_type_sizes the type they refer to.
6291         (omp_notice_variable): Handle reference vars to VLAs.
6292         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
6293         reference to VLA decls in the second pass instead of first pass.
6294
6295 2016-03-02  Tom de Vries  <tom@codesourcery.com>
6296
6297         PR tree-optimization/68659
6298         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
6299         new_expr == NULL_TREE.
6300         (get_new_name): Handle ADDR_EXPR.
6301
6302 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
6303
6304         PR rtl-optimization/69052
6305         * loop-invariant.c (canonicalize_address): New function.
6306         (inv_can_prop_to_addr_use): Check validity of address expression
6307         which is canonicalized by above function.
6308
6309 2016-03-02  Alan Modra  <amodra@gmail.com>
6310
6311         PR ipa/69990
6312         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
6313         larger alignment.
6314
6315 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
6316
6317         PR target/70028
6318         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
6319         (*movhi_internal): Put mask moves from and to memory separately
6320         from moves from/to GPRs.
6321
6322 2016-03-02  Richard Biener  <rguenther@suse.de>
6323
6324         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
6325         GENERIC expressions in GIMPLE.
6326
6327 2016-03-02  Richard Biener  <rguenther@suse.de>
6328
6329         * config/i386/i386.c (type_natural_mode): Fix typo.
6330
6331 2016-03-02  Nick Clifton  <nickc@redhat.com>
6332
6333         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
6334
6335 2016-03-02  Richard Biener  <rguenther@suse.de>
6336             Uros Bizjak  <ubizjak@gmail.com>
6337
6338         PR target/67278
6339         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
6340
6341 2016-03-02  Richard Biener  <rguenther@suse.de>
6342
6343         PR middle-end/67278
6344         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
6345
6346 2016-03-02  Marek Polacek  <polacek@redhat.com>
6347
6348         PR c/67854
6349         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
6350         "is promoted to" warning.
6351
6352 2016-03-01  DJ Delorie  <dj@redhat.com>
6353
6354         * config.gcc: Deprecate mep-*.
6355
6356 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
6357
6358         PR middle-end/70025
6359         * lra-constraints.c (regno_val_use_in): New.
6360         (match_reload): Use it instead of regno_use_in.
6361
6362 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6363
6364         PR rtl-optimization/70007
6365         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
6366         references present in REG_EQUAL notes attached to non-SET patterns.
6367
6368 2016-03-01  Jeff Law  <law@redhat.com>
6369
6370         PR tree-optimization/69196
6371         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6372         Appropriately clamp the number of statements to copy when the
6373         thread path does not traverse a loop backedge.
6374
6375         PR tree-optimization/69196
6376         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6377         Do count some PHIs in the thread path against the insn count.  Decrease
6378         final statement count by one as the control statement in the last
6379         block will get removed.  Remove special cased code for handling PHIs
6380         in the last block.
6381
6382 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
6383
6384         PR target/70027
6385         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
6386         asm dialect alternatives to explicit GOTPCREL calls.
6387
6388 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6389
6390         PR ada/70017
6391         * ira.c (do_reload): Issue warning for generic stack checking here...
6392         * reload1.c (reload): ...instead of here and streamline it.
6393
6394 2016-03-01  Nick Clifton  <nickc@redhat.com>
6395
6396         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
6397
6398 2016-03-01  Richard Biener  <rguenther@suse.de>
6399
6400         PR tree-optimization/69983
6401         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
6402         types and fall back to operand_equal_p.
6403
6404 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6405
6406         Revert
6407         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6408
6409         * config/s390/constraints.md ("jm8"): New constraint.
6410         * config/s390/predicates.md ("const_int_8bitset_operand"): New
6411         predicate.
6412         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
6413         into ...
6414         ("*setmem_long<setmem_and>"): New pattern.
6415         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
6416         into ...
6417         ("*setmem_long_31z<setmem_and>"): New pattern.
6418         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
6419         New substitution rules with the required attributes.
6420
6421
6422 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6423
6424         Revert
6425         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6426
6427         * gensupport.c (process_substs_on_one_elem): Split loop to
6428         complete mark_operands_used_in_match_dup on all expressions in the
6429         vector first.
6430         (adjust_operands_numbers): Inline into process_substs_on_one_elem
6431         and remove function.
6432
6433 2016-03-01  Richard Biener  <rguenther@suse.de>
6434
6435         PR middle-end/70022
6436         * fold-const.c (fold_indirect_ref_1): Fix range checking for
6437         vector BIT_FIELD_REF extract.
6438
6439 2016-03-01  Richard Biener  <rguenther@suse.de>
6440
6441         PR tree-optimization/69994
6442         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
6443
6444 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6445
6446         PR tree-optimization/69956
6447         * tree-vect-stmts.c (supportable_widening_operation): Support
6448         multi-step conversion of boolean vectors.
6449         (supportable_narrowing_operation): Likewise.
6450
6451 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6452
6453         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
6454         anymore.
6455
6456 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6457
6458         * config/s390/subst.md (DSI_VI): New mode iterator.
6459         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
6460         * config/s390/vector.md ("vec_set<mode>"): Move expander before
6461         the insn definition.
6462         ("*vec_set<mode>"): Change predicate and add alternative to
6463         support only either register or const_int operands as element
6464         selector.
6465         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
6466         operands.
6467         ("vec_extract<mode>"): New expander.
6468         ("*vec_extract<mode>"): New insn definition supporting reg and
6469         const_int element selectors.
6470         ("*vec_extract<mode>_plus"): New insn definition supporting
6471         reg+const_int element selectors.
6472         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
6473         following expander+insn definition.
6474         ("<vec_shifts_name><mode>3"): New expander.
6475         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
6476
6477 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6478
6479         * config/s390/s390.md ("*tabort_1"): Change predicate to
6480         nonmemory_operand.  Add a second alternative to cover
6481         register as well as const int operands.
6482         ("*tabort_1_plus"): New pattern definition.
6483
6484 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6485
6486         * config/s390/s390.md ("*ashrdi3_cc_31")
6487         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
6488         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
6489         Merge insn definitions into ...
6490         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6491         New pattern definition.
6492         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
6493         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
6494         ("*ashr<mode>3_and"): Merge insn definitions into ...
6495         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6496         New pattern definition.
6497         * config/s390/subst.md ("addr_style_op_cc_subst")
6498         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
6499         substitutions patterns plus attributes.
6500         Add ashiftrt to SUBST iterator.
6501
6502 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6503
6504         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
6505         op2 to nonmemory_operand.
6506         ("*<shift>di3_31", "*<shift>di3_31_and"):
6507         Merge into single pattern definition ...
6508         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
6509         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
6510         pattern definition ...
6511         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
6512         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
6513         iterator.
6514
6515 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6516
6517         * config/s390/predicates.md (const_int_6bitset_operand): New
6518         predicate.
6519         * config/s390/s390.md: Include subst.md.
6520         ("rotl<mode>3"): New expander.
6521         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
6522         ...
6523         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
6524         * config/s390/subst.md: New file.
6525
6526 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6527
6528         * config/s390/s390.md ("op_type", "atype", "length" attributes):
6529         Remove RRR type.  It doesn't really exist.
6530         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
6531         attributes.
6532         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
6533         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
6534         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
6535         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
6536         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
6537         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
6538         `enabled' attribute.
6539
6540 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6541
6542         * gensupport.c (process_substs_on_one_elem): Split loop to
6543         complete mark_operands_used_in_match_dup on all expressions in the
6544         vector first.
6545         (adjust_operands_numbers): Inline into process_substs_on_one_elem
6546         and remove function.
6547
6548 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
6549
6550         PR target/69706
6551         * config/sparc/sparc.c (NWORDS_UP): Rename to...
6552         (CEIL_NWORDS): ...this.  Use CEIL macro.
6553         (compute_fp_layout): Adjust to above renaming.
6554         (function_arg_union_value): Likewise.
6555         (sparc_arg_partial_bytes): Likewise.
6556         (sparc_function_arg_advance): Likewise.
6557
6558 2016-02-29  Jeff Law  <law@redhat.com>
6559
6560         PR tree-optimization/70005
6561         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
6562         where an object with a boolean range is compared against a value
6563         outside [0..1].
6564
6565         PR tree-optimization/69999
6566         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
6567         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
6568         loop cleanups.
6569
6570 2016-02-29  Richard Biener  <rguenther@suse.de>
6571
6572         PR tree-optimization/69994
6573         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
6574         (get_unary_op): Look through nop conversions.
6575         (ops_equal_values_p): New function, look for equality diregarding
6576         nop conversions.
6577         (eliminate_plus_minus_pair): Use ops_equal_values_p
6578         (repropagate_negates): Do not use get_unary_op here.
6579
6580 2016-02-29  Martin Liska  <mliska@suse.cz>
6581
6582         * system.h: Poison ENABLE_CHECKING macro.
6583
6584 2016-02-29  Martin Liska  <mliska@suse.cz>
6585
6586         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
6587         is presented in dump flags.
6588         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6589         (hsa_regalloc): Likewise.
6590
6591 2016-02-19  Richard Biener  <rguenther@suse.de>
6592
6593         PR tree-optimization/69980
6594         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
6595         permutation of those we need to keep.
6596
6597 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
6598
6599         PR target/69706
6600         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
6601         (NWORDS_UP): ...this
6602         (init_cumulative_args): Minor tweaks.
6603         (sparc_promote_function_mode): Likewise.
6604         (scan_record_type): Delete.
6605         (traverse_record_type): New function template.
6606         (classify_data_t): New structure type.
6607         (classify_registers): New inline function.
6608         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
6609         exhausted.  Instantiate traverse_record_type on classify_registers and
6610         deal with the case of a structure passed in slot #15 with no FP field
6611         in the first word.
6612         (assign_data_t): New structure type.
6613         (compute_int_layout): New static function.
6614         (compute_fp_layout): Likewise.
6615         (count_registers): New inline function.
6616         (assign_int_registers): New static function.
6617         (assign_fp_registers): Likewise.
6618         (assign_registers): New inline function.
6619         (function_arg_record_value_1): Delete.
6620         (function_arg_record_value_2): Likewise.
6621         (function_arg_record_value_3): Likewise.
6622         (function_arg_record_value): Adjust to above changes.  Instantiate
6623         traverse_record_type on count_registers to first count the number of
6624         registers to be used and then on assign_registers to assign them.
6625         (function_arg_union_value): Adjust to above renaming.
6626         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
6627         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
6628         case of a structure passed in slot #15
6629         (sparc_function_arg_advance): Likewise.
6630         (function_arg_padding): Minor tweak.
6631
6632 2016-02-29  Richard Biener  <rguenther@suse.de>
6633
6634         PR tree-optimization/69720
6635         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
6636         the adjustment_def path for possibly vectorized defs.
6637         (vect_create_epilog_for_reduction): Handle vectorized initial
6638         defs properly.
6639
6640 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6641
6642         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
6643
6644 2016-02-27  Jeff Law  <law@redhat.com>
6645
6646         Revert
6647         2016-02-26  Richard Biener  <rguenther@suse.de>
6648                     Jeff Law  <law@redhat.com>
6649
6650         PR tree-optimization/69740
6651         * cfghooks.c (remove_edge): Request loop fixups if we delete
6652         an edge that might turn an irreducible loop into a natural
6653         loop.
6654
6655 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
6656
6657         PR rtl-optimization/69896
6658         * tree-vect-generic.c (get_compute_type): Avoid single element
6659         vector types.
6660
6661 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
6662
6663         Rename the AArch64 tuning option and related functions to enable the
6664         Newton series for the reciprocal square root to reflect its
6665         approximative characteristic.
6666
6667         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
6668         function to "aarch64_emit_approx_rsqrt".
6669         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
6670         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
6671         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
6672         (xgene1_tunings): Likewise.
6673         (use_rsqrt_p): Likewise.
6674         (aarch64_emit_swrsqrt): Use new function name.
6675         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
6676         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
6677         text explaining this option.
6678         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
6679
6680 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
6681
6682         PR target/69969
6683         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
6684         complain about -mallow-movmisalign without -mvsx if
6685         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
6686
6687 2016-02-26  Joel Sherrill  <joel@rtems.org>
6688
6689         * config.gcc: Add x86_64-*-rtems*.
6690         * gcc/config/i386/rtems-64.h: New file.
6691
6692 2016-02-26  Joel Sherrill  <joel@rtems.org>
6693
6694         * config.gcc: Add aarch64-*-rtems*.
6695         * gcc/config/aarch64/rtems.h: New file.
6696
6697 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
6698
6699         PR target/69946
6700         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
6701         shift amount using %h.  Add comment.
6702
6703 2016-02-26  Richard Biener  <rguenther@suse.de>
6704             Jeff Law  <law@redhat.com>
6705
6706         PR tree-optimization/69740
6707         * cfghooks.c (remove_edge): Request loop fixups if we delete
6708         an edge that might turn an irreducible loop into a natural
6709         loop.
6710
6711 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6712
6713         PR middle-end/69920
6714         * tree-sra.c (sra_modify_assign): Do not remove loads of
6715         uninitialized aggregates to SSA_NAMEs.
6716
6717 2016-02-26  Richard Henderson  <rth@redhat.com>
6718
6719         PR target/69709
6720         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
6721         pseudo in case the target rtx matches the source of the left
6722         shift.
6723
6724 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6725
6726         PR hsa/69568
6727         * hsa.h (hsa_type_packed_p): Declare.
6728         * hsa.c (hsa_type_packed_p): New function.
6729         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
6730         loads.
6731         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
6732         * hsa-brig.c (emit_basic_insn): Likewise.
6733
6734 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6735
6736         pr hsa/69674
6737         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
6738         pointers.
6739         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
6740
6741 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6742
6743         * hsa.h (is_a_helper): New overload for hsa_op_immed for
6744         hsa_op_with_type operands.
6745         (hsa_unsigned_type_for_type): Declare.
6746         * hsa.c (hsa_unsigned_type_for_type): New function.
6747         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
6748         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
6749         the finalizer.  Do not emit extra move.
6750
6751 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6752
6753         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
6754         atomic operations in private segment.
6755
6756 2016-02-26  Martin Jambor  <mjambor@suse.cz>
6757
6758         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
6759         statements to wi->info.  Also disallow omp simd constructs.
6760         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
6761         for not gridifying.  Dump special string for omp_for.
6762
6763 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6764
6765         PR target/69245
6766         * config/aarch64/aarch64.c (aarch64_set_current_function):
6767         Save/restore target globals when switching to
6768         target_option_default_node.
6769
6770 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6771
6772         PR target/69613
6773         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
6774         Return 0 if !SHIFT_COUNT_TRUNCATED.
6775
6776 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
6777             Eric Botcazou  <ebotcazou@adacore.com>
6778
6779         PR rtl-optimization/69891
6780         * dse.c (scan_insn): If we can't figure out memset arguments
6781         or they are non-constant, call clear_rhs_from_active_local_stores.
6782
6783 2016-02-26  Martin Liska  <mliska@suse.cz>
6784
6785         * doc/extend.texi: Mention clog10, clog10f an clog10l
6786         in Builtins section.
6787
6788 2016-02-26  Martin Liska  <mliska@suse.cz>
6789
6790         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
6791         CHECKING_P.
6792         (resolve_args_picking_1): Likewise.
6793         * dwarf2out.h (struct GTY): Likewise.
6794
6795 2016-02-26  Martin Liska  <mliska@suse.cz>
6796
6797         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
6798         with flag_checking.
6799         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6800
6801 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
6802             Martin Liska  <mliska@suse.cz>
6803
6804         * doc/install.texi: Mention --enable-valgrind-annotations.
6805
6806 2016-02-26  Richard Biener  <rguenther@suse.de>
6807
6808         PR tree-optimization/69551
6809         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
6810         looking through aliases adjust DECL_PT_UID to refer to the
6811         ultimate alias target.
6812
6813 2016-02-25  Martin Liska  <mliska@suse.cz>
6814
6815         PR middle-end/69919
6816         * alloc-pool.c (after_memory_report): New variable.
6817         * alloc-pool.h (base_pool_allocator ::release): Do not use
6818         the infrastructure if after_memory_report.
6819         * toplev.c (toplev::main): Mark after memory report.
6820
6821 2016-02-25  Richard Biener  <rguenther@suse.de>
6822
6823         PR tree-optimization/48795
6824         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
6825
6826 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
6827
6828         PR driver/68463
6829         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
6830         offloading is enabled and -fopenacc or -fopenmp is specified.
6831         (CRTOFFLOADEND): Likewise.
6832         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
6833         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
6834         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
6835         (offload_objects_file_name): New static var.
6836         (tool_cleanup): Remove offload_objects_file_name file.
6837         (find_offloadbeginend): Replace with ...
6838         (find_crtoffloadtable): ... this.
6839         (run_gcc): Remove offload_argc and offload_argv.
6840         Get offload_objects_file_name from -foffload-objects=... option.
6841         Read names of object files with offload from this file, pass them to
6842         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
6843         don't pass offloadbegin and offloadend to the linker.  Don't pass
6844         offload non-LTO files to the linker, because now they're not claimed.
6845
6846 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
6847
6848         PR ipa/69630
6849         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
6850         on builtin_unreachable.
6851
6852 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
6853
6854         PR rtl-optimization/69896
6855         * regcprop.c: Include cfgrtl.h.
6856         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
6857         than remembered mode, either delete it (if noop_move_p), or
6858         treat like copy_p but not noop_p instruction.
6859
6860 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
6861
6862         PR debug/69705
6863         * dwarf2out.c (gen_variable_die): Work around buggy LTO
6864         - allow NULL decl for Fortran DW_TAG_common_block variables.
6865
6866 2016-02-24  Jason Merrill  <jason@redhat.com>
6867
6868         * common.opt (flifetime-dse): Add -flifetime-dse=1.
6869
6870 2016-02-24  Richard Biener  <rguenther@suse.de>
6871             Jakub Jelinek  <jakub@redhat.com>
6872
6873         PR middle-end/69760
6874         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
6875         conditionally executed ops to well-defined overflow behavior.
6876
6877 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
6878
6879         PR middle-end/69915
6880         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
6881         elements.
6882
6883 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6884
6885         PR rtl-optimization/69886
6886         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
6887         argument.  Use it when checking validity of set instructions.
6888         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
6889         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
6890         callsite.
6891         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
6892         * store-motion.c (find_moveable_store): Update
6893         can_assign_to_reg_without_clobbers_p callsite.
6894
6895 2016-02-24  Richard Biener  <rguenther@suse.de>
6896
6897         PR middle-end/68963
6898         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
6899         bogus check.
6900         (record_nonwrapping_iv): Do not fall back to the low/high bound
6901         for non-constant IV bases if the stmt is not always executed.
6902
6903 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6904
6905         * config/arm/arm-cores.def (cortex-a32): New entry.
6906         * config/arm/arm-tables.opt: Regenerate.
6907         * config/arm/arm-tune.md: Regenerate.
6908         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
6909         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
6910         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
6911         for -mcpu and -mtune.
6912
6913 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6914
6915         PR target/69875
6916         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
6917         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
6918         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
6919         (atomic_loaddi_1): Delete.
6920         (atomic_loaddi): Rewrite expander using the above changes.
6921
6922 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
6923
6924         PR c/69918
6925         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
6926         2 to 3.
6927
6928 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
6929             Richard Biener  <rguenth@suse.de>
6930
6931         PR middle-end/69909
6932         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
6933         set_mem_attributes if tem is SSA_NAME which got expanded
6934         as a MEM.
6935
6936 2016-02-24  Richard Biener  <rguenther@suse.de>
6937
6938         PR tree-optimization/69907
6939         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
6940         end of permutations for BB vectorization.
6941
6942 2016-02-24  Christian Bruel  <christian.bruel@st.com>
6943
6944         * config/arm/arm-c.c (arm_option_override): Initialize
6945         target_option_current_node.
6946         * config/arm/arm.c (arm_pragma_target_parse): Replace
6947         build_target_option_node call by target_option_current_node.
6948         Set target_option_current_node.
6949         Fix comments.
6950
6951 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
6952
6953         PR target/69810
6954         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
6955         define_insn_and_split to define_insn.
6956         (zero_extendqi<mode>2_dot2): Same.
6957         (extendqi<mode>2_dot): Same.
6958         (extendqi<mode>2_dot2): Same.
6959
6960 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
6961
6962         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
6963         and add bypass for AES{D,E} and AESMC pairs.
6964         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
6965         and AESMC pairs.
6966
6967 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
6968
6969         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
6970         series for reciprocal square root in Exynos M1.
6971
6972 2016-02-23  Martin Sebor  <msebor@redhat.com>
6973
6974         PR c/69759
6975         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
6976         __builtin_alloca_with_align.
6977
6978 2016-02-23  Richard Henderson  <rth@redhat.com>
6979
6980         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
6981         (ix86_register_pragmas): Remove __seg_tls.
6982         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
6983         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
6984         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
6985         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
6986         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
6987         * doc/extend.texi (__seg_tls): Remove item.
6988
6989 2016-02-23  Richard Biener  <rguenther@suse.de>
6990
6991         * alloc-pool.h (struct allocation_object): Make id member
6992         conditional on CHECKING_P again.
6993         (get_instance): Adjust.
6994         (base_pool_allocator): Likewise.
6995
6996 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
6997
6998         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
6999         (parallelize_loops): In OpenACC kernels mode, set n_threads to
7000         zero.
7001         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
7002         flag_openacc.
7003         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
7004
7005 2016-02-23  Richard Biener  <rguenther@suse.de>
7006
7007         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
7008         * bitmap.h (struct bitmap_usage): Likewise.
7009         (bitmap_move): Declare.
7010         * bitmap.c (register_overhead): Take size_t argument.
7011         (bitmap_move): New function.
7012         * df-problems.c (df_rd_transfer_function): Use bitmap_move
7013         to properly account overhead.
7014         * tree.c (free_node): Use tree_size.
7015
7016 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
7017
7018         PR c++/69902
7019         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
7020         when inverting comparison.
7021
7022         PR c/69900
7023         * common.opt (Wunreachable-code): Add Warning flag.
7024
7025 2016-02-23  Mark Wielaard  <mjw@redhat.com>
7026             Jakub Jelinek  <jakub@redhat.com>
7027
7028         PR c/69911
7029         * cgraphunit.c (check_global_declaration): Check main_input_filename
7030         and DECL_SOURCE_FILE are not NULL.
7031
7032 2016-02-23  Martin Jambor  <mjambor@suse.cz>
7033
7034         PR tree-optimization/69666
7035         * tree-sra.c (sra_modify_assign): Do not attempt to create
7036         default_def replacements for unscalarizable regions.
7037
7038 2016-02-20  Mark Wielaard  <mjw@redhat.com>
7039
7040         PR c/28901
7041         * cgraphunit.c (check_global_declaration): Check level of
7042         warn_unused_const_variable and main_input_filename.
7043         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
7044         (-Wunused-variable): For C implies -Wunused-const-variable=1.
7045         (-Wunused-const-variable): Explain levels 1 and 2.
7046
7047 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
7048
7049         PR target/69888
7050         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
7051         identical arguments.  Formatting and spelling fixes.
7052
7053         PR target/69885
7054         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
7055         be specified.
7056
7057         PR target/69894
7058         PR target/69895
7059         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
7060         and m68k-devices.def.
7061         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
7062         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
7063
7064 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
7065
7066         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
7067         and HImode registers.
7068
7069 2016-02-22  Richard Biener  <rguenther@suse.de>
7070
7071         PR tree-optimization/69882
7072         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
7073         preserve permutations present because of gaps.
7074         (vect_supported_load_permutation_p): Always continue checking
7075         permutations after vect_attempt_slp_rearrange_stmts.
7076
7077 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
7078
7079         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
7080         min_profitable_estimate, rather than min_profitable_iters.
7081
7082 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
7083
7084         PR target/69885
7085         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
7086         SImode for last match_operand.
7087
7088 2016-02-22  Martin Liska  <mliska@suse.cz>
7089
7090         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
7091         return bitsize - 1 as the return value.
7092
7093 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
7094
7095         PR target/69806
7096         PR target/54089
7097         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
7098         Handle negative shift counts.
7099         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
7100         force_reg on the shift constant.
7101         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
7102         (lshrsi3_d): Handle negative shift counts.
7103
7104 2016-02-22  Richard Biener  <rguenther@suse.de>
7105             Tom de Vries  <tom@codesourcery.com>
7106
7107         * graph.c: Include dumpfile.h.
7108         (print_graph_cfg): Split into three overloads.
7109         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
7110
7111 2016-02-22  Tom de Vries  <tom@codesourcery.com>
7112
7113         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
7114         dump-fn.
7115
7116 2016-02-22  Richard Biener  <rguenther@suse.de>
7117
7118         PR ipa/37448
7119         * ipa-inline-transform.c (inline_call): When not updating
7120         overall summaries adjust self size by the growth estimate.
7121         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
7122         hash-set, do not update overall summaries here.  Renamed from ...
7123         (inline_to_all_callers): ... this which is now wrapping the
7124         above and performing delayed overall summary update.
7125         (early_inline_small_functions): Delay updating of the overall
7126         summary.
7127
7128 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7129
7130         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
7131         variable.
7132
7133 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
7134
7135         PR driver/69805
7136         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
7137         :%* in %:gt() argument.
7138         (greater_than_spec_func): Adjust for expecting only numbers,
7139         if there are more than two numbers, compare the last two.
7140
7141 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
7142
7143         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
7144         -Wnarrowing with -std.
7145
7146 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
7147
7148         PR c++/69851
7149         * expr.c (store_field): Don't use bit-field path if exp is
7150         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
7151         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
7152         and the assignment can be performed by bitwise copy.  Formatting
7153         fix.
7154
7155         PR middle-end/69838
7156         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
7157         call copy_reg_eh_region_note_forward on before and/or after sequences
7158         and remove note from insn if it no longer can throw.
7159
7160         PR target/69820
7161         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
7162         if TARGET_AVX512BW.
7163
7164 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7165
7166         * config/s390/vector.md: Add missing commutative operand markers
7167         to the patterns which qualify for one.
7168         * config/s390/vx-builtins.md: Likewise.
7169
7170 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7171
7172         * config/s390/vector.md (VI, VI_QHS): Add single element vector
7173         types to mode iterators.
7174         (vec_double): ... and mode attribute.
7175         * config/s390/vx-builtins.md (non_vec_int): Likewise.
7176
7177 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7178
7179         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
7180         Change the predicate of op2 from nonimmediate to general and let
7181         reload fix it if necessary.
7182
7183 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7184
7185         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
7186
7187 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7188
7189         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
7190         mode.
7191
7192 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7193
7194         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
7195         * config/s390/s390.c (s390_expand_vec_movstr): New function.
7196         * config/s390/s390.md ("movstr<P:mode>"): Call
7197         s390_expand_vec_movstr.
7198
7199 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7200
7201         * config/s390/s390.md: Add missing output modifier for operand 1
7202         to print it as address properly.
7203
7204 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7205
7206         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
7207         * config/s390/2964.md: New file.
7208         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
7209         of insn grouping attributes depending on the CPU level.
7210         (s390_get_unit_mask): New function.
7211         (s390_sched_score): Remove the OOO from the scheduling macros.
7212         Add loop to calculate a score for the instruction mix.
7213         (s390_sched_reorder): Likewise plus improve debug output.
7214         (s390_sched_variable_issue): Rename macros as above.  Calculate
7215         the unit distances after actually scheduling an insn.  Improve
7216         debug output.
7217         (s390_sched_init): Clear last_scheduled_unit_distance array.
7218         * config/s390/s390.md: Include 2964.md.
7219
7220 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
7221
7222         PR target/69671
7223         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
7224         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
7225         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
7226         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
7227         *avx512f_<code>v8div16qi2_mask_1): New insns.
7228
7229 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7230
7231         PR target/68404
7232         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
7233         2016-02-09 change.
7234
7235         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
7236         earlyclobber from target.  Use wF constraint for fused memory
7237         address.
7238         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
7239
7240 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
7241             Martin Liska  <mliska@suse.cz>
7242
7243         PR sanitizer/69863
7244         * cfgexpand.c (asan_sanitize_stack_p): New function.
7245         (partition_stack_vars): Use the function.
7246         (expand_stack_vars): Likewise.
7247         (defer_stack_allocation): Likewise.
7248         (expand_used_vars): Likewise.
7249
7250 2016-02-18  Richard Biener  <rguenther@suse.de>
7251
7252         PR middle-end/69553
7253         * fold-const.c (operand_equal_p): Properly compare offsets for
7254         IMAGPART_EXPR and ARRAY_REF.
7255
7256 2016-02-18  Nick Clifton  <nickc@redhat.com>
7257
7258         PR target/62254
7259         PR target/69610
7260         * config/arm/arm.c (arm_option_override_internal): Disable
7261         interworking if the target does not support thumb instructions.
7262         (arm_reload_in_hi): Handle the case where a register to register
7263         move needs reloading because there is no simple pattern to handle
7264         it.
7265         (arm_reload_out_hi): Likewise.
7266
7267 2016-02-18  Richard Biener  <rguenther@suse.de>
7268
7269         PR middle-end/69854
7270         * match.pd: Don't use fold_binary or fold_unary for folding
7271         constants.
7272
7273 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
7274
7275         PR c++/69850
7276         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
7277         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
7278         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
7279         warn on gimple_no_warning_p statements.
7280
7281 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
7282
7283         * doc/extend.texi (C++ Attributes): Correct description of
7284         warn_unused type attribute.
7285
7286 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7287
7288         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
7289         correct instruction.
7290
7291 2016-02-17  Richard Biener  <rguenther@suse.de>
7292
7293         PR rtl-optimization/69609
7294         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
7295         (find_traces_1_round): When ending a trace update cached priority
7296         of successors.
7297         (bb_to_key): Use cached priority when available.
7298         (copy_bb): Initialize cached priority.
7299         (reorder_basic_blocks_software_trace_cache): Likewise.
7300
7301 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7302
7303         PR target/69161
7304         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
7305         New predicate.
7306         (aarch64_comparison_operator): Break overly long line into two.
7307         (aarch64_comparison_operation): Likewise.
7308         * config/aarch64/aarch64.md (cstorecc4): Use
7309         aarch64_comparison_operator_mode instead of
7310         aarch64_comparison_operator.
7311         (cstore<mode>4): Likewise.
7312         (aarch64_cstore<mode>): Likewise.
7313         (*cstoresi_insn_uxtw): Likewise.
7314         (cstore<mode>_neg): Likewise.
7315         (*cstoresi_neg_uxtw): Likewise.
7316
7317 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7318
7319         PR target/69161
7320         * config/arm/predicates.md (arm_comparison_operator_mode):
7321         New predicate.
7322         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
7323         instead of arm_comparison_operator.
7324         (*mov_negscc): Likewise.
7325         (*mov_notscc): Likewise.
7326         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
7327         (*thumb2_mov_negscc): Likewise.
7328         (*thumb2_mov_negscc_strict_it): Likewise.
7329         (*thumb2_mov_notscc): Likewise.
7330         (*thumb2_mov_notscc_strict_it): Likewise.
7331
7332 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
7333
7334         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
7335         Add missing return.
7336
7337 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
7338
7339         * config/visium/visium.c (machine_libfunc_index): New enum.
7340         (machine_libfuncs): New structure.
7341         (visium_libfuncs): New static variable.
7342         (TARGET_INIT_LIBFUNCS): Define to...
7343         (visium_init_libfuncs): ...this.  New function.
7344         (expand_block_move_4): Use the appropriate libfunc.
7345         (expand_block_move_2): Likewise.
7346         (expand_block_move_1): Likewise.
7347         (expand_block_set_4): Likewise.
7348         (expand_block_set_2): Likewise.
7349         (expand_block_set_1): Likewise.
7350         (visium_trampoline_init): Likewise.
7351
7352 2016-02-17  Nick Clifton  <nickc@redhat.com>
7353
7354         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
7355         TI's devices.csv file as of March 2016.
7356
7357 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7358
7359         PR Target/48344
7360         * opts-global.c (handle_common_deferred_options): Introduce and
7361         initialize two global variables to remember command-line options
7362         specifying a stack-limiting register.
7363         * opts.h: Add extern declarations of the two new global variables.
7364         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
7365         variable based on the values of the two new global variables.
7366
7367 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7368
7369         PR c/69835
7370         * common.opt (Wnonnull-compare): New warning.
7371         * doc/invoke.texi (-Wnonnull): Remove text about comparison
7372         of arguments against NULL.
7373         (-Wnonnull-compare): Document.
7374         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
7375         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
7376         * passes.def (pass_warn_nonnull_compare): Add.
7377         * gimple-ssa-nonnull-compare.c: New file.
7378
7379 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7380
7381         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
7382         AARCH64_EXTRA_TUNE_RECIP_SQRT.
7383
7384 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7385
7386         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
7387         reciprocal sqrt for -mlow-precision-recip-sqrt.
7388
7389 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7390             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7391
7392         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
7393         always use lane loads to construct non-constant vectors.
7394
7395 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7396
7397         * config/aarch64/aarch64.md
7398         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
7399         constraints for operand 3.
7400         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
7401
7402 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7403             Richard Biener  <rguenther@suse.de>
7404
7405         PR tree-optimization/69820
7406         * tree-vect-patterns.c (type_conversion_p): Return false if
7407         *orig_type is unsigned single precision or boolean.
7408         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
7409         Formatting fix.
7410
7411 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7412
7413         PR rtl-optimization/69764
7414         PR rtl-optimization/69771
7415         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
7416         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
7417
7418 2016-02-16  Richard Biener  <rguenther@suse.de>
7419
7420         PR tree-optimization/69776
7421         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
7422         sets from caller.
7423         (indirect_refs_may_alias_p): Likewise.
7424         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
7425         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
7426         according to tbaa_p.
7427         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
7428         (optimize_stmt): For redundant store discovery do not allow tbaa.
7429
7430 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
7431
7432         PR tree-optimization/69714
7433         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
7434         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
7435
7436 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
7437
7438         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
7439         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
7440         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
7441         * config/arc/arc.c (arc_init): Check FPU options.
7442         (get_arc_condition_code): Handle new CC_FPU* modes.
7443         (arc_select_cc_mode): Likewise.
7444         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
7445         register pair only. Allow access for ARCv2 accumulator.
7446         (gen_compare_reg): Whenever we have FPU support use FPU compare
7447         instructions.
7448         (arc_reorg): Don't generate brcc insns when FPU compare
7449         instructions are involved.
7450         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
7451         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
7452         floating point emulation.
7453         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
7454         (REVERSE_CONDITION): Add new CC_FPU* modes.
7455         (TARGET_FP_SP_BASE): Define.
7456         (TARGET_FP_DP_BASE): Likewise.
7457         (TARGET_FP_SP_FUSED): Likewise.
7458         (TARGET_FP_DP_FUSED): Likewise.
7459         (TARGET_FP_SP_CONV): Likewise.
7460         (TARGET_FP_DP_CONV): Likewise.
7461         (TARGET_FP_SP_SQRT): Likewise.
7462         (TARGET_FP_DP_SQRT): Likewise.
7463         (TARGET_FP_DP_AX): Likewise.
7464         * config/arc/arc.md (ARCV2_ACC): New constant.
7465         (type): New fpu type attribute.
7466         (SDF): Conditional iterator.
7467         (cstore<mode>, cbranch<mode>): Change expand condition.
7468         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
7469         handles FPU/FPX cases as well.
7470         * config/arc/arc.opt (mfpu): New option.
7471         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
7472         Renamed.
7473         (adddf3, muldf3, subdf3): Removed.
7474         * config/arc/predicates.md (proper_comparison_operator): Recognize
7475         CC_FPU* modes.
7476         * config/arc/fpu.md: New file.
7477         * doc/invoke.texi (ARC Options): Document mfpu option.
7478
7479 2016-02-16  Richard Biener  <rguenther@suse.de>
7480
7481         PR rtl-optimization/69291
7482         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
7483         noce_operand_ok check.
7484
7485 2016-02-16  Tom de Vries  <tom@codesourcery.com>
7486
7487         PR lto/67709
7488         * omp-low.c (simd_clone_create): Remove call to
7489         symtab->call_cgraph_insertion_hooks.
7490
7491 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7492
7493         PR tree-optimization/69802
7494         * tree-ssa-reassoc.c (update_range_test): If op is
7495         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
7496         op == 1 test of precision 1 integral op, otherwise handle
7497         that case as op itself.  Fix up formatting.
7498         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
7499         up formatting.
7500
7501 2016-02-16  Richard Biener  <rguenther@suse.de>
7502
7503         PR tree-optimization/69586
7504         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
7505         types for conversion sources.
7506
7507 2016-02-16  Richard Biener  <rguenther@suse.de>
7508
7509         PR middle-end/69801
7510         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
7511         mask OEP_ADDRESS_OF.
7512
7513 2016-02-16  Alan Modra  <amodra@gmail.com>
7514
7515         PR target/68973
7516         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
7517         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
7518         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
7519         (p8_mtvsrwz): New.
7520         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
7521         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
7522         (p8_fmrgow_<mode>): Likewise.
7523         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
7524         changes.
7525         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
7526         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
7527         to use movdi_internal64.  Remove op0_di.
7528         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
7529
7530 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
7531
7532         Add support for the FCCMP insn types
7533
7534         * config/aarch64/aarch64.md (fccmp): Change insn type.
7535         (fccmpe): Likewise.
7536         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
7537         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
7538         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
7539         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
7540         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
7541         * config/arm/types.md (fccmps): Add new insn type.
7542         (fccmpd): Likewise.
7543
7544 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7545
7546         * alias.c (get_alias_set): Fix a typo in comment.
7547
7548 2016-02-15  Richard Biener  <rguenther@suse.de>
7549
7550         PR tree-optimization/69595
7551         * match.pd: Complete range test simplification to true.
7552
7553 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
7554
7555         PR rtl-optimization/69648
7556         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
7557         pic_offset_table_rtx.
7558
7559         PR rtl-optimization/69752
7560         * ira.c (update_equiv_regs): When looking for more than a single SET,
7561         also take other side effects into account.
7562
7563 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
7564
7565         * config/s390/s390.c (s390_function_profiler): Add a new sequence
7566         for z900+ CPUs in 31-bit mode.
7567
7568 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
7569
7570         * common/config/s390/s390-common.c (s390_supports_split_stack):
7571         New function.
7572         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
7573         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
7574         * config/s390/s390.c (struct machine_function): New field
7575         split_stack_varargs_pointer.
7576         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
7577         in s390_emit_prologue.
7578         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
7579         vararg pointer.
7580         (morestack_ref): New global.
7581         (SPLIT_STACK_AVAILABLE): New macro.
7582         (s390_expand_split_stack_prologue): New function.
7583         (s390_live_on_entry): New function.
7584         (s390_va_start): Use split-stack vararg pointer if appropriate.
7585         (s390_asm_file_end): Emit the split-stack note sections.
7586         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
7587         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
7588         (UNSPECV_SPLIT_STACK_CALL): New unspec.
7589         (UNSPECV_SPLIT_STACK_DATA): New unspec.
7590         (split_stack_prologue): New expand.
7591         (split_stack_space_check): New expand.
7592         (split_stack_data): New insn.
7593         (split_stack_call): New expand.
7594         (split_stack_call_*): New insn.
7595         (split_stack_cond_call): New expand.
7596         (split_stack_cond_call_*): New insn.
7597
7598 2016-02-15  Richard Biener  <rguenther@suse.de>
7599
7600         PR tree-optimization/69783
7601         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7602         Add trivially correct cases.
7603
7604 2016-02-15  Tom de Vries  <tom@codesourcery.com>
7605
7606         PR lto/69655
7607         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
7608         do_force_output.
7609         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
7610
7611 2016-02-15  Richard Biener  <rguenther@suse.de>
7612
7613         PR tree-optimization/69776
7614         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
7615         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
7616         indicate whether we can use TBAA to disambiguate against stores.
7617         Use alias-set zero if not.
7618         (visit_reference_op_store): Do not use TBAA when looking up
7619         redundant stores.
7620         * tree-ssa-pre.c (compute_avail): Use TBAA here.
7621         (eliminate_dom_walker::before_dom_children): But not when looking
7622         up redundant stores.
7623
7624 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
7625
7626         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
7627
7628 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7629
7630         *  config/i386/znver1.md
7631         (znver1_pop, znver1_pop_mem,
7632         znver1_load_imov_double_store,
7633         znver1_load_imov_direct_store,
7634         znver1_load_imov_direct_load,
7635         znver1_load_imov_double_load): Add new.
7636         (znver1_insn, znver1_insn_load): Add icmov type.
7637         (znver1_sseavx_fma,
7638         znver1_sseavx_fma_load,
7639         znver1_avx256_fma,
7640         znver1_avx256_fma_load): Fix pipe usage.
7641
7642 2016-02-14  Alan Modra  <amodra@gmail.com>
7643
7644         PR target/68973
7645         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
7646         with an invalid hard reg, reload just the reg not the entire
7647         pre/post-inc/dec address expression.
7648
7649 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
7650
7651         PR target/67260
7652         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
7653         fixed R1_REG scratch reg.
7654         (sibcall_value_pcrel_fdpic): Likewise.
7655
7656 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
7657
7658         PR target/67636
7659         PR target/64345
7660         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
7661
7662 2016-02-12  Walter Lee  <walt@tilera.com>
7663
7664         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
7665         * config/tilegx/t-tilegx: Likewise.
7666
7667 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
7668
7669         PR other/69554
7670         * diagnostic-show-locus.c (struct line_span): New struct.
7671         (layout::get_first_line): Delete.
7672         (layout::get_last_line): Delete.
7673         (layout::get_num_line_spans): New member function.
7674         (layout::get_line_span): Likewise.
7675         (layout::print_heading_for_line_span_index_p): Likewise.
7676         (layout::get_expanded_location): Likewise.
7677         (layout::calculate_line_spans): Likewise.
7678         (layout::m_first_line): Delete.
7679         (layout::m_last_line): Delete.
7680         (layout::m_line_spans): New field.
7681         (layout::layout): Update comment.  Replace m_first_line and
7682         m_last_line with m_line_spans, replacing their initialization
7683         with a call to calculate_line_spans.
7684         (diagnostic_show_locus): When printing source lines and
7685         annotations, rather than looping over a single span
7686         of lines, instead loop over each line_span within
7687         the layout, with an inner loop over the lines within them.
7688         Call the context's start_span callback when changing line spans.
7689         * diagnostic.c (diagnostic_initialize): Initialize start_span.
7690         (diagnostic_build_prefix): Break out the building of the location
7691         part of the string into...
7692         (diagnostic_get_location_text): ...this new function, rewriting
7693         it from nested ternary expressions to a sequence of "if"
7694         statements.
7695         (default_diagnostic_start_span_fn): New function.
7696         * diagnostic.h (diagnostic_start_span_fn): New typedef.
7697         (diagnostic_context::start_span): New field.
7698         (default_diagnostic_start_span_fn): New prototype.
7699
7700 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
7701
7702         PR driver/69779
7703         * gcc.c (driver::finalize): Fix cleanup of "specs".
7704
7705 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
7706
7707         PR driver/69265
7708         PR driver/69453
7709         * gcc.c (driver::driver): Initialize m_option_suggestions.
7710         (driver::~driver): Clean up m_option_suggestions.
7711         (suggest_option): Convert to...
7712         (driver::suggest_option): ...this, and split out into
7713         driver::build_option_suggestions and find_closest_string.
7714         (driver::build_option_suggestions): New function, from
7715         first half of suggest_option.  Special-case
7716         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
7717         the sanitizer_opts array.  For options of enum types, add the
7718         various enum values to the candidate strings.
7719         (driver::handle_unrecognized_options): Remove "const".
7720         * gcc.h (driver::handle_unrecognized_options): Likewise.
7721         (driver::build_option_suggestions): New decl.
7722         (driver::suggest_option): New decl.
7723         (driver::m_option_suggestions): New field.
7724         * opts-common.c (add_misspelling_candidates): New function.
7725         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
7726         and make non-static.
7727         * opts.h (sanitizer_opts): New array decl.
7728         (add_misspelling_candidates): New function decl.
7729         * spellcheck.c (find_closest_string): New function.
7730         * spellcheck.h (find_closest_string): New function decl.
7731
7732 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
7733
7734         PR rtl-optimization/69764
7735         PR rtl-optimization/69771
7736         * optabs.c (expand_binop_directly): For shift_optab_p, force
7737         convert_modes with VOIDmode if xop1 has VOIDmode.
7738
7739 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
7740
7741         PR target/69729
7742         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
7743         to correctly determine instrumentation thunks.
7744
7745 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
7746
7747         PR ipa/69241
7748         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
7749         type by reference, force lhs on the call.
7750
7751         PR ipa/68672
7752         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
7753         Compute retval and retbnd early in all cases if split_part_return_p
7754         and return_bb is not EXIT.  Remove all clobber stmts and reset
7755         all debug stmts that refer to SSA_NAMEs defined in split part,
7756         except if it is retval, in that case replace the old retval with the
7757         lhs of the call to the split part.
7758
7759 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
7760
7761         revert:
7762         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
7763
7764         PR middle-end/66726
7765         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
7766         whose result is used in PHI.
7767         (maybe_optimize_range_tests): Likewise.
7768         (final_range_test_p): Likweise.
7769
7770 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
7771
7772         PR middle-end/66726
7773         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
7774         whose result is used in PHI.
7775         (maybe_optimize_range_tests): Likewise.
7776         (final_range_test_p): Likweise.
7777
7778 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
7779
7780         * cgraph.c: Spelling fixes - behaviour -> behavior and
7781         neighbour -> neighbor.
7782         * target.def: Likewise.
7783         * sel-sched.c: Likewise.
7784         * config/mips/mips.c: Likewise.
7785         * config/arc/arc.md: Likewise.
7786         * config/arm/cortex-a57.md: Likewise.
7787         * config/arm/arm.c: Likewise.
7788         * config/arm/neon.md: Likewise.
7789         * config/arm/arm-c.c: Likewise.
7790         * config/vms/vms-c.c: Likewise.
7791         * config/s390/s390.c: Likewise.
7792         * config/i386/znver1.md: Likewise.
7793         * config/i386/i386.c: Likewise.
7794         * config/ia64/hpux-unix2003.h: Likewise.
7795         * config/msp430/msp430.md: Likewise.
7796         * config/rx/rx.c: Likewise.
7797         * config/rx/rx.md: Likewise.
7798         * config/aarch64/aarch64-simd.md: Likewise.
7799         * config/aarch64/aarch64.c: Likewise.
7800         * config/nvptx/nvptx.c: Likewise.
7801         * config/bfin/bfin.c: Likewise.
7802         * config/cris/cris.opt: Likewise.
7803         * config/rs6000/rs6000.c: Likewise.
7804         * target.h: Likewise.
7805         * spellcheck.c: Likewise.
7806         * ira-build.c: Likewise.
7807         * tree-inline.c: Likewise.
7808         * builtins.c: Likewise.
7809         * lra-constraints.c: Likewise.
7810         * explow.c: Likewise.
7811         * hwint.h: Likewise.
7812         * targhooks.c: Likewise.
7813         * tree-vect-data-refs.c: Likewise.
7814         * expr.c: Likewise.
7815         * doc/tm.texi: Likewise.
7816         * doc/extend.texi: Likewise.
7817         * doc/install.texi: Likewise.
7818         * doc/md.texi: Likewise.
7819         * tree-ssa-tail-merge.c: Likewise.
7820         * sched-int.h: Likewise.
7821         * match.pd: Likewise.
7822         * sched-ebb.c: Likewise.
7823         * target.def (omit_struct_return_reg): Likewise.
7824         * gimple-ssa-isolate-paths.c: Likewise.
7825         (find_implicit_erroneous_behaviour): Renamed to...
7826         (find_implicit_erroneous_behavior): ... this.
7827         (find_explicit_erroneous_behaviour): Renamed to...
7828         (find_explicit_erroneous_behavior): ... this.
7829         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
7830
7831 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
7832
7833         PR rtl-optimization/64682
7834         PR rtl-optimization/69567
7835         PR rtl-optimization/69737
7836         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
7837         in I2 as well, just lose it.
7838
7839 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7840
7841         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
7842         New variable.
7843         (aarch64_last_printed_tune_string): Likewise.
7844         (aarch64_declare_function_name): Only output .arch assembler
7845         directive if it will be different from the previously output
7846         directive.  Same for .tune comment but only if -dA is set.
7847         (aarch64_start_file): New function.
7848         (TARGET_ASM_FILE_START): Define.
7849
7850 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
7851
7852         PR plugins/69758
7853         * Makefile.in (PLUGIN_HEADERS): Add params.list.
7854
7855 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
7856
7857         PR target/65313
7858         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
7859         -Wmaybe-uninitialized warning.
7860
7861 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
7862
7863         PR target/69713
7864         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
7865
7866 2016-02-11  Richard Biener  <rguenther@suse.de>
7867
7868         PR rtl-optimization/69291
7869         * ifcvt.c (noce_try_store_flag_constants): Do not allow
7870         subexpressions affected by changing the result.
7871
7872 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
7873
7874         PR target/69148
7875         * lra-constraints.c (curr_insn_transform): Find in/out operands
7876         for secondary memory moves.  Update dups.
7877
7878 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
7879
7880         PR tree-optimization/69652
7881         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
7882         to nested loop, did source re-formatting, skip debug statements,
7883         add check on statement with volatile operand, remove dead scalar
7884         statements.
7885
7886 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
7887             Patrick Palka  <ppalka@gcc.gnu.org>
7888
7889         PR ipa/69241
7890         PR c++/69649
7891         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
7892         calls if the return type is TREE_ADDRESSABLE.
7893         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
7894         * ipa-split.c (split_function): Fix doubled "we" in comment.
7895         Use void return type for the split part even if
7896         !split_point->split_part_set_retval.
7897
7898 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
7899
7900         PR tree-optimization/68021
7901         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
7902         when computing the value of biv cand by itself.
7903
7904 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
7905
7906         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
7907         (cortexa57_tunings): Likewise.
7908         (cortexa72_tunings): Likewise.
7909         (arch_macro_fusion_pair_p): Add support for AES fusion.
7910         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
7911         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
7912         Allow virtual registers before reload so early scheduling works.
7913         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
7914         correct latency and pipeline.
7915         (cortex_a57_crypto_complex): Likewise.
7916         (cortex_a57_crypto_xor): Likewise.
7917         (define_bypass): Add AES bypass.
7918
7919 2016-02-10  Richard Biener  <rguenther@suse.de>
7920
7921         PR tree-optimization/69726
7922         * passes.def: Add DCE pass before late uninit.
7923         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
7924         really fixup if-conversions job.
7925
7926 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
7927
7928         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
7929         (arm_cortex_a57_tune): Likewise.
7930         (aarch_macro_fusion_pair_p): Add support for AES fusion.
7931         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
7932
7933 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
7934
7935         * timevar.def (TV_PHASE_DBGINFO): Delete.
7936         (TV_PHASE_CHECK_DBGINFO): Likewise.
7937         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
7938
7939 2016-02-10  Richard Biener  <rguenther@suse.de>
7940
7941         PR tree-optimization/69719
7942         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7943         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
7944
7945 2016-02-09  Andrew Pinski  <apinski@cavium.com>
7946
7947         PR tree-opt/69282
7948         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
7949         get_vcond_mask_icode returns false.
7950
7951 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
7952
7953         PR target/68404
7954         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
7955         an ADDIS that adds a pointer to a large constant that sets the
7956         upper16 bits with a load operation.
7957
7958 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
7959
7960         PR target/68532
7961         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
7962         order.
7963         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
7964         endian.
7965         (vzipq_s16): Likewise.
7966         (vzipq_s32): Likewise.
7967         (vzipq_f32): Likewise.
7968         (vzipq_u8): Likewise.
7969         (vzipq_u16): Likewise.
7970         (vzipq_u32): Likewise.
7971         (vzipq_p8): Likewise.
7972         (vzipq_p16): Likewise.
7973
7974 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
7975
7976         PR target/68532
7977         * config/arm/arm.c (neon_endian_lane_map): New function.
7978         (neon_vector_pair_endian_lane_map): New function.
7979         (arm_evpc_neon_vuzp): Allow for big endian lane order.
7980         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
7981         endian.
7982         (vuzpq_s16): Likewise.
7983         (vuzpq_s32): Likewise.
7984         (vuzpq_f32): Likewise.
7985         (vuzpq_u8): Likewise.
7986         (vuzpq_u16): Likewise.
7987         (vuzpq_u32): Likewise.
7988         (vuzpq_p8): Likewise.
7989         (vuzpq_p16): Likewise.
7990
7991 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
7992
7993         PR target/69634
7994         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
7995         debug insns.
7996
7997 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
7998
7999         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
8000         truncate const_int operand 1 to QImode.
8001
8002 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
8003
8004         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
8005         corresponding to an abnormal edge.
8006
8007 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8008
8009         PR tree-optimization/69599
8010         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
8011         function.
8012         (find_func_aliases_for_builtin_call, find_func_clobbers)
8013         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
8014         partition.
8015
8016 2016-02-09  Richard Biener  <rguenther@suse.de>
8017
8018         PR tree-optimization/69715
8019         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
8020         LHS on calls as non-rewritable.
8021
8022 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8023
8024         PR lto/69707
8025         * lto-wrapper.c (append_diag_options): New function.
8026         (compile_offload_image): Call append_diag_options.
8027
8028 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
8029
8030         PR other/69722
8031         * doc/extend.texi (Flag Output Operands): Correct sectioning.
8032         Minor copy-edit to fix verb tenses.
8033
8034 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
8035
8036         PR tree-optimization/69209
8037         * ipa-split.c (split_function): If split part is not
8038         returning retval, retval has gimple type but is not
8039         gimple value, force it into a SSA_NAME first.
8040
8041 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
8042
8043         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
8044         outdated section.
8045
8046 2016-02-08  Jason Merrill  <jason@redhat.com>
8047
8048         PR c++/69631
8049         * convert.c (convert_to_integer_1): Check dofold on truncation
8050         distribution.
8051         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
8052         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
8053         Rename from *_nofold.
8054         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
8055         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
8056
8057 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
8058
8059         PR target/60410
8060         * tree.c (build_common_tree_nodes): Remove short_double argument.
8061         All callers changed.
8062         * tree.h (build_common_tree_nodes): Adjust declaration.
8063         * doc/invoke.texi (-fshort-double): Remove documentation.
8064         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8065         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
8066         * lto-wrapper.c (merge_and_complain, append_compiler_options)
8067         (append_linker_options): Don't handle OPT_fshort_double.
8068
8069         PR rtl-optimization/68730
8070         * lra-remat.c (insn_to_cand_activation): New static variable.
8071         (lra_remat): Allocate and free it.
8072         (create_cand): New arg activation. Initialize a field in
8073         insn_to_cand_activation if it is nonnull.
8074         (create_cands): Pass the activation insn to create_cand when making
8075         a candidate involving an output reload.  Reorganize code a little.
8076         (do_remat): Keep track of active status of candidates in a separate
8077         bitmap.
8078
8079 2016-02-08  Richard Biener  <rguenther@suse.de>
8080
8081         PR tree-optimization/69719
8082         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8083         Properly use absolute of the difference of the two offsets to
8084         compare or adjust the segment length.
8085
8086 2016-02-08  Richard Biener  <rguenther@suse.de>
8087             Jeff Law  <law@redhat.com>
8088
8089         PR target/68273
8090         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
8091         types for anonymous SSA names.
8092
8093 2016-02-08   Richard Biener  <rguenther@suse.de>
8094
8095         PR rtl-optimization/69274
8096         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
8097
8098 2016-02-08  Jeff Law  <law@redhat.com>
8099
8100         PR tree-optimization/65917
8101         * tree-ssa-dom.c (record_temporary_equivalences): Record both
8102         equivalences from if (x == y) style conditionals.
8103         (loop_depth_of_name): Remove.
8104         (record_equality): Remove loop depth check.
8105         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
8106         (const_and_copies::record_const_or_copy_raw): New member function.
8107         * tree-ssa-scopedtables.c
8108         (const_and_copies::record_const_or_copy_raw): New, factored out of
8109         (const_and_copies::record_const_or_copy): Call new member function.
8110
8111 2016-02-05  Jeff Law  <law@redhat.com>
8112
8113         PR tree-optimization/68541
8114         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
8115         (count_stmts_in_block): New function.
8116         (poor_ifcvt_candidate_code): Likewise.
8117         (is_feasible_trace): Add some heuristics to determine when path
8118         splitting is profitable.
8119         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
8120         is a diamond with a single exit.
8121
8122 2016-02-05  Martin Sebor  <msebor@redhat.com>
8123
8124         PR c++/69662
8125         * doc/invoke.texi: Update -Wplacement-new to take an optional
8126         argument.
8127
8128 2016-02-06  Richard Henderson  <rth@redhat.com>
8129
8130         PR c/69643
8131         * tree.c (tree_nop_conversion_p): Do not strip casts into or
8132         out of non-standard address spaces.
8133
8134 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
8135
8136         PR rtl-optimization/69691
8137         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
8138
8139 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
8140
8141         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
8142         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
8143         (*ieee128_mfvsrd_64bit): Likewise.
8144         (*ieee128_mfvsrd_32bit): Likewise.
8145
8146 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
8147
8148         PR target/69369
8149         Revert r232560:
8150         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8151
8152         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8153         instrumented_version.
8154
8155 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
8156
8157         * doc/invoke.texi (Optimize Options): In table of --param options
8158         rename second occurrence of tracer-min-branch-ratio to
8159         tracer-min-branch-probability, rename
8160         tracer-min-branch-ratio-feedback to
8161         tracer-min-branch-probability-feedback and clarify description,
8162         rename sched-spec-state-edge-prob-cutoff to
8163         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
8164         to selsched-insns-to-rename, rename lto-minpartition to
8165         lto-min-partition, delete reorder-blocks-duplicate and
8166         reorder-blocks-duplicate-feedback.
8167
8168 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8169
8170         * config/s390/s390.c (s390_register_info_set_ranges): Remove
8171         superfluous loops.
8172
8173 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8174
8175         * doc/extend.texi: S/390: Correct some typos.
8176
8177 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8178
8179         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
8180
8181 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8182
8183         PR target/69625
8184         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
8185         (s390_register_info_gprtofpr): Use new macros above.
8186         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
8187         its name.
8188         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
8189         its name.  Adjust restore and save gpr ranges.
8190         (s390_register_info_set_ranges): New function.
8191         (s390_register_info): Use new macros above.  Call
8192         s390_register_info_set_ranges.
8193         (s390_optimize_register_info): Likewise.
8194         (s390_hard_regno_rename_ok): Use new macros.
8195         (s390_hard_regno_scratch_ok): Likewise.
8196         (s390_emit_epilogue): Likewise.
8197         (s390_can_use_return_insn): Likewise.
8198         (s390_optimize_prologue): Likewise.
8199         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
8200
8201 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
8202
8203         PR bootstrap/69677
8204         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
8205         alignment fixes.
8206         (ix86_option_override_internal): Disable TARGET_STV even for
8207         -m{incoming,preferred}-stack-boundary=3.
8208
8209 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8210
8211         * config.gcc: Mark deprecated rtems targets as obsolete.
8212
8213 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
8214
8215         PR rtl-optimization/64682
8216         PR rtl-optimization/69567
8217         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
8218         before I2 only if the register is both used and set in I2.
8219
8220 2016-02-04  DJ Delorie  <dj@redhat.com>
8221
8222         * config/msp430/msp430.c (msp430_start_function): Add function type.
8223
8224 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
8225
8226         PR fortran/69368
8227         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
8228
8229 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
8230
8231         PR rtl-optimization/69577
8232         Revert:
8233         2015-10-29  Richard Henderson  <rth@redhat.com>
8234
8235         PR target/68124
8236         PR rtl-opt/67609
8237         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8238         sse check to the exact conditions of PR 67609.
8239
8240 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
8241
8242         PR target/69667
8243         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
8244         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
8245         not allowed into the traditional Altivec registers.
8246         (movtd_64bit_nodm): Likewise.
8247         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
8248
8249 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
8250
8251         * config/aarch64/cortex-a57-fma-steering.c
8252         (aarch64_register_fma_steering): Remove "static" from arguments
8253         to register_pass.
8254
8255 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
8256
8257         PR target/69619
8258         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
8259         twice when complex.
8260
8261 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
8262
8263         * doc/invoke.texi: Delete -mno-fma4.
8264
8265 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
8266
8267         PR rtl-optimization/69577
8268         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
8269         (find_subregs_of_mode): Update accordingly.  Iterate over partial
8270         definitions.
8271
8272 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
8273
8274         * config/arm/arm-protos.h (neon_reinterpret): Remove.
8275         * config/arm/arm.c (neon_reinterpret): Remove.
8276         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
8277         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
8278         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
8279         vreinterpretti): Remove.
8280         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
8281         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8282         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
8283         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
8284         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
8285         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
8286         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
8287         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
8288         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
8289         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
8290         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
8291         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
8292         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
8293         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
8294         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
8295         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
8296         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
8297         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
8298         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
8299         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
8300         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
8301         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
8302         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
8303         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
8304         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
8305         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
8306         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
8307         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
8308         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
8309         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
8310         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
8311         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
8312         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
8313         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
8314         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
8315         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
8316         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
8317         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
8318         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
8319         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
8320         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
8321         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
8322         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
8323         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
8324         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
8325         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
8326         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
8327         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
8328         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
8329         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
8330         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
8331         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
8332         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
8333         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
8334         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
8335         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
8336         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
8337         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
8338         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
8339         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
8340         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
8341         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
8342         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
8343         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
8344         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
8345         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
8346         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
8347         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
8348         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
8349         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
8350         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
8351         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
8352         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
8353         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
8354         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
8355         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
8356         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
8357         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
8358         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
8359         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
8360         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
8361         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
8362         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
8363         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
8364         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
8365         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
8366         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
8367         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
8368         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
8369         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
8370         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
8371         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
8372         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
8373         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
8374         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
8375         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
8376         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
8377         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
8378         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
8379         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
8380         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
8381         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
8382         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
8383
8384 2016-02-04  Martin Liska  <mliska@suse.cz>
8385
8386         PR sanitizer/69276
8387         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
8388         that are gimple_store_p.
8389         (maybe_instrument_call): Likewise.
8390
8391 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
8392
8393         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
8394         register scaling out of memory reference and comment why.
8395
8396 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8397
8398         PR target/65932
8399         PR target/67714
8400         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
8401         folding the source of a SET.
8402
8403 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8404
8405         PR target/65932
8406         PR target/67714
8407         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
8408         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
8409
8410 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
8411
8412         PR target/65932
8413         PR target/67714
8414         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
8415         HImode.
8416
8417 2016-02-04  Christian Bruel  <christian.bruel@st.com>
8418
8419         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
8420         * config/arm/arm.c (arm_set_current_function): Likewise.
8421
8422 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
8423             Ilya Enkovich  <enkovich.gnu@gmail.com>
8424             H.J. Lu  <hongjiu.lu@intel.com>
8425
8426         PR target/69454
8427         * config/i386/i386.c (convert_scalars_to_vector): Remove
8428         stack alignment fixes.
8429         (ix86_option_override_internal): Disable TARGET_STV if stack
8430         might not be aligned enough.
8431         (ix86_minimum_alignment): Assert that TARGET_STV is false.
8432
8433 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
8434
8435         * gcc/config/i386/x86-tune.def: Disable default prefetching
8436         for -march=znver1.
8437
8438 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8439             Vladimir Makarov  <vmakarov@redhat.com>
8440
8441         PR target/69461
8442         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
8443         in validating fused toc addresses.
8444
8445 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
8446
8447         PR c/69627
8448         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
8449         range->m_caret fields if range->m_show_caret_p is false.
8450
8451         PR target/69644
8452         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8453         Force oldval into register if it does not satisfy reg_or_short_operand
8454         predicate.  Fix up formatting.
8455
8456 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
8457             Alexandre Oliva  <aoliva@redhat.com>
8458
8459         PR target/69461
8460         * lra-constraints.c (simplify_operand_subreg): Check additionally
8461         address validity after potential reloading.
8462         (process_address_1): Check insns validity.  In case of failure do
8463         nothing.
8464
8465 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
8466
8467         PR target/69118
8468         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
8469         Fix target.
8470
8471 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
8472
8473         * wide-int.cc (canonize_uhwi): New function.
8474         (wi::divmod_internal): Use it.
8475
8476 2016-02-02  James Norris  <jnorris@codesourcery.com
8477
8478         * gimplify.c (omp_notice_variable): Add usage check.
8479
8480 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8481
8482         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
8483         like LE, GE, LT, GT when emitting relational operator.
8484
8485 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
8486
8487         * ira-costs.c (find_costs_and_classes): Add extra argument.
8488         * target.def (ira_change_pseudo_allocno_class): Add parameter.
8489         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
8490         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
8491         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
8492         Add best_class parameter, and return it if not ALL_REGS.
8493         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
8494         Add parameter.
8495         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
8496         Update target hook.
8497
8498 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
8499
8500         * config/aarch64/aarch64.c
8501         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
8502         (aarch64_ira_change_pseudo_allocno_class): New function.
8503
8504 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
8505
8506         PR target/67032
8507         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
8508
8509 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8510
8511         * config/avr/avr.c (avr_option_override): Set
8512         PARAM_ALLOW_STORE_DATA_RACES to 1.
8513
8514 2016-02-02  Richard Biener  <rguenther@suse.de>
8515
8516         PR tree-optimization/69595
8517         * match.pd: Add range test simplifications to true/false.
8518
8519 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
8520
8521         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
8522         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
8523         instead.
8524
8525 2016-02-02  Richard Biener  <rguenther@suse.de>
8526
8527         PR tree-optimization/69606
8528         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
8529         info on the result before moving a stmt.
8530
8531 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
8532
8533         PR middle-end/68542
8534         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
8535         branch with vector comparison.
8536         * config/i386/sse.md (VI48_AVX): New mode iterator.
8537         (define_expand "cbranch<mode>4): Add support for conditional branch
8538         with vector comparison.
8539         * tree-vect-loop.c (optimize_mask_stores): New function.
8540         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
8541         has_mask_store field of vect_info.
8542         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
8543         vectorized loops having masked stores after vec_info destroy.
8544         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
8545         correspondent macros.
8546         (optimize_mask_stores): Add prototype.
8547
8548 2016-02-02  Alan Modra  <amodra@gmail.com>
8549
8550         PR target/69548
8551         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
8552         allow subregs.
8553
8554 2016-02-02  Alan Modra  <amodra@gmail.com>
8555
8556         PR target/68662
8557         * config/rs6000/rs6000.c (need_toc_init): New var, set it
8558         whenever toc_label_name used.
8559         (rs6000_file_start): Don't set up toc section here,
8560         (rs6000_output_function_epilogue): do so here instead,
8561         (rs6000_xcoff_file_start): and here.
8562         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
8563         (load_toc_aix_di): Likewise.
8564
8565 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8566
8567         PR rtl-optimization/69592
8568         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
8569         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
8570         (num_sign_bit_copies_binary_arith_p): New inline function.
8571         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
8572
8573 2016-02-01  Jeff Law  <law@redhat.com>
8574
8575         PR tree-optimization/69580
8576         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
8577         * tree-ssa-threadbackward.c
8578         (fsm_find_control_statement_thread_paths): Do not try to walk
8579         through large PHI nodes.
8580
8581 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8582
8583         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
8584         when count is incremented above limit, don't analyze further
8585         insns afterwards.
8586
8587         * omp-low.c (oacc_parse_default_dims): Avoid
8588         -Wsign-compare warning, make sure value fits into int
8589         rather than just unsigned int.
8590
8591 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
8592
8593         PR tree-optimization/67921
8594         * fold-const.c (split_tree): New parameters.  Convert pointer
8595         type variable part to proper type before negating.
8596         (fold_binary_loc): Pass new arguments to split_tree.
8597
8598 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
8599
8600         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
8601         (nvptx_goacc_validate_dims): Extend to handle global defaults.
8602         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
8603         * doc/tm.texti: Rebuilt.
8604         * doc/invoke.texi (fopenacc-dim): Document.
8605         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
8606         (append_compiler_options): Likewise.
8607         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
8608         (oacc_parse_default_dims): New.
8609         (oacc_validate_dims): Add USED arg.  Select non-unity default when
8610         possible.
8611         (oacc_loop_fixed_partitions): Return mask of used partitions.
8612         (oacc_loop_auto_partitions): Emit dump info.
8613         (oacc_loop_partition): Return mask of used partitions.
8614         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
8615         loop partitioning and validation calls.
8616
8617 2016-02-01  Richard Biener  <rguenther@suse.de>
8618
8619         PR middle-end/69556
8620         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
8621
8622 2016-02-01  Richard Biener  <rguenther@suse.de>
8623
8624         PR tree-optimization/69574
8625         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
8626         of asserting return chrec_dont_know.
8627
8628 2016-02-01  Martin Liska  <mliska@suse.cz>
8629
8630         * mem-stats-traits.h: Add copyright header.
8631         * mem-stats.h: Likewise.
8632
8633 2016-02-01  Richard Biener  <rguenther@suse.de>
8634
8635         PR tree-optimization/69579
8636         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
8637         Do not propagate through abnormal PHI results.
8638
8639 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
8640
8641         * postreload.c (reload_cse_simplify): Remove dead code.
8642
8643 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8644
8645         PR rtl-optimization/69570
8646         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
8647         if there is more than one set, not if there is a single set.
8648
8649 2016-02-01  Richard Henderson  <rth@redhat.com>
8650
8651         PR rtl-opt/69535
8652         * combine.c (make_compound_operation): When looking through a
8653         subreg, make sure to re-extend to the width of the outer mode.
8654
8655 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
8656
8657         PR tree-optimization/69546
8658         * wide-int.cc (wi::divmod_internal): For unsigned division
8659         where both operands fit into uhwi, if o1 is 1 and o0 has
8660         msb set, if divident_prec is larger than bits per hwi,
8661         clear another quotient word and return 2 instead of 1.
8662         Similarly for remainder with msb in HWI set, if dividend_prec
8663         is larger than bits per hwi.
8664
8665 2016-01-29  Martin Jambor  <mjambor@suse.cz>
8666
8667         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
8668         Use short lowercase names.
8669         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
8670         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
8671         acq_rel one.  Protect warning agains segfaults if
8672         get_memory_order_name returns NULL.
8673         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
8674         with release semantics.  Do not warn if get_memory_order already did.
8675         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
8676         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
8677         if get_memory_order already did.
8678
8679 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
8680
8681         * doc/install.texi: Document that isl-0.16 is supported.
8682
8683 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
8684
8685         PR target/69299
8686         * config/i386/constraints.md (Bm): Describe as special memory
8687         constraint.
8688         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
8689         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8690         * genpreds.c (struct constraint_data): Add is_special_memory.
8691         (have_special_memory_constraints, special_memory_start): New
8692         static vars.
8693         (special_memory_end): Ditto.
8694         (add_constraint): Add new arg is_special_memory.  Add code to
8695         process its true value.  Update have_special_memory_constraints.
8696         (process_define_constraint): Pass the new arg.
8697         (process_define_register_constraint): Ditto.
8698         (choose_enum_order): Process special memory.
8699         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
8700         function insn_extra_special_memory_constraint.
8701         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8702         * gensupport.c (process_rtx): Process
8703         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
8704         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
8705         * ira-lives.c (single_reg_class): Use
8706         insn_extra_special_memory_constraint.
8707         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
8708         * lra-constraints.c (process_alt_operands): Ditto.
8709         (curr_insn_transform): Use insn_extra_special_memory_constraint.
8710         * recog.c (asm_operand_ok, preprocess_constraints): Process
8711         CT_SPECIAL_MEMORY.
8712         * reload.c (find_reloads): Ditto.
8713         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
8714         * stmt.c (parse_input_constraint): Use
8715         insn_extra_special_memory_constraint.
8716
8717 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8718
8719         PR target/69530
8720         * lra-splill.c (lra_final_code_change): Revert r229087 by
8721         removing all sub-registers.
8722
8723 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
8724
8725         PR target/65604
8726         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
8727
8728 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
8729
8730         PR target/69551
8731         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
8732         SSE1, copy target into the temporary reg first before recursing
8733         on it.
8734
8735 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8736
8737         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
8738         with vm.
8739
8740 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
8741
8742         * ginclude/stdarg.h: Test __cplusplus instead of
8743         __GXX_EXPERIMENTAL_CXX0X__.
8744
8745 2016-01-29  Richard Biener  <rguenther@suse.de>
8746
8747         PR tree-optimization/69547
8748         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
8749         Do not mark clobbers necessary.
8750         (mark_all_reaching_defs_necessary_1): Likewise.
8751
8752 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8753
8754         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
8755         declaration name with %qs and print it in both error messages.
8756         Also fix indentation.
8757
8758 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8759
8760         PR other/69006
8761         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
8762         trailing blank line from error message.
8763
8764 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
8765
8766         PR c++/69462
8767         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
8768         for C++-11.
8769
8770 2016-01-29  Richard Biener  <rguenther@suse.de>
8771
8772         PR middle-end/69537
8773         * match.pd: Allow all integral types when simplifying a
8774         widening or sign-changing conversion.
8775
8776 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
8777
8778         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
8779         back to setting codegen_error to fail codegen.
8780
8781 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
8782
8783         PR target/69459
8784         * config/i386/constraints.md (C): Only accept constant zero operand.
8785         (BC): New constraint.
8786         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
8787         instead of C constraint.
8788         * doc/md.texi (Machine Constraints): Update description
8789         of C constraint.
8790
8791 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
8792
8793         PR target/68400
8794         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
8795
8796 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
8797
8798         PR middle-end/69542
8799         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
8800         non-debug insns.
8801
8802 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
8803
8804         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
8805         branches if using guessed profile.
8806
8807 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
8808
8809         * graphite-optimize-isl.c (optimize_isl): Fix dump.
8810
8811 2016-01-28  Richard Henderson  <rth@redhat.com>
8812
8813         PR target/69305
8814         * config/aarch64/aarch64-modes.def (CC_Cmode): New
8815         * config/aarch64/aarch64-protos.h: Update.
8816         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
8817         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
8818         (aarch64_get_condition_code_1): Handle CC_Cmode.
8819         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
8820         (*add<mode>3_compareC_cconly_imm): New.
8821         (*add<mode>3_compareC_cconly): New.
8822         (*add<mode>3_compareC_imm): New.
8823         (add<mode>3_compareC): New.
8824         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
8825         to be first.  Use aarch64_carry_operation.
8826         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
8827         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
8828         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
8829         (subti3): Use subdi3_compare1.
8830         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
8831         (sub<mode>3_compare1): New.
8832         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
8833         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
8834         (*subsi3_carryin_uxtw): Likewise.
8835         (*ngc<mode>, *ngcsi_uxtw): Likewise.
8836         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
8837         * config/aarch64/iterators.md (DWI): New.
8838         * config/aarch64/predicates.md (aarch64_carry_operation): New.
8839         (aarch64_borrow_operation): New.
8840
8841 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
8842
8843         * graphite-optimize-isl.c (optimize_isl): Print a different debug
8844         message when isl does not return a valid schedule.
8845
8846 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
8847
8848         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8849         Remove comments from class declarations: they are already in the code
8850         close by the defs.
8851
8852 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
8853
8854         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
8855         codegen_error_p.
8856         (ternary_op_to_tree): Same.
8857         (unary_op_to_tree): Same.
8858         (nary_op_to_tree): Same.
8859         (gcc_expression_from_isl_expr_op): Same.
8860         (gcc_expression_from_isl_expression): Same.
8861         (graphite_create_new_loop): Same.
8862         (graphite_create_new_loop_guard): Same.
8863         (build_iv_mapping): Same.
8864         (graphite_create_new_guard): Same.
8865         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
8866         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
8867
8868 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
8869
8870         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
8871         instead of setting codegen_error to fail codegen.
8872
8873 2016-01-28  Jason Merrill  <jason@redhat.com>
8874
8875         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
8876
8877 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
8878
8879         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8880         Remove CONST_INT_P check in CCMP cost calculation.
8881
8882 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
8883
8884         * config/aarch64/aarch64.c (generic_vector_cost):
8885         Set vec_permute_cost.
8886         (cortexa57_vector_cost): Likewise.
8887         (exynosm1_vector_cost): Likewise.
8888         (xgene1_vector_cost): Likewise.
8889         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
8890         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
8891         Add vec_permute_cost entry.
8892
8893 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
8894
8895         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
8896         immediate as %1.
8897         (add<mode>3_compare0): Likewise.
8898         (addsi3_compare0_uxtw): Likewise.
8899         (add<mode>3nr_compare0): Likewise.
8900         (compare_neg<mode>): Likewise.
8901         (<optab><mode>3): Likewise.
8902
8903 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
8904
8905         * tree-vect-stmts.c (vectorizable_comparison): Add
8906         NULL check for vectype.
8907
8908 2016-01-28  Richard Biener  <rguenther@suse.de>
8909
8910         PR tree-optimization/69466
8911         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
8912         Account for PHIs we couldn't duplicate.
8913
8914 2016-01-28  Martin Liska  <mliska@suse.cz>
8915
8916         PR pch/68758
8917         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
8918         instead of ENABLE_VALGRIND_CHECKING.
8919
8920 2016-01-27  Richard Henderson  <rth@redhat.com>
8921
8922         PR rtl-opt/69447
8923         * lra-remat.c (subreg_regs): New.
8924         (dump_candidates_and_remat_bb_data): Dump it.
8925         (operand_to_remat): Reject if operand in subreg_regs.
8926         (set_bb_regs): Collect subreg_regs.
8927         (lra_remat): Init and free subreg_regs.  Compute
8928         calculate_local_reg_remat_bb_data before create_cands.
8929
8930 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
8931
8932         PR target/68986
8933         * config/i386/i386.c (ix86_update_stack_boundary): Don't
8934         change stack_alignment_needed for __tls_get_addr call.
8935
8936 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
8937
8938         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
8939
8940 2016-01-27  Jeff Law  <law@redhat.com>
8941
8942         PR tree-optimization/68398
8943         PR tree-optimization/69196
8944         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
8945         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
8946         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8947         Only count PHIs in the last block in the path.  The others will
8948         const/copy propagate away.  Add heuristic to allow more irreducible
8949         subloops to be created when it is likely profitable to do so.
8950
8951         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8952         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
8953         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
8954
8955 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
8956
8957         PR lto/69254
8958         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
8959         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
8960         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
8961         * tree-streamer-in.c: Include asan.h.
8962         (streamer_get_builtin_tree): For builtins in sanitizer
8963         range call initialize_sanitizer_builtins and retry.
8964
8965 2016-01-27  Ian Lance Taylor  <iant@google.com>
8966
8967         * common.opt (fkeep-gc-roots-live): New undocumented option.
8968         * tree-ssa-loop-ivopts.c (add_candidate_1): If
8969         -fkeep-gc-roots-live, skip pointers.
8970         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
8971         NULL.
8972
8973 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
8974
8975         PR target/69512
8976         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
8977         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
8978
8979 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
8980
8981         PR target/68380
8982         * configure.ac: NetBSD provides SSP in its C library.
8983         * configure: Updated.
8984
8985 2016-01-27  Richard Biener  <rguenther@suse.de>
8986
8987         PR tree-optimization/69166
8988         * tree-vect-loop.c (vect_is_simple_reduction): Always check
8989         reduction code for commutativity / associativity.
8990
8991 2016-01-27  Martin Jambor  <mjambor@suse.cz>
8992
8993         PR tree-optimization/69355
8994         * tree-sra.c (analyze_access_subtree): Correct hole detection when
8995         total_scalarization fails.
8996
8997 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
8998
8999         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
9000         power9.
9001
9002 2016-01-27  Christian Bruel  <christian.bruel@st.com>
9003
9004         PR target/69245
9005         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
9006         Move arm_reset_previous_fndecl and set_target_option_current_node in
9007         the conditional part.  Call save_restore_target_globals.
9008         * config/arm/arm.c (arm_set_current_function):
9009         Refactor to better support #pragma target and attribute mix.
9010         Call save_restore_target_globals.
9011         * config/arm/arm-protos.h (save_restore_target_globals): New function.
9012
9013 2016-01-27  Martin Liska  <mliska@suse.cz>
9014
9015         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
9016         reference for an HSA kernel and its host function.
9017
9018 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
9019
9020         PR tree-optimization/69399
9021         * wide-int.h (wi::lrshift): For larger precisions, only
9022         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
9023
9024 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
9025
9026         * config/arc/predicates.md (proper_comparison_operator): Reject
9027         constant-constant comparison.
9028
9029 2016-01-26  Tom de Vries  <tom@codesourcery.com>
9030
9031         PR tree-optimization/69110
9032         * tree-data-ref.c (initialize_data_dependence_relation): Handle
9033         DR_NUM_DIMENSIONS == 0.
9034
9035 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9036             Sebastian Pop  <s.pop@samsung.com>
9037
9038         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
9039         isl_ast_op_cond and isl_ast_op_select.
9040         (gcc_expression_from_isl_expr_op): Same.
9041
9042 2016-01-26  Jason Merrill  <jason@redhat.com>
9043
9044         PR c++/68782
9045         * tree.c (recompute_constructor_flags): Split out from
9046         build_constructor.
9047         (verify_constructor_flags): New.
9048         * tree.h: Declare them.
9049
9050 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
9051
9052         PR rtl-optimization/69217
9053         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
9054         are no TYPE_FIELDS set for the record type.
9055
9056 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9057
9058         PR target/68662
9059         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
9060         toc_label_name unconditionally.
9061         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
9062         SYMBOL_REF string.  Use toc_label_name instead of constructing
9063         LCTOC1.
9064         (rs6000_elf_declare_function_name): Use toc_label_name instead of
9065         constructing LCTOC1.
9066
9067 2016-01-26  Martin Sebor  <msebor@redhat.com>
9068
9069         PR other/69477
9070         * doc/extend.texi (Common Type Attributes): Move text that talks about
9071         attribute packed from attribute aligned to the section discussing
9072         the former attribute for clarity.
9073
9074 2016-01-26  Richard Henderson  <rth@redhat.com>
9075
9076         PR middle-end/60908
9077         * trans-mem.c (tm_region_init): Mark entry block as visited.
9078
9079 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
9080
9081         PR other/69006
9082         * diagnostic-show-locus.c (layout::print_source_line): Replace
9083         call to pp_newline with call to layout::print_newline.
9084         (layout::print_annotation_line): Likewise.
9085         (layout::move_to_column): Likewise.
9086         (layout::print_any_fixits): After printing any fixits, print a
9087         trailing newline, if necessary.
9088         (layout::print_newline): New method, resetting any colorization
9089         before a newline.
9090         (diagnostic_show_locus): Move the pp_newline to before the
9091         early bailout.  Remove dummy block enclosing the layout instance.
9092         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
9093         of pp_newline_and_flush with pp_flush.
9094         (diagnostic_append_note): Delete use of pp_newline.
9095         (diagnostic_append_note_at_rich_loc): Delete.
9096         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
9097         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
9098         when newline characters are added to the buffer.
9099
9100 2016-01-26  Michael Matz  <matz@suse.de>
9101
9102         * configure.ac (ac_cv_std_swap_in_utility): New test.
9103         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
9104         * configure: Regenerate.
9105         * config.in: Regenerate.
9106
9107 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
9108
9109         * config/arc/arc.md (cstoresi4): Force operand into register.
9110         (arcset<code>): Fix predicate.
9111         (arcsetltu): Likewise.
9112         (arcsetgeu): Likewise.
9113         (arcsethi): Likewise.
9114         (arcsetls): Likewise.
9115
9116 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9117
9118         PR tree-optimization/69483
9119         * gimple-fold.c (canonicalize_constructor_val): Return NULL
9120         if base has error_mark_node type.
9121
9122 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
9123
9124         PR target/68620
9125         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
9126         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
9127         New helper macros.
9128         (vget_lane_f16): Handle big-endian.
9129         (vgetq_lane_f16): Likewise.
9130         (vset_lane_f16): Likewise.
9131         (vsetq_lane_f16): Likewise.
9132         * config/arm/iterators.md (VQXMOV): Add V8HF.
9133         (VDQ): Add V4HF and V8HF.
9134         (V_reg): Handle V4HF and V8HF.
9135         (Is_float_mode): Likewise.
9136         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
9137         neon_vdup_nv8hf): New patterns.
9138         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
9139         Use VD_LANE iterator.
9140         (neon_vld1_dup<mode>): Use VQ2 iterator.
9141
9142 2016-01-26  Nathan Sidwell  <nathan@acm.org>
9143
9144         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
9145         (set_oacc_fn_attrib): Add IS_KERNEL arg.
9146         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
9147         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
9148         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
9149         (oacc_validate_dims): Add LEVEL arg, don't return level.
9150         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
9151         oacc_validate_dims.
9152         (execute_oacc_device_lower): Adjust, add more dump output.
9153         * tree-ssa-loop.c (gate_oacc_kernels): Use
9154         oacc_fn_attrib_kernels_p.
9155         * tree-parloops.c (create_parallel_loop): Adjust
9156         set_oacc_fn_attrib call.
9157
9158 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9159
9160         PR lto/69254
9161         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
9162         (append_compiler_options): Handle -fcilkplus.
9163         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
9164
9165 2016-01-26  Nick Clifton  <nickc@redhat.com>
9166
9167         PR target/66655
9168         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
9169         been marked as DECL_ONE_ONLY but we do not the means to make it
9170         so, then do not allow it to bind locally.
9171
9172 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9173
9174         PR lto/69254
9175         * opts.h (parse_sanitizer_options): New prototype.
9176         * opts.c (sanitizer_opts): New array.
9177         (parse_sanitizer_options): New function.
9178         (common_handle_option): Use parse_sanitizer_options.
9179
9180 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
9181
9182         PR target/68986
9183         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
9184         alignment adjustment to ...
9185         (ix86_update_stack_boundary): Here.  Don't over-align stack for
9186         __tls_get_addr.
9187         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
9188         if __tls_get_addr is called.
9189
9190 2016-01-26  Christian Bruel  <christian.bruel@st.com>
9191
9192         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
9193
9194 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9195
9196         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
9197
9198 2016-01-26  Richard Biener  <rguenther@suse.de>
9199
9200         PR middle-end/69467
9201         * match.pd: Guard X * CST CMP 0 pattern with single_use.
9202
9203 2016-01-26  Richard Biener  <rguenther@suse.de>
9204
9205         PR tree-optimization/69452
9206         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
9207         (move_computations_dom_walker::before_dom_children): Rename
9208         to ...
9209         (move_computations_worker): This.
9210         (move_computations): Perform an RPO rather than a DOM walk.
9211
9212 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9213
9214         PR target/69442
9215         * combine.c (combine_instructions): For REG_EQUAL note with
9216         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
9217         to the underlying register.
9218         * doc/rtl.texi (REG_EQUAL): Document the behavior of
9219         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
9220
9221 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
9222
9223         PR target/67896
9224         * config/aarch64/aarch64-builtins.c
9225         (aarch64_init_simd_builtin_types): Do not set structural
9226         equality to __Poly{8,16,64,128}_t types.
9227
9228 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
9229
9230         PR tree-optimization/69400
9231         * wide-int.cc (wi_pack): Take the precision as argument and
9232         perform canonicalization here rather than in the callers.
9233         Use the main loop to handle all full-width HWIs.  Add a
9234         zero HWI if in_len isn't a full result.
9235         (wi::divmod_internal): Update accordingly.
9236         (wi::mul_internal): Likewise.  Simplify.
9237
9238 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
9239             Sebastian Pop  <s.pop@samsung.com>
9240
9241         * graphite-poly.c (apply_poly_transforms): Simplify.
9242         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
9243         (print_isl_map): Same.
9244         (print_isl_union_map): Same.
9245         (print_isl_schedule): New.
9246         (debug_isl_schedule): New.
9247         * graphite-dependences.c (scop_get_reads): Do not call
9248         isl_union_map_add_map that is undocumented isl functionality.
9249         (scop_get_must_writes): Same.
9250         (scop_get_may_writes): Same.
9251         (scop_get_original_schedule): Remove.
9252         (scop_get_dependences): Do not call isl_union_map_compute_flow that
9253         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
9254         (compute_deps): Remove.
9255         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
9256         (debug_schedule_ast): New.
9257         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
9258         set_separate_option.
9259         (graphite_regenerate_ast_isl): Add dump.
9260         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
9261         from scop->transformed_schedule.
9262         (graphite_regenerate_ast_isl): Add more dump.
9263         * graphite-optimize-isl.c (optimize_isl): Set
9264         scop->transformed_schedule.  Check whether schedules are equal.
9265         (apply_poly_transforms): Move here.
9266         * graphite-poly.c (apply_poly_transforms): ... from here.
9267         (free_poly_bb): Static.
9268         (free_scop): Static.
9269         (pbb_number_of_iterations_at_time): Remove.
9270         (print_isl_ast): New.
9271         (debug_isl_ast): New.
9272         (debug_scop_pbb): New.
9273         * graphite-scop-detection.c (print_edge): Move.
9274         (print_sese): Move.
9275         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
9276         (build_scop_scattering): Remove.
9277         (create_pw_aff_from_tree): Assert instead of bailing out.
9278         (add_condition_to_pbb): Remove unused code, do not fail.
9279         (add_conditions_to_domain): Same.
9280         (add_conditions_to_constraints): Remove.
9281         (build_scop_context): New.
9282         (add_iter_domain_dimension): New.
9283         (build_iteration_domains): Initialize pbb->iterators.
9284         Call add_conditions_to_domain.
9285         (nested_in): New.
9286         (loop_at): New.
9287         (index_outermost_in_loop): New.
9288         (index_pbb_in_loop): New.
9289         (outermost_pbb_in): New.
9290         (add_in_sequence): New.
9291         (add_outer_projection): New.
9292         (outer_projection_mupa): New.
9293         (add_loop_schedule): New.
9294         (build_schedule_pbb): New.
9295         (build_schedule_loop): New.
9296         (embed_in_surrounding_loops): New.
9297         (build_schedule_loop_nest): New.
9298         (build_original_schedule): New.
9299         (build_poly_scop): Call build_original_schedule.
9300         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
9301         (free_poly_dr): Remove.
9302         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
9303         (free_poly_bb): Remove.
9304         (debug_loop_vec): Remove.
9305         (print_isl_ast): Declare.
9306         (debug_isl_ast): Declare.
9307         (scop_do_interchange): Remove.
9308         (scop_do_strip_mine): Remove.
9309         (scop_do_block): Remove.
9310         (flatten_all_loops): Remove.
9311         (optimize_isl): Remove.
9312         (pbb_number_of_iterations_at_time): Remove.
9313         (debug_scop_pbb): Declare.
9314         (print_schedule_ast): Declare.
9315         (debug_schedule_ast): Declare.
9316         (struct scop): Remove schedule.  Add original_schedule,
9317         transformed_schedule.
9318         (free_gimple_poly_bb): Remove.
9319         (print_generated_program): Remove.
9320         (debug_generated_program): Remove.
9321         (unify_scattering_dimensions): Remove.
9322         * sese.c (print_edge): ... here.
9323         (print_sese): ... here.
9324         (debug_edge): ... here.
9325         (debug_sese): ... here.
9326         * sese.h (print_edge): Declare.
9327         (print_sese): Declare.
9328         (dump_edge): Declare.
9329         (dump_sese): Declare.
9330
9331 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
9332             Sebastian Pop  <s.pop@samsung.com>
9333
9334         * Makefile.in: Set ISLVER in site.exp.
9335
9336 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
9337
9338         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
9339         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
9340         through DECL_VALUE_EXPR for expansion.
9341
9342 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9343
9344         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
9345         the frame info after reload completed.
9346
9347 2016-01-25  Jeff Law  <law@redhat.com>
9348
9349         PR tree-optimization/69196
9350         PR tree-optimization/68398
9351         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
9352         tree-ssa-threadupdate.c.
9353         (determine_bb_domination_status): Prototype
9354         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
9355         (determine_bb_domination_status): No longer static.
9356         (valid_jump_thread_path): Remove code to detect characteristics
9357         of the jump thread path not associated with correctness.
9358         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
9359         Correct test for thread path length.  Count PHIs for real operands as
9360         statements that need to be copied.  Do not count ASSERT_EXPRs.
9361         Look at all the blocks in the thread path.  Compute and selectively
9362         filter thread paths based on threading through the latch, threading
9363         a multiway branch or crossing a multiway branch.
9364
9365 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9366
9367         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
9368         decl with __attribute__ ((unused)) annotation.
9369
9370 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
9371
9372         PR target/69421
9373         * tree-vect-stmts.c (vectorizable_condition): Check vectype
9374         of operands is compatible with a statement vectype.
9375
9376 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
9377
9378         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
9379         improve wording for mixed storage order support.
9380
9381 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
9382
9383         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
9384         (vcvt_u64_f64): Likewise.
9385         (vcvta_s64_f64): Likewise.
9386         (vcvta_u64_f64): Likewise.
9387         (vcvtm_s64_f64): Likewise.
9388         (vcvtm_u64_f64): Likewise.
9389         (vcvtn_s64_f64): Likewise.
9390         (vcvtn_u64_f64): Likewise.
9391         (vcvtp_s64_f64): Likewise.
9392         (vcvtp_u64_f64): Likewise.
9393
9394 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
9395
9396         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
9397         (arc_init): Check validity mll64 option.
9398         (arc_save_restore): Use double load/store instruction.
9399         (arc_expand_movmem): Likewise.
9400         (arc_split_move): Don't split if we have double load/store
9401         instructions. Returns a boolean.
9402         (arc_process_double_reg_moves): Change function to return boolean
9403         instead of a sequence of instructions.
9404         (arc_dwarf_register_span): New function.
9405         * config/arc/arc-protos.h (arc_split_move): Change prototype.
9406         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
9407         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
9408         (*movdf_insn): Likewise.
9409         * config/arc/arc.opt (mll64): New option.
9410         * config/arc/predicates.md (even_register_operand): New predicate.
9411         * doc/invoke.texi (ARC Options): Add mll64 documentation.
9412
9413 2016-01-25  Richard Biener  <rguenther@suse.de>
9414
9415         PR lto/69393
9416         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
9417         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
9418         DECL_NAMELESS.
9419         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
9420
9421 2016-01-25  Richard Biener  <rguenther@suse.de>
9422
9423         PR tree-optimization/69376
9424         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
9425         flag.
9426         (VN_INFO_ANTI_RANGE_P): New inline.
9427         (VN_INFO_RANGE_TYPE): Likewise.
9428         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
9429         SSA_NAME_ANTI_RANGE_P.
9430         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
9431         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9432         Properly query VN_INFO_RANGE_TYPE.
9433
9434 2016-01-25  Nick Clifton  <nickc@redhat.com>
9435
9436         PR target/66655
9437         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
9438
9439 2016-01-23  Tom de Vries  <tom@codesourcery.com>
9440
9441         PR tree-optimization/69426
9442         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
9443         removed clobber.
9444
9445 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
9446
9447         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
9448         "the the" with "the" in the comments.
9449         * ipa-devirt.c (build_type_inheritance_graph,
9450         update_type_inheritance_graph): Likewise.
9451         * tree.c (build_function_type_list_1): Likewise.
9452         * cfgloopmanip.c (scale_loop_profile): Likewise.
9453         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
9454         * gimple-ssa-split-paths.c
9455         (find_block_to_duplicate_for_splitting_paths): Likewise.
9456         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
9457         * expr.c (convert_move): Likewise.
9458         * var-tracking.c (vt_stack_adjustments): Likewise.
9459         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9460         * tree-vrp.c (test_for_singularity): Likewise.
9461
9462         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
9463         directly instead of building a temporary tree.
9464
9465         PR bootstrap/69434
9466         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
9467         remove <algorithm> include.
9468
9469 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
9470
9471         PR target/69432
9472         * config/i386/i386.c: Include dojump.h.
9473         (expand_small_movmem_or_setmem,
9474         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
9475         fixes.
9476         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
9477         if dynamic_check != -1.
9478
9479 2016-01-21  Jeff Law  <law@redhat.com>
9480
9481         PR middle-end/69347
9482         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
9483         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
9484         into dominated_by_p.
9485         (cprop_into_successor_phis): Avoid unnecessary tests.
9486
9487 2016-01-22  Richard Henderson  <rth@redhat.com>
9488
9489         PR target/69416
9490         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
9491         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
9492
9493 2016-01-22  Michael Matz  <matz@suse.de>
9494
9495         * system.h (string, algorithm): Include only conditionally.
9496         (new): Include always under C++.
9497         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
9498         * final.c (toplevel): Ditto.
9499         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
9500         * genconditions.c (write_header): Make gencondmd.c define
9501         INCLUDE_STRING.
9502         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
9503
9504         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
9505         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
9506
9507 2016-01-22  Christian Bruel  <christian.bruel@st.com>
9508
9509         PR target/68674
9510         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
9511
9512 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9513
9514         PR target/69403
9515         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
9516         define_insn_and_split.  Ensure operands[1] and operands[0] do not
9517         get assigned the same register.
9518
9519 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
9520
9521         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
9522
9523 2016-01-22  Christian Bruel  <christian.bruel@st.com>
9524
9525         * config/arm/arm-c.c (arm_pragma_target_parse):
9526         Remove warn_builtin_macro_redefined overwrite.
9527
9528 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9529
9530         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
9531         flag_non_call_exceptions compatibility.
9532
9533 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
9534
9535         PR debug/66668
9536         * dwarf2out.c (add_child_die_after): New function.
9537         (dwarf_qual_info_t): New type.
9538         (dwarf_qual_info): New variable.
9539         (qualified_die_p): New function.
9540         (modified_type_die): For -fdebug-types-section, ensure
9541         canonical order of qualifiers.  Put qualified DIEs adjacent
9542         to the corresponding non-qualified type DIE and search there
9543         for existing qualified DIEs.
9544
9545 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9546
9547         * doc/extend.texi (scalar_storage_order type attribute): Document
9548         restriction on type punning and aliasing, and remove future tense.
9549
9550 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
9551
9552         PR target/69252
9553         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
9554         first stage.
9555
9556 2016-01-21  Jeff Law  <law@redhat.com>
9557
9558         PR middle-end/69347
9559         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
9560         useless call to record_temporary_equivalences.
9561         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
9562         allocate 10 slots in the bb_path vector and let it grow as needed.
9563         (fsm_find_control_statement_thread_paths): Similarly for the next_path
9564         vector.
9565
9566 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
9567
9568         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
9569         Detangle.
9570         * configure: Regenerate.
9571
9572 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
9573
9574         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
9575         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
9576
9577 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
9578
9579         PR middle-end/66178
9580         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
9581         drop EXPAND_INITIALIZER.
9582         * rtl.h (contains_symbolic_reference_p): Declare.
9583         * rtlanal.c (contains_symbolic_reference_p): New function.
9584         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
9585         a subtraction into a NOT if symbolic constants are involved.
9586
9587 2016-01-21  Anton Blanchard  <anton@samba.org>
9588             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9589
9590         PR target/63354
9591         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
9592         #define.
9593         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
9594         function.
9595
9596 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
9597
9598         * config/microblaze/microblaze.c
9599         (get_branch_target): New.
9600         (insert_wic_for_ilb_runout): New.
9601         (insert_wic): New.
9602         (microblaze_machine_dependent_reorg): New.
9603         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
9604         * config/microblaze/microblaze.md
9605         (UNSPEC_IPREFETCH): Define.
9606         (iprefetch): New pattern
9607         * config/microblaze/microblaze.opt
9608         (mxl-prefetch): New flag.
9609
9610 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
9611
9612         * config/microblaze/microblaze.h
9613         (FIXED_REGISTERS): Update in macro.
9614         (CALL_USED_REGISTERS): Update in macro.
9615
9616 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
9617
9618         PR rtl-optimization/68920
9619         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
9620         moves.
9621
9622 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
9623
9624         PR rtl-optimization/68990
9625         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
9626         pseudo instead of inheritance ones.
9627
9628 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9629             Nick Clifton  <nickc@redhat.com>
9630
9631         PR target/69129
9632         PR target/69012
9633         * config/mips/mips.c (mips_compute_frame_info): Initialise
9634         args_size and hard_frame_pointer_offset fields of the frame
9635         structure before calling mips_global_pointer.
9636
9637 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
9638
9639         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
9640         label reference.
9641         * configure: Regenerate.
9642
9643 2016-01-21  Richard Biener  <rguenther@suse.de>
9644
9645         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
9646
9647 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
9648
9649         * config/s390/s390.c (s390_asm_declare_function_size): Add code
9650         to actually emit the .size directive.
9651
9652 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
9653              Jakub Jelinek  <jakub@redhat.com>
9654
9655         PR target/69187
9656         PR target/65624
9657         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
9658         args array size by one to avoid buffer overflow.
9659
9660 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
9661
9662         * config/s390/s390.md (pool_section_start): Use switch_to_section
9663         to select proper read-only data section instead of hardcoding
9664         .rodata.
9665         (pool_section_end): Use switch_to_section to match the above.
9666
9667 2016-01-21  Richard Biener  <rguenther@suse.de>
9668
9669         PR tree-optimization/69378
9670         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
9671         (set_ssa_val_to): Use it for dominance checks taking into
9672         account not executable edges.
9673
9674 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
9675
9676         PR c++/69355
9677         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
9678         for bitsize instead of GET_MODE_PRECISION (mode).
9679
9680 2016-01-20  Martin Sebor  <msebor@redhat.com>
9681
9682         PR c/52291
9683         * extend.texi (__sync Builtins): Clarify the semantics of
9684         __sync_fetch_and_OP built-ins on pointers.
9685         (__atomic Builtins): Same.
9686
9687 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9688             Sebastian Pop  <s.pop@samsung.com>
9689
9690         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
9691         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
9692         (is_valid_rename): Same.
9693         (translate_isl_ast_to_gimple::get_rename): Same.
9694         (translate_isl_ast_to_gimple::rename_all_uses): Same.
9695         (translate_isl_ast_to_gimple::rename_uses): Same.
9696         (get_new_name): Check for close_phi nodes.
9697         (copy_loop_phi_args): Use phi_node_kind.
9698         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
9699         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
9700
9701 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9702             Sebastian Pop  <s.pop@samsung.com>
9703
9704         Revert commit r229783.
9705         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
9706         Remove use of parameter_rename_map.
9707         (copy_def): Remove.
9708         (copy_internal_parameters): Remove.
9709         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
9710         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
9711         (free_sese_info): Do not free parameter_rename_map.
9712         (set_rename): Do not use parameter_rename_map.
9713         (rename_uses): Update call to set_rename.
9714         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
9715         * sese.h (parameter_rename_map_t): Remove.
9716         (struct sese_info_t): Remove field parameter_rename_map.
9717
9718 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9719             Sebastian Pop  <s.pop@samsung.com>
9720
9721         * graphite-isl-ast-to-gimple.c: Fix comment.
9722         * graphite-scop-detection.c (defined_in_loop_p): New.
9723         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
9724         names defined in loop.
9725
9726 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9727             Sebastian Pop  <s.pop@samsung.com>
9728
9729         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
9730         Discard unstructured if-then-else regions.
9731
9732 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9733             Sebastian Pop  <s.pop@samsung.com>
9734
9735         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
9736         (cleanup_loop_iter_dom): Remove.
9737         (build_loop_iteration_domains): Remove.
9738         (build_scop_context): Remove.
9739         (build_scop_iteration_domain): Remove.
9740         (add_loop_constraints): New.
9741         (build_iteration_domains): New.
9742         (build_poly_scop): Call build_iteration_domains.
9743
9744 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9745             Sebastian Pop  <s.pop@samsung.com>
9746
9747         * graphite-scop-detection.c
9748         (scop_detection::harmful_loop_in_region): Free dom and loops.
9749         (scop_detection::loop_body_is_valid_scop): Free bbs.
9750
9751 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9752             Sebastian Pop  <s.pop@samsung.com>
9753
9754         * graphite-scop-detection.c (record_loop_in_sese): New.
9755         (gather_bbs::before_dom_children): Call record_loop_in_sese.
9756         (build_scops): Remove call to build_sese_loop_nests.
9757         * sese.c (sese_record_loop): Remove.
9758         (build_sese_loop_nests): Remove.
9759         (new_sese_info): Remove region->loops.
9760         (free_sese_info): Same.
9761         * sese.h (sese_contains_loop): Same.
9762         (build_sese_loop_nests): Remove.
9763         (sese_contains_loop): Remove.
9764
9765 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9766             Sebastian Pop  <s.pop@samsung.com>
9767
9768         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
9769         loop_is_valid_in_scop.
9770         (scop_detection::harmful_stmt_in_region): Renamed
9771         harmful_loop_in_region.
9772         Call loop_is_valid_in_scop.
9773
9774 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9775             Sebastian Pop  <s.pop@samsung.com>
9776
9777         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
9778         isl_ast_node_mark.
9779
9780 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9781             Sebastian Pop  <s.pop@samsung.com>
9782
9783         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
9784         * graphite.h (struct poly_bb): Remove field is_reduction.
9785         (PBB_IS_REDUCTION): Remove.
9786
9787 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
9788             Sebastian Pop  <s.pop@samsung.com>
9789
9790         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
9791         (add_pdr_constraints): Same.
9792         (scop_get_reads): Same.
9793         (scop_get_must_writes): Same.
9794         (scop_get_may_writes): Same.
9795         (scop_get_original_schedule): Same.
9796         (extend_schedule): Same.
9797         (apply_schedule_on_deps): Same.
9798         (carries_deps): Same.
9799         (compute_deps): Same.
9800         (scop_get_dependences): Same.
9801         * graphite-isl-ast-to-gimple.c
9802         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
9803         * graphite-optimize-isl.c (get_schedule_for_band): Same.
9804         (get_schedule_for_band_list): Same.
9805         (get_schedule_map): Same.
9806         (apply_schedule_map_to_scop): Same.
9807         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9808         (build_loop_iteration_domains): Same.
9809         (add_condition_to_pbb): Same.
9810         (add_param_constraints): Same.
9811         (pdr_add_memory_accesses): Same.
9812         (pdr_add_data_dimensions): Same.
9813
9814 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
9815
9816         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
9817         requirements.
9818
9819 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
9820
9821         * common.opt (feliminate-dwarf2-dups): Replace references to
9822         "DWARF 2" with just "DWARF".
9823         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
9824         * doc/extend.texi: Likewise.
9825         * doc/cpp.texi: Likewise.
9826         * doc/invoke.texi: Likewise.
9827         (Option Summary): Add -gdwarf to list of Debugging Options.
9828         (Debugging Options): Document -gdwarf.
9829         * doc/contrib.texi: Spell "DWARF" like that.
9830
9831 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
9832
9833         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
9834         warning.  Fix up formatting.
9835
9836         PR middle-end/67653
9837         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
9838         attempt to mark memory input operand addressable and
9839         call prepare_gimple_addressable in that case.  Don't adjust
9840         input_location for diagnostics, use error_at instead.
9841
9842 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
9843
9844         * config/rs6000/ppc-auxv.h: New file.
9845         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
9846         (cpu_is): Likewise.
9847         (cpu_supports): Likewise.
9848         * config/rs6000/rs6000.c: include "ppc-auxv.h".
9849         (cpu_is_info): New variable.
9850         (cpu_supports_info): Likewise.
9851         (tcb_verification_symbol): Likewise.
9852         (cpu_builtin_p): Likewise.
9853         (cpu_expand_builtin): New function.
9854         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
9855         (rs6000_init_builtins): Likewise.
9856         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
9857         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
9858         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
9859         * configure: Regenerate.
9860         * config.in: Likewise.
9861         * doc/extend.texi (PowerPC Built-in Functions): Document
9862         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
9863
9864 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
9865
9866         PR target/68609
9867         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
9868         domain check.
9869         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
9870         for V4SFmode.
9871
9872 2016-01-20  Richard Henderson  <rth@redhat.com>
9873
9874         PR bootstrap/69343
9875         PR bootstrap/69339
9876         PR tree-opt/68964
9877         Revert:
9878         * tree.c (tm_define_builtin): New.
9879         (find_tm_vector_type): New.
9880         (build_tm_vector_builtins): New.
9881         (build_common_builtin_nodes): Call it.
9882
9883 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
9884
9885         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
9886         (arm_fp_ok): Likewise.
9887         (arm_fp): Likewise.
9888         (arm_crypto): Likewise.
9889
9890 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
9891             Richard Biener  <rguenther@suse.de>
9892
9893         PR tree-optimization/69328
9894         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
9895         vectors have same number of elements.
9896         (vectorizable_condition): Fix masked version recognition.
9897
9898 2016-01-20  Richard Biener  <rguenther@suse.de>
9899
9900         PR tree-optimization/69345
9901         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
9902         (VN_INFO_PTR_INFO): Likewise.
9903         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
9904         info when it is equal between non-dominating SSA names.
9905         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9906         Make sure to look at original SSA infos.
9907
9908 2016-01-20  Jeff Law  <law@redhat.com>
9909
9910         PR target/25114
9911         * config/m68k/predicates.md (pow2_m1_operand): New predicate
9912         extracted from ...
9913         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
9914         (pc_or_label_operand): New predicate.
9915         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
9916         tests for small integers that are 2^n - 1.
9917
9918 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
9919
9920         * doc/invoke.texi (Options Summary): Add '.' after @xref.
9921
9922 2016-01-19  Jeff Law  <law@redhat.com>
9923
9924         PR middle-end/69347
9925         * tree-ssa-threadbackwards.c
9926         (fsm_find_control_statement_thread_paths): Do not try to lookup
9927         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
9928
9929 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
9930
9931         * doc/lto.texi: Remove text that says only Gold has linker plugin
9932         support.
9933
9934 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
9935
9936         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
9937         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
9938         the DIE accordingly.
9939         (modified_type_die): Add REVERSE parameter and pass it recursively,
9940         as well as to base_type_die.  Adjust presence check accordingly.
9941         (base_type_for_mode): Adjust call to modified_type_die.
9942         (add_type_attribute): Add REVERSE parameter and pass it to
9943         modified_type_die.
9944         (generic_parameter_die): Adjust call to add_type_attribute.
9945         (add_scalar_info): Likewise.
9946         (add_subscript_info): Likewise.
9947         (gen_array_type_die): Likewise.
9948         (gen_descr_array_type_die): Likewise.
9949         (gen_entry_point_die): Likewise.
9950         (gen_enumeration_type_die): Likewise.
9951         (gen_formal_parameter_die): Likewise.
9952         (gen_subprogram_die): Likewise.
9953         (gen_variable_die ): Likewise.
9954         (gen_const_die): Likewise.
9955         (gen_field_die): Likewise.
9956         (gen_pointer_type_die): Likewise.
9957         (gen_reference_type_die): Likewise.
9958         (gen_ptr_to_mbr_type_die): Likewise.
9959         (gen_inheritance_die): Likewise.
9960         (gen_subroutine_type_die): Likewise.
9961         (gen_typedef_die): Likewise.
9962         (force_type_die): Adjust call to modified_type_die.
9963
9964 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
9965
9966         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
9967         flow throughout the file.  Fix broken link to Objective-C 2.0
9968         documentation.
9969         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
9970         errors.
9971
9972 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
9973
9974         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
9975
9976 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
9977
9978         PR ipa/66223
9979         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
9980         (maybe_record_node): Record cxa_pure_virtual as the only possible
9981         target if there are not ohter candidates.
9982         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
9983
9984 2016-01-19  Richard Biener  <rguenther@suse.de>
9985
9986         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
9987         (get_memory_order): Likewise.
9988
9989 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
9990
9991         * tree-vect-stmts.c (vectorizable_store): Check
9992         rhs vectype.
9993
9994 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
9995
9996         PR jit/68446
9997         * gcc.c (driver::decode_argv): Add call to
9998         init_opts_obstack before init_options_struct.
9999         * opts.c (init_opts_obstack): Remove idempotency.
10000         (init_options_struct): Replace call to init_opts_obstack
10001         with a gcc_assert to verify that it has already been called.
10002         * toplev.c (toplev::main): Add call to init_opts_obstack before
10003         calls to init_options_struct.
10004         (toplev::finalize): Move cleanup of opts_obstack next to
10005         cleanup of save_decoded_options, clearing the latter, and
10006         save_decoded_options_count.
10007
10008 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10009
10010         PR target/69135
10011         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
10012         attribute to unconditional.  Remove %? from output template.
10013
10014 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10015             Jiong Wang  <jiong.wang@arm.com>
10016
10017         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
10018         generated from different expand order.
10019
10020 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10021
10022         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
10023         Add support for CCMP costing.
10024
10025 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10026
10027         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
10028         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
10029         (fccmpe<mode>): Likewise.
10030         (fcmp): Rename to fcmp and globalize pattern.
10031         (fcmpe): Likewise.
10032         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
10033         (aarch64_gen_ccmp_next): Add FP support.
10034
10035 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10036
10037         * target.def (gen_ccmp_first): Update documentation.
10038         (gen_ccmp_next): Likewise.
10039         * doc/tm.texi (gen_ccmp_first): Update documentation.
10040         (gen_ccmp_next): Likewise.
10041         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
10042         expand_ccmp_expr_1.  Improve comments.
10043         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
10044         (ccmp_ior<mode>): Remove pattern.
10045         (cmp<mode>): Remove expand.
10046         (cmp): Globalize pattern.
10047         (cstorecc4): Use cc_register.
10048         (mov<mode>cc): Remove ccmp_cc_register check.
10049         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
10050         Simplify after removal of CC_DNE/* modes.
10051         (aarch64_ccmp_mode_to_code): Remove.
10052         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
10053         In 'k' case use integer as condition.
10054         (aarch64_nzcv_codes): Remove inverted cases.
10055         (aarch64_code_to_ccmode): Remove.
10056         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
10057         comparison with CC register to be used in folowing CCMP/branch/CSEL.
10058         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
10059         pattern.  Return the comparison with CC register.  Invert conditions
10060         when bitcode is OR.
10061         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
10062         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
10063
10064 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10065
10066         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
10067         instrumented_version.
10068
10069 2016-01-19  Richard Biener  <rguenther@suse.de>
10070
10071         PR tree-optimization/69336
10072         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
10073         handled components with get_ref_base_and_extent.
10074         (equal_mem_array_ref_p): Adjust.
10075
10076 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
10077
10078         PR debug/65779
10079         * shrink-wrap.c: Include valtrack.h.
10080         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
10081         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
10082         in between insn and where it will be moved to.  Call
10083         dead_debug_insert_temp.
10084         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
10085         first and dead_debug_local_finish at the end.
10086         For uses and defs bitmap, handle all regs in between REGNO and
10087         END_REGNO, not just the first one.
10088
10089 2016-01-19  Richard Biener  <rguenther@suse.de>
10090
10091         PR tree-optimization/69352
10092         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
10093         (equal_mem_array_ref_p): Constrain size and max size properly.
10094         Compare the reverse flag.
10095
10096 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
10097
10098         * ira.c (ira): Update regstat data if we deleted insns.
10099
10100 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
10101
10102         PR rtl-optimization/68955
10103         PR rtl-optimization/64557
10104         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
10105         here.  Fix up formatting.
10106         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
10107
10108 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10109
10110         PR lto/69133
10111         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
10112         assume that the node has body.
10113         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
10114         check.
10115
10116 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10117
10118         * lto-streamer-out.c (lto_output): Do not stream instrumentation
10119         thunks.
10120
10121 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10122
10123         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
10124         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
10125
10126 2016-01-19  Martin Jambor  <mjambor@suse.cz>
10127             Martin Liska  <mliska@suse.cz>
10128             Michael Matz  <matz@suse.de>
10129
10130         * Makefile.in (OBJS): Add new source files.
10131         (GTFILES): Add hsa.c.
10132         * common.opt (disable_hsa): New variable.
10133         (-Whsa): New warning.
10134         * config.in (ENABLE_HSA): New.
10135         * configure.ac: Treat hsa differently from other accelerators.
10136         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
10137         $enable_offloading.
10138         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
10139         * doc/install.texi (Configuration): Document --with-hsa-runtime,
10140         --with-hsa-runtime-include, --with-hsa-runtime-lib and
10141         --with-hsa-kmt-lib.
10142         * doc/invoke.texi (-Whsa): Document.
10143         (hsa-gen-debug-stores): Likewise.
10144         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
10145         to invoke offload compiler for hsa acclerator.
10146         * opts.c (common_handle_option): Determine whether HSA offloading
10147         should be performed.
10148         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
10149         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
10150         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
10151         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
10152         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
10153         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
10154         GF_OMP_FOR_KIND_GRID_LOOP.
10155         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
10156         (pp_gimple_stmt_1): Likewise.
10157         * gimple-walk.c (walk_gimple_stmt): Likewise.
10158         * gimple.c (gimple_build_omp_grid_body): New function.
10159         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
10160         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
10161         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
10162         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
10163         GF_OMP_TEAMS_GRID_PHONY.
10164         (gimple_statement_omp_single_layout): Updated comments.
10165         (gimple_build_omp_grid_body): New function.
10166         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
10167         (gimple_omp_for_grid_phony): New function.
10168         (gimple_omp_for_set_grid_phony): Likewise.
10169         (gimple_omp_parallel_grid_phony): Likewise.
10170         (gimple_omp_parallel_set_grid_phony): Likewise.
10171         (gimple_omp_teams_grid_phony): Likewise.
10172         (gimple_omp_teams_set_grid_phony): Likewise.
10173         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
10174         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
10175         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
10176         (BUILT_IN_GOMP_TARGET): Updated type.
10177         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
10178         (adjust_for_condition): New function.
10179         (get_omp_for_step_from_incr): Likewise.
10180         (extract_omp_for_data): Moved parts to adjust_for_condition and
10181         get_omp_for_step_from_incr.
10182         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
10183         (fixup_child_record_type): Bail out if receiver_decl is NULL.
10184         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
10185         (scan_omp_parallel): Do not create child functions for phony
10186         constructs.
10187         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
10188         (scan_omp_1_op): Checking assert we are not remapping to
10189         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
10190         (parallel_needs_hsa_kernel_p): New function.
10191         (expand_parallel_call): Register apprpriate parallel child
10192         functions as HSA kernels.
10193         (grid_launch_attributes_trees): New type.
10194         (grid_attr_trees): New variable.
10195         (grid_create_kernel_launch_attr_types): New function.
10196         (grid_insert_store_range_dim): Likewise.
10197         (grid_get_kernel_launch_attributes): Likewise.
10198         (get_target_argument_identifier_1): Likewise.
10199         (get_target_argument_identifier): Likewise.
10200         (get_target_argument_value): Likewise.
10201         (push_target_argument_according_to_value): Likewise.
10202         (get_target_arguments): Likewise.
10203         (expand_omp_target): Call get_target_arguments instead of looking
10204         up for teams and thread limit.
10205         (grid_expand_omp_for_loop): New function.
10206         (grid_arg_decl_map): New type.
10207         (grid_remap_kernel_arg_accesses): New function.
10208         (grid_expand_target_kernel_body): New function.
10209         (expand_omp): Call it.
10210         (lower_omp_for): Do not emit phony constructs.
10211         (lower_omp_taskreg): Do not emit phony constructs but create for them
10212         a temporary variable receiver_decl.
10213         (lower_omp_taskreg): Do not emit phony constructs.
10214         (lower_omp_teams): Likewise.
10215         (lower_omp_grid_body): New function.
10216         (lower_omp_1): Call it.
10217         (grid_reg_assignment_to_local_var_p): New function.
10218         (grid_seq_only_contains_local_assignments): Likewise.
10219         (grid_find_single_omp_among_assignments_1): Likewise.
10220         (grid_find_single_omp_among_assignments): Likewise.
10221         (grid_find_ungridifiable_statement): Likewise.
10222         (grid_target_follows_gridifiable_pattern): Likewise.
10223         (grid_remap_prebody_decls): Likewise.
10224         (grid_copy_leading_local_assignments): Likewise.
10225         (grid_process_kernel_body_copy): Likewise.
10226         (grid_attempt_target_gridification): Likewise.
10227         (grid_gridify_all_targets_stmt): Likewise.
10228         (grid_gridify_all_targets): Likewise.
10229         (execute_lower_omp): Call grid_gridify_all_targets.
10230         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
10231         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
10232         (tree_omp_clause): Added union field dimension.
10233         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
10234         * tree.c (omp_clause_num_ops): Added number of arguments of
10235         OMP_CLAUSE__GRIDDIM_.
10236         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
10237         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
10238         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
10239         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
10240         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
10241         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
10242         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
10243         * tree-pass.h (make_pass_gen_hsail): Declare.
10244         (make_pass_ipa_hsa): Likewise.
10245         * ipa-hsa.c: New file.
10246         * lto-section-in.c (lto_section_name): Add hsa section name.
10247         * lto-streamer.h (lto_section_type): Add hsa section.
10248         * timevar.def (TV_IPA_HSA): New.
10249         * hsa-brig-format.h: New file.
10250         * hsa-brig.c: New file.
10251         * hsa-dump.c: Likewise.
10252         * hsa-gen.c: Likewise.
10253         * hsa.c: Likewise.
10254         * hsa.h: Likewise.
10255         * toplev.c (compile_file): Call hsa_output_brig.
10256         * hsa-regalloc.c: New file.
10257
10258 2016-01-18  Jeff Law  <law@redhat.com>
10259
10260         PR tree-optimization/69320
10261         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
10262         ranged object, do nothing if the RHS constant is not [0..1].
10263         (optimize_stmt): Comparing a boolean ranged object against a
10264         constant outside [0..1] results in a compile-time constant.
10265
10266         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
10267         test.
10268
10269 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
10270
10271         * doc/invoke.texi (Invoking GCC): Add new section to menu.
10272         (Option Summary): Update to reflect new section and moved options.
10273         (C++ Dialect Options): Move -fstats to new section.
10274         (Debugging Options): Move all dump, statistics, and other GCC
10275         developer options to new section.  Rewrite section introduction
10276         and re-order remaining options to put the more basic ones first.
10277         (Optimization Options): Move -fira-verbose and -flto-report* to
10278         new section.
10279         (Developer Options): New section incorporating moved options.
10280         * doc/cppopts.texi (-dM): Update cross-reference.
10281
10282 2016-01-18  Richard Henderson  <rth@redhat.com>
10283
10284         PR target/69176
10285         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
10286         operands to pseudo only if CSE is expected.  Split long immediate
10287         operands only after reload, and for the stack pointer.
10288         (*add<GPI>3_pluslong): Remove.
10289         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
10290         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
10291         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
10292         (*add<GPI>3 peepholes): New.
10293         (*add<GPI>3 splitters): New.
10294         * config/aarch64/constraints.md (Upl): New.
10295         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
10296
10297 2016-01-18  Richard Biener  <rguenther@suse.de>
10298
10299         PR tree-optimization/69297
10300         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
10301         stmt at most once.
10302         (vect_bb_vectorization_profitable_p): Clear visited flag again.
10303
10304 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
10305
10306         PR middle-end/68542
10307         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
10308         of mixind vector and scalar types.
10309         (fold_relational_const): Add handling of vector
10310         comparison with boolean result.
10311         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
10312         comparison of vector operands with boolean result for EQ/NE only.
10313         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
10314         (verify_gimple_cond): Likewise.
10315         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
10316         valid type of VAL.
10317
10318 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
10319
10320         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
10321         !TARGET_OCTEON.
10322
10323 2016-01-18  Richard Biener  <rguenther@suse.de>
10324
10325         PR middle-end/69308
10326         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
10327
10328 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10329
10330         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
10331
10332 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10333
10334         * omp-low.c (set_oacc_fn_attrib): Make extern.
10335         * omp-low.h (set_oacc_fn_attrib): Declare.
10336         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
10337         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
10338         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
10339         Add and handle function parameter oacc_kernels_p.
10340         (find_reduc_addr, get_omp_data_i_param): New function.
10341         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
10342         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
10343         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
10344         Calculate dominance info.  Skip loops that are not in a kernels region
10345         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
10346         (pass_parallelize_loops::execute): Call parallelize_loops with
10347         oacc_kernels_p argument.
10348         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
10349         New member function.
10350         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
10351         * passes.def: Add argument to pass_parallelize_loops instantation.
10352
10353 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10354
10355         * tree-parloops.c (pass_parallelize_loops::execute): Allow
10356         pass_parallelize_loops to be run outside the loop pipeline.
10357
10358 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10359
10360         * tree-scalar-evolution.c (follow_copies_to_constant): New.
10361         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
10362
10363 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10364
10365         PR target/63679
10366         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
10367         using get_ref_base_and_extent.
10368         (equal_mem_array_ref_p): New.
10369         (hashable_expr_equal_p): Add call to previous.
10370
10371 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10372
10373         PR target/63679
10374         * tree-sra.c (disqualified_constants, constant_decl_p): New.
10375         (sra_initialize): Allocate disqualified_constants.
10376         (sra_deinitialize): Free disqualified_constants.
10377         (disqualify_candidate): Update disqualified_constants when appropriate.
10378         (create_access): Scan for constant-pool entries as we go along.
10379         (scalarizable_type_p): Add check against type_contains_placeholder_p.
10380         (maybe_add_sra_candidate): Allow constant-pool entries.
10381         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
10382         (initialize_constant_pool_replacements): New.
10383         (sra_modify_assign): Avoid mangling assignments created by previous,
10384         and don't generate writes into constant pool.
10385         (sra_modify_function_body): Call initialize_constant_pool_replacements.
10386
10387 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
10388
10389         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
10390         andnot instruction.
10391         (scalar_chain::convert_op): Likewise.
10392         * config/i386/i386.md (*andndi3_doubleword): New.
10393
10394 2016-01-18  Richard Biener  <rguenther@suse.de>
10395
10396         PR tree-optimization/69170
10397         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
10398         building a vector from scalar results of a pattern stmt.
10399
10400 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
10401
10402         * haifa-sched.c (autopref_multipass_init): Work around
10403         -Wmaybe-uninitialized warning.
10404
10405 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10406
10407         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
10408         against the constant 0.
10409
10410 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10411
10412         PR tree-optimization/68799
10413         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
10414         look up phi candidates in the statement-candidate map.
10415         (phi_add_costs): Likewise.
10416         (record_phi_increments): Likewise.
10417         (phi_incr_cost): Likewise.
10418         (ncd_with_phi): Likewise.
10419         (all_phi_incrs_profitable): Likewise.
10420
10421 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
10422
10423         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
10424         -Wmaybe-uninitialized warning.
10425
10426 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
10427
10428         * doc/invoke.texi (Invoking GCC): Add new section to menu.
10429         (Option Summary): Update to reflect new section and moved options.
10430         (C++ Dialect Options): Move -fvtable-verify and related options.
10431         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
10432         and profiling-related options.
10433         (Optimization Options): Move profile generation options and
10434         -fstack-protector and related options.
10435         (Instrumentation Options): New section incorporating moved options.
10436         (Code Generation Options): Move -finstrument-functions and
10437         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
10438
10439 2016-01-16  Tom de Vries  <tom@codesourcery.com>
10440
10441         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
10442
10443 2016-01-16  Tom de Vries  <tom@codesourcery.com>
10444
10445         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
10446
10447 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
10448
10449         * hash-table.h (hash_table::empty): Turn into an inline wrapper
10450         that checks whether the table is already empty.  Rename the
10451         original implementation to...
10452         (hash_table::empty_slot): ...this new private function.
10453
10454 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
10455
10456         PR diagnostic/68899
10457         * diagnostic-show-locus.c (layout::print_source_line): Move x
10458         offset of line until after call to
10459         get_line_width_without_trailing_whitespace.
10460
10461 2016-01-15  Jeff Law  <law@redhat.com>
10462
10463         PR tree-optimization/69270
10464         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
10465         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
10466         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
10467         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
10468         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
10469         ssa_name_has_boolean_range and constant_boolean_node.
10470
10471 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
10472
10473         PR rtl-optimization/69030
10474         * lra-spills.c (remove_pseudos): Check nrefs and make the function
10475         returning bool.
10476         (spill_pseudos): Delete debug insn for dead pseudo.
10477         (lra_spill): Initiate spill_hard_reg and slots memory separately.
10478
10479 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
10480
10481         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
10482         New.
10483         (TYPES_UNOPUS): Likewise.
10484         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
10485         builtin type, from UNOP to UNOPUS.
10486         (lbtruncuv4sf): Likewise.
10487         (lbtruncuv2df): Likewise.
10488         (lrounduv2sf): Likewise.
10489         (lrounduv4sf): Likewise.
10490         (lrounduv2df): Likewise.
10491         (lroundusf): Likewise.
10492         (lroundusf): Likewise.
10493         (lceiluv2sf): Likewise.
10494         (lceiluv4sf): Likewise.
10495         (lceiluv2df): Likewise.
10496         (lceilusf): Likewise.
10497         (lceiludf): Likewise.
10498         (lflooruv2sf): Likewise.
10499         (lflooruv4sf): Likewise.
10500         (lflooruv2df): Likewise.
10501         (lfloorusf): Likewise.
10502         (lfloorudf): Likewise.
10503         (lfrintnuv2sf): Likewise.
10504         (lfrintnuv4sf): Likewise.
10505         (lfrintnuv2df): Likewise.
10506         (lfrintnusf): Likewise.
10507         (lfrintnudf): Likewise.
10508         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
10509         conversion.
10510         (vcvtq_u32_f32): Likewise.
10511         (vcvtq_u64_f64): Likewise.
10512         (vcvta_u32_f32): Likewise.
10513         (vcvtaq_u32_f32): Likewise.
10514         (vcvtaq_u64_f64): Likewise.
10515         (vcvtm_u32_f32): Likewise.
10516         (vcvtmq_u32_f32): Likewise.
10517         (vcvtmq_u64_f64): Likewise.
10518         (vcvtn_u32_f32): Likwise.
10519         (vcvtnq_u32_f32): Likewise.
10520         (vcvtnq_u64_f64): Likewise.
10521         (vcvtp_u32_f32): Likewise.
10522         (vcvtpq_u32_f32): Likewise.
10523         (vcvtpq_u64_f64): Likewise.
10524         (vcvtmd_u64_f64): Likewise.
10525         (vcvtms_u32_f32): Likewise.
10526         (vcvtad_u64_f64): Likewise.
10527         (vcvtas_u32_f32): Likewise.
10528         (vcvtnd_u64_f64): Likewise.
10529         (vcvtns_u32_f32): Likewise.
10530         (vcvtpd_u64_f64): Likewise.
10531         (vcvtps_u32_f32): Likewise.
10532
10533 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10534
10535         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
10536         CSEL of zero_extended registers.
10537
10538 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10539
10540         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10541         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
10542
10543 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10544
10545         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
10546         false when argument string is not found in the attributes table
10547         at all.
10548
10549 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
10550
10551         PR target/68609
10552         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
10553         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
10554         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
10555         precision estimate.
10556
10557 2016-01-15  Richard Biener  <rguenther@suse.de>
10558
10559         PR tree-optimization/66856
10560         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
10561         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
10562         (vect_create_new_slp_node): Increment stmt reference count.
10563         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
10564         an SLP tree before swapping operands.
10565         (vect_build_slp_tree): Likewise.
10566         (destroy_bb_vec_info): Free stmt info after SLP instances.
10567         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
10568         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
10569         (STMT_VINFO_NUM_SLP_USES): New macro.
10570
10571 2016-01-15  Richard Biener  <rguenther@suse.de>
10572
10573         PR debug/69137
10574         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
10575         (add_linkage_name): ... here.
10576         (gen_typedef_die): Use add_linkage_name_raw instead of
10577         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
10578         if necessary.
10579
10580 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
10581
10582         * gimplify.c (oacc_default_clause): Decode reference and pointer
10583         types for both kernels and parallel regions.
10584
10585 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
10586
10587         PR middle-end/69246
10588         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
10589
10590 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10591
10592         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
10593         (convert_scalars_to_vector): Likewise.
10594
10595 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
10596
10597         * doc/extend.texi (Type Traits): Fix grammar.
10598
10599 2016-01-15  Martin Jambor  <mjambor@suse.cz>
10600
10601         * tree-inline.c (remap_decl): Use existing dclarations if
10602         remapping a type and prevent_decl_creation_for_types.
10603         (replace_locals_stmt): Do an initial remapping of non-VLA typed
10604         decls first.  Do real remapping with
10605         prevent_decl_creation_for_types set.
10606         * tree-inline.h (copy_body_data): New field
10607         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
10608         padding.
10609
10610 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10611
10612         * config/s390/s390.opt (mmvcle): More verbose help text.
10613
10614 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10615
10616         * config/s390/s390.opt: Add period to -mzvector option text.
10617
10618 2016-01-15  Richard Biener  <rguenther@suse.de>
10619
10620         PR tree-optimization/68961
10621         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
10622         of invariants in stores again.
10623
10624 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10625
10626         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
10627
10628 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10629
10630         * config/i386/i386.c (ix86_expand_branch): Don't split
10631         DI mode xor instruction to SI mode.
10632
10633 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
10634
10635         PR ipa/68148
10636         * ipa-icf.c (sem_function::merge): Virtual functions may become
10637         reachable even if they address is not taken and there are no
10638         idrect calls.
10639
10640 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
10641
10642         * lto-streamer-out.c (subtract_estimated_size): New function.
10643         (get_symbol_initial_value): Use it.
10644
10645 2016-01-15  Christian Bruel  <christian.bruel@st.com>
10646
10647         PR target/65837
10648         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
10649         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
10650         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
10651         use add_builtin_function_ext_scope instead of add_builtin_function.
10652         (neon_set_p, neon_crypto_set_p): Remove.
10653         (arm_init_builtins): Always call arm_init_neon_builtins and
10654         arm_init_crypto_builtins.
10655         (arm_expand_builtin): Check that builtins are allowed for the arch.
10656         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
10657         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
10658         arm_init_neon_builtins call.
10659
10660 2016-01-15  Richard Biener  <rguenther@suse.de>
10661
10662         PR tree-optimization/69117
10663         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
10664         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
10665         of the leader conservatively.
10666         (free_scc_vn): Restore original SSA name infos.
10667
10668 2016-01-14  Jeff Law  <law@redhat.com>
10669
10670         PR tree-optimization/69270
10671         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
10672         single bit of precision, verify it's also unsigned.
10673         (record_edge_info): Use constant_boolean_node rather than fold_convert
10674         to convert boolean_true/boolean_false to the right type.
10675
10676 2016-01-14  Richard Henderson  <rth@redhat.com>
10677
10678         PR rtl-opt/69014
10679         * loop-doloop.c (record_reg_sets): New.
10680         (doloop_optimize): Reject the transform if the sequence
10681         clobbers registers live at the end of the loop block.
10682         (doloop_optimize_loops): Enable df_live if needed.
10683
10684 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10685
10686         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
10687         * gcc/config/rs6000/rs6000.c: Likewise.
10688         * gcc/config/rs6000/rs6000.h: Likewise.
10689         * gcc/config/rs6000/rs6000.md: Likewise.
10690         * gcc/doc/extend.texi: Likewsie.
10691
10692 2016-01-14  Jeff Law  <law@redhat.com>
10693
10694         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
10695         typo.
10696
10697 2016-01-14  Richard Henderson  <rth@redhat.com>
10698
10699         PR c/69272
10700         PR tree-opt/68964
10701         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
10702         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
10703         instead of builtin_decl_declared_p to test for declaration.
10704
10705 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
10706
10707         * doc/loop.texi (Loop Analysis and Representation): Document
10708         loop_depth function.
10709
10710 2016-01-14  Tom de Vries  <tom@codesourcery.com>
10711
10712         PR tree-optimization/68773
10713         * omp-low.c (expand_omp_target): Don't set force_output.
10714         * varpool.c (varpool_node::get_create): Same.
10715         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
10716         offload_funcs with force_output.
10717
10718 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
10719
10720         PR debug/69244
10721         * lra-eliminations.c (move_plus_up): Don't change anything if either
10722         the outer or inner subreg mode is not MODE_INT.
10723         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
10724         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
10725
10726 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
10727
10728         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
10729         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
10730         reduc_uplus_@var{m}): Remove.
10731         * expr.c (expand_expr_real_2): Remove expansion path for
10732         reduc_[us](min|max|plus) optabs.
10733         * optabs-tree.c (scalar_reduc_to_vector): Remove.
10734         * optabs-tree.h (scalar_reduc_to_vector): Remove.
10735         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
10736         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
10737         * tree-vect-loop.c (vectorizable_reduction): Remove test for
10738         reduc_[us](min|max|plus) optabs.
10739
10740 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
10741
10742         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
10743         (reduc_plus_scal_v2sf): New.
10744         (reduc_smax_v2sf): Rename to...
10745         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
10746         (reduc_smin_v2sf): Rename to...
10747         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
10748
10749 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
10750
10751         * alias.c (compare_base_symbol_refs): New function.
10752         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
10753         it.
10754
10755 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
10756
10757         PR middle-end/68146
10758         PR tree-optimization/69155
10759         * tree-complex.c: Include cfganal.h.
10760         (phis_to_revisit): New variable.
10761         (extract_component): Add phiarg_p argument.  Assert that returned
10762         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
10763         (update_phi_components): Partly rewrite to use loop over real/imag
10764         components instead of code duplication.  If extract_component returns
10765         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
10766         create_tmp_reg into the PHI node instead, and mention the phi triplet
10767         in phis_to_revisit.
10768         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
10769         in phis_to_revisit at the end.
10770
10771 2016-01-14  Richard Biener  <rguenther@suse.de>
10772
10773         PR tree-optimization/68060
10774         * tree-vect-loop.c (vect_is_simple_reduction): Check the
10775         outer loop reduction is only used in the inner loop before
10776         detecting a double reduction.
10777
10778 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
10779
10780         PR target/68269
10781         * combine.c (expand_field_assignment): Punt if compute_mode is
10782         unsupported scalar mode.
10783
10784 2016-01-14  Richard Biener  <rguenther@suse.de>
10785
10786         PR tree-optimization/66856
10787         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
10788         SLP node only if it built successfully.
10789         (vect_analyze_slp_instance): Adjust.
10790
10791 2016-01-14  Jeff Law  <law@redhat.com>
10792
10793         PR tree-optimization/69270
10794         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
10795         (record_edge_info): Use it.  Convert boolean_{true,false}_node
10796         to the type of op0.
10797
10798 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
10799
10800         PR ipa/66487
10801         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
10802         use block_ultimate_origin
10803         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
10804
10805 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
10806
10807         * doc/invoke.texi (Submodel Options): Rename section to
10808         "Machine-Dependent Options" to better reflect its content.
10809         Rewrite introductory text to remove archaic CPU names.
10810         Update references.
10811
10812 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
10813
10814         * doc/invoke.texi (Code Gen Options): Move section up in file,
10815         before target-specific options.  Update menu and option summary
10816         to reflect the new section ordering.
10817
10818 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
10819
10820         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
10821         (C++ Dialect Options): Add cross-reference to -std option.
10822         * doc/standards.texi (C++ Language): Document C++14 support.
10823
10824 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10825
10826         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
10827         for pack/unpack functions for __ibm128.
10828         (PACK_IF): Likewise.
10829         (UNPACK_IF): Likewise.
10830
10831         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
10832         support for __ibm128 pack/unpack functions.
10833         (rs6000_invalid_builtin): Likewise.
10834         (rs6000_init_builtins): Likewise.
10835         (rs6000_opt_masks): Likewise.
10836
10837         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
10838         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
10839         functions
10840         (RS6000_BTM_COMMON): Likewise.
10841
10842         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
10843         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
10844         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
10845         128-bit floating point.  Add support for the double values to be
10846         in Altivec registers for TF/IF packing and unpacking, but restrict
10847         TD packing sub-fields to be FPR registers.  Don't allow overlapped
10848         register support for packing.  Allow pack inputs to be memory
10849         locations.  Don't build generator functions for unpack<mode>_dm
10850         and unpack<mode>_nodm.
10851         (unpack<mode>_dm): Likewise.
10852         (unpack<mode>_nodm): Likewise.
10853         (pack<mode>): Likewise.
10854
10855         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
10856         built-in functions to pack/unpack explicit __ibm128 values.
10857         (__builtin_unpack_ibm128): Likewise.
10858
10859         * doc/extend.texi (PowerPC Built-in Functions): Document
10860         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
10861
10862 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
10863
10864         PR c/66208
10865         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
10866         Add new arg loc and pass it down as context.
10867         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
10868         to the location to use for the warning.
10869         (check_function_arguments): New arg loc.  All callers changed.  Pass
10870         it to check_function_nonnull.
10871         * c-common.h (check_function_arguments): Adjust declaration.
10872
10873 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
10874
10875         PR tree-optimization/69156
10876         * gimple.c (validate_type): Removed.
10877         (gimple_builtin_call_types_compatible_p): Use
10878         useless_type_conversion_p instead of validate_type.
10879         * value-prof.c (gimple_stringop_fixed_value): Fold
10880         icall_size to correct type.
10881
10882 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
10883
10884         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
10885         effects.
10886
10887 2016-01-13  Richard Henderson  <rth@redhat.com>
10888
10889         PR tree-opt/68964
10890         * target.def (builtin_tm_load, builtin_tm_store): Remove.
10891         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
10892         (ix86_builtin_tm_store): Remove.
10893         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
10894         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
10895         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
10896         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
10897         * doc/tm.texi: Rebuild.
10898
10899         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
10900         (BUILT_IN_TM_MEMCPY_RTWN): New.
10901         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
10902         fallback from vector to integer helpers.
10903         (build_tm_load): Handle vector types directly, instead of
10904         via target hook.
10905         (build_tm_store): Likewise.
10906         (expand_assign_tm): Prepare for register types not handled by
10907         the above.  Copy them to memory and use memcpy.
10908         * tree.c (tm_define_builtin): New.
10909         (find_tm_vector_type): New.
10910         (build_tm_vector_builtins): New.
10911         (build_common_builtin_nodes): Call it.
10912
10913 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
10914
10915         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
10916         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
10917
10918 2016-01-13  Tom de Vries  <tom@codesourcery.com>
10919
10920         PR tree-optimization/69169
10921         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
10922         handled_struct_type param.
10923         (create_variable_info_for, intra_create_variable_infos): Call
10924         create_variable_info_for_1 with extra arg.
10925
10926 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
10927
10928         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
10929         and "armv8.1-a+crc" entries.
10930
10931 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
10932
10933         PR target/69228
10934         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
10935         Change first operand predicate from register_or_constm1_operand
10936         to register_operand.
10937         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
10938         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
10939         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
10940         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
10941         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
10942         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
10943         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
10944         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
10945         comparison with constm1_rtx from vec_prefetch_gen part.
10946
10947 2016-01-13  Richard Biener  <rguenther@suse.de>
10948
10949         PR tree-optimization/69013
10950         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
10951         Exchange assert for a test.
10952
10953 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10954
10955         PR target/69247
10956         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
10957
10958 2016-01-13  Richard Biener  <rguenther@suse.de>
10959
10960         PR tree-optimization/69242
10961         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
10962         assert with a check.
10963
10964 2016-01-13  Richard Biener  <rguenther@suse.de>
10965
10966         PR tree-optimization/69186
10967         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10968         Properly guard vect_update_misalignment_for_peel call.
10969
10970 2016-01-12  Jeff Law  <law@redhat.com>
10971
10972         PR tree-optimization/pr67755
10973         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
10974         "need_profile_correction".
10975         (thread_block_1): Initialize new field to false by default.  If we
10976         have multiple thread paths through a common joiner to different
10977         final targets, then set new field to true.
10978         (compute_path_counts): Only do count adjustment when it's really
10979         needed.
10980
10981 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
10982
10983         * doc/invoke.texi (Spec Files): Move section down in file, past
10984         all command-line option descriptions.
10985
10986 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10987
10988         PR middle-end/54809
10989         * doc/gty.texi: Remove documentation of mark_hook.
10990         * gengtype.c (struct write_types_data): Remove code to support
10991         mark_hook attribute.
10992         (walk_type): Likewise.
10993         (write_func_for_structure): Likewise.
10994
10995 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
10996
10997         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
10998         Directory Options, and -specs= to Overall Options.
10999         (Overall Options): Adjust similarly.  Reorder to group related
11000         options together.  Make -specs= cross-reference the spec file details.
11001         (Directory Options): Adjust similarly.
11002
11003 2016-01-12  Jeff Law  <law@redhat.com>
11004
11005         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
11006
11007 2016-01-12  Olivier Hainque  <hainque@adacore.com>
11008
11009         * gcc.c (spec_undefvar_allowed): New global.
11010         (process_command): Set to true when running for --version or --help,
11011         alone or together.
11012         (getenv_spec_function): When the variable is not defined, use the
11013         variable name as the variable value if we're allowed not to issue
11014         a fatal error.
11015
11016 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
11017
11018         PR tree-optimization/68911
11019         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
11020         information computed for expression "init + nit * step".
11021
11022 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
11023
11024         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
11025         about name of GCC executable.  Remove deleted node from menu.
11026         (Directory Options) <-B>: Remove cross-reference to deleted node.
11027         (Target Options): Delete section.
11028
11029 2016-01-12  Christian Bruel  <christian.bruel@st.com>
11030
11031         PR target/69180
11032         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
11033         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
11034
11035 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
11036
11037         PR target/69198
11038         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
11039         aligned_mem is properly set for AVX512-VL floating point masked
11040         stores.
11041
11042         PR target/69175
11043         * ifcvt.c (cond_exec_process_if_block): When removing the last
11044         insn from then_bb, remove also any possible barriers that follow it.
11045
11046 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
11047
11048         PR target/68456
11049         PR target/69226
11050         * config/i386/iamcu.h (SIZE_TYPE): New macro.
11051         (PTRDIFF_TYPE): Likewise.
11052         (WCHAR_TYPE): Likewise.
11053         (WCHAR_TYPE_SIZE): Likewise.
11054         (STDINT_LONG32): Likewise.
11055
11056 2016-01-12  Richard Biener  <rguenther@suse.de>
11057
11058         PR tree-optimization/69053
11059         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
11060         convert initial value for cond reductions.
11061
11062 2016-01-12  Richard Biener  <rguenther@suse.de>
11063
11064         PR tree-optimization/69007
11065         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
11066         widen_sum after dot_prod and sad.
11067
11068 2016-01-12  Richard Biener  <rguenther@suse.de>
11069
11070         PR tree-optimization/69168
11071         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
11072         pattern stmt SLP type.
11073         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
11074         end up unused so cope with that case.
11075
11076 2016-01-12  Richard Biener  <rguenther@suse.de>
11077
11078         PR tree-optimization/69157
11079         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
11080         stmts def type only during analyze phase.
11081         (vectorizable_call): Likewise.
11082         (vectorizable_simd_clone_call): Likewise.
11083         (vectorizable_conversion): Likewise.
11084         (vectorizable_assignment): Likewise.
11085         (vectorizable_shift): Likewise.
11086         (vectorizable_operation): Likewise.
11087         (vectorizable_store): Likewise.
11088         (vectorizable_load): Likewise.
11089
11090 2016-01-12  Richard Biener  <rguenther@suse.de>
11091
11092         PR tree-optimization/69174
11093         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
11094         space.
11095         (vectorizable_load): Properly compute the number of loads needed
11096         for permuted strided SLP loads and do not spuriously assign
11097         to SLP_TREE_VEC_STMTS.
11098
11099 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
11100
11101         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
11102         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
11103         (MD_EXEC_PREFIX): Remove.
11104         (MD_STARTFILE_PREFIX) Removee.
11105         (FILE_NAME_ABSOLUTE_P): Remove.
11106         (CPP_SPEC): Do not read macros from sys/version.h.
11107         (LINK_COMMAND_SPEC): Remove.
11108         (LOCAL_INCLUDE_DIR): Remove.
11109         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
11110         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
11111         (POST_LINK_SPEC): Define to invoke stubify after linker
11112         (LIBSTDCXX): Remove define
11113         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
11114         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
11115         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
11116         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
11117         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
11118         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
11119         (i386_djgpp_asm_named_section): Add propotype of new procedure
11120
11121         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
11122         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
11123         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
11124         in config/i386/djgpp.h).
11125         (STANDARD_STARTFILE_PREFIX_2): Define identical to
11126         STANDARD_STARTFILE_PREFIX_1.
11127         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
11128         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
11129         installation errors.
11130         (MAX_OFILE_ALIGNMENT): Define to 128.
11131         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
11132
11133         * config/i386/djgpp.c: New file. Add implementation of
11134         i386_djgpp_asm_named_section.
11135
11136         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
11137
11138         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
11139         Add rule for building djgpp.o.
11140
11141 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11142
11143         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
11144         (rtx_is_swappable_p): Reductions are swappable.
11145         (insn_is_swappable_p): V2DF reductions are swappable.
11146
11147 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
11148
11149         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
11150         reloads for other unsupported memory operands.
11151
11152 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11153             Jim Wilson  <jim.wilson@linaro.org>
11154
11155         PR target/69194
11156         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
11157         copy_to_mode_reg instead of force_reg.
11158
11159 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
11160
11161         PR target/69225
11162         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
11163         TARGET_80387 is true.
11164
11165 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
11166
11167         PR target/69071
11168         * lra-eliminations.c (move_plus_up): Only move plus up
11169         if subreg of the constant can be simplified into constant
11170         and use the simplified subreg of the constant instead of
11171         the original constant.
11172
11173         * fold-const.c (fold_convertible_p): Don't return true
11174         for conversion of VECTOR_TYPE to same sized integral type.
11175         (fold_convert_loc): Fix up formatting.  Fold conversion of
11176         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
11177         instead of NOP_EXPR.
11178
11179         PR tree-optimization/69214
11180         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
11181         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
11182         Formatting fix.
11183
11184         PR tree-optimization/69207
11185         * tree-vect-slp.c (vect_get_constant_vectors): For
11186         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
11187         fold_convertible_p to vector_type's element type, and always
11188         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
11189
11190 2016-01-11  Richard Biener  <rguenther@suse.de>
11191
11192         PR tree-optimization/69173
11193         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
11194         fixup the cycle if all stmts are in a pattern.
11195
11196 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
11197
11198         PR middle-end/68999
11199         * alias.c (base_alias_check): Move check for addresses with
11200         alignment ANDs before the call for compare_base_decls.
11201         (memrefs_conflict_p): Return -1 for different decls
11202         that went through alignment adjustments.
11203
11204 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11205
11206         PR rtl-optimization/68796
11207         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
11208         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
11209         and QImode comparisons against zero with CC_NZmode.
11210         * config/aarch64/iterators.md (short_mask): New mode_attr.
11211
11212 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
11213
11214         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
11215         (<avx512>_store<mode>_mask): Likewise.
11216
11217 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
11218             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11219
11220         PR rtl-optimization/68841
11221         * ifcvt.c (struct noce_if_info): Add orig_x field.
11222         (bbs_ok_for_cmove_arith): Add to_rename parameter.
11223         Don't record conflicts on to_rename if it's present.
11224         Allow memory destinations in sets.
11225         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
11226         blocks, passing orig_x to the checks.
11227         (noce_process_if_block): Set if_info->orig_x appropriately.
11228
11229 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11230
11231         PR tree-optimization/69069
11232         * tree-parloops.c (create_parallel_loop): Add missing phi args.
11233
11234 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
11235
11236         PR rtl-optimization/68920
11237         * config/i386/i386.c (ix86_option_override_internal): Restrict number
11238         of conditional moves for  RTL if-conversion to 1 for
11239         TARGET_ONE_IF_CONV_INSN.
11240         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
11241         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
11242         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
11243         parameter to restirct number of conditional moves for
11244         RTL if-conversion.
11245         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
11246         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
11247         conditionl moves.
11248
11249 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
11250
11251         PR bootstrap/69123
11252         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
11253         onepart vars.  Fix typo in comment.  Fix reversed condition in
11254         unshare test.
11255         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
11256
11257         PR bootstrap/69123
11258         * var-tracking.c (dump_onepart_variable_differences): New.
11259         (dataflow_set_different): If a detailed dump is requested,
11260         delay early returns and dump differences between onepart
11261         variables present before and after, and added variables.
11262
11263 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
11264
11265         PR target/69010
11266         * expr.c (expand_expr_real_1): For boolean vector constants
11267         with a scalar mode use const_scalar_mask_from_tree.
11268         (const_scalar_mask_from_tree): New.
11269         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
11270         assigned to a mask type to handle constants.
11271
11272 2016-01-11  Martin Jambor  <mjambor@suse.cz>
11273
11274         PR ipa/69044
11275         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
11276         useless parameters if we cannot change function signature.
11277
11278 2016-01-11  Martin Jambor  <mjambor@suse.cz>
11279
11280         PR ipa/66616
11281         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
11282         flag.
11283
11284 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11285
11286         PR tree-optimization/69109
11287         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
11288         latch with phi.
11289
11290 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11291
11292         PR tree-optimization/69108
11293         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
11294         res is not used in a phi.
11295
11296 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
11297
11298         PR 67425
11299         * common.opt (frandom-seed): Fix parameter name.
11300         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
11301
11302 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11303
11304         PR tree-optimization/69058
11305         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
11306         not supported.
11307
11308 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
11309
11310         * config/arc/arc.opt (mdiv-rem): Add period to the end.
11311         (mcode-density): Likewise.
11312
11313 2016-01-10  Tom de Vries  <tom@codesourcery.com>
11314
11315         PR tree-optimization/69062
11316         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
11317         (parallelize_loops): Don't paralelize loop that has phi with address
11318         arg.
11319
11320 2016-01-10  Tom de Vries  <tom@codesourcery.com>
11321
11322         PR tree-optimization/69039
11323         * tree-parloops.c (try_create_reduction_list): Only allow single exit
11324         phi for reduction.
11325
11326 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
11327
11328         PR middle-end/68743
11329         * match.pd: Require target has function_c99_misc before doing
11330         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
11331
11332 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
11333
11334         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
11335         use GMPINC.
11336         * configure: Regenerate.
11337
11338 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
11339
11340         PR middle-end/50865
11341         PR tree-optimization/69097
11342         * fold-const.h (expr_not_equal_to): New prototype.
11343         * fold-const.c: Include stringpool.h and tree-ssanames.h.
11344         (expr_not_equal_to): New function.
11345         * match.pd (X % -Y is the same as X % Y): Don't optimize
11346         unless X is known not to be equal to minimum or Y is known
11347         not to be equal to -1.
11348         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
11349         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
11350         (simplify_stmt_using_ranges): Adjust caller.
11351         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
11352         substitute_and_fold.
11353
11354 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
11355
11356         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
11357         w/o DECL_NAME.
11358
11359 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11360
11361         PR tree-optimization/69167
11362         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
11363         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
11364         ops[0] comparison.
11365         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
11366
11367 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
11368             Richard Biener  <rguenther@suse.de>
11369
11370         PR tree-optimization/68707
11371         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
11372         instances that can be handled via vect_load_lanes.
11373
11374 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
11375
11376         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
11377         if we can't determine address equivalence.
11378         * alias.c (compare_base_decl): Update for changed return value of
11379         symtab_node::equal_address_to.
11380
11381 2016-01-08  Jason Merrill  <jason@redhat.com>
11382
11383         PR c++/68983
11384         PR c++/67557
11385         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
11386         * expr.c (store_field): Not here.
11387         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
11388         call with TREE_ADDRESSABLE type.
11389         * tree-cfg.c (verify_gimple_call): Adjust.
11390
11391 2016-01-08  Olivier Hainque  <hainque@adacore.com>
11392
11393         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
11394         libc_internal.
11395
11396 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
11397
11398         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
11399         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
11400         (reduc_smin_v2sf): Rename to...
11401         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
11402         (reduc_splus_v2sf): Rename to...
11403         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
11404
11405 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11406
11407         PR tree-optimization/69162
11408         * gimplify.c (gimplify_va_arg_expr): Encode original type of
11409         valist argument in another argument.
11410         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
11411         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
11412         to determine the va_list type, build a MEM_REF instead of
11413         build_fold_indirect_ref.
11414
11415         PR tree-optimization/69172
11416         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
11417         gimple_build.
11418
11419 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11420
11421         PR tree-optimization/67781
11422         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
11423         and cmpnop in two steps: first the ones not accessed in original
11424         gimple expression in a endian independent way and then the ones not
11425         accessed in the final result in an endian-specific way.
11426
11427 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11428
11429         PR tree-optimization/69083
11430         * tree-vect-slp.c (vect_get_constant_vectors): For
11431         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
11432         element type.  If op is fold_convertible_p to vector_type's element
11433         type, use NOP_EXPR instead of VCE.
11434
11435 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
11436
11437         PR rtl-optimization/67778
11438         PR rtl-optimization/68634
11439         PR rtl-optimization/68909
11440         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
11441         block from the stack until done with it.  Remove a superfluous
11442         bitmap set.  Remove a superfluous bitmap test.
11443
11444 2016-01-07  Martin Sebor  <msebor@redhat.com>
11445
11446         PR c/68966
11447         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
11448         constraint on the type of arguments.
11449
11450 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
11451
11452         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
11453         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
11454         unaligned_access on the gcc_options set.
11455         * config/arm/arm.c (arm_option_override_internal): Use
11456         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
11457
11458 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
11459
11460         PR target/69140
11461         * config/i386/i386.c (ix86_frame_pointer_required): Enable
11462         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
11463
11464 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
11465
11466         Revert
11467         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
11468
11469         PR target/69140
11470         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11471         depending on frame_pointer_needed before remaining integer and SSE
11472         registers are saved.
11473
11474 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11475
11476         PR 1078
11477         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
11478
11479 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11480
11481         PR target/69171
11482         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
11483         Use the "xBm" constraint.
11484         (float<sseintvecmodelower><mode>2<mask_name><round_name):
11485         Likewise.
11486         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
11487         (sse_cvtsi2ssq<round_name>): Likewise.
11488         (sse_cvtss2si<round_name>): Likewise.
11489         (sse_cvtss2siq<round_name>): Likewise.
11490         (sse2_cvtsi2sdq<round_name>): Likewise.
11491         (sse2_cvtsd2si<round_name>): Likewise.
11492         (sse2_cvtsd2siq<round_name>): Likewise.
11493         * config/i386/subst.md (round_nimm_scalar_predicate): New
11494         predicate.
11495
11496 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
11497
11498         PR middle-end/67639
11499         * varasm.c (make_decl_rtl): Mark invalid register vars as
11500         DECL_EXTERNAL.
11501
11502         PR rtl-optimization/66206
11503         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
11504         All callers changed.
11505
11506 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
11507
11508         PR tree-optimization/69141
11509         * tree-ssa-pre.c: Include langhooks.h.
11510         (eliminate_dom_walker::before_dom_children): Use
11511         lang_hooks.decl_printable_name instead of
11512         cgraph_node::get ()->name ().
11513
11514         PR middle-end/68960
11515         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
11516         it and DECL_ALIGN too.
11517
11518 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
11519
11520         * config/mips/mips-ftypes.def: Sort to lexicographical order.
11521
11522 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
11523
11524         PR target/69140
11525         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11526         depending on frame_pointer_needed before remaining integer and SSE
11527         registers are saved.
11528
11529 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11530
11531         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
11532         mode iterator with VSX_M2.
11533         (*p9_vecstore_<mode>): Likewise.
11534         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
11535         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
11536         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
11537         (define_split for VSX_LE128 stores): Likewise.
11538         (define_peephole2 for TImode LE swaps): Likewise.
11539         (define_split for VSX_LE128 post-reload stores): Likewise.
11540
11541 2016-01-06  Marek Polacek  <polacek@redhat.com>
11542
11543         PR sanitizer/69099
11544         * convert.c (convert_to_integer_1): Adjust call to
11545         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
11546         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
11547         EXPR instead of ARG.
11548         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
11549
11550 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11551
11552         PR 1078
11553         * doc/extend.texi (RL78 Variable Attributes): New section.
11554
11555 2016-01-05  Marek Polacek  <polacek@redhat.com>
11556
11557         PR c/69104
11558         * builtins.c (get_memmodel): Use expansion point location rather than
11559         the input location.  Call warning_at rather than warning.
11560         (expand_builtin_atomic_compare_exchange): Likewise.
11561         (expand_builtin_atomic_load): Likewise.
11562         (expand_builtin_atomic_store): Likewise.
11563         (expand_builtin_atomic_clear): Likewise.
11564
11565 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11566
11567         PR target/68991
11568         * config/i386/i386.c (ix86_expand_vector_logical_operator):
11569         Replace nonimmediate_operand with vector_operand.
11570         * config/i386/predicates.md (vector_operand): New predicate.
11571         (general_vector_operand): Replace nonimmediate_operand with
11572         vector_operand.
11573         * config/i386/sse.md: Replace nonimmediate_operand with
11574         vector_operand and m constraint with Bm constraint on SSE
11575         patterns with 16-byte memory operand.
11576         * config/i386/subst.md (round_nimm_predicate): Replace
11577         nonimmediate_operand with vector_operand.
11578         (round_saeonly_nimm_predicate): Likewise.
11579         (round_saeonly_nimm_scalar_predicate): New.
11580
11581 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11582
11583         PR target/68991
11584         * config/i386/constraints.md (Bm): New constraint.
11585         * config/i386/predicates.md (vector_memory_operand): New
11586         predicate.
11587         * config/i386/sse.md: Replace xm with xBm in plusminus and
11588         any_logic patterns.
11589
11590 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11591
11592         PR 1078
11593         * doc/extend.texi (V850 Function Attributes): New section.
11594         (V850 Variable Attributes): New section.
11595
11596 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11597
11598         PR 1078
11599         * doc/extend.texi (MicroBlaze Function Attributes): Document
11600         interrupt_handler and fast_interrupt attributes.
11601
11602 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
11603
11604         PR other/60465
11605         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
11606         for local symbolic operands.
11607         * config/ia64/predicates.md (local_symbolic_operand64): New
11608         predicate.
11609
11610 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11611
11612         PR rtl-optimization/68651
11613         * combine.c (combine_simplify_rtx): Canonicalize x + x into
11614         x << 1.
11615
11616 2016-01-05  Nathan Sidwell  <nathan@acm.org>
11617
11618         * alias.c (compare_base_decls): Use symtab_node::get.
11619
11620 2016-01-05  Nick Clifton  <nickc@redhat.com>
11621
11622         PR target/68770
11623         * ira-costs.c (copy_cost): Initialise the t_icode field of the
11624         secondary_reload_info structure.
11625
11626         PR target/66655
11627         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
11628         decls if weak support is available.
11629
11630 2016-01-04  Martin Sebor  <msebor@redhat.com>
11631
11632         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
11633
11634 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
11635
11636         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11637         OPTION_MASK_P9_DFORM.
11638
11639         * config/rs6000/constraints.md (wo constraint): New constraint for
11640         ISA 3.0 (power9).
11641
11642         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
11643         for wo constraint.
11644         (rs6000_init_hard_regno_mode_ok): Likewise.
11645
11646         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
11647         wo constraint.
11648
11649         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
11650         expanders not to have constraints.  Add support for ISA 3.0 xxperm
11651         instruction.  Add support for fusing xxlor with xxperm.
11652         (altivec_vperm_<mode>_internal): Likewise.
11653         (altivec_vperm_v8hiv16qi): Likewise.
11654         (altivec_vperm_<mode>v16q): Likewise.
11655         (altivec_vperm_<mode>_uns): Likewise.
11656         (vperm_v8hiv4si): Likewise.
11657         (vperm_v16qiv8hi): Likewise.
11658
11659         * doc/md.texi (RS/6000 constraints): Document wo constraint.
11660
11661 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
11662
11663         Update copyright years.
11664
11665         * gcc.c (process_command): Update copyright notice dates.
11666         * gcov-dump.c (print_version): Ditto.
11667         * gcov.c (print_version): Ditto.
11668         * gcov-tool.c (print_version): Ditto.
11669         * gengtype.c (create_file): Ditto.
11670         * doc/cpp.texi: Bump @copying's copyright year.
11671         * doc/cppinternals.texi: Ditto.
11672         * doc/gcc.texi: Ditto.
11673         * doc/gccint.texi: Ditto.
11674         * doc/gcov.texi: Ditto.
11675         * doc/install.texi: Ditto.
11676         * doc/invoke.texi: Ditto.
11677
11678 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11679
11680         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
11681         modes larger than TImode as TImode if NEON is not enabled.
11682
11683 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11684
11685         PR target/69100
11686         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
11687         mode for %f0-%f31 only if TARGET_FPU.
11688
11689 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11690
11691         PR target/69072
11692         * config/sparc/sparc.c (scan_record_type): Take into account subfields
11693         to compute the PACKED_P predicate.
11694         (function_arg_record_value): Minor tweaks.
11695
11696 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11697
11698         * doc/install.texi (--with-multilib-list): Describe the meaning of the
11699         option for arm*-*-* targets.
11700
11701 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
11702
11703         * doc/extend.texi (Common Function Attributes): Move docs for
11704         MSP430-specific attributes to....
11705         (MSP430 Function Attributes): ...here.  Delete the redundant
11706         entries and copy-edit the remaining text.
11707         (MSP430 Variable Attributes): Use uniform format for index
11708         entries and add a cross-reference to the corresponding function
11709         attribute docs.
11710
11711 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
11712
11713         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
11714         -finite-math typo.
11715         (x86 Options): Likewise.
11716
11717 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
11718
11719         PR 1078
11720
11721         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
11722         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
11723         to corresponding attribute.
11724
11725 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
11726
11727         * doc/extend.texi (Common Function Attributes) <noplt>: Move
11728         to correct alphabetization of table.  Copy-edit and correct
11729         markup.
11730         <stack_protect>: Likewise.
11731         <target_clones>: Likewise.
11732         <simd>: Likewise.
11733         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
11734         Correct punctuation.
11735         (Code Gen Options) <-fno-plt>: Copy-edit.
11736
11737 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11738
11739         PR target/68917
11740         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
11741         SI values.  Explicitly convert SI to DI and vice-versa.
11742
11743 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
11744
11745         PR tree-optimization/69070
11746         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
11747         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
11748
11749         PR sanitizer/69055
11750         * ubsan.c (ubsan_instrument_float_cast): Call
11751         initialize_sanitizer_builtins.
11752
11753         PR target/69015
11754         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
11755 \f
11756 Copyright (C) 2016 Free Software Foundation, Inc.
11757
11758 Copying and distribution of this file, with or without modification,
11759 are permitted in any medium without royalty provided the copyright
11760 notice and this notice are preserved.