re PR tree-optimization/23286 (Missed code hoisting optimization)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
2         Richard Biener  <rguenther@suse.de>
3
4         PR tree-optimization/23286
5         PR tree-optimization/70159
6         * doc/invoke.texi: Document -fcode-hoisting.
7         * common.opt (fcode-hoisting): New flag.
8         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
9         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
10         (do_regular_insertion): Rename to ...
11         (do_pre_regular_insertion): ... this and amend general comments
12         on insertion strathegy.
13         (do_partial_partial_insertion): Rename to ...
14         (do_pre_partial_partial_insertion): ... this.
15         (do_hoist_insertion): New function.
16         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
17         and call do_hoist_insertion properly.
18         (insert): Adjust.
19         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
20         (pass_pre::execute): Register hoist_insert stats.
21
22 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
23
24         PR middle-end/71716
25         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
26         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
27         is different from mode's bitsize.  Small cleanup.
28
29 2016-07-12  Richard Biener  <rguenther@suse.de>
30
31         PR rtl-optimization/68961
32         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
33         to simplify to a non-constant.
34
35 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
36
37         PR middle-end/71758
38         * omp-low.c (expand_omp_target): Gimplify device.
39
40         PR tree-optimization/71823
41         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
42         to get vec_oprnds2 from op2.
43
44 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
45
46         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
47         Hoist common subexpressions.
48         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
49
50 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
51
52         PR target/71800
53         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
54         prevent generation of 'stxsiwx' on pre Power8 hardware.
55
56 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
57
58         * input.c: Include cpplib.h.
59         (selftest::temp_source_file): New class.
60         (selftest::temp_source_file::temp_source_file): New ctor.
61         (selftest::temp_source_file::~temp_source_file): New dtor.
62         (selftest::should_have_column_data_p): New function.
63         (selftest::test_should_have_column_data_p): New function.
64         (selftest::temp_line_table): New class.
65         (selftest::temp_line_table::temp_line_table): New ctor.
66         (selftest::temp_line_table::~temp_line_table): New dtor.
67         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
68         it to create a temp_line_table.
69         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
70         locations that are known to have column data.
71         (selftest::line_table_case): New struct.
72         (selftest::test_reading_source_line): Move tempfile handling
73         to class temp_source_file.
74         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
75         (selftest::assert_token_loc_eq): New function.
76         (ASSERT_TOKEN_LOC_EQ): New macro.
77         (selftest::test_lexer): New function.
78         (selftest::boundary_locations): New array.
79         (selftest::input_c_tests): Call test_should_have_column_data_p.
80         Loop over a test matrix of interesting values of location and
81         default_range_bits, calling test_lexer on each case in the matrix.
82         Move call to test_accessing_ordinary_linemaps into the matrix.
83         * selftest.h (ASSERT_EQ): Reimplement in terms of...
84         (ASSERT_EQ_AT): New macro.
85
86 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
87
88         PR target/71801
89         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
90         Don't convert TImode in debug insn.
91
92 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
93
94         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
95         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
96         (tree_type_common::lang_flag_7): New.
97         (tree_type_common::spare): Reduce size.
98         * tree.h (TYPE_ALIGN_OK): Remove.
99         (TYPE_LANG_FLAG_7): New.
100         (get_inner_reference): Adjust header.
101         * print-tree.c (print_node): Adjust.
102         * expr.c (get_inner_reference): Remove parameter keep_aligning.
103         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
104         calls to get_inner_reference.
105         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
106         handling of TYPE_ALIGN_OK.
107         * builtins.c (get_object_alignment_2): Adjust call to
108         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
109         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
110         TYPE_ALIGN_OK.
111         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
112         * cfgexpand.c (expand_debug_expr): Likewise.
113         * dbxout.c (dbxout_expand_expr): Likewise.
114         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
115         loc_list_from_tree, fortran_common): Likewise.
116         * fold-const.c (optimize_bit_field_compare,
117         decode_field_reference, fold_unary_loc, fold_comparison,
118         split_address_to_core_and_offset): Likewise.
119         * gimple-laddress.c (execute): Likewise.
120         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
121         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
122         * hsa-gen.c (gen_hsa_addr): Likewise.
123         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
124         * tsan.c (instrument_expr): Likewise.
125         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
126         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
127         * tree-affine.c (tree_to_aff_combination,
128         get_inner_reference_aff): Adjust calls to get_inner_reference.
129         * tree-data-ref.c (split_constant_offset_1,
130         dr_analyze_innermost): Likewise.
131         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
132         * tree-sra.c (ipa_sra_check_caller): Likewise.
133         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
134         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
135         bswap_replace): Likewise.
136         * tree-vect-data-refs.c (vect_check_gather,
137         vect_analyze_data_refs): Likewise.
138         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
139         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
140         TYPE_ALIGN_OK.
141
142 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
143
144         * Makefile.in (selftest-valgrind): New phony target.
145         * function-tests.c (selftest::build_cfg): Delete pass instances
146         created by the test.
147         (selftest::convert_to_ssa): Likewise.
148         (selftest::test_expansion_to_rtl): Likewise.
149         * tree-cfg.c (selftest::test_linear_chain): Release dominator
150         vectors.
151         (selftest::test_diamond): Likewise.
152
153 2016-07-11  Richard Biener  <rguenther@suse.de>
154
155         PR tree-optimization/71816
156         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
157         than replacing all of its operands.
158
159 2016-07-11  Alan Modra  <amodra@gmail.com>
160
161         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
162         (ctr<mode>): Add unspec.
163         (ctr<mode>_internal*): Likewise.
164
165 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
166
167         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
168         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
169
170 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
171
172         PR rtl-optimization/71621
173         * lra-constraints.c (process_alt_operands): Check combination of
174         reg class and mode.
175
176 2016-07-08  Jason Merrill  <jason@redhat.com>
177             Richard Biener  <rguenther@suse.de>
178
179         P0145: Refining Expression Order for C++.
180         * gimplify.c (initial_rhs_predicate_for): New.
181         (gimplfy_modify_expr): Gimplify RHS before LHS.
182
183 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
184
185         PR target/71297
186         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
187         Allow standard error handling to take over when a wrong number
188         of arguments is presented to __builtin_vec_ld () or
189         __builtin_vec_st ().
190
191 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
192
193         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
194         variants.
195         (smin): Likewise.
196         (fmax): New entry.
197         (fmin): Likewise.
198         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
199         __builtin_aarch64_fmaxv2sf.
200         (vmaxnmq_f32): Likewise.
201         (vmaxnmq_f64): Likewise.
202         (vminnm_f32): Likewise.
203         (vminnmq_f32): Likewise.
204         (vminnmq_f64): Likewise.
205
206 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
207
208         PR target/71806
209         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
210         enable -mfloat128-hardware by default.
211         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
212         that IEEE 128-bit hardware support needs.
213         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
214         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
215         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
216         floating point requires.
217         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
218         -mfloat128 and -mfloat128-hardware changes.
219
220 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
221
222         PR tree-optimization/71667
223         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
224
225 2016-07-08  Martin Liska  <mliska@suse.cz>
226
227         PR middle-end/71606
228         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
229         folding produces SAVE_EXPRs, thus return false for the type.
230
231 2016-07-07  Martin Liska  <mliska@suse.cz>
232
233         * file-find.c (remove_prefix): New function.
234         * file-find.h (remove_prefix): Declare the function.
235         * gcc-ar.c (main): Skip a folder of the wrapper if
236         a wrapped binary would point to the same file.
237
238 2016-07-07  Jan Hubicka  <jh@suse.cz>
239
240         * tree-scalar-evolution.c (iv_can_overflow_p): export.
241         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
242         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
243
244 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
245
246         PR ipa/71624
247         * ipa-inline-analysis.c (compute_inline_parameters): Set
248         local.can_change_signature to false for intrumentation
249         thunk callees.
250
251 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
252
253         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
254         with TARGET_HAVE_MOVT.
255         (TARGET_HAVE_MOVT): Define.
256         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
257         availability with TARGET_HAVE_MOVT.
258         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
259         availability.
260         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
261         TARGET_THUMB2.
262         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
263         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
264         * config/arm/constraints.md (define_constraint "j"): Use
265         TARGET_HAVE_MOVT to check MOVT availability.
266
267 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
268
269         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
270
271 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
272
273         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
274         (armv8-m.main): Likewise.
275         (armv8-m.main+dsp): Likewise.
276         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
277         (FL_FOR_ARCH8M_MAIN): Likewise.
278         * config/arm/arm-tables.opt: Regenerate.
279         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
280         armv8-m.main+dsp to BE8_LINK_SPEC.
281         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
282         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
283         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
284         Baseline and Mainline.
285         (arm_option_override_internal): Also disable arm_restrict_it when
286         !arm_arch_notm.  Update comment for -munaligned-access to also cover
287         ARMv8-M Baseline.
288         (arm_file_start): Increase buffer size for printing architecture name.
289         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
290         and armv8-m.main+dsp.
291         (mno-unaligned-access): Clarify that this is disabled by default for
292         ARMv8-M Baseline architectures as well.
293
294 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
295
296         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
297         decide whether to prevent some libgcc routines being included for some
298         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
299         link between this condition and the one in
300         libgcc/config/arm/lib1func.S.
301
302 2016-07-07  Richard Biener  <rguenther@suse.de>
303
304         * tree-ssa-pre.c: Include alias.h.
305         (compute_avail): If we have multiple VN_REFERENCEs with the
306         same hashtable entry adjust that to make it a valid replacement
307         for all of them with respect to alignment and aliasing
308         when doing insertion.
309         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
310         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
311
312 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
313
314         PR target/70098
315         PR target/71763
316         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
317         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
318         constraint.
319
320 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
321
322         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
323         (adjust_mems): Adjust.
324         (adjust_insn): Likewise.
325         (prepare_call_arguments): Likewise.
326
327 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
328
329         * gcse.c (struct ls_expr): Make stores field a vector.
330         (ldst_entry): Adjust.
331         (free_ldst_entry): Likewise.
332         (print_ldst_list): Likewise.
333         (compute_ld_motion_mems): Likewise.
334         (update_ld_motion_stores): Likewise.
335
336 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
337
338         * gcse.c (struct ls_expr): Remove loads field.
339         (ldst_entry): Adjust.
340         (free_ldst_entry): Likewise.
341         (print_ldst_list): Likewise.
342         (compute_ld_motion_mems): Likewise.
343
344 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
345
346         * store-motion.c (struct st_expr): Make antic_stores a vector.
347         (st_expr_entry): Adjust.
348         (free_st_expr_entry): Likewise.
349         (print_store_motion_mems): Likewise.
350         (find_moveable_store): Likewise.
351         (compute_store_table): Likewise.
352         (remove_reachable_equiv_notes): Likewise.
353         (replace_store_insn): Likewise.
354         (build_store_vectors): Likewise.
355
356 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
357
358         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
359         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
360
361 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
362
363         PR tree-optimization/71518
364         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
365         misalign also for outer loops with negative step.
366
367 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
368
369         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
370         (cortex_a53_shift): Add mov_shift.
371         (cortex_a53_shift_reg): Add new reservation for register shifts.
372         (cortex_a53_alu): Remove bfm.
373         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
374         (cortex_a53_alu_extr): Add new reservation for EXTR.
375         (bypasses): Improve bypass modelling.
376
377 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
378
379         PR target/50739
380         * config/avr/avr.c (avr_asm_select_section): Strip off
381         SECTION_DECLARED from flags when calling get_section.
382
383 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
384
385         * tree-vectorizer.h (vect_memory_access_type): Add
386         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
387         * tree-vect-stmts.c (compare_step_with_zero): New function.
388         (perm_mask_for_reverse): Move further up file.
389         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
390         step is negative.
391         (get_negative_load_store_type): New function.
392         (get_load_store_type): Call it.  Add an ncopies argument.
393         (vectorizable_mask_load_store): Update call accordingly and
394         remove tests for negative steps.
395         (vectorizable_store, vectorizable_load): Likewise.  Handle new
396         memory_access_types.
397
398 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
399
400         * tree-vectorizer.h (vect_memory_access_type): New enum.
401         (_stmt_vec_info): Add a memory_access_type field.
402         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
403         (vect_model_store_cost): Take an access type instead of a boolean.
404         (vect_model_load_cost): Likewise.
405         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
406         vect_model_store_cost and vect_model_load_cost.
407         * tree-vect-stmts.c (vec_load_store_type): New enum.
408         (vect_model_store_cost): Take an access type instead of a
409         store_lanes_p boolean.  Simplify tests.
410         (vect_model_load_cost): Likewise, but for load_lanes_p.
411         (get_group_load_store_type, get_load_store_type): New functions.
412         (vectorizable_store): Use get_load_store_type.  Record the access
413         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
414         (vectorizable_load): Likewise.
415         (vectorizable_mask_load_store): Likewise.  Replace is_store
416         variable with vls_type.
417
418 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
419
420         * tree-vectorizer.h (vect_grouped_load_supported): Add a
421         single_element_p parameter.
422         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
423         Check the PR65518 case here rather than in vectorizable_load.
424         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
425         * tree-vect-stmts.c (vectorizable_load): Likewise.
426
427 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
428
429         * tree-vectorizer.h (gather_scatter_info): New structure.
430         (vect_check_gather_scatter): Return a bool rather than a decl.
431         Replace return-by-pointer arguments with a single
432         gather_scatter_info *.
433         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
434         (vect_analyze_data_refs): Update call accordingly.
435         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
436         (vectorizable_mask_load_store): Likewise.  Also record the
437         offset dt and vectype in the gather_scatter_info.
438         (vectorizable_store): Likewise.
439         (vectorizable_load): Likewise.
440
441 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
442
443         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
444         strided groups, use the cost of N scalar accesses instead
445         of ncopies vector accesses.
446         (vect_model_load_cost): Likewise.
447
448 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
449
450         * tree-vect-stmts.c (vect_cost_group_size): Delete.
451         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
452         variable to indicate when once-per-group costs are being used.
453         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
454
455 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
456
457         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
458         peeling-for-gaps condition.
459
460 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
461
462         * config/s390/s390.c (s390_expand_vec_init): Force initializer
463         element to register if it doesn't match general_operand.
464
465 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
466             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
467
468         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
469         prototype.
470         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
471         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
472         (SIGNBIT): New mode iterator.
473         (Fsignbit): New mode attribute.
474         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
475         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
476         when direct moves are available.
477         (signbit<mode>2_dm): New define_insn_and_split).
478         (signbit<mode>2_dm2): New define_insn.
479
480 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
481
482         PR rtl-optimization/71594
483         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
484         into subregs of appropriate mode before trying to emit a conditional
485         move.
486
487 2016-07-05  Jan Hubicka  <jh@suse.cz>
488
489         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
490         (simple_iv): Use it.
491
492 2016-07-05  Jan Hubicka  <jh@suse.cz>
493
494         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
495
496 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
497
498         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
499         "offmemok".
500
501 2016-07-05  Jan Hubicka  <jh@suse.cz>
502
503         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
504         IV can overflow.
505
506 2016-07-05  Richard Biener  <rguenther@suse.de>
507
508         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
509         Handle empty else block.
510         (is_feasible_trace): Likewise.
511         (split_paths): Likewise.
512
513 2016-07-05  Richard Biener  <rguenther@suse.de>
514
515         * tree-loop-distribution.c (distribute_loop): Fix issue with
516         the cost model loop.
517
518 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
519
520         * config/arm/neon-testgen.ml: Delete.
521         * config/arm/neon.ml: Delete.
522
523 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
524
525         PR c++/71739
526         * tree.c (attribute_value_equal): Use get_attribute_name instead of
527         directly using TREE_PURPOSE.
528
529 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
530
531         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
532         * config/aarch64/aarch64_neon.h: Likewise.
533         * config/aarch64/arm_neon.h: Likewise.
534         * config/aarch64/atomics.md: Likewise.
535         * config/aarch64/aarch64-simd-builtins.def: Likewise.
536         * doc/invoke.texi: Likewise.
537
538 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
539
540         * config/s390/s390.md: Add "z13" cpu_facility.
541         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
542         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
543         condition" type instructions.
544
545 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
546             Jeff Law  <law@redhat.com>
547
548         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
549         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
550
551 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
552
553         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
554         permutation for TARGET_AVX512F.
555         (ix86_expand_vec_one_operand_perm_avx512): New function.
556         (expand_vec_perm_1): Invoke introduced function.
557         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
558         it may be not valid after vectorization.
559
560 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
561
562         PR target/63874
563         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
564         typo in comment.  Only force to memory if it is a weak
565         external reference.
566
567 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
568             Jiong Wang  <jiong.wang@arm.com>
569
570         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
571         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
572         (AARCH64_FL_F16): New.
573         (AARCH64_FL_FOR_ARCH8_2): New.
574         (AARCH64_ISA_8_2): New.
575         (AARCH64_ISA_F16): New.
576         (TARGET_FP_F16INST): New.
577         (TARGET_SIMD_F16INST): New.
578         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
579         ("fp"): Disabling "fp" also disables "fp16".
580         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
581         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
582         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
583         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
584
585 2016-07-04  Jan Beulich  <jbeulich@suse.com>
586
587         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
588
589 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
590
591         PR target/71720
592         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
593         the insns, use an insn form that does not adjust the offset on
594         little endian systems.
595
596 2016-07-01  Jan Beulich  <jbeulich@suse.com>
597
598         * varasm.c (get_variable_section): Validate initializer in
599         named .bss-like sections.
600
601 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
602
603         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
604         Exchange the order of the second and third operands in the vpermr
605         instruction tmeplate.
606
607 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
608
609         PR target/71698
610         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
611         Disallow TDmode values.
612
613 2016-07-01  Alan Modra  <amodra@gmail.com>
614
615         PR rtl-optimization/71709
616         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
617         being set, not referenced.
618
619 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
620
621         PR tree-optimization/70729
622         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
623         of loop since it can be not valid after transformation.
624
625 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
626
627         * config/arm/arm.c (thumb_reload_in_hi): Delete.
628         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
629
630 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
631
632         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
633         for NULL decl.
634
635 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
636
637         PR target/71677
638         * config/rs6000/constraints.md (wY constraint): New constraint to
639         match the requirements for the LXSD and STXSD instructions.
640         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
641         predicate to match the requirements for the LXSD and STXSD
642         instructions.
643         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
644         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
645         to make sure that the bottom 2 bits of offset are 0, the address
646         form is offsettable, and no updating is done in the address mode.
647         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
648         (movdi_internal32): Likewise
649         (movdi_internal64): Likewise.
650
651 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
652
653         PR tree-optimization/71707
654         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
655         strinfo even for ADDR_EXPR ptr.
656
657 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
658
659         * config/rs6000/altivec.md (darn_32): Change the condition to
660         TARGET_P9_MISC instead of TARGET_MODULO.
661         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
662         condition expression.
663         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
664         condition expression.
665         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
666         (DFP_TEST): New code iterator.
667         (dfptstsfi_<code>_mode>): New define_expand.
668         (*dfp_sgnfcnc_<mode>): New define_insn.
669         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
670         definition next to BU_P9_MISC_1 definition and change the MASK
671         value to RS6000_BTM_P9_MISC.
672         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
673         (BU_P9_64BIT_MISC_0): Likewise.
674         (BU_P9_DFP_MISC_0): New macro definition.
675         (BU_P9_DFP_MISC_1): New macro definition.
676         (BU_P9_DFP_MISC_2): New macro definition.
677         (BU_P9_DFP_OVERLOAD_1): New macro definition.
678         (BU_P9_DFP_OVERLOAD_2): New macro definition.
679         (BU_P9_DFP_OVERLOAD_3): New macro definition.
680         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
681         (TSTSFI_LT_TD): Likewise.
682         (TSTSFI_EQ_DD): Likewise.
683         (TSTSFI_EQ_TD): Likewise.
684         (TSTSFI_GT_DD): Likewise.
685         (TSTSFI_GT_TD): Likewise.
686         (TSTSFI_OV_DD): Likewise.
687         (TSTSFI_OV_TD): Likewise.
688         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
689         (TSTSFI_LT_DD): Likewise.
690         (TSTSFI_LT_TD): Likewise.
691         (TSTSFI_EQ): Likewise.
692         (TSTSFI_EQ_DD): Likewise.
693         (TSTSFI_EQ_TD): Likewise.
694         (TSTSFI_GT): Likewise.
695         (TSTSFI_GT_DD): Likewise.
696         (TSTSFI_GT_TD): Likewise.
697         (TSTSFI_OV): Likewise.
698         (TSTSFI_OV_DD): Likewise.
699         (TSTSFI_OV_TD): Likewise.
700         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
701         overloaded test significance functions.
702         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
703         OPTION_MASK_P9_MISC into the representation of this mask.
704         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
705         of this mask.
706         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
707         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
708         non-zero.
709         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
710         argument is a 6-bit unsigned literal value if the icode argument
711         represents a DFP test significance built-in call.
712         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
713         flag used independently and in combination with the
714         RS6000_BTM_64BIT flag.
715         (rs6000_opt_masks): Add entry for power9-misc command-line option.
716         (rs6000_builtin_mask_names): Add entry for power9-misc
717         command-line option.
718         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
719         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
720         RS6000_BTM_P9_MISC macros.
721         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
722         option and change the description of the -mpower9-vector option to
723         enable only vector instructions, removing its erroneously claimed
724         support for scalar instructions.
725         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
726         the ISA 3.0 digital floating point test significance built-in
727         functions.
728
729 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
730
731         * config/aarch64/aarch64.c (cortexa35_tunings):
732         Enable AES fusion.  Use cortexa57_branch_cost.
733         (cortexa53_tunings): Use cortexa57_branch_cost.
734         (cortexa72_tunings): Use cortexa57_branch_cost.
735         Use AUTOPREFETCHER_WEAK.
736         (cortexa73_tunings): Use cortexa57_branch_cost.
737
738 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
739             James Greenhalgh  <james.greenhalgh@arm.com>
740
741         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
742         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
743         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
744         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
745         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
746         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
747         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
748         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
749         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
750         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
751         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
752         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
753         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
754         New intrinsics.
755
756 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
757             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
758
759         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
760         New define_insn.
761         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
762
763 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
764
765         PR driver/71651
766         * gcc.c (driver::build_option_suggestions): Pass "option" to
767         add_misspelling_candidates.
768         * opts-common.c (add_misspelling_candidates): Add "option" param;
769         use it to avoid adding negated forms for options marked with
770         RejectNegative.
771         * opts.h (add_misspelling_candidates): Add "option" param.
772
773 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
774
775         PR middle-end/71693
776         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
777         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
778         first when permuting bitwise operation with rotate.  Cast
779         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
780
781 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
782
783         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
784         for misspelled param names.
785         * params.c: Include spellcheck.h.
786         (find_param_fuzzy): New function.
787         * params.h (find_param_fuzzy): New prototype.
788         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
789         * spellcheck.h (struct edit_distance_traits<const char *>):
790         ...here.
791
792 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
793
794         * config/rs6000/predicates.md (const_0_to_7_operand): New
795         predicate, recognize 0..7.
796         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
797         support for doing extracts from V16QImode, V8HImode, V4SImode
798         under ISA 3.0.
799         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
800         vector extract support.
801         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
802         for ISA 3.0 vector extract.
803         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
804         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
805         extracts of a constant element number from small integer vectors
806         on 64-bit ISA 3.0 systems.
807         (vsx_extract_<mode>_di): Likewise.
808         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
809         say when we can do ISA 3.0 vector extracts.
810         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
811         registers, using the stxsiwx instruction.
812
813 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
814
815         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
816         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
817         qdf24xx_regmove_cost, qdf24xx_tunings): New.
818         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
819         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
820         * config/arm/arm.c (arm_qdf24xx_tune): New.
821
822 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
823
824         * config/aarch64/aarch64.c (cortexa53_tunings):
825         Increase loop alignment to 8.  Set function alignment to 16.
826         (cortexa35_tunings): Likewise.
827         (cortexa57_tunings): Increase loop alignment to 8.
828         (cortexa72_tunings): Likewise.
829         (cortexa73_tunings): Likewise.
830
831 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
832
833         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
834         for arm_fp16_ok and arm_fp16_hw.
835         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
836         arm_fp16_alternative.
837
838 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
839
840         PR tree-optimization/71655
841         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
842         types when swapping operands.
843
844 2016-06-29  Martin Liska  <mliska@suse.cz>
845
846         PR middle-end/71585
847         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
848         * ipa-inline-transform.c (inline_call): Remove unnecessary call
849         of build_optimization_node.
850
851 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
852
853         PR tree-optimization/70729
854         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
855         independent in loops having positive safelen value.
856         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
857         it may be not valid after vectorization.
858
859 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
860
861         PR tree-optimization/71625
862         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
863         is sorted by ascending list->offset.  If PTR is non-NULL and there is
864         previous strinfo, call get_stridx_plus_constant.
865         (get_stridx): Pass exp as second argument to get_addr_stridx.
866         (addr_stridxptr): Add missing list = list->next, so that there can be
867         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
868         the list is sorted by ascending list->offset.
869         (get_stridx_plus_constant): Adjust so that it can be also called with
870         ADDR_EXPR instead of SSA_NAME as PTR.
871         (handle_char_store): Pass NULL_TREE as second argument to
872         get_addr_stridx.
873
874 2016-06-29  Richard Biener  <rguenther@suse.de>
875
876         PR rtl-optimization/68961
877         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
878
879 2016-06-29  Richard Biener  <rguenther@suse.de>
880
881         PR middle-end/71002
882         * alias.c (component_uses_parent_alias_set_from): Handle
883         type punning through union accesses by using the union alias set.
884         * gimple.c (gimple_get_alias_set): Remove union type punning case.
885
886 2016-07-29  Richard Biener  <rguenther@suse.de>
887
888         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
889         precision not matching mode precision.
890
891 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
892
893         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
894         pa_output_arg_descriptor.
895         (call_val_symref_64bit_post_reload): Likewise.
896         (call_val_powf_64bit_post_reload): Likewise.
897         (sibcall_internal_symref_64bit): Likewise.
898         (sibcall_value_internal_symref_64bit): Likewise.
899
900 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
901
902         PR middle-end/71626
903         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
904         a constant, force its SUBREG_REG into memory or register instead
905         of whole op1.
906
907 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
908
909         PR target/58655
910         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
911         * doc/invoke.texi (AVR Options): Document it.
912
913 2016-06-28  Walter Lee  <walt@tilera.com>
914
915         * config/tilegx/linux.h: Do not include arch/icache.h
916         (CLEAR_INSN_CACHE): Provide inlined definition directly.
917         * config/tilepro/linux.h: Do not include arch/icache.h
918         (CLEAR_INSN_CACHE): Provide inlined definition directly.
919
920 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
921
922         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
923         for big-endian BIT_FIELD_REF.
924
925 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
926
927         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
928         ('size' attribute): Add '128'.
929         Include power9.md.
930         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
931         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
932         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
933         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
934         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
935         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
936         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
937         *trunc<mode>df2_odd): Set size attribute to '128'.
938         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
939         * config/rs6000/power6.md (power6-fp): Include dfp type.
940         * config/rs6000/power7.md (power7-fp): Likewise.
941         * config/rs6000/power8.md (power8-fp): Likewise.
942         * config/rs6000/power9.md: New file.
943         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
944         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
945         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
946         htmsimple.
947         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
948         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
949         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
950         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
951         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
952         dfp_dscri_<mode>): Change type attribute to dfp.
953         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
954         attribute to vecsimple.
955         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
956         and prefetch streams.
957         (rs6000_option_override_internal): Remove temporary code setting
958         tuning to power8.  Don't set rs6000_sched_groups for power9.
959         (last_scheduled_insn): Change to rtx_insn *.
960         (divide_cnt, vec_load_pendulum): New variables.
961         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
962         (rs6000_issue_rate): Set issue rate for Power9.
963         (is_power9_pairable_vec_type): New.
964         (power9_sched_reorder2): New.
965         (rs6000_sched_reorder2): Call new function for Power9 specific
966         reordering.
967         (insn_must_be_first_in_group): Remove Power9.
968         (insn_must_be_last_in_group): Likewise.
969         (force_new_group): Likewise.
970         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
971         Initialize divide_cnt/vec_load_pendulum.
972         (_rs6000_sched_context, rs6000_init_sched_context,
973         rs6000_set_sched_context): Handle context save/restore of new
974         variables.
975
976 2016-06-28  Richard Biener  <rguenther@suse.de>
977
978         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
979         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
980         COMPONENT_REF operand.
981         (nonoverlapping_component_refs_p): Likewise.
982         * stor-layout.c (start_bitfield_representative): Mark
983         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
984
985 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
986
987         * Makefile.in: Don't cat ../stage_current if it does not exist.
988
989         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
990         last argument is a bit-field.
991
992         PR rtl-optimization/71673
993         * internal-fn.c (expand_arith_overflow_result_store): Use
994         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
995         expand_simple_binop.
996
997         PR middle-end/66867
998         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
999         expand_ifn_atomic_compare_exchange): New functions.
1000         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
1001         * tree.h (build_call_expr_internal_loc): Rename to ...
1002         (build_call_expr_internal_loc_array): ... this.  Fix up type of
1003         last argument.
1004         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
1005         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
1006         ATOMIC_COMPARE_EXCHANGE result.
1007         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
1008         * gimple-fold.h (optimize_atomic_compare_exchange_p,
1009         fold_builtin_atomic_compare_exchange): New prototypes.
1010         * gimple-fold.c (optimize_atomic_compare_exchange_p,
1011         fold_builtin_atomic_compare_exchange): New functions..
1012         * tree-ssa.c (execute_update_addresses_taken): If
1013         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
1014         of call when finding addressable vars, and if such var becomes
1015         non-addressable, call fold_builtin_atomic_compare_exchange.
1016
1017 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
1018
1019         PR target/71670
1020         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
1021         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
1022
1023 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
1024
1025         * config/rs6000/rs6000.md ('type' attribute): Add
1026         veclogical,veccmpfx,vecexts,vecmove insn types.
1027         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
1028         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
1029         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
1030         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
1031         *nabs<mode>2_hw): Change type to vecmove.
1032         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
1033         *boolcc<mode>3_internal, *eqv<mode>3_internal,
1034         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
1035         *ieee_128bit_vsx_abs<mode>2_internal,
1036         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
1037         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
1038         *ieee128_mtvsrd_32bit): Change type to veclogical.
1039         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
1040         *movdi_internal32, *movdi_internal64): Update insn types.
1041         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
1042         vsx_extract_<mode>): Change type to veclogical.
1043         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
1044         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
1045         *vsx_sign_extend_si_v2di): Change type to vecexts.
1046         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
1047         type to veclogical.
1048         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
1049         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
1050         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
1051         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
1052         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
1053         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
1054         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
1055         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
1056         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
1057         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
1058         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
1059         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
1060         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
1061         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
1062         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
1063         (ppc7450-vecsimple): Add veclogical, vecmove.
1064         (ppc7450-veccmp): Add veccmpfx.
1065         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
1066         vecmove.
1067         (ppc8540_vector_compare): Add veccmpfx.
1068         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
1069         * config/rs6000/cell.md (cell-fp): Add fpsimple.
1070         (cell-vecsimple): Add veclogical, vecmove.
1071         (cell-veccmp): Add veccmpfx.
1072         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
1073         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
1074         veccmpfx.
1075         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
1076         * config/rs6000/power4.md (power4-fp): Add fpsimple.
1077         (power4-vecsimple): Add veclogical, vecmove.
1078         (power4-veccmp): Add veccmpfx.
1079         * config/rs6000/power5.md (power5-fp): Add fpsimple.
1080         * config/rs6000/power6.md (power6-fp): Add fpsimple.
1081         (power6-vecsimple): Add veclogical, vecmove.
1082         (power6-veccmp): Add veccmpfx.
1083         * config/rs6000/power7.md (power7-fp): Add fpsimple.
1084         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
1085         * config/rs6000/power8.md (power8-fp): Add fpsimple.
1086         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
1087         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
1088         * config/rs6000/titan.md (titan_fp): Add fpsimple.
1089         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
1090         fpsimple.
1091         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
1092
1093 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
1094
1095         PR target/71656
1096         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1097         OPTION_MASK_P9_DFORM_VECTOR.
1098         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
1099         disable -mpower9-dform-vector when using reload.
1100         (quad_address_p): Remove 'gpr_p' argument and all associated code.
1101         New 'strict' argument.  Update all callers.  Add strict addressing
1102         support.
1103         (rs6000_legitimate_offset_address_p): Remove call to
1104         virtual_stack_registers_memory_p.
1105         (rs6000_legitimize_reload_address): Add quad address support.
1106         (rs6000_legitimate_address_p): Move call to quad_address_p above
1107         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
1108         to account for new strict usage.
1109         (rs6000_output_move_128bit): Adjust quad_address_p args to account
1110         for new strict usage.
1111         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
1112
1113 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
1114
1115         PR target/70902
1116         PR target/71453
1117         PR target/71555
1118         PR target/71596
1119         PR target/71657
1120         * config/i386/i386.c (ix86_spill_class): Disable condition to
1121         always return NO_REGS.
1122
1123 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
1124
1125         * predict.c: Include gimple-pretty-print.h
1126         (predicted_by_loop_heuristics_p): Check also
1127         PRED_LOOP_EXIT_WITH_RECURSION
1128         (predict_loops): Find self recursive calls and use special purpose
1129         predictors for them; dump log about decisions.
1130         (pass_profile::execute): Dump info about #of iterations.
1131         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
1132         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
1133
1134 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
1135
1136         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
1137         output_asm_insn calls and shorten long lines.  Output .CALL
1138         argument descriptor using pa_output_arg_descriptor.  Add various
1139         inline $$dyncall and other optimizations.
1140         (pa_attr_length_indirect_call): Adjust ordering and lengths.
1141
1142 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
1143
1144         PR tree-optimization/71643
1145         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
1146         EH preds.
1147
1148         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
1149         leak a bitmap if dep_bb is NULL.
1150
1151         PR tree-optimization/71631
1152         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
1153         to rewrite_expr_tree even if negate_result, move new_lhs var
1154         declaration and initialization earlier, for powi_result set afterwards
1155         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
1156         if new_lhs != lhs, and don't shadow gsi var.
1157
1158 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
1159
1160         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
1161         Add in_loop parameter.
1162         (predict_loops): Add loop guard heuristics.
1163         * predict.def (PRED_LOOP_GUARD): New heuristics.
1164
1165 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
1166
1167         * predict.c: Include ipa-utils.h
1168         (tree_bb_level_prediction): Predict recursive calls.
1169         (tree_estimate_probability_bb): Skip inexpensive calls for call
1170         predictor.
1171         * predict.def (PRED_RECURSIVE_CALL): New.
1172
1173 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1174
1175         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
1176         (BU_FLOAT128_1): Likewise.
1177         (FABSQ): Likewise.
1178         (COPYSIGNQ): Likewise.
1179         (RS6000_BUILTIN_NANQ): Likewise.
1180         (RS6000_BUILTIN_NANSQ): Likewise.
1181         (RS6000_BUILTIN_INFQ): Likewise.
1182         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
1183         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
1184         (TARGET_FOLD_BUILTIN): New #define.
1185         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
1186         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
1187         (rs6000_fold_builtin): New target hook implementation, handling
1188         folding of 128-bit NaNs and infinities.
1189         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
1190         entries are filled in to avoid problems during bootstrap
1191         self-test; define builtins for 128-bit NaNs and infinities.
1192         (rs6000_opt_mask): Add entry for float128.
1193         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
1194         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
1195         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
1196         (const_str_type_node): New #define.
1197         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
1198         to a define_expand that dispatches to either copysign<mode>3_soft
1199         or copysign<mode>3_hard.
1200         (copysign<mode>3_hard): Rename from copysign<mode>3.
1201         (copysign<mode>3_soft): New define_insn.
1202         * doc/extend.texi: Document new builtins.
1203
1204 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1205
1206         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
1207         PRIu64 instead of lu.
1208
1209 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
1210
1211         PR debug/71642
1212         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
1213         copy the type name.
1214
1215 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1216
1217         PR tree-optimization/71647
1218         * omp-low.c (lower_rec_input_clauses): Convert
1219         omp_clause_aligned_alignment (c) to size_type_node for the
1220         last argument of __builtin_assume_aligned.
1221
1222 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
1223
1224         * configure.ac (calling ___tls_get_addr via GOT): New
1225         assembler/linker check.
1226         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
1227         assembler and linker supports calling ___tls_get_addr via GOT.
1228         Otherise, defined to 0.
1229         * config.in: Regenerated.
1230         * configure: Likewise.
1231         * config/i386/constraints.md (Yb): New constraint.
1232         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
1233         (REG_CLASS_NAMES): Likewise.
1234         (REG_CLASS_CONTENTS): Likewise.
1235         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
1236         the b constraint with the Yb constraint.  Call ___tls_get_addr
1237         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
1238         is 1.
1239         (*tls_local_dynamic_base_32_gnu): Likewise.
1240         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
1241         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
1242         (*tls_local_dynamic_base_64_<mode>): Likewise.
1243
1244 2016-06-24  Martin Liska  <mliska@suse.cz>
1245
1246         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
1247         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
1248         few functions.
1249         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
1250         argument to true if the expected number of iterations is
1251         loop-based.
1252
1253 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
1254
1255         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
1256         assemble for 32bit target.
1257         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
1258         and $ld_ix86_gld_32_opt to link for 32bit target.
1259         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
1260         * configure: Regenerate.
1261
1262 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1263
1264         * config/arm/arm.c (int_log2): Delete definition and prototype.
1265         (shift_op): Use exact_log2 instead of int_log2.
1266         (vfp3_const_double_for_fract_bits): Likewise.
1267
1268 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
1269
1270         * internal-fn.c (expand_arith_set_overflow): New function.
1271         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
1272         Use it.
1273         (expand_arith_overflow_result_store): Likewise.  Handle precision
1274         smaller than mode precision.
1275         * tree-vrp.c (extract_range_basic): For imag part, handle
1276         properly signed 1-bit precision result.
1277         * doc/extend.texi (__builtin_add_overflow): Document that last
1278         argument can't be pointer to enumerated or boolean type.
1279         (__builtin_add_overflow_p): Document that last argument can't
1280         have enumerated or boolean type.
1281
1282 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1283             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1284
1285         * config/rs6000/predicates.md (splat_input_operand): Rework.
1286         Don't allow constants, since the insns that use this predicate
1287         don't support constants.  Constants are handled by other insns
1288         that are created via combine.  During and after register
1289         allocation, only allow indexed or indirect addresses, and not
1290         general addresses.  Only allow modes supported by the hardware.
1291         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
1292         comment.  Move check for using VSPLTIS<x> to a common location,
1293         instead of doing it in two different places.
1294
1295 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
1296
1297         * config/i386/driver-i386.c (host_detect_local_cpu): Set
1298         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
1299         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
1300         signature_CENTAUR_ebx.
1301
1302 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
1303
1304         PR target/66232
1305         PR target/67400
1306         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
1307         (as_ix86_gas_32_opt): This.
1308         (ld_ix86_tls_ldm_opt): Renamed to ...
1309         (ld_ix86_gld_32_opt): This.
1310         (R_386_TLS_LDM reloc): Updated.
1311         (R_386_GOT32X reloc): New assembler/linker check.
1312         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
1313         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
1314         defined to 0.
1315         * config.in: Regenerated.
1316         * configure: Likewise.
1317         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
1318         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
1319         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
1320         if ix86_force_load_from_GOT_p returns true.
1321         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
1322         ix86_force_load_from_GOT_p returns true.
1323         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
1324         the external function address via the GOT slot.
1325         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
1326         HAVE_AS_IX86_GOT32X before returning false.
1327         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
1328         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
1329
1330 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
1331
1332         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
1333
1334 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1335
1336         * Makefile.in: Regenerate.
1337         * doc/install.texi: Document autoprofiledbootstrap.
1338
1339 2016-06-23  Andi Kleen  <ak@linux.intel.com>
1340
1341         * config/i386/gcc-auto-profile: New file.
1342
1343 2016-06-23  Martin Liska  <mliska@suse.cz>
1344
1345         PR middle-end/71619
1346         * predict.c (predict_loops): Revert the hunk that was removed
1347         in r237103.
1348
1349 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
1350
1351         * config.gcc: Add support for arm*-*-phoenix* targets.
1352         * config/arm/t-phoenix: New.
1353         * config/phoenix.h: New.
1354
1355 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
1356             H.J. Lu  <hongjiu.lu@intel.com>
1357
1358         PR target/67400
1359         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
1360         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
1361         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
1362         ix86_force_load_from_GOT_p returns true.
1363         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
1364         ix86_force_load_from_GOT_p returns true.
1365         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
1366         ix86_force_load_from_GOT_p returns true.
1367         (ix86_expand_move): Load the external function address via the
1368         GOT slot if ix86_force_load_from_GOT_p returns true.
1369         * config/i386/predicates.md (x86_64_immediate_operand): Return
1370         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
1371         (x86_64_zext_immediate_operand): Ditto.
1372
1373 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
1374
1375         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
1376
1377 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1378
1379         PR c/70339
1380         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
1381         * diagnostic.c (pedwarn_at_rich_loc): New function.
1382         * spellcheck.h (best_match::best_match): Add a
1383         "best_distance_so_far" optional parameter.
1384         (best_match::set_best_so_far): New method.
1385         (best_match::get_best_distance): New accessor.
1386         (best_match::get_best_candidate_length): New accessor.
1387
1388 2016-06-22  Nick Clifton  <nickc@redhat.com>
1389
1390         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
1391         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
1392         modes are accepted as well.
1393         (ucompare_loc_descriptor): Likewise.
1394         (minmax_loc_descriptor): Likewise.
1395         (clz_loc_descriptor): Likewise.
1396         (popcount_loc_descriptor): Likewise.
1397         (bswap_loc_descriptor): Likewise.
1398         (rotate_loc_descriptor): Likewise.
1399         (mem_loc_descriptor): Likewise.
1400         (loc_descriptor): Likewise.
1401
1402 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1403
1404         * common.opt (fdiagnostics-parseable-fixits): New option.
1405         * diagnostic.c: Include "selftest.h".
1406         (print_escaped_string): New function.
1407         (print_parseable_fixits): New function.
1408         (diagnostic_report_diagnostic): Call print_parseable_fixits.
1409         (selftest::assert_print_escaped_string): New function.
1410         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
1411         (selftest::test_print_escaped_string): New function.
1412         (selftest::test_print_parseable_fixits_none): New function.
1413         (selftest::test_print_parseable_fixits_insert): New function.
1414         (selftest::test_print_parseable_fixits_remove): New function.
1415         (selftest::test_print_parseable_fixits_replace): New function.
1416         (selftest::diagnostic_c_tests): New function.
1417         * diagnostic.h (struct diagnostic_context): Add field
1418         "parseable_fixits_p".
1419         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1420         -fdiagnostics-parseable-fixits.
1421         (-fdiagnostics-parseable-fixits): New option.
1422         * opts.c (common_handle_option): Handle
1423         -fdiagnostics-parseable-fixits.
1424         * selftest-run-tests.c (selftest::run_tests): Call
1425         selftest::diagnostic_c_tests.
1426         * selftest.h (selftest::diagnostic_c_tests): New prototype.
1427
1428 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
1429
1430         PR tree-optimization/71488
1431         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
1432         comparison of boolean vectors.
1433         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
1434         of boolean vectors using bitwise operations.
1435
1436 2016-06-22  Andreas Schwab  <schwab@suse.de>
1437
1438         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
1439         Remove declaration.
1440
1441 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
1442
1443         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
1444
1445 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1446
1447         * config/i386/i386.c (print_reg): Emit an error message on attempt to
1448         print FLAGS_REG.
1449
1450 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1451
1452         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
1453         * config/arm/arm-cores.def (cortex-a73): New entry.
1454         (cortex-a73.cortex-a35): Likewise.
1455         (cortex-a73.cortex-a53): Likewise.
1456         * config/arm/arm-tables.opt: Regenerate.
1457         * config/arm/arm-tune.md: Likewise.
1458         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
1459         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
1460         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
1461         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
1462         * doc/invoke.texi (ARM Options): Document cortex-a73,
1463         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
1464
1465 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1466
1467         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
1468         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
1469         (cortex-a73.cortex-a35): Likewise.
1470         (cortex-a73.cortex-a53): Likewise.
1471         * config/aarch64/aarch64-tune.md: Regenerate.
1472         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
1473         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
1474         -mcpu and -mtune.
1475
1476 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1477
1478         * configure.ac (gcc_cv_as_compress_debug): Remove
1479         --compress-debug-sections as extra as switch.
1480         Handle gas --compress-debug-sections=type.
1481         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
1482         Handle gld --compress-debug-sections=type.
1483         * configure: Regenerate.
1484
1485 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1486
1487         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
1488
1489 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
1490
1491         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
1492         (do_rewrite): likewise.
1493
1494 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1495
1496         * common/config/mep/mep-common.c: Remove.
1497         * config.gcc: Remove mep-* support.
1498         * config/mep/constraints.md: Remove.
1499         * config/mep/default.h: Remove.
1500         * config/mep/intrinsics.h: Remove.
1501         * config/mep/intrinsics.md: Remove.
1502         * config/mep/ivc2-template.h: Remove.
1503         * config/mep/mep-c5.cpu: Remove.
1504         * config/mep/mep-core.cpu: Remove.
1505         * config/mep/mep-default.cpu: Remove.
1506         * config/mep/mep-ext-cop.cpu: Remove.
1507         * config/mep/mep-intrin.h: Remove.
1508         * config/mep/mep-ivc2.cpu: Remove.
1509         * config/mep/mep-pragma.c: Remove.
1510         * config/mep/mep-protos.h: Remove.
1511         * config/mep/mep.c: Remove.
1512         * config/mep/mep.cpu: Remove.
1513         * config/mep/mep.h: Remove.
1514         * config/mep/mep.md: Remove.
1515         * config/mep/mep.opt: Remove.
1516         * config/mep/predicates.md: Remove.
1517         * config/mep/t-mep: Remove.
1518         * doc/install.texi: Remove mep-* documentation.
1519         * doc/md.texi: Likewise.
1520
1521 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1522
1523         * config.gcc: Remove support for avr-rtems.
1524         * config/avr/gen-avr-mmcu-specs.c: Likewise.
1525         * config/avr/rtems.h: Remove.
1526         * config/avr/t-rtems: Remove.
1527
1528 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1529
1530         * config.gcc: Remove m32r-rtems support.
1531         * config/m32r/rtems.h: Remove.
1532
1533 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1534
1535         * config.gcc: Remove h8300-rtems support.
1536         * config/h8300/rtems.h: Remove.
1537         * config/h8300/t-rtems: Remove.
1538
1539 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1540
1541         * config.gcc: Remove support for knetbsd.
1542         * configure.ac: Likewise.
1543         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
1544         * config/knetbsd-gnu.h: Remove.
1545         * configure: Regenerate.
1546
1547 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1548
1549         * config.gcc: Remove support for openbsd 2 and 3.
1550         * config/openbsd-oldgas.h: Remove.
1551
1552 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1553
1554         * config.gcc: Remove interix support.
1555         * config/i386/i386-interix.h: Remove.
1556         * config/i386/interix.opt: Remove.
1557         * config/i386/t-interix: Remove.
1558         * configure: Regenerate.
1559         * configure.ac: Remove interix support.
1560         * doc/install.texi: Remove interix documentation.
1561
1562 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1563
1564         * config/rs6000/rs6000.h: Add conditional preprocessing directives
1565         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
1566         not defined.
1567
1568 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1569
1570         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
1571         they are both PLACEHOLDER_EXPRs.
1572
1573 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1574
1575         * stor-layout.c (layout_type): Move setting complex MODE to
1576         layout_type, instead of setting it ahead of time by the caller.
1577         * tree.c (build_complex_type): Likewise.
1578
1579 2016-06-21  Martin Liska  <mliska@suse.cz>
1580
1581         * predict.c (force_edge_cold): Replace imposisble with
1582         impossible.
1583
1584 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
1585
1586         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
1587         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
1588
1589 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
1590
1591         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
1592
1593 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1594             Ilya Enkovich  <ilya.enkovich@intel.com>
1595
1596         PR target/71549
1597         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1598         New member function to convert V1TImode register to SUBREG
1599         TImode in debug insn.
1600         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
1601         after changing register mode to V1TImode.
1602
1603 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
1604
1605         * config/aarch64/aarch64-cores.def (vulcan): New core.
1606         * config/aarch64/aarch64-tune.md: Regenerate.
1607         * doc/invoke.texi: Document vulcan as an available option.
1608
1609 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1610
1611         * cse.c (canon_asm_operands): New function extracted from...
1612         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
1613         either standalone or member of a PARALLEL.
1614
1615 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
1616
1617         PR target/30417
1618         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
1619         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
1620         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
1621
1622 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
1623
1624         PR target/71103
1625         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
1626         constant addresses if can_create_pseudo_p.
1627
1628 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
1629
1630         PR tree-optimization/71588
1631         * tree-ssa-strlen.c (valid_builtin_call): New function.
1632         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
1633         it.
1634
1635 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
1636
1637         PR middle-end/71581
1638         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
1639         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
1640         for conversion of scalar user var to complex type and use the
1641         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
1642         punt.
1643
1644         PR rtl-optimization/71591
1645         * toplev.c (toplev::run_self_tests): If no_backend, complain and
1646         don't run any tests.
1647
1648 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
1649
1650         PR target/71571
1651         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
1652         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
1653         space for PIC with non-v32 and the common non-PIC "jump".
1654
1655 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
1656
1657         PR target/71559
1658         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
1659         returned values and add UN*/LTGT/*ORDERED cases with values matching
1660         D operand modifier on vcmp for AVX.
1661
1662 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1663
1664         * config/aarch64/aarch64.opt
1665         (mpc-relative-literal-loads): Rename internal option name.
1666         * config/aarch64/aarch64.c
1667         (aarch64_nopcrelative_literal_loads): Rename to
1668         aarch64_pcrelative_literal_loads.
1669         (aarch64_expand_mov_immediate): Likewise.
1670         (aarch64_secondary_reload): Likewise.
1671         (aarch64_can_use_per_function_literal_pools_p): Likewise.
1672         (aarch64_override_options_after_change_1): Rename and simplify logic.
1673         (aarch64_classify_symbol): Merge large model checks into switch,
1674         remove pc-relative load check.
1675
1676 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1677
1678         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
1679         costs relative to the cost of a register move.
1680
1681 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1682
1683         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
1684         (vcvt_n_f64_u64): Likewise.
1685         (vcvt_n_s64_f64): Likewise.
1686         (vcvt_n_u64_f64): Likewise.
1687         (vcvt_f64_s64): Likewise.
1688         (vrecpe_f64): Likewise.
1689         (vcvt_f64_u64): Likewise.
1690         (vrecps_f64): Likewise.
1691
1692 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1693
1694         * config/aarch64/aarch64.md
1695         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
1696         iterators.
1697         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
1698         attributes.
1699         * config/aarch64/aarch64-builtins.c
1700         (aarch64_types_binop_uss_qualifiers): Delete.
1701         (TYPES_BINOP_USS): Likewise.
1702         (aarch64_types_binop_sus_qualifiers): Likewise.
1703         (TYPES_BINOP_SUS): Likewise.
1704         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
1705         (TYPES_FCVTIMM_SUS): Likewise.
1706         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
1707         rather than BINOP.
1708         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
1709         (fcvtzs): Use SHIFTIMM rather than BINOP.
1710         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
1711
1712 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1713
1714         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
1715         costs relative to the cost of a register move.
1716
1717 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1718
1719         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
1720         Allow scalar/single vector modes to be tieable.
1721
1722 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1723
1724         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
1725
1726 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1727
1728         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
1729         "alignement".
1730         * tree.h (TYPE_ALIGN): Likewise.
1731
1732 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
1733
1734         PR target/71103
1735         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
1736
1737 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
1738
1739         * config/avr/avr.c (avr_print_operand): Fix "format not a string
1740         literal" build warnings.
1741         (avr_print_operand_address): Dito.
1742
1743 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
1744
1745         PR target/71375
1746         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
1747         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
1748
1749 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
1750
1751         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
1752
1753 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
1754
1755         PR bootstrap/71435
1756         * reload1.c (reload): Pass 0 to finish_spills when called because
1757         update_eliminables_and_spill returns true and remove did_spill.
1758         (finish_spills): Adjust comment and document GLOBAL parameter.
1759
1760 2016-06-17  DJ Delorie  <dj@redhat.com>
1761
1762         PR target/71338
1763         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
1764         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
1765         (umulqihi3_virt): Likewise.
1766         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
1767         (umulqihi3_real): Likewise.
1768
1769 2016-06-17  Martin Liska  <mliska@suse.cz>
1770
1771         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
1772
1773 2016-06-17  Martin Liska  <mliska@suse.cz>
1774
1775         * predict.def: PRED_LOOP_EXIT from 92 to 85.
1776
1777 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
1778
1779         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
1780         __FAST_MATH__.
1781         (vaddq_f32): Likewise.
1782         (vmul_f32): Likewise.
1783         (vmulq_f32): Likewise.
1784         (vsub_f32): Likewise.
1785         (vsubq_f32): Likewise.
1786
1787 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
1788
1789         PR tree-optimization/71347
1790         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
1791         cost for all uses in group.
1792
1793 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
1794
1795         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
1796         insert gimple seq if it's not empty.
1797
1798 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
1799
1800         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
1801         member OFFSET.
1802         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
1803         rather than OFFSET.
1804         (comp_dr_with_seg_len_pair): Ditto.
1805         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
1806         struct dr_with_seg_len_pair against DR_OFFSET.
1807         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
1808         DR_OFFSET directly.
1809
1810 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1811
1812         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
1813
1814 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
1815
1816         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
1817         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
1818         (pa_output_millicode_call): Likewise.
1819         (pa_output_call): Likewise.
1820         (pa_output_indirect_call): Likewise.
1821         (pa_asm_output_mi_thunk): Likewise.
1822
1823 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1824
1825         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
1826
1827 2016-06-16  Martin Liska  <mliska@suse.cz>
1828
1829         * predict.c (combine_predictions_for_insn): When we find a first
1830         match predictor, we should consider just predictors with
1831         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
1832         DS theory predictor.
1833         (combine_predictions_for_bb): Likewise.
1834
1835 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
1836
1837         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
1838         with base of reference to struct.
1839
1840 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
1841
1842         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
1843
1844 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1845
1846         PR target/71151
1847         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
1848         progmem_swtable_section.
1849         (progmem_swtable_section): Remove.
1850         (avr_asm_function_rodata_section): Remove.
1851         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
1852         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
1853
1854 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
1855
1856         * config/i386/driver-i386.c (host_detect_local_cpu): Set
1857         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
1858         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
1859         signature_CENTAUR_ebx.
1860         * config/i386/i386.c (ix86_option_override_internal): Add
1861         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
1862         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
1863         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
1864
1865 2016-06-16  Martin Liska  <mliska@suse.cz>
1866
1867         * predict.def: Add fortran loop preheader predictor.
1868         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
1869         fold IFN_BUILTIN_EXPECT with a known constant argument.
1870
1871 2016-06-16  Martin Liska  <mliska@suse.cz>
1872
1873         * predict.def: Add 'Fortran' to display text of all
1874         PRED_FORTRAN_* predictors.
1875
1876 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
1877
1878         PR target/71242
1879         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
1880         [IA64_BUILTIN_NANSQ]: Ditto.
1881         (ia64_fold_builtin): New function.
1882         (TARGET_FOLD_BUILTIN): New define.
1883         (ia64_init_builtins) Declare const_string_type node.
1884         Add __builtin_nanq and __builtin_nansq builtin functions.
1885         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
1886
1887 2016-06-16  Nick Clifton  <nickc@redhat.com>
1888
1889         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
1890         MSP430_HWMULT_ prefix to enum values.
1891         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
1892         * config/msp430/msp430.c: Update use of enum values.
1893         * config/msp430/msp430.md: Likewise.
1894         * config/msp430/msp430.opt: Likewise.
1895
1896 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
1897
1898         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
1899         of comparsions in the last iteration.
1900
1901 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
1902             Joern Rennecke  <joern.rennecke@embecosm.com>
1903
1904         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
1905         addresses.
1906         (arc_needs_pcl_p): Add GOTOFFPC.
1907         (arc_legitimate_pic_addr_p): Likewise.
1908         (arc_output_pic_addr_const): Likewise.
1909         (arc_legitimize_pic_address): Generate a pc-relative address using
1910         GOTOFFPC.
1911         (arc_output_libcall): Use @pcl syntax.
1912         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
1913         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
1914         (*movsi_insn): Use @pcl syntax.
1915         (doloop_begin_i): Likewise.
1916
1917 2016-06-16  Martin Liska  <mliska@suse.cz>
1918
1919         * predict.def: Define a new predictor.
1920
1921 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
1922
1923         * config/arc/arc.opt (mtp-regno): Update text.
1924
1925 2016-06-16  Renlin Li  <renlin.li@arm.com>
1926
1927         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
1928
1929 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
1930
1931         PR target/71554
1932         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
1933         (setcc + and peephole2): Likewise.
1934
1935         PR rtl-optimization/71532
1936         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
1937         memory slots.
1938
1939 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1940
1941         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
1942         DImode constants with XXSPLTIB in vector registers.
1943         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
1944         vsx_extract_<mode>_internal{1,2} into a single insn that handles
1945         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
1946         extraction of the element at the top of the register as a scalar
1947         value.
1948         (vsx_extract_<mode>_internal1): Likewise.
1949         (vsx_extract_<mode>_internal2): Likewise.
1950         * config/rs6000/constraints.md (wi constraint): Remove a comment
1951         about DImode not being allowed in Altivec registers.
1952         (wB constraint): New constraint for constants that can be
1953         generated in Altivec registers with VSPLTISW/VUPKHSW.
1954         * config/rs6000/predicates.md (xxspltib_constant_split): Update
1955         comments.
1956         (xxspltib_constant_nosplit): Likewise.
1957         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
1958         support for -mupper-regs-di to enable DImode to go into Altivec
1959         registers.
1960         (POWERPC_MASKS): Likewise.
1961         (power7 cpu): Likewise.
1962         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
1963         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
1964         for DImode being allowed in Altivec registers.  Update wi/wj
1965         constraints.  Set scalar_in_vmx_p flag.
1966         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
1967         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
1968         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
1969         (rs6000_opt_masks): Add -mupper-regs-di.
1970         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
1971         direct move to use wi and not wj.
1972         (lfiwzx): Likewise.
1973         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
1974         alternative.
1975         (floatunssi<mode>2_lfiwzx_mem): Likewise.
1976         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
1977         any VSX register, instead of just Altivec registers, to allow
1978         either operand to be an Altivec register or both.
1979         (fixuns_trunc<mode>di2_fctiduz): Likewise.
1980         (movdi_internal32): Add support for -mupper-regs-di.  Add support
1981         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
1982         the alternatives and attributes to be lined up to be easier to
1983         read.
1984         (movdi_internal64): Likewise.
1985         (64-bit DImode splitters): Change predicates to only split loading
1986         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
1987         load constants in ISA 3.0 or ISA 2.07 respectively.
1988         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1989         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
1990         mention -mcpu=power9 sets these options.
1991         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
1992         wB constraint.
1993
1994 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1995
1996         PR target/67353
1997         * config/avr/avr.c (avr_set_current_function): Warn misspelled
1998         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
1999         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
2000         by default to warn misspelled interrupt/ signal handler.
2001         * doc/invoke.texi (AVR Options): Document it. Update description
2002         for -nodevicelib option.
2003
2004 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2005
2006         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
2007         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
2008         (aarch64_<sur>shll2_n<mode>): Likewise.
2009
2010 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
2011
2012         PR middle-end/71529
2013         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
2014         DECL_CONTEXT for copied arguments.
2015
2016 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2017
2018         PR tree-optimization/71483
2019         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
2020         for slp
2021
2022 2016-06-15  Martin Liska  <mliska@suse.cz>
2023
2024         * predict.c (tree_predict_by_opcode): Call predict_edge_def
2025         instead of predict_edge w/o a probability.
2026
2027 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
2028
2029         PR tree-optimization/71439
2030         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
2031         live PHIs.
2032
2033 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2034
2035         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
2036         register subregs in SET_SRC.
2037
2038 2016-06-15  Richard Biener  <rguenther@suse.de>
2039
2040         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
2041         store restrictions.
2042
2043 2016-06-15  Richard Biener  <rguenther@suse.de>
2044
2045         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
2046         not consider dependences between accesses that belong to the
2047         same group.
2048         (vect_analyze_data_ref_dependences): Do not analyze read-read
2049         or self-dependences.
2050
2051 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2052
2053         * spellcheck-tree.c: Include spellcheck-tree.h rather than
2054         spellcheck.h.
2055         (find_closest_identifier): Reimplement in terms of
2056         best_match<tree,tree>.
2057         * spellcheck-tree.h: New file.
2058         * spellcheck.c (struct edit_distance_traits<const char *>): New
2059         struct.
2060         (find_closest_string): Reimplement in terms of
2061         best_match<const char *, const char *>.
2062         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
2063         overload to spellcheck-tree.h.
2064         (find_closest_identifier): Likewise.
2065         (struct edit_distance_traits<T>): New template.
2066         (class best_match): New class.
2067
2068 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2069
2070         * selftest-run-tests.c (selftest::run_tests): Call
2071         selftest::spellcheck_tree_c_tests.
2072         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
2073         * spellcheck-tree.c: Include selftest.h and stringpool.h.
2074         (selftest::test_find_closest_identifier): New function.
2075         (selftest::spellcheck_tree_c_tests): New function.
2076         * spellcheck.c (selftest::test_find_closest_string): Verify that
2077         the order of the vec does not affect the results for this case.
2078         (selftest::test_data): New array.
2079         (selftest::test_metric_conditions): New function.
2080         (selftest::spellcheck_c_tests): Add a test of case-comparison.
2081         Call selftest::test_metric_conditions.
2082
2083 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2084
2085         * config/rs6000/rs6000-builtin.def (commentary): Typo.
2086         (BU_P9_MISC_1): Likewise.
2087         (BU_P9_64BIT_MISC_0): Likewise.
2088         (BU_P9_MISC_0): Likewise.
2089
2090 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
2091
2092         * gcc-rich-location.c
2093         (gcc_rich_location::add_fixit_misspelled_id): New method.
2094         * gcc-rich-location.h
2095         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
2096
2097 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
2098
2099         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
2100         FreeBSD 11 and above.
2101
2102 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
2103
2104         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
2105
2106 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2107
2108         * expmed.h: Close parenthesis in "at your option" in copyright
2109         boilerplate.
2110         * lower-subreg.h: Likewise.
2111
2112 2016-06-14  Richard Biener  <rguenther@suse.de>
2113
2114         PR middle-end/71526
2115         * genmatch.c (expr::gen_transform): Use in_type for comparisons
2116         if available.
2117
2118 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2119
2120         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
2121         New function.
2122         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
2123         mask+shift version.
2124         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
2125         New prototype.
2126         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
2127         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
2128
2129 2016-06-14  Richard Biener  <rguenther@suse.de>
2130
2131         PR tree-optimization/71522
2132         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2133         copying into float copying.
2134
2135 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
2136
2137         PR tree-optimization/71520
2138         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
2139         (replace_block_by): Move user labels from bb1 to bb2.
2140
2141 2016-06-14  Richard Biener  <rguenther@suse.de>
2142
2143         PR middle-end/71310
2144         PR bootstrap/71510
2145         * expr.h (get_bit_range): Declare.
2146         * expr.c (get_bit_range): Export.
2147         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
2148         word_mode again to constrain the bitfield access.
2149
2150 2016-06-14  Richard Biener  <rguenther@suse.de>
2151
2152         PR tree-optimization/71521
2153         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
2154         division int_const_binop against zero divisor.
2155
2156 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2157
2158         * config/i386/i386.md (signbittf2): New expander.
2159         * config/i386/sse.md (ptesttf2): New insn pattern.
2160
2161 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2162
2163         PR bootstrap/71481
2164         * input.c (selftest::test_reading_source_line): Avoid reading from
2165         __FILE__ by creating a tempfile with known content and reading
2166         from that instead.
2167
2168 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2169
2170         * pretty-print.c (assert_pp_format_colored): Skip the test if
2171         GCC_COLORS is set.
2172         (test_pp_format): Remove comment about GCC_COLORS.
2173
2174 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2175
2176         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
2177         * pretty-print.c (assert_pp_format_va): Add location param and use
2178         it with ASSERT_STREQ_AT.
2179         (assert_pp_format): Add location param and pass it to
2180         assert_pp_format_va.
2181         (assert_pp_format_colored): Likewise.
2182         (ASSERT_PP_FORMAT_1): New.
2183         (ASSERT_PP_FORMAT_2): New.
2184         (ASSERT_PP_FORMAT_3): New.
2185         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
2186         explicitly, or implicitly via the above macros.
2187         * selftest.c (selftest::pass): Use a selftest::location rather
2188         than file and line.
2189         (selftest::fail): Likewise.  Print the function name.
2190         (selftest::fail_formatted): Likewise.
2191         (selftest::assert_streq): Use a selftest::location rather than
2192         file and line.
2193         * selftest.h (selftest::location): New struct.
2194         (SELFTEST_LOCATION): New macro.
2195         (selftest::pass): Accept a const location & rather than file
2196         and line.
2197         (selftest::fail): Likewise.
2198         (selftest::fail_formatted): Likewise.
2199         (selftest::assert_streq): Likewise.
2200         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
2201         (ASSERT_FALSE): Likewise.
2202         (ASSERT_EQ): Likewise.
2203         (ASSERT_NE): Likewise.
2204         (ASSERT_STREQ): Likewise.
2205         (ASSERT_PRED1): Likewise.
2206         (ASSERT_STREQ_AT): New macro.
2207
2208 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
2209
2210         * selftest.c (selftest::fail_formatted): New function.
2211         (selftest::assert_streq): New function.
2212         * selftest.h (selftests::fail_formatted): New decl.
2213         (selftest::assert_streq): New decl.
2214         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
2215
2216 2016-06-13  Jeff Law  <law@redhat.com>
2217
2218         PR tree-optimization/71403
2219         * tree-ssa-threadbackward.c
2220         (convert_and_register_jump_thread_path): No longer accept reference
2221         to path.  Do not pop items off the path anymore.
2222         (fsm_find_control_statement_thread_paths): Do not allow threading
2223         to a deeper loop nest.  Pop the last item off the path here rather
2224         than in convert_and_register_jump_thread_path.
2225
2226 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2227             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
2228
2229         [AArch64] Emit division using the Newton series
2230
2231         * config/aarch64/aarch64-protos.h
2232         (cpu_approx_modes): Add new member "division".
2233         (aarch64_emit_approx_div): Declare new function.
2234         * config/aarch64/aarch64.c
2235         (generic_approx_modes): New member "division".
2236         (exynosm1_approx_modes): Likewise.
2237         (xgene1_approx_modes): Likewise.
2238         (aarch64_emit_approx_div): Define new function.
2239         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
2240         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
2241         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
2242         * doc/invoke.texi (-mlow-precision-div): Describe new option.
2243
2244 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2245             Wilco Dijkstra  <wilco.dijkstra@arm.com>
2246
2247         [AArch64] Emit square root using the Newton series
2248
2249         * config/aarch64/aarch64-protos.h
2250         (aarch64_emit_approx_rsqrt): Replace with new function
2251         "aarch64_emit_approx_sqrt".
2252         (cpu_approx_modes): New member "sqrt".
2253         * config/aarch64/aarch64.c
2254         (generic_approx_modes): New member "sqrt".
2255         (exynosm1_approx_modes): Likewise.
2256         (xgene1_approx_modes): Likewise.
2257         (aarch64_emit_approx_rsqrt): Replace with new function
2258         "aarch64_emit_approx_sqrt".
2259         (aarch64_override_options_after_change_1): Handle new option.
2260         * config/aarch64/aarch64-simd.md
2261         (rsqrt<mode>2): Use new function instead.
2262         (sqrt<mode>2): New expansion and insn definitions.
2263         * config/aarch64/aarch64.md: Likewise.
2264         * config/aarch64/aarch64.opt
2265         (mlow-precision-sqrt): Add new option description.
2266         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
2267
2268 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
2269
2270         [AArch64] Add more choices for the reciprocal square root approximation
2271
2272         Allow a target to prefer such operation depending on the operation mode.
2273
2274         * config/aarch64/aarch64-protos.h
2275         (AARCH64_APPROX_MODE): New macro.
2276         (AARCH64_APPROX_{NONE,ALL}): Likewise.
2277         (cpu_approx_modes): New structure.
2278         (tune_params): New member "approx_modes".
2279         * config/aarch64/aarch64-tuning-flags.def
2280         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
2281         * config/aarch64/aarch64.c
2282         (generic_approx_modes): New core "cpu_approx_modes" structure.
2283         (exynosm1_approx_modes): Likewise.
2284         (xgene1_approx_modes): Likewise.
2285         (generic_tunings): New member "approx_modes".
2286         (cortexa35_tunings): Likewise.
2287         (cortexa53_tunings): Likewise.
2288         (cortexa57_tunings): Likewise.
2289         (cortexa72_tunings): Likewise.
2290         (exynosm1_tunings): Likewise.
2291         (thunderx_tunings): Likewise.
2292         (xgene1_tunings): Likewise.
2293         (use_rsqrt_p): New argument for the mode and use new member from
2294         "tune_params".
2295         (aarch64_builtin_reciprocal): Devise mode from builtin.
2296         (aarch64_optab_supported_p): New argument for the mode.
2297         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
2298
2299 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2300
2301         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
2302         RS6000_BTM_MODULO flag into the set of flags that are considered
2303         to be part of the common configuration.
2304
2305 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2306
2307         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
2308         difference unsigned.
2309         (vec_absdb): New macro for vector absolute difference unsigned
2310         byte.
2311         (vec_absdh): New macro for vector absolute difference unsigned
2312         half-word.
2313         (vec_absdw): New macro for vector absolute difference unsigned word.
2314         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
2315         (vadu<mode>3): New insn.
2316         (*p9_vadu<mode>3): New insn.
2317         * config/rs6000/rs6000-builtin.def (vadub): New built-in
2318         definition.
2319         (vaduh): New built-in definition.
2320         (vaduw): New built-in definition.
2321         (vadu): New overloaded built-in definition.
2322         (vadub): New overloaded built-in definition.
2323         (vaduh): New overloaded built-in definition.
2324         (vaduw): New overloaded built-in definition.
2325         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2326         overloaded vector absolute difference unsigned functions.
2327         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2328         the ISA 3.0 vector absolute difference unsigned built-in functions.
2329
2330 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2331
2332         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
2333         update shared_lookup_references only once after changing operands.
2334
2335 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
2336
2337         PR middle-end/71373
2338         * tree-nested.c (convert_nonlocal_omp_clauses)
2339         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
2340
2341         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
2342         * tree.def (CASE_LABEL_EXPR): Likewise.
2343
2344 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2345
2346         PR bootstrap/71481
2347         * input.c (test_builtins): Fix an assertion.
2348
2349 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2350
2351         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
2352         (paritysi2): Ditto.
2353         (isinfxf2): Ditto.
2354         (isinf<mode>2): Ditto.
2355
2356 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
2357
2358         * ggc-tests.c (test_finalization): Only test need_finalization_p
2359         for GCC_VERSION >= 4003.
2360
2361 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2362
2363         * config/s390/vecintrin.h: Fix file description in comment.
2364
2365 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2366
2367         * config/s390/s390-builtin-types.def: Change builtin type naming
2368         scheme to match builtin-types.def.
2369
2370 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
2371
2372         * fold-const.c (optimize_minmax_comparison): Remove.
2373         (fold_comparison): Remove call to the above.
2374         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
2375         New transformations.
2376
2377 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
2378
2379         PR tree-optimization/71416
2380         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
2381         multiple entries
2382
2383 2016-06-13  Martin Liska  <mliska@suse.cz>
2384
2385         * predict.c (enum predictor_reason): Prefix enum with REASON_.
2386         (combine_predictions_for_insn): Likewise.
2387         (prune_predictions_for_bb): Likewise.
2388         (combine_predictions_for_bb): Likewise.
2389
2390 2016-06-13  Richard Biener  <rguenther@suse.de>
2391
2392         PR tree-optimization/71505
2393         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
2394         assert match comment.
2395
2396 2016-06-13  Marek Polacek  <polacek@redhat.com>
2397
2398         PR middle-end/71476
2399         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
2400         gimplify_switch_expr.
2401         (warn_switch_unreachable_r): New function.
2402
2403 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2404
2405         PR target/71379
2406         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
2407         one.
2408
2409 2016-06-13  Richard Biener  <rguenther@suse.de>
2410
2411         PR middle-end/64516
2412         * fold-const.c (fold_unary_loc): Preserve alignment when
2413         folding a VIEW_CONVERT_EXPR into a MEM_REF.
2414
2415 2016-06-13  Martin Liska  <mliska@suse.cz>
2416
2417         PR sanitizer/71458
2418         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
2419         w/ -fsanitize=bounds.
2420
2421 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
2422
2423         * config/i386/i386.c (ix86_init_builtins): Calculate
2424         FLOAT128_FTYPE_CONST_STRING function type only once.
2425         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
2426         built-in functions are available for x86-32 and x86-64 targets.
2427
2428 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
2429
2430         PR target/71241
2431         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
2432         New primitive type.
2433         (FLOAT128_FTYPE_CONST_STRING): New function type.
2434         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
2435         [IX86_BUILTIN_NANSQ]: Ditto.
2436         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
2437         (ix86_init_builtin_types): Declare const_string_type_node.
2438         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
2439         builtin functions.
2440         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
2441         * doc/extend.texi (x86 Built-in Functions): Document
2442         __builtin_nanq and __builtin_nansq.
2443
2444 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
2445
2446         PR target/71061
2447         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
2448         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
2449         length for pop patterns.
2450         (arm_attr_length_push_multi): Update comments.
2451         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
2452         attribute.
2453         (*pop_multiple_with_writeback_and_return): Likewise.
2454         (*pop_multiple_with_return): Likewise.
2455
2456 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
2457
2458         PR middle-end/71310
2459         * fold-const.c (optimize_bit_field_compare): Don't try to use
2460         word_mode unconditionally for reading the bit field, look at
2461         DECL_BIT_FIELD_REPRESENTATIVE instead.
2462
2463 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
2464
2465         PR middle-end/71478
2466         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
2467         vector integer type.
2468
2469 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
2470
2471         PR middle-end/71494
2472         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
2473         without LABEL_DECL, set *handled_ops_p to false instead of true.
2474
2475 2016-06-10  Martin Sebor  <msebor@redhat.com>
2476
2477         PR c/71392
2478         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
2479         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
2480         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
2481         them.
2482         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
2483         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
2484         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
2485         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
2486         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
2487         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
2488         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
2489         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
2490
2491 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2492
2493         * config/arm/arm.h (pool_vector_label,
2494         return_used_this_function): Remove.
2495
2496 2016-06-10  Jeff Law  <law@redhat.com>
2497
2498         PR tree-optimization/71335
2499         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
2500         zero length paths here.
2501         (convert_and_register_jump_thread_path): Remove hacks related to
2502         duplicated blocks in the jump thread path.
2503         (fsm_find_control_statement_thread_paths): Avoid putting the same
2504         block on the thread path twice, but ensure the thread path is
2505         unchanged from the caller's point of view.
2506
2507 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
2508
2509         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
2510         * predict.def (PRED_LOOP_BRANCH): Remove.
2511
2512 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
2513
2514         * Makefile.in (OBJS): Add ggc-tests.o.
2515         (GTFILES): Add ggc-tests.c.
2516         * ggc-tests.c: New file.
2517         * selftest-run-tests.c (selftest::run_tests): Call
2518         selftest::ggc_tests_c_tests.
2519         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
2520
2521 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
2522
2523         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
2524
2525 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
2526
2527         PR sanitizer/71480
2528         * varasm.c (place_block_symbol): Adjust alignment for asan protected
2529         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
2530
2531 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
2532
2533         * profile.c: Include cfgloop.h.
2534         (branch_prob): Compute estimated number of iterations.
2535         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
2536         recompute estimate number of iterations from profile.
2537
2538 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2539
2540         PR inline-asm/68843
2541         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
2542         must be grouped on top of stack.  Don't force early clobber
2543         on ordinary reg outputs.
2544
2545 2016-06-10  Richard Biener  <rguenther@suse.de>
2546
2547         * targhooks.c (default_builtin_vectorization_cost): Adjust
2548         vec_construct cost.
2549
2550 2016-06-10  Richard Biener  <rguenther@suse.de>
2551
2552         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
2553         to fold the RHS to a constant if possible.
2554
2555 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2556
2557         PR middle-end/71373
2558         * tree-nested.c (convert_nonlocal_omp_clauses)
2559         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
2560         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2561         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
2562
2563         * gimplify.c (gimplify_adjust_omp_clauses): Discard
2564         OMP_CLAUSE_TILE.
2565         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
2566
2567         * omp-low.c (scan_sharing_clauses): Don't expect
2568         OMP_CLAUSE__CACHE_.
2569
2570 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
2571
2572         PR tree-optimization/71407
2573         PR tree-optimization/71416
2574         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
2575         BIT_FIELD_REF type.
2576
2577 2016-06-10  Richard Biener  <rguenther@suse.de>
2578
2579         PR middle-end/71477
2580         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
2581
2582 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2583
2584         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
2585
2586 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
2587             Jiong Wang  <jiong.wang@arm.com>
2588
2589         PR rtl-optimization/70751
2590         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
2591         spilled into memory.
2592
2593 2016-06-09  Jonathan Yong  <10walls@gmail.com>
2594
2595         Revert:
2596         2015-09-21  Jonathan Yong  <10walls@gmail.com>
2597
2598         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
2599         sysroot/usr/lib/32api for additional win32 libraries,
2600         fixes failing Cygwin bootstrapping.
2601
2602 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
2603
2604         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
2605         Delete.
2606
2607 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
2608
2609         PR bootstrap/71471
2610         * pretty-print.c (pp_indent): Specify that %p is printed in a
2611         host-dependent manner.
2612         (test_pp_format): Remove the test for %p.
2613
2614 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
2615
2616         * config/mips/mips.c (mips_output_jump): Fix formatting.
2617
2618 2016-06-09  Richard Biener  <rguenther@suse.de>
2619
2620         PR tree-optimization/71462
2621         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
2622         removed blocks.
2623
2624 2016-06-09  Martin Liska  <mliska@suse.cz>
2625
2626         * predict.c (dump_prediction): Add new argument.
2627         (enum predictor_reason): New enum.
2628         (struct predictor_hash): New struct.
2629         (predictor_hash::hash): New function.
2630         (predictor_hash::equal): Likewise.
2631         (not_removed_prediction_p): New function.
2632         (prune_predictions_for_bb): Likewise.
2633         (combine_predictions_for_bb): Prune predictions.
2634
2635 2016-06-09  Martin Liska  <mliska@suse.cz>
2636
2637         * predict.c (filter_predictions): New function.
2638         (remove_predictions_associated_with_edge): Use the filter
2639         function.
2640         (equal_edge_p): New function.
2641
2642 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
2643
2644         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
2645         Correct usage of @samp vs @option, add @samp where appropriate.
2646         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
2647         Add armv6s-m and document it, as it is no official ARM name.
2648
2649 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2650
2651         * ifcvt.c (struct noce_if_info): Add transform_name field.
2652         (noce_try_move): Set if_info->transform_name to the function name.
2653         (noce_try_ifelse_collapse): Likewise.
2654         (noce_try_store_flag): Likewise.
2655         (noce_try_inverse_constants): Likewise.
2656         (noce_try_store_flag_constants): Likewise.
2657         (noce_try_addcc): Likewise.
2658         (noce_try_store_flag_mask): Likewise.
2659         (noce_try_cmove): Likewise.
2660         (noce_try_cmove_arith): Likewise.
2661         (noce_try_minmax): Likewise.
2662         (noce_try_abs): Likewise.
2663         (noce_try_sign_mask): Likewise.
2664         (noce_try_bitop): Likewise.
2665         (noce_convert_multiple_sets): Likewise.
2666         (noce_process_if_block): Print if_info->transform_name to
2667         dump_file if transformation succeeded.
2668
2669 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2670
2671         * config/arm/cortex-a57.md (cortex_a57_alu):
2672         Handle csel type.
2673
2674 2016-06-08  Martin Sebor  <msebor@redhat.com>
2675             Jakub Jelinek  <jakub@redhat.com>
2676
2677         PR c++/70507
2678         PR c/68120
2679         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
2680         BUILT_IN_MUL_OVERFLOW_P): New builtins.
2681         * builtins.c: Include gimple-fold.h.
2682         (fold_builtin_arith_overflow): Handle
2683         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2684         (fold_builtin_3): Likewise.
2685         * doc/extend.texi (Integer Overflow Builtins): Document
2686         __builtin_{add,sub,mul}_overflow_p.
2687
2688 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
2689
2690         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
2691         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
2692
2693 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
2694
2695         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
2696         Rewrite, looking one level down for records and arrays.
2697
2698 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
2699
2700         * pretty-print.c: Include "selftest.h".
2701         (pp_format): Fix comment.
2702         (identifier_to_locale): Likewise.
2703         (selftest::test_basic_printing): New function.
2704         (selftest::assert_pp_format): New function.
2705         (selftest::test_pp_format): New function.
2706         (selftest::pretty_print_c_tests): New function.
2707         * selftest-run-tests.c (selftest::run_tests): Call
2708         selftest::pretty_print_c_tests.
2709         * selftest.h (pretty_print_c_tests): New declaration.
2710
2711 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
2712
2713         * invoke.texi (max-loop-headers-insns): Document.
2714         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
2715         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
2716         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
2717
2718 2016-06-08  Richard Biener  <rguenther@suse.de>
2719
2720         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
2721         on strided SLP loads and fall back to scalar loads in case
2722         we can't chunk them.
2723
2724 2016-06-08  Richard Biener  <rguenther@suse.de>
2725
2726         PR tree-optimization/71452
2727         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
2728         type used for the SSA rewrite has enough precision to cover
2729         the dynamic type of the location.
2730
2731 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
2732             Richard Biener  <rguenther@suse.de>
2733
2734         PR c++/71448
2735         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
2736         the same as DECL_P (base0) for indirect_base0.  Use equality_code
2737         in one further place.
2738
2739 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
2740
2741         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
2742         to one word if the field is known to overlap other words.
2743         (extract_bit_field_1): Likewise.
2744         (store_split_bit_field): Remove compensating code.
2745         (extract_split_bit_field): Likewise.
2746
2747 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
2748
2749         PR debug/71432
2750         PR ada/71413
2751         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
2752
2753 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2754
2755         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
2756         VDQF.
2757         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
2758         (arch64_addpv4sf): Delete.
2759         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
2760         "gen_aarch64_addpv4sf".
2761         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
2762         builtin.
2763         (vpadds_f32): Likewise.
2764         (vpaddq_f32): Likewise.
2765         (vpaddq_f64): Likewise.
2766
2767 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2768
2769         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
2770         VALLF.
2771         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
2772         to VALLF.  Rename to "fabd<mode>3".
2773         "*fabd_scalar<mode>3): Delete.
2774         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
2775         Use builtin.
2776         (vabdd_f64): Likewise.
2777         (vabd_f32): Likewise.
2778         (vabd_f64): Likewise.
2779         (vabdq_f32): Likewise.
2780         (vabdq_f64): Likewise.
2781
2782 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2783
2784         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
2785         VALLF.
2786         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
2787         "aarch64_rsqrts<mode>".
2788         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
2789         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
2790         builtin.
2791         (vrsqrtsd_f64): Likewise.
2792         (vrsqrts_f32): Likewise.
2793         (vrsqrts_f64): Likewise.
2794         (vrsqrtsq_f32): Likewise.
2795         (vrsqrtsq_f64): Likewise.
2796
2797 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2798
2799         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
2800         VALLF.
2801         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
2802         "aarch64_rsqrte<mode>".
2803         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
2804         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
2805         builtin.
2806         (vrsqrted_f64): Likewise.
2807         (vrsqrte_f32): Likewise.
2808         (vrsqrte_f64): Likewise.
2809         (vrsqrteq_f32): Likewise.
2810         (vrsqrteq_f64): Likewise.
2811
2812 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2813
2814         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
2815         (ucvtf): Likewise.
2816         (fcvtzs): Likewise.
2817         (fcvtzu): Likewise.
2818         * config/aarch64/aarch64-simd.md
2819         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
2820         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
2821         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
2822         Use builtin.
2823         (vcvt_n_f32_u32): Likewise.
2824         (vcvt_n_s32_f32): Likewise.
2825         (vcvt_n_u32_f32): Likewise.
2826         (vcvtq_n_f32_s32): Likewise.
2827         (vcvtq_n_f32_u32): Likewise.
2828         (vcvtq_n_f64_s64): Likewise.
2829         (vcvtq_n_f64_u64): Likewise.
2830         (vcvtq_n_s32_f32): Likewise.
2831         (vcvtq_n_s64_f64): Likewise.
2832         (vcvtq_n_u32_f32): Likewise.
2833         (vcvtq_n_u64_f64): Likewise.
2834         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
2835         (VSDQ_SDI): Likewise.
2836         (fcvt_target): Support V4DI, V4SI and V2SI.
2837         (FCVT_TARGET): Likewise.
2838
2839 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2840
2841         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
2842         (TYPES_BINOP_SUS): Likewise.
2843         (aarch64_simd_builtin_data): Update include file name.
2844         (aarch64_builtins): Likewise.
2845         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
2846         for conversion between scalar float-point and fixed-point.
2847         (ucvtf): Likewise.
2848         (fcvtzs): Likewise.
2849         (fcvtzu): Likewise.
2850         * config/aarch64/aarch64.md
2851         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
2852         pattern for conversion between scalar float to fixed-pointer.
2853         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
2854         (UNSPEC_FCVTZS): New UNSPEC enumeration.
2855         (UNSPEC_FCVTZU): Likewise.
2856         (UNSPEC_SCVTF): Likewise.
2857         (UNSPEC_UCVTF): Likewise.
2858         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
2859         Use builtin.
2860         (vcvtd_n_f64_u64): Likewise.
2861         (vcvtd_n_s64_f64): Likewise.
2862         (vcvtd_n_u64_f64): Likewise.
2863         (vcvtd_n_f32_s32): Likewise.
2864         (vcvts_n_f32_u32): Likewise.
2865         (vcvtd_n_s32_f32): Likewise.
2866         (vcvts_n_u32_f32): Likewise.
2867         * config/aarch64/iterators.md (fcvt_target): Support integer to float
2868         mapping.
2869         (FCVT_TARGET): Likewise.
2870         (FCVT_FIXED2F): New iterator.
2871         (FCVT_F2FIXED): Likewise.
2872         (fcvt_fixed_insn): New define_int_attr.
2873
2874 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
2875
2876         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
2877         some statements was removed.
2878
2879 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
2880
2881         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
2882         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
2883         (vect_can_advance_ivs_p): likewise.
2884         (vect_update_ivs_after_vectorizer): likewise.
2885         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
2886         (vect_analyze_scalar_cycles_1): likewise.
2887         (vect_analyze_loop_operations): likewise.
2888         (report_vect_op): likewise.
2889         (vect_is_slp_reduction): likewise.
2890         (vect_is_simple_reduction): likewise.
2891         (get_initial_def_for_induction): likewise.
2892         (vect_transform_loop): likewise.
2893         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
2894         (vect_recog_sad_pattern): likewise.
2895         (vect_recog_widen_sum_pattern): likewise.
2896         (vect_recog_widening_pattern): likewise.
2897         (vect_recog_divmod_pattern): likewise.
2898         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
2899         (vect_analyze_slp_instance): likewise.
2900         (vect_transform_slp_perm_load): likewise.
2901         (vect_schedule_slp_instance): likewise.
2902
2903 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
2904
2905         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
2906         (return_prediction): PRED_CONST_RETURN predict return as not taken.
2907         * predict.def (PRED_CONTINUE): Change hitrate 50->67
2908         (PRED_LOOP_BRANCH): Document predictor as broken.
2909         (PRED_LOOP_EXIT): Change hitrate 91->92.
2910         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
2911         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
2912         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
2913         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
2914         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
2915         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
2916         (PRED_CALL): Chane hitrate 71->67.
2917         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
2918         (PRED_GOTO): Document as unused right now.
2919         (PRED_CONST_RETURN): Change hitrate 67->69
2920         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
2921         (PRED_NULL_RETURN): Change hitrate 91->90.
2922         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
2923         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
2924         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
2925
2926 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
2927
2928         * config/rs6000/altivec.h: Add __builtin_vec_mul.
2929         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
2930         special case Altivec builtin.
2931         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
2932         VSX_BUILTIN_VEC_MUL (replaced with special case code).
2933         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
2934         code for ALTIVEC_BUILTIN_VEC_MUL.
2935         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
2936         for __builtin_vec_mul.
2937
2938 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
2939
2940         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
2941         -mno-htm.
2942
2943 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
2944
2945         * spellcheck.c (selftest::test_find_closest_string): New function.
2946         (spellcheck_c_tests): Call the above.
2947
2948 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2949
2950         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
2951
2952 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
2953
2954         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
2955         Yv=Yv,C alternatives.
2956
2957 2016-06-07  Richard Biener  <rguenther@suse.de>
2958
2959         PR c/61564
2960         * common.opt (ffast-math): Make Optimization.
2961
2962 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
2963             Prachi Godbole  <prachi.godbole@imgtec.com>
2964
2965         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
2966         `fabs' and `fneg' type attributes.
2967         (p5600_fpu_fabs): Add `fmove' to the comment.
2968
2969 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
2970
2971         * gimple.c: Include builtins.h
2972         (gimple_inexpensive_call_p): New function.
2973         * gimple.h (gimple_inexpensive_call_p): Declare.
2974         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
2975         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
2976         fix formatting.
2977
2978 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
2979
2980         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
2981         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
2982         warning_at_rich_loc, warning_n, pedwarn, permerror,
2983         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
2984         sorry, fatal_error, internal_error, internal_error_no_backtrace):
2985         Use the above.
2986
2987 2016-06-07  Richard Biener  <rguenther@suse.de>
2988
2989         PR tree-optimization/71428
2990         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
2991         BIT_FIELD_REF op vs. load.
2992
2993 2016-06-07  Richard Biener  <rguenther@suse.de>
2994
2995         PR middle-end/71423
2996         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
2997         for signed ops.
2998
2999 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3000
3001         * config/pa/pa.md (call): Generate indirect long calls to non-local
3002         functions on TARGET_64BIT.
3003         (call_value): Likewise.
3004
3005 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
3006
3007         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
3008         pattern and subsequent splitters.
3009         (call_val_reg_64bit_post_reload): Likewise.
3010
3011 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3012
3013         PR middle-end/71408
3014         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
3015         propagate_op_to_single_use.
3016
3017 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3018
3019         PR middle-end/71281
3020         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
3021
3022 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
3023
3024         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
3025         (enum x86_dirflag_state): New enum.
3026         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
3027         (machine_function): Remove needs_cld.
3028         (ix86_current_function_needs_cld): Remove.
3029         * config/i386/i386.c (ix86_set_func_type): Set
3030         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
3031         (ix86_expand_prologue): Do not emit CLD here.
3032         (ix86_dirflag_mode_needed): New function.
3033         (ix86_dirflag_mode_entry): Ditto.
3034         (ix86_mode_needed): Handle X86_DIRFLAG entity.
3035         (ix86_mode_after): Ditto.
3036         (ix86_mode_entry): Ditto.
3037         (ix86_mode_exit): Ditto.
3038         (ix86_emit_mode_set): Ditto.
3039         * config/i386/i386.md (strmov_singleop): Set
3040         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
3041         Do not set ix86_current_function_needs_cld.
3042         (rep_mov): Ditto.
3043         (strset_singleop): Ditto.
3044         (rep_stos): Ditto.
3045         (cmpstrnqi_nz_1): Ditto.
3046         (cmpstrnqi_1): Ditto.
3047         (strlenqi_1): Ditto.
3048
3049 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
3050
3051         PR tree-optimization/71259
3052         * tree-vect-slp.c (vect_get_constant_vectors): For
3053         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
3054         one for constant op, and use COND_EXPR for non-constant.
3055
3056 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
3057
3058         * Makefile.in (OBJS): Add function-tests.o,
3059         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
3060         selftest-run-tests.o.
3061         (OBJS-libcommon): Add selftest.o.
3062         (OBJS-libcommon-target): Add selftest.o.
3063         (all.internal): Add "selftest".
3064         (all.cross): Likewise.
3065         (selftest): New phony target.
3066         (s-selftest): New target.
3067         (selftest-gdb): New phony target.
3068         (COLLECT2_OBJS): Add selftest.o.
3069         * bitmap.c: Include "selftest.h".
3070         (selftest::test_gc_alloc): New function.
3071         (selftest::test_set_range): New function.
3072         (selftest::test_clear_bit_in_middle): New function.
3073         (selftest::test_copying): New function.
3074         (selftest::test_bitmap_single_bit_set_p): New function.
3075         (selftest::bitmap_c_tests): New function.
3076         * common.opt (fself-test): New.
3077         * diagnostic-show-locus.c: Include "selftest.h".
3078         (make_range): New function.
3079         (test_range_contains_point_for_single_point): New function.
3080         (test_range_contains_point_for_single_line): New function.
3081         (test_range_contains_point_for_multiple_lines): New function.
3082         (assert_eq): New function.
3083         (test_get_line_width_without_trailing_whitespace): New function.
3084         (selftest::diagnostic_show_locus_c_tests): New function.
3085         * et-forest.c: Include "selftest.h".
3086         (selftest::test_single_node): New function.
3087         (selftest::test_simple_tree): New function.
3088         (selftest::test_disconnected_nodes): New function.
3089         (selftest::et_forest_c_tests): New function.
3090         * fold-const.c: Include "selftest.h".
3091         (selftest::assert_binop_folds_to_const): New function.
3092         (selftest::assert_binop_folds_to_nonlvalue): New function.
3093         (selftest::test_arithmetic_folding): New function.
3094         (selftest::fold_const_c_tests): New function.
3095         * function-tests.c: New file.
3096         * gimple.c: Include "selftest.h".
3097         Include "gimple-pretty-print.h".
3098         (selftest::verify_gimple_pp): New function.
3099         (selftest::test_assign_single): New function.
3100         (selftest::test_assign_binop): New function.
3101         (selftest::test_nop_stmt): New function.
3102         (selftest::test_return_stmt): New function.
3103         (selftest::test_return_without_value): New function.
3104         (selftest::gimple_c_tests): New function.
3105         * hash-map-tests.c: New file.
3106         * hash-set-tests.c: New file.
3107         * input.c: Include "selftest.h".
3108         (selftest::assert_loceq): New function.
3109         (selftest::test_accessing_ordinary_linemaps): New function.
3110         (selftest::test_unknown_location): New function.
3111         (selftest::test_builtins): New function.
3112         (selftest::test_reading_source_line): New function.
3113         (selftest::input_c_tests): New function.
3114         * rtl-tests.c: New file.
3115         * selftest-run-tests.c: New file.
3116         * selftest.c: New file.
3117         * selftest.h: New file.
3118         * spellcheck.c: Include "selftest.h".
3119         (selftest::levenshtein_distance_unit_test_oneway): New function,
3120         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
3121         (selftest::levenshtein_distance_unit_test): Likewise.
3122         (selftest::spellcheck_c_tests): Likewise.
3123         * toplev.c: Include selftest.h.
3124         (toplev::run_self_tests): New.
3125         (toplev::main): Handle -fself-test.
3126         * toplev.h (toplev::run_self_tests): New.
3127         * tree.c: Include "selftest.h".
3128         (selftest::test_integer_constants): New function.
3129         (selftest::test_identifiers): New function.
3130         (selftest::test_labels): New function.
3131         (selftest::tree_c_tests): New function.
3132         * tree-cfg.c: Include "selftest.h".
3133         (selftest::push_fndecl): New function.
3134         (selftest::test_linear_chain): New function.
3135         (selftest::test_diamond): New function.
3136         (selftest::test_fully_connected): New function.
3137         (selftest::tree_cfg_c_tests): New function.
3138         * vec.c: Include "selftest.h".
3139         (selftest::safe_push_range): New function.
3140         (selftest::test_quick_push): New function.
3141         (selftest::test_safe_push): New function.
3142         (selftest::test_truncate): New function.
3143         (selftest::test_safe_grow_cleared): New function.
3144         (selftest::test_pop): New function.
3145         (selftest::test_safe_insert): New function.
3146         (selftest::test_ordered_remove): New function.
3147         (selftest::test_unordered_remove): New function.
3148         (selftest::test_block_remove): New function.
3149         (selftest::reverse_cmp): New function.
3150         (selftest::test_qsort): New function.
3151         (selftest::vec_c_tests): New function.c.
3152         * wide-int.cc: Include selftest.h and wide-int-print.h.
3153         (selftest::from_int <wide_int>): New function.
3154         (selftest::from_int <offset_int>): New function.
3155         (selftest::from_int <widest_int>): New function.
3156         (selftest::assert_deceq): New function.
3157         (selftest::assert_hexeq): New function.
3158         (selftest::test_printing <VALUE_TYPE>): New function template.
3159         (selftest::test_ops <VALUE_TYPE>): New function template.
3160         (selftest::test_comparisons <VALUE_TYPE>): New function template.
3161         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
3162         template.
3163         (selftest::wide_int_cc_tests): New function.
3164
3165 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3166
3167         PR middle-end/37780
3168         * ifcvt.c (noce_try_ifelse_collapse): New function.
3169         Declare prototype.
3170         (noce_process_if_block): Call noce_try_ifelse_collapse.
3171         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
3172         (simplify_ternary_operation): Use the above to simplify
3173         conditional CLZ/CTZ expressions.
3174
3175 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3176
3177         PR middle-end/37780
3178         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
3179         define_insn_and_split.
3180
3181 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3182
3183         PR middle-end/37780
3184         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
3185
3186 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3187
3188         PR c/24414
3189         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
3190         Implicitly clobber memory for basic asm with non-empty assembler
3191         string.  Use targetm.md_asm_adjust also here.
3192         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
3193         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
3194         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
3195         non-empty assembler string.
3196         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
3197         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
3198         (decode_asm_operands): Handle basic asm in PARALLEL block.
3199         (extract_insn): Handle basic asm in PARALLEL block.
3200         * doc/extend.texi: Mention new behavior of basic asm.
3201         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
3202         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
3203         branch_needs_nop_p): Use asm_noperands.
3204
3205 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
3206
3207         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
3208         Include the M7 SPARC DFA scheduler.
3209         New attribute v3pipe.
3210         Annotate insns with v3pipe where appropriate.
3211         Define cpu_feature vis4.
3212         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
3213         Add (V8QI "8") to vbits.
3214         Add insns {add,sub}v8qi3
3215         Add insns ss{add,sub}v8qi3
3216         Add insns us{add,sub}{v8qi,v4hi}3
3217         Add insns {min,max}{v8qi,v4hi,v2si}3
3218         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
3219         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
3220         * config/sparc/niagara4.md: Add a comment explaining the
3221         discrepancy between the documented latenty numbers and the
3222         implemented ones.
3223         * config/sparc/niagara7.md: New file.
3224         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
3225         supports SPARC5 and VIS 4.0 instructions.
3226         * configure: Regenerate.
3227         * config.in: Likewise.
3228         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
3229         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
3230         TARGET_CPU_niagara7.
3231         (ASM_CPU64_DEFAULT_SPEC): Likewise.
3232         (CPP_CPU_SPEC): Handle niagara7.
3233         (ASM_CPU_SPEC): Likewise.
3234         * config/sparc/sparc-opts.h (processor_type): Add
3235         PROCESSOR_NIAGARA7.
3236         (mvis4): New option.
3237         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
3238         (AS_NIAGARA7_FLAG): Define.
3239         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
3240         (CPP_CPU64_DEFAULT_SPEC): Likewise.
3241         (CPP_CPU_SPEC): Handle niagara7.
3242         (ASM_CPU_SPEC): Likewise.
3243         * config/sparc/sparc.c (niagara7_costs): Define.
3244         (sparc_option_override): Handle niagara7 and adjust cache-related
3245         parameters with better values for niagara cpus.  Also support VIS4.
3246         (sparc32_initialize_trampoline): Likewise.
3247         (sparc_use_sched_lookahead): Likewise.
3248         (sparc_issue_rate): Likewise.
3249         (sparc_register_move_cost): Likewise.
3250         (dump_target_flag_bits): Support VIS4.
3251         (sparc_vis_init_builtins): Likewise.
3252         (sparc_builtins): Likewise.
3253         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
3254         VIS4 4.0.
3255         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
3256         UltraSparc M7.
3257         * config/sparc/sparc.opt (sparc_processor_type): New value
3258         niagara7.
3259         * config/sparc/visintrin.h (__attribute__): Prototypes for the
3260         VIS4 builtins.
3261         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
3262         -mvis4.
3263         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
3264         VIS4 builtins.
3265
3266 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
3267
3268         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
3269
3270 2016-06-06  Richard Biener  <rguenther@suse.de>
3271
3272         PR tree-optimization/71398
3273         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
3274         remove edges.
3275
3276 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
3277
3278         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
3279         ft32_expand_prolog, ft32_expand_epilogue):
3280         Handle pretend_args.
3281         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
3282         * config/ft32/ft32.md: Add pretend_returner.
3283
3284 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
3285
3286         PR target/71389
3287         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3288         Copy op1 RTX to avoid invalid sharing.
3289         (ix86_expand_vector_move_misalign): Ditto.
3290
3291 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
3292
3293         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
3294         ATTRIBUTE_UNUSED.
3295
3296 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
3297
3298         * predict.c (predicted_by_loop_heuristics_p): New function.
3299         (predict_iv_comparison): Use it.
3300         (predict_loops): Walk from innermost loops; do not predict edges
3301         leaving multiple loops multiple times; implement
3302         PRED_LOOP_ITERATIONS_MAX heuristics.
3303         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
3304
3305 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
3306
3307         * cfg.c (check_bb_profile): Do not report mismatched profiles when
3308         only edges out of BB are EH edges.
3309
3310 2016-06-04  Martin Sebor  <msebor@redhat.com>
3311             Marcin Baczyński  <marbacz@gmail.com>
3312
3313         PR c/48116
3314         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
3315         a void expression in a void function.
3316
3317 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
3318
3319         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
3320         aux; dump reasons of decisions.
3321         (should_duplicate_loop_header_p): Likewise.
3322         (do_while_loop_p): Likewise.
3323         (ch_base::copy_headers): Dump asi num insns duplicated.
3324
3325 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
3326
3327         PR tree-optimization/71405
3328         * tree-ssa.c (execute_update_addresses_taken): For clobber with
3329         incompatible type, build a new clobber with the right type instead
3330         of building a VIEW_CONVERT_EXPR around it.
3331
3332 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
3333
3334         PR tree-optimization/52171
3335         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
3336         by_pieces_ninsns instead of move_by_pieces_ninsns.
3337
3338 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
3339
3340         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
3341         for reg+reg addressing mode.
3342
3343 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3344
3345         * rs6000-c.c (c/c-tree.h): Add #include.
3346         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
3347         in C++ when found in the base position of vec_ld or vec_st.
3348
3349 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
3350
3351         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
3352         use of profile unless profile status is PROFILE_READ.
3353         * profile.c (compute_branch_probabilities): Set profile status
3354         only after reporting predictor hitrates.
3355
3356 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
3357
3358         PR target/71276
3359         PR target/71277
3360         * common.opt (ffp-int-builtin-inexact): New option.
3361         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
3362         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
3363         (ceil@var{m}2): Document dependence on this option.
3364         * ipa-inline-transform.c (inline_call): Handle
3365         flag_fp_int_builtin_inexact.
3366         * ipa-inline.c (can_inline_edge_p): Likewise.
3367         * config/i386/i386.md (rintxf2): Do not test
3368         flag_unsafe_math_optimizations.
3369         (rint<mode>2_frndint): New define_insn.
3370         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
3371         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
3372         for 387 instead of extending and truncating.
3373         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
3374         !flag_trapping_math instead of flag_unsafe_math_optimizations.
3375         Change to frndint<mode>2_<rounding>.
3376         (frndintxf2_<rounding>_i387): Likewise.  Change to
3377         frndint<mode>2_<rounding>_i387.
3378         (<rounding_insn>xf2): Likewise.
3379         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
3380         !flag_trapping_math instead of flag_unsafe_math_optimizations for
3381         x87.  Test TARGET_ROUND || !flag_trapping_math ||
3382         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
3383         SSE.  Use ROUND_NO_EXC in constant operand of
3384         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
3385         for 387 instead of extending and truncating.
3386
3387 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3388             Julia Koval  <julia.koval@intel.com>
3389
3390         PR target/66960
3391         PR target/67630
3392         PR target/67634
3393         PR target/67841
3394         PR target/68037
3395         PR target/68618
3396         PR target/68661
3397         PR target/69575
3398         PR target/69596
3399         PR target/69734
3400         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
3401         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
3402         all registers, except for function return registers if there are
3403         no caller-saved registers.
3404         (ix86_set_func_type): New function.
3405         (ix86_set_current_function): Call ix86_set_func_type to set
3406         no_caller_saved_registers and func_type.  Call reinit_regs if
3407         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
3408         nor x87 instructions in interrupt handler nor function with
3409         no_caller_saved_registers attribute.
3410         (ix86_function_ok_for_sibcall): Return false if there are no
3411         caller-saved registers.
3412         (type_natural_mode): Don't warn ABI change for MMX in interrupt
3413         handler.
3414         (ix86_function_arg_advance): Skip for callee in interrupt handler.
3415         (ix86_function_arg): Return special arguments in interrupt handler.
3416         (ix86_promote_function_mode): Promote pointer to word_mode only
3417         for normal functions.
3418         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
3419         interrupt handler.
3420         (ix86_epilogue_uses): New function.
3421         (ix86_hard_regno_scratch_ok): Likewise.
3422         (ix86_save_reg): Preserve all registers in interrupt handler
3423         after reload.  Preserve all registers, except for function return
3424         registers, if there are no caller-saved registers after reload.
3425         (find_drap_reg): Always use callee-saved register if there are
3426         no caller-saved registers.
3427         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
3428         for interrupt handler.
3429         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
3430         Emit cld instruction if stringops are used in interrupt handler
3431         or interrupt handler isn't a leaf function.
3432         (ix86_expand_epilogue): Generate interrupt return for interrupt
3433         handler and pop the 'ERROR_CODE' off the stack before interrupt
3434         return in exception handler.
3435         (ix86_expand_call): Disallow calling interrupt handler directly.
3436         If there are no caller-saved registers, mark all registers that
3437         are clobbered by the call which returns as clobbered.
3438         (ix86_handle_no_caller_saved_registers_attribute): New function.
3439         (ix86_handle_interrupt_attribute): Likewise.
3440         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
3441         attributes.
3442         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
3443         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
3444         accumulation in interrupt function if stack may be realigned to
3445         avoid DRAP.
3446         (EPILOGUE_USES): New.
3447         (function_type): New enum.
3448         (machine_function): Add func_type and no_caller_saved_registers.
3449         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
3450         (interrupt_return): New pattern.
3451         * doc/extend.texi: Document x86 interrupt and
3452         no_caller_saved_registers attributes.
3453
3454 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
3455
3456         PR tree-optimization/52171
3457         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
3458         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
3459         Look for constant strings.  Move some code to emit_block_cmp_hints
3460         and use it.
3461         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
3462         * defaults.h (COMPARE_MAX_PIECES): New macro.
3463         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
3464         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
3465         (clear_by_pieces_1): Don't declare.  Move definition before use.
3466         (can_do_by_pieces): New static function.
3467         (can_move_by_pieces): Use it.  Return bool.
3468         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
3469         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
3470         (class pieces_addr); New.
3471         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
3472         pieces_addr::adjust, pieces_addr::increment_address,
3473         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
3474         functions for it.
3475         (class op_by_pieces_d): New.
3476         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
3477         functions for it.
3478         (class move_by_pieces_d, class compare_by_pieces_d,
3479         class store_by_pieces_d): New subclasses of op_by_pieces_d.
3480         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
3481         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
3482         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
3483         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
3484         compare_by_pieces_d::finish_mode): New member functions.
3485         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
3486         functions.
3487         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
3488         (emit_block_cmp_hints): New function.
3489         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
3490         use the newly defined classes.
3491         * expr.h (by_pieces_constfn): New typedef.
3492         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
3493         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
3494         (move_by_pieces_ninsns): Don't declare.
3495         (can_move_by_pieces): Change return value to bool.
3496         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
3497         (compare_by_pieces_branch_ratio): New hook.
3498         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
3499         (by_pieces_ninsns): Declare.
3500         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
3501         COMPARE_BY_PIECES.
3502         (default_compare_by_pieces_branch_ratio): New function.
3503         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
3504         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
3505         * doc/tm.texi: Regenerate.
3506         * tree-ssa-strlen.c: Include "builtins.h".
3507         (handle_builtin_memcmp): New static function.
3508         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
3509         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
3510
3511 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3512
3513         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
3514         relevant stmts which are simple and invariant.
3515         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
3516         instead of simple and invariant
3517
3518 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3519
3520         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
3521         (vectorizable_reduction): Check for new relevant state.
3522         (vectorizable_live_operation): vectorize live stmts using
3523         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
3524         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
3525         (vect_stmt_relevant_p): Check for stmts which are only used live.
3526         (process_use): Use of a stmt does not inherit it's live value.
3527         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
3528         (vect_analyze_stmt): Check for new relevant state.
3529         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
3530         outside the loop, but not inside it.
3531
3532 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3533
3534         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
3535         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
3536         (vect_get_vec_def_for_operand): Split out code.
3537
3538 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
3539
3540         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
3541
3542 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3543
3544         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
3545
3546 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3547
3548         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
3549
3550 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
3551
3552         PR middle-end/71387
3553         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
3554         to noreturn e->callee->decl that has void return type and void
3555         arguments, adjust gimple_call_fntype and remove lhs even if it had
3556         previously addressable type.
3557
3558 2016-06-02  Jeff Law  <law@redhat.com>
3559
3560         PR tree-optimization/71328
3561         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
3562         error when checking for a jump back onto the copied path.
3563
3564 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
3565
3566         * config/microblaze/microblaze.c (get_branch_target): Add return
3567         NULL_RTX for the non-CALL_P case.
3568         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
3569         (insert_wic): Remove unused local "j".
3570
3571 2016-06-02  Martin Liska  <mliska@suse.cz>
3572
3573         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
3574
3575 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3576             Julia Koval  <julia.koval@intel.com>
3577
3578         * function.c (assign_parm_setup_stack): Force source into a
3579         register if needed.
3580         * target.def (function_incoming_arg): Update documentation to
3581         allow arbitrary address computation based on hard register.
3582         * doc/tm.texi: Regenerated.
3583
3584 2016-06-02  Martin Liska  <mliska@suse.cz>
3585
3586         * predict.c (combine_predictions_for_bb): Fix first match in
3587         cases where a first predictor contains more than one occurence
3588         in list of predictors.  Take the best value in such case.
3589
3590 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3591
3592         PR rtl-optimization/71295
3593         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
3594         offset would go over the size of the inner mode reject it.
3595
3596 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
3597
3598         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
3599         x=x,x and v=v,m instead of x=x,m.
3600
3601         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
3602         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
3603         alternative to v=rm,C.
3604
3605         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
3606         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
3607         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
3608         instead of vex for the last two above mentioned alternatives.
3609
3610 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3611
3612         PR target/70830
3613         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
3614
3615 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
3616
3617         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
3618
3619 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
3620
3621         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
3622         from int to unsigned.
3623
3624 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3625
3626         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
3627         alternatives, eliminating preferred register class.  Add support
3628         for the MTVSRDD instruction in ISA 3.0.
3629         (vsx_splat_v4si_internal): Use splat_input_operand instead of
3630         reg_or_indexed_operand.
3631         (vsx_splat_v4sf_internal): Likewise.
3632
3633 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3634
3635         PR target/71186
3636         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
3637         for loading up all 0's or all 1's.
3638
3639 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3640
3641         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
3642
3643 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
3644
3645         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
3646         extension.
3647         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
3648         * gcc.c (set_source_date_epoch_envvar): New function, sets
3649         the SOURCE_DATE_EPOCH environment variable to the current time.
3650
3651 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3652
3653         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
3654         the factor for live Phi nodes.
3655
3656 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
3657
3658         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
3659         * tree-parloops.c (parallelize_loops): likewise.
3660         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
3661         tree_unswitch_outer_loop): likewise.
3662
3663 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
3664
3665         PR middle-end/71371
3666         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
3667         around creation of the temporary.
3668
3669 2016-06-01  Richard Biener  <rguenther@suse.de>
3670
3671         PR tree-optimization/71366
3672         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
3673         (unloop_loops): Move removing edges here ...
3674         (try_unroll_loop_completely): ... from here.
3675         (try_peel_loop): ... and here.
3676         (tree_unroll_loops_completely_1): Track parent loops via
3677         bitmap of header BBs.
3678         (tree_unroll_loops_completely): Adjust for that.
3679
3680 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3681
3682         * config/rs6000/altivec.h (vec_slv): New macro.
3683         (vec_srv): New macro.
3684         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
3685         (UNSPEC_VSRV): New value.
3686         (vslv): New insn.
3687         (vsrv): New insn.
3688         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
3689         (vsrv): New builtin definition.
3690         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
3691         define argument types for new builtin.
3692         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
3693         new builtin.
3694         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
3695         functions.
3696
3697 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
3698             Jocelyn Mayer  <l_indien@magic.fr>
3699
3700         PR target/67310
3701         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
3702         detect processor family for signature_CENTAUR_ebx.
3703         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
3704         signature_CENTAUR_ebx.
3705         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
3706         <default>: Pass x86-64 for has_longmode.
3707
3708 2016-06-01  Nathan Sidwell  <nathan@acm.org>
3709
3710         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
3711         undefined weak.
3712
3713 2016-06-01  Richard Biener  <rguenther@suse.de>
3714
3715         PR tree-optimization/71261
3716         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
3717         of stmts successfully put in the bool pattern.  Remove
3718         single-use restriction.
3719         (adjust_bool_pattern_cast): Add cast at the use site via the
3720         pattern def sequence.
3721         (adjust_bool_pattern): Remove recursion, maintain a hash-map
3722         of patterned defs.  Use the pattern def seqence instead of
3723         multiple independent patterns.
3724         (sort_after_uid): New qsort compare function.
3725         (adjust_bool_stmts): New function to process stmts in the bool
3726         pattern in IL order.
3727         (vect_recog_bool_pattern): Adjust.
3728         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
3729         (ifcvt_walk_pattern_tree): Likewise.
3730         (stmt_is_root_of_bool_pattern): Likewise.
3731         (ifcvt_repair_bool_pattern): Likewise.
3732         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
3733
3734 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
3735
3736         * loop-unroll.c (decide_unroll_constant_iterations,
3737         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
3738         likely upper bounds.
3739         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
3740
3741 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
3742
3743         * tree-core.h (enum omp_clause_code): Remove
3744         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
3745
3746 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3747
3748         * config/arm/sync.md (arm_store_exclusive<mode>):
3749         Use 'H' output modifier on operands[2] rather than creating a new
3750         entry in out-of-bounds memory of the operands array.
3751         (arm_store_release_exclusivedi): Likewise.
3752
3753 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3754
3755         * config/arm/arm.c (arm_fusion_enabled_p): New function.
3756         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
3757         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
3758         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
3759
3760 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3761
3762         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
3763         into account live statements for mask producers.
3764
3765 2016-06-01  Richard Biener  <rguenther@suse.de>
3766
3767         PR tree-optimization/71311
3768         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
3769         restrict to non-INTEGER_CST @0.
3770
3771 2016-06-01  Richard Biener  <rguenther@suse.de>
3772
3773         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
3774         (relational patterns): Use :c to avoid pattern duplications.
3775
3776 2016-06-01  Richard Biener  <rguenther@suse.de>
3777
3778         * genmatch.c (comparison_code_p): New predicate.
3779         (swap_tree_comparison): New function.
3780         (commutate): Add for_vec parameter to append new for entries.
3781         Support commutating relational operators by swapping it alongside
3782         operands.
3783         (lower_commutative): Adjust.
3784         (dt_simplify::gen): Do not pass artificial operators to gen
3785         functions.
3786         (decision_tree::gen): Do not add artificial operators as parameters.
3787         (parser::parse_expr): Verify operator commutativity when :c is
3788         applied.  Allow :C to override this.
3789         * match.pd: Adjust patterns to use :C instead of :c where required.
3790
3791 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
3792
3793         PR tree-optimization/71077
3794         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
3795         the combining step, use boolean_false_node and boolean_true_node
3796         as the designated false/true return values.
3797
3798 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
3799
3800         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
3801         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
3802         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
3803         PRED_LOOP_EXIT.
3804
3805 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
3806
3807         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
3808         of flags impliying the register renaming.
3809         * toplev.c (process_options): Do not imply flag_rename_registers with
3810         loop peeling.
3811
3812 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3813
3814         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
3815         default implementation.
3816
3817 2016-05-31  Nathan Sidwell  <nathan@acm.org>
3818
3819         * dwarf2out.c (cur_line_info_table): Add GTY marker.
3820
3821 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3822
3823         * config/sh/constraints.md (b): Remove constraint.
3824         * config/sh/predicates.md (arith_reg_operand): Remove
3825         TARGET_REGISTER_P.
3826         * config/sh/sh-modes.def (PDI): Remove.
3827         * config/sh/sh.c (sh_target_reg_class,
3828         sh_optimize_target_register_callee_saved): Remove functions.
3829         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
3830         (sh_expand_epilogue): Update comment.
3831         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
3832         sh_secondary_reload): Remove TARGET_REGS related code.
3833         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
3834         TARGET_REGISTER_P): Remove macros.
3835         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
3836         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
3837         TR1_REG, TR2_REG): Remove constants.
3838         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
3839
3840 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3841
3842         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
3843         define_expand patterns.
3844         (adddi3_compact): Rename to adddi3.
3845         (subdi3_compact): Rename to subdi3.
3846         (*negdi2): Rename to negdi2.
3847         (*abs<mode>2): Rename to abs<mode>2.
3848
3849 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3850
3851         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
3852         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
3853         (atomic_sub_fetchsi): ... this new pattern.
3854         (mvtc): Add CC_REG clobber.
3855
3856 2016-05-31  Marek Polacek  <polacek@redhat.com>
3857
3858         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
3859
3860 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3861
3862         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
3863         aarch64_fusion_enabled_p to check for fusion capabilities.
3864
3865 2016-05-31  Richard Biener  <rguenther@suse.de>
3866
3867         PR tree-optimization/71352
3868         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
3869         minus one and a negate.
3870
3871 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3872
3873         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
3874         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
3875         Delete prototype.
3876         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
3877         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
3878         Remove use of aarch64_simd_attr_length_move, set length attribute
3879         directly.
3880         (*aarch64_be_movoi): Likewise.
3881         (*aarch64_be_movci): Likewise.
3882         (*aarch64_be_movxi): Likewise.
3883
3884 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
3885
3886         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
3887         It no longer does that.
3888         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
3889
3890 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
3891
3892         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
3893         attribute __unused__.
3894
3895 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3896
3897         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
3898         * config/arm/arm.c (arm_arch_thumb1): Define.
3899         (arm_option_override): Initialize arm_arch_thumb1.
3900         * config/arm/arm.h (arm_arch_thumb1): Declare.
3901         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
3902         support Thumb-1 ISA.
3903
3904 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
3905
3906         PR target/71346
3907         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
3908         `Yv' for scalar operand.
3909
3910 2016-05-31  Tom de Vries  <tom@codesourcery.com>
3911
3912         PR tree-optimization/69068
3913         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
3914         phis with more than two args.
3915
3916 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
3917
3918         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
3919         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
3920         target.
3921
3922 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
3923
3924         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
3925         tune_64.
3926         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
3927         support on SPARC.
3928         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
3929         cpu_32, cpu_64, tune_32 and tune_64.
3930         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
3931
3932 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
3933
3934         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
3935
3936 2016-05-30  Andi Kleen  <ak@linux.intel.com>
3937
3938         * auto-profile.c (read_profile): Replace asserts with errors
3939         when file does not exist.
3940         * gcov-io.c (gcov_read_words): Dito.
3941
3942 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3943
3944         * tree-cfg.c (print_loop): Print likely upper bounds.
3945
3946 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3947
3948         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
3949         * opts.c (default_options): Enable peel loops at -O3.
3950         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
3951         (try_peel_loop): Do not re-peel already peeled loops;
3952         use likely upper bounds; fix profile updating.
3953         (pass_complete_unroll::execute): Initialize peeled_loops.
3954
3955 2016-05-30  Martin Liska  <mliska@suse.cz>
3956
3957         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
3958         computed costs by frequency of BB they belong to.
3959         (get_scaled_computation_cost_at): New function.
3960
3961 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
3962             Marc Glisse  <marc.glisse@inria.fr>
3963
3964         PR tree-optimization/71289
3965         * match.pd (-1 / B < A, A > -1 / B): New transformations.
3966
3967 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3968
3969         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
3970
3971 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3972
3973         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
3974         for peeled copies; avoid underflow when updating estimates; correctly
3975         scale loop profile.
3976
3977 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
3978
3979         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
3980         r236875. Corrected oe3 to oe2 as obvious.
3981
3982 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
3983
3984         PR middle-end/71269
3985         PR middle-end/71252
3986         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
3987         that inserted stmt will not dominate stmts that defines its operand.
3988         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
3989         (rewrite_expr_tree_parallel): Likewise.
3990
3991 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
3992
3993         PR middle-end/71252
3994         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
3995         all fields including stmt_to_insert are swapped.
3996
3997 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3998
3999         * predict.h (force_edge_cold): Declare.
4000         * predict.c (force_edge_cold): New function.
4001         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
4002         updating.
4003         (canonicalize_loop_induction_variables): Fix formating.
4004
4005 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4006
4007         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
4008         (visium_expand_copysign): Use gen_int_mode directly.
4009         (visium_compute_frame_size): Minor tweaks.
4010
4011 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
4012
4013         * tree-vect-loop.c (vect_analyze_loop_2): Use
4014         likely_max_stmt_executions_int.
4015
4016 2016-05-30  Tom de Vries  <tom@codesourcery.com>
4017
4018         PR tree-optimization/69067
4019         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
4020
4021 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
4022
4023         PR target/71245
4024         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
4025         New peepholes to remove unneeded fild/fistp pairs.
4026         (define_peephole2 atomic_loaddi_fpu): Ditto.
4027
4028 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4029
4030         * predict.c (maybe_hot_frequency_p): Avoid division.
4031
4032 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
4033
4034         * doc/install.texi: Use https for shop.fsf.org.
4035
4036 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4037
4038         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
4039         likely_max_stmt_executions_int.
4040
4041 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4042
4043         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
4044         likely_max_stmt_executions_int.
4045
4046 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4047
4048         * profile.c (compute_branch_probabilities): Do not report hitrates
4049         here.
4050         (branch_prob): Report hitrates here.
4051         * predict.c (gimple_predict_edge): Do not assert profile status;
4052         fix formatting issues.
4053
4054 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4055
4056         * predict.c (edge_predicted_by_p): New function.
4057         (predict_paths_for_bb): Do not put multiple predictions of the same type
4058         on one edge.
4059
4060 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4061
4062         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
4063         commit.
4064
4065 2016-05-28  Alan Modra  <amodra@gmail.com>
4066
4067         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
4068
4069 2016-05-28  Alan Modra  <amodra@gmail.com>
4070
4071         PR rtl-optimization/71275
4072         * ira.c (ira): Free dominance info.
4073
4074 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
4075
4076         * doc/sourcebuild.texi: New address for upstream Go repository.
4077
4078 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4079
4080         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
4081         (TARGET_ARM_V7M): Likewise.
4082
4083 2016-05-26  Jeff Law  <law@redhat.com>
4084
4085         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
4086         (thread_across_edge): Remove calls to find_jump_threads_backwards.
4087         * passes.def: Add jump threading passes before DOM/VRP.
4088         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
4089         argument to a basic block from an edge.  Remove tests which are
4090         handled elsewhere.
4091         (pass_data_thread_jumps, class pass_thread_jumps): New.
4092         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
4093         (make_pass_thread_jumps): Likewise.
4094         * tree-pass.h (make_pass_thread_jumps): Declare.
4095
4096 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4097
4098         * config/visium/visium-protos.h (split_double_move): Rename into...
4099         (visium_split_double_move): ...this.
4100         (visium_split_double_add): Declare.
4101         * config/visium/visium.c (split_double_move): Rename into...
4102         (visium_split_double_move): ...this.
4103         (visium_split_double_add): New function.
4104         (visium_expand_copysign): Renumber operands for consistency.
4105         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
4106         (DFmode move splitter): Likewise.
4107         (*addi3_insn): Split by means of visium_split_double_add.
4108         (*adddi3_insn_flags): Delete.
4109         (*plus_plus_sltu<subst_arith>): New insn.
4110         (*subdi3_insn): Split by means of visium_split_double_add.
4111         (subdi3_insn_flags): Delete.
4112         (*minus_minus_sltu<subst_arith>): New insn.
4113         (*negdi2_insn): Split by means of visium_split_double_add.
4114         (*negdi2_insn_flags): Delete.
4115
4116 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
4117
4118         * configure.ac: Treat a --with-headers option without argument
4119         the same as the default (i.e. consult sys-include directory).
4120         * configure: Regenerate.
4121
4122 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4123
4124         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
4125         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
4126         prototype.
4127         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
4128         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
4129
4130 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4131
4132         PR target/63596
4133         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
4134         tree-stdarg analysis results.
4135         (aarch64_setup_incoming_varargs): Likewise.
4136
4137 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
4138
4139         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
4140         va_list_gpr_counter_field and va_list_fpr_counter_field.
4141
4142 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
4143
4144         PR67609
4145         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
4146         * config/aarch64/aarch64.c
4147         (aarch64_cannot_change_mode_class): Remove function.
4148         * config/aarch64/aarch64-protos.h
4149         (aarch64_cannot_change_mode_class): Remove.
4150
4151 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
4152
4153         * cfgloop.c (record_niter_bound): Record likely upper bounds.
4154         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
4155         get_likely_max_loop_iterations_int): New.
4156         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
4157         any_likely_upper_bound.
4158         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
4159         Declare.
4160         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
4161         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
4162         upper bound.
4163         (unroll_loop_constant_iterations): Likewise.
4164         (unroll_loop_runtime_iterations): Likewise.
4165         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
4166         * lto-streamer-out.c (output_cfg): Likewise.
4167         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
4168         bounds.
4169         (canonicalize_loop_induction_variables): Dump likely upper bounds.
4170         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
4171         (likely_max_loop_iterations): New.
4172         (likely_max_loop_iterations_int): New.
4173         (likely_max_stmt_executions): New.
4174         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
4175         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
4176         likely_max_stmt_executions): Declare.
4177
4178 2016-05-27  Marek Polacek  <polacek@redhat.com>
4179
4180         PR middle-end/71308
4181         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
4182
4183 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4184
4185         * config/s390/s390.md (2x risbg splitters): Use
4186         reg_overlap_mentioned_p instead of rtx_equal_p.
4187
4188 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4189
4190         * combine.c (make_compound_operation): Take known zero bits into
4191         account when checking for possible zero_extend.
4192
4193 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4194
4195         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
4196         Use const_int_operand for operand 2 predicate.  Simplify expand code
4197         as a result.
4198
4199 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
4200
4201         PR middle-end/71279
4202         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
4203         into comparison.
4204
4205 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4206
4207         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
4208         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
4209         that returns CC_SESWPmode and CC_ZESWPmode.
4210         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
4211         and CC_SESWPmode.
4212         (aarch64_rtx_costs): Likewise.
4213
4214 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4215
4216         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
4217         for ISA 3.0 min/max support.
4218         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
4219         conditional move support.
4220         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
4221         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
4222         available.
4223         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
4224         conditional moves where the comparison type is different from move
4225         type.
4226         (fp_minmax): New code iterator for smin/smax.
4227         (minmax): New code attributes for min/max.
4228         (SMINMAX): Likewise.
4229         (smax<mode>3): Combine min, max insns into one insn using the
4230         fp_minmax code iterator.  Add support for ISA 3.0 min/max
4231         instructions that don't need -ffast-math.
4232         (s<minmax><mode>3): Likewise.
4233         (smax<mode>3_vsx): Likewise.
4234         (smin<mode>3): Likewise.
4235         (s<minmax><mode>3_vsx): Likewise.
4236         (smin<mode>3_vsx): Likewise.
4237         (pre-VSX min/max splitters): Likewise.
4238         (s<minmax><mode>3_fpr): Likewise.
4239         (movsfcc): Rewrite floating point conditional moves to combine
4240         SFmode/DFmode into a single insn.
4241         (mov<mode>cc): Likewise.
4242         (movdfcc): Likewise.
4243         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
4244         SFDF2 iterators to handle all combinations.
4245         (fseldfsf4): Likewise.
4246         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
4247         (fseldfdf4): Likewise.
4248         (fselsfdf4): Likewise.
4249         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
4250         comparison instructions that set a 0/-1 mask, and use it for
4251         floating point conditional move via XXSEL.
4252         (fpmask<mode>): Likewise.
4253         (xxsel<mode>): Likewise.
4254         * config/rs6000/predicates.md (min_max_operator): Delete, no
4255         longer used.
4256         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
4257         instructions that generate a 0/-1 mask for use with XXSEL.
4258         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
4259         say whether floating point min/max is available, either through
4260         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
4261         (TARGET_MINMAX_DF): Likewise.
4262
4263 2016-05-27  Alan Modra  <amodra@gmail.com>
4264
4265         PR rtl-optimization/71275
4266         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
4267         for update_equiv_regs and combine_and_move_insns.
4268
4269 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
4270
4271         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
4272         if_then_else or cond RTXes to calculate attribute value.
4273         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
4274         <attr "length_immediate>: Ditto.
4275         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
4276         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
4277         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
4278         <attr "type">: Ditto.
4279         <attr "prefix_data16">: Ditto.
4280         <attr "prefix_extra">: Ditto.
4281         <attr "length_immediate">: Ditto.
4282         <attr "prefix">: Ditto.
4283         (vec_set<mode>_0) <attr "isa">: Ditto.
4284         <attr "prefix_extra">: Ditto.
4285         <attr "length_immediate">: Ditto.
4286         <attr "prefix">: Ditto.
4287         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
4288         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
4289         (sse2_storelpd) <attr "prefix_data16">: Ditto.
4290         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
4291         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
4292         <attr "length_immediate">: Ditto.
4293         <attr "prefix">: Ditto.
4294         (sse2_movsd) <attr "length_immediate">: Ditto.
4295         <attr "prefix">: Ditto.
4296         (vec_concatv2df)  <attr "isa">: Ditto.
4297         <attr "prefix">: Ditto.
4298         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
4299         (*vec_extractv2di_1) <attr "isa">: Ditto.
4300         <attr "type">: Ditto.
4301         <attr "length_immediate">: Ditto.
4302         <attr "prefix_rex">: Ditto.
4303         <attr "prefix_extra">: Ditto.
4304         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
4305         <attr "prefix_extra">: Ditto.
4306         <attr "length_immediate">: Ditto.
4307         (vec_concatv2di) <attr "isa">: Ditto.
4308         <attr "prefix_extra">: Ditto.
4309         <attr "length_immediate">: Ditto.
4310         <attr "prefix">: Ditto.
4311
4312 2016-05-26  Martin Liska  <mliska@suse.cz>
4313
4314         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
4315         function.
4316         (operator+): Likewise.
4317         (operator-): Likewise.
4318         (comp_cost::operator+=): Likewise.
4319         (comp_cost::operator-=): Likewise.
4320         (comp_cost::operator/=): Likewise.
4321         (comp_cost::operator*=): Likewise.
4322         (operator<): Likewise.
4323         (operator==): Likewise.
4324         (operator<=): Likewise.
4325         (new_cost): Remove.
4326         (infinite_cost_p): Likewise.
4327         (add_costs): Likewise.
4328         (sub_costs): Likewise.
4329         (compare_costs): Likewise.
4330         (set_group_iv_cost): Use the newly introduced functions.
4331         (get_address_cost): Likewise.
4332         (get_shiftadd_cost): Likewise.
4333         (force_expr_to_var_cost): Likewise.
4334         (split_address_cost): Likewise.
4335         (ptr_difference_cost): Likewise.
4336         (difference_cost): Likewise.
4337         (get_computation_cost_at): Likewise.
4338         (determine_group_iv_cost_generic): Likewise.
4339         (determine_group_iv_cost_address): Likewise.
4340         (determine_group_iv_cost_cond): Likewise.
4341         (autoinc_possible_for_pair): Likewise.
4342         (determine_group_iv_costs): Likewise.
4343         (cheaper_cost_pair): Likewise.
4344         (iv_ca_recount_cost): Likewise.
4345         (iv_ca_set_no_cp): Likewise.
4346         (iv_ca_set_cp): Likewise.
4347         (iv_ca_cost): Likewise.
4348         (iv_ca_new): Likewise.
4349         (iv_ca_dump): Likewise.
4350         (iv_ca_narrow): Likewise.
4351         (iv_ca_prune): Likewise.
4352         (iv_ca_replace): Likewise.
4353         (try_add_cand_for): Likewise.
4354         (try_improve_iv_set): Likewise.
4355         (find_optimal_iv_set): Likewise.
4356
4357 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
4358
4359         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
4360         that internal functions will clobber all caller-saved registers.
4361
4362 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
4363
4364         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
4365         Return a better case_values_threshold when optimizing.
4366
4367 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
4368
4369         * config/aarch64/aarch64-simd.md (aarch64_combinez):
4370         Add ? to integer variant.
4371         (aarch64_combinez_be): Likewise.
4372
4373 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
4374
4375         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
4376         instead of x constraint.
4377         (vcvtps2ph256<mask_name>): Likewise.
4378
4379         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
4380         alternative.  Formatting fix.
4381
4382         * config/i386/sse.md
4383         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
4384         to ...
4385         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
4386         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
4387         maybe_evex prefix instead of vex.
4388         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
4389         EXT_REX_SSE_REG_P (op0) case in the splitter.
4390
4391 2016-05-25  Jeff Law  <law@redhat.com>
4392
4393         PR tree-optimization/71272
4394         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
4395         Update comments.  Add test for empty path.
4396
4397 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
4398
4399         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
4400         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
4401         special case builtin.
4402         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4403         code for ALTIVEC_BUILTIN_VEC_CMPNE.
4404         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4405         for __builtin_vec_cmpne.
4406
4407 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4408
4409         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
4410         redundant test and bail out if the type of the new operand is not
4411         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
4412
4413 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
4414
4415         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
4416         (x_ix86_target_flags_explicit): Remove.
4417         * config/i386/i386.c (ix86_function_specific_save): Do not copy
4418         x_ix86_target_flags_explicit.
4419         (ix86_function_specific_restore): Ditto.
4420
4421 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
4422             H.J. Lu  <hongjiu.lu@intel.com>
4423
4424         PR target/70738
4425         * common/config/i386/i386-common.c
4426         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
4427         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
4428         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
4429         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
4430         (-mgeneral-regs-only): Add new option.
4431         * config/i386/i386.c (ix86_option_override_internal): Don't enable
4432         x87 instructions if only general registers are allowed.
4433         (ix86_target_string): Add ix86_flags argument. Handle additional
4434         flags options through ix86_flags argument.  Update all callers.
4435         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
4436
4437 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4438
4439         PR rtl-optimization/66940
4440         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
4441         decrementing desired_val will not overflow before performing these
4442         operations.
4443
4444 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
4445
4446         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
4447         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
4448         * config/i386/i386.c (enum ix86_builtins): Add
4449         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
4450         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
4451         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
4452         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
4453         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
4454         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
4455         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
4456         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
4457         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
4458         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
4459         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
4460         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
4461         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
4462         __builtin_ia32_cvtps2dq512_mask.
4463         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
4464         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
4465         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
4466         * config/i386/sse.md
4467         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
4468         Rename to ...
4469         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
4470         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
4471         to ...
4472         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
4473         (avx512f_vec_pack_sfix_v8df): New define_expand.
4474         (avx512f_roundpd512): Rename to ...
4475         (avx512f_round<castmode>512): ... this.  Change iterator.
4476         (avx512f_roundps512_sfix): New define_expand.
4477         (round<mode>2_sfix): Change iterator.
4478
4479 2016-05-25  Nick Clifton  <nickc@redhat.com>
4480
4481         * config/msp430/msp430.c (msp430_attr): Produce an error if a
4482         static interrupt handler is detected.
4483         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
4484         default linker script.
4485         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
4486         the low part of a symbolic pointer.
4487
4488 2016-05-25  Richard Biener  <rguenther@suse.de>
4489
4490         PR tree-optimization/71261
4491         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
4492         interesting stmt instead of immediate uses when looking
4493         for the use operand to replace.
4494
4495 2016-05-25  Martin Liska  <mliska@suse.cz>
4496
4497         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
4498
4499 2016-05-25  Richard Biener  <rguenther@suse.de>
4500
4501         PR tree-optimization/71264
4502         * tree-vect-stmts.c (vect_init_vector): Properly deal with
4503         vector type val.
4504
4505 2016-05-25  Martin Liska  <mliska@suse.cz>
4506
4507         PR tree-optimization/71239
4508         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
4509         if DECL_SIZE is NULL.
4510
4511 2016-05-25  Richard Biener  <rguenther@suse.de>
4512
4513         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
4514         * tree-if-conv.c (pass_data_if_conversion): Use it.
4515
4516 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4517
4518         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
4519         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
4520         * varpool.c (varpool_node::get_availability): Likewise.
4521
4522 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4523
4524         * config/rs6000/altivec.md (VNEG iterator): New iterator for
4525         VNEGW/VNEGD instructions.
4526         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
4527         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
4528         support for ISA 3.0 VNEGW/VNEGD instructions.
4529
4530 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
4531
4532         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
4533         pointers inside OACC_DATA regions.
4534         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
4535         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
4536         (gimplify_adjust_omp_clauses): Fix typo in comment.
4537
4538 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4539
4540         * config/rs6000/altivec.md (VParity): New mode iterator for vector
4541         parity built-in functions.
4542         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
4543         zeros.
4544         (p9v_parity<mode>2): Likewise.
4545         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
4546         parity.
4547         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
4548         (parity<mode>2): ISA 3.0 expander for vector parity.
4549         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
4550         power9 built-ins.
4551         (BU_P9_64BIT_MISC_0): Likewise.
4552         (BU_P9_MISC_0): Likewise.
4553         (BU_P9V_AV_1): Likewise.
4554         (BU_P9V_AV_2): Likewise.
4555         (BU_P9V_AV_3): Likewise.
4556         (BU_P9V_AV_P): Likewise.
4557         (BU_P9V_VSX_1): Likewise.
4558         (BU_P9V_OVERLOAD_1): Likewise.
4559         (BU_P9V_OVERLOAD_2): Likewise.
4560         (BU_P9V_OVERLOAD_3): Likewise.
4561         (VCTZB): Add vector count trailing zeros support.
4562         (VCTZH): Likewise.
4563         (VCTZW): Likewise.
4564         (VCTZD): Likewise.
4565         (VPRTYBD): Add vector parity support.
4566         (VPRTYBQ): Likewise.
4567         (VPRTYBW): Likewise.
4568         (VCTZ): Add overloaded vector count trailing zeros support.
4569         (VPRTYB): Add overloaded vector parity support.
4570         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4571         overloaded vector count trailing zeros and parity instructions.
4572         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
4573         vector parity support.
4574         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
4575         trailing zeros support.
4576         (vec_cntlz): Likewise.
4577         (vec_vctzb): Likewise.
4578         (vec_vctzd): Likewise.
4579         (vec_vctzh): Likewise.
4580         (vec_vctzw): Likewise.
4581         (vec_vprtyb): Add ISA 3.0 vector parity support.
4582         (vec_vprtybd): Likewise.
4583         (vec_vprtybw): Likewise.
4584         (vec_vprtybq): Likewise.
4585         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4586         the ISA 3.0 vector count trailing zeros and vector parity built-in
4587         functions.
4588
4589 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4590
4591         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
4592         when there is stmt_to_insert.
4593
4594 2016-05-24  Martin Sebor  <msebor@redhat.com>
4595
4596         PR c++/71147
4597         * tree.h (complete_or_array_type_p): New inline function.
4598
4599 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4600
4601         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
4602         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
4603         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
4604
4605         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
4606         Limit 1st alternative to noavx isa, split 2nd alternative into one
4607         noavx and one avx alternative, use *x and Bm in the former and
4608         x and m in the latter.
4609
4610         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
4611         of sse4 for the first alternative, drop %v from the template
4612         and d operand modifier.  Split second alternative into one sse4_noavx
4613         and one avx alternative, use *x instead of *v in the former and v
4614         instead of *v in the latter.
4615         (*sse4_1_extractps): Use noavx isa instead of * for the first
4616         alternative, drop %v from the template.  Split second alternative into
4617         one noavx and one avx alternative, use *x instead of *v in the
4618         former and v instead of *v in the latter.
4619         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
4620         with noavx and the last one with avx.
4621         (sse4_1_phminposuw): Guard first alternative with noavx isa,
4622         split the second one into one noavx and one avx alternative,
4623         use *x and Bm in the former and x and m in the latter one.
4624         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
4625         alternatives.
4626
4627         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
4628         first two alternatives to noavx, use *x instead of *v in the second
4629         one, add avx alternative without *.
4630         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
4631         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
4632         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
4633
4634 2016-05-24  Jeff Law  <law@redhat.com>
4635
4636         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
4637         New function, extracted from...
4638         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
4639         Allow simple copies and constant initializations in the SSA chain.
4640
4641 2016-05-24  Marek Polacek  <polacek@redhat.com>
4642
4643         PR c/71249
4644         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
4645         scope.
4646
4647 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4648
4649         PR c++/71257
4650         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4651         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4652         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
4653         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
4654         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
4655
4656 2016-05-24  Richard Biener  <rguenther@suse.de>
4657
4658         PR tree-optimization/71240
4659         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
4660         has integral type.
4661
4662 2016-05-24  Richard Biener  <rguenther@suse.de>
4663
4664         PR tree-optimization/71230
4665         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
4666
4667 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4668
4669         * tree-vectorizer.h (vectorizable_comparison): Delete.
4670         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
4671         PURE_SLP_STMT check.
4672         * tree-vect-stmts.c (vectorizable_call): Likewise.
4673         (vectorizable_simd_clone_call): Likewise.
4674         (vectorizable_conversion): Likewise.
4675         (vectorizable_assignment): Likewise.
4676         (vectorizable_shift): Likewise.
4677         (vectorizable_operation): Likewise.
4678         (vectorizable_load): Likewise.
4679         (vectorizable_condition): Likewise.
4680         (vectorizable_store): Likewise.  Assert that we don't have
4681         hybrid SLP.
4682         (vectorizable_comparison): Make static.  Remove redundant
4683         PURE_SLP_STMT check.
4684         (vect_transform_stmt): Assert that we always have an slp_node
4685         if PURE_SLP_STMT.
4686
4687 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4688
4689         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
4690         operands[2] against 1 with comparison against CONST1_RTX.
4691         (<shift>di3_neon): Likewise.
4692         * config/arm/predicates.md (const0_operand): Replace with comparison
4693         against CONST0_RTX.
4694
4695 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4696
4697         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
4698         operands[2] against 1 with comparison against CONST1_RTX.
4699         (ashrdi3): Likewise.
4700         (lshrdi3): Likewise.
4701         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
4702         UINTVAL.
4703         (ashrsi3): Likewise.
4704         (lshrsi3): Likewise.
4705         (rotrsi3): Likewise.
4706         (define_split above *compareqi_eq0): Likewise.
4707         (define_split above "prologue"): Likewise.
4708         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
4709         * config/arm/predicates.md (shift_operator): Likewise.
4710         (shift_nomul_operator): Likewise.
4711         (sat_shift_operator): Likewise.
4712         (thumb1_cmp_operand): Likewise.
4713         (const_neon_scalar_shift_amount_operand): Replace manual range
4714         check with IN_RANGE.
4715         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
4716         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
4717
4718 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4719
4720         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
4721         with HOST_WIDE_INT_1.
4722         (insv): Likewise.
4723         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
4724         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
4725         (arm_canonicalize_comparison): Likewise.
4726         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
4727         HOST_WIDE_INT_1.
4728         (thumb1_size_rtx_costs): Likewise.
4729         (vfp_const_double_index): Replace cast of 1 to unsigned
4730         HOST_WIDE_INT with HOST_WIDE_INT_1U.
4731         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
4732         HOST_WIDE_INT_1.
4733         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
4734         HOST_WIDE_INT with HOST_WIDE_INT_1U.
4735         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
4736         HOST_WIDE_INT with HOST_WIDE_INT_1.
4737
4738 2016-05-24  Marek Polacek  <polacek@redhat.com>
4739
4740         * tree-cfg.h (should_remove_lhs_p): New predicate.
4741         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
4742         * gimplify.c (gimplify_modify_expr): Likewise.
4743         * tree-cfg.c (verify_gimple_call): Likewise.
4744         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
4745         * gimple-fold.c: Include "tree-cfg.h".
4746         (gimple_fold_call): Use should_remove_lhs_p.
4747
4748 2016-05-24  Richard Biener  <rguenther@suse.de>
4749
4750         PR tree-optimization/71253
4751         * cfganal.h (control_dependences): Make robust against edge
4752         and BB removal.
4753         (control_dependences::control_dependences): Remove edge_list argument.
4754         (control_dependences::get_edge): Remove.
4755         (control_dependences::get_edge_src): Add.
4756         (control_dependences::get_edge_dest): Likewise.
4757         (control_dependences::m_el): Make a vector of edge src/dest index.
4758         * cfganal.c (control_dependences::find_control_dependence): Adjust.
4759         (control_dependences::control_dependences): Likewise.
4760         (control_dependences::~control_dependence): Likewise.
4761         (control_dependences::get_edge): Remove.
4762         (control_dependences::get_edge_src): Add.
4763         (control_dependences::get_edge_dest): Likewise.
4764         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
4765         get_edge_src.
4766         (perform_tree_ssa_dce): Adjust.
4767         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
4768         get_edge_src.
4769         (pass_loop_distribution::execute): Adjust.  Do loop destroying
4770         conditional on changed.
4771
4772 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4773
4774         PR target/69857
4775         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
4776         return.  Reindent transformation comment and mention the ARM state
4777         behavior.
4778
4779 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4780
4781         PR middle-end/71252
4782         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
4783         after build_and_add_sum creates new use stmt.
4784
4785 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4786
4787         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
4788         load_lanes/grouped_load classification comes first.  Don't check
4789         whether the vectorization factor is a multiple of the group size
4790         for load_lanes.
4791
4792 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4793
4794         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
4795         GROUP_GAP for single-element interleaving.
4796         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
4797         variable.
4798
4799 2016-05-24  Richard Biener  <rguenther@suse.de>
4800
4801         PR middle-end/70434
4802         PR c/69504
4803         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
4804         bases which are accessed with non-invariant indices.
4805         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
4806         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
4807
4808 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4809
4810         PR middle-end/71170
4811         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
4812         (add_to_ops_vec): Add stmt_to_insert.
4813         (add_repeat_to_ops_vec): Init stmt_to_insert.
4814         (insert_stmt_before_use): New.
4815         (transform_add_to_multiply): Remove mult_stmt insertion and add it
4816         to ops vector.
4817         (get_ops): Init stmt_to_insert.
4818         (maybe_optimize_range_tests): Likewise.
4819         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
4820         (rewrite_expr_tree_parallel): Likewise.
4821         (reassociate_bb): Likewise.
4822
4823 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4824
4825         PR target/71201
4826         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
4827         ISA 3.0 xxperm fusion alternative.
4828         (altivec_vperm_v8hiv16qi): Likewise.
4829         (altivec_vperm_<mode>_uns_internal): Likewise.
4830         (vperm_v8hiv4si): Likewise.
4831         (vperm_v16qiv8hi): Likewise.
4832
4833 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4834             Kelvin Nilsen  <kelvin@gcc.gnu.org>
4835
4836         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
4837         vpermr/xxpermr on ISA 3.0.
4838         (altivec_expand_vec_perm_le): Likewise.
4839         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
4840         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
4841         ISA 3.0.
4842
4843 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
4844
4845         * config/i386/i386.h (IS_STACK_MODE): Enable for
4846         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
4847         SSE_FLOAT_MODE_P macros.
4848         * config/i386/i386.c (ix86_preferred_reload_class): Use
4849         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
4850         Cleanup regclass processing for CONST_DOUBLE_P.
4851         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
4852         (ix86_rtx_costs): Remove redundant TARGET_80387 check
4853         with IS_STACK_MODE macro.
4854         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
4855         with TARGET_SSE2.
4856         (*movdf_internal): Use IS_STACK_MODE macro.
4857         (*movsf_internal): Ditto.
4858
4859 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
4860
4861         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
4862         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
4863
4864 2016-05-23  Jeff Law  <law@redhat.com>
4865
4866         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
4867         extracted from ...
4868         (fsm_find_control_statement_thread_paths): Call it.
4869
4870 2016-05-23  Martin Jambor  <mjambor@suse.cz>
4871
4872         PR ipa/71234
4873         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
4874         from_global_constant if t is not NULL.
4875
4876 2016-05-23  Marek Polacek  <polacek@redhat.com>
4877
4878         PR c/49859
4879         * common.opt (Wswitch-unreachable): New option.
4880         * doc/invoke.texi: Document -Wswitch-unreachable.
4881         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
4882         warning.
4883
4884 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
4885
4886         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
4887         TMR_INDEX is non-NULL.
4888
4889 2016-05-23  Richard Biener  <rguenther@suse.de>
4890
4891         PR tree-optimization/71230
4892         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
4893         (try_special_add_to_ops): ... here.  Always test for single-use.
4894
4895 2016-05-23  Martin Jambor  <mjambor@suse.cz>
4896
4897         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
4898         default block if a PHI node in the original one would be resized.
4899
4900 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4901
4902         PR tree-optimization/58135
4903         * tree-vect-slp.c: When group size is not multiple
4904         of vector size, allow splitting of store group at
4905         vector boundary.
4906
4907 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
4908
4909         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
4910
4911 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
4912
4913         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4914         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
4915         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
4916         of 64x2.
4917
4918         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
4919         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
4920         v constraint instead of x and vinserti32x4 insn.
4921
4922         * config/i386/sse.md (i128vldq): New mode iterator.
4923         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
4924         avx512dq and avx512vl alternatives.
4925
4926         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
4927         constraint, use maybe_evex prefix instead of vex.
4928         (vec_dupv4sf): Use v constraint instead of x for output
4929         operand except for noavx alternative, use Yv constraint
4930         instead of x for input.  Use maybe_evex prefix instead of vex.
4931         (*vec_dupv4si): Likewise.
4932         (*vec_dupv2di): Likewise.
4933
4934 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
4935
4936         PR middle-end/40921
4937         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
4938         (linearize_expr_tree): Call try_special_add_to_ops.
4939         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
4940
4941 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4942
4943         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
4944         to computed stack_usage.
4945
4946 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4947
4948         PR target/71103
4949         * config/avr/avr.md (define_expand "mov<mode>"): If the source
4950         operand is subreg (symbol_ref) then move the symbol ref to register.
4951
4952 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
4953
4954         * tree.c (array_at_struct_end_p): Look through MEM_REF.
4955
4956 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
4957
4958         PR middle-end/71179
4959         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
4960         VECTOR type.
4961
4962 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
4963
4964         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
4965         ranges by calling get_single_symbol and tidy up.  Look more closely
4966         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
4967
4968 2016-05-20  Jeff Law  <law@redhat.com>
4969
4970         * bitmap.c (bitmap_find_bit): Remove useless test.
4971
4972 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
4973
4974         * function.c (thread_prologue_and_epilogue_insns): Commit the
4975         insertion of the epilogue.
4976
4977 2016-05-20  Martin Jambor  <mjambor@suse.cz>
4978
4979         PR tree-optimization/70884
4980         * tree-sra.c (initialize_constant_pool_replacements): Do not check
4981         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
4982         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
4983         of constant pool data as a reason for scalarization.
4984
4985 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
4986
4987         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
4988         for naked functions.
4989         (thumb1_expand_prologue): Likewise.
4990
4991 2016-05-20  Nathan Sidwell  <nathan@acm.org>
4992
4993         * config/nvptx/nptx.c (nvptx_option_override): Only set
4994         flag_toplevel_reorder, if not explicitly specified.  Set
4995         flag_no_common, unless explicitly specified.
4996
4997 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
4998
4999         * calls.c (can_implement_as_sibling_call_p): Mark param
5000         reg_parm_stack_space with ATTRIBUTE_UNUSED.
5001
5002 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
5003
5004         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
5005         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
5006         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
5007         constants.
5008         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
5009         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
5010         and CASE_CONST_ANY.
5011
5012 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
5013
5014         * config/nvptx/nvptx.md (sincossf3): New pattern.
5015
5016 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5017
5018         * calls.c (maybe_complain_about_tail_call): New function.
5019         (initialize_argument_information): Call
5020         maybe_complain_about_tail_call when clearing *may_tailcall.
5021         (can_implement_as_sibling_call_p): Call
5022         maybe_complain_about_tail_call when returning false.
5023         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
5024         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
5025         if tail-call optimization fails.
5026         * cfgexpand.c (expand_call_stmt): Initialize
5027         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
5028         * gimple-pretty-print.c (dump_gimple_call): Dump
5029         gimple_call_must_tail_p.
5030         * gimple.c (gimple_build_call_from_tree): Call
5031         gimple_call_set_must_tail with the value of
5032         CALL_EXPR_MUST_TAIL_CALL.
5033         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
5034         (gimple_call_set_must_tail): New function.
5035         (gimple_call_must_tail_p): New function.
5036         * print-tree.c (print_node): Update printing of TREE_STATIC
5037         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
5038         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
5039         trailing comment listing applicable flags.
5040         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
5041
5042 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
5043
5044         * calls.c (expand_call): Move "Rest of purposes for tail call
5045         optimizations to fail" to...
5046         (can_implement_as_sibling_call_p): ...this new function, and
5047         split into multiple "if" statements.
5048
5049 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5050
5051         * cfgloop.h (expected_loop_iterations_unbounded,
5052         expected_loop_iterations): Unconstify.
5053         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
5054         profile with known upper bound; return 3 when profile is absent.
5055         (expected_loop_iterations): Update.
5056
5057 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5058
5059         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
5060         and get_max_loop_iterations_int.
5061
5062 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
5063
5064         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
5065         realistic upper bounds here.
5066
5067 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
5068
5069         PR c++/71210
5070         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
5071         calls if the LHS is variable length or has addressable type.
5072         If targets[0]->decl is a noreturn call with void return type and
5073         zero arguments, adjust fntype and remove lhs in that case.
5074
5075 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
5076
5077         PR tree-optimization/71079
5078         PR tree-optimization/71206
5079         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
5080
5081 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5082
5083         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
5084         (get_vec_alignment_for_array_decl): Likewise.
5085         (get_vec_alignment_for_record_decl): Likewise.
5086         (increase_alignment::execute): Move code to find alignment to
5087         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
5088         (type_align_map): New hash_map.
5089
5090 2016-05-20  Richard Guenther  <rguenther@suse.de>
5091
5092         PR tree-optimization/29756
5093         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
5094         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
5095         * fold-const.c (operand_equal_p): Likewise.
5096         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
5097         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
5098         * tree-inline.c (estimate_operator_cost): Likewise.
5099         * tree-pretty-print.c (dump_generic_node): Likewise.
5100         * tree-ssa-operands.c (get_expr_operands): Likewise.
5101         * cfgexpand.c (expand_debug_expr): Likewise.
5102         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5103         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
5104         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
5105         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
5106         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
5107         (execute_update_addresses_taken): Do it.
5108
5109 2016-05-20  Richard Biener  <rguenther@suse.de>
5110
5111         PR tree-optimization/71185
5112         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
5113         register operations.
5114
5115 2016-05-20  Richard Biener  <rguenther@suse.de>
5116
5117         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
5118         gimple_seq_add_seq_without_update.
5119         (release_bb_predicate): Assert we have no operands to free.
5120         (if_convertible_loop_p_1): Calculate post dominators later.
5121         Do not free BB predicates here.
5122         (combine_blocks): Do not recompute BB predicates.
5123         (version_loop_for_if_conversion): Save BB predicates around
5124         loop versioning.
5125
5126 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5127
5128         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
5129         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
5130         code.  Ignore sibcalls on EDGE_IGNORE edges.
5131         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
5132         on edges for sibcalls that run without prologue.  The rest of the
5133         function is combined from...
5134         (fix_fake_fallthrough_edge): ... this, and ...
5135         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
5136         function argument, make it a local variable.
5137
5138 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
5139
5140         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
5141         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
5142         for 32-bit mode and SEH for 64-bit.
5143         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
5144         TARGET_64BIT_DEFAULT.
5145
5146 2016-05-19  Ryan Burn  <contact@rnburn.com>
5147
5148         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
5149         * gengtype.c (open_base_files): Add cilk.h to ifiles.
5150
5151 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
5152
5153         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
5154         force pending loads from memory.
5155
5156 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5157
5158         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
5159         (UNSPEC_DARN_32): New unspec constant.
5160         (UNSPEC_DARN_RAW): New unspec constant.
5161         (darn_32): New instruction.
5162         (darn_raw): New instruction.
5163         (darn): New instruction.
5164         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
5165         support and documentation for this macro.
5166         (BU_P9_MISC_1): New macro definition.
5167         (BU_P9_64BIT_MISC_0): New macro definition.
5168         (BU_P9_MISC_0): New macro definition.
5169         (darn_32): New builtin definition.
5170         (darn_raw): New builtin definition.
5171         (darn): New builtin definition.
5172         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
5173         RS6000_BUILTIN_0 directives to surround each occurrence of
5174         #include "rs6000-builtin.def".
5175         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
5176         RS6000_BTM_64BIT flags to the returned mask, depending on
5177         configuration.
5178         (def_builtin): Correct an error in the assignments made to the
5179         debugging variable attr_string.
5180         (rs6000_expand_builtin): Add support for no-operand built-in
5181         functions.
5182         (builtin_function_type): Remove fatal_error assertion that is no
5183         longer valid.
5184         (rs6000_common_init_builtins): Add support for no-operand built-in
5185         functions.
5186         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
5187         definition.
5188         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
5189         definition.
5190         (RS6000_BTM_64BIT): New macro definition.
5191         * doc/extend.texi: Document __builtin_darn (void),
5192         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
5193         functions.
5194
5195 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
5196
5197         * tree-vect-loop.c (vect_analyze_loop_2): Use also
5198         max_loop_iterations_int.
5199
5200 2016-05-19  Marek Polacek  <polacek@redhat.com>
5201
5202         PR tree-optimization/71031
5203         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
5204         condition and adjust the code a bit.
5205
5206 2016-05-19  Martin Liska  <mliska@suse.cz>
5207
5208         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
5209         auto_vec instead of vec.
5210
5211 2016-05-19  Martin Liska  <mliska@suse.cz>
5212
5213         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
5214
5215 2016-05-19  Martin Liska  <mliska@suse.cz>
5216
5217         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
5218
5219 2016-05-19  Martin Liska  <mliska@suse.cz>
5220
5221         * ipa-pure-const.c (set_function_state): Remove an existing
5222         funct_state.
5223         (remove_node_data): Do not free it as it's released
5224         in set_function_state.
5225
5226 2016-05-19  Martin Liska  <mliska@suse.cz>
5227
5228         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
5229         bitmap.
5230
5231 2016-05-19  Martin Liska  <mliska@suse.cz>
5232
5233         * omp-simd-clone.c (simd_clone_adjust): Release vector.
5234
5235 2016-05-19  Martin Liska  <mliska@suse.cz>
5236
5237         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
5238         an auto_vec instead of re-creating it.
5239
5240 2016-05-19  Martin Liska  <mliska@suse.cz>
5241
5242         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
5243         auto_vec instead of vec.
5244
5245 2016-05-19  Martin Liska  <mliska@suse.cz>
5246
5247         * lto-section-in.c (lto_get_section_data): Call
5248         lto_check_version with additional argument.
5249         * lto-streamer.c (lto_check_version): Add new argument.
5250         * lto-streamer.h (lto_check_version): Likewise.
5251
5252 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5253
5254         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
5255         Don't add cost of inner memory when handling sign-extended loads.
5256
5257 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
5258
5259         PR rtl-optimization/71148
5260         * cse.c (cse_main): Free dominance info.
5261         (rest_of_handle_cse): Don't free dominance info.
5262         (rest_of_handle_cse2): Likewise.
5263         (rest_of_handle_cse_after_global_opts): Likewise.
5264
5265 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5266
5267         PR target/71056
5268         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
5269         NULL_TREE early if NEON is not available.  Remove now redundant check
5270         in ARM_CHECK_BUILTIN_MODE.
5271
5272 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
5273
5274         PR sanitizer/64354
5275         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
5276         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
5277         * doc/cpp.texi: Document new macros.
5278
5279 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
5280
5281         PR tree-optimization/69848
5282         * tree-vect-loop.c (vectorizable_reduction): Don't factor
5283         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
5284
5285 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
5286
5287         * function.c (thread_prologue_and_epilogue_insn): Move the
5288         "goto epilogue_done" one block later.
5289
5290 2016-05-19  Richard Biener  <rguenther@suse.de>
5291
5292         PR tree-optimization/70729
5293         * passes.def: Move LIM pass before PRE.  Remove no longer
5294         required copyprop and move first DCE out of the loop pipeline.
5295
5296 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
5297
5298         PR driver/69265
5299         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
5300         (OBJS-libcommon-target): ...here.
5301         * opts-common.c: Include spellcheck.h.
5302         (cmdline_handle_error): Build a vec of valid options and use it
5303         to suggest provide hints for misspelled arguments.
5304
5305 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
5306
5307         PR c++/71100
5308         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
5309         lhs if it has TREE_ADDRESSABLE type.
5310
5311 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
5312
5313         PR target/71145
5314         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
5315         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
5316
5317 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5318
5319         PR ipa/69708
5320         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
5321         input for NOP_EXPR pass-through functions.
5322         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
5323         aggregate global constant VAR_DECLs in constant jump functions.
5324
5325 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5326
5327         PR ipa/69708
5328         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
5329         from TREE_READONLY parameters.
5330
5331 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5332
5333         PR ipa/69708
5334         * cgraph.h (cgraph_indirect_call_info): New field
5335         guaranteed_unmodified.
5336         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
5337         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
5338         appropriate.
5339         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
5340         pass the parameter value to ipa_find_agg_cst_for_param.
5341         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
5342         guaranteed_unmodified, store AA results there instead of bailing out
5343         if present.
5344         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
5345         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
5346         (find_constructor_constant_at_offset): New function.
5347         (ipa_find_agg_cst_from_init): Likewise.
5348         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
5349         static initializers of contants, report back through a new paameter
5350         from_global_constant if that was the case.
5351         (try_make_edge_direct_simple_call): Also pass parameter value to
5352         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
5353         appropriate.
5354         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
5355         (ipa_read_indirect_edge_info): Likewise.
5356         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
5357         (ipa_load_from_parm_agg): Likewise.
5358
5359 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
5360
5361         PR rtl-optimization/71150
5362         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
5363         check.
5364
5365 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5366
5367         PR target/70915
5368         * config/rs6000/constraints.md (wE constraint): New constraint
5369         for a vector constant that can be loaded with XXSPLTIB.
5370         (wM constraint): New constraint for a vector constant of a 1's.
5371         (wS constraint): New constraint for a vector constant that can be
5372         loaded with XXSPLTIB and a vector sign extend instruction.
5373         * config/rs6000/predicates.md (xxspltib_constant_split): New
5374         predicates for wE/wS constraints.
5375         (xxspltib_constant_nosplit): Likewise.
5376         (easy_vector_constant): Add support for constants that can be
5377         loaded via XXSPLTIB.
5378         (all_ones_constant): New predicate for vector constant with all
5379         1's set.
5380         (splat_input_operand): Add support for ISA 3.0 word splat operations.
5381         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
5382         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
5383         instruction and possibly with a sign extension.
5384         (output_vec_const_move): Add support for XXSPLTIB. If we are
5385         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
5386         instead of XXLXOR/XXLORC.
5387         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
5388         operations.
5389         (rs6000_legitimize_reload_address): Likewise.
5390         (rs6000_output_move_128bit): Use output_vec_const_move to emit
5391         constants.
5392         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
5393         combine VSX_M and VSX_M2 into one iterator.
5394         (VSX_M2): Likewise.
5395         (VSINT_84): New iterators for loading constants with XXSPLTIB.
5396         (VSINT_842): Likewise.
5397         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
5398         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
5399         XXSPLTIB instruction.
5400         (xxspltib_<mode>_nosplit): Likewise.
5401         (xxspltib_<mode>_split): New insn to load up constants with
5402         XXSPLTIB and a sign extend instruction.
5403         (vsx_mov<mode>): Replace single move that handled all vector types
5404         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
5405         moves (when -mvsx-timode is in effect) into the main vector
5406         moves.  Eliminate separate moves for <VSr> <VSa>, where the
5407         preferred register class (<VSr>) is listed first, and the
5408         secondary register class (<VSa>) is listed second with a '?' to
5409         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
5410         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
5411         that if the register was involved in a slow operation, the
5412         clear/set operation does not wait for the slow operation to
5413         finish.  Adjust the length attributes for 32-bit mode.  Use
5414         rs6000_output_move_128bit and drop the use of the string
5415         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
5416         spacing so that the alternatives and attributes don't generate
5417         long lines, and put things in columns, so that it is easier to
5418         match up the operands and attributes with the insn alternatives.
5419         (vsx_mov<mode>_64bit): Likewise.
5420         (vsx_mov<mode>_32bit): Likewise.
5421         (vsx_movti_64bit): Fold movti into normal vector moves.
5422         (vsx_movti_32bit): Likewise.
5423         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
5424         splat instructions.
5425         (vsx_splat_v4si_internal): Likewise.
5426         (vsx_splat_v4sf_internal): Likewise.
5427         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
5428         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
5429         extend vector elements.
5430         (vsx_sign_extend_hi_<mode>): Likewise.
5431         (vsx_sign_extend_si_v2di): Likewise.
5432         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
5433         declaration.
5434         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
5435         constraints.  Add trailing period to wL documentation.
5436
5437 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
5438
5439         PR middle-end/71020
5440         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
5441         * tree-dfa.c (replace_abnormal_ssa_names): New function.
5442         * tree-call-cdce.c: Include tree-dfa.h.
5443         (can_guard_call_p): New function, extracted from...
5444         (can_use_internal_fn): ...here.
5445         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
5446         and return void.
5447         (shrink_wrap_one_built_in_call): Likewise.
5448         (use_internal_fn): Likewise.
5449         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
5450         and return void.  Call replace_abnormal_ssa_names.
5451         (pass_call_cdce::execute): Check can_guard_call_p during the
5452         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
5453         will always change something.
5454
5455 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5456
5457         PR ipa/70646
5458         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
5459         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
5460
5461 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5462
5463         PR ipa/70646
5464         * ipa-inline.h (condition): New field size.
5465         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
5466         for comaprison and store it into the new condition.
5467         (evaluate_conditions_for_known_args): Use condition size to check
5468         access sizes for all but CHANGED conditions.
5469         (unmodified_parm_1): New parameter size_p, store access size into it.
5470         (unmodified_parm): Likewise.
5471         (unmodified_parm_or_parm_agg_item): Likewise.
5472         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
5473         (set_cond_stmt_execution_predicate): Extract access sizes and store
5474         them to conditions.
5475         (set_switch_stmt_execution_predicate): Likewise.
5476         (will_be_nonconstant_expr_predicate): Likewise.
5477         (will_be_nonconstant_predicate): Likewise.
5478         (inline_read_section): Stream condition size.
5479         (inline_write_summary): Likewise.
5480
5481 2016-05-18  Richard Biener  <rguenther@suse.de>
5482
5483         * tree-ssa-loop-im.c (determine_max_movement): Properly add
5484         condition cost to PHI cost instead of total_cost.
5485
5486 2016-05-18  Martin Liska  <mliska@suse.cz>
5487
5488         PR fortran/70856
5489         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
5490         merged variables.
5491
5492 2016-05-18  Richard Biener  <rguenther@suse.de>
5493
5494         * lto-streamer.h (LTO_major_version): Bump to 6.
5495
5496 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5497
5498         * function.c (make_split_prologue_seq, make_prologue_seq,
5499         make_epilogue_seq): New functions, factored out from...
5500         (thread_prologue_and_epilogue_insns): Here.
5501
5502 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5503
5504         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5505         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
5506         of before.  Add a comment.
5507
5508 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
5509
5510         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
5511         expression pointer, not pointer to the pointer.
5512
5513 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
5514
5515         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
5516         (avx2_pbroadcast<mode>): Add another alternative with v instead
5517         of x constraints in it, using <pbroadcast_evex_isa> isa.
5518         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
5519
5520         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
5521         constraint x instead of v in second alternative, add avx512bw
5522         alternative.
5523
5524         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
5525         constraint x instead of v in second alternative, add avx512bw
5526         alternative.
5527
5528         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
5529         constraint x instead of v in second alternative, add avx512bw
5530         alternative.
5531
5532         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
5533         avx512bw alternative.
5534
5535 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5536
5537         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
5538         array to 128 chars.
5539         (define_insn "*andnottf3"): Ditto.
5540         (define_insn "*<code><mode>3"/any_logic): Ditto.
5541         (define_insn "*<code>tf3"/any_logic): Ditto.
5542         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
5543         operand to block AVX-512VL insn variant emit when it is not enabled.
5544
5545 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5546
5547         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
5548         constraint fot SF mode.
5549
5550 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
5551             Kirill Yukhin  <kirill.yukhin@intel.com>
5552
5553         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
5554         modifiers.
5555         (define_insn "rsqrt14<mode>"): Ditto.
5556         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5557         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
5558         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
5559         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
5560         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
5561         Ditto.
5562         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
5563         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
5564         * config/i386/i386.c (ix86_print_operand): Expand check for size
5565         override codes for Intel syntax.
5566
5567 2016-05-18  Richard Biener  <rguenther@suse.de>
5568
5569         PR tree-optimization/71168
5570         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
5571         initialization earlier.
5572
5573 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
5574
5575         * config/aarch64/aarch64-simd.md
5576         (aarch64_reduc_plus_internal<mode>): Rename to...
5577         (reduc_plus_scal): ...This, and remove previous implementation.
5578
5579 2016-05-18  Richard Biener  <rguenther@suse.de>
5580
5581         * passes.def: Put late dse and cd_dce in canonical order.
5582
5583 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
5584
5585         * ipa-inline-transform.c (preserve_function_body_p): Look for
5586         first non-thunk clone.
5587         (save_function_body): Save into first non-thunk.
5588         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
5589         up call stmt id.
5590         (lto_output_node): Inline thunks don't need body in every
5591         partition.
5592         * lto-streamer-in.c: Do not fixup thunk clones.
5593         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
5594         thunks.
5595         * tree-inline.c (copy_bb): Be prepared for target node to be new after
5596         folding suceeds.
5597
5598 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5599
5600         PR middle-end/63586
5601         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
5602         (reassociate_bb): Call transform_add_to_multiply.
5603
5604 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5605
5606         * config/aarch64/aarch64.c (all_extensions): Removed unused
5607         static variable.
5608
5609 2016-05-17  Nathan Sidwell  <nathan@acm.org>
5610
5611         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
5612         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
5613
5614 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
5615
5616         PR tree-optimization/54579
5617         PR middle-end/55299
5618         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
5619
5620 2016-05-17  Marek Polacek  <polacek@redhat.com>
5621
5622         PR ipa/71146
5623         * tree-inline.c (expand_call_inline): Call
5624         maybe_remove_unused_call_args.
5625
5626 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
5627
5628         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
5629         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
5630         * doc/md.texi (fmin@var{m}3): Likewise.
5631
5632 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5633
5634         * match.pd (X & C): New transformation.
5635
5636 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5637
5638         * match.pd (~X & Y): New transformation.
5639
5640 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5641
5642         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
5643         information for new SSA_NAME.
5644         (simplify_conversion_using_ranges): Get range through get_range_info
5645         instead of get_value_range.
5646
5647 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5648
5649         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
5650         Remove inline assembly.
5651         (vmvn_s16): Likewise.
5652         (vmvn_s32): Likewise.
5653         (vmvn_u8): Likewise.
5654         (vmvn_u16): Likewise.
5655         (vmvn_u32): Likewise.
5656         (vmvnq_s8): Likewise.
5657         (vmvnq_s16): Likewise.
5658         (vmvnq_s32): Likewise.
5659         (vmvnq_u8): Likewise.
5660         (vmvnq_u16): Likewise.
5661         (vmvnq_u32): Likewise.
5662         (vmvn_p8): Likewise.
5663         (vmvnq_p16): Likewise.
5664
5665 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5666
5667         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
5668         Use builtin.
5669         (vmul_n_s16): Likewise.
5670         (vmul_n_s32): Likewise.
5671         (vmul_n_u16): Likewise.
5672         (vmul_n_u32): Likewise.
5673         (vmulq_n_f32): Likewise.
5674         (vmulq_n_f64): Likewise.
5675         (vmulq_n_s16): Likewise.
5676         (vmulq_n_s32): Likewise.
5677         (vmulq_n_u16): Likewise.
5678         (vmulq_n_u32): Likewise.
5679
5680 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5681
5682         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
5683         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
5684
5685 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5686
5687         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
5688         to *aarch64_fma4_elt_from_dup<mode>.
5689         (*aarch64_fnma4_elt_to_128df): Rename to
5690         *aarch64_fnma4_elt_from_dup<mode>.
5691         * config/aarch64/arm_neon.h (vfma_n_f64): New.
5692         (vfms_n_f32): Likewise.
5693         (vfms_n_f64): Likewise.
5694         (vfmsq_n_f32): Likewise.
5695         (vfmsq_n_f64): Likewise.
5696
5697 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
5698
5699         * wide-int.h: Change fixed_wide_int_storage from class to struct.
5700
5701 2016-05-17  Richard Biener  <rguenther@suse.de>
5702
5703         PR tree-optimization/71132
5704         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
5705         Only add control dependences for blocks in the loop.
5706         (build_rdg): Adjust.
5707         (generate_code_for_partition): Return whether loop should
5708         be destroyed and delay that.
5709         (distribute_loop): Likewise.
5710         (pass_loop_distribution::execute): Record loops to be destroyed
5711         and perform delayed destroying of loops.
5712
5713 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5714
5715         PR target/70809
5716         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
5717
5718 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5719
5720         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
5721
5722 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5723
5724         PR target/71114
5725         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
5726         insertion point for instructions generated by validize_mem.
5727
5728 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5729
5730         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
5731         in brackets.
5732
5733 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5734
5735         * config/aarch64/aarch64.c
5736         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
5737         rather than a macro.
5738
5739 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
5740
5741         * doc/invoke.texi (AArch64 Options): Various updates.
5742
5743 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5744
5745         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
5746         into instrumentation thunks.
5747         * cif-code.def (CIF_CHKP): New.
5748
5749 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
5750
5751         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
5752
5753 2016-05-16  Martin Jambor  <mjambor@suse.cz>
5754
5755         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
5756         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
5757
5758 2016-05-16  Marek Polacek  <polacek@redhat.com>
5759
5760         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
5761         commentary.
5762
5763 2016-05-16  Martin Jambor  <mjambor@suse.cz>
5764
5765         PR hsa/70857
5766         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
5767         the outlined kernel function.
5768
5769 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
5770
5771         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
5772         (ISA_HAS_DLSA): Ditto.
5773
5774 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
5775
5776         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
5777
5778 2016-05-16  Nathan Sidwell  <nathan@acm.org>
5779
5780         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
5781         (nvptx_name_replacement): Restore.  Add comment.
5782         (write_fn_proto, write_fn_proto_from_insn,
5783         nvptx_output_call_insn): Restore
5784         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
5785
5786 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
5787
5788         * config/aarch64/aarch64.md
5789         (add<mode>3_compareC_cconly_imm): Remove use of %w.
5790         (add<mode>3_compareC_imm): Likewise.
5791         (<optab>si3_uxtw): Split into register and immediate variants.
5792         (andsi3_compare0_uxtw): Likewise.
5793         (and<mode>3_compare0): Likewise.
5794         (and<mode>3nr_compare0): Likewise.
5795         (stack_protect_test_<mode>): Don't use %x for memory operands.
5796
5797 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
5798
5799         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
5800
5801 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
5802
5803         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
5804         Split integer shifts into shift_reg and bfm.
5805         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5806         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5807         (ror<mode>3_insn): Likewise.
5808         (<optab>si3_insn_uxtw): Likewise.
5809         (<optab><mode>3_insn): Change to rotate_imm.
5810         (extr<mode>5_insn_alt): Likewise.
5811         (extrsi5_insn_uxtw): Likewise.
5812         (extrsi5_insn_uxtw_alt): Likewise.
5813
5814 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
5815
5816         * doc/tm.texi: Regenerate.
5817         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
5818         (TARGET_INVALID_RETURN_TYPE): Remove.
5819         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
5820         TARGET_INVALID_RETURN_TYPE.
5821         * target.def (invalid_parameter_type): Remove.
5822         (invalid_return_type): Remove.
5823
5824 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5825
5826         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
5827         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
5828         calls from thunk.
5829         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
5830         gimple body.
5831         (preserve_function_body_p): No need to preserve function body
5832         * cif-codes.def (CIF_THUNK): Remove.
5833         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
5834
5835 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5836
5837         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
5838
5839 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5840
5841         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
5842         for thunks.
5843
5844 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5845
5846         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
5847         (inline_small_functions): Do not look for function symbol when
5848         resetting caches.
5849
5850 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5851
5852         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
5853         of inline thunks
5854
5855 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
5856             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5857             Jiong Wang  <jiong.wang@arm.com>
5858
5859         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
5860         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
5861         Define __ARM_FP16_ARGS when appropriate.
5862         * config/arm/arm.c (arm_invalid_parameter_type): Remove
5863         declaration.
5864         (arm_invalid_return_type): Likewise.
5865         (TARGET_INVALID_PARAMETER_TYPE): Remove.
5866         (TARGET_INVALID_RETURN_TYPE): Remove.
5867         (aapcs_vfp_sub_candidate): Allow HFmode.
5868         (aapcs_vfp_allocate): Add comment.  Support HFmode.
5869         (aapcs_vfp_allocate_return_reg): Likewise.
5870         (struct aapcs_cp_arg_layout): Slightly reword comments for
5871         is_return_candidate and allocate_return_reg.
5872         (output_mov_vfp): Update assert.
5873         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
5874         condition.
5875         (arm_invalid_parameter_type): Remove.
5876         (amr_invalid_return_type): Remove.
5877         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
5878         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
5879         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
5880
5881 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
5882
5883         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
5884         * config/aarch64/arch64-protos.h
5885         (aarch64_legitimize_reload_address): Remove.
5886         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
5887         Remove.
5888
5889 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
5890
5891         * configure.ac: Add ACX_NONCANONICAL_HOST.
5892         * configure: Regenerate.
5893         * Makefile.in: Set host_noncanonical.
5894
5895 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
5896
5897         PR target/71097
5898         * config/i386/i386.md (*movtf_internal): Before register allocation,
5899         do not allow FP constants for CM_MEDIUM memory model, allow only
5900         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
5901         (*movxf_internal): Ditto.
5902         (*movdf_internal): Ditto.
5903         (*movsf_internal): Ditto.
5904
5905 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
5906
5907         PR rtl-optimization/67483
5908         * combine.c (make_compound_operation): Don't call extract_left_shift
5909         with negative shift amounts.
5910
5911 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
5912
5913         PR bootstrap/71071
5914         * fold-const.c (fold_checksum_tree): Allow modification
5915         of TYPE_ALIAS_SET during folding.
5916
5917         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
5918         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
5919         (ix86_split_to_parts): Likewise.  Fix up formatting.
5920
5921 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5922
5923         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
5924         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
5925         printf format.
5926
5927 2016-05-13  Nathan Sidwell  <nathan@acm.org>
5928
5929         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
5930         (nvptx_name_replacement): Delete.
5931         (write_fn_proto, write_fn_proto_from_insn,
5932         nvptx_output_call_insn): Remove nvptx_name_replacement call.
5933         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
5934         * langhooks.c (add_builtin_funcction_common): Call
5935         targetm.mangle_decl_assembler_name.
5936
5937         * config/nvptx/nvptx.c (write_fn_proto): Handle
5938         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
5939
5940 2016-05-13  Martin Liska  <mliska@suse.cz>
5941
5942         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
5943         and PRIu64 in printf format.
5944
5945 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5946
5947         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
5948         comment.
5949
5950 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5951
5952         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5953         Change --param max-completely-peeled-times to
5954         --param max-completely-peel-times in dump file printing.
5955
5956 2016-05-13  Richard Biener  <rguenther@suse.de>
5957
5958         PR tree-optimization/42587
5959         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
5960         (find_bswap_or_nop_1): Likewise.
5961         (bswap_replace): Likewise.
5962
5963 2016-05-13  Martin Liska  <mliska@suse.cz>
5964
5965         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
5966         Initialize a variable with default value.
5967
5968 2016-05-13  Martin Liska  <mliska@suse.cz>
5969
5970         * doc/invoke.texi: Enhance explanation of error recovery
5971         of sanitizers.
5972
5973 2016-05-13  Martin Liska  <mliska@suse.cz>
5974
5975         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
5976         (struct cost_pair): Change inv_expr_id (int) to inv_expr
5977         (iv_inv_expr_ent *).
5978         (struct iv_inv_expr_ent): Comment struct fields.
5979         (sort_iv_inv_expr_ent): New function.
5980         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
5981         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
5982         a hash_map between iv_inv_expr_ent and number of usages.
5983         (niter_for_exit): Fix coding style.
5984         (tree_ssa_iv_optimize_init): Use renamed variable.
5985         (determine_base_object): Fix coding style.
5986         (alloc_iv): Likewise.
5987         (find_interesting_uses_outside): Likewise.
5988         (add_candidate_1): Likewise.
5989         (add_standard_iv_candidates): Likewise.
5990         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
5991         (prepare_decl_rtl): Fix coding style.
5992         (get_address_cost): Likewise.
5993         (get_shiftadd_cost): Likewise.
5994         (force_expr_to_var_cost): Likewise.
5995         (compare_aff_trees): Likewise.
5996         (get_expr_id): Restructure the function.
5997         (get_loop_invariant_expr_id): Renamed to
5998         get_loop_invariant_expr.
5999         (get_computation_cost_at): Replace usage of inv_expr_id with
6000         inv_expr.
6001         (get_computation_cost): Likewise.
6002         (determine_group_iv_cost_generic): Likewise.
6003         (determine_group_iv_cost_address): Likewise.
6004         (iv_period): Fix coding style.
6005         (iv_elimination_compare_lt): Likewise.
6006         (may_eliminate_iv): Likewise.
6007         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
6008         inv_expr.
6009         (determine_group_iv_costs): Dump invariant expressions.
6010         (iv_ca_recount_cost): Use the newly added hash_map.
6011         (iv_ca_set_remove_invariants): Fix coding style.
6012         (iv_ca_set_add_invariants): Fix coding style.
6013         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
6014         invariants.
6015         (iv_ca_set_cp): Likewise.
6016         (iv_ca_new): Initialize the newly added hash_map and remove
6017         initialization of fields.
6018         (iv_ca_free): Delete the hash_map.
6019         (iv_ca_dump): Dump invariant expressions.
6020         (iv_ca_extend): Fix coding style.
6021         (try_add_cand_for): Likewise.
6022         (create_new_ivs): Dump information about # of avg iterations and
6023         # of used invariant expressions.
6024         (rewrite_use_compare): Fix coding style.
6025         (free_loop_data): Set default value for max_inv_expr_id.
6026
6027 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6028
6029         * cse.c (rest_of_handle_cse): Use cleanup_cfg
6030         returned value cse_cfg_altered computation.
6031         (rest_of_handle_cse2): Likewise.
6032         (rest_of_handle_cse_after_global_opts): Likewise.
6033
6034 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6035
6036         PR target/53440
6037         * config/arm/arm.c (arm32_output_mi_thunk): New.
6038         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
6039         to split Thumb1 vs TARGET_32BIT functionality.
6040         (arm_thumb1_mi_thunk): New.
6041
6042 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6043
6044         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
6045         to true.
6046
6047 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6048
6049         PR target/71080
6050         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
6051
6052 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6053
6054         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
6055         (expand_builtin_trap): Emit a regular call.
6056         (set_builtin_user_assembler_name): Remove obsolete cases.
6057         * dse.c (scan_insn): Adjust.
6058         * except.c: Include calls.h.
6059         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
6060         emit a regular call to setjmp.
6061         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
6062         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
6063         (emit_block_move_via_libcall): Delete.
6064         (block_move_fn): Delete.
6065         (init_block_move_fn): Likewise.
6066         (emit_block_move_libcall_fn): Likewise.
6067         (emit_block_op_via_libcall): New function.
6068         (set_storage_via_libcall): Tidy up and use memset builtin.
6069         (block_clear_fn): Delete.
6070         (init_block_clear_fn): Likewise.
6071         (clear_storage_libcall_fn): Likewise.
6072         (expand_assignment): Call emit_block_move_via_libcall.
6073         Do not include gt-expr.h.
6074         * expr.h (emit_block_op_via_libcall): Declare.
6075         (emit_block_copy_via_libcall): New inline function.
6076         (emit_block_move_via_libcall): Likewise.
6077         (emit_block_comp_via_libcall): Likewise.
6078         (block_clear_fn): Delete.
6079         (init_block_move_fn): Likewise.
6080         (init_block_clear_fn): Likewise.
6081         (emit_block_move_via_libcall): Likewise.
6082         (set_storage_via_libcall): Add default parameter value.
6083         * libfuncs.h (enum libfunc_index): Remove obsolete values.
6084         (abort_libfunc): Delete.
6085         (memcpy_libfunc): Likewise.
6086         (memmove_libfunc): Likewise.
6087         (memcmp_libfunc): Likewise.
6088         (memset_libfunc): Likewise.
6089         (setbits_libfunc): Likewise.
6090         (setjmp_libfunc): Likewise.
6091         (longjmp_libfunc): Likewise.
6092         (profile_function_entry_libfunc): Likewise.
6093         (profile_function_exit_libfunc): Likewise.
6094         (gcov_flush_libfunc): Likewise.
6095         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
6096         and DECL_VISIBILITY on the declaration.
6097         (init_optabs): Do not initialize obsolete libfuncs.
6098         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
6099         * tree-core.h (ECF_RET1): Define.
6100         (ECF_TM_PURE): Adjust.
6101         (ECF_TM_BUILTIN): Likewise.
6102         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
6103         (build_common_builtin_nodes): Initialize abort builtin.
6104         Add ECF_RET1 on memcpy, memmove and memset builtins.
6105         Pass final flags for alloca and alloca_with_align builtins.
6106         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
6107         obsolete builtins.
6108         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
6109         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
6110         set_storage_via_libcall and call emit_block_copy_via_libcall.
6111
6112 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
6113
6114         * config/i386/i386.md (*call_got_x32): Change operand 0 to
6115         DImode before it is passed to ix86_output_call_operand.
6116         (*call_value_got_x32): Ditto for operand 1.
6117
6118 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
6119
6120         PR rtl-optimization/70904
6121         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
6122         reload for wide mode.
6123
6124 2016-05-12  Marek Polacek  <polacek@redhat.com>
6125
6126         PR c/70756
6127         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
6128         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
6129         * langhooks.h (incomplete_type_error): Likewise.
6130         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
6131         parameter, pass it down to incomplete_type_error.
6132         * tree.h (size_in_bytes): New inline overload.
6133         (size_in_bytes_loc): Renamed from size_in_bytes.
6134
6135 2016-05-12  Richard Biener  <rguenther@suse.de>
6136
6137         PR tree-optimization/71059
6138         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
6139         nary before looking up or entering the expression into the VN
6140         hashes.
6141         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
6142         Make sure to re-use NARYs without result as inserted by
6143         phi-translation.
6144
6145 2016-05-12  Richard Biener  <rguenther@suse.de>
6146
6147         PR tree-optimization/71062
6148         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
6149         field.
6150         * tree-ssa-structalias.c (set_uids_in_ptset): Set
6151         vars_contains_restrict if the var is a restrict tag.
6152         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
6153         do not disambiguate pointers against it.
6154         (dump_points_to_solution): Re-structure and adjust for new
6155         vars_contains_restrict flag.
6156         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
6157
6158 2016-05-12  Martin Liska  <mliska@suse.cz>
6159
6160         * doc/invoke.texi: Explain connection between
6161         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
6162
6163 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
6164
6165         PR tree-optimization/71006
6166         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
6167         consider COND_EXPR as a mask producer.
6168
6169 2016-05-12  Marek Polacek  <polacek@redhat.com>
6170
6171         PR driver/71063
6172         * opts.c (common_handle_option): Detect missing argument for --help^.
6173
6174 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6175
6176         PR target/70830
6177         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
6178         when popping the PC and within an interrupt handler routine.
6179         Add missing tab to output of "ldmfd".
6180         (output_return_instruction): Output LDMFD with SP update rather
6181         than POP when returning from interrupt handler.
6182
6183 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
6184
6185         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
6186         TARGET_64BIT && TARGET_AVX512DQ.
6187         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
6188         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
6189         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
6190         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
6191         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
6192         (*vec_extractv4si_zext): Add avx512dq alternative.
6193         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
6194         use v instead of x constraint in other alternatives where possible.
6195
6196         * config/i386/sse.md (sse2_loadld): Use v instead of x
6197         constraint in alternatives 0,1,4.
6198
6199         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
6200         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
6201         v constraints instead of x and <pinsr_evex_isa> isa attribute.
6202
6203         PR target/71019
6204         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
6205         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
6206         is not emitted unless TARGET_AVX512BW.
6207         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
6208         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
6209         for the result operand.
6210
6211         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
6212         constraint instead of x in avx alternatives.  Use maybe_evex instead
6213         of vex prefix.
6214
6215         * config/i386/constraints.md (Yv): New constraint.
6216         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
6217         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
6218         * config/i386/i386.md (avx512fvecmode): New mode attr.
6219         (*pushtf): Use v constraint instead of x.
6220         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
6221         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
6222         (*absneg<mode>2): Use Yv constraint instead of x constraint.
6223         (*absnegtf2_sse): Likewise.
6224         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
6225         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
6226         avx512f alternatives.
6227         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
6228
6229 2016-05-12  Richard Biener  <rguenther@suse.de>
6230
6231         PR tree-optimization/71060
6232         * tree-data-ref.c (initialize_data_dependence_relation): Do not
6233         require exact match of DR_BASE_OBJECT but only matching address and
6234         type.
6235
6236 2016-05-12  Richard Biener  <rguenther@suse.de>
6237
6238         PR tree-optimization/70986
6239         * cfganal.c: Include cfgloop.h.
6240         (dfs_find_deadend): Prefer to take edges exiting loops.
6241
6242 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6243
6244         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
6245         compile and run time.
6246
6247 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
6248
6249         PR c/43651
6250         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
6251
6252 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
6253
6254         * config/i386/i386.c (legitimize_pic_address): Use
6255         copy_to_suggested_reg instead of gen_movsi.
6256
6257 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6258
6259         * config/rs6000/predicates.md (quad_memory_operand): Move most of
6260         the code into quad_address_p and call it to share code with
6261         vsx_quad_dform_memory_operand.
6262         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
6263         d-form support.
6264         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
6265         bit instead of being a separate word.  Split -mpower9-dform into
6266         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
6267         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
6268         for the register class supporting 128-bit quad word memory offsets.
6269         (mode_supports_vsx_dform_quad): Helper function to return if the
6270         register class uses quad word memory offsets.
6271         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
6272         (rs6000_debug_reg_global): Always print if we are using LRA or not.
6273         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
6274         instructions are enabled, set up the appropriate addr_masks for
6275         128-bit types.
6276         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
6277         -mpower9-dform-scalar, instead of -mpower9-dform.
6278         (rs6000_option_override_internal): Split -mpower9-dform into two
6279         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
6280         -mpower9-dform switch sets or clears both.  If we are not using
6281         the LRA register allocator, do not enable -mpower9-dform-vector by
6282         default.  If we are using LRA, enable -mpower9-dform-vector and
6283         -mvsx-timode if it is appropriate.  Issue a warning if either
6284         -mpower9-dform-vector or -mvsx-timode are explicitly used without
6285         enabling LRA.
6286         (quad_address_offset_p): New helper function to return if the
6287         offset is legal for quad word memory instructions.
6288         (quad_address_p): New function to determin if GPR or vector
6289         register quad word memory addresses are legal.
6290         (mem_operand_gpr): Validate quad word address offsets.
6291         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
6292         d-form (register + offset) instructions.
6293         (offsettable_ok_by_alignment): Likewise.
6294         (rs6000_legitimate_offset_address_p): Likewise.
6295         (legitimate_lo_sum_address_p): Likewise.
6296         (rs6000_legitimize_address): Likewise.
6297         (rs6000_legitimize_reload_address): Add more debug statements for
6298         -mdebug=addr.
6299         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
6300         d-form instructions.
6301         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
6302         d-form instructions.  Distinguish different cases in debug
6303         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
6304         d-form instructions.
6305         (rs6000_preferred_reload_class): Likewise.
6306         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
6307         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
6308         of the ISA 2.06 indexed memory instructions.
6309         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
6310         use them to save/restore the saved vector registers instead of
6311         using Altivec instructions.
6312         (rs6000_emit_epilogue): Likewise.
6313         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
6314         (rs6000_opt_masks): Split -mpower9-dform into
6315         -mpower9-dform-scalar and -mpower9-dform-vector.
6316         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
6317         was not selected.
6318         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
6319         ISA 3.0 vector indexed memory instructions, and fold the code into
6320         the normal mov<mode> patterns.
6321         (p9_vecstore_<mode>): Likewise.
6322         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
6323         instructions.
6324         (vsx_movti_64bit): Likewise.
6325         (vsx_movti_32bit): Likewise.
6326         * config/rs6000/constraints.md (wO constraint): New constraint for
6327         ISA 3.0 vector d-form support.
6328         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
6329         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
6330         include -mpower9-dform-vector until we switch over to LRA.
6331         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
6332         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
6333         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
6334         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
6335         for -mpower9-dform and -mlra.
6336         * doc/md.texi (wO constraint): Document wO constraint.
6337
6338 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
6339
6340         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
6341         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
6342         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
6343         Move handling of non-insn arguments inline into the sole user:
6344         (output_trans_func): ...here.
6345         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
6346         in emitted function prototype.
6347         (output_internal_insn_latency_func): Ditto.  Simplify.
6348         (output_internal_maximal_insn_latency_func): Ditto.  Delete
6349         always-unused argument.
6350         (output_insn_latency_func): Ditto.
6351         (output_maximal_insn_latency_func): Ditto.
6352
6353 2016-05-11  Richard Biener  <rguenther@suse.de>
6354
6355         PR tree-optimization/71055
6356         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
6357         sth with precision not equal to access size verify we don't chop
6358         off bits.
6359
6360 2016-05-11  Richard Biener  <rguenther@suse.de>
6361
6362         PR debug/71057
6363         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
6364         (dwarf2out_finish): Move retry_incomplete_types call ...
6365         (dwarf2out_early_finish): ... here.
6366
6367 2016-05-11  Richard Biener  <rguenther@suse.de>
6368
6369         PR middle-end/71002
6370         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
6371         if the langhook insists on it.
6372         * fold-const.c (make_bit_field_ref): Add arg for the original
6373         reference and preserve its alias-set.
6374         (decode_field_reference): Take exp by reference and adjust it
6375         to the original memory reference.
6376         (optimize_bit_field_compare): Adjust callers.
6377         (fold_truth_andor_1): Likewise.
6378         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
6379
6380 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
6381
6382         PR middle-end/70807
6383         * cfgrtl.h (delete_insn_and_edges): Now return bool.
6384         * cfgrtl.c (delete_insn_and_edges): Likewise.
6385         * config/i386/i386.c (convert_scalars_to_vector): Remove
6386         redundant code.
6387         * cse.c (cse_insn): Compute cse_cfg_altered.
6388         (delete_trivially_dead_insns): Likewise.
6389         (cse_cc_succs): Likewise.
6390         (rest_of_handle_cse): Free dominance info if required.
6391         (rest_of_handle_cse2): Likewise.
6392         (rest_of_handle_cse_after_global_opts): Likewise.
6393
6394 2016-05-11  Alan Modra  <amodra@gmail.com>
6395
6396         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
6397         abi_v4_pass_in_fpr): New functions.
6398         (rs6000_function_arg_boundary): Exclude complex IBM long double
6399         from 64-bit alignment when ABI_V4.
6400         (rs6000_function_arg, rs6000_function_arg_advance_1,
6401         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
6402
6403 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
6404
6405         PR rtl-optimization/71028
6406         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
6407         jump with just a return in the fallthrough block if the branch
6408         block contains just a return as well.
6409
6410 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
6411
6412         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
6413         * match.pd ((X & Y) ^ Y): ... this.
6414         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
6415         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
6416
6417 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
6418
6419         * read-md.c (require_char_ws): New function.
6420         (read_string): Simplify using require_char_ws.
6421         (handle_constants): Likewise.
6422         (handle_enum): Likewise.
6423         (handle_file): Likewise.
6424         * read-md.h (require_char_ws): New declaration.
6425         * read-rtl.c (read_conditions): Simplify using require_char_ws.
6426         (read_mapping): Likewise.
6427         (read_rtx_code): Likewise.
6428         (read_nested_rtx): Likewise.
6429
6430 2016-05-10  James Norris  <jnorris@codesourcery.com>
6431
6432         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
6433         if offloading is enabled and -fopenacc or -fopenmp is specified.
6434         (CRTOFFLOADEND): Likewise.
6435         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
6436         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
6437
6438 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
6439
6440         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
6441         gotoff_operand code paths.  Use copy_to_suggested_regs and
6442         expand_simple_binop where appropriate.  Cleanup.
6443
6444 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6445
6446         PR target/70799
6447         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
6448         integer constants.
6449         (dimode_scalar_chain::vector_const_cost): New.
6450         (dimode_scalar_chain::compute_convert_gain): Handle constants.
6451         (dimode_scalar_chain::convert_op): Likewise.
6452         (dimode_scalar_chain::convert_insn): Likewise.
6453
6454 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6455
6456         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
6457         unary operation, not a binary one.
6458
6459 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6460
6461         PR middle-end/70877
6462         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
6463         calls with type casted fndecl.
6464
6465 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6466
6467         PR tree-optimization/70786
6468         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
6469         * calls.c (initialize_argument_information): Bind bounds
6470         with corresponding args passed by reference.
6471
6472 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
6473
6474         PR target/70927
6475         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
6476         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
6477         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
6478         accordingly.
6479
6480 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6481
6482         PR target/70963
6483         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
6484         code for a zero scale factor.
6485         (vsx_xvcvdpuxds_scale): Likewise.
6486
6487 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
6488
6489         * diagnostic-show-locus.c (layout::layout): Call show_ruler
6490         if show_ruler_p was set on the context.
6491         (layout::show_ruler): New method.
6492         * diagnostic.h (struct diagnostic_context): Add field
6493         "show_ruler_p".
6494
6495 2016-05-10  Richard Biener  <rguenther@suse.de>
6496
6497         PR tree-optimization/71039
6498         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
6499         (chk_uses): New function.
6500         (propagate_with_phi): Verify we can safely replicate the lhs of an
6501         aggregate assignment on all incoming edges.
6502
6503 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
6504
6505         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
6506         Forward declare.
6507         (rx_atomic_sequence): New class.
6508         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
6509         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
6510         non-inline.
6511         (rx_atomic_sequence::rx_atomic_sequence,
6512         rx_atomic_sequence::~rx_atomic_sequence): New functions.
6513         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
6514         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
6515         CTRLREG_INTB): New constants.
6516         (FETCHOP): New code iterator.
6517         (fethcop_name, fetchop_name2): New iterator code attributes.
6518         (QIHI): New mode iterator.
6519         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
6520         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
6521         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
6522
6523 2016-05-10  Martin Liska  <mliska@suse.cz>
6524
6525         * tree-inline.c (remap_dependence_clique): Do not remap
6526         debugging statements.
6527
6528 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6529
6530         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
6531         ("*fixuns_truncdfdi2_z13")
6532         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
6533         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
6534         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
6535
6536 2016-05-10  Richard Biener  <rguenther@suse.de>
6537
6538         PR tree-optimization/70497
6539         PR tree-optimization/28367
6540         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
6541         split out from ...
6542         (visit_reference_op_load): ... here.
6543         (vn_reference_lookup_3): Use it to handle subreg-like accesses
6544         with simplified BIT_FIELD_REFs.
6545         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
6546         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
6547         correctly.
6548
6549 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6550
6551         * dwarf2out.c (add_abstract_origin_attribute): Adjust
6552         documentation comment.  For BLOCK nodes, add a
6553         DW_AT_abstract_origin attribute that points to the DIE generated
6554         for the origin BLOCK.
6555         (gen_lexical_block_die): Call add_abstract_origin_attribute for
6556         blocks from inlined functions.
6557
6558 2016-05-10  Alan Modra  <amodra@gmail.com>
6559
6560         PR target/70947
6561         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
6562         regrename modifying insns saving lr before __morestack call.
6563         * config/rs6000/rs6000.md (split_stack_return): Similarly for
6564         insns restoring lr after __morestack call.
6565
6566 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
6567
6568         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
6569         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
6570         expanders.
6571         * config/i386/sse.md (vec_interleave_high<mode>,
6572         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
6573         <avx512>_vpermt2var<mode>3_maskz): Likewise.
6574
6575 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6576
6577         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
6578         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
6579         parallel reassociation for power8 and forward.
6580
6581 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
6582
6583         * config/i386/i386.md (absneg splitters with general regs): Use
6584         general_reg_operand predicate.
6585         (btsq peephole2): Use x86_64_immediate_operand to check if new
6586         value is suitable for immediate operand.  Generate emitted insn
6587         using RTL expressions.
6588         (btcq peephole2): Ditto.
6589         (btrq peephole2): Ditto.  Generate correct immediate operand
6590         for AND masking.
6591
6592 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
6593
6594         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
6595         bitpos.
6596
6597 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
6598
6599         * tree-affine.c (wide_int_constant_multiple_p): Add missing
6600         pointer dereference.
6601
6602 2016-05-09  Richard Biener  <rguenther@suse.de>
6603
6604         PR tree-optimization/70985
6605         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
6606         op0 isn't a gimple register.
6607
6608 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
6609
6610         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
6611         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
6612         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
6613         (i6400_fpu_mult): New cpu units.
6614         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
6615         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
6616         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
6617         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
6618         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
6619         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
6620         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
6621         (i6400_msa_long_float4, i6400_msa_long_float5)
6622         (i6400_msa_long_float8, i6400_msa_fdiv_df)
6623         (i6400_msa_fdiv_sf): New reservations.
6624         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
6625         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
6626         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
6627         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
6628         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
6629         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
6630         (msa_short_cmp, msa_short_float2, msa_short_logic3)
6631         (msa_short_store4, msa_long_load, msa_short_store)
6632         (msa_long_logic, msa_long_float2, msa_long_float4)
6633         (msa_long_float5, msa_long_float8, msa_long_mult)
6634         (msa_long_fdiv, msa_long_div): New reservations.
6635
6636 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
6637             Sameera Deshpande  <sameera.deshpande@imgtec.com>
6638             Matthew Fortune  <matthew.fortune@imgtec.com>
6639             Graham Stott  <graham.stott@imgtec.com>
6640             Chao-ying Fu  <chao-ying.fu@imgtec.com>
6641
6642         * config.gcc: Add MSA header file for mips*-*-* target.
6643         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
6644         (Ubv8i, Urv8):  New constraints.
6645         * config/mips/mips-ftypes.def: Add function types for MSA
6646         builtins.
6647         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
6648         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
6649         * config/mips/mips-msa.md: New file.
6650         * config/mips/mips-protos.h
6651         (mips_split_128bit_const_insns): New prototype.
6652         (mips_msa_idiv_insns): Likewise.
6653         (mips_split_128bit_move): Likewise.
6654         (mips_split_128bit_move_p): Likewise.
6655         (mips_split_msa_copy_d): Likewise.
6656         (mips_split_msa_insert_d): Likewise.
6657         (mips_split_msa_fill_d): Likewise.
6658         (mips_expand_msa_branch): Likewise.
6659         (mips_const_vector_same_val_p): Likewise.
6660         (mips_const_vector_same_bytes_p): Likewise.
6661         (mips_const_vector_same_int_p): Likewise.
6662         (mips_const_vector_shuffle_set_p): Likewise.
6663         (mips_const_vector_bitimm_set_p): Likewise.
6664         (mips_const_vector_bitimm_clr_p): Likewise.
6665         (mips_msa_vec_parallel_const_half): Likewise.
6666         (mips_msa_output_division): Likewise.
6667         (mips_ldst_scaled_shift): Likewise.
6668         (mips_expand_vec_cond_expr): Likewise.
6669         * config/mips/mips.c (enum mips_builtin_type): Add
6670         MIPS_BUILTIN_MSA_TEST_BRANCH.
6671         (mips_gen_const_int_vector_shuffle): New prototype.
6672         (mips_const_vector_bitimm_set_p): New function.
6673         (mips_const_vector_bitimm_clr_p): Likewise.
6674         (mips_const_vector_same_val_p): Likewise.
6675         (mips_const_vector_same_bytes_p): Likewise.
6676         (mips_const_vector_same_int_p): Likewise.
6677         (mips_const_vector_shuffle_set_p): Likewise.
6678         (mips_symbol_insns): Forbid loading symbols via immediate for
6679         MSA.
6680         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
6681         stores.
6682         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
6683         MSA.
6684         (mips_lx_address_p): Add support load indexed address for MSA.
6685         (mips_address_insns): Add calculation of instructions needed for
6686         stores and loads for MSA.
6687         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
6688         CONST_VECTOR for MSA and let it fall through.
6689         (mips_ldst_scaled_shift): New function.
6690         (mips_subword_at_byte): Likewise.
6691         (mips_msa_idiv_insns): Likewise.
6692         (mips_legitimize_move): Validate MSA moves.
6693         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
6694         calculation of costs for MSA division.
6695         (mips_split_move_p): Check if MSA moves need splitting.
6696         (mips_split_move): Split MSA moves if necessary.
6697         (mips_split_128bit_move_p): New function.
6698         (mips_split_128bit_move): Likewise.
6699         (mips_split_msa_copy_d): Likewise.
6700         (mips_split_msa_insert_d): Likewise.
6701         (mips_split_msa_fill_d): Likewise.
6702         (mips_output_move): Handle MSA moves.
6703         (mips_expand_msa_branch): New function.
6704         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
6705         Reinstate 'y' modifier.
6706         (mips_file_start): Add MSA .gnu_attribute.
6707         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
6708         FPRs.
6709         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
6710         (mips_class_max_nregs): Add register size for MSA supported mode.
6711         (mips_cannot_change_mode_class): Allow conversion between MSA
6712         vector modes and TImode.
6713         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
6714         instruction.
6715         (mips_secondary_reload_class): Force MSA loads/stores via memory.
6716         (mips_preferred_simd_mode): Add preffered modes for MSA.
6717         (mips_vector_mode_supported_p): Add MSA supported modes.
6718         (mips_autovectorize_vector_sizes): New function.
6719         (mips_msa_output_division): Likewise.
6720         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
6721         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
6722         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
6723         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
6724         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
6725         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
6726         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
6727         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
6728         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
6729         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
6730         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
6731         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
6732         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
6733         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
6734         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
6735         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
6736         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
6737         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
6738         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
6739         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
6740         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
6741         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
6742         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
6743         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
6744         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
6745         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
6746         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
6747         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
6748         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
6749         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
6750         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
6751         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
6752         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
6753         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
6754         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
6755         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
6756         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
6757         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
6758         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
6759         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
6760         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
6761         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
6762         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
6763         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
6764         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
6765         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
6766         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
6767         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
6768         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
6769         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
6770         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
6771         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
6772         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
6773         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
6774         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
6775         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
6776         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
6777         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
6778         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
6779         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
6780         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
6781         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
6782         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
6783         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
6784         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
6785         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
6786         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
6787         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
6788         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
6789         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
6790         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
6791         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
6792         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
6793         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
6794         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
6795         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
6796         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
6797         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
6798         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
6799         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
6800         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
6801         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
6802         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
6803         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
6804         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
6805         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
6806         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
6807         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
6808         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
6809         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
6810         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
6811         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
6812         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
6813         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
6814         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
6815         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
6816         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
6817         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
6818         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
6819         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
6820         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
6821         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
6822         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
6823         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
6824         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
6825         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
6826         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
6827         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
6828         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
6829         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
6830         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
6831         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
6832         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
6833         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
6834         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
6835         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
6836         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
6837         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
6838         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
6839         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
6840         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
6841         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
6842         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
6843         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
6844         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
6845         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
6846         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
6847         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
6848         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
6849         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
6850         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
6851         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
6852         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
6853         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
6854         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
6855         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
6856         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
6857         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
6858         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
6859         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
6860         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
6861         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
6862         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
6863         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
6864         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
6865         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
6866         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
6867         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
6868         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
6869         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
6870         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
6871         move_v builtins.
6872         (mips_get_builtin_decl_index): New array.
6873         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
6874         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
6875         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
6876         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
6877         (mips_init_builtins): Initialize mips_get_builtin_decl_index
6878         array.
6879         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
6880         hook.
6881         (mips_expand_builtin_insn): Prepare operands for
6882         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
6883         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
6884         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
6885         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
6886         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
6887         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
6888         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
6889         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
6890         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
6891         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
6892         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
6893         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
6894         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
6895         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
6896         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
6897         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
6898         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
6899         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
6900         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
6901         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
6902         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
6903         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
6904         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
6905         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
6906         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
6907         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
6908         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
6909         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
6910         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
6911         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
6912         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
6913         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
6914         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
6915         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
6916         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
6917         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
6918         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
6919         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
6920         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
6921         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
6922         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
6923         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
6924         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
6925         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
6926         These are set implicitly and an error is reported if overridden.
6927         (mips_expand_builtin_msa_test_branch): New function.
6928         (mips_expand_msa_shuffle): Likewise.
6929         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
6930         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
6931         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
6932         (mips_expand_vec_unpack): Add support for MSA.
6933         (mips_expand_vector_init): Likewise.
6934         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
6935         instead of const0_rtx.
6936         (mips_msa_vec_parallel_const_half): New function.
6937         (mips_gen_const_int_vector): Likewise.
6938         (mips_gen_const_int_vector_shuffle): Likewise.
6939         (mips_expand_msa_cmp): Likewise.
6940         (mips_expand_vec_cond_expr): Likewise.
6941         * config/mips/mips.h
6942         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
6943         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
6944         specified.
6945         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
6946         (ISA_HAS_MSA): New macro.
6947         (UNITS_PER_MSA_REG): Likewise.
6948         (BITS_PER_MSA_REG): Likewise.
6949         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
6950         (MSA_REG_FIRST): New macro.
6951         (MSA_REG_LAST): Likewise.
6952         (MSA_REG_NUM): Likewise.
6953         (MSA_REG_P): Likewise.
6954         (MSA_REG_RTX_P): Likewise.
6955         (MSA_SUPPORTED_MODE_P): Likewise.
6956         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
6957         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
6958         * config/mips/mips.md: Include mips-msa.md.
6959         (alu_type): Add simd_add.
6960         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
6961         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
6962         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
6963         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
6964         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
6965         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
6966         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
6967         simd_move, simd_load, simd_store.  Choose "multi" for moves
6968         for "qword_mode".
6969         (qword_mode): New attribute.
6970         (insn_count): Add instruction count for quad moves.
6971         Increase the count for MIPS SIMD division.
6972         (UNITMODE): Add UNITMODEs for vector types.
6973         (addsub): New code iterator.
6974         * config/mips/mips.opt (mmsa): New option.
6975         * config/mips/msa.h: New file.
6976         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
6977         specified.
6978         * config/mips/mti-linux.h: Likewise.
6979         * config/mips/predicates.md
6980         (const_msa_branch_operand): New constraint.
6981         (const_uimm3_operand): Likewise.
6982         (const_uimm4_operand): Likewise.
6983         (const_uimm5_operand): Likewise.
6984         (const_uimm8_operand): Likewise.
6985         (const_imm5_operand): Likewise.
6986         (aq10b_operand): Likewise.
6987         (aq10h_operand): Likewise.
6988         (aq10w_operand): Likewise.
6989         (aq10d_operand): Likewise.
6990         (const_m1_operand): Likewise.
6991         (reg_or_m1_operand): Likewise.
6992         (const_exp_2_operand): Likewise.
6993         (const_exp_4_operand): Likewise.
6994         (const_exp_8_operand): Likewise.
6995         (const_exp_16_operand): Likewise.
6996         (const_vector_same_val_operand): Likewise.
6997         (const_vector_same_simm5_operand): Likewise.
6998         (const_vector_same_uimm5_operand): Likewise.
6999         (const_vector_same_uimm6_operand): Likewise.
7000         (const_vector_same_uimm8_operand): Likewise.
7001         (par_const_vector_shf_set_operand): Likewise.
7002         (reg_or_vector_same_val_operand): Likewise.
7003         (reg_or_vector_same_simm5_operand): Likewise.
7004         (reg_or_vector_same_uimm6_operand): Likewise.
7005         * doc/extend.texi (MIPS SIMD Architecture Functions): New
7006         section.
7007         * doc/invoke.texi (-mmsa): Document new option.
7008
7009 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7010
7011         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
7012         * configure: Regenerate.
7013         * config.in: Regenerate.
7014         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
7015         on -fvtable-verify.
7016         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
7017         (ENDFILE_VTV_SPEC): Define.
7018
7019 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
7020
7021         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
7022         registers in all interrupt handlers if necessary.
7023         (rl78_option_override): Add warning.
7024         (MUST_SAVE_MDUC_REGISTERS): New macro.
7025         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
7026         * config/rl78/rl78.c (check_mduc_usage): New function.
7027         (mduc_regs): New structure to hold MDUC register data.
7028         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
7029         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
7030         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
7031         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
7032         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
7033         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
7034
7035 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
7036
7037         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
7038         (tree-ssa-loop-niter.h): Ditto.
7039         (idx_within_array_bound, ref_within_array_bound): New functions.
7040         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
7041         Factor out check on writable base object to ...
7042         (base_object_writable): ... here.
7043
7044 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7045
7046         * config/arm/arm.md (probe_stack): Add modes to set source
7047         and destination.
7048
7049 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
7050
7051         * regrename.c (base_reg_class_for_rename): New static function.
7052         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
7053
7054 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
7055
7056         * cgraph.c (thunk_adjust): Export.
7057         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
7058         * cgraphunit.c (thunk_adjust): Export.
7059         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
7060         thunks.
7061         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
7062         inlinable.
7063         * tree-inline.c (expand_call_inline): Expand thunks inline.
7064
7065 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
7066
7067         PR target/70998
7068         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
7069         (*sse2_vd_cvtss2sd): Ditto.
7070         * config/i386/i386.md
7071         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
7072         Generate *sse2_vd_cvtsd2ss pattern.
7073         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
7074         Generate *sse2_vd_cvtss2sd pattern.
7075
7076 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7077
7078         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
7079         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
7080         users.
7081
7082 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
7083
7084         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
7085         * config/sh/sh.c: Define and declare variables on first use throughout
7086         the file.
7087         (current_function_interrupt): Change to bool type.
7088         (frame_insn): Rename to emit_frame_insn and update users.
7089         (push_regs): Use bool for 'interrupt_handler' argument.
7090         (save_schedule_s): Remove.
7091         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
7092         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
7093         targetm.asm_out.unaligned_op.di.
7094         (gen_far_branch): Remove redundant forward declaration.
7095         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
7096         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
7097         (sh_set_return_address, sh_function_ok_for_sibcall,
7098         scavenge_reg): Update comments.
7099         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
7100         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
7101         (sh_attr_renesas_p): Remove unnecessary parentheses.
7102         (branch_dest): Simplify.
7103         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
7104         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
7105         (CUMULATIVE_ARGS): Change macro to typedef.
7106         (current_function_interrupt): Change to bool type.
7107         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
7108         Surround with __cplusplus ifdef.
7109         (sh_compare_op0, sh_compare_op1): Remove.
7110         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
7111
7112 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
7113
7114         * config/arm/arm.md: (arch): Add neon.
7115         (arch_enabled): Return yes for arch neon when TARGET_NEON.
7116         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
7117         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
7118         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
7119         attributes for alt renumbering.  Mark alt 3 as non-predicable.
7120         (thumb2_movdf_vfp): Likewise.
7121
7122 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
7123
7124         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
7125         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
7126         (*andqi_1): Add preferred_for_speed attribute to disparage
7127         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
7128         (*<code>qi_1): Ditto.
7129         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
7130         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
7131         (*ashlqi3_1): Ditto.
7132         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
7133         Add preferred_for_size attribute to disparage alternative 0 and
7134         preferred_for_speed attribute to disparage alternative 1 for
7135         TARGET_PARTIAL_REG_STALL targets.
7136
7137 2016-05-07  Tom de Vries  <tom@codesourcery.com>
7138
7139         PR tree-optimization/70956
7140         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
7141         def.
7142
7143 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
7144
7145         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
7146         * config/sh/sh.c (sh_cbranch_distance): Implement it.
7147         * config/sh/sh.md (branch_zero): Remove define_attr.
7148         (define_delay): Disable delay slot if branch distance is one insn.
7149
7150 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7151
7152         * config/i386/i386.md (LEAMODE): New mode attribute.
7153         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
7154         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
7155         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
7156         operand 2 predicate.
7157         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
7158         (*lea<mode>_general_3): Ditto.
7159         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
7160
7161 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
7162
7163         * genmddump.c (main): Convert argv from char ** to const char **.
7164
7165 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7166
7167         * coretypes.h (OVERRIDE): New macro.
7168         (FINAL): New macro.
7169
7170 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
7171
7172         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
7173         allow coalescing if the types are compatible.
7174
7175 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7176
7177         * pass_manager.h (pass_manager::register_pass_name): New method.
7178         (pass_manager::get_pass_by_name): New method.
7179         (pass_manager::create_pass_tab): New method.
7180         (pass_manager::m_name_to_pass_map): New field.
7181         * passes.c (name_to_pass_map): Delete global in favor of field
7182         "m_name_to_pass_map" of pass_manager.
7183         (register_pass_name): Rename from a function to...
7184         (pass_manager::register_pass_name): ...this method, updating
7185         for renaming of global "name_to_pass_map" to field
7186         "m_name_to_pass_map".
7187         (create_pass_tab): Rename from a function to...
7188         (pass_manager::create_pass_tab): ...this method, updating
7189         for renaming of global "name_to_pass_map" to field.
7190         (get_pass_by_name): Rename from a function to...
7191         (pass_manager::get_pass_by_name): ...this method.
7192         (enable_disable_pass): Convert use of get_pass_by_name to
7193         a method call, locating the pass_manager singleton.
7194
7195 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
7196
7197         * genattr-common.c (main): Convert argv from char ** to const char **.
7198         * genattr.c (main): Likewise.
7199         * genattrtab.c (main): Likewise.
7200         * genautomata.c (initiate_automaton_gen): Likewise.
7201         (main): Likewise.
7202         * gencodes.c (main): Likewise.
7203         * genconditions.c (main): Likewise.
7204         * genconfig.c (main): Likewise.
7205         * genconstants.c (main): Likewise.
7206         * genemit.c (main): Likewise.
7207         * genenums.c (main): Likewise.
7208         * genextract.c (main): Likewise.
7209         * genflags.c (main): Likewise.
7210         * genmddeps.c (main): Likewise.
7211         * genopinit.c (main): Likewise.
7212         * genoutput.c (main): Likewise.
7213         * genpeep.c (main): Likewise.
7214         * genpreds.c (main): Likewise.
7215         * genrecog.c (main): Likewise.
7216         * gensupport.c (init_rtx_reader_args_cb): Likewise.
7217         (init_rtx_reader_args): Likewise.
7218         * gensupport.h (init_rtx_reader_args_cb): Likewise.
7219         (init_rtx_reader_args): Likewise.
7220         * gentarget-def.c (main): Likewise.
7221         * read-md.c (read_md_files): Likewise.
7222         * read-md.h (read_md_files): Likewise.
7223
7224 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7225
7226         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
7227         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
7228         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
7229         Remove unused predicate.
7230         (register_and_not_fp_reg_operand): Ditto.
7231
7232 2016-05-06  Martin Liska  <mliska@suse.cz>
7233
7234         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
7235         instead of vec as the vector is local to the function.
7236
7237 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
7238
7239         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
7240         avx512bw alternative.
7241
7242         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
7243         before the ashr<mode>3 pattern.
7244
7245         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
7246         v instead of x in vex or maybe_vex alternatives, use
7247         maybe_evex instead of vex in prefix.
7248
7249         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
7250         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
7251         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
7252         in vex or maybe_vex alternatives, use maybe_evex instead of vex
7253         in prefix.
7254
7255         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
7256         v instead of x in vex or maybe_vex alternatives, use
7257         maybe_evex instead of vex in prefix.
7258
7259         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
7260         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
7261         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
7262         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
7263         alternatives, use maybe_evex instead of vex in prefix.
7264
7265         * config/i386/sse.md (vec_interleave_lowv4sf,
7266         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
7267         v instead of x in vex or maybe_vex alternatives, use
7268         maybe_evex instead of vex in prefix.
7269
7270         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
7271         v instead of x in vex or maybe_vex alternatives, use
7272         maybe_evex instead of vex in prefix.
7273
7274         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
7275         v constraint instead of x.
7276
7277 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
7278
7279         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
7280         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
7281         equality first.
7282
7283 2016-05-06  Richard Biener  <rguenther@suse.de>
7284
7285         PR tree-optimization/70948
7286         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7287         Properly clobber all fields of va_list for __builtin_va_start.
7288
7289 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
7290
7291         PR debug/70935
7292         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
7293         loop latch destination.
7294
7295 2016-05-06  Martin Liska  <mliska@suse.cz>
7296
7297         * tree-ssa-uninit.c: Apply manual changes
7298         to the GNU coding style.
7299         (prune_uninit_phi_opnds): Rename from
7300         prune_uninit_phi_opnds_in_unrealizable_paths.
7301
7302 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7303
7304         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
7305         mspace): Remove deprecated options.
7306         * doc/invoke.texi (SH options): Remove -mspace.
7307
7308 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7309
7310         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
7311
7312 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7313
7314         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
7315         corresponding combine split pattern.
7316
7317 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7318
7319         PR target/58219
7320         * config/sh/predicates.md (long_displacement_mem_operand): New.
7321         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
7322         Add movi20, movi20s alternatives.  Adjust length attribute for
7323         alternatives.
7324         (movsi_ie): Allow for any FPU.  Adjust length attribute for
7325         alternatives.
7326         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
7327         attribute for alternatives.
7328         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
7329         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
7330         length attribute for alternatives.
7331
7332 2016-05-06  Richard Biener  <rguenther@suse.de>
7333
7334         PR tree-optimization/70960
7335         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
7336
7337 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7338
7339         PR target/52933
7340         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
7341         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
7342
7343 2016-05-06  Marek Polacek  <polacek@redhat.com>
7344
7345         PR sanitizer/70875
7346         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
7347
7348 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
7349
7350         PR target/54089
7351         * config/sh/sh.md (*rotcr): Add another variant.
7352
7353 2016-05-06  Richard Biener  <rguenther@suse.de>
7354
7355         PR middle-end/70931
7356         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
7357
7358 2016-05-06  Richard Biener  <rguenther@suse.de>
7359
7360         PR middle-end/70941
7361         * fold-const.c (split_tree): Always convert to the original type
7362         before negating.
7363
7364 2016-05-06  Richard Biener  <rguenther@suse.de>
7365
7366         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
7367         (fwprop_addr): Likewise.
7368
7369 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7370
7371         PR target/70873
7372         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
7373         New prototype.
7374         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
7375         * config/i386/i386.md (push mem splitter): Use find_constant_src in
7376         the splitter condition.
7377         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
7378         the splitter condition.
7379         (FP float_extend load splitter): Ditto.
7380
7381 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
7382
7383         * config/i386/i386.md (peehole2 patterns): Change true_regnum
7384         to REGNO in all peephole2 patterns.
7385         (post-reload splitters): Change true_regnum to REGNO in
7386         post-reload splitters.
7387         (zero_extend splitters): Use general_reg_operand and
7388         nonimmediate_gr_operand predicates.
7389
7390 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
7391
7392         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
7393         v constraint instead of x.
7394
7395 2016-05-05  Alan Modra  <amodra@gmail.com>
7396
7397         PR target/68662
7398         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
7399         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
7400         TARGET_NO_FP_IN_TOC for -mrelocatable.
7401         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
7402         TARGET_RELOCATABLE test.
7403         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7404         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7405         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7406         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7407         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7408         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7409         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7410         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7411         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
7412         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
7413         Likewise.
7414         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
7415         (rs6000_stack_info): Likewise.
7416         (rs6000_elf_asm_out_constructor): Likewise.
7417         (rs6000_elf_asm_out_destructor): Likewise.
7418         (rs6000_elf_declare_function_name): Likewise.
7419         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
7420         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
7421         Don't define.
7422
7423 2016-05-05  Alan Modra  <amodra@gmail.com>
7424
7425         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
7426
7427 2016-05-05  Alan Modra  <amodra@gmail.com>
7428
7429         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
7430         out-of-line gpr restore for one or two regs if that would add
7431         a save of lr.
7432
7433 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
7434
7435         PR target/70873
7436         * config/i386/i386.md
7437         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
7438         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
7439         as operand 0 predicate.
7440         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
7441         Ditto.
7442         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
7443         Ditto.  Emit the pattern using RTX.
7444
7445         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
7446         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
7447         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
7448         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
7449         Ditto.
7450         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
7451         sse_reg_operand as operand 0 predicate.
7452
7453         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
7454         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
7455         instead of gen_rtx_REG.
7456         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
7457         Ditto.
7458
7459 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7460
7461         * function.c (emit_use_return_register_into_block): Delete.
7462         (gen_return_pattern): Delete.
7463         (emit_return_into_block): Delete.
7464         (active_insn_between): Delete.
7465         (convert_jumps_to_returns): Delete.
7466         (emit_return_for_exit): Delete.
7467         (thread_prologue_and_epilogue_insns): Delete all code dealing with
7468         simple_return for shrink-wrapped blocks.
7469         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
7470         end of blocks that need one.
7471         (get_unconverted_simple_return): Delete.
7472         (convert_to_simple_return): Delete.
7473         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
7474         (convert_to_simple_return): Ditto.
7475
7476 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7477
7478         * cfgcleanup.c (bb_is_just_return): New function.
7479         (try_optimize_cfg): Simplify jumps to return, branches to return,
7480         and branches around return.
7481
7482 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7483
7484         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
7485         branch to a return.
7486
7487 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
7488
7489         PR c++/70906
7490         PR c++/70933
7491         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
7492         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
7493         assert flags & OEP_HASH_CHECK, instead of asserting it
7494         never happens.  Handle TARGET_EXPR.
7495         * fold-const.c (operand_equal_p): For hash verification,
7496         or in OEP_HASH_CHECK into flags.
7497
7498 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7499
7500         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
7501         comment.
7502         (compute_samebase_partition_bases): Fix typo.
7503
7504 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
7505
7506         * config/i386/sse.md (vec_interleave_highv8sf,
7507         vec_interleave_lowv8sf, vec_interleave_highv4df,
7508         vec_interleave_lowv4df): Remove constraints from expanders.
7509
7510         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
7511
7512 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
7513
7514         * tree-inline.c (expand_call_inline): Fix path dealing with
7515         making lhs of call statement undefined.
7516
7517 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
7518
7519         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
7520         Check availability on NODE, too.
7521         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
7522         (cgraph_node::call_for_symbol_and_aliases): Likewise.
7523         (varpool_node::call_for_symbol_and_aliase): Likewise.
7524         * ipa-pure-const.c (add_new_function): Analyze all bodies.
7525         (propagate_pure_const): Propagate across interposable functions, too.
7526         (skip_function_for_local_pure_const): Do not skip interposable bodies
7527         with aliases.
7528         (pass_local_pure_const::execute): Update.
7529
7530 2016-05-04  Marek Polacek  <polacek@redhat.com>
7531
7532         * doc/invoke.texi: Document -Wdangling-else.
7533
7534 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7535
7536         * config.gcc: Error out when conflicting multilib is detected.  Do not
7537         loop over multilibs since no combination is legal.
7538
7539 2016-05-04  Alan Modra  <amodra@gmail.com>
7540
7541         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
7542         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
7543         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
7544         Align .toc.
7545
7546 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
7547
7548         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
7549         Clean up p5600 comments.
7550
7551 2016-05-04  Richard Biener  <rguenther@suse.de>
7552
7553         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
7554         constructor simplifications.
7555         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
7556
7557 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
7558
7559         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
7560         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
7561         result.set_rtx is null instead of aborting.
7562         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
7563         Always enable.
7564         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
7565         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
7566         *mov<mode>_store_postinc): New patterns.
7567
7568 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
7569
7570         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
7571         as commutative.  Check both conversions are NOP.
7572         ((A & B) OP (C & B)): Remove.
7573
7574 2016-05-04  Alan Modra  <amodra@gmail.com>
7575
7576         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
7577
7578 2016-05-04  Alan Modra  <amodra@gmail.com>
7579
7580         PR target/70866
7581         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
7582         when cr2,3,4 are all fixed regs.
7583
7584 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
7585
7586         PR rtl-optimization/57193
7587         * opts.c (default_options_table): Revert OPT_frename_registers change.
7588         * doc/invoke.texi (-frename-registers, -O2): Likewise.
7589
7590 2016-05-03  Martin Sebor  <msebor@redhat.com>
7591
7592         PR c++/66561
7593         * builtins.c (fold_builtin_FILE): New function.
7594         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
7595         (fold_builtin_0): Call them.
7596         * gimplify.c (gimplify_call_expr): Remove the handling of
7597         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
7598
7599         PR c++/66561
7600         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
7601         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
7602         constants.
7603
7604         PR c++/66639
7605         * doc/extend.texi (Function Names as Strings): Update __func__,
7606         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
7607         constants.
7608
7609 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7610             Richard Biener  <rguenther@suse.de>
7611
7612         PR tree-optimization/70916
7613         * tree-if-conv.c: Include cfganal.h.
7614         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
7615         and remove_fake_exit_edges around the optimization pass.
7616
7617 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
7618
7619         * cgraph.c (symbol_table::create_edge): Set inline_failed.
7620         (cgraph_edge::make_direct): Likewise.
7621         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
7622         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
7623         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
7624         (CIF_THUNK): New code.
7625         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
7626         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
7627         (compute_inline_parameters): Set inline_failed for thunks.
7628         (inline_analyze_function): Cleanup.
7629         * ipa-inline.c (can_inline_edge_p): Do not deal with
7630         call_stmt_cannot_inline_p.
7631         (can_early_inline_edge_p): Likewise.
7632         (early_inliner): Initialize inline_failed.
7633         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
7634
7635 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
7636
7637         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
7638         from nonimm_ssenomem_operand.
7639         (nonimm_ssenomem_operand): New predicate.
7640         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
7641         as operand 0 predicate.
7642         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
7643         Disable unsupported alternatives using "enabled" attribute.
7644         Use register_ssemem_operand as operand 0 predicate.
7645         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
7646
7647 2016-05-03  Marek Polacek  <polacek@redhat.com>
7648
7649         PR c/70859
7650         * input.c (expansion_point_location): New function.
7651         * input.h (expansion_point_location): Declare.
7652
7653 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
7654
7655         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
7656         occurence with frame_offset_ ones.
7657
7658 2016-05-03  Alan Modra  <amodra@gmail.com>
7659
7660         PR rtl-optimization/70890
7661         * ira.c (combine_and_move_insns): When moving def_insn, remove
7662         equivs on use_insn.
7663
7664 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7665
7666         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
7667         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
7668         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
7669         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
7670
7671 2016-05-03  Alan Modra  <amodra@gmail.com>
7672
7673         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
7674         for SAVE_MULTIPLE/STORE_MULTIPLE.
7675
7676 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7677
7678         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
7679         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
7680
7681 2016-05-03  Richard Biener  <rguenther@suse.de>
7682
7683         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
7684         default true.
7685         (gimplify_arg): Likewise.
7686         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
7687         re-writing the result to a decl if required.
7688         (internal_get_tmp_var): Add allow_ssa parameter
7689         and override into_ssa with it.
7690         (get_formal_tmp_var): Adjust.
7691         (get_initialized_tmp_var): Add allow_ssa parameter.
7692         (gimplify_arg): Add allow_ssa parameter and avoid generating
7693         SSA names for the result false.
7694         (gimplify_call_expr): If the call may return twice do not
7695         gimplify parameters into SSA.
7696         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
7697         (gimplify_modify_expr): Adjust assert.  For noreturn calls
7698         with a SSA name LHS adjust its def.
7699         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
7700         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
7701         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
7702         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
7703         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
7704         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
7705         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
7706         (optimize_target_teams): Do not allow SSA names for clause operands.
7707         (gimplify_expr): Likewise for where we mark the result addressable.
7708         * passes.def (pass_init_datastructures): Remove.
7709         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
7710         (rewrite_stmt): Likewise.
7711         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
7712         (replace_locals_op): Replace SSA names.
7713         (copy_gimple_seq_and_replace_locals): Init src_cfun.
7714         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
7715         * cgraph.c (release_function_body): Free CFG annotations only
7716         when we have a CFG.  Simplify.
7717         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
7718         force_gimple_operand instead of get_initialized_tmp_var.
7719         * tree-pass.h (make_pass_init_datastructures): Remove.
7720         * tree-ssa.c (execute_init_datastructures): Remove.
7721         (pass_data_init_datastructures): Likewise.
7722         (class pass_init_datastructures): Likewise.
7723         (make_pass_init_datastructures): Likewise.
7724         * omp-low.c (create_omp_child_function): Init SSA data structures.
7725         (grid_expand_target_grid_body): Likewise.
7726         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
7727         name before adding it to names_to_release.
7728         (remove_bb): Always release SSA defs.
7729         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
7730         before dereferencing it.
7731         * cgraphunit.c (init_lowered_empty_function): Always
7732         int SSA data structures.
7733         * tree-ssanames.c (release_defs): Remove assert that we are in
7734         SSA form.
7735         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
7736
7737 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7738             Uros Bizjak  <ubizjak@gmail.com>
7739
7740         PR rtl-optimization/70467
7741         * config/i386/predicates.md (x86_64_hilo_int_operand,
7742         x86_64_hilo_general_operand): New predicates.
7743         * config/i386/constraints.md (Wd): New constraint.
7744         * config/i386/i386.md (mode attr di): Use Wd instead of e.
7745         (general_hilo_operand): New mode attr.
7746         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
7747         instead of <general_operand>.
7748         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
7749         x86_64_hilo_general_operand instead of <general_operand>.
7750
7751 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7752
7753         PR tree-optimization/70916
7754         * tree-if-conv.c (constant_or_ssa_name): Removed.
7755         (fold_build_cond_expr): Use is_gimple_val instead of
7756         constant_or_ssa_name.
7757
7758         PR tree-optimization/70916
7759         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
7760         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
7761
7762         PR target/49244
7763         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
7764         (optimize_atomic_bit_test_and): New function.
7765         (pass_fold_builtins::execute): Use it.
7766         * optabs.def (atomic_bit_test_and_set_optab,
7767         atomic_bit_test_and_complement_optab,
7768         atomic_bit_test_and_reset_optab): New optabs.
7769         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
7770         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
7771         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
7772         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
7773         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
7774         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
7775         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
7776         * doc/md.texi (atomic_bit_test_and_set@var{mode},
7777         atomic_bit_test_and_complement@var{mode},
7778         atomic_bit_test_and_reset@var{mode}): Document.
7779         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
7780         atomic_bit_test_and_complement<mode>,
7781         atomic_bit_test_and_reset<mode>): New expanders.
7782         (atomic_bit_test_and_set<mode>_1,
7783         atomic_bit_test_and_complement<mode>_1,
7784         atomic_bit_test_and_reset<mode>_1): New insns.
7785
7786 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
7787
7788         PR rtl-optimization/70687
7789         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
7790         instead of unsigned HOST_WIDE_INT.
7791
7792 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
7793
7794         PR rtl-optimization/44281
7795         * hard-reg-set.h (struct target_hard_regs): New field
7796         x_fixed_nonglobal_reg_set.
7797         (fixed_nonglobal_reg_set): New macro.
7798         * reginfo.c (init_reg_sets_1): Initialize it.
7799         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
7800         of fixed_reg_set.
7801         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
7802
7803 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
7804
7805         PR tree-optimization/56541
7806         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
7807         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
7808         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
7809         (any_complicated_phi): new static variable.
7810         (aggressive_if_conv): delete.
7811         (if_convertible_phi_p): support phis with more than two arguments.
7812         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
7813         critical pred edges.
7814         (ifcvt_split_critical_edges): support phis with more than two
7815         arguments by checking new parameter.  only split critical edges
7816         if needed.
7817         (tree_if_conversion): handle simd pragma marked loop using new
7818         local variable aggressive_if_conv.  check any_complicated_phi.
7819
7820 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
7821
7822         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
7823         before using it.
7824
7825 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
7826
7827         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
7828         cbase.
7829
7830 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
7831
7832         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
7833         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
7834         define_insn_and_split.
7835         (mulsi3_i): New define_insn_and_split.
7836         (mulsi3_call): Convert to define_insn.
7837         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
7838         Remove constraints.
7839
7840 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7841
7842         * machmode.h (mode_complex): Add support to give the complex mode
7843         for a given mode.
7844         (GET_MODE_COMPLEX_MODE): Likewise.
7845         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
7846         stored by build_complex_type and gfc_build_complex_type instead of
7847         trying to figure out the appropriate mode based on the size. Raise
7848         an assertion error, if the type was not set.
7849         * genmodes.c (struct mode_data): Add field for the complex type of
7850         the given type.
7851         (blank_mode): Likewise.
7852         (make_complex_modes): Remember the complex mode created in the
7853         base type.
7854         (emit_mode_complex): Write out the mode_complex array to map a
7855         type mode to the complex version.
7856         (emit_insn_modes_c): Likewise.
7857         * tree.c (build_complex_type): Set the complex type to use before
7858         calling layout_type.
7859         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
7860         support for __float128 complex datatypes.
7861         (rs6000_hard_regno_mode_ok): Likewise.
7862         (rs6000_setup_reg_addr_masks): Likewise.
7863         (rs6000_complex_function_value): Likewise.
7864         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
7865         __float128 and __ibm128 complex.
7866         (FLOAT128_IBM_P): Likewise.
7867         (ALTIVEC_ARG_MAX_RETURN): Likewise.
7868         * doc/extend.texi (Additional Floating Types): Document that
7869         -mfloat128 must be used to enable __float128.  Document complex
7870         __float128 and __ibm128 support.
7871
7872 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
7873
7874         PR target/49244
7875         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
7876         char/short arguments promoted to int because of promote_prototypes.
7877
7878 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
7879
7880         * config/i386/predicates.md (register_ssemem_operand): New predicate.
7881         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
7882         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
7883         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
7884         alternatives using "enabled" attribute.  Use register_ssemem_operand
7885         as operand 1 predicate.
7886         (*cmpi<unord>xf_i387): Split XFmode pattern from
7887         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
7888         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
7889         *absneg<mode>2_i387.  Disable unsupported alternatives using
7890         "enabled" attribute.
7891         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
7892
7893 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
7894
7895         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
7896         marker.
7897         (oacc_loop_process): Check mask for loop termination.
7898
7899 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
7900
7901         * cif-code.def (CIF_THUNK): Add.
7902         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
7903         accidental change.
7904
7905 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
7906
7907         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
7908         (dump_inline_summary): Dump it.
7909         (fp_expression_p): New predicate.
7910         (estimate_function_body_sizes): Use it.
7911         (inline_merge_summary): Merge fp_expressions.
7912         (inline_read_section): Read fp_expressions.
7913         (inline_write_summary): Write fp_expressions.
7914         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
7915         codegen boundary if either caller or callee is !fp_expressions.
7916         * ipa-inline.h (inline_summary): Add fp_expressions.
7917         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
7918         to fp_expressions be sure the fp generation flags are updated.
7919
7920 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
7921
7922         PR rtl-optimization/70467
7923         * cse.c (cse_insn): Handle no-op MEM moves after folding.
7924
7925         PR rtl-optimization/70467
7926         * ipa-pure-const.c (check_call): Handle internal calls even in
7927         ipa mode like in local mode.
7928
7929 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7930
7931         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
7932
7933 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
7934
7935         * match.pd (X u< X, X u> X): New transformations.
7936
7937 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
7938
7939         * flag-types.h (enum warn_strict_overflow_code): Move ...
7940         * coretypes.h: ... here.
7941         * fold-const.h (fold_overflow_warning): Declare.
7942         * fold-const.c (fold_overflow_warning): Make non-static.
7943         (fold_comparison): Move the transformation of X +- C1 CMP C2
7944         into X CMP C2 -+ C1 ...
7945         * match.pd: ... here.
7946         * gimple-fold.c (fold_stmt_1): Protect with
7947         fold_defer_overflow_warnings.
7948
7949 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
7950
7951         * omp-low.c (struct oacc_loop): Add 'inner' field.
7952         (new_oacc_loop_raw): Initialize it to zero.
7953         (oacc_loop_fixed_partitions): Initialize it.
7954         (oacc_loop_auto_partitions): Partition outermost loop to outermost
7955         available partitioning.
7956
7957 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
7958
7959         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
7960         register_operand.
7961         (umulsidi3): Likewise.
7962         (indirect_jump): Fix jump instruction assembly patterns.
7963
7964 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
7965
7966         PR target/70860
7967         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
7968         (nvptx_function_value): Assert non-NULL cfun.
7969
7970 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
7971
7972         PR rtl-optimization/70886
7973         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
7974
7975         * cselib.h (rtx_equal_for_cselib_1): Declare.
7976         (rtx_equal_for_cselib_p: New inline function.
7977         * cselib.c (rtx_equal_for_cselib_p): Delete.
7978         (rtx_equal_for_cselib_1): Make public.
7979
7980 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
7981
7982         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
7983         (register_mixssei387nonimm_operand): Remove predicate.
7984         * config/i386/i386.md (*fop_<mode>_comm): Merge from
7985         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
7986         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
7987         for TARGET_MIX_SSE_I387 alternatives.
7988         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
7989         Disable unsupported alternatives using "enabled" attribute.  Use
7990         nonimm_ssenomem_operand as operand 1 predicate.  Also check
7991         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
7992
7993 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
7994
7995         * tree.c (cst_and_fits_in_hwi): Simplify.
7996
7997 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
7998
7999         * tree.h (wi::to_wide): New function.
8000         * expr.c (expand_expr_real_1): Use wi::to_wide.
8001         * fold-const.c (int_const_binop_1): Likewise.
8002         (extract_muldiv_1): Likewise.
8003
8004 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8005
8006         * wide-int.h: Update offset_int and widest_int documentation.
8007         (WI_SIGNED_SHIFT_RESULT): New macro.
8008         (wi::binary_shift): Define signed_shift_result_type for
8009         shifts on offset_int- and widest_int-like types.
8010         (generic_wide_int): Support <<= and >>= if << and >> are supported.
8011         * tree.h (int_bit_position): Use shift operators instead of wi::
8012          shifts.
8013         * alias.c (adjust_offset_for_component_ref): Likewise.
8014         * expr.c (get_inner_reference): Likewise.
8015         * fold-const.c (fold_comparison): Likewise.
8016         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
8017         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
8018         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8019         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
8020         (stmt_kills_ref_p): Likewise.
8021         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
8022         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
8023         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8024         (ao_ref_init_from_vn_reference): Likewise.
8025
8026 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
8027
8028         * wide-int.h: Update offset_int and widest_int documentation.
8029         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
8030         (wi::binary_traits): Allow ordered comparisons between offset_int and
8031         offset_int, between widest_int and widest_int, and between either
8032         of these types and basic C types.
8033         (operator <, <=, >, >=): Define for the same combinations.
8034         * tree.h (tree_int_cst_lt): Use comparison operators instead
8035         of wi:: comparisons.
8036         (tree_int_cst_le): Likewise.
8037         * gimple-fold.c (fold_array_ctor_reference): Likewise.
8038         (fold_nonarray_ctor_reference): Likewise.
8039         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
8040         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
8041         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
8042         * tree-sra.c (completely_scalarize): Likewise.
8043         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
8044         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
8045         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
8046         (check_for_binary_op_overflow): Likewise.
8047         (search_for_addr_array): Likewise.
8048         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
8049
8050 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8051
8052         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
8053         (arc_save_restore): Likewise.
8054         (arc_dwarf_register_span): Likewise.
8055         (arc_output_pic_addr_const): Initialize suffix variable.
8056
8057 2016-05-02  Martin Liska  <mliska@suse.cz>
8058
8059         * symbol-summary.h (function_summary::function_summary):
8060         Remove checking assert for all cgraph nodes.
8061         (function_summary::get): Check summary_uid.
8062         (symtab_insertion): Check summary_uid.
8063
8064 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
8065
8066         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
8067         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
8068         bmaskn instruction.
8069         (arc_dwarf_register_span): Remove enum keyword.
8070         (compact_memory_operand_p): New function.
8071         * config/arc/arc.h (reg_class): Add code density register classes.
8072         (REG_CLASS_NAMES): Likewise.
8073         (REG_CLASS_CONTENTS): Likewise.
8074         * config/arc/arc.md (*movqi_insn): Add code density instructions.
8075         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
8076         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
8077         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
8078         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
8079         constraints.
8080         (h, Rcd, Rsd, Rzd): New register constraints.
8081         (T): Use compact_memory_operand_p function.
8082         * config/arc/predicates.md (compact_load_memory_operand): Remove.
8083
8084 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8085
8086         * config/sh/sh.md (*negnegt, *movtt): Remove.
8087
8088 2016-05-02  Marek Polacek  <polacek@redhat.com>
8089             Tom de Vries  <tom@codesourcery.com>
8090
8091         PR tree-optimization/70700
8092         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
8093         bigger than FIRST_REF_NODE.
8094
8095 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
8096
8097         PR target/52898
8098         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
8099         TARGET_CMPEQDI_T.
8100         (prepare_cbranch_operands): Don't use scratch register.  Assume that
8101         function is used when pseudos can be created.
8102         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
8103         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
8104         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
8105         define_expand.  Allow it only when pseudos can be created.
8106         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
8107
8108 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
8109
8110         * config/i386/constraints.md (BC): Only allow -1 operands.
8111         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
8112         Add "enabled" attribute.  Update XI mode attribute calculation.
8113         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
8114         (*movoi_internal_avx): Update XI mode attribute calculation.
8115         (*movti_internal): Ditto.
8116
8117 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8118
8119         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
8120         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
8121
8122 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8123
8124         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
8125         statement on instruction code.  Remove trailing spaces.
8126         (altivec_expand_stv_builtin): Likewise.
8127
8128 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8129
8130         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
8131         (TARGET_FPU_DOUBLE): Simplify.
8132         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
8133         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
8134         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
8135         with 'TARGET_FPU_DOUBLE'.
8136         * config/sh/sh.md: Likewise.
8137
8138 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
8139
8140         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
8141         SH_DIV_STR_FOR_SIZE): Remove.
8142         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
8143         SH_DIV_STR_FOR_SIZE): Remove.
8144
8145 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
8146
8147         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
8148         logical_reg_operand): Delete.
8149         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
8150         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
8151         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
8152         match_operand and match_test.
8153         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
8154         variables on their first use.  Return bool values.
8155         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
8156         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
8157         arith_reg_operand for input operand.  Remove empty constraints.
8158         (xorsi3): Delete.
8159         (*xorsi3_compact): Rename to xorsi3.
8160         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
8161         (*zero_extend<mode>si2_disp_mem): Update comment.
8162         (mov_nop): Delete.
8163
8164 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
8165
8166         * config/sh/t-sh: Remove SH5 support.
8167         * config.gcc: Likewise.
8168         * configure: Likewise.
8169
8170 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8171
8172         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
8173
8174 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
8175
8176         * config/sh/sh.c (register_sh_passes, sh_option_override,
8177         sh_print_operand, prepare_move_operands,
8178         sh_can_follow_jump): Remove TARGET_SH1 checks.
8179         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
8180         PROMOTE_MODE): Likewise.
8181         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
8182         movdi): Likewise.
8183
8184 2016-04-30  Alan Modra  <amodra@gmail.com>
8185
8186         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
8187         restoring when fixed_reg_p, but allow out-of-line or stmw save.
8188         Check for user regs later to avoid unnecessary looping over regs.
8189         Merge user reg check with non-saved reg check.  Don't force
8190         inline VR restore when static chain used.
8191         (rs6000_frame_related): Omit eh_frame info for user regs when
8192         saving.
8193         (fixed_regs_p): Delete.
8194
8195 2016-04-30  Alan Modra  <amodra@gmail.com>
8196
8197         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
8198         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
8199         Update all uses.
8200
8201 2016-04-30  Alan Modra  <amodra@gmail.com>
8202
8203         PR target/69645
8204         * config/rs6000/rs6000.c (fixed_reg_p): New function.
8205         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
8206         Update all uses.
8207
8208 2016-04-30  Alan Modra  <amodra@gmail.com>
8209
8210         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
8211         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
8212         flag_pic test for Darwin.
8213
8214 2016-04-30  Alan Modra  <amodra@gmail.com>
8215
8216         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
8217         throw_calls_crossed.
8218         (REG_FREQ_CALLS_CROSSED): Delete.
8219         (REG_N_THROWING_CALLS_CROSSED): Delete.
8220         * regstat.c (regstat_bb_compute_ri): Don't calculate
8221         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
8222         (dump_reg_info): Don't print call cross frequency.
8223         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
8224         and REG_N_THROWING_CALLS_CROSSED.
8225
8226 2016-04-30  Alan Modra  <amodra@gmail.com>
8227
8228         * regs.h (struct reg_info_t): Delete live_length.
8229         (REG_LIVE_LENGTH): Delete macro.
8230         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
8231         local_live, local_processed and local_live_last_luid params.
8232         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
8233         Formatting fixes.
8234         (regstat_compute_ri): Adjust for above.  Don't set
8235         REG_LIVE_LENGTH.
8236         (dump_reg_info): Don't print live length.
8237         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
8238         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
8239         Localize loop_depth var.
8240
8241 2016-04-30  Alan Modra  <amodra@gmail.com>
8242
8243         * ira.c (enum valid_equiv): New.
8244         (validate_equiv_mem): Return enum.
8245         (update_equiv_mem): Create replacement in more cases.
8246         (add_store_equivs): Update validate_equiv_mem call.
8247
8248 2016-04-30  Alan Modra  <amodra@gmail.com>
8249
8250         * ira.c (combine_and_move_insns): Rather than scanning insns,
8251         use DF infrastucture to find use and def insns.
8252
8253 2016-04-30  Alan Modra  <amodra@gmail.com>
8254
8255         ira.c (combine_and_move_insns): Move invariant conditions..
8256         (ira.c): ..to here.  Call combine_and_move_insns before
8257         add_store_equivs.  Call grow_reg_equivs later.  Allocate
8258         req_equiv later using max_reg_num() rather than global max_regno.
8259         (contains_replace_regs): Delete.
8260         (add_store_equivs): Remove contains_replace_regs test.
8261
8262 2016-04-30  Alan Modra  <amodra@gmail.com>
8263
8264         * ira.c (struct equiv_mem_data): New.
8265         (equiv_mem, equiv_mem_modified): Delete static vars.
8266         (validate_equiv_mem_from_store): Use "data" param to communicate..
8267         (validate_equiv_mem): ..from here.
8268
8269 2016-04-30  Alan Modra  <amodra@gmail.com>
8270
8271         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
8272         split out from..
8273         (update_reg_equivs): ..here.  Move allocation and freeing of
8274         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
8275         end_alias_analysis to..
8276         (ira): ..here.
8277
8278 2016-04-30  Alan Modra  <amodra@gmail.com>
8279
8280         * ira.c (pdx_subregs): Delete.
8281         (struct equivalence): Add pdx_subregs field.
8282         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
8283         pdx_subregs access.
8284         (update_equiv_regs): Don't create or free pdx_subregs.  Update
8285         pdx_subregs access.
8286
8287 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8288
8289         * config/rs6000/altivec.h: Change definitions of vec_xl and
8290         vec_xst.
8291         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
8292         (LD_ELEMREV_V2DI): New.
8293         (LD_ELEMREV_V4SF): New.
8294         (LD_ELEMREV_V4SI): New.
8295         (LD_ELEMREV_V8HI): New.
8296         (LD_ELEMREV_V16QI): New.
8297         (ST_ELEMREV_V2DF): New.
8298         (ST_ELEMREV_V2DI): New.
8299         (ST_ELEMREV_V4SF): New.
8300         (ST_ELEMREV_V4SI): New.
8301         (ST_ELEMREV_V8HI): New.
8302         (ST_ELEMREV_V16QI): New.
8303         (XL): New.
8304         (XST): New.
8305         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8306         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
8307         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
8308         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
8309         (altivec_expand_builtin): Add handling for
8310         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
8311         (rs6000_invalid_builtin): Add error-checking for
8312         RS6000_BTM_P9_VECTOR.
8313         (altivec_init_builtins): Define builtins used to implement vec_xl
8314         and vec_xst.
8315         (rs6000_builtin_mask_names): Define power9-vector.
8316         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
8317         (RS6000_BTM_P9_VECTOR): Define.
8318         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
8319         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
8320         (vsx_ld_elemrev_v2df): Likewise.
8321         (vsx_ld_elemrev_v4sf): Likewise.
8322         (vsx_ld_elemrev_v4si): Likewise.
8323         (vsx_ld_elemrev_v8hi): Likewise.
8324         (vsx_ld_elemrev_v16qi): Likewise.
8325         (vsx_st_elemrev_v2df): Likewise.
8326         (vsx_st_elemrev_v2di): Likewise.
8327         (vsx_st_elemrev_v4sf): Likewise.
8328         (vsx_st_elemrev_v4si): Likewise.
8329         (vsx_st_elemrev_v8hi): Likewise.
8330         (vsx_st_elemrev_v16qi): Likewise.
8331         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
8332         grammar.
8333
8334 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
8335
8336         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
8337         out into ...
8338         (simplify_control_stmt_condition_1): ... here.  Recurse into
8339         BIT_AND_EXPRs and BIT_IOR_EXPRs.
8340
8341 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
8342
8343         PR target/69810
8344         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
8345         (zero_extendqi<mode>2_dot): Revert earlier conversion from
8346         define_insn_and_split to define_insn.
8347         (zero_extendqi<mode>2_dot2): Same.
8348         (extendqi<mode>2_dot): Same.
8349         (extendqi<mode>2_dot2): Same.
8350
8351 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8352
8353         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
8354         (probe_stack): New expander.
8355         (probe_stack_<mode>): New insn pattern.
8356
8357 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8358
8359         * config/i386/i386.md
8360         (operations with memory inputs setting flags peephole2):
8361         Remove uneeded REG_P checks.  Cleanup pattern generation.
8362
8363 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8364
8365         * tree-vect-loop.c (vect_transform_loop): Fix
8366         nb_iterations_upper_bound computation for vectorized loop.
8367
8368 2016-04-29  Marek Polacek  <polacek@redhat.com>
8369             Jakub Jelinek  <jakub@redhat.com>
8370
8371         PR sanitizer/70342
8372         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
8373         TARGET_EXPR_SLOT as a base.
8374
8375 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
8376
8377         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
8378         with 'rCm2' constraints to limit possible immediate size.
8379         (*load_zeroextendqisi_update): Likewise.
8380         (*load_signextendqisi_update): Likewise.
8381         (*loadhi_update): Likewise.
8382         (*load_zeroextendhisi_update): Likewise.
8383         (*load_signextendhisi_update): Likewise.
8384         (*loadsi_update): Likewise.
8385         (*loadsf_update): Likewise.
8386
8387 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8388
8389         * config/i386/predicates.md (constm1_operand): Fix comparison.
8390
8391 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
8392
8393         * testsuite/gcc.target/arc/ieee_eq.c: New test.
8394
8395 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
8396
8397         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
8398         remaining SH5 related settings.
8399         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
8400         shmedia_prepare_call_address): Delete.
8401         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
8402         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
8403         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
8404         UNSUPPORTED_SH2A): Remove m5 checks.
8405         (sh_divide_strategy_e): Remove SH5 division strategies.
8406         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
8407         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
8408
8409 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8410
8411         * config/s390/s390.c (s390_rtx_costs): Update documentation.
8412
8413 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8414
8415         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
8416         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
8417         Change lder to ldr.
8418         * config/s390/vector.md ("mov<mode>"): Likewise.
8419
8420 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
8421
8422         * config/s390/constraints.md ("U", "W"): Invoke
8423         s390_mem_constraint with "ZR" and "ZT".
8424         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
8425         addresses when using LRA.  Accept also short displacements for S
8426         and T constraints.  Do not check for long displacement target for
8427         S and T constraints.
8428         (s390_mem_constraint): Remove handling of U and W constraints.
8429         * config/s390/s390.md (various patterns): Remove the short
8430         displacement constraints (Q and R) if a long displacement
8431         constraint is present.  Add longdisp as required CPU capability.
8432         * config/s390/vector.md: Likewise.
8433         * config/s390/vx-builtins.md: Likewise.
8434
8435 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8436
8437         PR target/60040
8438         * reload1.c (reload): Call finish_spills before
8439         restarting reload loop. Skip select_reload_regs
8440         if update_eliminables_and_spill returns true.
8441
8442 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
8443
8444         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
8445         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
8446         (umulhisi3_imm): Update predicates and constraint letters.
8447         (umulhisi3_reg): Declare instruction as commutative.
8448         * config/arc/constraints.md (J12, J16): New constraints.
8449         * config/arc/predicates.md (short_unsigned_const_operand): New
8450         predicate.
8451         (arc_short_operand): Likewise.
8452         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
8453
8454 2016-04-29  Richard Biener  <rguenther@suse.de>
8455
8456         PR tree-optimization/13962
8457         PR tree-optimization/65686
8458         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
8459         * tree-ssa-alias.c (ptrs_compare_unequal): New function
8460         using PTA to compare pointers.
8461         * match.pd: Add pattern for pointer equality compare simplification
8462         using ptrs_compare_unequal.
8463
8464 2016-04-29  Richard Biener  <rguenther@suse.de>
8465
8466         * stor-layout.c (layout_type): Do not build a pointer-to-element
8467         type for arrays.
8468
8469 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8470
8471         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
8472         Use SWI mode iterator.  Use general_reg_operand predicate.
8473         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
8474         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
8475         predicates.
8476
8477 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
8478
8479         PR middle-end/70843
8480         * fold-const.c (operand_equal_p): Don't verify hash value equality
8481         if arg0 == arg1.
8482         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
8483         and OMP_CLAUSE.
8484
8485 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8486
8487         PR target/70858
8488         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
8489         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
8490         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
8491         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
8492         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
8493
8494 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8495
8496         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
8497         to info.  Don't initialize separate fields to 0.  Clean up
8498         formatting a bit.
8499
8500 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8501
8502         * config/i386/i386.md (peephole2s for operations with memory inputs):
8503         Use SWI mode iterator.
8504         (peephole2s for operations with memory outputs): Ditto.
8505         Do not check for stack checking probe.
8506
8507         (probe_stack): Remove expander.
8508
8509 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8510             Andrew Burgess  <andrew.burgess@embecosm.com>
8511
8512         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
8513         operands as 32-bits.
8514
8515 2016-04-28  Jason Merrill  <jason@redhat.com>
8516
8517         * gdbinit.in: Skip line-map.h.
8518
8519 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8520             Andrew Burgess  <andrew.burgess@embecosm.com>
8521
8522         * config/arc/arc.c (arc_conditional_register_usage): Take
8523         TARGET_RRQ_CLASS into account.
8524         (arc_print_operand): Support printing 'p' and 's' operands.
8525         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
8526         as 0.
8527         (TARGET_RRQ_CLASS): Define.
8528         (IS_POWEROF2_OR_0_P): Define.
8529         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
8530         alternatives.
8531         (*tst_movb): New define_insn.
8532         (*tst): Avoid recognition if it could prevent '*tst_movb'
8533         combination; replace c/CnL with c/Chs alternative.
8534         (*tst_bitfield_tst): New define_insn.
8535         (*tst_bitfield_asr): New define_insn.
8536         (*tst_bitfield): New define_insn.
8537         (andsi3_i): Add Rrq variant.
8538         (extzv): New define_expand.
8539         (insv): New define_expand.
8540         (*insv_i): New define_insn.
8541         (*movb): New define_insn.
8542         (*movb_signed): New define_insn.
8543         (*movb_high): New define_insn.
8544         (*movb_high_signed): New define_insn.
8545         (*movb_high_signed + 1): New define_split pattern.
8546         (*mrgb): New define_insn.
8547         (*mrgb + 1): New define_peephole2 pattern.
8548         (*mrgb + 2): New define_peephole2 pattern.
8549         * config/arc/arc.opt (mbitops): New option for nps400, uses
8550         TARGET_NPS_BITOPS_DEFAULT.
8551         * config/arc/constraints.md (q): Make register class conditional.
8552         (Rrq): New register constraint.
8553         (Chs): New constraint.
8554         (Clo): New constraint.
8555         (Chi): New constraint.
8556         (Cbf): New constraint.
8557         (Cbn): New constraint.
8558         (C18): New constraint.
8559         (Cbi): New constraint.
8560
8561 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8562
8563         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
8564         dst->popcount.
8565         (bitmap_intersection_of_preds): Ditto.
8566         (bitmap_union_of_succs): Ditto.
8567         (bitmap_union_of_preds): Ditto.
8568         * sbitmap.c (do_popcount): Delete.
8569         (BITMAP_DEBUGGING): Delete.
8570         (sbitmap_verify_popcount): Delete.
8571         (sbitmap_alloc): Don't initialize the popcount field.
8572         (sbitmap_alloc_with_popcount): Delete.
8573         (sbitmap_resize): Don't resize the popcount array.
8574         (sbitmap_vector_alloc): Don't initialize the popcount field.
8575         (bitmap_copy): Don't copy the popcount array.
8576         (bitmap_clear): Don't clear the popcount array.
8577         (bitmap_clear): Delete the popcount array handling.
8578         (bitmap_ior_and_compl): Delete the popcount assert.
8579         (bitmap_not): Ditto.
8580         (bitmap_and_compl): Ditto.
8581         (bitmap_and): Delete the popcount array handling.
8582         (bitmap_xor): Ditto.
8583         (bitmap_ior): Ditto.
8584         (bitmap_or_and): Delete the popcount assert.
8585         (bitmap_and_or): Ditto.
8586         (popcount_table): Delete.
8587         (sbitmap_elt_popcount): Delete.
8588         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
8589         (bitmap_set_bit): Delete the popcount assert.
8590         (bitmap_clear_bit): Ditto.
8591         (sbitmap_free): Don't free the popcount array.
8592         (sbitmap_alloc_with_popcount): Delete declaration.
8593         (sbitmap_popcount): Ditto.
8594
8595 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8596             Andrew Burgess  <andrew.burgess@embecosm.com>
8597
8598         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
8599         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
8600         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
8601         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
8602         * config/arc/arc.opt (mcmem): New option.
8603         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
8604         supply length for r/m alternative.
8605         (*extendqisi2_ac): Likewise.
8606         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
8607         r/Uex alternative.
8608         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
8609         (movhi_insn): Likewise.
8610         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
8611         (*zero_extendqihi2_i): Add r/Ucm alternative.
8612         (*zero_extendqisi2_ac): Likewise.
8613         (*zero_extendhisi2_i): Likewise.
8614         * config/arc/constraints.md (Uex): New memory constraint.
8615         (Ucm): New define_constraint.
8616         * config/arc/predicates.md (long_immediate_loadstore_operand):
8617         Return 0 for MEM with cmem_address address.
8618         (cmem_address_0): New predicates.
8619         (cmem_address_1): Likewise.
8620         (cmem_address_2): Likewise.
8621         (cmem_address): Likewise.
8622
8623 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8624
8625         * config/rs6000/rs6000.c (machine_function): Rename
8626         insn_chain_scanned_p to spe_insn_chain_scanned_p.
8627         (rs6000_stack_info): Adjust.
8628
8629 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8630             Andrew Burgess  <andrew.burgess@embecosm.com>
8631
8632         * config/arc/constraints.md (Usd): Convert to define_constraint.
8633         (Us<): Likewise.
8634         (Us>): Likewise.
8635
8636 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8637
8638         PR target/70821
8639         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
8640         Add new peephole2 where the first insn is *mov<mode>_or instead of
8641         *mov<mode>_internal.
8642
8643 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
8644
8645         * tracer.c (bb_seen): Make static.
8646
8647 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
8648
8649         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
8650         support, setup defaults.
8651         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
8652         * config/arc/arc.c (arc_init): Add NPS400 support.
8653         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
8654         (TARGET_ARC700): NPS400 is also an ARC700.
8655         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
8656
8657 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8658
8659         PR target/70668
8660         * config/nds32/nds32.md (casesi): Don't access the operands array
8661         out of bounds.
8662
8663 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8664
8665         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
8666         (or $-1,reg peephole2): Ditto.
8667         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
8668
8669 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
8670
8671         * doc/extend.texi (Common Function Attributes) [optimize]:
8672         Discourage use of the optimize attribute.
8673
8674 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
8675
8676         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
8677         special case builtin.
8678         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
8679         ALTIVEC_BUILTIN_VEC_ADDE.
8680         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
8681         support for ALTIVEC_BUILTIN_VEC_ADDE.
8682         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
8683         for __builtin_vec_adde.
8684
8685 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8686
8687         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
8688         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
8689
8690 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8691
8692         PR testsuite/70595
8693         * doc/sourcebuild.texi (Effective-Target Keywords, Other
8694         attributes): Document cilkplus_runtime.
8695
8696 2016-04-28  Martin Jambor  <mjambor@suse.cz>
8697
8698         * tree-cfg.c (verify_expr): Verify that local declarations belong to
8699         this function.  Call verify_expr on MEM_REFs and bases of other
8700         handled_components.
8701
8702 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8703
8704         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
8705         for WORD_REGISTER_OPERATIONS to runtime check.
8706
8707 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8708
8709         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
8710
8711 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8712
8713         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
8714         big-endian compilation.
8715         * config/arc/arc.md (addf3): Likewise.
8716         (subdf3): Likewise.
8717         (muldf3): Likewise.
8718
8719 2016-04-28  Richard Biener  <rguenther@suse.de>
8720
8721         PR tree-optimization/70840
8722         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
8723         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
8724         Mark x * pow(x,c) -> pow(x,c+1) commutative.
8725         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
8726
8727 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8728
8729         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
8730         and explain why in a comment.
8731
8732 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8733
8734         * config/arc/arc.md (cpu_facility): Add fpx variant.
8735         (subdf3): Prohibit use reverse sub when assist operations option
8736         is enabled.
8737         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
8738         instructions only when FPX is enabled.
8739         * testsuite/gcc.target/arc/trsub.c: New test.
8740
8741 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8742
8743         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
8744         mult_operator when calculating "type" attribute.
8745         (*fop_<mode>_1_i387): Ditto.
8746         (*fop_xf_1_i387): Ditto.
8747         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
8748         Use std::swap to swap operands.  Use RTL expressions to generate
8749         converted pattern.
8750
8751 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8752             Joern Rennecke  <joern.rennecke@embecosm.com>
8753
8754         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
8755         declaration.
8756         (emit_pic_move): Remove.
8757         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
8758         * config/arc/arc.c (emit_pic_move): Removed.
8759         (TARGET_HAVE_TLS): Define.
8760         (arc_conditional_register_usage): Test for arc_tp_regno.
8761         (arc_print_operand, arc_print_operand_address): Handle TLS
8762         unspecs.
8763         (arc_needs_pcl_p): New function.
8764         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
8765         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
8766         (arc_raw_symbolic_reference_mentioned_p): Likewise.
8767         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
8768         (arc_legitimize_tls_address): Likewise.
8769         (DTPOFF_ZERO_SYM): Define.
8770         (arc_legitimize_pic_address): Make it static, handle TLS cases.
8771         (arc_output_pic_addr_const): Print TLS unspecs.
8772         (prepare_pic_move): New function, replaces emit_pic_move.
8773         (arc_legitimate_constant_p): Handle TLS unspecs.
8774         (arc_legitimate_address_p): Likewise.
8775         (arc_rewrite_small_data_p): Use assert for TLS constants.
8776         (prepare_move_operands): Use prepare_pic_move.
8777         (arc_legitimize_address): Legitimize tls addresses.
8778         (arc_epilogue_uses): Check for arc_tp_regno.
8779         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
8780         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
8781         Define.
8782         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
8783         Likewise.
8784         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
8785         %(arc_tls_extra_start_spec).
8786         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
8787         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
8788         (EH_USES): Define.
8789         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
8790         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
8791         (UNSPEC_TLS_OFF): Add.
8792         (R10_REG): Define.
8793         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
8794         (get_thread_pointersi): New patterns.
8795         * config/arc/arc.opt (mtp-regno): New option.
8796         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
8797         (move_dest_operand): Likewise.
8798         * configure: Regenerate.
8799         * configure.ac: Add arc*-*-* case to test for tls.
8800         * doc/invoke.texi (ARC options): Document mtp-regno.
8801
8802 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8803
8804         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
8805         the new ARC HS SIMD instructions.
8806         (arc_preferred_simd_mode): New function.
8807         (arc_autovectorize_vector_sizes): Likewise.
8808         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
8809         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8810         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
8811         (arc_init_builtins): Add new SIMD builtin types.
8812         (arc_split_move): Handle 64 bit vector moves.
8813         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
8814         (TARGET_PLUS_QMACW): Define.
8815         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
8816         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
8817         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
8818         (VSUBADD4H): New builtins.
8819         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
8820         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
8821
8822 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
8823             Matthias Klose  <doko@debian.org>
8824
8825         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
8826
8827 2016-04-28  Richard Biener  <rguenther@suse.de>
8828
8829         PR middle-end/70777
8830         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
8831         canonicalization.
8832
8833 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
8834
8835         * common/config/sh/sh-common.c: Remove SH5 support.
8836         * config/sh/constraints.md: Likewise.
8837         * config/sh/config/sh/elf.h: Likewise.
8838         * config/sh/linux.h: Likewise.
8839         * config/sh/netbsd-elf.h: Likewise.
8840         * config/sh/predicates.md: Likewise.
8841         * config/sh/sh-c.c: Likewise.
8842         * config/sh/sh-protos.h: Likewise.
8843         * config/sh/sh.c: Likewise.
8844         * config/sh/sh.h: Likewise.
8845         * config/sh/sh.md: Likewise.
8846         * config/sh/sh.opt: Likewise.
8847         * config/sh/sync.md: Likewise.
8848         * config/sh/sh64.h: Delete.
8849         * config/sh/shmedia.h: Likewise.
8850         * config/sh/shmedia.md: Likewise.
8851         * config/sh/sshmedia.h: Likewise.
8852         * config/sh/t-netbsd-sh5-64: Likewise.
8853         * config/sh/t-sh64: Likewise.
8854         * config/sh/ushmedia.h: Likewise.
8855
8856 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8857
8858         * config/i386/i386.md (sign_extend to memory peephole2s): Use
8859         general_reg_operand instead of register_operand predicate.
8860
8861 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8862
8863         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
8864
8865 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
8866
8867         * match.pd (A - B > A, A + B < A): New transformations.
8868
8869 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
8870
8871         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
8872         which defaults to true.  Emit an outer pair of parentheses only if
8873         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
8874         don't emit parentheses for the right-hand operand.
8875
8876 2016-04-27  Jeff Law  <law@redhat.com>
8877
8878         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
8879
8880 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8881
8882         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
8883         (altivec_lvx_<mode>_internal): Document.
8884         (altivec_lvx_<mode>_2op): New define_insn.
8885         (altivec_lvx_<mode>_1op): Likewise.
8886         (altivec_lvx_<mode>_2op_si): Likewise.
8887         (altivec_lvx_<mode>_1op_si): Likewise.
8888         (altivec_stvx_<mode>): Remove.
8889         (altivec_stvx_<mode>_internal): Document.
8890         (altivec_stvx_<mode>_2op): New define_insn.
8891         (altivec_stvx_<mode>_1op): Likewise.
8892         (altivec_stvx_<mode>_2op_si): Likewise.
8893         (altivec_stvx_<mode>_1op_si): Likewise.
8894         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8895         Expand vec_ld and vec_st during parsing.
8896         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
8897         changes.
8898         (altivec_expand_stvx_be): Likewise.
8899         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
8900         address-masking behavior in RTL.
8901         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
8902         address-masking behavior in RTL.
8903         (altivec_expand_builtin): Change builtin code arguments for calls
8904         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
8905         (insn_is_swappable_p): Avoid incorrect swap optimization in the
8906         presence of lvx/stvx patterns.
8907         (alignment_with_canonical_addr): New function.
8908         (alignment_mask): Likewise.
8909         (find_alignment_op): Likewise.
8910         (recombine_lvx_pattern): Likewise.
8911         (recombine_stvx_pattern): Likewise.
8912         (recombine_lvx_stvx_patterns): Likewise.
8913         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
8914         stvx patterns from expand.
8915         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
8916         expansions.
8917         (vector_altivec_store_<mode>): Likewise.
8918
8919 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
8920
8921         * config/aarch64/aarch64.md
8922         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
8923         remove the "fp" attributes.
8924         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
8925         add the "simd" attributes.
8926         (*movdf_aarch64): Likewise.
8927         (*movtf_aarch64): Remove the "fp" attributes.
8928         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
8929         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
8930
8931 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
8932
8933         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
8934         rtx to rtx_code_label *.
8935         * rtl.h (maybe_set_first_label_num): Likewise.
8936
8937 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
8938
8939         * df-core.c (df_add_problem): Make the problem param be const.
8940         (df_remove_problem): Make local "problem" be const.
8941         * df-problems.c (problem_RD): Make const.
8942         (problem_LR): Likewise.
8943         (problem_LIVE): Likewise.
8944         (problem_MIR): Likewise.
8945         (problem_CHAIN): Likewise.
8946         (problem_WORD_LR): Likewise.
8947         (problem_NOTE): Likewise.
8948         (problem_MD): Likewise.
8949         * df-scan.c (problem_SCAN): Likewise.
8950         * df.h (struct df_problem): Make field "dependent_problem" be
8951         const.
8952         (struct dataflow): Likewise for field "problem".
8953         (df_add_problem): Make param const.
8954
8955 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
8956
8957         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
8958         inter-unit moves to/from vector registers are enabled.  Do not disable
8959         for TARGET_MMX.
8960
8961 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
8962
8963         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
8964         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
8965         #define to...
8966         (enum df_problem_id): ...this new enum.
8967         (struct df_problem): Convert field "id" from "int" to
8968         enum df_problem_id.
8969
8970 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
8971
8972         * rtl.def: Update comment for "things in the instruction chain" to
8973         reflect the removal of the leading "i" field for INSN_UID in
8974         r210360.  Fix bogus apostrophe.
8975
8976 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
8977
8978         * config/i386/i386.md
8979         (lea arith with mem operand + setcc peephole2): Set operator mode.
8980
8981 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
8982
8983         PR target/70155
8984         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
8985         (dimode_scalar_to_vector_candidate_p): This.
8986         (timode_scalar_to_vector_candidate_p): New function.
8987         (scalar_to_vector_candidate_p): Likewise.
8988         (timode_check_non_convertible_regs): Likewise.
8989         (timode_remove_non_convertible_regs): Likewise.
8990         (remove_non_convertible_regs): Likewise.
8991         (remove_non_convertible_regs): Renamed to ...
8992         (dimode_remove_non_convertible_regs): This.
8993         (scalar_chain::~scalar_chain): Make it virtual.
8994         (scalar_chain::compute_convert_gain): Make it pure virtual.
8995         (scalar_chain::mark_dual_mode_def): Likewise.
8996         (scalar_chain::convert_insn): Likewise.
8997         (scalar_chain::convert_registers): Likewise.
8998         (scalar_chain::add_to_queue): Make it protected.
8999         (scalar_chain::emit_conversion_insns): Likewise.
9000         (scalar_chain::replace_with_subreg): Likewise.
9001         (scalar_chain::replace_with_subreg_in_insn): Likewise.
9002         (scalar_chain::convert_op): Likewise.
9003         (scalar_chain::convert_reg): Likewise.
9004         (scalar_chain::make_vector_copies): Likewise.
9005         (scalar_chain::convert_registers): New pure virtual function.
9006         (class dimode_scalar_chain): New class.
9007         (class timode_scalar_chain): Likewise.
9008         (scalar_chain::mark_dual_mode_def): Renamed to ...
9009         (dimode_scalar_chain::mark_dual_mode_def): This.
9010         (timode_scalar_chain::mark_dual_mode_def): New function.
9011         (timode_scalar_chain::convert_insn): Likewise.
9012         (dimode_scalar_chain::convert_registers): Likewise.
9013         (scalar_chain::compute_convert_gain): Renamed to ...
9014         (dimode_scalar_chain::compute_convert_gain): This.
9015         (scalar_chain::replace_with_subreg): Renamed to ...
9016         (dimode_scalar_chain::replace_with_subreg): This.
9017         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
9018         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
9019         (scalar_chain::make_vector_copies): Renamed to ...
9020         (dimode_scalar_chain::make_vector_copies): This.
9021         (scalar_chain::convert_reg): Renamed to ...
9022         (dimode_scalar_chain::convert_reg ): This.
9023         (scalar_chain::convert_op): Renamed to ...
9024         (dimode_scalar_chain::convert_op): This.
9025         (scalar_chain::convert_insn): Renamed to ...
9026         (dimode_scalar_chain::convert_insn): This.
9027         (scalar_chain::convert): Call convert_registers.
9028         (convert_scalars_to_vector): Change to scalar_chain pointer to
9029         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
9030         in 32-bit mode.  Delete scalar_chain pointer.  Call
9031         free_dominance_info in 64-bit mode.
9032         (pass_stv::gate): Remove TARGET_64BIT check.
9033         (ix86_option_override): Put the 64-bit STV pass before the CSE
9034         pass.
9035
9036 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9037
9038         * dwarf2out.h (struct dw_loc_descr_node): Remove the
9039         dw_loc_frame_offset field.
9040         * dwarf2out.c (new_loc_descr): Likewise.
9041         (resolve_args_picking_1): Turn the VISITED hash set into a
9042         FRAME_OFFSET hash map. Use it to associate a frame offset to
9043         visited nodes. Remove uses of the CHECKING_P macro.
9044         (resolve_args_picking): Update call to resolve_args_picking_1.
9045
9046 2016-04-27  Martin Liska  <mliska@suse.cz>
9047
9048         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
9049         (free_loop_data): Release vuses of groups.
9050
9051 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
9052
9053         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
9054         instead of redundant use_id and boolean have_use_for.
9055         (struct iv_use): Change sub_id into group_id.  Remove field next.
9056         Move fields: related_cands, n_map_members, cost_map and selected
9057         to ...
9058         (struct iv_group): ... here.  New structure.
9059         (struct iv_common_cand): Use structure declaration directly.
9060         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
9061         (MAX_CONSIDERED_USES): Rename macro to ...
9062         (MAX_CONSIDERED_GROUPS): ... here.
9063         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
9064         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
9065         (dump_uses): Rename to ...
9066         (dump_groups): ... here.  Update all uses.
9067         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
9068         (find_induction_variables): Refactor format of dump information.
9069         (record_sub_use): Delete.
9070         (record_use): Update all uses.
9071         (record_group): New function.
9072         (record_group_use, find_interesting_uses_op): Call above functions.
9073         Update all uses.
9074         (find_interesting_uses_cond): Ditto.
9075         (group_compare_offset): New function.
9076         (split_all_small_groups): Rename to ...
9077         (split_small_address_groups_p): ... here.  Update all uses.
9078         (split_address_groups):  Update all uses.
9079         (find_interesting_uses): Refactor format of dump information.
9080         (add_candidate_1): Update all uses.  Remove redundant check on iv,
9081         base and step.
9082         (add_candidate, record_common_cand): Remove redundant assert.
9083         (add_iv_candidate_for_biv): Update use.
9084         (add_iv_candidate_derived_from_uses): Update all uses.
9085         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
9086         (alloc_use_cost_map): Ditto.
9087         (set_use_iv_cost, get_use_iv_cost): Rename to ...
9088         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
9089         (determine_use_iv_cost_generic): Ditto.
9090         (determine_group_iv_cost_generic): Ditto.
9091         (determine_use_iv_cost_address): Ditto.
9092         (determine_group_iv_cost_address): Ditto.
9093         (determine_use_iv_cost_condition): Ditto.
9094         (determine_group_iv_cost_cond): Ditto.
9095         (determine_use_iv_cost): Ditto.
9096         (determine_group_iv_cost): Ditto.
9097         (set_autoinc_for_original_candidates): Update all uses.
9098         (find_iv_candidates): Update all uses.  Refactor dump information.
9099         (determine_use_iv_costs): Ditto.
9100         (determine_iv_costs): Ditto.
9101         (iv_ca_cand_for_use): Rename to ...
9102         (iv_ca_cand_for_group): ... here.  Update all uses.
9103         (iv_ca_add_use, iv_ca_add_group): Ditto.
9104         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
9105         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
9106         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
9107         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
9108         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
9109         (create_new_iv, adjust_iv_update_pos): Ditto.
9110         (rewrite_use_address): Delete.
9111         (rewrite_use_address_1): Rename to ...
9112         (rewrite_use_address): ... here.
9113         (rewrite_use_compare): Update all uses.
9114         (rewrite_use): Delete.
9115         (rewrite_uses): Rename to ...
9116         (rewrite_groups): ... here.  Update all uses.
9117         (remove_unused_ivs, free_loop_data): Update all uses.
9118         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
9119
9120 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9121
9122         * rtlanal.c (nonzero_bits1): Convert preprocessor check
9123         for WORD_REGISTER_OPERATIONS to runtime check.
9124
9125 2016-04-27  Richard Biener  <rguenther@suse.de>
9126
9127         PR ipa/70760
9128         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
9129         aggregate_value_p to determine if a function result is
9130         returned by reference.
9131         (ipa_pta_execute): Functions having their address taken are
9132         not automatically nonlocal.
9133
9134 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9135
9136         PR sanitizer/70683
9137         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
9138         * fold-const.c (operand_equal_p): If flag_checking and
9139         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
9140         and if it returns non-zero, assert iterative_hash_expr on both
9141         args is the same.
9142
9143 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
9144
9145         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
9146
9147 2016-04-27  Nick Clifton  <nickc@redhat.com>
9148
9149         PR middle-end/49889
9150         * varasm.c (merge_weak): Generate an error if an attempt is made
9151         to convert a non-weak static function into a weak, public function.
9152
9153 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9154
9155         * params.def (MAX_PARTITION_SIZE): New param.
9156         * doc/invoke.texi: Document lto-max-partition.
9157
9158 2016-04-27  Richard Biener  <rguenther@suse.de>
9159
9160         PR ipa/70785
9161         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
9162         function cummulating used_from_other_partition, externally_visible
9163         and force_output from aliases.
9164         (refered_from_nonlocal_var): Likewise.
9165         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
9166         node flags properly.
9167
9168 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
9169
9170         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
9171         (-Wmemset-elt-size): New item.
9172
9173 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9174
9175         PR ada/70759
9176         * stor-layout.h (internal_reference_types): Delete.
9177         * stor-layout.c (reference_types_internal): Likewise.
9178         (internal_reference_types): Likewise.
9179         (layout_type) <REFERENCE_TYPE>: Adjust.
9180
9181 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
9182
9183         PR sanitizer/70683
9184         * tree.h (inchash::add_expr): Add FLAGS argument.
9185         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
9186         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
9187         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
9188         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
9189         if swap_tree_comparison (code) is smaller than code, hash that
9190         and arguments in the other order.  Hash CONVERT_EXPR the same
9191         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
9192         of ADDR_EXPR of decl as the decl itself.  Add or remove
9193         OEP_ADDRESS_OF from recursive flags as needed.  For
9194         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
9195         operands commutatively and only the third one normally.
9196         For internal CALL_EXPR hash in CALL_EXPR_IFN.
9197
9198 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9199
9200         * config/rtems.h (LIB_SPEC): Add -latomic.
9201
9202 2016-04-27  Joel Sherrill  <joel@rtems.org>
9203
9204         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
9205         xilink.ld and flags not relevant to RTEMS.
9206
9207 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9208
9209         * toplev.c (backend_init_target): Avoid calling init_reload when using
9210         LRA.
9211
9212 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
9213
9214         * reorg.c (try_merge_delay_insns): Declare i and j inside the
9215         for loops rather than one for the whole function.
9216
9217 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
9218
9219         * match.pd (X + CST CMP X): New transformation.
9220
9221 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
9222
9223         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
9224         * fold-const.c (fold_binary_loc): Remove 2 transformations
9225         superseded by match.pd.
9226         * match.pd (x+x -> x*2): Generalize to integers.
9227
9228 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
9229
9230         * config/i386/i386.md (operation on memory peephole): Duplicate an
9231         existing peephole and adapt it to match lea rather than an operation
9232         that clobbers CC.
9233
9234         PR rtl-optimization/57193
9235         * opts.c (default_options_table): Add OPT_frename_registers at -O2
9236         and above.
9237         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
9238
9239 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
9240
9241         * tree-if-conv.c (any_pred_load_store): New static variable.
9242         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
9243         any_pred_load_store instead of and_mask_load_store.
9244         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
9245         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
9246         (combine_blocks, tree_if_conversion): Ditto.
9247
9248 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
9249
9250         PR tree-optimization/70771
9251         PR tree-optimization/70775
9252         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
9253         virtual PHI nodes.  Delete parameter.
9254         (if_convertible_loop_p_1): Delete argument to above function.
9255         (predicate_all_scalar_phis): Delete code handling single-argument
9256         PHIs.
9257         (tree_if_conversion): Mark and update virtual SSA.
9258
9259 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9260
9261         PR target/61821
9262         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
9263         (x86_elf_aligned_common): Rename to ...
9264         (x86_elf_aligned_decl_common): ... this.
9265         Add decl arg.  Switch to .lbss for largecomm object.  Use
9266         LARGECOMM_SECTION_ASM_OP.
9267         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
9268         renaming.
9269         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
9270         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
9271         Pass new decl arg.
9272         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9273         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
9274
9275 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9276
9277         PR target/59407
9278         * config/i386/i386.c (SECTION_LARGE): Define.
9279         (x86_64_elf_select_section): Set it for large data/bss sections.
9280         Only clear SECTION_WRITE for .lrodata.
9281         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
9282         data/bss sections.
9283         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
9284         * varasm.c (default_elf_asm_named_section): Grow flagchars.
9285         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
9286         SECTION_MACH_DEP.
9287         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
9288         * doc/tm.texi: Regenerate.
9289
9290 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
9291
9292         PR bootstrap/70704
9293         * configure.ac (--enable-checking): Document extra flag, for
9294         non-release builds default to --enable-checking=yes,extra.
9295         If misc checking and extra checking, define CHECKING_P to 2 instead
9296         of 1.
9297         * common.opt (fchecking=): Add.
9298         * doc/invoke.texi (-fchecking=): Document.
9299         * doc/install.texi: Document --enable-checking changes.
9300         * configure: Regenerated.
9301         * config.in: Regenerated.
9302
9303 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9304
9305         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
9306         attribute instead of which_alternative.
9307         * config/i386/sse.md (*mov<mode>_internal): Ditto.
9308         Use EXT_REX_SSE_REG_P where appropriate.
9309
9310 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9311
9312         * config/i386/predicates.md (const0_operand): Do not match
9313         const_wide_int code.
9314         (const1_operand): Ditto.
9315
9316 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9317
9318         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
9319         for SSE constm1 operands and TARGET_AVX512VL.
9320         (*movti_internal): Ditto.
9321         (*mov<mode>_or): Use constm1_operand predicate.
9322         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
9323         for SSE vector_all_ones operands and TARGET_AVX512VL.
9324         * config/i386/predicates.md (constm1_operand): New predicate.
9325         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
9326         emission of constant -1 load.
9327
9328 2016-04-25  Jason Merrill  <jason@redhat.com>
9329
9330         * gdbinit.in: Skip is-a.h.
9331
9332         * attribs.c (register_scoped_attributes): Fix logic.
9333         * attribs.h: Declare register_scoped_attributes.
9334
9335 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9336
9337         * config/rs6000/rs6000-builtin.def: Correct pasto error for
9338         stxvd2x and stxvw4x built-in functions.
9339
9340 2016-04-25  DJ Delorie  <dj@redhat.com>
9341
9342         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
9343         (ashrhi3): Likewise.
9344         (lshrhi3): Likewise.
9345
9346 2016-04-25  Richard Biener  <rguenther@suse.de>
9347
9348         PR tree-optimization/70780
9349         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
9350         wasn't visited yet.
9351         (compute_antic): Mark blocks with abnormal preds as visited as
9352         they have a final empty antic-in solution already.
9353
9354 2016-04-25  Michael Collison  <michael.collison@linaro.org>
9355
9356         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
9357
9358 2016-04-25  Michael Collison  <michael.collison@linaro.org>
9359
9360         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
9361         mode is VQI to improve mixed mode vectorization.
9362         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
9363         define_insn to match low half of signed vaddw.
9364         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
9365         define_insn to match high half of signed vaddw.
9366         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
9367         define_insn to match low half of unsigned vaddw.
9368         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
9369         define_insn to match high half of unsigned vaddw.
9370         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
9371         (arm_simd_check_vect_par_cnst_half_p): Likewise.
9372         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
9373         for new function.
9374         (arm_simd_check_vect_par_cnst_half_p): Likewise.
9375         * config/arm/predicates.md (vect_par_constant_high): Support
9376         big endian and simplify by calling
9377         arm_simd_check_vect_par_cnst_half
9378         (vect_par_constant_low): Likewise.
9379
9380 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9381
9382         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
9383         predicate for operand 2.
9384
9385 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
9386             H.J. Lu  <hongjiu.lu@intel.com>
9387
9388         * config/i386/i386-protos.h (standard_sse_constant_p): Add
9389         machine_mode argument.
9390         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
9391         constm1_rtx operands.  For VOIDmode constants, get mode from
9392         pred_mode.  Check mode size if the mode is supported by ABI.
9393         (standard_sse_constant_opcode): Do not use standard_constant_p.
9394         Strictly check ABI support for all-ones operands.
9395         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
9396         immediates. Update calls to standard_sse_constant_p.
9397         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
9398         (ix86_rtx_costs): Ditto.
9399         * config/i386/i386.md (*movxi_internal_avx512f): Use
9400         nonimmediate_or_sse_const_operand instead of vector_move_operand.
9401         Use (v,BC) alternative instead of (v,C). Use register_operand
9402         checks instead of MEM_P.
9403         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
9404         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
9405         isa attribute.  Use register_operand checks instead of MEM_P.
9406         (*movti_internal): Use nonimmediate_or_sse_const_operand for
9407         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
9408         alternative and corresponding sse2 isa attribute.
9409         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
9410         to standard_sse_constant_p.
9411         (FP constant splitters): Ditto.
9412         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
9413         (C): Ditto.
9414         * config/i386/predicates.md (constm1_operand): Remove.
9415         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
9416         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
9417         vector_all_ones_operand instead of constm1_operand.
9418
9419 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9420
9421         * print-rtl.c (print_rtx_insn_vec): New function.
9422         * print-rtl.h: New prototype.
9423         * store-motion.c (struct st_expr): Make avail_stores a vector.
9424         (st_expr_entry): Adjust.
9425         (free_st_expr_entry): Likewise.
9426         (print_store_motion_mems): Likewise.
9427         (find_moveable_store): Likewise.
9428         (compute_store_table): Likewise.
9429         (delete_store): Likewise.
9430         (build_store_vectors): Likewise.
9431
9432 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9433
9434         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
9435
9436 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9437
9438         * vec.h (vec_safe_contains): New function.
9439         (vec::contains): Likewise.
9440         (vec::begin): Likewise.
9441         (vec::end): Likewise.
9442
9443 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
9444
9445         PR sanitizer/70712
9446         * cfgexpand.c (expand_stack_vars): Fix typo.
9447
9448 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9449
9450         * system.h (list, map, set, vector): Include conditionally.
9451         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
9452         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
9453         * ipa-icf.c (INCLUDE_LIST): Define.
9454         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
9455         * config/sh/sh.c (INCLUDE_VECTOR): Define.
9456         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
9457         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
9458         * cp/logic.cc (INCLUDE_LIST): Define.
9459         * fortran/trans-common.c (INCLUDE_MAP): Define.
9460
9461 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9462
9463         * auto-profile.c: Remove <string.h> include.
9464         * ipa-icf-gimple.c: Remove <list> include.
9465         * diagnostic.c: Remove <new> include.
9466         * genmatch.c: Likewise.
9467         * pretty-print.c: Likewise.
9468         * toplev.c: Likewise
9469         * c/c-objc-common.c: Likewise.
9470         * cp/error.c: Likewise.
9471         * fortran/error.c: Likewise.
9472
9473 2016-04-22  Richard Biener  <rguenther@suse.de>
9474
9475         * lto-streamer-in.c (input_ssa_names): Do not allocate
9476         GIMPLE_NOP for all SSA names.
9477         * lto-streamer-out.c (output_ssa_names): Do not output
9478         SSA names that should have been released.
9479
9480 2016-04-22  Richard Biener  <rguenther@suse.de>
9481
9482         PR tree-optimization/70740
9483         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
9484         VDEF.
9485
9486 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
9487
9488         PR target/70750
9489         * config/i386/predicates.md (call_insn_operand): Replace
9490         sibcall_memory_operand with memory_operand.
9491
9492 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
9493
9494         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
9495         has_single_use() tests.
9496         (register_edge_assert_for_1): Likewise.
9497         (find_assert_locations_1): Check the liveness bitmap instead of
9498         checking has_single_use().
9499
9500 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
9501
9502         PR target/70728
9503         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
9504         Extract AVX-512BW constraint from AVX.
9505
9506 2016-04-21  Richard Biener  <rguenther@suse.de>
9507
9508         PR tree-optimization/70725
9509         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
9510         for phi_convertible_by_degenerating_args.
9511         (predicate_all_scalar_phis): Handle single-argument PHIs.
9512
9513 2016-04-21  Richard Biener  <rguenther@suse.de>
9514
9515         PR middle-end/70747
9516         * fold-const.c (fold_comparison): Return properly typed
9517         constant boolean.
9518
9519 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
9520
9521         PR tree-optimization/70715
9522         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
9523         after expanding BASE using expand_simple_operations.
9524
9525 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
9526
9527         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
9528         New transformations.
9529
9530 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
9531
9532         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
9533
9534 2016-04-20  Jan Hubicka  <jh@suse.cz>
9535
9536         * ipa-inline.c (can_inline_edge_p): Pass caller info to
9537         ultiimate_alias_target.
9538         (update_callee_keys): Likewise.
9539         (lookup_recursive_calls): Likewise.
9540         (speculation_useful_p): Likewise.
9541
9542 2016-04-20  Jan Hubicka  <jh@suse.cz>
9543
9544         PR ipa/70018
9545         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
9546         (set_nothrow_flag_1): ... this; handle interposition correctly;
9547         recurse on aliases and thunks.
9548         (cgraph_node::set_nothrow_flag): New.
9549         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
9550         functions compiled with non-call exceptions that binds to current
9551         def.
9552         (propagate_nothrow): Be safe WRT interposition.
9553         * cgraph.h (set_nothrow_flag): Update prototype.
9554
9555 2016-04-18  Jan Hubicka  <jh@suse.cz>
9556
9557         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9558         max_loop_iterations_int.
9559         (tree_unswitch_outer_loop): Likewise.
9560
9561 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9562
9563         PR tree-optimization/69489
9564         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
9565         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
9566         Revise dump message.
9567         (if_convertible_bb_p): Remove check on edge count of basic block's
9568         predecessors.
9569
9570 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9571
9572         PR tree-optimization/56625
9573         PR tree-optimization/69489
9574         * tree-data-ref.h (DR_INNERMOST): New macro.
9575         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
9576         hashing struct innermost_loop_behavior.
9577         (ref_DR_map): Remove.
9578         (innermost_DR_map): New map.
9579         (baseref_DR_map): Revise comment.
9580         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
9581         to innermost_DR_map accroding to its innermost loop behavior.
9582         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
9583         to its innermost loop behavior.
9584         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
9585         Add initialization for innermost_DR_map.  Record memory reference
9586         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
9587         have innermost loop behavior.
9588         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
9589         innermost_DR_map.
9590
9591 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
9592
9593         * config/i386/i386.md (*lea<mode>_general_1): Rename from
9594         *lea_general_1.  Use explicit SWI12 mode interator.
9595         (*lea<mode>_general_2): Rename from *lea_general_2.
9596         Use explicit SWI12 mode interator.
9597         (*lea<mode>_general_3): Rename from *lea_general_3.
9598         Use explicit SWI12 mode interator.
9599         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
9600         Use explicit SWI12 mode interator.
9601         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
9602         Use explicit SWI48 mode interator.
9603
9604 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9605
9606         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
9607         Short-cut unaligned load and store cases.  Handle all integer
9608         vector modes.
9609         (ix86_expand_vector_move_misalign): Short-cut unaligned load
9610         and store cases.  Call ix86_avx256_split_vector_move_misalign
9611         directly without checking mode class.
9612
9613 2016-04-20  Andrew Pinski  <apinski@cavium.com>
9614             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9615
9616         PR target/64971
9617         * config/aarch64/aarch64.md (sibcall): Force call
9618         address to be DImode for ILP32.
9619         (sibcall_value): Likewise.
9620
9621 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9622
9623         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
9624
9625 2016-04-20  Richard Biener  <rguenther@suse.de>
9626
9627         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
9628         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
9629         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
9630         (maybe_push_res_to_seq): Adjust.
9631         * gimple-fold.c (maybe_build_generic_op): Likewise.
9632
9633 2016-04-20  Marek Polacek  <polacek@redhat.com>
9634
9635         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
9636         rather than true.
9637
9638 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
9639
9640         * config/i386/sse.md (vec_unpacks_lo_hi): Always
9641         use kmovw to support AVX512F target.
9642
9643 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9644
9645         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
9646
9647 2016-04-20  Marek Polacek  <polacek@redhat.com>
9648
9649         PR tree-optimization/70725
9650         * tree-if-conv.c (is_false_predicate): New function.
9651         (predicate_mem_writes): Use it.
9652
9653 2016-04-20  Richard Biener  <rguenther@suse.de>
9654
9655         PR tree-optimization/70726
9656         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
9657         shift amounts from a pattern stmt operand.
9658
9659 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9660
9661         PR target/70674
9662         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
9663         stack_restore_from_fpr pattern when restoring r15.
9664         (s390_optimize_prologue): Strip away the memory barrier in the
9665         parallel when trying to get rid of restore insns.
9666         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
9667         definition for loading the stack pointer from an FPR.  Compared to
9668         the normal move insn this pattern includes a full memory barrier.
9669
9670 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
9671
9672         PR middle-end/70680
9673         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
9674         implicitly linear or lastprivate iterator on the outer context.
9675
9676 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
9677
9678         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
9679         alignment check.
9680         * config/i386/i386.md (ssememalign): Removed.
9681         * config/i386/sse.md: Remove ssememalign attribute from patterns.
9682
9683 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
9684
9685         PR target/69201
9686         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
9687         const short * to __builtin_ia32_loaddquhi512_mask.
9688         (_mm512_maskz_loadu_epi16): Likewise.
9689         (_mm512_mask_storeu_epi16): Pass short * to
9690         __builtin_ia32_storedquhi512_mask.
9691         (_mm512_mask_loadu_epi8): Pass const char * to
9692         __builtin_ia32_loaddquqi512_mask.
9693         (_mm512_maskz_loadu_epi8): Likewise.
9694         (_mm512_mask_storeu_epi8): Pass char * to
9695         __builtin_ia32_storedquqi512_mask.
9696         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
9697         const double * to __builtin_ia32_loadupd512_mask.
9698         (_mm512_mask_loadu_pd): Likewise.
9699         (_mm512_maskz_loadu_pd): Likewise.
9700         (_mm512_storeu_pd): Pass double * to
9701         __builtin_ia32_storeupd512_mask.
9702         (_mm512_mask_storeu_pd): Likewise.
9703         (_mm512_loadu_ps): Pass const float * to
9704         __builtin_ia32_loadups512_mask.
9705         (_mm512_mask_loadu_ps): Likewise.
9706         (_mm512_maskz_loadu_ps): Likewise.
9707         (_mm512_storeu_ps): Pass float * to
9708         __builtin_ia32_storeups512_mask.
9709         (_mm512_mask_storeu_ps): Likewise.
9710         (_mm512_mask_loadu_epi64): Pass const long long * to
9711         __builtin_ia32_loaddqudi512_mask.
9712         (_mm512_maskz_loadu_epi64): Likewise.
9713         (_mm512_mask_storeu_epi64): Pass long long *
9714         to __builtin_ia32_storedqudi512_mask.
9715         (_mm512_loadu_si512): Pass const int * to
9716         __builtin_ia32_loaddqusi512_mask.
9717         (_mm512_mask_loadu_epi32): Likewise.
9718         (_mm512_maskz_loadu_epi32): Likewise.
9719         (_mm512_storeu_si512): Pass int * to
9720         __builtin_ia32_storedqusi512_mask.
9721         (_mm512_mask_storeu_epi32): Likewise.
9722         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
9723         char * to __builtin_ia32_storedquqi256_mask.
9724         (_mm_mask_storeu_epi8): Likewise.
9725         (_mm256_mask_loadu_epi16): Pass const short * to
9726         __builtin_ia32_loaddquhi256_mask.
9727         (_mm256_maskz_loadu_epi16): Likewise.
9728         (_mm_mask_loadu_epi16): Pass const short * to
9729         __builtin_ia32_loaddquhi128_mask.
9730         (_mm_maskz_loadu_epi16): Likewise.
9731         (_mm256_mask_loadu_epi8): Pass const char * to
9732         __builtin_ia32_loaddquqi256_mask.
9733         (_mm256_maskz_loadu_epi8): Likewise.
9734         (_mm_mask_loadu_epi8): Pass const char * to
9735         __builtin_ia32_loaddquqi128_mask.
9736         (_mm_maskz_loadu_epi8): Likewise.
9737         (_mm256_mask_storeu_epi16): Pass short * to.
9738         __builtin_ia32_storedquhi256_mask.
9739         (_mm_mask_storeu_epi16): Pass short * to.
9740         __builtin_ia32_storedquhi128_mask.
9741         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
9742         const double * to __builtin_ia32_loadupd256_mask.
9743         (_mm256_maskz_loadu_pd): Likewise.
9744         (_mm_mask_loadu_pd): Pass onst double * to
9745         __builtin_ia32_loadupd128_mask.
9746         (_mm_maskz_loadu_pd): Likewise.
9747         (_mm256_mask_storeu_pd): Pass double * to
9748         __builtin_ia32_storeupd256_mask.
9749         (_mm_mask_storeu_pd): Pass double * to
9750         __builtin_ia32_storeupd128_mask.
9751         (_mm256_mask_loadu_ps): Pass const float * to
9752         __builtin_ia32_loadups256_mask.
9753         (_mm256_maskz_loadu_ps): Likewise.
9754         (_mm_mask_loadu_ps): Pass const float * to
9755         __builtin_ia32_loadups128_mask.
9756         (_mm_maskz_loadu_ps): Likewise.
9757         (_mm256_mask_storeu_ps): Pass float * to
9758         __builtin_ia32_storeups256_mask.
9759         (_mm_mask_storeu_ps): ass float * to
9760         __builtin_ia32_storeups128_mask.
9761         (_mm256_mask_loadu_epi64): Pass const long long * to
9762         __builtin_ia32_loaddqudi256_mask.
9763         (_mm256_maskz_loadu_epi64): Likewise.
9764         (_mm_mask_loadu_epi64): Pass const long long * to
9765         __builtin_ia32_loaddqudi128_mask.
9766         (_mm_maskz_loadu_epi64): Likewise.
9767         (_mm256_mask_storeu_epi64): Pass long long * to
9768         __builtin_ia32_storedqudi256_mask.
9769         (_mm_mask_storeu_epi64): Pass long long * to
9770         __builtin_ia32_storedqudi128_mask.
9771         (_mm256_mask_loadu_epi32): Pass const int * to
9772         __builtin_ia32_loaddqusi256_mask.
9773         (_mm256_maskz_loadu_epi32): Likewise.
9774         (_mm_mask_loadu_epi32): Pass const int * to
9775         __builtin_ia32_loaddqusi128_mask.
9776         (_mm_maskz_loadu_epi32): Likewise.
9777         (_mm256_mask_storeu_epi32): Pass int * to
9778         __builtin_ia32_storedqusi256_mask.
9779         (_mm_mask_storeu_epi32): Pass int * to
9780         __builtin_ia32_storedqusi128_mask.
9781         * config/i386/i386-builtin-types.def (PCSHORT): New.
9782         (PINT64): Likewise.
9783         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
9784         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
9785         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
9786         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
9787         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
9788         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
9789         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
9790         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
9791         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
9792         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
9793         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
9794         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
9795         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
9796         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
9797         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
9798         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
9799         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
9800         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
9801         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
9802         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
9803         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
9804         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
9805         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
9806         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
9807         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
9808         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
9809         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
9810         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
9811         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
9812         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
9813         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
9814         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
9815         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
9816         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
9817         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
9818         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
9819         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
9820         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
9821         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
9822         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
9823         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
9824         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
9825         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
9826         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
9827         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
9828         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
9829         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
9830         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
9831         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
9832         use UNSPEC_STOREU.
9833         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
9834         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
9835         load nor store.
9836         (ix86_expand_vector_move_misalign): Likewise.
9837         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
9838         to scalar function prototype for unaligned load/store builtins.
9839         (ix86_expand_special_args_builtin): Updated.
9840         * config/i386/sse.md (UNSPEC_LOADU): Removed.
9841         (UNSPEC_STOREU): Likewise.
9842         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
9843         (VI_ULOADSTORE_F_AVX512VL): Likewise.
9844         (ssescalarsize): Handle V4TI, V2TI and V1TI.
9845         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
9846         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
9847         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
9848         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
9849         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
9850         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
9851         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
9852         (<avx512>_storedqu<mode>_mask): Likewise.
9853         (*sse4_2_pcmpestr_unaligned): Likewise.
9854         (*sse4_2_pcmpistr_unaligned): Likewise.
9855         (*mov<mode>_internal): Renamed to ...
9856         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
9857         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
9858         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
9859         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
9860
9861 2016-04-19  Richard Biener  <rguenther@suse.de>
9862
9863         PR tree-optimization/70171
9864         * tree-ssa-phiprop.c: Include stor-layout.h.
9865         (phiprop_insert_phi): Handle the aggregate copy case.
9866         (propagate_with_phi): Likewise.
9867
9868 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
9869
9870         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
9871         instead of simplify_gen_subreg (... , 0).
9872         (ix86_delegitimize_address): Ditto.
9873         (ix86_split_divmod): Ditto.
9874         (ix86_split_copysign_const): Ditto.
9875         (ix86_split_copysign_var): Ditto.
9876         (ix86_expand_args_builtin): Ditto.
9877         (ix86_expand_round_builtin): Ditto.
9878         (ix86_expand_special_args_builtin): Ditto.
9879         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
9880         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
9881         (udivmodqi4): Ditto.
9882         (absneg splitters): Ditto.
9883         (*jcc_bt<mode>_1): Ditto.
9884
9885 2016-04-19  Richard Biener  <rguenther@suse.de>
9886
9887         PR tree-optimization/70724
9888         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
9889         restoring out from ...
9890         (free_scc_vn): ... here.
9891         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
9892         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
9893         tail merging.
9894         (pass_fre::execute): Restore SSA info.
9895
9896 2016-04-19  Richard Biener  <rguenther@suse.de>
9897
9898         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
9899         * gimple-walk.c (walk_gimple_op): Initialize it.
9900         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
9901         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
9902         remapping SSA names of defs.
9903         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
9904         adjustment.
9905
9906 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
9907
9908         PR middle-end/70689
9909         * lra-constraints.c (equiv_substition_p): New.
9910         (process_alt_operands): Use it.
9911         (swap_operands): Swap it.
9912         (curr_insn_transform): Update it.
9913
9914 2016-04-18  Michael Matz  <matz@suse.de>
9915
9916         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
9917         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
9918         * tree-core.h (tree_type_common.align): Use bit-field.
9919         (tree_type_common.spare): New.
9920         (tree_decl_common.off_align): Make smaller.
9921         (tree_decl_common.align): Use bit-field.
9922
9923         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
9924         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
9925         (scan_sharing_clauses): Ditto.
9926         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
9927         (omp_finish_file): Ditto.
9928         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
9929         (layout_decl): Ditto.
9930         (relayout_decl): Ditto.
9931         (finalize_record_size): Use SET_TYPE_ALIGN.
9932         (finalize_type_size): Ditto.
9933         (finish_builtin_struct): Ditto.
9934         (layout_type): Ditto.
9935         (initialize_sizetypes): Ditto.
9936         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
9937         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
9938         (lookup_field_for_decl): Use SET_DECL_ALIGN.
9939         (get_chain_field): Ditto.
9940         (get_trampoline_type): Ditto.
9941         (get_nl_goto_field): Ditto.
9942         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
9943         SET_DECL_ALIGN.
9944         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
9945         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
9946         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
9947         (build_qualified_type): Use SET_TYPE_ALIGN.
9948         (build_aligned_type, build_range_type_1): Ditto.
9949         (build_atomic_base): Ditto.
9950         (build_common_tree_nodes): Ditto.
9951         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
9952         (expand_one_stack_var_at): Ditto.
9953         * coverage.c (build_var): Use SET_DECL_ALIGN.
9954         * except.c (init_eh): Ditto.
9955         * function.c (assign_parm_setup_block): Ditto.
9956         * symtab.c (increase_alignment_1): Ditto.
9957         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
9958         * tree-vect-stmts.c (ensure_base_align): Ditto.
9959         * varasm.c (align_variable): Ditto.
9960         (assemble_variable): Ditto.
9961         (build_constant_desc): Ditto.
9962         (output_constant_def_contents): Ditto.
9963
9964         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
9965         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
9966         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
9967         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
9968         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
9969
9970 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
9971
9972         PR target/70708
9973         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
9974         replace %vmovsd with "%vmovq".
9975         (vec_concatv2df): Likewise.
9976
9977 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
9978
9979         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
9980         (*vec_extractv2si_0): Ditto.
9981         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
9982         (zero_extended_scalar_load_operand splitters): Ditto.
9983         (vec_extract splitters): Ditto.
9984         (*vec_extractv4si_0_zext): Ditto.
9985         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
9986         and lowpart_subreg.
9987         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
9988         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
9989         (*sse4_1_extractps): Use lowpart_subreg.
9990         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
9991
9992 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9993
9994         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
9995         gld requirements.
9996         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
9997         Mention Solaris 11 packaging changes.
9998         Update gas and gld requirements.
9999         Remove reference to pre-Solaris 10 bug.
10000         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
10001         systems and bugs.
10002         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
10003         with cc.
10004
10005 2016-04-17  Jan Hubicka  <jh@suse.cz>
10006
10007         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
10008         max_loop_iterations_int.
10009
10010 2016-04-18  Richard Biener  <rguenther@suse.de>
10011
10012         PR tree-optimization/43434
10013         * tree-ssa-structalias.c (struct vls_data): New.
10014         (visit_loadstore): Handle all pointer-based accesses.
10015         (compute_dependence_clique): Compute a bitmap of restrict tags
10016         assigned bases and pass it to visit_loadstore.
10017
10018 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
10019
10020         PR target/70711
10021         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
10022         armv8.1-a and armv8.1-a+crc.
10023
10024 2016-04-18  Richard Biener  <rguenther@suse.de>
10025
10026         PR tree-optimization/70701
10027         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
10028         references after translating through a memcpy.
10029
10030 2016-04-18  Richard Biener  <rguenther@suse.de>
10031
10032         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
10033         (compute_antic): ... here.  For partial antic use regular
10034         postorder and scrap iteration.
10035         (compute_partial_antic_aux): Remove unused return value.
10036         (init_pre): Do not allocate postorder.
10037         (fini_pre): Do not free postorder.
10038
10039 2016-04-18  Richard Biener  <rguenther@suse.de>
10040
10041         PR middle-end/37870
10042         * expmed.c (extract_bit_field_1): Remove broken case
10043         using a wider MODE_INT mode.
10044
10045 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
10046
10047         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
10048         unless compiling with at least GCC-4.8.
10049
10050 2016-04-17  Jan Hubicka  <jh@suse.cz>
10051
10052         PR bootstrap/70706
10053         * graphite.c (graphite_finalize): Update call to
10054         tree_estimate_probability.
10055         * predict.h (tree_estimate_probability): Update prototype.
10056
10057 2016-04-17  Jan Hubicka  <jh@suse.cz>
10058
10059         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
10060         (tree_estimate_probability): Likewise.
10061         (pass_profile::execute): Update.
10062         (report_predictor_hitrates): New function.
10063         * profile.c (compute_branch_probabilities): Use it.
10064         * predict.h (report_predictor_hitrates): Declare.
10065
10066 2016-04-17  Jan Hubicka  <jh@suse.cz>
10067
10068         PR ipa/70018
10069         * cgraph.h (cgraph_node::set_const_flag,
10070         cgraph_node::set_pure_flag): Update prototype to return bool;
10071         update comment.
10072         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
10073         of interposable symbol are interposable, too.
10074         (cgraph_set_const_flag_1): Rename to ...
10075         (set_const_flag_1): ... this one; change to self recursive function
10076         instead of call_for_symbol_thunks_and_aliases. Handle correctly
10077         clearnig the flag in all variants and also virtual thunks of const
10078         functions are pure; track if any change was done.
10079         (cgraph_node::set_const_flag): Update.
10080         (struct set_pure_flag_info): New struct.
10081         (cgraph_set_pure_flag_1): Rename to ...
10082         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
10083         rather than pointer encoded flags; track if any changes was done;
10084         handle correctly clearning flag and setting flag of aliases already
10085         declared const.
10086         (cgraph_node::set_pure_flag): Update.
10087         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
10088
10089 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10090
10091         PR other/70433
10092         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
10093         backslash in label.
10094
10095 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10096
10097         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
10098         '{}<> ' as escape-for-record.
10099
10100 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10101
10102         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
10103         structure.
10104
10105 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10106
10107         PR other/70185
10108         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
10109         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
10110         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
10111         * passes.c (finish_optimization_passes): Only call
10112         finish_graph_dump_file if dfi->graph_dump_initialized.
10113         (execute_function_dump, pass_init_dump_file): Use
10114         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
10115
10116 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10117
10118         PR tree-optimization/70256
10119         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
10120         (debug_varmap): New function.
10121
10122 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10123
10124         PR other/70183
10125         * passes.c (pass_manager::register_pass): Propagate pflags.
10126
10127 2016-04-17  Tom de Vries  <tom@codesourcery.com>
10128
10129         PR other/68875
10130         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
10131         * passes.c (pass_manager::pass_manager): Declare and init p_start in
10132         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
10133         check if it's equal to p_start.
10134         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
10135
10136 2016-04-15  Jan Hubicka  <jh@suse.cz>
10137
10138         PR ipa/70018
10139         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
10140         function does not bind to current def.
10141         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
10142         handle conservatively calls to functions that does not need to bind
10143         to current def.
10144         (check_call): Update call of worse_state.
10145         (ignore_edge_for_nothrow): Update.
10146         (ignore_edge_for_pure_const): Likewise.
10147         (propagate_pure_const): Update calls to worse_state.
10148         (skip_function_for_local_pure_const): Reformat comments.
10149
10150 2016-04-15  Jan Hubicka  <jh@suse.cz>
10151
10152         PR ipa/70018
10153         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
10154         (cgraph_node::function_symbol): Likewise.
10155         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
10156         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
10157         (symtab_node::ultimate_alias_target): Add REF parameter.
10158         (symtab_node::binds_to_current_def_p): Declare.
10159         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
10160         (cgraph_node::function_symbol): Likewise.
10161         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
10162         (cgraph_node::get_availability): Likewise.
10163         (cgraph_edge::binds_to_current_def_p): New inline function.
10164         (varpool_node::get_availability): Add REF parameter.
10165         (varpool_node::ultimate_alias_target): Likewise.
10166         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
10167         (symtab_node::binds_to_current_def_p): Likewise.
10168         * varpool.c (varpool_node::get_availability): Likewise.
10169
10170 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
10171
10172         PR target/70662
10173         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
10174         Fix mode size check.
10175
10176 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
10177
10178         * BASE-VER: Set to 7.0.0.
10179
10180 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
10181
10182         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
10183
10184 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10185
10186         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
10187         architecture revisions.
10188
10189 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
10190
10191         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
10192         * config/i386/i386.c (ix86_using_red_zone): No longer static.
10193         * config/i386/i386.md (stack decrement to push peepholes): Guard
10194         with !x86_using_red_zone ().
10195
10196 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
10197
10198         PR c++/70675
10199         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
10200         to dump_generic_node.
10201         (NIY): Pass also flags to do_niy.
10202
10203 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
10204
10205         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
10206         (simd_clone_vector_of_formal_parm_types)
10207         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
10208         (simd_clone_mangle, simd_clone_create)
10209         (simd_clone_adjust_return_type, create_tmp_simd_array)
10210         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
10211         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
10212         (ipa_simd_modify_function_body, simd_clone_linear_addend)
10213         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
10214         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
10215         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
10216         * omp-simd-clone.c: ... this new file.
10217         (simd_clone_vector_of_formal_parm_types): Make it static.
10218         * Makefile.in (OBJS): Add omp-simd-clone.o.
10219
10220 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
10221
10222         PR target/70662
10223         * config/i386/sse.md: Use proper memory operand modifiers.
10224
10225
10226 2016-04-15  Richard Biener  <rguenther@suse.de>
10227         Alan Modra  <amodra@gmail.com>
10228
10229         PR tree-optimization/70130
10230         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
10231         when alignment stays not the same and no not use the realign
10232         scheme then.
10233
10234 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10235
10236         PR target/70669
10237         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
10238         direct move handlers for KFmode. Change TFmode handlers test from
10239         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
10240
10241 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
10242
10243         PR c++/70594
10244         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
10245         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
10246         (inlined_polymorphic_ctor_dtor_block_p): Use it.
10247         * tree-ssa-live.c (remove_unused_scope_block_p): When
10248         in_ctor_dtor_block, avoid discarding not just BLOCKs with
10249         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
10250         block_ultimate_origin is FUNCTION_DECL.
10251         (remove_unused_locals): If current_function_decl is
10252         polymorphic_ctor_dtor_p, pass initial true to
10253         remove_unused_scope_block_p' is_ctor_dtor_block.
10254
10255 2016-04-14  Martin Sebor  <msebor@redhat.com>
10256
10257         PR c++/69517
10258         PR c++/70019
10259         PR c++/70588
10260         * doc/extend.texi (Variable Length): Revert.
10261
10262 2016-04-14  Marek Polacek  <polacek@redhat.com>
10263             Jan Hubicka  <hubicka@ucw.cz>
10264
10265         PR c++/70029
10266         * tree.c (verify_type): Disable the canonical type of main variant
10267         check.
10268
10269 2016-04-14  Jason Merrill  <jason@redhat.com>
10270
10271         * cfgexpand.c, expr.c: Revert previous change.
10272
10273 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
10274
10275         PR middle-end/70643
10276         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
10277         when building a mem ref for the incoming reduction variable.
10278
10279 2016-04-14  Richard Biener  <rguenther@suse.de>
10280
10281         PR tree-optimization/70614
10282         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
10283         loop if the evolution dropped to chrec_dont_know.
10284         (interpret_condition_phi): Likewise.
10285
10286 2016-04-14  Richard Biener  <rguenther@suse.de>
10287
10288         PR tree-optimization/70623
10289         * tree-ssa-pre.c (changed_blocks): Make global ...
10290         (compute_antic): ... local here.  Move and fix worklist
10291         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
10292         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
10293         worklist handling, dump when ANTIC_IN changed.
10294         (compute_partial_antic_aux): Remove worklist handling.
10295         (init_pre): Do not compute post dominators.  Add a comment about
10296         the CFG order chosen.
10297         (fini_pre): Do not free post dominators.
10298
10299 2016-04-13  Martin Sebor  <msebor@redhat.com>
10300
10301         PR c++/69517
10302         PR c++/70019
10303         PR c++/70588
10304         * doc/extend.texi (Variable Length): Document C++ specifics.
10305
10306 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
10307
10308         PR c++/70641
10309         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
10310         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
10311         eh edges have been purged.
10312
10313         PR c++/70594
10314         * tree-sra.c (create_access_replacement,
10315         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
10316         gets fancy name.
10317         * tree-pretty-print.c (dump_fancy_name): New function.
10318         (dump_decl_name, dump_generic_node): Use it.
10319
10320 2016-04-13  Jason Merrill  <jason@redhat.com>
10321
10322         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
10323         * expr.c (expand_expr_real_1): Likewise.
10324
10325 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10326
10327         * config/i386/i386.md (kunpckhi): Swap operands.
10328         (kunpcksi): Likewise.
10329         (kunpckdi): Likewise.
10330         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
10331         (vec_pack_trunc_<mode>): Likewise.
10332
10333 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
10334
10335         PR debug/70628
10336         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
10337
10338         PR middle-end/70633
10339         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
10340         gimplification turns some element into non-constant.
10341
10342         PR debug/70628
10343         * rtl.h (convert_memory_address_addr_space_1): New prototype.
10344         * explow.c (convert_memory_address_addr_space_1): No longer static,
10345         add NO_EMIT argument and don't call convert_modes if true, pass
10346         it down recursively, remove break after return.
10347         (convert_memory_address_addr_space): Adjust caller.
10348         * simplify-rtx.c (simplify_unary_operation_1): Call
10349         convert_memory_address_addr_space_1 instead of convert_memory_address,
10350         if it returns NULL, don't simplify.
10351
10352 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
10353
10354         PR target/70630
10355         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
10356
10357 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10358
10359         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10360         Bump the upper SIMDLEN limits, so that if the return type or
10361         characteristic type if the return type is void can be passed in
10362         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
10363         allowed.
10364
10365 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10366
10367         PR target/70640
10368         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
10369         Do not use "=" constraint on an input constraint.
10370         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10371         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10372         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
10373         generates (neg (abs ...)) instead of (abs ...).
10374
10375 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10376
10377         PR rtl-optimization/70596
10378         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
10379         just invalidate LRA data and reset them.  Adjust dump wording.
10380
10381 2016-04-12  Martin Liska  <mliska@suse.cz>
10382
10383         Revert
10384         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10385
10386         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
10387         estimates here.
10388         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10389         max_loop_iterations_int.
10390         (tree_unswitch_outer_loop): Likewise.
10391         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10392         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10393
10394 2016-04-12  Tom de Vries  <tom@codesourcery.com>
10395
10396         PR tree-optimization/68756
10397         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
10398         instead of new_name.
10399
10400 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10401
10402         PR tree-optimization/70602
10403         * tree-sra.c (generate_subtree_copies): Don't write anything into
10404         constant pool decls.
10405
10406         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
10407         regardless whether there are depend clauses or not.
10408
10409 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10410
10411         PR target/70381
10412         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
10413         target attribute and pragma from changing the -mfloat128
10414         and -mfloat128-hardware options.
10415
10416         * doc/extend.texi (Additional Floating Types): Document PowerPC
10417         __float128 restrictions.
10418
10419 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10420
10421         PR target/70133
10422         * config/aarch64/driver-aarch64.c
10423         (aarch64_get_extension_string_for_isa_flags): New.
10424         (arch_extension): Rename to...
10425         (aarch64_arch_extension): ...This.
10426         (ext_to_feat_string): Rename to...
10427         (aarch64_extensions): ...This.
10428         (aarch64_core_data): Keep track of architecture extension flags.
10429         (cpu_data): Rename to...
10430         (aarch64_cpu_data): ...This.
10431         (aarch64_arch_driver_info): Keep track of architecture extension
10432         flags.
10433         (get_arch_name_from_id): Rename to...
10434         (get_arch_from_id): ...This, change return type.
10435         (host_detect_local_cpu): Update and reformat for renames, handle
10436         extensions through common infrastructure.
10437
10438 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10439
10440         PR target/70133
10441         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
10442         track of a canonical flag name.
10443         (all_extensions): Likewise.
10444         (arch_to_arch_name): Also track extension flags enabled by the arch.
10445         (all_architectures): Likewise.
10446         (aarch64_parse_extension): Move to here.
10447         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
10448         rework.
10449         (aarch64_rewrite_selected_cpu): Update for above change.
10450         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
10451         are handled, such that the single explicit value enabled by an
10452         extension is kept seperate from the implicit values it also enables.
10453         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
10454         to here.
10455         (aarch64_parse_extension): New.
10456         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
10457         here to config/aarch64/aarch64-protos.h.
10458         (aarch64_parse_extension): Move from here to
10459         common/config/aarch64/aarch64-common.c.
10460         (aarch64_option_print): Update.
10461         (aarch64_declare_function_name): Likewise.
10462         (aarch64_start_file): Likewise.
10463         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
10464         the canonical flag for extensions.
10465         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
10466         flags.
10467
10468 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10469
10470         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
10471         AARCH64_FL_CRC.
10472
10473 2016-04-09  Tom de Vries  <tom@codesourcery.com>
10474
10475         PR tree-optimization/68953
10476         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
10477         first to last subscript.
10478
10479 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
10480
10481         PR tree-optimization/70586
10482         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
10483         for any calls.
10484
10485 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
10486
10487         PR lto/70289
10488         PR ipa/70348
10489         PR tree-optimization/70373
10490         PR middle-end/70533
10491         PR middle-end/70534
10492         PR middle-end/70535
10493         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
10494         clauses for acc parallel reductions as necessary.  Error on those
10495         that are private.
10496         * omp-low.c (scan_sharing_clauses): Don't install variables which
10497         are used in acc parallel reductions.
10498         (lower_rec_input_clauses): Remove dead code.
10499         (lower_oacc_reductions): Add support for reference reductions.
10500         (lower_reduction_clauses): Remove dead code.
10501         (lower_omp_target): Don't remap variables appearing in acc parallel
10502         reductions.
10503         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
10504
10505 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
10506
10507         PR middle-end/70593
10508         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
10509         with multiple SSA_NAME defs, force the outputs other than first
10510         to be live before calling live_track_process_def on each output.
10511
10512         PR rtl-optimization/70574
10513         * fwprop.c (forward_propagate_and_simplify): Don't add
10514         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
10515         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
10516         paradoxical subregs within *loc.
10517
10518 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
10519
10520         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
10521         -ftree-parallelize-loops={0,1}.
10522         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
10523         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
10524         * config/ia64/hpux.h (LIB_SPEC): Likewise.
10525         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10526         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
10527
10528 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
10529
10530         PR sanitizer/70541
10531         * asan.c (instrument_derefs): If we get unknown location, extract it
10532         with EXPR_LOCATION.
10533         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
10534
10535 2016-04-08  Tom de Vries  <tom@codesourcery.com>
10536
10537         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
10538         implicit firstprivate clause.
10539
10540 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10541
10542         PR target/70566
10543         * config/arm/thumb2.md (tst + branch-> lsls + branch
10544         peephole below *orsi_not_shiftsi_si): Require that condition
10545         register is dead after the peephole.
10546         (second peephole after the above): Likewise.
10547
10548 2016-04-08  Alan Modra  <amodra@gmail.com>
10549
10550         PR target/70117
10551         * builtins.c (fold_builtin_classify): For IBM extended precision,
10552         look at just the high-order double to test for NaN.
10553         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
10554         test just the high double for Inf but both doubles for subnormal
10555         limit.
10556
10557 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
10558
10559         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
10560         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
10561         node->simdclone->mask_mode != VOIDmode masks.
10562         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
10563         earlier, use it instead of node->simdclone.
10564         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10565         Set clonei->mask_mode.
10566
10567 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
10568
10569         PR c/70436
10570         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
10571         Pass it through to cp_parser_already_scoped_statement.
10572         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
10573         it through to cp_parser_statement.
10574         (cp_parser_statement): Pass IF_P through to
10575         cp_parser_iteration_statement.
10576         (cp_parser_pragma): Adjust call to
10577         cp_parser_iteration_statement.
10578
10579 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
10580
10581         PR c/70436
10582         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
10583         resolve a future -Wparentheses warning.
10584         * omp-low.c (scan_sharing_clauses): Likewise.
10585         * tree-parloops.c (eliminate_local_variables): Likewise.
10586
10587 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
10588
10589         PR rtl-optimization/70398
10590         * lra-constraints.c (process_address_1): Check zero scale and code
10591         for reloading with zero scale.
10592
10593 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
10594
10595         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
10596         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
10597
10598 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
10599
10600         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10601         Add support for AVX512F clones, include them by default for
10602         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
10603         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
10604         up to 128.
10605
10606         PR middle-end/70550
10607         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
10608         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
10609         firstprivate clauses.
10610         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
10611         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
10612         (lower_omp_target): Set TREE_NO_WARNING for
10613         non-addressable possibly uninitialized vars which are copied into
10614         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
10615
10616 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
10617
10618         * config/pa/predicates.md (integer_store_memory_operand): Accept
10619         REG+D operands with a large offset when reload_in_progress is true.
10620         (floating_point_store_memory_operand): Likewise.
10621
10622 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10623
10624         PR c++/70336
10625         * match.pd (nested int casts): Limit to GIMPLE.
10626
10627 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
10628
10629         PR ipa/66223
10630         * ipa-devirt.c (maybe_record_node): Fix comment; use
10631         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
10632
10633 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10634
10635         PR rtl-optimization/70542
10636         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
10637         if there are any uses other than insn or debug insns.
10638
10639 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
10640             Jakub Jelinek  <jakub@redhat.com>
10641
10642         PR tree-optimization/70509
10643         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
10644         Shift HOST_WIDE_INT_1U instead of 1.
10645
10646 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
10647
10648         PR tree-optimization/70509
10649         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
10650         of the vector base type for index.
10651
10652 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
10653
10654         PR target/70510
10655         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
10656
10657 2016-04-05  Richard Biener  <rguenther@suse.de>
10658
10659         PR tree-optimization/70526
10660         * tree-sra.c (build_ref_for_offset): Use prev_base to
10661         extract the alias pointer type.
10662
10663 2016-04-05  Richard Biener  <rguenther@suse.de>
10664
10665         * dse.c (struct store_info): Remove alias_set member.
10666         (struct read_info_type): Likewise.
10667         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
10668         spill_deleted, clear_alias_set_lookup): Remove.
10669         (get_group_info): Remove dead base == NULL_RTX case.
10670         (dse_step0): Remove initialization of removed variables.
10671         (delete_dead_store_insn): Reomve alias set dumping.
10672         (free_read_records): Remove alias_set handling.
10673         (canon_address): Remove alias_set_out parameter.
10674         (record_store): Remove spill_alias_set, it's always zero.
10675         (check_mem_read_rtx): Likewise.
10676         (dse_step2): Rename from ...
10677         (dse_step2_nospill): ... this.  Adjust.
10678         (scan_stores): Rename from ...
10679         (scan_stores_nospill): ... this.
10680         (scan_reads): Rename from ...
10681         (scan_reads_nospill): ... this.
10682         (scan_stores_spill, scan_reads_spill): Remove.
10683         (dse_step3_scan): Remove for_spills argument which is always false.
10684         (dse_step3): Likewise.
10685         (dse_step5): Rename from ...
10686         (dse_step5_nospill): ... this.  Remove alias_set handling.
10687         (rest_of_handle_dse): Adjust.
10688
10689 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10690
10691         PR target/70525
10692         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
10693         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
10694         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
10695         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
10696
10697 2016-04-05  Richard Biener  <rguenther@suse.de>
10698
10699         PR middle-end/70499
10700         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
10701         non-register type temporaries into SSA.
10702
10703 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
10704
10705         PR ipa/66223
10706         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
10707         calls when sanitizing.
10708         (possible_polymorphic_call_target_p): Fix formatting.
10709
10710 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10711             Jakub Jelinek <jakub@redhat.com>
10712
10713         PR middle-end/70457
10714         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
10715         to ensure a call statement is compatible with a built-in's
10716         prototype.
10717         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
10718         Likewise.
10719
10720 2016-04-04  Richard Biener  <rguenther@suse.de>
10721
10722         PR rtl-optimization/70484
10723         * rtl.h (canon_output_dependence): Declare.
10724         * alias.c (canon_output_dependence): New function.
10725         * dse.c (record_store): Use canon_output_dependence rather
10726         than canon_true_dependence.
10727
10728 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10729
10730         PR ipa/68881
10731         * cgraph.h (symtab_node::copy_visibility_from): New function.
10732         * symtab.c (symtab_node::copy_visibility_from): New function.
10733         * ipa-visibility.c (optimize_weakref): New function.
10734         (function_and_variable_visibility): Use it.
10735
10736 2016-04-04  Martin Liska  <mliska@suse.cz>
10737
10738         PR hsa/70402
10739         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
10740         value that is really in range handled by SBR instruction.
10741         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
10742         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
10743         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
10744
10745 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
10746
10747         PR target/70416
10748         PR target/67391
10749         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
10750         set, but not for SP_REG operands.
10751
10752 2016-04-02  Martin Sebor  <msebor@redhat.com>
10753
10754         PR c++/67376
10755         * fold-const.c (maybe_nonzero_address): New function.
10756         (fold_comparison): Call it.  Fold equality and relational
10757         expressions involving null pointers.
10758         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
10759
10760 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
10761
10762         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
10763         the "Y" constraint (scalar FP 0.0 immediate).
10764
10765         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
10766         Add the "const_double" to the list of operand constraints.
10767
10768 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
10769
10770         PR rtl-optimization/70467
10771         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
10772         If low word of the last operand is 0, just emit addition/subtraction
10773         for the high word.
10774
10775 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10776
10777         PR target/70404
10778         * config/s390/s390.c (s390_expand_insv): Check for everything
10779         constant instead of just VOIDmode stuff.
10780
10781 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10782
10783         PR target/70496
10784         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
10785
10786 2016-04-01  Nathan Sidwell  <nathan@acm.org>
10787
10788         * tree.def (TRY_CATCH_EXPR): Correct documentation.
10789
10790 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
10791
10792         PR rtl-optimization/70461
10793         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
10794         is necessary.
10795
10796 2016-03-31  Martin Liska  <mliska@suse.cz>
10797
10798         PR hsa/70399
10799         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
10800         a tree value or an immediate integer value to a buffer
10801         that is eventually copied to a BRIG section.
10802         (emit_immediate_operand): Call the function here.
10803         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
10804         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
10805         of class' fields that are removed.
10806         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
10807         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
10808         m_brig_repr_size fields.
10809
10810 2016-03-31  Martin Liska  <mliska@suse.cz>
10811
10812         PR hsa/70391
10813         * hsa-gen.c (hsa_function_representation::update_dominance): New
10814         function.
10815         (convert_addr_to_flat_segment): Likewise.
10816         (gen_hsa_memory_set): New alignment argument.
10817         (gen_hsa_ctor_assignment): Likewise.
10818         (gen_hsa_insns_for_single_assignment): Provide alignment
10819         to gen_hsa_ctor_assignment.
10820         (gen_hsa_insns_for_direct_call): Add new argument.
10821         (expand_lhs_of_string_op): New function.
10822         (expand_string_operation_builtin): Likewise.
10823         (expand_memory_copy): New function.
10824         (expand_memory_set): New function.
10825         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
10826         (convert_switch_statements): Change signature.
10827         (generate_hsa): Use a return value of the function.
10828         (pass_gen_hsail::execute): Do not call
10829         convert_switch_statements here.
10830         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
10831         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
10832         (hsa_function_representation::update_dominance): New function.
10833
10834 2016-03-31  Martin Liska  <mliska@suse.cz>
10835
10836         PR hsa/70391
10837         * hsa-brig.c (emit_directive_variable): Emit alignment
10838         according to hsa_symbol::m_align.
10839         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
10840         (dump_hsa_symbol): Dump alignment of HSA symbols.
10841         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
10842         (gen_hsa_addr_with_align): New function.
10843         (hsa_bitmemref_alignment): Use newly added function.
10844         (gen_hsa_insns_for_load): Likewise.
10845         (gen_hsa_insns_for_store): Likewise.
10846         (gen_hsa_memory_copy): New argument added.
10847         (gen_hsa_insns_for_single_assignment): Respect
10848         alignment for assignments processed via gen_hsa_memory_copy.
10849         (gen_hsa_insns_for_direct_call): Likewise.
10850         (gen_hsa_insns_for_return): Likewise.
10851         (gen_function_def_parameters): Set default alignment.
10852         * hsa.c (hsa_object_alignment): New function.
10853         (hsa_byte_alignment): Pasted function.
10854         * hsa.h (hsa_symbol::m_align): New field.
10855
10856 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
10857
10858         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
10859         scratch field for goto case.
10860
10861 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
10862
10863         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
10864
10865 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
10866
10867         PR target/70442
10868         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
10869         (scalar_chain::convert_insn): Call convert_op for reg
10870         moves to handle undefined registers.
10871
10872 2016-03-31  Nathan Sidwell  <nathan@acm.org>
10873
10874         PR c++/70393
10875         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
10876         Assert we don't want to move backwards.
10877
10878 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
10879
10880         PR target/70453
10881         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
10882
10883 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
10884
10885         PR rtl-optimization/70460
10886         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
10887         with operand from REG_LABEL_OPERAND, instead substitute
10888         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
10889         Don't do anything for REG_NON_LOCAL_GOTO jumps.
10890
10891 2016-03-31  Martin Liska  <mliska@suse.cz>
10892
10893         * passes.c (execute_one_pass): Do not call
10894         todo_after for a discarded function.
10895
10896 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
10897
10898         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
10899         (no_cost, infinite_cost): Initialize the new field.
10900         (get_computation_cost_at): Record setup cost.
10901         (determine_use_iv_cost_address): Skip cost computation for sub
10902         uses if we can estimate it without losing accuracy.
10903
10904 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10905
10906         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
10907         estimates here.
10908         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10909         max_loop_iterations_int.
10910         (tree_unswitch_outer_loop): Likewise.
10911         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10912         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10913
10914 2016-03-30  Richard Biener  <rguenther@suse.de>
10915
10916         PR middle-end/70450
10917         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
10918
10919 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
10920
10921         PR target/70421
10922         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
10923         in gen_blendm expander.
10924
10925 2016-03-30  Nick Clifton  <nickc@redhat.com>
10926
10927         PR target/62254
10928         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
10929         case where we are already provided with an SImode SUBREG.
10930
10931 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
10932
10933         PR target/70439
10934         * config/i386/i386.c (ix86_expand_epilogue): Properly check
10935         conflict between DRAP register and __builtin_eh_return.
10936
10937 2016-03-30  Michael Matz  <matz@suse.de>
10938             Richard Biener  <rguenther@suse.de>
10939
10940         PR ipa/12392
10941         * ipa-polymorphic-call.c (struct type_change_info): Change
10942         speculative to an unsigned allowing to limit the work we do.
10943         (csftc_abort_walking_p): New inline function..
10944         (check_stmt_for_type_change): Limit the number of may-defs
10945         skipped for speculative devirtualization to
10946         max-speculative-devirt-maydefs.
10947         * params.def (max-speculative-devirt-maydefs): New param.
10948         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
10949
10950 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
10951
10952         PR target/63890
10953         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
10954         and TARGET_MACHO.
10955
10956 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
10957
10958         PR tree-optimization/59124
10959         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
10960         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
10961
10962 2016-03-29  Jeff Law  <law@redhat.com>
10963
10964         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
10965
10966 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10967
10968         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
10969         to HOST_WIDE_INT.
10970
10971 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
10972
10973         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
10974         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
10975         gcrt0.o if linking dynamically.
10976
10977 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10978
10979         PR ipa/70283
10980         * ipa-devirt.c (methods_equal_p): New function.
10981         (compare_virtual_tables): Use it.
10982         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
10983         * cgraphclones.c (clone_function_name_1): Use
10984         symbol_table::symbol_suffix_separator.
10985         * coverage.c (build_var): Likewise.
10986         * symtab.c (symbol_table::symbol_suffix_separator): New.
10987
10988 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
10989
10990         PR rtl-optimization/70429
10991         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
10992         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
10993         mode != result_mode.
10994
10995         PR c++/70353
10996         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
10997
10998         PR tree-optimization/70405
10999         * ssa-iterators.h (num_imm_uses): Add missing braces.
11000
11001 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
11002
11003         PR rtl-optimization/68695
11004         * ira-color.c (allocno_copy_cost_saving): New.
11005         (improve_allocation): Use it.
11006
11007 2016-03-29  Richard Henderson  <rth@redhat.com>
11008
11009         PR middle-end/70355
11010         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
11011
11012 2016-03-29  Richard Biener  <rguenther@suse.de>
11013
11014         PR middle-end/70424
11015         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
11016         use alignment returned by get_pointer_alignment_1 if it is
11017         bigger than BITS_PER_UNIT.
11018         * builtins.c (get_pointer_alignment_1): Do not return true
11019         for alignment extracted from SSA info.
11020
11021 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
11022
11023         * config/ft32/ft32.opt (mnodiv): New.
11024         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
11025         * doc/invoke.texi (FT32 Options -mnodiv): New.
11026
11027 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
11028
11029         PR target/70406
11030         * config/i386/i386.md (define_split, andn): Fix modes.
11031
11032 2016-03-26  Richard Biener  <rguenther@suse.de>
11033             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11034
11035         PR ipa/70366
11036         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
11037         instead of
11038         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
11039         as 2nd argument to cl_optimization_restore().
11040
11041 2016-03-25  Richard Henderson  <rth@redhat.com>
11042
11043         PR target/70120
11044         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
11045         * config/aarch64/aarch64-protos.h: Declare it.
11046         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
11047
11048 2016-03-25  Alan Modra  <amodra@gmail.com>
11049
11050         PR target/70052
11051         * config/rs6000/constraints.md (j): Simplify.
11052         * config/rs6000/predicates.md (easy_fp_constant): Exclude
11053         decimal float 0.D.
11054         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
11055         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
11056          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
11057         in all constraint alternatives.
11058         (movtd_64bit_nodm): Delete "j" constraint alternative.
11059
11060 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11061
11062         * tree-ssa-propagate.c: Enhance docs for
11063         SSA_PROP_NOT_INTERESTING.
11064
11065 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
11066
11067         * doc/extend.texi: Fix typo in documentation to pure attribute.
11068
11069 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
11070
11071         PR target/70319
11072         * config/pa/pa.md (bswapdi2): Use a scratch register.
11073
11074 2016-03-24  Richard Henderson  <rth@redhat.com>
11075
11076         PR middle-end/69845
11077         * fold-const.c (extract_muldiv_1): Correct test for multiplication
11078         overflow.
11079
11080 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
11081
11082         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
11083         using ix86_expand_binary_operator instead of gen_andsi3.
11084
11085 2016-03-24  Richard Biener  <rguenther@suse.de>
11086
11087         PR tree-optimization/70396
11088         * tree-vect-stmts.c (vectorizable_comparison): Use
11089         get_vectype_for_scalar_type.
11090
11091 2016-03-24  Richard Biener  <rguenther@suse.de>
11092
11093         PR middle-end/70370
11094         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
11095         with register bases.
11096
11097 2016-03-24  Richard Biener  <rguenther@suse.de>
11098
11099         PR tree-optimization/70372
11100         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
11101         build_all_ones_cst to also handle vector types correctly.
11102
11103 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11104
11105         PR target/70381
11106         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
11107         -mfloat128 here.
11108
11109 2016-03-23  Marek Polacek  <polacek@redhat.com>
11110
11111         PR c++/69884
11112         * doc/invoke.texi: Document -Wignored-attributes.
11113
11114 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11115
11116         PR tree-optimization/69042
11117         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
11118         parameter from 30 to 40.
11119
11120 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
11121
11122         PR tree-optimization/69042
11123         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
11124         for use with constant offset stripped in base.
11125
11126 2016-03-23  Richard Biener  <rguenther@suse.de>
11127
11128         PR middle-end/70251
11129         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
11130         mode compatibility check.
11131         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11132
11133 2016-03-23  Jeff Law  <law@redhat.com>
11134
11135         PR tree-optimization/64058
11136         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
11137         CONFLICT_COUNT.
11138         (struct ssa_conflicts): Move up earlier in the file.
11139         (conflicts_, var_map_): New static variables.
11140         (initialize_conflict_count): New function to initialize the
11141         CONFLICT_COUNT field for each conflict pair.
11142         (compare_pairs): Lazily initialize the conflict count and use it
11143         as the first tie-breaker.
11144         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
11145         and wipe conflicts_ and map_ around the call to qsort.  Remove
11146         special case for 2 coalesce pairs.
11147         * bitmap.c (bitmap_count_unique_bits): New function.
11148         (bitmap_count_bits_in_word): New function, extracted from
11149         bitmap_count_bits.
11150         (bitmap_count_bits): Use bitmap_count_bits_in_word.
11151         * bitmap.h (bitmap_count_unique_bits): Declare it.
11152
11153 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
11154
11155         PR target/69917
11156         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
11157         transparent alias chain for decl assembler name.
11158         * config/sol2.c (solaris_assemble_visibility): Likewise.
11159
11160 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11161
11162         * config/arm/arm1020e.md (1020call_op): Reduce reservation
11163         duration.
11164         (v10_fdivs): Likewise.
11165         (v10_fdivd): Likewise.
11166
11167 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11168
11169         PR driver/70132
11170         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
11171         to not call fclose twice on file.
11172
11173 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
11174
11175         PR tree-optimization/70354
11176         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
11177         oprnd0 is wider than oprnd1 and there is a cast from the wider
11178         type to oprnd1, mask it with the mask of the narrower type.
11179
11180         PR target/70321
11181         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
11182         Optimize TARGET_STV splitters, if high or low word of last argument
11183         is 0 or -1.
11184
11185 2016-03-22  Jeff Law  <law@redhat.com>
11186
11187         PR target/70232
11188         tree-ssa-threadbackward.c
11189         (fsm_find_control_statement_thread_paths): Correctly distinguish
11190         between old style jump threads vs FSM jump threads.
11191
11192 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
11193
11194         PR target/70302
11195         * config/i386/i386.c (scalar_chain::convert_op): Support
11196         uninitialized register usage case.
11197
11198 2016-03-22  Richard Biener  <rguenther@suse.de>
11199
11200         PR middle-end/70251
11201         * genmatch.c (gen_transform): Adjust last parameter to a three-state
11202         int...
11203         (capture::gen_transform): ... to change behavior when substituting
11204         a condition into cond or not-cond expr context.
11205         (dt_simplify::gen_1): Adjust.
11206         * gimple-match-head.c: Include gimplify.h for unshare_expr.
11207         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
11208         last change and instead change to
11209         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
11210         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11211
11212 2016-03-22  Anthony Green  <green@moxielogic.com>
11213
11214         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
11215         issue for moxiebox targets.
11216         (CC1PLUS_SPEC): Ditto.
11217
11218 2016-03-22  Richard Biener  <rguenther@suse.de>
11219
11220         PR middle-end/70333
11221         * fold-const.c (extract_muldiv_1): Properly perform multiplication
11222         in the wide type.
11223
11224 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11225
11226         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
11227
11228 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
11229
11230         PR target/70325
11231         * config/i386/i386.c (def_builtin): Handle
11232         OPTION_MASK_ISA_AVX512VL to be and-ed with other
11233         bits.
11234         (const struct builtin_description bdesc_special_args[]):
11235         Remove duplicate ISA bits.
11236
11237 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
11238
11239         PR target/70329
11240         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
11241         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
11242         in a way that works also for AVX512BW.
11243
11244         PR target/70300
11245         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
11246         instead of source if operands[1] is xmm16 and above and
11247         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
11248         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
11249
11250         PR c++/70295
11251         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
11252         on assign if (*from_p) is a comparison, set it to
11253         TREE_NO_WARNING (*from_p).
11254
11255 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
11256
11257         PR middle-end/70326
11258         * lra.c (restore_scratches): Ignore deleted insns.
11259
11260 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
11261             Jakub Jelinek  <jakub@redhat.com>
11262
11263         PR tree-optimization/70317
11264         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
11265         to HONOR_NANS.
11266
11267 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
11268
11269         PR target/70327
11270         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
11271         of ix86_expand_move.
11272         (movoi): Ditto.
11273         (movti): Use general_operand for operand 1 predicate.
11274
11275 2016-03-21  Martin Liska  <mliska@suse.cz>
11276
11277         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
11278         insns.
11279         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
11280
11281 2016-03-21  Martin Liska  <mliska@suse.cz>
11282
11283         PR ipa/70306
11284         * ipa-icf.c (sem_function::parse): Skip static
11285         constructors and destructors.
11286
11287 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
11288
11289         PR target/70296
11290         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
11291         function-like macro, peek following token(s) if it is followed
11292         by CPP_OPEN_PAREN token with optional padding in between, and
11293         if not, don't treat it like a macro.
11294
11295 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11296             Alexander Monakov  <amonakov@ispras.ru>
11297
11298         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
11299         for the stabs debug format.
11300
11301 2016-03-21  Richard Biener  <rguenther@suse.de>
11302
11303         PR tree-optimization/70310
11304         * tree-vect-generic.c (expand_vector_condition): Fold the built
11305         condition.
11306
11307 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
11308
11309         PR target/70293
11310         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
11311         Block third alternative for AVX-512VL target,
11312
11313 2016-03-21  Martin Liska  <mliska@suse.cz>
11314
11315         PR hsa/70234
11316         * hsa-brig.c (emit_function_directives): Mark unemitted
11317         global variables for emission.
11318         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
11319         (get_symbol_for_decl): Likewise.
11320         * hsa.h (struct hsa_symbol): New flag.
11321
11322 2016-03-21  Richard Biener  <rguenther@suse.de>
11323
11324         PR tree-optimization/70288
11325         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
11326         we do not estimate unsimplified all-constant conditionals or
11327         switches as optimized away.
11328
11329 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
11330
11331         PR rtl-optimization/69102
11332         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
11333         when we have a readonly dependency context.
11334
11335 2016-03-18  Jeff Law  <law@redhat.com>
11336
11337         PR rtl-optimization/70263
11338         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
11339         (update_equiv_regs): When trying to move a store to after the insn
11340         that sets the source of the store, make sure the store occurs after
11341         the insn that sets the source of the store.  When successful note
11342         the REG_EQUIV note created in the dump file.
11343
11344 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
11345             Bernd Schmidt  <bschmidt@redhat.com>
11346
11347         * doc/extend.texi: Document more potential problems with basic asms.
11348
11349 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
11350
11351         PR rtl-optimization/70278
11352         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
11353         VOIDmode.
11354
11355 2016-03-18  Jason Merrill  <jason@redhat.com>
11356
11357         * calls.c (load_register_parameters): Fix zero size sibcall logic.
11358
11359 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
11360
11361         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
11362         values to 128b regs.
11363
11364 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
11365
11366         PR tree-optimization/70252
11367         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
11368         boolean vector has a proper number of elements.
11369         (supportable_narrowing_operation): Likewise.
11370
11371 2016-03-18  Tom de Vries  <tom@codesourcery.com>
11372
11373         PR ipa/70269
11374         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
11375
11376 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
11377
11378         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
11379         instead of replace_rtx for DEBUG_INSNs.
11380
11381 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11382
11383         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
11384         load type reservations.
11385
11386 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
11387
11388         PR target/70188
11389         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
11390         define_constraint for "Q" and "T" constraints.
11391
11392 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
11393
11394         Tweak the pipeline model for Exynos M1
11395
11396         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
11397         model.
11398
11399 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
11400
11401         PR c/70264
11402         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
11403         where one or both locations aren't within a line_map.
11404
11405 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11406
11407         PR driver/70192
11408         * opts.c (finish_options): Don't set flag_pie to the default if
11409         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
11410         if it is -1.
11411
11412 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
11413
11414         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
11415         true as ALL_REGS argument to replace_rtx.
11416
11417 2016-03-17  Richard Biener  <rguenther@suse.de>
11418
11419         PR debug/70271
11420         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
11421         last.
11422
11423 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
11424
11425         PR target/70245
11426         * rtl.h (replace_rtx): Add ALL_REGS argument.
11427         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
11428         equality and assert mode is the same, instead of just rtx pointer
11429         equality.
11430         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
11431         true as ALL_REGS argument to replace_rtx.
11432
11433 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
11434
11435         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
11436         for boolean vector with vector mode only.
11437         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11438
11439 2016-03-17  Nick Clifton  <nickc@redhat.com>
11440
11441         PR target/70162
11442         * config/rx/rx.c (rx_print_integer): Print negative constants in
11443         decimal.
11444
11445 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
11446
11447         PR target/70261
11448         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
11449
11450 2016-03-16  Richard Henderson  <rth@redhat.com>
11451             Richard Biener  <rguenth@suse.de>
11452
11453         PR middle-end/70240
11454         PR middle-end/68215
11455         PR tree-opt/68714
11456         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
11457         first operand as is_gimple_condexpr.
11458
11459         PR middle-end/70240
11460         PR middle-end/68215
11461         Revert r231575
11462         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
11463         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
11464         Do not gimplify the result.
11465         (do_unop): Adjust call to tree_vec_extract.
11466         (do_binop): Likewise.
11467         (do_compare): Likewise.
11468         (do_plus_minus): Likewise.
11469         (do_negate): Likewise.
11470         (expand_vector_condition): Likewise.
11471         (do_cond): Likewise.
11472
11473 2016-03-16  Richard Henderson  <rth@redhat.com>
11474
11475         PR target/70048
11476         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
11477         (aarch64_classify_address): Use it.
11478         (aarch64_legitimize_address): Force all subexpressions of PLUS
11479         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
11480
11481 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
11482             Richard Biener  <rguenth@suse.de>
11483
11484         PR target/70245
11485         * rtlanal.c (replace_rtx): For REG, if from is a REG,
11486         return to even if only REGNO is equal, and assert
11487         mode is the same.
11488
11489 2016-03-11  Jeff Law  <law@redhat.com>
11490
11491         PR rtl-optimization/70224
11492         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
11493
11494 2016-03-16  Richard Henderson  <rth@redhat.com>
11495
11496         PR middle-end/70199
11497         * function.h (struct function): Add has_forced_label_in_static.
11498         * gimplify.c (force_labels_r): Set it.
11499         * lto-streamer-in.c (input_struct_function_base): Read it.
11500         * lto-streamer-out.c (output_struct_function_base): Write it.
11501         * tree-inline.c (has_label_address_in_static_1): Remove.
11502         (copy_forbidden): Remove fndecl parameter; test
11503         has_forced_label_in_static.
11504         (inline_forbidden_p): Update call to copy_forbidden.
11505         (tree_versionable_function_p): Likewise.
11506         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
11507         (chkp_versioning): Likewise.
11508         * tree-inline.h (copy_forbidden): Update decl.
11509
11510 2016-03-16  Marek Polacek  <polacek@redhat.com>
11511
11512         PR c/70093
11513         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
11514         function being thunked if the result type doesn't have fixed size.
11515         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
11516         doesn't have fixed size.
11517
11518 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
11519
11520         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
11521         reporting malformed loop nest.
11522
11523 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11524
11525         PR lto/70187
11526         * ipa-devirt.c (possible_polymorphic_call_targets): Move
11527         nodes.length () == 1 test to before first nodes[0] access.
11528
11529 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11530
11531         PR tree-optimization/68715
11532         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
11533         single_pred_p test.
11534
11535 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11536
11537         PR tree-optimization/68809
11538         * graphite-scop-detection.c (same_close_phi_node): Test if result types
11539         are the same.
11540
11541 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
11542             Sandra Loosemore  <sandra@codesourcery.com>
11543
11544         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
11545         on leaf attribute. Mention ELF interposition problems.
11546
11547 2016-03-16  Alan Modra  <amodra@gmail.com>
11548
11549         PR rtl-optimization/69195
11550         PR rtl-optimization/47992
11551         * ira.c (indirect_jump_optimize): Ignore artificial defs.
11552         Add comments.
11553
11554 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
11555
11556         PR bootstrap/69513
11557         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
11558
11559 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11560
11561         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
11562
11563 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
11564
11565         PR rtl-optimization/70222
11566         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
11567         optimization if mode is different from result_mode, queue up masking
11568         of the result in outer_op.  Formatting fix.
11569
11570         PR middle-end/70239
11571         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
11572         of safe_grow.
11573
11574 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11575
11576         PR rtl-optimization/69032
11577         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
11578         looping backwards over basic block insns.
11579
11580 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11581
11582         PR target/66660
11583         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
11584         to non-speculative when propagating trap bits.
11585
11586 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11587
11588         PR rtl-optimization/63384
11589         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
11590         DEBUG_INSN_P insns.
11591
11592 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11593
11594         PR target/64411
11595         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
11596         factored out from ...
11597         (sched_analyze_insn): ... here.
11598         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
11599         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
11600         get_implicit_reg_pending_clobbers in it.
11601         (setup_id_reg_sets): Use setup_id_implicit_regs.
11602         (deps_init_id): Ditto.
11603
11604 2016-03-15  Tom de Vries  <tom@codesourcery.com>
11605
11606         PR ipa/70161
11607         * cgraph.c (cgraph_node::get_body): Save, reset and restore
11608         dump_file_name.
11609         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
11610         execute_function_dump.
11611         (execute_one_pass): Don't dump function if it will be dumped after ipa
11612         transform.
11613
11614 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
11615
11616         * genrecog.c (match_pattern_2): If pred is NULL don't call
11617         safe_predicate_mode on it.
11618
11619 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
11620
11621         PR middle-end/70219
11622         * lra-constraints.c (delete_move_and_clobber): Change assertion
11623         to also allow dregno == 0.
11624
11625 2016-03-14  Richard Henderson  <rth@redhat.com>
11626
11627         PR tree-opt/68714
11628         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
11629         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
11630         (reassociate_bb): Use optimize_vec_cond_expr; avoid
11631         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
11632         on vectors.
11633
11634 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
11635
11636         PR target/70083
11637         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
11638         regs.
11639         (lra_create_live_ranges_1): initialize hard register biggest_mode to
11640         VOIDmode.
11641         * lra-constraints.c (split_reg): For hard regs, try to find the
11642         biggest single-register mode used in the function.
11643
11644 2016-03-14  Richard Biener  <rguenther@suse.de>
11645
11646         PR tree-optimization/56365
11647         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
11648         constants to compare against.
11649
11650 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
11651
11652         PR target/70098
11653         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
11654         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
11655         (define_split for the GPR case): Use int_reg_operand instead of
11656         gpc_reg_operand for the output.
11657
11658 2016-03-14  Tom de Vries  <tom@codesourcery.com>
11659
11660         PR tree-optimization/70045
11661         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
11662         create_empty_if_region_on_edge argument.
11663
11664 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
11665
11666         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
11667         (STACK_CHECK_PROTECT): Likewise.
11668         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
11669         (STACK_CHECK_PROTECT): Likewise.
11670         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
11671         (STACK_CHECK_PROTECT): Likewise.
11672         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
11673         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11674         (STACK_CHECK_PROTECT): Likewise.
11675
11676 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
11677
11678         PR rtl-optimization/69307
11679         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
11680         registers in modes that span more than one register.
11681
11682 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
11683
11684         PR target/69614
11685         * lra-constraints.c (delete_move_and_clobber): New.
11686         (remove_inheritance_pseudos): Use it.
11687
11688 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
11689
11690         PR ada/70017
11691         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
11692         the libcall is LCT_THROW.
11693         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
11694         for the checking routine.
11695
11696 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11697
11698         PR target/70131
11699         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
11700         optimization if we have direct move.
11701         (roundu32<mode>2_fprs): Likewise.
11702
11703 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
11704
11705         PR target/70123
11706         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
11707         be rematerialized.
11708         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
11709         Arguments swapped.  All callers changed.  Take reg_renumber into
11710         account, and Calculate and compare register ranges for hard regs.
11711
11712 2016-03-11  Jeff Law  <law@redhat.com>
11713
11714         PR tree-optimization/70190
11715         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11716         Handle cases where we can not extract the taken edge, even though we
11717         found a constant value.
11718
11719         PR tree-optimization/64058
11720         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
11721         (num_coalesce_pairs): Move up earlier in file.
11722         (find_coalesce_pair): Initialize the INDEX field for each pair
11723         discovered.
11724         (compare_pairs): No longer sort on the elements in each pair.
11725         Instead break ties with the index of the coalesce pair.
11726
11727 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11728
11729         PR target/70002
11730         * config/aarch64/aarch64-protos.h
11731         (aarch64_save_restore_target_globals): New prototype.
11732         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
11733         Call the above when popping pragma.
11734         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
11735         New function.
11736         (aarch64_set_current_function): Rewrite using the above.
11737
11738 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
11739
11740         PR tree-optimization/70177
11741         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
11742         (extract_ops_from_tree): ... this.  In the 2 argument
11743         overload remove _1 suffix.
11744         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
11745         (extract_ops_from_tree): ... this.
11746         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
11747         Adjust callers.
11748         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
11749         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
11750         extract_ops_from_tree instead of 2 operand one.
11751
11752 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
11753
11754         PR tree-optimization/70013
11755         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
11756         for constant-pool entries.
11757
11758 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
11759
11760         PR rtl-optimization/70174
11761         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
11762         followed by gen_lowpart on force_reg instead of just gen_lowpart.
11763
11764         PR tree-optimization/70169
11765         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
11766         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
11767         for unknown codes.
11768
11769 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
11770             Jakub Jelinek  <jakub@redhat.com>
11771
11772         PR target/70160
11773         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
11774         of uninitialized values.
11775
11776 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11777
11778         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
11779         define_expand.
11780         ("*trunctddd2"): New pattern definition.
11781         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
11782         TD->DD truncation.
11783
11784 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11785
11786         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
11787         definitions for BFP and DFP rounding modes.
11788         ("fixuns_truncdddi2", "fixuns_trunctddi2")
11789         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
11790         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
11791         ("fix_trunctf<mode>2"): Use the new constants instead of magic
11792         numbers.
11793
11794 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11795
11796         * config/s390/constraints.md: Adjust comment.
11797         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
11798         s390_decompose_addrstyle_without_index.
11799         * config/s390/predicates.md (shift_count_or_setmem_operand):
11800         Rename to setmem_operand.
11801         * config/s390/s390-protos.h
11802         (s390_decompose_shift_count): Rename to
11803         s390_decompose_addrstyle_without_index.
11804         * config/s390/s390.c (s390_decompose_shift_count)
11805         (s390_mem_constraint, print_shift_count_operand)
11806         (print_operand_address, print_operand): Rename
11807         s390_decompose_shift_count to
11808         s390_decompose_addrstyle_without_index and rename
11809         print_shift_count_operand to print_addrstyle_operand troughout the
11810         file.
11811         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
11812         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
11813         Rename shift_count_or_setmem_operand to setmem_operand.
11814         * config/s390/vx-builtins.md ("vec_insert<mode>")
11815         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
11816         nonmemory_operand.
11817
11818 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11819
11820         PR target/70168
11821         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
11822         Handle overlapping retval and newval.
11823
11824 2016-03-10  Nick Clifton  <nickc@redhat.com>
11825
11826         PR target/7044
11827         * config/aarch64/aarch64.c
11828         (aarch64_override_options_after_change_1): When forcing
11829         flag_omit_frame_pointer to be true, use a special value that can
11830         be detected if this function is called again, thus preventing
11831         flag_omit_leaf_frame_pointer from being forced to be false.
11832
11833 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11834
11835         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11836         Set x_flag_omit_leaf_frame_pointer when handling
11837         -momit-leaf-frame-pointer.
11838
11839 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11840
11841         PR lto/69589
11842         * cgraph.c (cgraph_node::dump): Dump split_part and
11843         indirect_call_target.
11844         * cgraph.h (cgraph_node): Add indirect_call_target flag.
11845         * ipa.c (has_addr_references_p): Cleanup.
11846         (is_indirect_call_target_p): New.
11847         (walk_polymorphic_call_targets): Do not mark virtuals that may be
11848         called indirectly as local.
11849         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
11850
11851 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11852
11853         PR ipa/69630
11854         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
11855         on cxa_pure_virtual.
11856
11857 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11858
11859         PR lto/69589
11860         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
11861
11862 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11863
11864         PR lto/69589
11865         * tree.c (need_assembler_name_p): Only record main variant type names.
11866
11867 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
11868
11869         PR target/70113.
11870         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
11871         Always define to 0 or 1.
11872         (TARGET_FIX_ERR_A53_843419): New macro.
11873         * config/aarch64/aarch64-elf-raw.h
11874         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
11875         * config/aarch64/aarch64-linux.h: Likewise.
11876         * config/aarch64/aarch64.c
11877         (aarch64_override_options_after_change_1): Do not default
11878         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
11879         843419 is on.
11880         (aarch64_attributes): Handle fix-cortex-a53-843419.
11881         (aarch64_can_inline_p): Likewise.
11882         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
11883
11884 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
11885         Jakub Jelinek <jakub@redhat.com>
11886
11887         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
11888         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
11889         DECL_COMMONS if flag_unconstrained_commons is set.
11890         * tree-dfa.c (get_ref_base_and_extent): Likewise.
11891         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
11892         (funconstrained-commons): Document.
11893
11894 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
11895
11896         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
11897         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
11898
11899 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
11900
11901         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
11902         has a proper number of elements.
11903
11904 2016-03-10  Alan Modra  <amodra@gmail.com>
11905
11906         PR rtl-optimization/69195
11907         PR rtl-optimization/47992
11908         * ira.c (recorded_label_ref): Delete.
11909         (update_equiv_regs): Return void.
11910         (indirect_jump_optimize): New function.
11911         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
11912         before regstat_compute_ri.  Don't rebuild_jump_labels here.
11913         Delete update_regstat.
11914
11915 2016-03-10  Richard Biener  <rguenther@suse.de>
11916
11917         PR tree-optimization/70128
11918         * tree-ssa-structalias.c (set_uids_in_ptset): Set
11919         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
11920
11921 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
11922
11923         PR tree-optimization/70152
11924         * tree-sra.c (replace_removed_params_ssa_names): Copy over
11925         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
11926
11927         PR target/70086
11928         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
11929         instead of gen_sse2_loadlpd.
11930         * config/i386/sse.md (*vec_concatv2df): Rename to...
11931         (vec_concatv2df): ... this.
11932
11933         PR tree-optimization/70127
11934         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
11935
11936 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
11937
11938         PR c/68473
11939         PR c++/70105
11940         * diagnostic-show-locus.c (compatible_locations_p): New function.
11941         (layout::layout): Sanitize ranges using compatible_locations_p.
11942
11943 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
11944
11945         PR c/68473
11946         PR c++/70105
11947         * diagnostic-show-locus.c (layout_range::layout_range): Replace
11948         location_range param with three const expanded_locations * and a
11949         bool.
11950         (layout::layout): Replace call to
11951         rich_location::lazily_expand_location with get_expanded_location.
11952         Extract the range and perform location expansion here, passing
11953         the results to the layout_range ctor.
11954         * diagnostic.c (source_range::debug): Delete.
11955         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
11956         of rich_location::get_expanded_location.
11957         * gcc-rich-location.c (get_range_for_expr): Delete.
11958         (gcc_rich_location::add_expr): Reimplement to avoid the
11959         rich_location::add_range overload that took a location_range,
11960         passing a location_t instead.
11961
11962 2016-03-09  Richard Biener  <rguenther@suse.de>
11963         Jakub Jelinek  <jakub@redhat.com>
11964
11965         PR tree-optimization/70138
11966         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
11967         Also skip vect_double_reduction_def.
11968
11969 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
11970
11971         PR target/70049
11972         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
11973         if the operand is "m".
11974
11975 2016-03-09  Nathan Sidwell  <nathan@acm.org>
11976
11977         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
11978
11979 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11980
11981         * config/i386/i386.c (processor_target_table): Fix cost table
11982         intialization order for znver1.
11983
11984 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
11985
11986         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
11987         - becuase -> because.
11988         * ipa-reference.c (ignore_module_statics): Likewise.
11989         * cgraph.c (cgraph_node::get_body): Likewise.
11990         * ipa-inline.c (early_inliner): Likewise.
11991         * ipa-devirt.c (types_same_for_odr): Likewise.
11992         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
11993         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
11994
11995 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11996
11997         * tree-ssa-math-opts.c: Fix typo in comment.
11998
11999 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
12000
12001         PR target/70110
12002         * config/i386/i386.c (scalar_chain::make_vector_copies,
12003         scalar_chain::convert_reg): Call end_sequence in between
12004         get_insns and emit_conversion_insns rather than after both
12005         calls.
12006
12007 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
12008
12009         PR target/70064
12010         * config/i386/i386.h (machine_function): Add
12011         pc_thunk_call_expanded flag.
12012         (ix86_pc_thunk_call_expanded): New define.
12013         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
12014         (*set_got): Rename insn pattern from set_got.
12015         (*set_got_labelled): Rename inst pattern from set_got_labelled.
12016         * config/i386/i386.c (ix86_compute_frame_layout): Use
12017         ix86_pc_thunk_call_expanded to prevent red-zone.
12018
12019 2016-03-07  Martin Jambor  <mjambor@suse.cz>
12020
12021         * hsa.h (hsa_get_ctor_statements): Declare.
12022         (hsa_get_dtor_statements): Likewise.
12023         (hsa_get_kernel_dispatch_type): Likewise.
12024         * hsa.c (hsa_get_ctor_statements): New function.
12025         (hsa_get_dtor_statements): Likewise.
12026         (hsa_get_kernel_dispatch_type): Likewise.
12027         * hsa-brig.c (hsa_cdtor_statements): Removed.
12028         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
12029         hsa_get_dtor_statements.
12030         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
12031         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
12032
12033 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
12034
12035         * config/arm/arm-cores.def (cortex-r8): New.
12036         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
12037         * config/arm/arm-tune.md: Likewise.
12038         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
12039
12040 2016-03-07  Martin Sebor  <msebor@redhat.com>
12041
12042         PR rtl-optimization/19705
12043         * doc/invoke.texi (Options That Control Optimization): Clarify
12044         -fno-branch-count-reg.
12045
12046 2016-02-26  Richard Biener  <rguenther@suse.de>
12047             Jeff Law  <law@redhat.com>
12048
12049         PR tree-optimization/69740
12050         * cfghooks.c (remove_edge): Request loop fixups if we delete
12051         an edge that might turn an irreducible loop into a natural
12052         loop.
12053         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
12054         Move after definition of loops_state_clear.
12055
12056 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
12057
12058         PR rtl-optimization/69052
12059         * rtlanal.c (commutative_operand_precedence): Set higher precedence
12060         to CONST_WIDE_INT.
12061
12062 2016-03-07  Tom de Vries  <tom@codesourcery.com>
12063
12064         PR tree-optimization/70116
12065         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
12066         is_tm_ending stmts and ubsan/asan internal functions.
12067         (find_duplicate): Use it.  Don't test is_tm_ending here.
12068
12069 2016-03-07  Richard Biener  <rguenther@suse.de>
12070
12071         PR tree-optimization/70115
12072         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
12073         (propagate_constants_for_unrolling): Use replace_uses_by.
12074
12075 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
12076
12077         PR middle-end/69916
12078         * omp-low.c (struct oacc_loop): Add ifns.
12079         (new_oacc_loop_raw): Initialize it.
12080         (finish_oacc_loop): Clear mask & flags if no ifns.
12081         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
12082         (oacc_loop_xform_loop): Add ifns arg & adjust.
12083         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
12084
12085 2016-03-07  Richard Henderson  <rth@redhat.com>
12086
12087         PR rtl-opt/70061
12088         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
12089         (insert_value_copy_on_edge): Likewise.
12090
12091 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12092
12093         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
12094
12095 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12096
12097         PR target/62281
12098         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
12099
12100 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12101
12102         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
12103
12104 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12105
12106         Fix sseimul type attribute.
12107         * config/i386/znver1.md
12108         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
12109         znver1_sseimul_avx256_load) : Fix the type attribute.
12110         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
12111         pipe usage and latency.
12112
12113 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
12114
12115         PR c++/70084
12116         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
12117         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
12118         to the right type.
12119
12120 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12121
12122         PR c/69973
12123         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
12124
12125         PR rtl-optimization/69941
12126         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
12127         the reg share its mode.
12128
12129 2016-03-04  Jeff Law  <law@redhat.com>
12130
12131         PR tree-optimization/69196
12132         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12133         If the both SSA_NAMEs are anonymous, then consider them unassociated
12134         and include the PHI in the statement count.
12135
12136 2016-03-05  Tom de Vries  <tom@codesourcery.com>
12137
12138         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
12139         construct in oacc routine.  Check for oacc region in oacc routine.
12140
12141 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12142
12143         PR target/70062
12144         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
12145         2016-02-22 changes, instead don't recurse if RECUR is already true.
12146         Don't change *dynamic_check if RECUR.  Adjust recursive caller
12147         to pass true to the new argument.
12148         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
12149
12150         PR target/70059
12151         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
12152         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
12153         fixes.
12154         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
12155
12156 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
12157
12158         PR rtl-optimization/57676
12159         * lra-assigns.c (lra_assign): Guard test for maximum iterations
12160         with flag_checking.
12161
12162 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
12163
12164         * tree-vect-patterns.c (search_type_for_mask): Handle
12165         comparison of booleans.
12166
12167 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
12168
12169         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
12170         Fix @xref usage.
12171
12172         PR debug/69947
12173         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
12174         all other ops that have dw_val_class_die_ref operands,
12175         and DW_OP_GNU_entry_value.
12176
12177 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12178
12179         PR rtl-optimization/69904
12180         * config/arm/arm.c (arm_cannot_copy_insn_p):
12181         Return true for load-exclusive instructions.
12182
12183 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
12184
12185         PR target/70021
12186         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
12187         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
12188         the pattern no matter if it is used just by non-pattern, pattern
12189         or mix thereof.
12190         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
12191         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12192         oprnd1 def_stmt is in pattern, don't look through it.
12193
12194 2016-03-03  Marek Polacek  <polacek@redhat.com>
12195
12196         PR middle-end/70050
12197         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
12198
12199 2016-03-03  Martin Liska  <mliska@suse.cz>
12200
12201         PR tree-optimization/70043
12202         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
12203         previous statement if we see a debug statement.
12204
12205 2016-03-03  Richard Biener  <rguenther@suse.de>
12206
12207         PR tree-optimization/55936
12208         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
12209         parameter and guard unsafe equivalence use.
12210         (vrp_evaluate_conditional_warnv_with_ops): Always use
12211         safe equivalences but not via the quadratic compare_names
12212         helper.
12213
12214 2016-03-03  Michael Collison  <michael.collison@linaro.org>
12215
12216         PR target/70014
12217         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
12218         for operand 1 to s_register_operand. Change predicate for operand
12219         2 to arm_not_immediate_operand.
12220
12221 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
12222
12223         * doc/tm.texi: Regenerated.
12224
12225 2016-03-02  Richard Henderson  <rth@redhat.com>
12226
12227         PR rtl-opt/67145
12228         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
12229         simplification when all args are positive non-fixed registers.
12230
12231 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12232
12233         * target.def (lra_p): Specify that new ports should use LRA.
12234
12235 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12236
12237         PR libgomp/69555
12238         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
12239         gimplify_type_sizes the type they refer to.
12240         (omp_notice_variable): Handle reference vars to VLAs.
12241         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
12242         reference to VLA decls in the second pass instead of first pass.
12243
12244 2016-03-02  Tom de Vries  <tom@codesourcery.com>
12245
12246         PR tree-optimization/68659
12247         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
12248         new_expr == NULL_TREE.
12249         (get_new_name): Handle ADDR_EXPR.
12250
12251 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
12252
12253         PR rtl-optimization/69052
12254         * loop-invariant.c (canonicalize_address): New function.
12255         (inv_can_prop_to_addr_use): Check validity of address expression
12256         which is canonicalized by above function.
12257
12258 2016-03-02  Alan Modra  <amodra@gmail.com>
12259
12260         PR ipa/69990
12261         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
12262         larger alignment.
12263
12264 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
12265
12266         PR target/70028
12267         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
12268         (*movhi_internal): Put mask moves from and to memory separately
12269         from moves from/to GPRs.
12270
12271 2016-03-02  Richard Biener  <rguenther@suse.de>
12272
12273         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
12274         GENERIC expressions in GIMPLE.
12275
12276 2016-03-02  Richard Biener  <rguenther@suse.de>
12277
12278         * config/i386/i386.c (type_natural_mode): Fix typo.
12279
12280 2016-03-02  Nick Clifton  <nickc@redhat.com>
12281
12282         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
12283
12284 2016-03-02  Richard Biener  <rguenther@suse.de>
12285             Uros Bizjak  <ubizjak@gmail.com>
12286
12287         PR target/67278
12288         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
12289
12290 2016-03-02  Richard Biener  <rguenther@suse.de>
12291
12292         PR middle-end/67278
12293         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
12294
12295 2016-03-02  Marek Polacek  <polacek@redhat.com>
12296
12297         PR c/67854
12298         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
12299         "is promoted to" warning.
12300
12301 2016-03-01  DJ Delorie  <dj@redhat.com>
12302
12303         * config.gcc: Deprecate mep-*.
12304
12305 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
12306
12307         PR middle-end/70025
12308         * lra-constraints.c (regno_val_use_in): New.
12309         (match_reload): Use it instead of regno_use_in.
12310
12311 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
12312
12313         PR rtl-optimization/70007
12314         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
12315         references present in REG_EQUAL notes attached to non-SET patterns.
12316
12317 2016-03-01  Jeff Law  <law@redhat.com>
12318
12319         PR tree-optimization/69196
12320         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12321         Appropriately clamp the number of statements to copy when the
12322         thread path does not traverse a loop backedge.
12323
12324         PR tree-optimization/69196
12325         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12326         Do count some PHIs in the thread path against the insn count.  Decrease
12327         final statement count by one as the control statement in the last
12328         block will get removed.  Remove special cased code for handling PHIs
12329         in the last block.
12330
12331 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
12332
12333         PR target/70027
12334         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
12335         asm dialect alternatives to explicit GOTPCREL calls.
12336
12337 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
12338
12339         PR ada/70017
12340         * ira.c (do_reload): Issue warning for generic stack checking here...
12341         * reload1.c (reload): ...instead of here and streamline it.
12342
12343 2016-03-01  Nick Clifton  <nickc@redhat.com>
12344
12345         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
12346
12347 2016-03-01  Richard Biener  <rguenther@suse.de>
12348
12349         PR tree-optimization/69983
12350         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
12351         types and fall back to operand_equal_p.
12352
12353 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12354
12355         Revert
12356         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12357
12358         * config/s390/constraints.md ("jm8"): New constraint.
12359         * config/s390/predicates.md ("const_int_8bitset_operand"): New
12360         predicate.
12361         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
12362         into ...
12363         ("*setmem_long<setmem_and>"): New pattern.
12364         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
12365         into ...
12366         ("*setmem_long_31z<setmem_and>"): New pattern.
12367         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
12368         New substitution rules with the required attributes.
12369
12370
12371 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12372
12373         Revert
12374         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12375
12376         * gensupport.c (process_substs_on_one_elem): Split loop to
12377         complete mark_operands_used_in_match_dup on all expressions in the
12378         vector first.
12379         (adjust_operands_numbers): Inline into process_substs_on_one_elem
12380         and remove function.
12381
12382 2016-03-01  Richard Biener  <rguenther@suse.de>
12383
12384         PR middle-end/70022
12385         * fold-const.c (fold_indirect_ref_1): Fix range checking for
12386         vector BIT_FIELD_REF extract.
12387
12388 2016-03-01  Richard Biener  <rguenther@suse.de>
12389
12390         PR tree-optimization/69994
12391         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
12392
12393 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
12394
12395         PR tree-optimization/69956
12396         * tree-vect-stmts.c (supportable_widening_operation): Support
12397         multi-step conversion of boolean vectors.
12398         (supportable_narrowing_operation): Likewise.
12399
12400 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12401
12402         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
12403         anymore.
12404
12405 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12406
12407         * config/s390/subst.md (DSI_VI): New mode iterator.
12408         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
12409         * config/s390/vector.md ("vec_set<mode>"): Move expander before
12410         the insn definition.
12411         ("*vec_set<mode>"): Change predicate and add alternative to
12412         support only either register or const_int operands as element
12413         selector.
12414         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
12415         operands.
12416         ("vec_extract<mode>"): New expander.
12417         ("*vec_extract<mode>"): New insn definition supporting reg and
12418         const_int element selectors.
12419         ("*vec_extract<mode>_plus"): New insn definition supporting
12420         reg+const_int element selectors.
12421         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
12422         following expander+insn definition.
12423         ("<vec_shifts_name><mode>3"): New expander.
12424         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
12425
12426 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12427
12428         * config/s390/s390.md ("*tabort_1"): Change predicate to
12429         nonmemory_operand.  Add a second alternative to cover
12430         register as well as const int operands.
12431         ("*tabort_1_plus"): New pattern definition.
12432
12433 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12434
12435         * config/s390/s390.md ("*ashrdi3_cc_31")
12436         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
12437         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
12438         Merge insn definitions into ...
12439         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
12440         New pattern definition.
12441         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
12442         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
12443         ("*ashr<mode>3_and"): Merge insn definitions into ...
12444         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
12445         New pattern definition.
12446         * config/s390/subst.md ("addr_style_op_cc_subst")
12447         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
12448         substitutions patterns plus attributes.
12449         Add ashiftrt to SUBST iterator.
12450
12451 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12452
12453         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
12454         op2 to nonmemory_operand.
12455         ("*<shift>di3_31", "*<shift>di3_31_and"):
12456         Merge into single pattern definition ...
12457         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
12458         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
12459         pattern definition ...
12460         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
12461         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
12462         iterator.
12463
12464 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12465
12466         * config/s390/predicates.md (const_int_6bitset_operand): New
12467         predicate.
12468         * config/s390/s390.md: Include subst.md.
12469         ("rotl<mode>3"): New expander.
12470         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
12471         ...
12472         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
12473         * config/s390/subst.md: New file.
12474
12475 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12476
12477         * config/s390/s390.md ("op_type", "atype", "length" attributes):
12478         Remove RRR type.  It doesn't really exist.
12479         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
12480         attributes.
12481         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
12482         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
12483         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
12484         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
12485         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
12486         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
12487         `enabled' attribute.
12488
12489 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12490
12491         * gensupport.c (process_substs_on_one_elem): Split loop to
12492         complete mark_operands_used_in_match_dup on all expressions in the
12493         vector first.
12494         (adjust_operands_numbers): Inline into process_substs_on_one_elem
12495         and remove function.
12496
12497 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12498
12499         PR target/69706
12500         * config/sparc/sparc.c (NWORDS_UP): Rename to...
12501         (CEIL_NWORDS): ...this.  Use CEIL macro.
12502         (compute_fp_layout): Adjust to above renaming.
12503         (function_arg_union_value): Likewise.
12504         (sparc_arg_partial_bytes): Likewise.
12505         (sparc_function_arg_advance): Likewise.
12506
12507 2016-02-29  Jeff Law  <law@redhat.com>
12508
12509         PR tree-optimization/70005
12510         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
12511         where an object with a boolean range is compared against a value
12512         outside [0..1].
12513
12514         PR tree-optimization/69999
12515         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
12516         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
12517         loop cleanups.
12518
12519 2016-02-29  Richard Biener  <rguenther@suse.de>
12520
12521         PR tree-optimization/69994
12522         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
12523         (get_unary_op): Look through nop conversions.
12524         (ops_equal_values_p): New function, look for equality diregarding
12525         nop conversions.
12526         (eliminate_plus_minus_pair): Use ops_equal_values_p
12527         (repropagate_negates): Do not use get_unary_op here.
12528
12529 2016-02-29  Martin Liska  <mliska@suse.cz>
12530
12531         * system.h: Poison ENABLE_CHECKING macro.
12532
12533 2016-02-29  Martin Liska  <mliska@suse.cz>
12534
12535         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
12536         is presented in dump flags.
12537         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
12538         (hsa_regalloc): Likewise.
12539
12540 2016-02-19  Richard Biener  <rguenther@suse.de>
12541
12542         PR tree-optimization/69980
12543         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
12544         permutation of those we need to keep.
12545
12546 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12547
12548         PR target/69706
12549         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
12550         (NWORDS_UP): ...this
12551         (init_cumulative_args): Minor tweaks.
12552         (sparc_promote_function_mode): Likewise.
12553         (scan_record_type): Delete.
12554         (traverse_record_type): New function template.
12555         (classify_data_t): New structure type.
12556         (classify_registers): New inline function.
12557         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
12558         exhausted.  Instantiate traverse_record_type on classify_registers and
12559         deal with the case of a structure passed in slot #15 with no FP field
12560         in the first word.
12561         (assign_data_t): New structure type.
12562         (compute_int_layout): New static function.
12563         (compute_fp_layout): Likewise.
12564         (count_registers): New inline function.
12565         (assign_int_registers): New static function.
12566         (assign_fp_registers): Likewise.
12567         (assign_registers): New inline function.
12568         (function_arg_record_value_1): Delete.
12569         (function_arg_record_value_2): Likewise.
12570         (function_arg_record_value_3): Likewise.
12571         (function_arg_record_value): Adjust to above changes.  Instantiate
12572         traverse_record_type on count_registers to first count the number of
12573         registers to be used and then on assign_registers to assign them.
12574         (function_arg_union_value): Adjust to above renaming.
12575         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
12576         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
12577         case of a structure passed in slot #15
12578         (sparc_function_arg_advance): Likewise.
12579         (function_arg_padding): Minor tweak.
12580
12581 2016-02-29  Richard Biener  <rguenther@suse.de>
12582
12583         PR tree-optimization/69720
12584         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
12585         the adjustment_def path for possibly vectorized defs.
12586         (vect_create_epilog_for_reduction): Handle vectorized initial
12587         defs properly.
12588
12589 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
12590
12591         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
12592
12593 2016-02-27  Jeff Law  <law@redhat.com>
12594
12595         Revert
12596         2016-02-26  Richard Biener  <rguenther@suse.de>
12597                     Jeff Law  <law@redhat.com>
12598
12599         PR tree-optimization/69740
12600         * cfghooks.c (remove_edge): Request loop fixups if we delete
12601         an edge that might turn an irreducible loop into a natural
12602         loop.
12603
12604 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
12605
12606         PR rtl-optimization/69896
12607         * tree-vect-generic.c (get_compute_type): Avoid single element
12608         vector types.
12609
12610 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
12611
12612         Rename the AArch64 tuning option and related functions to enable the
12613         Newton series for the reciprocal square root to reflect its
12614         approximative characteristic.
12615
12616         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
12617         function to "aarch64_emit_approx_rsqrt".
12618         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
12619         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
12620         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
12621         (xgene1_tunings): Likewise.
12622         (use_rsqrt_p): Likewise.
12623         (aarch64_emit_swrsqrt): Use new function name.
12624         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
12625         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
12626         text explaining this option.
12627         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
12628
12629 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
12630
12631         PR target/69969
12632         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12633         complain about -mallow-movmisalign without -mvsx if
12634         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
12635
12636 2016-02-26  Joel Sherrill  <joel@rtems.org>
12637
12638         * config.gcc: Add x86_64-*-rtems*.
12639         * config/i386/rtems-64.h: New file.
12640
12641 2016-02-26  Joel Sherrill  <joel@rtems.org>
12642
12643         * config.gcc: Add aarch64-*-rtems*.
12644         * config/aarch64/rtems.h: New file.
12645
12646 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
12647
12648         PR target/69946
12649         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
12650         shift amount using %h.  Add comment.
12651
12652 2016-02-26  Richard Biener  <rguenther@suse.de>
12653             Jeff Law  <law@redhat.com>
12654
12655         PR tree-optimization/69740
12656         * cfghooks.c (remove_edge): Request loop fixups if we delete
12657         an edge that might turn an irreducible loop into a natural
12658         loop.
12659
12660 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12661
12662         PR middle-end/69920
12663         * tree-sra.c (sra_modify_assign): Do not remove loads of
12664         uninitialized aggregates to SSA_NAMEs.
12665
12666 2016-02-26  Richard Henderson  <rth@redhat.com>
12667
12668         PR target/69709
12669         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
12670         pseudo in case the target rtx matches the source of the left
12671         shift.
12672
12673 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12674
12675         PR hsa/69568
12676         * hsa.h (hsa_type_packed_p): Declare.
12677         * hsa.c (hsa_type_packed_p): New function.
12678         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
12679         loads.
12680         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
12681         * hsa-brig.c (emit_basic_insn): Likewise.
12682
12683 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12684
12685         pr hsa/69674
12686         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
12687         pointers.
12688         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
12689
12690 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12691
12692         * hsa.h (is_a_helper): New overload for hsa_op_immed for
12693         hsa_op_with_type operands.
12694         (hsa_unsigned_type_for_type): Declare.
12695         * hsa.c (hsa_unsigned_type_for_type): New function.
12696         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
12697         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
12698         the finalizer.  Do not emit extra move.
12699
12700 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12701
12702         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
12703         atomic operations in private segment.
12704
12705 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12706
12707         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
12708         statements to wi->info.  Also disallow omp simd constructs.
12709         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
12710         for not gridifying.  Dump special string for omp_for.
12711
12712 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12713
12714         PR target/69245
12715         * config/aarch64/aarch64.c (aarch64_set_current_function):
12716         Save/restore target globals when switching to
12717         target_option_default_node.
12718
12719 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12720
12721         PR target/69613
12722         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
12723         Return 0 if !SHIFT_COUNT_TRUNCATED.
12724
12725 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
12726             Eric Botcazou  <ebotcazou@adacore.com>
12727
12728         PR rtl-optimization/69891
12729         * dse.c (scan_insn): If we can't figure out memset arguments
12730         or they are non-constant, call clear_rhs_from_active_local_stores.
12731
12732 2016-02-26  Martin Liska  <mliska@suse.cz>
12733
12734         * doc/extend.texi: Mention clog10, clog10f an clog10l
12735         in Builtins section.
12736
12737 2016-02-26  Martin Liska  <mliska@suse.cz>
12738
12739         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
12740         CHECKING_P.
12741         (resolve_args_picking_1): Likewise.
12742         * dwarf2out.h (struct GTY): Likewise.
12743
12744 2016-02-26  Martin Liska  <mliska@suse.cz>
12745
12746         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
12747         with flag_checking.
12748         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
12749
12750 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
12751             Martin Liska  <mliska@suse.cz>
12752
12753         * doc/install.texi: Mention --enable-valgrind-annotations.
12754
12755 2016-02-26  Richard Biener  <rguenther@suse.de>
12756
12757         PR tree-optimization/69551
12758         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
12759         looking through aliases adjust DECL_PT_UID to refer to the
12760         ultimate alias target.
12761
12762 2016-02-25  Martin Liska  <mliska@suse.cz>
12763
12764         PR middle-end/69919
12765         * alloc-pool.c (after_memory_report): New variable.
12766         * alloc-pool.h (base_pool_allocator ::release): Do not use
12767         the infrastructure if after_memory_report.
12768         * toplev.c (toplev::main): Mark after memory report.
12769
12770 2016-02-25  Richard Biener  <rguenther@suse.de>
12771
12772         PR tree-optimization/48795
12773         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
12774
12775 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
12776
12777         PR driver/68463
12778         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
12779         offloading is enabled and -fopenacc or -fopenmp is specified.
12780         (CRTOFFLOADEND): Likewise.
12781         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
12782         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
12783         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
12784         (offload_objects_file_name): New static var.
12785         (tool_cleanup): Remove offload_objects_file_name file.
12786         (find_offloadbeginend): Replace with ...
12787         (find_crtoffloadtable): ... this.
12788         (run_gcc): Remove offload_argc and offload_argv.
12789         Get offload_objects_file_name from -foffload-objects=... option.
12790         Read names of object files with offload from this file, pass them to
12791         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
12792         don't pass offloadbegin and offloadend to the linker.  Don't pass
12793         offload non-LTO files to the linker, because now they're not claimed.
12794
12795 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
12796
12797         PR ipa/69630
12798         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
12799         on builtin_unreachable.
12800
12801 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
12802
12803         PR rtl-optimization/69896
12804         * regcprop.c: Include cfgrtl.h.
12805         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
12806         than remembered mode, either delete it (if noop_move_p), or
12807         treat like copy_p but not noop_p instruction.
12808
12809 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
12810
12811         PR debug/69705
12812         * dwarf2out.c (gen_variable_die): Work around buggy LTO
12813         - allow NULL decl for Fortran DW_TAG_common_block variables.
12814
12815 2016-02-24  Jason Merrill  <jason@redhat.com>
12816
12817         * common.opt (flifetime-dse): Add -flifetime-dse=1.
12818
12819 2016-02-24  Richard Biener  <rguenther@suse.de>
12820             Jakub Jelinek  <jakub@redhat.com>
12821
12822         PR middle-end/69760
12823         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
12824         conditionally executed ops to well-defined overflow behavior.
12825
12826 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
12827
12828         PR middle-end/69915
12829         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
12830         elements.
12831
12832 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12833
12834         PR rtl-optimization/69886
12835         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
12836         argument.  Use it when checking validity of set instructions.
12837         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
12838         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
12839         callsite.
12840         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
12841         * store-motion.c (find_moveable_store): Update
12842         can_assign_to_reg_without_clobbers_p callsite.
12843
12844 2016-02-24  Richard Biener  <rguenther@suse.de>
12845
12846         PR middle-end/68963
12847         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
12848         bogus check.
12849         (record_nonwrapping_iv): Do not fall back to the low/high bound
12850         for non-constant IV bases if the stmt is not always executed.
12851
12852 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12853
12854         * config/arm/arm-cores.def (cortex-a32): New entry.
12855         * config/arm/arm-tables.opt: Regenerate.
12856         * config/arm/arm-tune.md: Regenerate.
12857         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
12858         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
12859         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
12860         for -mcpu and -mtune.
12861
12862 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12863
12864         PR target/69875
12865         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
12866         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
12867         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
12868         (atomic_loaddi_1): Delete.
12869         (atomic_loaddi): Rewrite expander using the above changes.
12870
12871 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
12872
12873         PR c/69918
12874         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
12875         2 to 3.
12876
12877 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
12878             Richard Biener  <rguenth@suse.de>
12879
12880         PR middle-end/69909
12881         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
12882         set_mem_attributes if tem is SSA_NAME which got expanded
12883         as a MEM.
12884
12885 2016-02-24  Richard Biener  <rguenther@suse.de>
12886
12887         PR tree-optimization/69907
12888         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
12889         end of permutations for BB vectorization.
12890
12891 2016-02-24  Christian Bruel  <christian.bruel@st.com>
12892
12893         * config/arm/arm-c.c (arm_option_override): Initialize
12894         target_option_current_node.
12895         * config/arm/arm.c (arm_pragma_target_parse): Replace
12896         build_target_option_node call by target_option_current_node.
12897         Set target_option_current_node.
12898         Fix comments.
12899
12900 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
12901
12902         PR target/69810
12903         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
12904         define_insn_and_split to define_insn.
12905         (zero_extendqi<mode>2_dot2): Same.
12906         (extendqi<mode>2_dot): Same.
12907         (extendqi<mode>2_dot2): Same.
12908
12909 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
12910
12911         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
12912         and add bypass for AES{D,E} and AESMC pairs.
12913         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
12914         and AESMC pairs.
12915
12916 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
12917
12918         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
12919         series for reciprocal square root in Exynos M1.
12920
12921 2016-02-23  Martin Sebor  <msebor@redhat.com>
12922
12923         PR c/69759
12924         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
12925         __builtin_alloca_with_align.
12926
12927 2016-02-23  Richard Henderson  <rth@redhat.com>
12928
12929         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
12930         (ix86_register_pragmas): Remove __seg_tls.
12931         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
12932         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
12933         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
12934         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
12935         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
12936         * doc/extend.texi (__seg_tls): Remove item.
12937
12938 2016-02-23  Richard Biener  <rguenther@suse.de>
12939
12940         * alloc-pool.h (struct allocation_object): Make id member
12941         conditional on CHECKING_P again.
12942         (get_instance): Adjust.
12943         (base_pool_allocator): Likewise.
12944
12945 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
12946
12947         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
12948         (parallelize_loops): In OpenACC kernels mode, set n_threads to
12949         zero.
12950         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
12951         flag_openacc.
12952         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
12953
12954 2016-02-23  Richard Biener  <rguenther@suse.de>
12955
12956         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
12957         * bitmap.h (struct bitmap_usage): Likewise.
12958         (bitmap_move): Declare.
12959         * bitmap.c (register_overhead): Take size_t argument.
12960         (bitmap_move): New function.
12961         * df-problems.c (df_rd_transfer_function): Use bitmap_move
12962         to properly account overhead.
12963         * tree.c (free_node): Use tree_size.
12964
12965 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
12966
12967         PR c++/69902
12968         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
12969         when inverting comparison.
12970
12971         PR c/69900
12972         * common.opt (Wunreachable-code): Add Warning flag.
12973
12974 2016-02-23  Mark Wielaard  <mjw@redhat.com>
12975             Jakub Jelinek  <jakub@redhat.com>
12976
12977         PR c/69911
12978         * cgraphunit.c (check_global_declaration): Check main_input_filename
12979         and DECL_SOURCE_FILE are not NULL.
12980
12981 2016-02-23  Martin Jambor  <mjambor@suse.cz>
12982
12983         PR tree-optimization/69666
12984         * tree-sra.c (sra_modify_assign): Do not attempt to create
12985         default_def replacements for unscalarizable regions.
12986
12987 2016-02-20  Mark Wielaard  <mjw@redhat.com>
12988
12989         PR c/28901
12990         * cgraphunit.c (check_global_declaration): Check level of
12991         warn_unused_const_variable and main_input_filename.
12992         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
12993         (-Wunused-variable): For C implies -Wunused-const-variable=1.
12994         (-Wunused-const-variable): Explain levels 1 and 2.
12995
12996 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
12997
12998         PR target/69888
12999         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
13000         identical arguments.  Formatting and spelling fixes.
13001
13002         PR target/69885
13003         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
13004         be specified.
13005
13006         PR target/69894
13007         PR target/69895
13008         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
13009         and m68k-devices.def.
13010         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
13011         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
13012
13013 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13014
13015         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
13016         and HImode registers.
13017
13018 2016-02-22  Richard Biener  <rguenther@suse.de>
13019
13020         PR tree-optimization/69882
13021         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
13022         preserve permutations present because of gaps.
13023         (vect_supported_load_permutation_p): Always continue checking
13024         permutations after vect_attempt_slp_rearrange_stmts.
13025
13026 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
13027
13028         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
13029         min_profitable_estimate, rather than min_profitable_iters.
13030
13031 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
13032
13033         PR target/69885
13034         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
13035         SImode for last match_operand.
13036
13037 2016-02-22  Martin Liska  <mliska@suse.cz>
13038
13039         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
13040         return bitsize - 1 as the return value.
13041
13042 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
13043
13044         PR target/69806
13045         PR target/54089
13046         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
13047         Handle negative shift counts.
13048         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
13049         force_reg on the shift constant.
13050         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
13051         (lshrsi3_d): Handle negative shift counts.
13052
13053 2016-02-22  Richard Biener  <rguenther@suse.de>
13054             Tom de Vries  <tom@codesourcery.com>
13055
13056         * graph.c: Include dumpfile.h.
13057         (print_graph_cfg): Split into three overloads.
13058         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
13059
13060 2016-02-22  Tom de Vries  <tom@codesourcery.com>
13061
13062         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
13063         dump-fn.
13064
13065 2016-02-22  Richard Biener  <rguenther@suse.de>
13066
13067         PR ipa/37448
13068         * ipa-inline-transform.c (inline_call): When not updating
13069         overall summaries adjust self size by the growth estimate.
13070         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
13071         hash-set, do not update overall summaries here.  Renamed from ...
13072         (inline_to_all_callers): ... this which is now wrapping the
13073         above and performing delayed overall summary update.
13074         (early_inline_small_functions): Delay updating of the overall
13075         summary.
13076
13077 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
13078
13079         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
13080         variable.
13081
13082 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13083
13084         PR driver/69805
13085         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
13086         :%* in %:gt() argument.
13087         (greater_than_spec_func): Adjust for expecting only numbers,
13088         if there are more than two numbers, compare the last two.
13089
13090 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
13091
13092         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
13093         -Wnarrowing with -std.
13094
13095 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13096
13097         PR c++/69851
13098         * expr.c (store_field): Don't use bit-field path if exp is
13099         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
13100         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
13101         and the assignment can be performed by bitwise copy.  Formatting
13102         fix.
13103
13104         PR middle-end/69838
13105         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
13106         call copy_reg_eh_region_note_forward on before and/or after sequences
13107         and remove note from insn if it no longer can throw.
13108
13109         PR target/69820
13110         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
13111         if TARGET_AVX512BW.
13112
13113 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13114
13115         * config/s390/vector.md: Add missing commutative operand markers
13116         to the patterns which qualify for one.
13117         * config/s390/vx-builtins.md: Likewise.
13118
13119 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13120
13121         * config/s390/vector.md (VI, VI_QHS): Add single element vector
13122         types to mode iterators.
13123         (vec_double): ... and mode attribute.
13124         * config/s390/vx-builtins.md (non_vec_int): Likewise.
13125
13126 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13127
13128         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
13129         Change the predicate of op2 from nonimmediate to general and let
13130         reload fix it if necessary.
13131
13132 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13133
13134         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
13135
13136 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13137
13138         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
13139         mode.
13140
13141 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13142
13143         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
13144         * config/s390/s390.c (s390_expand_vec_movstr): New function.
13145         * config/s390/s390.md ("movstr<P:mode>"): Call
13146         s390_expand_vec_movstr.
13147
13148 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13149
13150         * config/s390/s390.md: Add missing output modifier for operand 1
13151         to print it as address properly.
13152
13153 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13154
13155         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
13156         * config/s390/2964.md: New file.
13157         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
13158         of insn grouping attributes depending on the CPU level.
13159         (s390_get_unit_mask): New function.
13160         (s390_sched_score): Remove the OOO from the scheduling macros.
13161         Add loop to calculate a score for the instruction mix.
13162         (s390_sched_reorder): Likewise plus improve debug output.
13163         (s390_sched_variable_issue): Rename macros as above.  Calculate
13164         the unit distances after actually scheduling an insn.  Improve
13165         debug output.
13166         (s390_sched_init): Clear last_scheduled_unit_distance array.
13167         * config/s390/s390.md: Include 2964.md.
13168
13169 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
13170
13171         PR target/69671
13172         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
13173         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
13174         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
13175         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
13176         *avx512f_<code>v8div16qi2_mask_1): New insns.
13177
13178 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13179
13180         PR target/68404
13181         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
13182         2016-02-09 change.
13183
13184         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
13185         earlyclobber from target.  Use wF constraint for fused memory
13186         address.
13187         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
13188
13189 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
13190             Martin Liska  <mliska@suse.cz>
13191
13192         PR sanitizer/69863
13193         * cfgexpand.c (asan_sanitize_stack_p): New function.
13194         (partition_stack_vars): Use the function.
13195         (expand_stack_vars): Likewise.
13196         (defer_stack_allocation): Likewise.
13197         (expand_used_vars): Likewise.
13198
13199 2016-02-18  Richard Biener  <rguenther@suse.de>
13200
13201         PR middle-end/69553
13202         * fold-const.c (operand_equal_p): Properly compare offsets for
13203         IMAGPART_EXPR and ARRAY_REF.
13204
13205 2016-02-18  Nick Clifton  <nickc@redhat.com>
13206
13207         PR target/62254
13208         PR target/69610
13209         * config/arm/arm.c (arm_option_override_internal): Disable
13210         interworking if the target does not support thumb instructions.
13211         (arm_reload_in_hi): Handle the case where a register to register
13212         move needs reloading because there is no simple pattern to handle
13213         it.
13214         (arm_reload_out_hi): Likewise.
13215
13216 2016-02-18  Richard Biener  <rguenther@suse.de>
13217
13218         PR middle-end/69854
13219         * match.pd: Don't use fold_binary or fold_unary for folding
13220         constants.
13221
13222 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
13223
13224         PR c++/69850
13225         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
13226         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
13227         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
13228         warn on gimple_no_warning_p statements.
13229
13230 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
13231
13232         * doc/extend.texi (C++ Attributes): Correct description of
13233         warn_unused type attribute.
13234
13235 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13236
13237         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
13238         correct instruction.
13239
13240 2016-02-17  Richard Biener  <rguenther@suse.de>
13241
13242         PR rtl-optimization/69609
13243         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
13244         (find_traces_1_round): When ending a trace update cached priority
13245         of successors.
13246         (bb_to_key): Use cached priority when available.
13247         (copy_bb): Initialize cached priority.
13248         (reorder_basic_blocks_software_trace_cache): Likewise.
13249
13250 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13251
13252         PR target/69161
13253         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
13254         New predicate.
13255         (aarch64_comparison_operator): Break overly long line into two.
13256         (aarch64_comparison_operation): Likewise.
13257         * config/aarch64/aarch64.md (cstorecc4): Use
13258         aarch64_comparison_operator_mode instead of
13259         aarch64_comparison_operator.
13260         (cstore<mode>4): Likewise.
13261         (aarch64_cstore<mode>): Likewise.
13262         (*cstoresi_insn_uxtw): Likewise.
13263         (cstore<mode>_neg): Likewise.
13264         (*cstoresi_neg_uxtw): Likewise.
13265
13266 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13267
13268         PR target/69161
13269         * config/arm/predicates.md (arm_comparison_operator_mode):
13270         New predicate.
13271         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
13272         instead of arm_comparison_operator.
13273         (*mov_negscc): Likewise.
13274         (*mov_notscc): Likewise.
13275         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
13276         (*thumb2_mov_negscc): Likewise.
13277         (*thumb2_mov_negscc_strict_it): Likewise.
13278         (*thumb2_mov_notscc): Likewise.
13279         (*thumb2_mov_notscc_strict_it): Likewise.
13280
13281 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
13282
13283         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
13284         Add missing return.
13285
13286 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
13287
13288         * config/visium/visium.c (machine_libfunc_index): New enum.
13289         (machine_libfuncs): New structure.
13290         (visium_libfuncs): New static variable.
13291         (TARGET_INIT_LIBFUNCS): Define to...
13292         (visium_init_libfuncs): ...this.  New function.
13293         (expand_block_move_4): Use the appropriate libfunc.
13294         (expand_block_move_2): Likewise.
13295         (expand_block_move_1): Likewise.
13296         (expand_block_set_4): Likewise.
13297         (expand_block_set_2): Likewise.
13298         (expand_block_set_1): Likewise.
13299         (visium_trampoline_init): Likewise.
13300
13301 2016-02-17  Nick Clifton  <nickc@redhat.com>
13302
13303         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
13304         TI's devices.csv file as of March 2016.
13305
13306 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13307
13308         PR Target/48344
13309         * opts-global.c (handle_common_deferred_options): Introduce and
13310         initialize two global variables to remember command-line options
13311         specifying a stack-limiting register.
13312         * opts.h: Add extern declarations of the two new global variables.
13313         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
13314         variable based on the values of the two new global variables.
13315
13316 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13317
13318         PR c/69835
13319         * common.opt (Wnonnull-compare): New warning.
13320         * doc/invoke.texi (-Wnonnull): Remove text about comparison
13321         of arguments against NULL.
13322         (-Wnonnull-compare): Document.
13323         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
13324         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
13325         * passes.def (pass_warn_nonnull_compare): Add.
13326         * gimple-ssa-nonnull-compare.c: New file.
13327
13328 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13329
13330         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
13331         AARCH64_EXTRA_TUNE_RECIP_SQRT.
13332
13333 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13334
13335         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
13336         reciprocal sqrt for -mlow-precision-recip-sqrt.
13337
13338 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13339             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13340
13341         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
13342         always use lane loads to construct non-constant vectors.
13343
13344 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
13345
13346         * config/aarch64/aarch64.md
13347         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
13348         constraints for operand 3.
13349         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
13350
13351 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13352             Richard Biener  <rguenther@suse.de>
13353
13354         PR tree-optimization/69820
13355         * tree-vect-patterns.c (type_conversion_p): Return false if
13356         *orig_type is unsigned single precision or boolean.
13357         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
13358         Formatting fix.
13359
13360 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13361
13362         PR rtl-optimization/69764
13363         PR rtl-optimization/69771
13364         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
13365         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
13366
13367 2016-02-16  Richard Biener  <rguenther@suse.de>
13368
13369         PR tree-optimization/69776
13370         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
13371         sets from caller.
13372         (indirect_refs_may_alias_p): Likewise.
13373         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
13374         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
13375         according to tbaa_p.
13376         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
13377         (optimize_stmt): For redundant store discovery do not allow tbaa.
13378
13379 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
13380
13381         PR tree-optimization/69714
13382         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
13383         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
13384
13385 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
13386
13387         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
13388         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
13389         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
13390         * config/arc/arc.c (arc_init): Check FPU options.
13391         (get_arc_condition_code): Handle new CC_FPU* modes.
13392         (arc_select_cc_mode): Likewise.
13393         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
13394         register pair only. Allow access for ARCv2 accumulator.
13395         (gen_compare_reg): Whenever we have FPU support use FPU compare
13396         instructions.
13397         (arc_reorg): Don't generate brcc insns when FPU compare
13398         instructions are involved.
13399         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
13400         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
13401         floating point emulation.
13402         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
13403         (REVERSE_CONDITION): Add new CC_FPU* modes.
13404         (TARGET_FP_SP_BASE): Define.
13405         (TARGET_FP_DP_BASE): Likewise.
13406         (TARGET_FP_SP_FUSED): Likewise.
13407         (TARGET_FP_DP_FUSED): Likewise.
13408         (TARGET_FP_SP_CONV): Likewise.
13409         (TARGET_FP_DP_CONV): Likewise.
13410         (TARGET_FP_SP_SQRT): Likewise.
13411         (TARGET_FP_DP_SQRT): Likewise.
13412         (TARGET_FP_DP_AX): Likewise.
13413         * config/arc/arc.md (ARCV2_ACC): New constant.
13414         (type): New fpu type attribute.
13415         (SDF): Conditional iterator.
13416         (cstore<mode>, cbranch<mode>): Change expand condition.
13417         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
13418         handles FPU/FPX cases as well.
13419         * config/arc/arc.opt (mfpu): New option.
13420         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
13421         Renamed.
13422         (adddf3, muldf3, subdf3): Removed.
13423         * config/arc/predicates.md (proper_comparison_operator): Recognize
13424         CC_FPU* modes.
13425         * config/arc/fpu.md: New file.
13426         * doc/invoke.texi (ARC Options): Document mfpu option.
13427
13428 2016-02-16  Richard Biener  <rguenther@suse.de>
13429
13430         PR rtl-optimization/69291
13431         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
13432         noce_operand_ok check.
13433
13434 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13435
13436         PR lto/67709
13437         * omp-low.c (simd_clone_create): Remove call to
13438         symtab->call_cgraph_insertion_hooks.
13439
13440 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13441
13442         PR tree-optimization/69802
13443         * tree-ssa-reassoc.c (update_range_test): If op is
13444         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
13445         op == 1 test of precision 1 integral op, otherwise handle
13446         that case as op itself.  Fix up formatting.
13447         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
13448         up formatting.
13449
13450 2016-02-16  Richard Biener  <rguenther@suse.de>
13451
13452         PR tree-optimization/69586
13453         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
13454         types for conversion sources.
13455
13456 2016-02-16  Richard Biener  <rguenther@suse.de>
13457
13458         PR middle-end/69801
13459         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
13460         mask OEP_ADDRESS_OF.
13461
13462 2016-02-16  Alan Modra  <amodra@gmail.com>
13463
13464         PR target/68973
13465         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
13466         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
13467         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
13468         (p8_mtvsrwz): New.
13469         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
13470         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
13471         (p8_fmrgow_<mode>): Likewise.
13472         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
13473         changes.
13474         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
13475         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
13476         to use movdi_internal64.  Remove op0_di.
13477         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
13478
13479 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
13480
13481         Add support for the FCCMP insn types
13482
13483         * config/aarch64/aarch64.md (fccmp): Change insn type.
13484         (fccmpe): Likewise.
13485         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
13486         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
13487         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
13488         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
13489         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
13490         * config/arm/types.md (fccmps): Add new insn type.
13491         (fccmpd): Likewise.
13492
13493 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13494
13495         * alias.c (get_alias_set): Fix a typo in comment.
13496
13497 2016-02-15  Richard Biener  <rguenther@suse.de>
13498
13499         PR tree-optimization/69595
13500         * match.pd: Complete range test simplification to true.
13501
13502 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
13503
13504         PR rtl-optimization/69648
13505         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
13506         pic_offset_table_rtx.
13507
13508         PR rtl-optimization/69752
13509         * ira.c (update_equiv_regs): When looking for more than a single SET,
13510         also take other side effects into account.
13511
13512 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
13513
13514         * config/s390/s390.c (s390_function_profiler): Add a new sequence
13515         for z900+ CPUs in 31-bit mode.
13516
13517 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
13518
13519         * common/config/s390/s390-common.c (s390_supports_split_stack):
13520         New function.
13521         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
13522         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
13523         * config/s390/s390.c (struct machine_function): New field
13524         split_stack_varargs_pointer.
13525         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
13526         in s390_emit_prologue.
13527         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
13528         vararg pointer.
13529         (morestack_ref): New global.
13530         (SPLIT_STACK_AVAILABLE): New macro.
13531         (s390_expand_split_stack_prologue): New function.
13532         (s390_live_on_entry): New function.
13533         (s390_va_start): Use split-stack vararg pointer if appropriate.
13534         (s390_asm_file_end): Emit the split-stack note sections.
13535         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
13536         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
13537         (UNSPECV_SPLIT_STACK_CALL): New unspec.
13538         (UNSPECV_SPLIT_STACK_DATA): New unspec.
13539         (split_stack_prologue): New expand.
13540         (split_stack_space_check): New expand.
13541         (split_stack_data): New insn.
13542         (split_stack_call): New expand.
13543         (split_stack_call_*): New insn.
13544         (split_stack_cond_call): New expand.
13545         (split_stack_cond_call_*): New insn.
13546
13547 2016-02-15  Richard Biener  <rguenther@suse.de>
13548
13549         PR tree-optimization/69783
13550         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13551         Add trivially correct cases.
13552
13553 2016-02-15  Tom de Vries  <tom@codesourcery.com>
13554
13555         PR lto/69655
13556         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
13557         do_force_output.
13558         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
13559
13560 2016-02-15  Richard Biener  <rguenther@suse.de>
13561
13562         PR tree-optimization/69776
13563         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
13564         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
13565         indicate whether we can use TBAA to disambiguate against stores.
13566         Use alias-set zero if not.
13567         (visit_reference_op_store): Do not use TBAA when looking up
13568         redundant stores.
13569         * tree-ssa-pre.c (compute_avail): Use TBAA here.
13570         (eliminate_dom_walker::before_dom_children): But not when looking
13571         up redundant stores.
13572
13573 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
13574
13575         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
13576
13577 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13578
13579         *  config/i386/znver1.md
13580         (znver1_pop, znver1_pop_mem,
13581         znver1_load_imov_double_store,
13582         znver1_load_imov_direct_store,
13583         znver1_load_imov_direct_load,
13584         znver1_load_imov_double_load): Add new.
13585         (znver1_insn, znver1_insn_load): Add icmov type.
13586         (znver1_sseavx_fma,
13587         znver1_sseavx_fma_load,
13588         znver1_avx256_fma,
13589         znver1_avx256_fma_load): Fix pipe usage.
13590
13591 2016-02-14  Alan Modra  <amodra@gmail.com>
13592
13593         PR target/68973
13594         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
13595         with an invalid hard reg, reload just the reg not the entire
13596         pre/post-inc/dec address expression.
13597
13598 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
13599
13600         PR target/67260
13601         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
13602         fixed R1_REG scratch reg.
13603         (sibcall_value_pcrel_fdpic): Likewise.
13604
13605 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
13606
13607         PR target/67636
13608         PR target/64345
13609         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
13610
13611 2016-02-12  Walter Lee  <walt@tilera.com>
13612
13613         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
13614         * config/tilegx/t-tilegx: Likewise.
13615
13616 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13617
13618         PR other/69554
13619         * diagnostic-show-locus.c (struct line_span): New struct.
13620         (layout::get_first_line): Delete.
13621         (layout::get_last_line): Delete.
13622         (layout::get_num_line_spans): New member function.
13623         (layout::get_line_span): Likewise.
13624         (layout::print_heading_for_line_span_index_p): Likewise.
13625         (layout::get_expanded_location): Likewise.
13626         (layout::calculate_line_spans): Likewise.
13627         (layout::m_first_line): Delete.
13628         (layout::m_last_line): Delete.
13629         (layout::m_line_spans): New field.
13630         (layout::layout): Update comment.  Replace m_first_line and
13631         m_last_line with m_line_spans, replacing their initialization
13632         with a call to calculate_line_spans.
13633         (diagnostic_show_locus): When printing source lines and
13634         annotations, rather than looping over a single span
13635         of lines, instead loop over each line_span within
13636         the layout, with an inner loop over the lines within them.
13637         Call the context's start_span callback when changing line spans.
13638         * diagnostic.c (diagnostic_initialize): Initialize start_span.
13639         (diagnostic_build_prefix): Break out the building of the location
13640         part of the string into...
13641         (diagnostic_get_location_text): ...this new function, rewriting
13642         it from nested ternary expressions to a sequence of "if"
13643         statements.
13644         (default_diagnostic_start_span_fn): New function.
13645         * diagnostic.h (diagnostic_start_span_fn): New typedef.
13646         (diagnostic_context::start_span): New field.
13647         (default_diagnostic_start_span_fn): New prototype.
13648
13649 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13650
13651         PR driver/69779
13652         * gcc.c (driver::finalize): Fix cleanup of "specs".
13653
13654 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13655
13656         PR driver/69265
13657         PR driver/69453
13658         * gcc.c (driver::driver): Initialize m_option_suggestions.
13659         (driver::~driver): Clean up m_option_suggestions.
13660         (suggest_option): Convert to...
13661         (driver::suggest_option): ...this, and split out into
13662         driver::build_option_suggestions and find_closest_string.
13663         (driver::build_option_suggestions): New function, from
13664         first half of suggest_option.  Special-case
13665         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
13666         the sanitizer_opts array.  For options of enum types, add the
13667         various enum values to the candidate strings.
13668         (driver::handle_unrecognized_options): Remove "const".
13669         * gcc.h (driver::handle_unrecognized_options): Likewise.
13670         (driver::build_option_suggestions): New decl.
13671         (driver::suggest_option): New decl.
13672         (driver::m_option_suggestions): New field.
13673         * opts-common.c (add_misspelling_candidates): New function.
13674         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
13675         and make non-static.
13676         * opts.h (sanitizer_opts): New array decl.
13677         (add_misspelling_candidates): New function decl.
13678         * spellcheck.c (find_closest_string): New function.
13679         * spellcheck.h (find_closest_string): New function decl.
13680
13681 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13682
13683         PR rtl-optimization/69764
13684         PR rtl-optimization/69771
13685         * optabs.c (expand_binop_directly): For shift_optab_p, force
13686         convert_modes with VOIDmode if xop1 has VOIDmode.
13687
13688 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
13689
13690         PR target/69729
13691         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
13692         to correctly determine instrumentation thunks.
13693
13694 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13695
13696         PR ipa/69241
13697         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
13698         type by reference, force lhs on the call.
13699
13700         PR ipa/68672
13701         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
13702         Compute retval and retbnd early in all cases if split_part_return_p
13703         and return_bb is not EXIT.  Remove all clobber stmts and reset
13704         all debug stmts that refer to SSA_NAMEs defined in split part,
13705         except if it is retval, in that case replace the old retval with the
13706         lhs of the call to the split part.
13707
13708 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13709
13710         revert:
13711         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13712
13713         PR middle-end/66726
13714         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
13715         whose result is used in PHI.
13716         (maybe_optimize_range_tests): Likewise.
13717         (final_range_test_p): Likweise.
13718
13719 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13720
13721         PR middle-end/66726
13722         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
13723         whose result is used in PHI.
13724         (maybe_optimize_range_tests): Likewise.
13725         (final_range_test_p): Likweise.
13726
13727 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13728
13729         * cgraph.c: Spelling fixes - behaviour -> behavior and
13730         neighbour -> neighbor.
13731         * target.def: Likewise.
13732         * sel-sched.c: Likewise.
13733         * config/mips/mips.c: Likewise.
13734         * config/arc/arc.md: Likewise.
13735         * config/arm/cortex-a57.md: Likewise.
13736         * config/arm/arm.c: Likewise.
13737         * config/arm/neon.md: Likewise.
13738         * config/arm/arm-c.c: Likewise.
13739         * config/vms/vms-c.c: Likewise.
13740         * config/s390/s390.c: Likewise.
13741         * config/i386/znver1.md: Likewise.
13742         * config/i386/i386.c: Likewise.
13743         * config/ia64/hpux-unix2003.h: Likewise.
13744         * config/msp430/msp430.md: Likewise.
13745         * config/rx/rx.c: Likewise.
13746         * config/rx/rx.md: Likewise.
13747         * config/aarch64/aarch64-simd.md: Likewise.
13748         * config/aarch64/aarch64.c: Likewise.
13749         * config/nvptx/nvptx.c: Likewise.
13750         * config/bfin/bfin.c: Likewise.
13751         * config/cris/cris.opt: Likewise.
13752         * config/rs6000/rs6000.c: Likewise.
13753         * target.h: Likewise.
13754         * spellcheck.c: Likewise.
13755         * ira-build.c: Likewise.
13756         * tree-inline.c: Likewise.
13757         * builtins.c: Likewise.
13758         * lra-constraints.c: Likewise.
13759         * explow.c: Likewise.
13760         * hwint.h: Likewise.
13761         * targhooks.c: Likewise.
13762         * tree-vect-data-refs.c: Likewise.
13763         * expr.c: Likewise.
13764         * doc/tm.texi: Likewise.
13765         * doc/extend.texi: Likewise.
13766         * doc/install.texi: Likewise.
13767         * doc/md.texi: Likewise.
13768         * tree-ssa-tail-merge.c: Likewise.
13769         * sched-int.h: Likewise.
13770         * match.pd: Likewise.
13771         * sched-ebb.c: Likewise.
13772         * target.def (omit_struct_return_reg): Likewise.
13773         * gimple-ssa-isolate-paths.c: Likewise.
13774         (find_implicit_erroneous_behaviour): Renamed to...
13775         (find_implicit_erroneous_behavior): ... this.
13776         (find_explicit_erroneous_behaviour): Renamed to...
13777         (find_explicit_erroneous_behavior): ... this.
13778         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
13779
13780 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
13781
13782         PR rtl-optimization/64682
13783         PR rtl-optimization/69567
13784         PR rtl-optimization/69737
13785         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
13786         in I2 as well, just lose it.
13787
13788 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13789
13790         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
13791         New variable.
13792         (aarch64_last_printed_tune_string): Likewise.
13793         (aarch64_declare_function_name): Only output .arch assembler
13794         directive if it will be different from the previously output
13795         directive.  Same for .tune comment but only if -dA is set.
13796         (aarch64_start_file): New function.
13797         (TARGET_ASM_FILE_START): Define.
13798
13799 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
13800
13801         PR plugins/69758
13802         * Makefile.in (PLUGIN_HEADERS): Add params.list.
13803
13804 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
13805
13806         PR target/65313
13807         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
13808         -Wmaybe-uninitialized warning.
13809
13810 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
13811
13812         PR target/69713
13813         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
13814
13815 2016-02-11  Richard Biener  <rguenther@suse.de>
13816
13817         PR rtl-optimization/69291
13818         * ifcvt.c (noce_try_store_flag_constants): Do not allow
13819         subexpressions affected by changing the result.
13820
13821 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
13822
13823         PR target/69148
13824         * lra-constraints.c (curr_insn_transform): Find in/out operands
13825         for secondary memory moves.  Update dups.
13826
13827 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
13828
13829         PR tree-optimization/69652
13830         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
13831         to nested loop, did source re-formatting, skip debug statements,
13832         add check on statement with volatile operand, remove dead scalar
13833         statements.
13834
13835 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
13836             Patrick Palka  <ppalka@gcc.gnu.org>
13837
13838         PR ipa/69241
13839         PR c++/69649
13840         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
13841         calls if the return type is TREE_ADDRESSABLE.
13842         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
13843         * ipa-split.c (split_function): Fix doubled "we" in comment.
13844         Use void return type for the split part even if
13845         !split_point->split_part_set_retval.
13846
13847 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
13848
13849         PR tree-optimization/68021
13850         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
13851         when computing the value of biv cand by itself.
13852
13853 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
13854
13855         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
13856         (cortexa57_tunings): Likewise.
13857         (cortexa72_tunings): Likewise.
13858         (arch_macro_fusion_pair_p): Add support for AES fusion.
13859         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
13860         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
13861         Allow virtual registers before reload so early scheduling works.
13862         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
13863         correct latency and pipeline.
13864         (cortex_a57_crypto_complex): Likewise.
13865         (cortex_a57_crypto_xor): Likewise.
13866         (define_bypass): Add AES bypass.
13867
13868 2016-02-10  Richard Biener  <rguenther@suse.de>
13869
13870         PR tree-optimization/69726
13871         * passes.def: Add DCE pass before late uninit.
13872         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
13873         really fixup if-conversions job.
13874
13875 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
13876
13877         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
13878         (arm_cortex_a57_tune): Likewise.
13879         (aarch_macro_fusion_pair_p): Add support for AES fusion.
13880         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
13881
13882 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
13883
13884         * timevar.def (TV_PHASE_DBGINFO): Delete.
13885         (TV_PHASE_CHECK_DBGINFO): Likewise.
13886         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
13887
13888 2016-02-10  Richard Biener  <rguenther@suse.de>
13889
13890         PR tree-optimization/69719
13891         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13892         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
13893
13894 2016-02-09  Andrew Pinski  <apinski@cavium.com>
13895
13896         PR tree-opt/69282
13897         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
13898         get_vcond_mask_icode returns false.
13899
13900 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
13901
13902         PR target/68404
13903         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
13904         an ADDIS that adds a pointer to a large constant that sets the
13905         upper16 bits with a load operation.
13906
13907 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
13908
13909         PR target/68532
13910         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
13911         order.
13912         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
13913         endian.
13914         (vzipq_s16): Likewise.
13915         (vzipq_s32): Likewise.
13916         (vzipq_f32): Likewise.
13917         (vzipq_u8): Likewise.
13918         (vzipq_u16): Likewise.
13919         (vzipq_u32): Likewise.
13920         (vzipq_p8): Likewise.
13921         (vzipq_p16): Likewise.
13922
13923 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
13924
13925         PR target/68532
13926         * config/arm/arm.c (neon_endian_lane_map): New function.
13927         (neon_vector_pair_endian_lane_map): New function.
13928         (arm_evpc_neon_vuzp): Allow for big endian lane order.
13929         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
13930         endian.
13931         (vuzpq_s16): Likewise.
13932         (vuzpq_s32): Likewise.
13933         (vuzpq_f32): Likewise.
13934         (vuzpq_u8): Likewise.
13935         (vuzpq_u16): Likewise.
13936         (vuzpq_u32): Likewise.
13937         (vuzpq_p8): Likewise.
13938         (vuzpq_p16): Likewise.
13939
13940 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
13941
13942         PR target/69634
13943         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
13944         debug insns.
13945
13946 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
13947
13948         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
13949         truncate const_int operand 1 to QImode.
13950
13951 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
13952
13953         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
13954         corresponding to an abnormal edge.
13955
13956 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13957
13958         PR tree-optimization/69599
13959         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
13960         function.
13961         (find_func_aliases_for_builtin_call, find_func_clobbers)
13962         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
13963         partition.
13964
13965 2016-02-09  Richard Biener  <rguenther@suse.de>
13966
13967         PR tree-optimization/69715
13968         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
13969         LHS on calls as non-rewritable.
13970
13971 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13972
13973         PR lto/69707
13974         * lto-wrapper.c (append_diag_options): New function.
13975         (compile_offload_image): Call append_diag_options.
13976
13977 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
13978
13979         PR other/69722
13980         * doc/extend.texi (Flag Output Operands): Correct sectioning.
13981         Minor copy-edit to fix verb tenses.
13982
13983 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
13984
13985         PR tree-optimization/69209
13986         * ipa-split.c (split_function): If split part is not
13987         returning retval, retval has gimple type but is not
13988         gimple value, force it into a SSA_NAME first.
13989
13990 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
13991
13992         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
13993         outdated section.
13994
13995 2016-02-08  Jason Merrill  <jason@redhat.com>
13996
13997         PR c++/69631
13998         * convert.c (convert_to_integer_1): Check dofold on truncation
13999         distribution.
14000         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
14001         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
14002         Rename from *_nofold.
14003         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
14004         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
14005
14006 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
14007
14008         PR target/60410
14009         * tree.c (build_common_tree_nodes): Remove short_double argument.
14010         All callers changed.
14011         * tree.h (build_common_tree_nodes): Adjust declaration.
14012         * doc/invoke.texi (-fshort-double): Remove documentation.
14013         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14014         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
14015         * lto-wrapper.c (merge_and_complain, append_compiler_options)
14016         (append_linker_options): Don't handle OPT_fshort_double.
14017
14018         PR rtl-optimization/68730
14019         * lra-remat.c (insn_to_cand_activation): New static variable.
14020         (lra_remat): Allocate and free it.
14021         (create_cand): New arg activation. Initialize a field in
14022         insn_to_cand_activation if it is nonnull.
14023         (create_cands): Pass the activation insn to create_cand when making
14024         a candidate involving an output reload.  Reorganize code a little.
14025         (do_remat): Keep track of active status of candidates in a separate
14026         bitmap.
14027
14028 2016-02-08  Richard Biener  <rguenther@suse.de>
14029
14030         PR tree-optimization/69719
14031         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14032         Properly use absolute of the difference of the two offsets to
14033         compare or adjust the segment length.
14034
14035 2016-02-08  Richard Biener  <rguenther@suse.de>
14036             Jeff Law  <law@redhat.com>
14037
14038         PR target/68273
14039         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
14040         types for anonymous SSA names.
14041
14042 2016-02-08   Richard Biener  <rguenther@suse.de>
14043
14044         PR rtl-optimization/69274
14045         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
14046
14047 2016-02-08  Jeff Law  <law@redhat.com>
14048
14049         PR tree-optimization/65917
14050         * tree-ssa-dom.c (record_temporary_equivalences): Record both
14051         equivalences from if (x == y) style conditionals.
14052         (loop_depth_of_name): Remove.
14053         (record_equality): Remove loop depth check.
14054         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
14055         (const_and_copies::record_const_or_copy_raw): New member function.
14056         * tree-ssa-scopedtables.c
14057         (const_and_copies::record_const_or_copy_raw): New, factored out of
14058         (const_and_copies::record_const_or_copy): Call new member function.
14059
14060 2016-02-05  Jeff Law  <law@redhat.com>
14061
14062         PR tree-optimization/68541
14063         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
14064         (count_stmts_in_block): New function.
14065         (poor_ifcvt_candidate_code): Likewise.
14066         (is_feasible_trace): Add some heuristics to determine when path
14067         splitting is profitable.
14068         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
14069         is a diamond with a single exit.
14070
14071 2016-02-05  Martin Sebor  <msebor@redhat.com>
14072
14073         PR c++/69662
14074         * doc/invoke.texi: Update -Wplacement-new to take an optional
14075         argument.
14076
14077 2016-02-06  Richard Henderson  <rth@redhat.com>
14078
14079         PR c/69643
14080         * tree.c (tree_nop_conversion_p): Do not strip casts into or
14081         out of non-standard address spaces.
14082
14083 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14084
14085         PR rtl-optimization/69691
14086         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
14087
14088 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
14089
14090         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
14091         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
14092         (*ieee128_mfvsrd_64bit): Likewise.
14093         (*ieee128_mfvsrd_32bit): Likewise.
14094
14095 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
14096
14097         PR target/69369
14098         Revert r232560:
14099         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14100
14101         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14102         instrumented_version.
14103
14104 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
14105
14106         * doc/invoke.texi (Optimize Options): In table of --param options
14107         rename second occurrence of tracer-min-branch-ratio to
14108         tracer-min-branch-probability, rename
14109         tracer-min-branch-ratio-feedback to
14110         tracer-min-branch-probability-feedback and clarify description,
14111         rename sched-spec-state-edge-prob-cutoff to
14112         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
14113         to selsched-insns-to-rename, rename lto-minpartition to
14114         lto-min-partition, delete reorder-blocks-duplicate and
14115         reorder-blocks-duplicate-feedback.
14116
14117 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14118
14119         * config/s390/s390.c (s390_register_info_set_ranges): Remove
14120         superfluous loops.
14121
14122 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14123
14124         * doc/extend.texi: S/390: Correct some typos.
14125
14126 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14127
14128         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
14129
14130 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14131
14132         PR target/69625
14133         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
14134         (s390_register_info_gprtofpr): Use new macros above.
14135         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
14136         its name.
14137         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
14138         its name.  Adjust restore and save gpr ranges.
14139         (s390_register_info_set_ranges): New function.
14140         (s390_register_info): Use new macros above.  Call
14141         s390_register_info_set_ranges.
14142         (s390_optimize_register_info): Likewise.
14143         (s390_hard_regno_rename_ok): Use new macros.
14144         (s390_hard_regno_scratch_ok): Likewise.
14145         (s390_emit_epilogue): Likewise.
14146         (s390_can_use_return_insn): Likewise.
14147         (s390_optimize_prologue): Likewise.
14148         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
14149
14150 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
14151
14152         PR bootstrap/69677
14153         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
14154         alignment fixes.
14155         (ix86_option_override_internal): Disable TARGET_STV even for
14156         -m{incoming,preferred}-stack-boundary=3.
14157
14158 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14159
14160         * config.gcc: Mark deprecated rtems targets as obsolete.
14161
14162 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
14163
14164         PR rtl-optimization/64682
14165         PR rtl-optimization/69567
14166         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
14167         before I2 only if the register is both used and set in I2.
14168
14169 2016-02-04  DJ Delorie  <dj@redhat.com>
14170
14171         * config/msp430/msp430.c (msp430_start_function): Add function type.
14172
14173 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
14174
14175         PR fortran/69368
14176         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
14177
14178 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
14179
14180         PR rtl-optimization/69577
14181         Revert:
14182         2015-10-29  Richard Henderson  <rth@redhat.com>
14183
14184         PR target/68124
14185         PR rtl-opt/67609
14186         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
14187         sse check to the exact conditions of PR 67609.
14188
14189 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
14190
14191         PR target/69667
14192         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
14193         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
14194         not allowed into the traditional Altivec registers.
14195         (movtd_64bit_nodm): Likewise.
14196         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
14197
14198 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
14199
14200         * config/aarch64/cortex-a57-fma-steering.c
14201         (aarch64_register_fma_steering): Remove "static" from arguments
14202         to register_pass.
14203
14204 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
14205
14206         PR target/69619
14207         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
14208         twice when complex.
14209
14210 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
14211
14212         * doc/invoke.texi: Delete -mno-fma4.
14213
14214 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
14215
14216         PR rtl-optimization/69577
14217         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
14218         (find_subregs_of_mode): Update accordingly.  Iterate over partial
14219         definitions.
14220
14221 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
14222
14223         * config/arm/arm-protos.h (neon_reinterpret): Remove.
14224         * config/arm/arm.c (neon_reinterpret): Remove.
14225         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
14226         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
14227         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
14228         vreinterpretti): Remove.
14229         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
14230         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14231         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
14232         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
14233         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
14234         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
14235         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
14236         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
14237         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
14238         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
14239         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
14240         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
14241         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
14242         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
14243         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
14244         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
14245         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
14246         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
14247         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
14248         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
14249         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
14250         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
14251         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
14252         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
14253         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
14254         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
14255         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
14256         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
14257         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
14258         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
14259         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
14260         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
14261         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
14262         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
14263         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
14264         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
14265         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
14266         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
14267         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
14268         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
14269         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
14270         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
14271         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
14272         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
14273         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
14274         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
14275         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
14276         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
14277         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
14278         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
14279         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
14280         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
14281         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
14282         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
14283         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
14284         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
14285         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
14286         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
14287         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
14288         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
14289         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
14290         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
14291         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
14292         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
14293         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
14294         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
14295         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
14296         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
14297         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
14298         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
14299         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
14300         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
14301         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
14302         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
14303         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
14304         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
14305         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
14306         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
14307         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
14308         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
14309         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
14310         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
14311         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
14312         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
14313         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
14314         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
14315         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
14316         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
14317         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
14318         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
14319         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
14320         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
14321         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
14322         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
14323         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
14324         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
14325         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
14326         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
14327         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
14328         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
14329         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
14330         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
14331         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
14332
14333 2016-02-04  Martin Liska  <mliska@suse.cz>
14334
14335         PR sanitizer/69276
14336         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
14337         that are gimple_store_p.
14338         (maybe_instrument_call): Likewise.
14339
14340 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
14341
14342         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
14343         register scaling out of memory reference and comment why.
14344
14345 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14346
14347         PR target/65932
14348         PR target/67714
14349         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
14350         folding the source of a SET.
14351
14352 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14353
14354         PR target/65932
14355         PR target/67714
14356         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
14357         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
14358
14359 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
14360
14361         PR target/65932
14362         PR target/67714
14363         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
14364         HImode.
14365
14366 2016-02-04  Christian Bruel  <christian.bruel@st.com>
14367
14368         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
14369         * config/arm/arm.c (arm_set_current_function): Likewise.
14370
14371 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
14372             Ilya Enkovich  <enkovich.gnu@gmail.com>
14373             H.J. Lu  <hongjiu.lu@intel.com>
14374
14375         PR target/69454
14376         * config/i386/i386.c (convert_scalars_to_vector): Remove
14377         stack alignment fixes.
14378         (ix86_option_override_internal): Disable TARGET_STV if stack
14379         might not be aligned enough.
14380         (ix86_minimum_alignment): Assert that TARGET_STV is false.
14381
14382 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
14383
14384         * config/i386/x86-tune.def: Disable default prefetching
14385         for -march=znver1.
14386
14387 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14388             Vladimir Makarov  <vmakarov@redhat.com>
14389
14390         PR target/69461
14391         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
14392         in validating fused toc addresses.
14393
14394 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
14395
14396         PR c/69627
14397         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
14398         range->m_caret fields if range->m_show_caret_p is false.
14399
14400         PR target/69644
14401         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
14402         Force oldval into register if it does not satisfy reg_or_short_operand
14403         predicate.  Fix up formatting.
14404
14405 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
14406             Alexandre Oliva  <aoliva@redhat.com>
14407
14408         PR target/69461
14409         * lra-constraints.c (simplify_operand_subreg): Check additionally
14410         address validity after potential reloading.
14411         (process_address_1): Check insns validity.  In case of failure do
14412         nothing.
14413
14414 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
14415
14416         PR target/69118
14417         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
14418         Fix target.
14419
14420 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
14421
14422         * wide-int.cc (canonize_uhwi): New function.
14423         (wi::divmod_internal): Use it.
14424
14425 2016-02-02  James Norris  <jnorris@codesourcery.com
14426
14427         * gimplify.c (omp_notice_variable): Add usage check.
14428
14429 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
14430
14431         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
14432         like LE, GE, LT, GT when emitting relational operator.
14433
14434 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
14435
14436         * ira-costs.c (find_costs_and_classes): Add extra argument.
14437         * target.def (ira_change_pseudo_allocno_class): Add parameter.
14438         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
14439         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
14440         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
14441         Add best_class parameter, and return it if not ALL_REGS.
14442         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
14443         Add parameter.
14444         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
14445         Update target hook.
14446
14447 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
14448
14449         * config/aarch64/aarch64.c
14450         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
14451         (aarch64_ira_change_pseudo_allocno_class): New function.
14452
14453 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
14454
14455         PR target/67032
14456         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
14457
14458 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14459
14460         * config/avr/avr.c (avr_option_override): Set
14461         PARAM_ALLOW_STORE_DATA_RACES to 1.
14462
14463 2016-02-02  Richard Biener  <rguenther@suse.de>
14464
14465         PR tree-optimization/69595
14466         * match.pd: Add range test simplifications to true/false.
14467
14468 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
14469
14470         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
14471         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
14472         instead.
14473
14474 2016-02-02  Richard Biener  <rguenther@suse.de>
14475
14476         PR tree-optimization/69606
14477         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
14478         info on the result before moving a stmt.
14479
14480 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
14481
14482         PR middle-end/68542
14483         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
14484         branch with vector comparison.
14485         * config/i386/sse.md (VI48_AVX): New mode iterator.
14486         (define_expand "cbranch<mode>4): Add support for conditional branch
14487         with vector comparison.
14488         * tree-vect-loop.c (optimize_mask_stores): New function.
14489         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
14490         has_mask_store field of vect_info.
14491         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
14492         vectorized loops having masked stores after vec_info destroy.
14493         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
14494         correspondent macros.
14495         (optimize_mask_stores): Add prototype.
14496
14497 2016-02-02  Alan Modra  <amodra@gmail.com>
14498
14499         PR target/69548
14500         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
14501         allow subregs.
14502
14503 2016-02-02  Alan Modra  <amodra@gmail.com>
14504
14505         PR target/68662
14506         * config/rs6000/rs6000.c (need_toc_init): New var, set it
14507         whenever toc_label_name used.
14508         (rs6000_file_start): Don't set up toc section here,
14509         (rs6000_output_function_epilogue): do so here instead,
14510         (rs6000_xcoff_file_start): and here.
14511         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
14512         (load_toc_aix_di): Likewise.
14513
14514 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14515
14516         PR rtl-optimization/69592
14517         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
14518         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
14519         (num_sign_bit_copies_binary_arith_p): New inline function.
14520         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
14521
14522 2016-02-01  Jeff Law  <law@redhat.com>
14523
14524         PR tree-optimization/69580
14525         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
14526         * tree-ssa-threadbackward.c
14527         (fsm_find_control_statement_thread_paths): Do not try to walk
14528         through large PHI nodes.
14529
14530 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14531
14532         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
14533         when count is incremented above limit, don't analyze further
14534         insns afterwards.
14535
14536         * omp-low.c (oacc_parse_default_dims): Avoid
14537         -Wsign-compare warning, make sure value fits into int
14538         rather than just unsigned int.
14539
14540 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
14541
14542         PR tree-optimization/67921
14543         * fold-const.c (split_tree): New parameters.  Convert pointer
14544         type variable part to proper type before negating.
14545         (fold_binary_loc): Pass new arguments to split_tree.
14546
14547 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
14548
14549         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
14550         (nvptx_goacc_validate_dims): Extend to handle global defaults.
14551         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
14552         * doc/tm.texti: Rebuilt.
14553         * doc/invoke.texi (fopenacc-dim): Document.
14554         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
14555         (append_compiler_options): Likewise.
14556         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
14557         (oacc_parse_default_dims): New.
14558         (oacc_validate_dims): Add USED arg.  Select non-unity default when
14559         possible.
14560         (oacc_loop_fixed_partitions): Return mask of used partitions.
14561         (oacc_loop_auto_partitions): Emit dump info.
14562         (oacc_loop_partition): Return mask of used partitions.
14563         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
14564         loop partitioning and validation calls.
14565
14566 2016-02-01  Richard Biener  <rguenther@suse.de>
14567
14568         PR middle-end/69556
14569         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
14570
14571 2016-02-01  Richard Biener  <rguenther@suse.de>
14572
14573         PR tree-optimization/69574
14574         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
14575         of asserting return chrec_dont_know.
14576
14577 2016-02-01  Martin Liska  <mliska@suse.cz>
14578
14579         * mem-stats-traits.h: Add copyright header.
14580         * mem-stats.h: Likewise.
14581
14582 2016-02-01  Richard Biener  <rguenther@suse.de>
14583
14584         PR tree-optimization/69579
14585         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
14586         Do not propagate through abnormal PHI results.
14587
14588 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
14589
14590         * postreload.c (reload_cse_simplify): Remove dead code.
14591
14592 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14593
14594         PR rtl-optimization/69570
14595         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
14596         if there is more than one set, not if there is a single set.
14597
14598 2016-02-01  Richard Henderson  <rth@redhat.com>
14599
14600         PR rtl-opt/69535
14601         * combine.c (make_compound_operation): When looking through a
14602         subreg, make sure to re-extend to the width of the outer mode.
14603
14604 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
14605
14606         PR tree-optimization/69546
14607         * wide-int.cc (wi::divmod_internal): For unsigned division
14608         where both operands fit into uhwi, if o1 is 1 and o0 has
14609         msb set, if divident_prec is larger than bits per hwi,
14610         clear another quotient word and return 2 instead of 1.
14611         Similarly for remainder with msb in HWI set, if dividend_prec
14612         is larger than bits per hwi.
14613
14614 2016-01-29  Martin Jambor  <mjambor@suse.cz>
14615
14616         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
14617         Use short lowercase names.
14618         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
14619         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
14620         acq_rel one.  Protect warning agains segfaults if
14621         get_memory_order_name returns NULL.
14622         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
14623         with release semantics.  Do not warn if get_memory_order already did.
14624         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
14625         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
14626         if get_memory_order already did.
14627
14628 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
14629
14630         * doc/install.texi: Document that isl-0.16 is supported.
14631
14632 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
14633
14634         PR target/69299
14635         * config/i386/constraints.md (Bm): Describe as special memory
14636         constraint.
14637         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
14638         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14639         * genpreds.c (struct constraint_data): Add is_special_memory.
14640         (have_special_memory_constraints, special_memory_start): New
14641         static vars.
14642         (special_memory_end): Ditto.
14643         (add_constraint): Add new arg is_special_memory.  Add code to
14644         process its true value.  Update have_special_memory_constraints.
14645         (process_define_constraint): Pass the new arg.
14646         (process_define_register_constraint): Ditto.
14647         (choose_enum_order): Process special memory.
14648         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
14649         function insn_extra_special_memory_constraint.
14650         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14651         * gensupport.c (process_rtx): Process
14652         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14653         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
14654         * ira-lives.c (single_reg_class): Use
14655         insn_extra_special_memory_constraint.
14656         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
14657         * lra-constraints.c (process_alt_operands): Ditto.
14658         (curr_insn_transform): Use insn_extra_special_memory_constraint.
14659         * recog.c (asm_operand_ok, preprocess_constraints): Process
14660         CT_SPECIAL_MEMORY.
14661         * reload.c (find_reloads): Ditto.
14662         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
14663         * stmt.c (parse_input_constraint): Use
14664         insn_extra_special_memory_constraint.
14665
14666 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14667
14668         PR target/69530
14669         * lra-splill.c (lra_final_code_change): Revert r229087 by
14670         removing all sub-registers.
14671
14672 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
14673
14674         PR target/65604
14675         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
14676
14677 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
14678
14679         PR target/69551
14680         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
14681         SSE1, copy target into the temporary reg first before recursing
14682         on it.
14683
14684 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14685
14686         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
14687         with vm.
14688
14689 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
14690
14691         * ginclude/stdarg.h: Test __cplusplus instead of
14692         __GXX_EXPERIMENTAL_CXX0X__.
14693
14694 2016-01-29  Richard Biener  <rguenther@suse.de>
14695
14696         PR tree-optimization/69547
14697         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
14698         Do not mark clobbers necessary.
14699         (mark_all_reaching_defs_necessary_1): Likewise.
14700
14701 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14702
14703         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
14704         declaration name with %qs and print it in both error messages.
14705         Also fix indentation.
14706
14707 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14708
14709         PR other/69006
14710         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
14711         trailing blank line from error message.
14712
14713 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
14714
14715         PR c++/69462
14716         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
14717         for C++-11.
14718
14719 2016-01-29  Richard Biener  <rguenther@suse.de>
14720
14721         PR middle-end/69537
14722         * match.pd: Allow all integral types when simplifying a
14723         widening or sign-changing conversion.
14724
14725 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14726
14727         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
14728         back to setting codegen_error to fail codegen.
14729
14730 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
14731
14732         PR target/69459
14733         * config/i386/constraints.md (C): Only accept constant zero operand.
14734         (BC): New constraint.
14735         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
14736         instead of C constraint.
14737         * doc/md.texi (Machine Constraints): Update description
14738         of C constraint.
14739
14740 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
14741
14742         PR target/68400
14743         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
14744
14745 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
14746
14747         PR middle-end/69542
14748         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
14749         non-debug insns.
14750
14751 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
14752
14753         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
14754         branches if using guessed profile.
14755
14756 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
14757
14758         * graphite-optimize-isl.c (optimize_isl): Fix dump.
14759
14760 2016-01-28  Richard Henderson  <rth@redhat.com>
14761
14762         PR target/69305
14763         * config/aarch64/aarch64-modes.def (CC_Cmode): New
14764         * config/aarch64/aarch64-protos.h: Update.
14765         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
14766         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
14767         (aarch64_get_condition_code_1): Handle CC_Cmode.
14768         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
14769         (*add<mode>3_compareC_cconly_imm): New.
14770         (*add<mode>3_compareC_cconly): New.
14771         (*add<mode>3_compareC_imm): New.
14772         (add<mode>3_compareC): New.
14773         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
14774         to be first.  Use aarch64_carry_operation.
14775         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
14776         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
14777         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
14778         (subti3): Use subdi3_compare1.
14779         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
14780         (sub<mode>3_compare1): New.
14781         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
14782         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
14783         (*subsi3_carryin_uxtw): Likewise.
14784         (*ngc<mode>, *ngcsi_uxtw): Likewise.
14785         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
14786         * config/aarch64/iterators.md (DWI): New.
14787         * config/aarch64/predicates.md (aarch64_carry_operation): New.
14788         (aarch64_borrow_operation): New.
14789
14790 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
14791
14792         * graphite-optimize-isl.c (optimize_isl): Print a different debug
14793         message when isl does not return a valid schedule.
14794
14795 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14796
14797         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
14798         Remove comments from class declarations: they are already in the code
14799         close by the defs.
14800
14801 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14802
14803         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
14804         codegen_error_p.
14805         (ternary_op_to_tree): Same.
14806         (unary_op_to_tree): Same.
14807         (nary_op_to_tree): Same.
14808         (gcc_expression_from_isl_expr_op): Same.
14809         (gcc_expression_from_isl_expression): Same.
14810         (graphite_create_new_loop): Same.
14811         (graphite_create_new_loop_guard): Same.
14812         (build_iv_mapping): Same.
14813         (graphite_create_new_guard): Same.
14814         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
14815         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
14816
14817 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14818
14819         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
14820         instead of setting codegen_error to fail codegen.
14821
14822 2016-01-28  Jason Merrill  <jason@redhat.com>
14823
14824         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
14825
14826 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
14827
14828         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14829         Remove CONST_INT_P check in CCMP cost calculation.
14830
14831 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
14832
14833         * config/aarch64/aarch64.c (generic_vector_cost):
14834         Set vec_permute_cost.
14835         (cortexa57_vector_cost): Likewise.
14836         (exynosm1_vector_cost): Likewise.
14837         (xgene1_vector_cost): Likewise.
14838         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
14839         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
14840         Add vec_permute_cost entry.
14841
14842 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
14843
14844         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
14845         immediate as %1.
14846         (add<mode>3_compare0): Likewise.
14847         (addsi3_compare0_uxtw): Likewise.
14848         (add<mode>3nr_compare0): Likewise.
14849         (compare_neg<mode>): Likewise.
14850         (<optab><mode>3): Likewise.
14851
14852 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
14853
14854         * tree-vect-stmts.c (vectorizable_comparison): Add
14855         NULL check for vectype.
14856
14857 2016-01-28  Richard Biener  <rguenther@suse.de>
14858
14859         PR tree-optimization/69466
14860         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14861         Account for PHIs we couldn't duplicate.
14862
14863 2016-01-28  Martin Liska  <mliska@suse.cz>
14864
14865         PR pch/68758
14866         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
14867         instead of ENABLE_VALGRIND_CHECKING.
14868
14869 2016-01-27  Richard Henderson  <rth@redhat.com>
14870
14871         PR rtl-opt/69447
14872         * lra-remat.c (subreg_regs): New.
14873         (dump_candidates_and_remat_bb_data): Dump it.
14874         (operand_to_remat): Reject if operand in subreg_regs.
14875         (set_bb_regs): Collect subreg_regs.
14876         (lra_remat): Init and free subreg_regs.  Compute
14877         calculate_local_reg_remat_bb_data before create_cands.
14878
14879 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
14880
14881         PR target/68986
14882         * config/i386/i386.c (ix86_update_stack_boundary): Don't
14883         change stack_alignment_needed for __tls_get_addr call.
14884
14885 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
14886
14887         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
14888
14889 2016-01-27  Jeff Law  <law@redhat.com>
14890
14891         PR tree-optimization/68398
14892         PR tree-optimization/69196
14893         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
14894         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
14895         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14896         Only count PHIs in the last block in the path.  The others will
14897         const/copy propagate away.  Add heuristic to allow more irreducible
14898         subloops to be created when it is likely profitable to do so.
14899
14900         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14901         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
14902         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
14903
14904 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
14905
14906         PR lto/69254
14907         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
14908         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
14909         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
14910         * tree-streamer-in.c: Include asan.h.
14911         (streamer_get_builtin_tree): For builtins in sanitizer
14912         range call initialize_sanitizer_builtins and retry.
14913
14914 2016-01-27  Ian Lance Taylor  <iant@google.com>
14915
14916         * common.opt (fkeep-gc-roots-live): New undocumented option.
14917         * tree-ssa-loop-ivopts.c (add_candidate_1): If
14918         -fkeep-gc-roots-live, skip pointers.
14919         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
14920         NULL.
14921
14922 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
14923
14924         PR target/69512
14925         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
14926         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
14927
14928 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
14929
14930         PR target/68380
14931         * configure.ac: NetBSD provides SSP in its C library.
14932         * configure: Updated.
14933
14934 2016-01-27  Richard Biener  <rguenther@suse.de>
14935
14936         PR tree-optimization/69166
14937         * tree-vect-loop.c (vect_is_simple_reduction): Always check
14938         reduction code for commutativity / associativity.
14939
14940 2016-01-27  Martin Jambor  <mjambor@suse.cz>
14941
14942         PR tree-optimization/69355
14943         * tree-sra.c (analyze_access_subtree): Correct hole detection when
14944         total_scalarization fails.
14945
14946 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
14947
14948         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
14949         power9.
14950
14951 2016-01-27  Christian Bruel  <christian.bruel@st.com>
14952
14953         PR target/69245
14954         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
14955         Move arm_reset_previous_fndecl and set_target_option_current_node in
14956         the conditional part.  Call save_restore_target_globals.
14957         * config/arm/arm.c (arm_set_current_function):
14958         Refactor to better support #pragma target and attribute mix.
14959         Call save_restore_target_globals.
14960         * config/arm/arm-protos.h (save_restore_target_globals): New function.
14961
14962 2016-01-27  Martin Liska  <mliska@suse.cz>
14963
14964         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
14965         reference for an HSA kernel and its host function.
14966
14967 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
14968
14969         PR tree-optimization/69399
14970         * wide-int.h (wi::lrshift): For larger precisions, only
14971         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
14972
14973 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
14974
14975         * config/arc/predicates.md (proper_comparison_operator): Reject
14976         constant-constant comparison.
14977
14978 2016-01-26  Tom de Vries  <tom@codesourcery.com>
14979
14980         PR tree-optimization/69110
14981         * tree-data-ref.c (initialize_data_dependence_relation): Handle
14982         DR_NUM_DIMENSIONS == 0.
14983
14984 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
14985             Sebastian Pop  <s.pop@samsung.com>
14986
14987         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
14988         isl_ast_op_cond and isl_ast_op_select.
14989         (gcc_expression_from_isl_expr_op): Same.
14990
14991 2016-01-26  Jason Merrill  <jason@redhat.com>
14992
14993         PR c++/68782
14994         * tree.c (recompute_constructor_flags): Split out from
14995         build_constructor.
14996         (verify_constructor_flags): New.
14997         * tree.h: Declare them.
14998
14999 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
15000
15001         PR rtl-optimization/69217
15002         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
15003         are no TYPE_FIELDS set for the record type.
15004
15005 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15006
15007         PR target/68662
15008         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
15009         toc_label_name unconditionally.
15010         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
15011         SYMBOL_REF string.  Use toc_label_name instead of constructing
15012         LCTOC1.
15013         (rs6000_elf_declare_function_name): Use toc_label_name instead of
15014         constructing LCTOC1.
15015
15016 2016-01-26  Martin Sebor  <msebor@redhat.com>
15017
15018         PR other/69477
15019         * doc/extend.texi (Common Type Attributes): Move text that talks about
15020         attribute packed from attribute aligned to the section discussing
15021         the former attribute for clarity.
15022
15023 2016-01-26  Richard Henderson  <rth@redhat.com>
15024
15025         PR middle-end/60908
15026         * trans-mem.c (tm_region_init): Mark entry block as visited.
15027
15028 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
15029
15030         PR other/69006
15031         * diagnostic-show-locus.c (layout::print_source_line): Replace
15032         call to pp_newline with call to layout::print_newline.
15033         (layout::print_annotation_line): Likewise.
15034         (layout::move_to_column): Likewise.
15035         (layout::print_any_fixits): After printing any fixits, print a
15036         trailing newline, if necessary.
15037         (layout::print_newline): New method, resetting any colorization
15038         before a newline.
15039         (diagnostic_show_locus): Move the pp_newline to before the
15040         early bailout.  Remove dummy block enclosing the layout instance.
15041         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
15042         of pp_newline_and_flush with pp_flush.
15043         (diagnostic_append_note): Delete use of pp_newline.
15044         (diagnostic_append_note_at_rich_loc): Delete.
15045         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
15046         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
15047         when newline characters are added to the buffer.
15048
15049 2016-01-26  Michael Matz  <matz@suse.de>
15050
15051         * configure.ac (ac_cv_std_swap_in_utility): New test.
15052         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
15053         * configure: Regenerate.
15054         * config.in: Regenerate.
15055
15056 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
15057
15058         * config/arc/arc.md (cstoresi4): Force operand into register.
15059         (arcset<code>): Fix predicate.
15060         (arcsetltu): Likewise.
15061         (arcsetgeu): Likewise.
15062         (arcsethi): Likewise.
15063         (arcsetls): Likewise.
15064
15065 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15066
15067         PR tree-optimization/69483
15068         * gimple-fold.c (canonicalize_constructor_val): Return NULL
15069         if base has error_mark_node type.
15070
15071 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
15072
15073         PR target/68620
15074         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
15075         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
15076         New helper macros.
15077         (vget_lane_f16): Handle big-endian.
15078         (vgetq_lane_f16): Likewise.
15079         (vset_lane_f16): Likewise.
15080         (vsetq_lane_f16): Likewise.
15081         * config/arm/iterators.md (VQXMOV): Add V8HF.
15082         (VDQ): Add V4HF and V8HF.
15083         (V_reg): Handle V4HF and V8HF.
15084         (Is_float_mode): Likewise.
15085         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
15086         neon_vdup_nv8hf): New patterns.
15087         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
15088         Use VD_LANE iterator.
15089         (neon_vld1_dup<mode>): Use VQ2 iterator.
15090
15091 2016-01-26  Nathan Sidwell  <nathan@acm.org>
15092
15093         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
15094         (set_oacc_fn_attrib): Add IS_KERNEL arg.
15095         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
15096         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
15097         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
15098         (oacc_validate_dims): Add LEVEL arg, don't return level.
15099         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
15100         oacc_validate_dims.
15101         (execute_oacc_device_lower): Adjust, add more dump output.
15102         * tree-ssa-loop.c (gate_oacc_kernels): Use
15103         oacc_fn_attrib_kernels_p.
15104         * tree-parloops.c (create_parallel_loop): Adjust
15105         set_oacc_fn_attrib call.
15106
15107 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15108
15109         PR lto/69254
15110         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
15111         (append_compiler_options): Handle -fcilkplus.
15112         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
15113
15114 2016-01-26  Nick Clifton  <nickc@redhat.com>
15115
15116         PR target/66655
15117         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
15118         been marked as DECL_ONE_ONLY but we do not the means to make it
15119         so, then do not allow it to bind locally.
15120
15121 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15122
15123         PR lto/69254
15124         * opts.h (parse_sanitizer_options): New prototype.
15125         * opts.c (sanitizer_opts): New array.
15126         (parse_sanitizer_options): New function.
15127         (common_handle_option): Use parse_sanitizer_options.
15128
15129 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15130
15131         PR target/68986
15132         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
15133         alignment adjustment to ...
15134         (ix86_update_stack_boundary): Here.  Don't over-align stack for
15135         __tls_get_addr.
15136         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
15137         if __tls_get_addr is called.
15138
15139 2016-01-26  Christian Bruel  <christian.bruel@st.com>
15140
15141         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
15142
15143 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
15144
15145         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
15146
15147 2016-01-26  Richard Biener  <rguenther@suse.de>
15148
15149         PR middle-end/69467
15150         * match.pd: Guard X * CST CMP 0 pattern with single_use.
15151
15152 2016-01-26  Richard Biener  <rguenther@suse.de>
15153
15154         PR tree-optimization/69452
15155         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
15156         (move_computations_dom_walker::before_dom_children): Rename
15157         to ...
15158         (move_computations_worker): This.
15159         (move_computations): Perform an RPO rather than a DOM walk.
15160
15161 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
15162
15163         PR target/69442
15164         * combine.c (combine_instructions): For REG_EQUAL note with
15165         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
15166         to the underlying register.
15167         * doc/rtl.texi (REG_EQUAL): Document the behavior of
15168         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
15169
15170 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
15171
15172         PR target/67896
15173         * config/aarch64/aarch64-builtins.c
15174         (aarch64_init_simd_builtin_types): Do not set structural
15175         equality to __Poly{8,16,64,128}_t types.
15176
15177 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
15178
15179         PR tree-optimization/69400
15180         * wide-int.cc (wi_pack): Take the precision as argument and
15181         perform canonicalization here rather than in the callers.
15182         Use the main loop to handle all full-width HWIs.  Add a
15183         zero HWI if in_len isn't a full result.
15184         (wi::divmod_internal): Update accordingly.
15185         (wi::mul_internal): Likewise.  Simplify.
15186
15187 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
15188             Sebastian Pop  <s.pop@samsung.com>
15189
15190         * graphite-poly.c (apply_poly_transforms): Simplify.
15191         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
15192         (print_isl_map): Same.
15193         (print_isl_union_map): Same.
15194         (print_isl_schedule): New.
15195         (debug_isl_schedule): New.
15196         * graphite-dependences.c (scop_get_reads): Do not call
15197         isl_union_map_add_map that is undocumented isl functionality.
15198         (scop_get_must_writes): Same.
15199         (scop_get_may_writes): Same.
15200         (scop_get_original_schedule): Remove.
15201         (scop_get_dependences): Do not call isl_union_map_compute_flow that
15202         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
15203         (compute_deps): Remove.
15204         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
15205         (debug_schedule_ast): New.
15206         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
15207         set_separate_option.
15208         (graphite_regenerate_ast_isl): Add dump.
15209         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
15210         from scop->transformed_schedule.
15211         (graphite_regenerate_ast_isl): Add more dump.
15212         * graphite-optimize-isl.c (optimize_isl): Set
15213         scop->transformed_schedule.  Check whether schedules are equal.
15214         (apply_poly_transforms): Move here.
15215         * graphite-poly.c (apply_poly_transforms): ... from here.
15216         (free_poly_bb): Static.
15217         (free_scop): Static.
15218         (pbb_number_of_iterations_at_time): Remove.
15219         (print_isl_ast): New.
15220         (debug_isl_ast): New.
15221         (debug_scop_pbb): New.
15222         * graphite-scop-detection.c (print_edge): Move.
15223         (print_sese): Move.
15224         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
15225         (build_scop_scattering): Remove.
15226         (create_pw_aff_from_tree): Assert instead of bailing out.
15227         (add_condition_to_pbb): Remove unused code, do not fail.
15228         (add_conditions_to_domain): Same.
15229         (add_conditions_to_constraints): Remove.
15230         (build_scop_context): New.
15231         (add_iter_domain_dimension): New.
15232         (build_iteration_domains): Initialize pbb->iterators.
15233         Call add_conditions_to_domain.
15234         (nested_in): New.
15235         (loop_at): New.
15236         (index_outermost_in_loop): New.
15237         (index_pbb_in_loop): New.
15238         (outermost_pbb_in): New.
15239         (add_in_sequence): New.
15240         (add_outer_projection): New.
15241         (outer_projection_mupa): New.
15242         (add_loop_schedule): New.
15243         (build_schedule_pbb): New.
15244         (build_schedule_loop): New.
15245         (embed_in_surrounding_loops): New.
15246         (build_schedule_loop_nest): New.
15247         (build_original_schedule): New.
15248         (build_poly_scop): Call build_original_schedule.
15249         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
15250         (free_poly_dr): Remove.
15251         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
15252         (free_poly_bb): Remove.
15253         (debug_loop_vec): Remove.
15254         (print_isl_ast): Declare.
15255         (debug_isl_ast): Declare.
15256         (scop_do_interchange): Remove.
15257         (scop_do_strip_mine): Remove.
15258         (scop_do_block): Remove.
15259         (flatten_all_loops): Remove.
15260         (optimize_isl): Remove.
15261         (pbb_number_of_iterations_at_time): Remove.
15262         (debug_scop_pbb): Declare.
15263         (print_schedule_ast): Declare.
15264         (debug_schedule_ast): Declare.
15265         (struct scop): Remove schedule.  Add original_schedule,
15266         transformed_schedule.
15267         (free_gimple_poly_bb): Remove.
15268         (print_generated_program): Remove.
15269         (debug_generated_program): Remove.
15270         (unify_scattering_dimensions): Remove.
15271         * sese.c (print_edge): ... here.
15272         (print_sese): ... here.
15273         (debug_edge): ... here.
15274         (debug_sese): ... here.
15275         * sese.h (print_edge): Declare.
15276         (print_sese): Declare.
15277         (dump_edge): Declare.
15278         (dump_sese): Declare.
15279
15280 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
15281             Sebastian Pop  <s.pop@samsung.com>
15282
15283         * Makefile.in: Set ISLVER in site.exp.
15284
15285 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
15286
15287         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
15288         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
15289         through DECL_VALUE_EXPR for expansion.
15290
15291 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15292
15293         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
15294         the frame info after reload completed.
15295
15296 2016-01-25  Jeff Law  <law@redhat.com>
15297
15298         PR tree-optimization/69196
15299         PR tree-optimization/68398
15300         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
15301         tree-ssa-threadupdate.c.
15302         (determine_bb_domination_status): Prototype
15303         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
15304         (determine_bb_domination_status): No longer static.
15305         (valid_jump_thread_path): Remove code to detect characteristics
15306         of the jump thread path not associated with correctness.
15307         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
15308         Correct test for thread path length.  Count PHIs for real operands as
15309         statements that need to be copied.  Do not count ASSERT_EXPRs.
15310         Look at all the blocks in the thread path.  Compute and selectively
15311         filter thread paths based on threading through the latch, threading
15312         a multiway branch or crossing a multiway branch.
15313
15314 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15315
15316         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
15317         decl with __attribute__ ((unused)) annotation.
15318
15319 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
15320
15321         PR target/69421
15322         * tree-vect-stmts.c (vectorizable_condition): Check vectype
15323         of operands is compatible with a statement vectype.
15324
15325 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
15326
15327         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
15328         improve wording for mixed storage order support.
15329
15330 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
15331
15332         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
15333         (vcvt_u64_f64): Likewise.
15334         (vcvta_s64_f64): Likewise.
15335         (vcvta_u64_f64): Likewise.
15336         (vcvtm_s64_f64): Likewise.
15337         (vcvtm_u64_f64): Likewise.
15338         (vcvtn_s64_f64): Likewise.
15339         (vcvtn_u64_f64): Likewise.
15340         (vcvtp_s64_f64): Likewise.
15341         (vcvtp_u64_f64): Likewise.
15342
15343 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
15344
15345         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
15346         (arc_init): Check validity mll64 option.
15347         (arc_save_restore): Use double load/store instruction.
15348         (arc_expand_movmem): Likewise.
15349         (arc_split_move): Don't split if we have double load/store
15350         instructions. Returns a boolean.
15351         (arc_process_double_reg_moves): Change function to return boolean
15352         instead of a sequence of instructions.
15353         (arc_dwarf_register_span): New function.
15354         * config/arc/arc-protos.h (arc_split_move): Change prototype.
15355         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
15356         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
15357         (*movdf_insn): Likewise.
15358         * config/arc/arc.opt (mll64): New option.
15359         * config/arc/predicates.md (even_register_operand): New predicate.
15360         * doc/invoke.texi (ARC Options): Add mll64 documentation.
15361
15362 2016-01-25  Richard Biener  <rguenther@suse.de>
15363
15364         PR lto/69393
15365         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
15366         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
15367         DECL_NAMELESS.
15368         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
15369
15370 2016-01-25  Richard Biener  <rguenther@suse.de>
15371
15372         PR tree-optimization/69376
15373         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
15374         flag.
15375         (VN_INFO_ANTI_RANGE_P): New inline.
15376         (VN_INFO_RANGE_TYPE): Likewise.
15377         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
15378         SSA_NAME_ANTI_RANGE_P.
15379         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
15380         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15381         Properly query VN_INFO_RANGE_TYPE.
15382
15383 2016-01-25  Nick Clifton  <nickc@redhat.com>
15384
15385         PR target/66655
15386         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
15387
15388 2016-01-23  Tom de Vries  <tom@codesourcery.com>
15389
15390         PR tree-optimization/69426
15391         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
15392         removed clobber.
15393
15394 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
15395
15396         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
15397         "the the" with "the" in the comments.
15398         * ipa-devirt.c (build_type_inheritance_graph,
15399         update_type_inheritance_graph): Likewise.
15400         * tree.c (build_function_type_list_1): Likewise.
15401         * cfgloopmanip.c (scale_loop_profile): Likewise.
15402         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
15403         * gimple-ssa-split-paths.c
15404         (find_block_to_duplicate_for_splitting_paths): Likewise.
15405         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
15406         * expr.c (convert_move): Likewise.
15407         * var-tracking.c (vt_stack_adjustments): Likewise.
15408         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15409         * tree-vrp.c (test_for_singularity): Likewise.
15410
15411         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
15412         directly instead of building a temporary tree.
15413
15414         PR bootstrap/69434
15415         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
15416         remove <algorithm> include.
15417
15418 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
15419
15420         PR target/69432
15421         * config/i386/i386.c: Include dojump.h.
15422         (expand_small_movmem_or_setmem,
15423         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
15424         fixes.
15425         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
15426         if dynamic_check != -1.
15427
15428 2016-01-21  Jeff Law  <law@redhat.com>
15429
15430         PR middle-end/69347
15431         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
15432         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
15433         into dominated_by_p.
15434         (cprop_into_successor_phis): Avoid unnecessary tests.
15435
15436 2016-01-22  Richard Henderson  <rth@redhat.com>
15437
15438         PR target/69416
15439         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
15440         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
15441
15442 2016-01-22  Michael Matz  <matz@suse.de>
15443
15444         * system.h (string, algorithm): Include only conditionally.
15445         (new): Include always under C++.
15446         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
15447         * final.c (toplevel): Ditto.
15448         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
15449         * genconditions.c (write_header): Make gencondmd.c define
15450         INCLUDE_STRING.
15451         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
15452
15453         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
15454         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
15455
15456 2016-01-22  Christian Bruel  <christian.bruel@st.com>
15457
15458         PR target/68674
15459         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
15460
15461 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15462
15463         PR target/69403
15464         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
15465         define_insn_and_split.  Ensure operands[1] and operands[0] do not
15466         get assigned the same register.
15467
15468 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
15469
15470         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
15471
15472 2016-01-22  Christian Bruel  <christian.bruel@st.com>
15473
15474         * config/arm/arm-c.c (arm_pragma_target_parse):
15475         Remove warn_builtin_macro_redefined overwrite.
15476
15477 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15478
15479         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
15480         flag_non_call_exceptions compatibility.
15481
15482 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
15483
15484         PR debug/66668
15485         * dwarf2out.c (add_child_die_after): New function.
15486         (dwarf_qual_info_t): New type.
15487         (dwarf_qual_info): New variable.
15488         (qualified_die_p): New function.
15489         (modified_type_die): For -fdebug-types-section, ensure
15490         canonical order of qualifiers.  Put qualified DIEs adjacent
15491         to the corresponding non-qualified type DIE and search there
15492         for existing qualified DIEs.
15493
15494 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15495
15496         * doc/extend.texi (scalar_storage_order type attribute): Document
15497         restriction on type punning and aliasing, and remove future tense.
15498
15499 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
15500
15501         PR target/69252
15502         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
15503         first stage.
15504
15505 2016-01-21  Jeff Law  <law@redhat.com>
15506
15507         PR middle-end/69347
15508         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
15509         useless call to record_temporary_equivalences.
15510         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
15511         allocate 10 slots in the bb_path vector and let it grow as needed.
15512         (fsm_find_control_statement_thread_paths): Similarly for the next_path
15513         vector.
15514
15515 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
15516
15517         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
15518         Detangle.
15519         * configure: Regenerate.
15520
15521 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
15522
15523         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
15524         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
15525
15526 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
15527
15528         PR middle-end/66178
15529         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
15530         drop EXPAND_INITIALIZER.
15531         * rtl.h (contains_symbolic_reference_p): Declare.
15532         * rtlanal.c (contains_symbolic_reference_p): New function.
15533         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
15534         a subtraction into a NOT if symbolic constants are involved.
15535
15536 2016-01-21  Anton Blanchard  <anton@samba.org>
15537             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15538
15539         PR target/63354
15540         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
15541         #define.
15542         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
15543         function.
15544
15545 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
15546
15547         * config/microblaze/microblaze.c
15548         (get_branch_target): New.
15549         (insert_wic_for_ilb_runout): New.
15550         (insert_wic): New.
15551         (microblaze_machine_dependent_reorg): New.
15552         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
15553         * config/microblaze/microblaze.md
15554         (UNSPEC_IPREFETCH): Define.
15555         (iprefetch): New pattern
15556         * config/microblaze/microblaze.opt
15557         (mxl-prefetch): New flag.
15558
15559 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
15560
15561         * config/microblaze/microblaze.h
15562         (FIXED_REGISTERS): Update in macro.
15563         (CALL_USED_REGISTERS): Update in macro.
15564
15565 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
15566
15567         PR rtl-optimization/68920
15568         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
15569         moves.
15570
15571 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
15572
15573         PR rtl-optimization/68990
15574         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
15575         pseudo instead of inheritance ones.
15576
15577 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15578             Nick Clifton  <nickc@redhat.com>
15579
15580         PR target/69129
15581         PR target/69012
15582         * config/mips/mips.c (mips_compute_frame_info): Initialise
15583         args_size and hard_frame_pointer_offset fields of the frame
15584         structure before calling mips_global_pointer.
15585
15586 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
15587
15588         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
15589         label reference.
15590         * configure: Regenerate.
15591
15592 2016-01-21  Richard Biener  <rguenther@suse.de>
15593
15594         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
15595
15596 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
15597
15598         * config/s390/s390.c (s390_asm_declare_function_size): Add code
15599         to actually emit the .size directive.
15600
15601 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
15602              Jakub Jelinek  <jakub@redhat.com>
15603
15604         PR target/69187
15605         PR target/65624
15606         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
15607         args array size by one to avoid buffer overflow.
15608
15609 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
15610
15611         * config/s390/s390.md (pool_section_start): Use switch_to_section
15612         to select proper read-only data section instead of hardcoding
15613         .rodata.
15614         (pool_section_end): Use switch_to_section to match the above.
15615
15616 2016-01-21  Richard Biener  <rguenther@suse.de>
15617
15618         PR tree-optimization/69378
15619         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
15620         (set_ssa_val_to): Use it for dominance checks taking into
15621         account not executable edges.
15622
15623 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
15624
15625         PR c++/69355
15626         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
15627         for bitsize instead of GET_MODE_PRECISION (mode).
15628
15629 2016-01-20  Martin Sebor  <msebor@redhat.com>
15630
15631         PR c/52291
15632         * extend.texi (__sync Builtins): Clarify the semantics of
15633         __sync_fetch_and_OP built-ins on pointers.
15634         (__atomic Builtins): Same.
15635
15636 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15637             Sebastian Pop  <s.pop@samsung.com>
15638
15639         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
15640         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
15641         (is_valid_rename): Same.
15642         (translate_isl_ast_to_gimple::get_rename): Same.
15643         (translate_isl_ast_to_gimple::rename_all_uses): Same.
15644         (translate_isl_ast_to_gimple::rename_uses): Same.
15645         (get_new_name): Check for close_phi nodes.
15646         (copy_loop_phi_args): Use phi_node_kind.
15647         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
15648         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
15649
15650 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15651             Sebastian Pop  <s.pop@samsung.com>
15652
15653         Revert commit r229783.
15654         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15655         Remove use of parameter_rename_map.
15656         (copy_def): Remove.
15657         (copy_internal_parameters): Remove.
15658         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
15659         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
15660         (free_sese_info): Do not free parameter_rename_map.
15661         (set_rename): Do not use parameter_rename_map.
15662         (rename_uses): Update call to set_rename.
15663         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
15664         * sese.h (parameter_rename_map_t): Remove.
15665         (struct sese_info_t): Remove field parameter_rename_map.
15666
15667 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15668             Sebastian Pop  <s.pop@samsung.com>
15669
15670         * graphite-isl-ast-to-gimple.c: Fix comment.
15671         * graphite-scop-detection.c (defined_in_loop_p): New.
15672         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
15673         names defined in loop.
15674
15675 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15676             Sebastian Pop  <s.pop@samsung.com>
15677
15678         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
15679         Discard unstructured if-then-else regions.
15680
15681 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15682             Sebastian Pop  <s.pop@samsung.com>
15683
15684         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
15685         (cleanup_loop_iter_dom): Remove.
15686         (build_loop_iteration_domains): Remove.
15687         (build_scop_context): Remove.
15688         (build_scop_iteration_domain): Remove.
15689         (add_loop_constraints): New.
15690         (build_iteration_domains): New.
15691         (build_poly_scop): Call build_iteration_domains.
15692
15693 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15694             Sebastian Pop  <s.pop@samsung.com>
15695
15696         * graphite-scop-detection.c
15697         (scop_detection::harmful_loop_in_region): Free dom and loops.
15698         (scop_detection::loop_body_is_valid_scop): Free bbs.
15699
15700 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15701             Sebastian Pop  <s.pop@samsung.com>
15702
15703         * graphite-scop-detection.c (record_loop_in_sese): New.
15704         (gather_bbs::before_dom_children): Call record_loop_in_sese.
15705         (build_scops): Remove call to build_sese_loop_nests.
15706         * sese.c (sese_record_loop): Remove.
15707         (build_sese_loop_nests): Remove.
15708         (new_sese_info): Remove region->loops.
15709         (free_sese_info): Same.
15710         * sese.h (sese_contains_loop): Same.
15711         (build_sese_loop_nests): Remove.
15712         (sese_contains_loop): Remove.
15713
15714 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15715             Sebastian Pop  <s.pop@samsung.com>
15716
15717         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
15718         loop_is_valid_in_scop.
15719         (scop_detection::harmful_stmt_in_region): Renamed
15720         harmful_loop_in_region.
15721         Call loop_is_valid_in_scop.
15722
15723 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15724             Sebastian Pop  <s.pop@samsung.com>
15725
15726         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
15727         isl_ast_node_mark.
15728
15729 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15730             Sebastian Pop  <s.pop@samsung.com>
15731
15732         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
15733         * graphite.h (struct poly_bb): Remove field is_reduction.
15734         (PBB_IS_REDUCTION): Remove.
15735
15736 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15737             Sebastian Pop  <s.pop@samsung.com>
15738
15739         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
15740         (add_pdr_constraints): Same.
15741         (scop_get_reads): Same.
15742         (scop_get_must_writes): Same.
15743         (scop_get_may_writes): Same.
15744         (scop_get_original_schedule): Same.
15745         (extend_schedule): Same.
15746         (apply_schedule_on_deps): Same.
15747         (carries_deps): Same.
15748         (compute_deps): Same.
15749         (scop_get_dependences): Same.
15750         * graphite-isl-ast-to-gimple.c
15751         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
15752         * graphite-optimize-isl.c (get_schedule_for_band): Same.
15753         (get_schedule_for_band_list): Same.
15754         (get_schedule_map): Same.
15755         (apply_schedule_map_to_scop): Same.
15756         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15757         (build_loop_iteration_domains): Same.
15758         (add_condition_to_pbb): Same.
15759         (add_param_constraints): Same.
15760         (pdr_add_memory_accesses): Same.
15761         (pdr_add_data_dimensions): Same.
15762
15763 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
15764
15765         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
15766         requirements.
15767
15768 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
15769
15770         * common.opt (feliminate-dwarf2-dups): Replace references to
15771         "DWARF 2" with just "DWARF".
15772         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
15773         * doc/extend.texi: Likewise.
15774         * doc/cpp.texi: Likewise.
15775         * doc/invoke.texi: Likewise.
15776         (Option Summary): Add -gdwarf to list of Debugging Options.
15777         (Debugging Options): Document -gdwarf.
15778         * doc/contrib.texi: Spell "DWARF" like that.
15779
15780 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
15781
15782         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
15783         warning.  Fix up formatting.
15784
15785         PR middle-end/67653
15786         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
15787         attempt to mark memory input operand addressable and
15788         call prepare_gimple_addressable in that case.  Don't adjust
15789         input_location for diagnostics, use error_at instead.
15790
15791 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
15792
15793         * config/rs6000/ppc-auxv.h: New file.
15794         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
15795         (cpu_is): Likewise.
15796         (cpu_supports): Likewise.
15797         * config/rs6000/rs6000.c: include "ppc-auxv.h".
15798         (cpu_is_info): New variable.
15799         (cpu_supports_info): Likewise.
15800         (tcb_verification_symbol): Likewise.
15801         (cpu_builtin_p): Likewise.
15802         (cpu_expand_builtin): New function.
15803         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
15804         (rs6000_init_builtins): Likewise.
15805         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
15806         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
15807         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
15808         * configure: Regenerate.
15809         * config.in: Likewise.
15810         * doc/extend.texi (PowerPC Built-in Functions): Document
15811         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
15812
15813 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
15814
15815         PR target/68609
15816         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
15817         domain check.
15818         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
15819         for V4SFmode.
15820
15821 2016-01-20  Richard Henderson  <rth@redhat.com>
15822
15823         PR bootstrap/69343
15824         PR bootstrap/69339
15825         PR tree-opt/68964
15826         Revert:
15827         * tree.c (tm_define_builtin): New.
15828         (find_tm_vector_type): New.
15829         (build_tm_vector_builtins): New.
15830         (build_common_builtin_nodes): Call it.
15831
15832 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
15833
15834         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
15835         (arm_fp_ok): Likewise.
15836         (arm_fp): Likewise.
15837         (arm_crypto): Likewise.
15838
15839 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
15840             Richard Biener  <rguenther@suse.de>
15841
15842         PR tree-optimization/69328
15843         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
15844         vectors have same number of elements.
15845         (vectorizable_condition): Fix masked version recognition.
15846
15847 2016-01-20  Richard Biener  <rguenther@suse.de>
15848
15849         PR tree-optimization/69345
15850         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
15851         (VN_INFO_PTR_INFO): Likewise.
15852         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
15853         info when it is equal between non-dominating SSA names.
15854         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15855         Make sure to look at original SSA infos.
15856
15857 2016-01-20  Jeff Law  <law@redhat.com>
15858
15859         PR target/25114
15860         * config/m68k/predicates.md (pow2_m1_operand): New predicate
15861         extracted from ...
15862         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
15863         (pc_or_label_operand): New predicate.
15864         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
15865         tests for small integers that are 2^n - 1.
15866
15867 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
15868
15869         * doc/invoke.texi (Options Summary): Add '.' after @xref.
15870
15871 2016-01-19  Jeff Law  <law@redhat.com>
15872
15873         PR middle-end/69347
15874         * tree-ssa-threadbackwards.c
15875         (fsm_find_control_statement_thread_paths): Do not try to lookup
15876         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
15877
15878 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
15879
15880         * doc/lto.texi: Remove text that says only Gold has linker plugin
15881         support.
15882
15883 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
15884
15885         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
15886         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
15887         the DIE accordingly.
15888         (modified_type_die): Add REVERSE parameter and pass it recursively,
15889         as well as to base_type_die.  Adjust presence check accordingly.
15890         (base_type_for_mode): Adjust call to modified_type_die.
15891         (add_type_attribute): Add REVERSE parameter and pass it to
15892         modified_type_die.
15893         (generic_parameter_die): Adjust call to add_type_attribute.
15894         (add_scalar_info): Likewise.
15895         (add_subscript_info): Likewise.
15896         (gen_array_type_die): Likewise.
15897         (gen_descr_array_type_die): Likewise.
15898         (gen_entry_point_die): Likewise.
15899         (gen_enumeration_type_die): Likewise.
15900         (gen_formal_parameter_die): Likewise.
15901         (gen_subprogram_die): Likewise.
15902         (gen_variable_die ): Likewise.
15903         (gen_const_die): Likewise.
15904         (gen_field_die): Likewise.
15905         (gen_pointer_type_die): Likewise.
15906         (gen_reference_type_die): Likewise.
15907         (gen_ptr_to_mbr_type_die): Likewise.
15908         (gen_inheritance_die): Likewise.
15909         (gen_subroutine_type_die): Likewise.
15910         (gen_typedef_die): Likewise.
15911         (force_type_die): Adjust call to modified_type_die.
15912
15913 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
15914
15915         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
15916         flow throughout the file.  Fix broken link to Objective-C 2.0
15917         documentation.
15918         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
15919         errors.
15920
15921 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
15922
15923         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
15924
15925 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15926
15927         PR ipa/66223
15928         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
15929         (maybe_record_node): Record cxa_pure_virtual as the only possible
15930         target if there are not ohter candidates.
15931         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
15932
15933 2016-01-19  Richard Biener  <rguenther@suse.de>
15934
15935         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
15936         (get_memory_order): Likewise.
15937
15938 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
15939
15940         * tree-vect-stmts.c (vectorizable_store): Check
15941         rhs vectype.
15942
15943 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
15944
15945         PR jit/68446
15946         * gcc.c (driver::decode_argv): Add call to
15947         init_opts_obstack before init_options_struct.
15948         * opts.c (init_opts_obstack): Remove idempotency.
15949         (init_options_struct): Replace call to init_opts_obstack
15950         with a gcc_assert to verify that it has already been called.
15951         * toplev.c (toplev::main): Add call to init_opts_obstack before
15952         calls to init_options_struct.
15953         (toplev::finalize): Move cleanup of opts_obstack next to
15954         cleanup of save_decoded_options, clearing the latter, and
15955         save_decoded_options_count.
15956
15957 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15958
15959         PR target/69135
15960         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
15961         attribute to unconditional.  Remove %? from output template.
15962
15963 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
15964             Jiong Wang  <jiong.wang@arm.com>
15965
15966         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
15967         generated from different expand order.
15968
15969 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
15970
15971         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
15972         Add support for CCMP costing.
15973
15974 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
15975
15976         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
15977         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
15978         (fccmpe<mode>): Likewise.
15979         (fcmp): Rename to fcmp and globalize pattern.
15980         (fcmpe): Likewise.
15981         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
15982         (aarch64_gen_ccmp_next): Add FP support.
15983
15984 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
15985
15986         * target.def (gen_ccmp_first): Update documentation.
15987         (gen_ccmp_next): Likewise.
15988         * doc/tm.texi (gen_ccmp_first): Update documentation.
15989         (gen_ccmp_next): Likewise.
15990         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
15991         expand_ccmp_expr_1.  Improve comments.
15992         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
15993         (ccmp_ior<mode>): Remove pattern.
15994         (cmp<mode>): Remove expand.
15995         (cmp): Globalize pattern.
15996         (cstorecc4): Use cc_register.
15997         (mov<mode>cc): Remove ccmp_cc_register check.
15998         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
15999         Simplify after removal of CC_DNE/* modes.
16000         (aarch64_ccmp_mode_to_code): Remove.
16001         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
16002         In 'k' case use integer as condition.
16003         (aarch64_nzcv_codes): Remove inverted cases.
16004         (aarch64_code_to_ccmode): Remove.
16005         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
16006         comparison with CC register to be used in folowing CCMP/branch/CSEL.
16007         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
16008         pattern.  Return the comparison with CC register.  Invert conditions
16009         when bitcode is OR.
16010         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
16011         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
16012
16013 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16014
16015         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
16016         instrumented_version.
16017
16018 2016-01-19  Richard Biener  <rguenther@suse.de>
16019
16020         PR tree-optimization/69336
16021         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
16022         handled components with get_ref_base_and_extent.
16023         (equal_mem_array_ref_p): Adjust.
16024
16025 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16026
16027         PR debug/65779
16028         * shrink-wrap.c: Include valtrack.h.
16029         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
16030         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
16031         in between insn and where it will be moved to.  Call
16032         dead_debug_insert_temp.
16033         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
16034         first and dead_debug_local_finish at the end.
16035         For uses and defs bitmap, handle all regs in between REGNO and
16036         END_REGNO, not just the first one.
16037
16038 2016-01-19  Richard Biener  <rguenther@suse.de>
16039
16040         PR tree-optimization/69352
16041         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
16042         (equal_mem_array_ref_p): Constrain size and max size properly.
16043         Compare the reverse flag.
16044
16045 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
16046
16047         * ira.c (ira): Update regstat data if we deleted insns.
16048
16049 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
16050
16051         PR rtl-optimization/68955
16052         PR rtl-optimization/64557
16053         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
16054         here.  Fix up formatting.
16055         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
16056
16057 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16058
16059         PR lto/69133
16060         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
16061         assume that the node has body.
16062         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
16063         check.
16064
16065 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16066
16067         * lto-streamer-out.c (lto_output): Do not stream instrumentation
16068         thunks.
16069
16070 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
16071
16072         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
16073         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
16074
16075 2016-01-19  Martin Jambor  <mjambor@suse.cz>
16076             Martin Liska  <mliska@suse.cz>
16077             Michael Matz  <matz@suse.de>
16078
16079         * Makefile.in (OBJS): Add new source files.
16080         (GTFILES): Add hsa.c.
16081         * common.opt (disable_hsa): New variable.
16082         (-Whsa): New warning.
16083         * config.in (ENABLE_HSA): New.
16084         * configure.ac: Treat hsa differently from other accelerators.
16085         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
16086         $enable_offloading.
16087         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
16088         * doc/install.texi (Configuration): Document --with-hsa-runtime,
16089         --with-hsa-runtime-include, --with-hsa-runtime-lib and
16090         --with-hsa-kmt-lib.
16091         * doc/invoke.texi (-Whsa): Document.
16092         (hsa-gen-debug-stores): Likewise.
16093         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
16094         to invoke offload compiler for hsa acclerator.
16095         * opts.c (common_handle_option): Determine whether HSA offloading
16096         should be performed.
16097         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
16098         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
16099         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
16100         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
16101         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
16102         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
16103         GF_OMP_FOR_KIND_GRID_LOOP.
16104         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
16105         (pp_gimple_stmt_1): Likewise.
16106         * gimple-walk.c (walk_gimple_stmt): Likewise.
16107         * gimple.c (gimple_build_omp_grid_body): New function.
16108         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
16109         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
16110         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
16111         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
16112         GF_OMP_TEAMS_GRID_PHONY.
16113         (gimple_statement_omp_single_layout): Updated comments.
16114         (gimple_build_omp_grid_body): New function.
16115         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
16116         (gimple_omp_for_grid_phony): New function.
16117         (gimple_omp_for_set_grid_phony): Likewise.
16118         (gimple_omp_parallel_grid_phony): Likewise.
16119         (gimple_omp_parallel_set_grid_phony): Likewise.
16120         (gimple_omp_teams_grid_phony): Likewise.
16121         (gimple_omp_teams_set_grid_phony): Likewise.
16122         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
16123         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
16124         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
16125         (BUILT_IN_GOMP_TARGET): Updated type.
16126         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
16127         (adjust_for_condition): New function.
16128         (get_omp_for_step_from_incr): Likewise.
16129         (extract_omp_for_data): Moved parts to adjust_for_condition and
16130         get_omp_for_step_from_incr.
16131         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
16132         (fixup_child_record_type): Bail out if receiver_decl is NULL.
16133         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
16134         (scan_omp_parallel): Do not create child functions for phony
16135         constructs.
16136         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
16137         (scan_omp_1_op): Checking assert we are not remapping to
16138         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
16139         (parallel_needs_hsa_kernel_p): New function.
16140         (expand_parallel_call): Register apprpriate parallel child
16141         functions as HSA kernels.
16142         (grid_launch_attributes_trees): New type.
16143         (grid_attr_trees): New variable.
16144         (grid_create_kernel_launch_attr_types): New function.
16145         (grid_insert_store_range_dim): Likewise.
16146         (grid_get_kernel_launch_attributes): Likewise.
16147         (get_target_argument_identifier_1): Likewise.
16148         (get_target_argument_identifier): Likewise.
16149         (get_target_argument_value): Likewise.
16150         (push_target_argument_according_to_value): Likewise.
16151         (get_target_arguments): Likewise.
16152         (expand_omp_target): Call get_target_arguments instead of looking
16153         up for teams and thread limit.
16154         (grid_expand_omp_for_loop): New function.
16155         (grid_arg_decl_map): New type.
16156         (grid_remap_kernel_arg_accesses): New function.
16157         (grid_expand_target_kernel_body): New function.
16158         (expand_omp): Call it.
16159         (lower_omp_for): Do not emit phony constructs.
16160         (lower_omp_taskreg): Do not emit phony constructs but create for them
16161         a temporary variable receiver_decl.
16162         (lower_omp_taskreg): Do not emit phony constructs.
16163         (lower_omp_teams): Likewise.
16164         (lower_omp_grid_body): New function.
16165         (lower_omp_1): Call it.
16166         (grid_reg_assignment_to_local_var_p): New function.
16167         (grid_seq_only_contains_local_assignments): Likewise.
16168         (grid_find_single_omp_among_assignments_1): Likewise.
16169         (grid_find_single_omp_among_assignments): Likewise.
16170         (grid_find_ungridifiable_statement): Likewise.
16171         (grid_target_follows_gridifiable_pattern): Likewise.
16172         (grid_remap_prebody_decls): Likewise.
16173         (grid_copy_leading_local_assignments): Likewise.
16174         (grid_process_kernel_body_copy): Likewise.
16175         (grid_attempt_target_gridification): Likewise.
16176         (grid_gridify_all_targets_stmt): Likewise.
16177         (grid_gridify_all_targets): Likewise.
16178         (execute_lower_omp): Call grid_gridify_all_targets.
16179         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
16180         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
16181         (tree_omp_clause): Added union field dimension.
16182         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
16183         * tree.c (omp_clause_num_ops): Added number of arguments of
16184         OMP_CLAUSE__GRIDDIM_.
16185         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
16186         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
16187         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
16188         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
16189         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
16190         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
16191         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
16192         * tree-pass.h (make_pass_gen_hsail): Declare.
16193         (make_pass_ipa_hsa): Likewise.
16194         * ipa-hsa.c: New file.
16195         * lto-section-in.c (lto_section_name): Add hsa section name.
16196         * lto-streamer.h (lto_section_type): Add hsa section.
16197         * timevar.def (TV_IPA_HSA): New.
16198         * hsa-brig-format.h: New file.
16199         * hsa-brig.c: New file.
16200         * hsa-dump.c: Likewise.
16201         * hsa-gen.c: Likewise.
16202         * hsa.c: Likewise.
16203         * hsa.h: Likewise.
16204         * toplev.c (compile_file): Call hsa_output_brig.
16205         * hsa-regalloc.c: New file.
16206
16207 2016-01-18  Jeff Law  <law@redhat.com>
16208
16209         PR tree-optimization/69320
16210         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
16211         ranged object, do nothing if the RHS constant is not [0..1].
16212         (optimize_stmt): Comparing a boolean ranged object against a
16213         constant outside [0..1] results in a compile-time constant.
16214
16215         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
16216         test.
16217
16218 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
16219
16220         * doc/invoke.texi (Invoking GCC): Add new section to menu.
16221         (Option Summary): Update to reflect new section and moved options.
16222         (C++ Dialect Options): Move -fstats to new section.
16223         (Debugging Options): Move all dump, statistics, and other GCC
16224         developer options to new section.  Rewrite section introduction
16225         and re-order remaining options to put the more basic ones first.
16226         (Optimization Options): Move -fira-verbose and -flto-report* to
16227         new section.
16228         (Developer Options): New section incorporating moved options.
16229         * doc/cppopts.texi (-dM): Update cross-reference.
16230
16231 2016-01-18  Richard Henderson  <rth@redhat.com>
16232
16233         PR target/69176
16234         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
16235         operands to pseudo only if CSE is expected.  Split long immediate
16236         operands only after reload, and for the stack pointer.
16237         (*add<GPI>3_pluslong): Remove.
16238         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
16239         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
16240         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
16241         (*add<GPI>3 peepholes): New.
16242         (*add<GPI>3 splitters): New.
16243         * config/aarch64/constraints.md (Upl): New.
16244         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
16245
16246 2016-01-18  Richard Biener  <rguenther@suse.de>
16247
16248         PR tree-optimization/69297
16249         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
16250         stmt at most once.
16251         (vect_bb_vectorization_profitable_p): Clear visited flag again.
16252
16253 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
16254
16255         PR middle-end/68542
16256         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
16257         of mixind vector and scalar types.
16258         (fold_relational_const): Add handling of vector
16259         comparison with boolean result.
16260         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
16261         comparison of vector operands with boolean result for EQ/NE only.
16262         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
16263         (verify_gimple_cond): Likewise.
16264         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
16265         valid type of VAL.
16266
16267 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
16268
16269         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
16270         !TARGET_OCTEON.
16271
16272 2016-01-18  Richard Biener  <rguenther@suse.de>
16273
16274         PR middle-end/69308
16275         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
16276
16277 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16278
16279         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
16280
16281 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16282
16283         * omp-low.c (set_oacc_fn_attrib): Make extern.
16284         * omp-low.h (set_oacc_fn_attrib): Declare.
16285         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
16286         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
16287         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
16288         Add and handle function parameter oacc_kernels_p.
16289         (find_reduc_addr, get_omp_data_i_param): New function.
16290         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
16291         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
16292         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
16293         Calculate dominance info.  Skip loops that are not in a kernels region
16294         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
16295         (pass_parallelize_loops::execute): Call parallelize_loops with
16296         oacc_kernels_p argument.
16297         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
16298         New member function.
16299         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
16300         * passes.def: Add argument to pass_parallelize_loops instantation.
16301
16302 2016-01-18  Tom de Vries  <tom@codesourcery.com>
16303
16304         * tree-parloops.c (pass_parallelize_loops::execute): Allow
16305         pass_parallelize_loops to be run outside the loop pipeline.
16306
16307 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16308
16309         * tree-scalar-evolution.c (follow_copies_to_constant): New.
16310         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
16311
16312 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16313
16314         PR target/63679
16315         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
16316         using get_ref_base_and_extent.
16317         (equal_mem_array_ref_p): New.
16318         (hashable_expr_equal_p): Add call to previous.
16319
16320 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
16321
16322         PR target/63679
16323         * tree-sra.c (disqualified_constants, constant_decl_p): New.
16324         (sra_initialize): Allocate disqualified_constants.
16325         (sra_deinitialize): Free disqualified_constants.
16326         (disqualify_candidate): Update disqualified_constants when appropriate.
16327         (create_access): Scan for constant-pool entries as we go along.
16328         (scalarizable_type_p): Add check against type_contains_placeholder_p.
16329         (maybe_add_sra_candidate): Allow constant-pool entries.
16330         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
16331         (initialize_constant_pool_replacements): New.
16332         (sra_modify_assign): Avoid mangling assignments created by previous,
16333         and don't generate writes into constant pool.
16334         (sra_modify_function_body): Call initialize_constant_pool_replacements.
16335
16336 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16337
16338         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
16339         andnot instruction.
16340         (scalar_chain::convert_op): Likewise.
16341         * config/i386/i386.md (*andndi3_doubleword): New.
16342
16343 2016-01-18  Richard Biener  <rguenther@suse.de>
16344
16345         PR tree-optimization/69170
16346         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
16347         building a vector from scalar results of a pattern stmt.
16348
16349 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
16350
16351         * haifa-sched.c (autopref_multipass_init): Work around
16352         -Wmaybe-uninitialized warning.
16353
16354 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16355
16356         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
16357         against the constant 0.
16358
16359 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16360
16361         PR tree-optimization/68799
16362         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
16363         look up phi candidates in the statement-candidate map.
16364         (phi_add_costs): Likewise.
16365         (record_phi_increments): Likewise.
16366         (phi_incr_cost): Likewise.
16367         (ncd_with_phi): Likewise.
16368         (all_phi_incrs_profitable): Likewise.
16369
16370 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
16371
16372         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
16373         -Wmaybe-uninitialized warning.
16374
16375 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
16376
16377         * doc/invoke.texi (Invoking GCC): Add new section to menu.
16378         (Option Summary): Update to reflect new section and moved options.
16379         (C++ Dialect Options): Move -fvtable-verify and related options.
16380         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
16381         and profiling-related options.
16382         (Optimization Options): Move profile generation options and
16383         -fstack-protector and related options.
16384         (Instrumentation Options): New section incorporating moved options.
16385         (Code Generation Options): Move -finstrument-functions and
16386         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
16387
16388 2016-01-16  Tom de Vries  <tom@codesourcery.com>
16389
16390         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
16391
16392 2016-01-16  Tom de Vries  <tom@codesourcery.com>
16393
16394         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
16395
16396 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
16397
16398         * hash-table.h (hash_table::empty): Turn into an inline wrapper
16399         that checks whether the table is already empty.  Rename the
16400         original implementation to...
16401         (hash_table::empty_slot): ...this new private function.
16402
16403 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
16404
16405         PR diagnostic/68899
16406         * diagnostic-show-locus.c (layout::print_source_line): Move x
16407         offset of line until after call to
16408         get_line_width_without_trailing_whitespace.
16409
16410 2016-01-15  Jeff Law  <law@redhat.com>
16411
16412         PR tree-optimization/69270
16413         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
16414         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
16415         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
16416         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
16417         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
16418         ssa_name_has_boolean_range and constant_boolean_node.
16419
16420 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
16421
16422         PR rtl-optimization/69030
16423         * lra-spills.c (remove_pseudos): Check nrefs and make the function
16424         returning bool.
16425         (spill_pseudos): Delete debug insn for dead pseudo.
16426         (lra_spill): Initiate spill_hard_reg and slots memory separately.
16427
16428 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
16429
16430         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
16431         New.
16432         (TYPES_UNOPUS): Likewise.
16433         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
16434         builtin type, from UNOP to UNOPUS.
16435         (lbtruncuv4sf): Likewise.
16436         (lbtruncuv2df): Likewise.
16437         (lrounduv2sf): Likewise.
16438         (lrounduv4sf): Likewise.
16439         (lrounduv2df): Likewise.
16440         (lroundusf): Likewise.
16441         (lroundusf): Likewise.
16442         (lceiluv2sf): Likewise.
16443         (lceiluv4sf): Likewise.
16444         (lceiluv2df): Likewise.
16445         (lceilusf): Likewise.
16446         (lceiludf): Likewise.
16447         (lflooruv2sf): Likewise.
16448         (lflooruv4sf): Likewise.
16449         (lflooruv2df): Likewise.
16450         (lfloorusf): Likewise.
16451         (lfloorudf): Likewise.
16452         (lfrintnuv2sf): Likewise.
16453         (lfrintnuv4sf): Likewise.
16454         (lfrintnuv2df): Likewise.
16455         (lfrintnusf): Likewise.
16456         (lfrintnudf): Likewise.
16457         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
16458         conversion.
16459         (vcvtq_u32_f32): Likewise.
16460         (vcvtq_u64_f64): Likewise.
16461         (vcvta_u32_f32): Likewise.
16462         (vcvtaq_u32_f32): Likewise.
16463         (vcvtaq_u64_f64): Likewise.
16464         (vcvtm_u32_f32): Likewise.
16465         (vcvtmq_u32_f32): Likewise.
16466         (vcvtmq_u64_f64): Likewise.
16467         (vcvtn_u32_f32): Likwise.
16468         (vcvtnq_u32_f32): Likewise.
16469         (vcvtnq_u64_f64): Likewise.
16470         (vcvtp_u32_f32): Likewise.
16471         (vcvtpq_u32_f32): Likewise.
16472         (vcvtpq_u64_f64): Likewise.
16473         (vcvtmd_u64_f64): Likewise.
16474         (vcvtms_u32_f32): Likewise.
16475         (vcvtad_u64_f64): Likewise.
16476         (vcvtas_u32_f32): Likewise.
16477         (vcvtnd_u64_f64): Likewise.
16478         (vcvtns_u32_f32): Likewise.
16479         (vcvtpd_u64_f64): Likewise.
16480         (vcvtps_u32_f32): Likewise.
16481
16482 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16483
16484         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
16485         CSEL of zero_extended registers.
16486
16487 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16488
16489         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16490         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
16491
16492 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16493
16494         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
16495         false when argument string is not found in the attributes table
16496         at all.
16497
16498 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
16499
16500         PR target/68609
16501         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
16502         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
16503         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
16504         precision estimate.
16505
16506 2016-01-15  Richard Biener  <rguenther@suse.de>
16507
16508         PR tree-optimization/66856
16509         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
16510         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
16511         (vect_create_new_slp_node): Increment stmt reference count.
16512         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
16513         an SLP tree before swapping operands.
16514         (vect_build_slp_tree): Likewise.
16515         (destroy_bb_vec_info): Free stmt info after SLP instances.
16516         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
16517         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
16518         (STMT_VINFO_NUM_SLP_USES): New macro.
16519
16520 2016-01-15  Richard Biener  <rguenther@suse.de>
16521
16522         PR debug/69137
16523         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
16524         (add_linkage_name): ... here.
16525         (gen_typedef_die): Use add_linkage_name_raw instead of
16526         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
16527         if necessary.
16528
16529 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
16530
16531         * gimplify.c (oacc_default_clause): Decode reference and pointer
16532         types for both kernels and parallel regions.
16533
16534 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
16535
16536         PR middle-end/69246
16537         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
16538
16539 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16540
16541         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
16542         (convert_scalars_to_vector): Likewise.
16543
16544 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
16545
16546         * doc/extend.texi (Type Traits): Fix grammar.
16547
16548 2016-01-15  Martin Jambor  <mjambor@suse.cz>
16549
16550         * tree-inline.c (remap_decl): Use existing dclarations if
16551         remapping a type and prevent_decl_creation_for_types.
16552         (replace_locals_stmt): Do an initial remapping of non-VLA typed
16553         decls first.  Do real remapping with
16554         prevent_decl_creation_for_types set.
16555         * tree-inline.h (copy_body_data): New field
16556         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
16557         padding.
16558
16559 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16560
16561         * config/s390/s390.opt (mmvcle): More verbose help text.
16562
16563 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16564
16565         * config/s390/s390.opt: Add period to -mzvector option text.
16566
16567 2016-01-15  Richard Biener  <rguenther@suse.de>
16568
16569         PR tree-optimization/68961
16570         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
16571         of invariants in stores again.
16572
16573 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16574
16575         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
16576
16577 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16578
16579         * config/i386/i386.c (ix86_expand_branch): Don't split
16580         DI mode xor instruction to SI mode.
16581
16582 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
16583
16584         PR ipa/68148
16585         * ipa-icf.c (sem_function::merge): Virtual functions may become
16586         reachable even if they address is not taken and there are no
16587         idrect calls.
16588
16589 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
16590
16591         * lto-streamer-out.c (subtract_estimated_size): New function.
16592         (get_symbol_initial_value): Use it.
16593
16594 2016-01-15  Christian Bruel  <christian.bruel@st.com>
16595
16596         PR target/65837
16597         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
16598         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
16599         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
16600         use add_builtin_function_ext_scope instead of add_builtin_function.
16601         (neon_set_p, neon_crypto_set_p): Remove.
16602         (arm_init_builtins): Always call arm_init_neon_builtins and
16603         arm_init_crypto_builtins.
16604         (arm_expand_builtin): Check that builtins are allowed for the arch.
16605         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
16606         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
16607         arm_init_neon_builtins call.
16608
16609 2016-01-15  Richard Biener  <rguenther@suse.de>
16610
16611         PR tree-optimization/69117
16612         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
16613         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
16614         of the leader conservatively.
16615         (free_scc_vn): Restore original SSA name infos.
16616
16617 2016-01-14  Jeff Law  <law@redhat.com>
16618
16619         PR tree-optimization/69270
16620         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
16621         single bit of precision, verify it's also unsigned.
16622         (record_edge_info): Use constant_boolean_node rather than fold_convert
16623         to convert boolean_true/boolean_false to the right type.
16624
16625 2016-01-14  Richard Henderson  <rth@redhat.com>
16626
16627         PR rtl-opt/69014
16628         * loop-doloop.c (record_reg_sets): New.
16629         (doloop_optimize): Reject the transform if the sequence
16630         clobbers registers live at the end of the loop block.
16631         (doloop_optimize_loops): Enable df_live if needed.
16632
16633 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16634
16635         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
16636         * config/rs6000/rs6000.c: Likewise.
16637         * config/rs6000/rs6000.h: Likewise.
16638         * config/rs6000/rs6000.md: Likewise.
16639         * doc/extend.texi: Likewsie.
16640
16641 2016-01-14  Jeff Law  <law@redhat.com>
16642
16643         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
16644         typo.
16645
16646 2016-01-14  Richard Henderson  <rth@redhat.com>
16647
16648         PR c/69272
16649         PR tree-opt/68964
16650         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
16651         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
16652         instead of builtin_decl_declared_p to test for declaration.
16653
16654 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
16655
16656         * doc/loop.texi (Loop Analysis and Representation): Document
16657         loop_depth function.
16658
16659 2016-01-14  Tom de Vries  <tom@codesourcery.com>
16660
16661         PR tree-optimization/68773
16662         * omp-low.c (expand_omp_target): Don't set force_output.
16663         * varpool.c (varpool_node::get_create): Same.
16664         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
16665         offload_funcs with force_output.
16666
16667 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16668
16669         PR debug/69244
16670         * lra-eliminations.c (move_plus_up): Don't change anything if either
16671         the outer or inner subreg mode is not MODE_INT.
16672         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
16673         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
16674
16675 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
16676
16677         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
16678         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
16679         reduc_uplus_@var{m}): Remove.
16680         * expr.c (expand_expr_real_2): Remove expansion path for
16681         reduc_[us](min|max|plus) optabs.
16682         * optabs-tree.c (scalar_reduc_to_vector): Remove.
16683         * optabs-tree.h (scalar_reduc_to_vector): Remove.
16684         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
16685         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
16686         * tree-vect-loop.c (vectorizable_reduction): Remove test for
16687         reduc_[us](min|max|plus) optabs.
16688
16689 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
16690
16691         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
16692         (reduc_plus_scal_v2sf): New.
16693         (reduc_smax_v2sf): Rename to...
16694         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
16695         (reduc_smin_v2sf): Rename to...
16696         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
16697
16698 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
16699
16700         * alias.c (compare_base_symbol_refs): New function.
16701         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
16702         it.
16703
16704 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16705
16706         PR middle-end/68146
16707         PR tree-optimization/69155
16708         * tree-complex.c: Include cfganal.h.
16709         (phis_to_revisit): New variable.
16710         (extract_component): Add phiarg_p argument.  Assert that returned
16711         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
16712         (update_phi_components): Partly rewrite to use loop over real/imag
16713         components instead of code duplication.  If extract_component returns
16714         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
16715         create_tmp_reg into the PHI node instead, and mention the phi triplet
16716         in phis_to_revisit.
16717         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
16718         in phis_to_revisit at the end.
16719
16720 2016-01-14  Richard Biener  <rguenther@suse.de>
16721
16722         PR tree-optimization/68060
16723         * tree-vect-loop.c (vect_is_simple_reduction): Check the
16724         outer loop reduction is only used in the inner loop before
16725         detecting a double reduction.
16726
16727 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16728
16729         PR target/68269
16730         * combine.c (expand_field_assignment): Punt if compute_mode is
16731         unsupported scalar mode.
16732
16733 2016-01-14  Richard Biener  <rguenther@suse.de>
16734
16735         PR tree-optimization/66856
16736         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
16737         SLP node only if it built successfully.
16738         (vect_analyze_slp_instance): Adjust.
16739
16740 2016-01-14  Jeff Law  <law@redhat.com>
16741
16742         PR tree-optimization/69270
16743         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
16744         (record_edge_info): Use it.  Convert boolean_{true,false}_node
16745         to the type of op0.
16746
16747 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
16748
16749         PR ipa/66487
16750         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
16751         use block_ultimate_origin
16752         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
16753
16754 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
16755
16756         * doc/invoke.texi (Submodel Options): Rename section to
16757         "Machine-Dependent Options" to better reflect its content.
16758         Rewrite introductory text to remove archaic CPU names.
16759         Update references.
16760
16761 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
16762
16763         * doc/invoke.texi (Code Gen Options): Move section up in file,
16764         before target-specific options.  Update menu and option summary
16765         to reflect the new section ordering.
16766
16767 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
16768
16769         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
16770         (C++ Dialect Options): Add cross-reference to -std option.
16771         * doc/standards.texi (C++ Language): Document C++14 support.
16772
16773 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
16774
16775         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
16776         for pack/unpack functions for __ibm128.
16777         (PACK_IF): Likewise.
16778         (UNPACK_IF): Likewise.
16779
16780         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
16781         support for __ibm128 pack/unpack functions.
16782         (rs6000_invalid_builtin): Likewise.
16783         (rs6000_init_builtins): Likewise.
16784         (rs6000_opt_masks): Likewise.
16785
16786         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
16787         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
16788         functions
16789         (RS6000_BTM_COMMON): Likewise.
16790
16791         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
16792         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
16793         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
16794         128-bit floating point.  Add support for the double values to be
16795         in Altivec registers for TF/IF packing and unpacking, but restrict
16796         TD packing sub-fields to be FPR registers.  Don't allow overlapped
16797         register support for packing.  Allow pack inputs to be memory
16798         locations.  Don't build generator functions for unpack<mode>_dm
16799         and unpack<mode>_nodm.
16800         (unpack<mode>_dm): Likewise.
16801         (unpack<mode>_nodm): Likewise.
16802         (pack<mode>): Likewise.
16803
16804         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
16805         built-in functions to pack/unpack explicit __ibm128 values.
16806         (__builtin_unpack_ibm128): Likewise.
16807
16808         * doc/extend.texi (PowerPC Built-in Functions): Document
16809         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
16810
16811 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
16812
16813         PR c/66208
16814         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
16815         Add new arg loc and pass it down as context.
16816         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
16817         to the location to use for the warning.
16818         (check_function_arguments): New arg loc.  All callers changed.  Pass
16819         it to check_function_nonnull.
16820         * c-common.h (check_function_arguments): Adjust declaration.
16821
16822 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
16823
16824         PR tree-optimization/69156
16825         * gimple.c (validate_type): Removed.
16826         (gimple_builtin_call_types_compatible_p): Use
16827         useless_type_conversion_p instead of validate_type.
16828         * value-prof.c (gimple_stringop_fixed_value): Fold
16829         icall_size to correct type.
16830
16831 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
16832
16833         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
16834         effects.
16835
16836 2016-01-13  Richard Henderson  <rth@redhat.com>
16837
16838         PR tree-opt/68964
16839         * target.def (builtin_tm_load, builtin_tm_store): Remove.
16840         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
16841         (ix86_builtin_tm_store): Remove.
16842         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
16843         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
16844         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
16845         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
16846         * doc/tm.texi: Rebuild.
16847
16848         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
16849         (BUILT_IN_TM_MEMCPY_RTWN): New.
16850         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
16851         fallback from vector to integer helpers.
16852         (build_tm_load): Handle vector types directly, instead of
16853         via target hook.
16854         (build_tm_store): Likewise.
16855         (expand_assign_tm): Prepare for register types not handled by
16856         the above.  Copy them to memory and use memcpy.
16857         * tree.c (tm_define_builtin): New.
16858         (find_tm_vector_type): New.
16859         (build_tm_vector_builtins): New.
16860         (build_common_builtin_nodes): Call it.
16861
16862 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
16863
16864         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
16865         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
16866
16867 2016-01-13  Tom de Vries  <tom@codesourcery.com>
16868
16869         PR tree-optimization/69169
16870         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
16871         handled_struct_type param.
16872         (create_variable_info_for, intra_create_variable_infos): Call
16873         create_variable_info_for_1 with extra arg.
16874
16875 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
16876
16877         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
16878         and "armv8.1-a+crc" entries.
16879
16880 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
16881
16882         PR target/69228
16883         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
16884         Change first operand predicate from register_or_constm1_operand
16885         to register_operand.
16886         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
16887         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
16888         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
16889         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
16890         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
16891         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
16892         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
16893         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
16894         comparison with constm1_rtx from vec_prefetch_gen part.
16895
16896 2016-01-13  Richard Biener  <rguenther@suse.de>
16897
16898         PR tree-optimization/69013
16899         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
16900         Exchange assert for a test.
16901
16902 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16903
16904         PR target/69247
16905         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
16906
16907 2016-01-13  Richard Biener  <rguenther@suse.de>
16908
16909         PR tree-optimization/69242
16910         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
16911         assert with a check.
16912
16913 2016-01-13  Richard Biener  <rguenther@suse.de>
16914
16915         PR tree-optimization/69186
16916         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16917         Properly guard vect_update_misalignment_for_peel call.
16918
16919 2016-01-12  Jeff Law  <law@redhat.com>
16920
16921         PR tree-optimization/pr67755
16922         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
16923         "need_profile_correction".
16924         (thread_block_1): Initialize new field to false by default.  If we
16925         have multiple thread paths through a common joiner to different
16926         final targets, then set new field to true.
16927         (compute_path_counts): Only do count adjustment when it's really
16928         needed.
16929
16930 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
16931
16932         * doc/invoke.texi (Spec Files): Move section down in file, past
16933         all command-line option descriptions.
16934
16935 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16936
16937         PR middle-end/54809
16938         * doc/gty.texi: Remove documentation of mark_hook.
16939         * gengtype.c (struct write_types_data): Remove code to support
16940         mark_hook attribute.
16941         (walk_type): Likewise.
16942         (write_func_for_structure): Likewise.
16943
16944 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
16945
16946         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
16947         Directory Options, and -specs= to Overall Options.
16948         (Overall Options): Adjust similarly.  Reorder to group related
16949         options together.  Make -specs= cross-reference the spec file details.
16950         (Directory Options): Adjust similarly.
16951
16952 2016-01-12  Jeff Law  <law@redhat.com>
16953
16954         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
16955
16956 2016-01-12  Olivier Hainque  <hainque@adacore.com>
16957
16958         * gcc.c (spec_undefvar_allowed): New global.
16959         (process_command): Set to true when running for --version or --help,
16960         alone or together.
16961         (getenv_spec_function): When the variable is not defined, use the
16962         variable name as the variable value if we're allowed not to issue
16963         a fatal error.
16964
16965 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
16966
16967         PR tree-optimization/68911
16968         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
16969         information computed for expression "init + nit * step".
16970
16971 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
16972
16973         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
16974         about name of GCC executable.  Remove deleted node from menu.
16975         (Directory Options) <-B>: Remove cross-reference to deleted node.
16976         (Target Options): Delete section.
16977
16978 2016-01-12  Christian Bruel  <christian.bruel@st.com>
16979
16980         PR target/69180
16981         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
16982         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
16983
16984 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
16985
16986         PR target/69198
16987         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
16988         aligned_mem is properly set for AVX512-VL floating point masked
16989         stores.
16990
16991         PR target/69175
16992         * ifcvt.c (cond_exec_process_if_block): When removing the last
16993         insn from then_bb, remove also any possible barriers that follow it.
16994
16995 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
16996
16997         PR target/68456
16998         PR target/69226
16999         * config/i386/iamcu.h (SIZE_TYPE): New macro.
17000         (PTRDIFF_TYPE): Likewise.
17001         (WCHAR_TYPE): Likewise.
17002         (WCHAR_TYPE_SIZE): Likewise.
17003         (STDINT_LONG32): Likewise.
17004
17005 2016-01-12  Richard Biener  <rguenther@suse.de>
17006
17007         PR tree-optimization/69053
17008         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
17009         convert initial value for cond reductions.
17010
17011 2016-01-12  Richard Biener  <rguenther@suse.de>
17012
17013         PR tree-optimization/69007
17014         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
17015         widen_sum after dot_prod and sad.
17016
17017 2016-01-12  Richard Biener  <rguenther@suse.de>
17018
17019         PR tree-optimization/69168
17020         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
17021         pattern stmt SLP type.
17022         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
17023         end up unused so cope with that case.
17024
17025 2016-01-12  Richard Biener  <rguenther@suse.de>
17026
17027         PR tree-optimization/69157
17028         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
17029         stmts def type only during analyze phase.
17030         (vectorizable_call): Likewise.
17031         (vectorizable_simd_clone_call): Likewise.
17032         (vectorizable_conversion): Likewise.
17033         (vectorizable_assignment): Likewise.
17034         (vectorizable_shift): Likewise.
17035         (vectorizable_operation): Likewise.
17036         (vectorizable_store): Likewise.
17037         (vectorizable_load): Likewise.
17038
17039 2016-01-12  Richard Biener  <rguenther@suse.de>
17040
17041         PR tree-optimization/69174
17042         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
17043         space.
17044         (vectorizable_load): Properly compute the number of loads needed
17045         for permuted strided SLP loads and do not spuriously assign
17046         to SLP_TREE_VEC_STMTS.
17047
17048 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
17049
17050         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
17051         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
17052         (MD_EXEC_PREFIX): Remove.
17053         (MD_STARTFILE_PREFIX) Removee.
17054         (FILE_NAME_ABSOLUTE_P): Remove.
17055         (CPP_SPEC): Do not read macros from sys/version.h.
17056         (LINK_COMMAND_SPEC): Remove.
17057         (LOCAL_INCLUDE_DIR): Remove.
17058         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
17059         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
17060         (POST_LINK_SPEC): Define to invoke stubify after linker
17061         (LIBSTDCXX): Remove define
17062         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
17063         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
17064         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
17065         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
17066         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
17067         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
17068         (i386_djgpp_asm_named_section): Add propotype of new procedure
17069
17070         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
17071         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
17072         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
17073         in config/i386/djgpp.h).
17074         (STANDARD_STARTFILE_PREFIX_2): Define identical to
17075         STANDARD_STARTFILE_PREFIX_1.
17076         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
17077         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
17078         installation errors.
17079         (MAX_OFILE_ALIGNMENT): Define to 128.
17080         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
17081
17082         * config/i386/djgpp.c: New file. Add implementation of
17083         i386_djgpp_asm_named_section.
17084
17085         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
17086
17087         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
17088         Add rule for building djgpp.o.
17089
17090 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17091
17092         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
17093         (rtx_is_swappable_p): Reductions are swappable.
17094         (insn_is_swappable_p): V2DF reductions are swappable.
17095
17096 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
17097
17098         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
17099         reloads for other unsupported memory operands.
17100
17101 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
17102             Jim Wilson  <jim.wilson@linaro.org>
17103
17104         PR target/69194
17105         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
17106         copy_to_mode_reg instead of force_reg.
17107
17108 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17109
17110         PR target/69225
17111         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
17112         TARGET_80387 is true.
17113
17114 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
17115
17116         PR target/69071
17117         * lra-eliminations.c (move_plus_up): Only move plus up
17118         if subreg of the constant can be simplified into constant
17119         and use the simplified subreg of the constant instead of
17120         the original constant.
17121
17122         * fold-const.c (fold_convertible_p): Don't return true
17123         for conversion of VECTOR_TYPE to same sized integral type.
17124         (fold_convert_loc): Fix up formatting.  Fold conversion of
17125         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
17126         instead of NOP_EXPR.
17127
17128         PR tree-optimization/69214
17129         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
17130         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17131         Formatting fix.
17132
17133         PR tree-optimization/69207
17134         * tree-vect-slp.c (vect_get_constant_vectors): For
17135         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
17136         fold_convertible_p to vector_type's element type, and always
17137         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
17138
17139 2016-01-11  Richard Biener  <rguenther@suse.de>
17140
17141         PR tree-optimization/69173
17142         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
17143         fixup the cycle if all stmts are in a pattern.
17144
17145 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
17146
17147         PR middle-end/68999
17148         * alias.c (base_alias_check): Move check for addresses with
17149         alignment ANDs before the call for compare_base_decls.
17150         (memrefs_conflict_p): Return -1 for different decls
17151         that went through alignment adjustments.
17152
17153 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17154
17155         PR rtl-optimization/68796
17156         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
17157         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
17158         and QImode comparisons against zero with CC_NZmode.
17159         * config/aarch64/iterators.md (short_mask): New mode_attr.
17160
17161 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
17162
17163         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
17164         (<avx512>_store<mode>_mask): Likewise.
17165
17166 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
17167             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17168
17169         PR rtl-optimization/68841
17170         * ifcvt.c (struct noce_if_info): Add orig_x field.
17171         (bbs_ok_for_cmove_arith): Add to_rename parameter.
17172         Don't record conflicts on to_rename if it's present.
17173         Allow memory destinations in sets.
17174         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
17175         blocks, passing orig_x to the checks.
17176         (noce_process_if_block): Set if_info->orig_x appropriately.
17177
17178 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17179
17180         PR tree-optimization/69069
17181         * tree-parloops.c (create_parallel_loop): Add missing phi args.
17182
17183 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
17184
17185         PR rtl-optimization/68920
17186         * config/i386/i386.c (ix86_option_override_internal): Restrict number
17187         of conditional moves for  RTL if-conversion to 1 for
17188         TARGET_ONE_IF_CONV_INSN.
17189         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
17190         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
17191         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
17192         parameter to restirct number of conditional moves for
17193         RTL if-conversion.
17194         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
17195         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
17196         conditionl moves.
17197
17198 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
17199
17200         PR bootstrap/69123
17201         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
17202         onepart vars.  Fix typo in comment.  Fix reversed condition in
17203         unshare test.
17204         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
17205
17206         PR bootstrap/69123
17207         * var-tracking.c (dump_onepart_variable_differences): New.
17208         (dataflow_set_different): If a detailed dump is requested,
17209         delay early returns and dump differences between onepart
17210         variables present before and after, and added variables.
17211
17212 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
17213
17214         PR target/69010
17215         * expr.c (expand_expr_real_1): For boolean vector constants
17216         with a scalar mode use const_scalar_mask_from_tree.
17217         (const_scalar_mask_from_tree): New.
17218         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
17219         assigned to a mask type to handle constants.
17220
17221 2016-01-11  Martin Jambor  <mjambor@suse.cz>
17222
17223         PR ipa/69044
17224         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
17225         useless parameters if we cannot change function signature.
17226
17227 2016-01-11  Martin Jambor  <mjambor@suse.cz>
17228
17229         PR ipa/66616
17230         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
17231         flag.
17232
17233 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17234
17235         PR tree-optimization/69109
17236         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
17237         latch with phi.
17238
17239 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17240
17241         PR tree-optimization/69108
17242         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
17243         res is not used in a phi.
17244
17245 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
17246
17247         PR 67425
17248         * common.opt (frandom-seed): Fix parameter name.
17249         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
17250
17251 2016-01-11  Tom de Vries  <tom@codesourcery.com>
17252
17253         PR tree-optimization/69058
17254         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
17255         not supported.
17256
17257 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
17258
17259         * config/arc/arc.opt (mdiv-rem): Add period to the end.
17260         (mcode-density): Likewise.
17261
17262 2016-01-10  Tom de Vries  <tom@codesourcery.com>
17263
17264         PR tree-optimization/69062
17265         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
17266         (parallelize_loops): Don't paralelize loop that has phi with address
17267         arg.
17268
17269 2016-01-10  Tom de Vries  <tom@codesourcery.com>
17270
17271         PR tree-optimization/69039
17272         * tree-parloops.c (try_create_reduction_list): Only allow single exit
17273         phi for reduction.
17274
17275 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
17276
17277         PR middle-end/68743
17278         * match.pd: Require target has function_c99_misc before doing
17279         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
17280
17281 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
17282
17283         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
17284         use GMPINC.
17285         * configure: Regenerate.
17286
17287 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
17288
17289         PR middle-end/50865
17290         PR tree-optimization/69097
17291         * fold-const.h (expr_not_equal_to): New prototype.
17292         * fold-const.c: Include stringpool.h and tree-ssanames.h.
17293         (expr_not_equal_to): New function.
17294         * match.pd (X % -Y is the same as X % Y): Don't optimize
17295         unless X is known not to be equal to minimum or Y is known
17296         not to be equal to -1.
17297         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
17298         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
17299         (simplify_stmt_using_ranges): Adjust caller.
17300         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
17301         substitute_and_fold.
17302
17303 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
17304
17305         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
17306         w/o DECL_NAME.
17307
17308 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17309
17310         PR tree-optimization/69167
17311         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
17312         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
17313         ops[0] comparison.
17314         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
17315
17316 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
17317             Richard Biener  <rguenther@suse.de>
17318
17319         PR tree-optimization/68707
17320         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
17321         instances that can be handled via vect_load_lanes.
17322
17323 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
17324
17325         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
17326         if we can't determine address equivalence.
17327         * alias.c (compare_base_decl): Update for changed return value of
17328         symtab_node::equal_address_to.
17329
17330 2016-01-08  Jason Merrill  <jason@redhat.com>
17331
17332         PR c++/68983
17333         PR c++/67557
17334         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
17335         * expr.c (store_field): Not here.
17336         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
17337         call with TREE_ADDRESSABLE type.
17338         * tree-cfg.c (verify_gimple_call): Adjust.
17339
17340 2016-01-08  Olivier Hainque  <hainque@adacore.com>
17341
17342         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
17343         libc_internal.
17344
17345 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
17346
17347         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
17348         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
17349         (reduc_smin_v2sf): Rename to...
17350         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
17351         (reduc_splus_v2sf): Rename to...
17352         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
17353
17354 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17355
17356         PR tree-optimization/69162
17357         * gimplify.c (gimplify_va_arg_expr): Encode original type of
17358         valist argument in another argument.
17359         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
17360         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
17361         to determine the va_list type, build a MEM_REF instead of
17362         build_fold_indirect_ref.
17363
17364         PR tree-optimization/69172
17365         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
17366         gimple_build.
17367
17368 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17369
17370         PR tree-optimization/67781
17371         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
17372         and cmpnop in two steps: first the ones not accessed in original
17373         gimple expression in a endian independent way and then the ones not
17374         accessed in the final result in an endian-specific way.
17375
17376 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17377
17378         PR tree-optimization/69083
17379         * tree-vect-slp.c (vect_get_constant_vectors): For
17380         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
17381         element type.  If op is fold_convertible_p to vector_type's element
17382         type, use NOP_EXPR instead of VCE.
17383
17384 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
17385
17386         PR rtl-optimization/67778
17387         PR rtl-optimization/68634
17388         PR rtl-optimization/68909
17389         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
17390         block from the stack until done with it.  Remove a superfluous
17391         bitmap set.  Remove a superfluous bitmap test.
17392
17393 2016-01-07  Martin Sebor  <msebor@redhat.com>
17394
17395         PR c/68966
17396         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
17397         constraint on the type of arguments.
17398
17399 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
17400
17401         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
17402         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
17403         unaligned_access on the gcc_options set.
17404         * config/arm/arm.c (arm_option_override_internal): Use
17405         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
17406
17407 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
17408
17409         PR target/69140
17410         * config/i386/i386.c (ix86_frame_pointer_required): Enable
17411         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
17412
17413 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
17414
17415         Revert
17416         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
17417
17418         PR target/69140
17419         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
17420         depending on frame_pointer_needed before remaining integer and SSE
17421         registers are saved.
17422
17423 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17424
17425         PR 1078
17426         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
17427
17428 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
17429
17430         PR target/69171
17431         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
17432         Use the "xBm" constraint.
17433         (float<sseintvecmodelower><mode>2<mask_name><round_name):
17434         Likewise.
17435         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
17436         (sse_cvtsi2ssq<round_name>): Likewise.
17437         (sse_cvtss2si<round_name>): Likewise.
17438         (sse_cvtss2siq<round_name>): Likewise.
17439         (sse2_cvtsi2sdq<round_name>): Likewise.
17440         (sse2_cvtsd2si<round_name>): Likewise.
17441         (sse2_cvtsd2siq<round_name>): Likewise.
17442         * config/i386/subst.md (round_nimm_scalar_predicate): New
17443         predicate.
17444
17445 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
17446
17447         PR middle-end/67639
17448         * varasm.c (make_decl_rtl): Mark invalid register vars as
17449         DECL_EXTERNAL.
17450
17451         PR rtl-optimization/66206
17452         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
17453         All callers changed.
17454
17455 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
17456
17457         PR tree-optimization/69141
17458         * tree-ssa-pre.c: Include langhooks.h.
17459         (eliminate_dom_walker::before_dom_children): Use
17460         lang_hooks.decl_printable_name instead of
17461         cgraph_node::get ()->name ().
17462
17463         PR middle-end/68960
17464         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
17465         it and DECL_ALIGN too.
17466
17467 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
17468
17469         * config/mips/mips-ftypes.def: Sort to lexicographical order.
17470
17471 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
17472
17473         PR target/69140
17474         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
17475         depending on frame_pointer_needed before remaining integer and SSE
17476         registers are saved.
17477
17478 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17479
17480         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
17481         mode iterator with VSX_M2.
17482         (*p9_vecstore_<mode>): Likewise.
17483         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
17484         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
17485         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
17486         (define_split for VSX_LE128 stores): Likewise.
17487         (define_peephole2 for TImode LE swaps): Likewise.
17488         (define_split for VSX_LE128 post-reload stores): Likewise.
17489
17490 2016-01-06  Marek Polacek  <polacek@redhat.com>
17491
17492         PR sanitizer/69099
17493         * convert.c (convert_to_integer_1): Adjust call to
17494         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
17495         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
17496         EXPR instead of ARG.
17497         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
17498
17499 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17500
17501         PR 1078
17502         * doc/extend.texi (RL78 Variable Attributes): New section.
17503
17504 2016-01-05  Marek Polacek  <polacek@redhat.com>
17505
17506         PR c/69104
17507         * builtins.c (get_memmodel): Use expansion point location rather than
17508         the input location.  Call warning_at rather than warning.
17509         (expand_builtin_atomic_compare_exchange): Likewise.
17510         (expand_builtin_atomic_load): Likewise.
17511         (expand_builtin_atomic_store): Likewise.
17512         (expand_builtin_atomic_clear): Likewise.
17513
17514 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17515
17516         PR target/68991
17517         * config/i386/i386.c (ix86_expand_vector_logical_operator):
17518         Replace nonimmediate_operand with vector_operand.
17519         * config/i386/predicates.md (vector_operand): New predicate.
17520         (general_vector_operand): Replace nonimmediate_operand with
17521         vector_operand.
17522         * config/i386/sse.md: Replace nonimmediate_operand with
17523         vector_operand and m constraint with Bm constraint on SSE
17524         patterns with 16-byte memory operand.
17525         * config/i386/subst.md (round_nimm_predicate): Replace
17526         nonimmediate_operand with vector_operand.
17527         (round_saeonly_nimm_predicate): Likewise.
17528         (round_saeonly_nimm_scalar_predicate): New.
17529
17530 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17531
17532         PR target/68991
17533         * config/i386/constraints.md (Bm): New constraint.
17534         * config/i386/predicates.md (vector_memory_operand): New
17535         predicate.
17536         * config/i386/sse.md: Replace xm with xBm in plusminus and
17537         any_logic patterns.
17538
17539 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17540
17541         PR 1078
17542         * doc/extend.texi (V850 Function Attributes): New section.
17543         (V850 Variable Attributes): New section.
17544
17545 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17546
17547         PR 1078
17548         * doc/extend.texi (MicroBlaze Function Attributes): Document
17549         interrupt_handler and fast_interrupt attributes.
17550
17551 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
17552
17553         PR other/60465
17554         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
17555         for local symbolic operands.
17556         * config/ia64/predicates.md (local_symbolic_operand64): New
17557         predicate.
17558
17559 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17560
17561         PR rtl-optimization/68651
17562         * combine.c (combine_simplify_rtx): Canonicalize x + x into
17563         x << 1.
17564
17565 2016-01-05  Nathan Sidwell  <nathan@acm.org>
17566
17567         * alias.c (compare_base_decls): Use symtab_node::get.
17568
17569 2016-01-05  Nick Clifton  <nickc@redhat.com>
17570
17571         PR target/68770
17572         * ira-costs.c (copy_cost): Initialise the t_icode field of the
17573         secondary_reload_info structure.
17574
17575         PR target/66655
17576         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
17577         decls if weak support is available.
17578
17579 2016-01-04  Martin Sebor  <msebor@redhat.com>
17580
17581         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
17582
17583 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
17584
17585         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17586         OPTION_MASK_P9_DFORM.
17587
17588         * config/rs6000/constraints.md (wo constraint): New constraint for
17589         ISA 3.0 (power9).
17590
17591         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
17592         for wo constraint.
17593         (rs6000_init_hard_regno_mode_ok): Likewise.
17594
17595         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
17596         wo constraint.
17597
17598         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
17599         expanders not to have constraints.  Add support for ISA 3.0 xxperm
17600         instruction.  Add support for fusing xxlor with xxperm.
17601         (altivec_vperm_<mode>_internal): Likewise.
17602         (altivec_vperm_v8hiv16qi): Likewise.
17603         (altivec_vperm_<mode>v16q): Likewise.
17604         (altivec_vperm_<mode>_uns): Likewise.
17605         (vperm_v8hiv4si): Likewise.
17606         (vperm_v16qiv8hi): Likewise.
17607
17608         * doc/md.texi (RS/6000 constraints): Document wo constraint.
17609
17610 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
17611
17612         Update copyright years.
17613
17614         * gcc.c (process_command): Update copyright notice dates.
17615         * gcov-dump.c (print_version): Ditto.
17616         * gcov.c (print_version): Ditto.
17617         * gcov-tool.c (print_version): Ditto.
17618         * gengtype.c (create_file): Ditto.
17619         * doc/cpp.texi: Bump @copying's copyright year.
17620         * doc/cppinternals.texi: Ditto.
17621         * doc/gcc.texi: Ditto.
17622         * doc/gccint.texi: Ditto.
17623         * doc/gcov.texi: Ditto.
17624         * doc/install.texi: Ditto.
17625         * doc/invoke.texi: Ditto.
17626
17627 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17628
17629         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
17630         modes larger than TImode as TImode if NEON is not enabled.
17631
17632 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17633
17634         PR target/69100
17635         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
17636         mode for %f0-%f31 only if TARGET_FPU.
17637
17638 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17639
17640         PR target/69072
17641         * config/sparc/sparc.c (scan_record_type): Take into account subfields
17642         to compute the PACKED_P predicate.
17643         (function_arg_record_value): Minor tweaks.
17644
17645 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17646
17647         * doc/install.texi (--with-multilib-list): Describe the meaning of the
17648         option for arm*-*-* targets.
17649
17650 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
17651
17652         * doc/extend.texi (Common Function Attributes): Move docs for
17653         MSP430-specific attributes to....
17654         (MSP430 Function Attributes): ...here.  Delete the redundant
17655         entries and copy-edit the remaining text.
17656         (MSP430 Variable Attributes): Use uniform format for index
17657         entries and add a cross-reference to the corresponding function
17658         attribute docs.
17659
17660 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
17661
17662         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
17663         -finite-math typo.
17664         (x86 Options): Likewise.
17665
17666 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
17667
17668         PR 1078
17669
17670         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
17671         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
17672         to corresponding attribute.
17673
17674 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
17675
17676         * doc/extend.texi (Common Function Attributes) <noplt>: Move
17677         to correct alphabetization of table.  Copy-edit and correct
17678         markup.
17679         <stack_protect>: Likewise.
17680         <target_clones>: Likewise.
17681         <simd>: Likewise.
17682         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
17683         Correct punctuation.
17684         (Code Gen Options) <-fno-plt>: Copy-edit.
17685
17686 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17687
17688         PR target/68917
17689         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
17690         SI values.  Explicitly convert SI to DI and vice-versa.
17691
17692 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
17693
17694         PR tree-optimization/69070
17695         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
17696         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
17697
17698         PR sanitizer/69055
17699         * ubsan.c (ubsan_instrument_float_cast): Call
17700         initialize_sanitizer_builtins.
17701
17702         PR target/69015
17703         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
17704 \f
17705 Copyright (C) 2016 Free Software Foundation, Inc.
17706
17707 Copying and distribution of this file, with or without modification,
17708 are permitted in any medium without royalty provided the copyright
17709 notice and this notice are preserved.