PR c/70883 - inconsistent error message for calls to __builtin_add_overflow
[official-gcc.git] / gcc / ChangeLog
blob325805f0c41f7a640f9d7f5f60fbf7d4e901ef72
1 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
3         * config/mips/mips.c (mips_output_jump): Fix formatting.
5 2016-06-09  Richard Biener  <rguenther@suse.de>
7         PR tree-optimization/71462
8         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
9         removed blocks.
11 2016-06-09  Martin Liska  <mliska@suse.cz>
13         * predict.c (dump_prediction): Add new argument.
14         (enum predictor_reason): New enum.
15         (struct predictor_hash): New struct.
16         (predictor_hash::hash): New function.
17         (predictor_hash::equal): Likewise.
18         (not_removed_prediction_p): New function.
19         (prune_predictions_for_bb): Likewise.
20         (combine_predictions_for_bb): Prune predictions.
22 2016-06-09  Martin Liska  <mliska@suse.cz>
24         * predict.c (filter_predictions): New function.
25         (remove_predictions_associated_with_edge): Use the filter
26         function.
27         (equal_edge_p): New function.
29 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
31         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
32         Correct usage of @samp vs @option, add @samp where appropriate.
33         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
34         Add armv6s-m and document it, as it is no official ARM name.
36 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38         * ifcvt.c (struct noce_if_info): Add transform_name field.
39         (noce_try_move): Set if_info->transform_name to the function name.
40         (noce_try_ifelse_collapse): Likewise.
41         (noce_try_store_flag): Likewise.
42         (noce_try_inverse_constants): Likewise.
43         (noce_try_store_flag_constants): Likewise.
44         (noce_try_addcc): Likewise.
45         (noce_try_store_flag_mask): Likewise.
46         (noce_try_cmove): Likewise.
47         (noce_try_cmove_arith): Likewise.
48         (noce_try_minmax): Likewise.
49         (noce_try_abs): Likewise.
50         (noce_try_sign_mask): Likewise.
51         (noce_try_bitop): Likewise.
52         (noce_convert_multiple_sets): Likewise.
53         (noce_process_if_block): Print if_info->transform_name to
54         dump_file if transformation succeeded.
56 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
58         * config/arm/cortex-a57.md (cortex_a57_alu):
59         Handle csel type.
61 2016-06-08  Martin Sebor  <msebor@redhat.com>
62             Jakub Jelinek  <jakub@redhat.com>
64         PR c++/70507
65         PR c/68120
66         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
67         BUILT_IN_MUL_OVERFLOW_P): New builtins.
68         * builtins.c: Include gimple-fold.h.
69         (fold_builtin_arith_overflow): Handle
70         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
71         (fold_builtin_3): Likewise.
72         * doc/extend.texi (Integer Overflow Builtins): Document
73         __builtin_{add,sub,mul}_overflow_p.
75 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
77         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
78         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
80 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
82         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
83         Rewrite, looking one level down for records and arrays.
85 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
87         * pretty-print.c: Include "selftest.h".
88         (pp_format): Fix comment.
89         (identifier_to_locale): Likewise.
90         (selftest::test_basic_printing): New function.
91         (selftest::assert_pp_format): New function.
92         (selftest::test_pp_format): New function.
93         (selftest::pretty_print_c_tests): New function.
94         * selftest-run-tests.c (selftest::run_tests): Call
95         selftest::pretty_print_c_tests.
96         * selftest.h (pretty_print_c_tests): New declaration.
98 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
100         * invoke.texi (max-loop-headers-insns): Document.
101         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
102         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
103         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
105 2016-06-08  Richard Biener  <rguenther@suse.de>
107         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
108         on strided SLP loads and fall back to scalar loads in case
109         we can't chunk them.
111 2016-06-08  Richard Biener  <rguenther@suse.de>
113         PR tree-optimization/71452
114         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
115         type used for the SSA rewrite has enough precision to cover
116         the dynamic type of the location.
118 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
119             Richard Biener  <rguenther@suse.de>
121         PR c++/71448
122         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
123         the same as DECL_P (base0) for indirect_base0.  Use equality_code
124         in one further place.
126 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
128         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
129         to one word if the field is known to overlap other words.
130         (extract_bit_field_1): Likewise.
131         (store_split_bit_field): Remove compensating code.
132         (extract_split_bit_field): Likewise.
134 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
136         PR debug/71432
137         PR ada/71413
138         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
140 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
142         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
143         VDQF.
144         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
145         (arch64_addpv4sf): Delete.
146         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
147         "gen_aarch64_addpv4sf".
148         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
149         builtin.
150         (vpadds_f32): Likewise.
151         (vpaddq_f32): Likewise.
152         (vpaddq_f64): Likewise.
154 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
156         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
157         VALLF.
158         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
159         to VALLF.  Rename to "fabd<mode>3".
160         "*fabd_scalar<mode>3): Delete.
161         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
162         Use builtin.
163         (vabdd_f64): Likewise.
164         (vabd_f32): Likewise.
165         (vabd_f64): Likewise.
166         (vabdq_f32): Likewise.
167         (vabdq_f64): Likewise.
169 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
171         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
172         VALLF.
173         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
174         "aarch64_rsqrts<mode>".
175         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
176         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
177         builtin.
178         (vrsqrtsd_f64): Likewise.
179         (vrsqrts_f32): Likewise.
180         (vrsqrts_f64): Likewise.
181         (vrsqrtsq_f32): Likewise.
182         (vrsqrtsq_f64): Likewise.
184 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
186         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
187         VALLF.
188         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
189         "aarch64_rsqrte<mode>".
190         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
191         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
192         builtin.
193         (vrsqrted_f64): Likewise.
194         (vrsqrte_f32): Likewise.
195         (vrsqrte_f64): Likewise.
196         (vrsqrteq_f32): Likewise.
197         (vrsqrteq_f64): Likewise.
199 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
201         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
202         (ucvtf): Likewise.
203         (fcvtzs): Likewise.
204         (fcvtzu): Likewise.
205         * config/aarch64/aarch64-simd.md
206         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
207         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
208         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
209         Use builtin.
210         (vcvt_n_f32_u32): Likewise.
211         (vcvt_n_s32_f32): Likewise.
212         (vcvt_n_u32_f32): Likewise.
213         (vcvtq_n_f32_s32): Likewise.
214         (vcvtq_n_f32_u32): Likewise.
215         (vcvtq_n_f64_s64): Likewise.
216         (vcvtq_n_f64_u64): Likewise.
217         (vcvtq_n_s32_f32): Likewise.
218         (vcvtq_n_s64_f64): Likewise.
219         (vcvtq_n_u32_f32): Likewise.
220         (vcvtq_n_u64_f64): Likewise.
221         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
222         (VSDQ_SDI): Likewise.
223         (fcvt_target): Support V4DI, V4SI and V2SI.
224         (FCVT_TARGET): Likewise.
226 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
228         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
229         (TYPES_BINOP_SUS): Likewise.
230         (aarch64_simd_builtin_data): Update include file name.
231         (aarch64_builtins): Likewise.
232         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
233         for conversion between scalar float-point and fixed-point.
234         (ucvtf): Likewise.
235         (fcvtzs): Likewise.
236         (fcvtzu): Likewise.
237         * config/aarch64/aarch64.md
238         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
239         pattern for conversion between scalar float to fixed-pointer.
240         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
241         (UNSPEC_FCVTZS): New UNSPEC enumeration.
242         (UNSPEC_FCVTZU): Likewise.
243         (UNSPEC_SCVTF): Likewise.
244         (UNSPEC_UCVTF): Likewise.
245         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
246         Use builtin.
247         (vcvtd_n_f64_u64): Likewise.
248         (vcvtd_n_s64_f64): Likewise.
249         (vcvtd_n_u64_f64): Likewise.
250         (vcvtd_n_f32_s32): Likewise.
251         (vcvts_n_f32_u32): Likewise.
252         (vcvtd_n_s32_f32): Likewise.
253         (vcvts_n_u32_f32): Likewise.
254         * config/aarch64/iterators.md (fcvt_target): Support integer to float
255         mapping.
256         (FCVT_TARGET): Likewise.
257         (FCVT_FIXED2F): New iterator.
258         (FCVT_F2FIXED): Likewise.
259         (fcvt_fixed_insn): New define_int_attr.
261 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
263         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
264         some statements was removed.
266 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
268         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
269         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
270         (vect_can_advance_ivs_p): likewise.
271         (vect_update_ivs_after_vectorizer): likewise.
272         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
273         (vect_analyze_scalar_cycles_1): likewise.
274         (vect_analyze_loop_operations): likewise.
275         (report_vect_op): likewise.
276         (vect_is_slp_reduction): likewise.
277         (vect_is_simple_reduction): likewise.
278         (get_initial_def_for_induction): likewise.
279         (vect_transform_loop): likewise.
280         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
281         (vect_recog_sad_pattern): likewise.
282         (vect_recog_widen_sum_pattern): likewise.
283         (vect_recog_widening_pattern): likewise.
284         (vect_recog_divmod_pattern): likewise.
285         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
286         (vect_analyze_slp_instance): likewise.
287         (vect_transform_slp_perm_load): likewise.
288         (vect_schedule_slp_instance): likewise.
290 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
292         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
293         (return_prediction): PRED_CONST_RETURN predict return as not taken.
294         * predict.def (PRED_CONTINUE): Change hitrate 50->67
295         (PRED_LOOP_BRANCH): Document predictor as broken.
296         (PRED_LOOP_EXIT): Change hitrate 91->92.
297         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
298         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
299         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
300         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
301         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
302         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
303         (PRED_CALL): Chane hitrate 71->67.
304         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
305         (PRED_GOTO): Document as unused right now.
306         (PRED_CONST_RETURN): Change hitrate 67->69
307         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
308         (PRED_NULL_RETURN): Change hitrate 91->90.
309         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
310         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
311         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
313 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
315         * config/rs6000/altivec.h: Add __builtin_vec_mul.
316         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
317         special case Altivec builtin.
318         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
319         VSX_BUILTIN_VEC_MUL (replaced with special case code).
320         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
321         code for ALTIVEC_BUILTIN_VEC_MUL.
322         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
323         for __builtin_vec_mul.
325 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
327         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
328         -mno-htm.
330 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
332         * spellcheck.c (selftest::test_find_closest_string): New function.
333         (spellcheck_c_tests): Call the above.
335 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
337         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local
338         variable.
340 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
342         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
343         Yv=Yv,C alternatives.
345 2016-06-07  Richard Biener  <rguenther@suse.de>
347         PR c/61564
348         * common.opt (ffast-math): Make Optimization.
350 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
351             Prachi Godbole  <prachi.godbole@imgtec.com>
353         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
354         `fabs' and `fneg' type attributes.
355         (p5600_fpu_fabs): Add `fmove' to the comment.
357 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
359         * gimple.c: Include builtins.h
360         (gimple_inexpensive_call_p): New function.
361         * gimple.h (gimple_inexpensive_call_p): Declare.
362         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
363         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
364         fix formatting.
366 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
368         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
369         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
370         warning_at_rich_loc, warning_n, pedwarn, permerror,
371         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
372         sorry, fatal_error, internal_error, internal_error_no_backtrace):
373         Use the above.
375 2016-06-07  Richard Biener  <rguenther@suse.de>
377         PR tree-optimization/71428
378         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
379         BIT_FIELD_REF op vs. load.
381 2016-06-07  Richard Biener  <rguenther@suse.de>
383         PR middle-end/71423
384         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
385         for signed ops.
387 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
389         * config/pa/pa.md (call): Generate indirect long calls to non-local
390         functions on TARGET_64BIT.
391         (call_value): Likewise.
393 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
395         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
396         pattern and subsequent splitters.
397         (call_val_reg_64bit_post_reload): Likewise.
399 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
401         PR middle-end/71408
402         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
403         propagate_op_to_single_use.
405 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
407         PR middle-end/71281
408         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
410 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
412         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
413         (enum x86_dirflag_state): New enum.
414         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
415         (machine_function): Remove needs_cld.
416         (ix86_current_function_needs_cld): Remove.
417         * config/i386/i386.c (ix86_set_func_type): Set
418         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
419         (ix86_expand_prologue): Do not emit CLD here.
420         (ix86_dirflag_mode_needed): New function.
421         (ix86_dirflag_mode_entry): Ditto.
422         (ix86_mode_needed): Handle X86_DIRFLAG entity.
423         (ix86_mode_after): Ditto.
424         (ix86_mode_entry): Ditto.
425         (ix86_mode_exit): Ditto.
426         (ix86_emit_mode_set): Ditto.
427         * config/i386/i386.md (strmov_singleop): Set
428         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
429         Do not set ix86_current_function_needs_cld.
430         (rep_mov): Ditto.
431         (strset_singleop): Ditto.
432         (rep_stos): Ditto.
433         (cmpstrnqi_nz_1): Ditto.
434         (cmpstrnqi_1): Ditto.
435         (strlenqi_1): Ditto.
437 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
439         PR tree-optimization/71259
440         * tree-vect-slp.c (vect_get_constant_vectors): For
441         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
442         one for constant op, and use COND_EXPR for non-constant.
444 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
446         * Makefile.in (OBJS): Add function-tests.o,
447         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
448         selftest-run-tests.o.
449         (OBJS-libcommon): Add selftest.o.
450         (OBJS-libcommon-target): Add selftest.o.
451         (all.internal): Add "selftest".
452         (all.cross): Likewise.
453         (selftest): New phony target.
454         (s-selftest): New target.
455         (selftest-gdb): New phony target.
456         (COLLECT2_OBJS): Add selftest.o.
457         * bitmap.c: Include "selftest.h".
458         (selftest::test_gc_alloc): New function.
459         (selftest::test_set_range): New function.
460         (selftest::test_clear_bit_in_middle): New function.
461         (selftest::test_copying): New function.
462         (selftest::test_bitmap_single_bit_set_p): New function.
463         (selftest::bitmap_c_tests): New function.
464         * common.opt (fself-test): New.
465         * diagnostic-show-locus.c: Include "selftest.h".
466         (make_range): New function.
467         (test_range_contains_point_for_single_point): New function.
468         (test_range_contains_point_for_single_line): New function.
469         (test_range_contains_point_for_multiple_lines): New function.
470         (assert_eq): New function.
471         (test_get_line_width_without_trailing_whitespace): New function.
472         (selftest::diagnostic_show_locus_c_tests): New function.
473         * et-forest.c: Include "selftest.h".
474         (selftest::test_single_node): New function.
475         (selftest::test_simple_tree): New function.
476         (selftest::test_disconnected_nodes): New function.
477         (selftest::et_forest_c_tests): New function.
478         * fold-const.c: Include "selftest.h".
479         (selftest::assert_binop_folds_to_const): New function.
480         (selftest::assert_binop_folds_to_nonlvalue): New function.
481         (selftest::test_arithmetic_folding): New function.
482         (selftest::fold_const_c_tests): New function.
483         * function-tests.c: New file.
484         * gimple.c: Include "selftest.h".
485         Include "gimple-pretty-print.h".
486         (selftest::verify_gimple_pp): New function.
487         (selftest::test_assign_single): New function.
488         (selftest::test_assign_binop): New function.
489         (selftest::test_nop_stmt): New function.
490         (selftest::test_return_stmt): New function.
491         (selftest::test_return_without_value): New function.
492         (selftest::gimple_c_tests): New function.
493         * hash-map-tests.c: New file.
494         * hash-set-tests.c: New file.
495         * input.c: Include "selftest.h".
496         (selftest::assert_loceq): New function.
497         (selftest::test_accessing_ordinary_linemaps): New function.
498         (selftest::test_unknown_location): New function.
499         (selftest::test_builtins): New function.
500         (selftest::test_reading_source_line): New function.
501         (selftest::input_c_tests): New function.
502         * rtl-tests.c: New file.
503         * selftest-run-tests.c: New file.
504         * selftest.c: New file.
505         * selftest.h: New file.
506         * spellcheck.c: Include "selftest.h".
507         (selftest::levenshtein_distance_unit_test_oneway): New function,
508         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
509         (selftest::levenshtein_distance_unit_test): Likewise.
510         (selftest::spellcheck_c_tests): Likewise.
511         * toplev.c: Include selftest.h.
512         (toplev::run_self_tests): New.
513         (toplev::main): Handle -fself-test.
514         * toplev.h (toplev::run_self_tests): New.
515         * tree.c: Include "selftest.h".
516         (selftest::test_integer_constants): New function.
517         (selftest::test_identifiers): New function.
518         (selftest::test_labels): New function.
519         (selftest::tree_c_tests): New function.
520         * tree-cfg.c: Include "selftest.h".
521         (selftest::push_fndecl): New function.
522         (selftest::test_linear_chain): New function.
523         (selftest::test_diamond): New function.
524         (selftest::test_fully_connected): New function.
525         (selftest::tree_cfg_c_tests): New function.
526         * vec.c: Include "selftest.h".
527         (selftest::safe_push_range): New function.
528         (selftest::test_quick_push): New function.
529         (selftest::test_safe_push): New function.
530         (selftest::test_truncate): New function.
531         (selftest::test_safe_grow_cleared): New function.
532         (selftest::test_pop): New function.
533         (selftest::test_safe_insert): New function.
534         (selftest::test_ordered_remove): New function.
535         (selftest::test_unordered_remove): New function.
536         (selftest::test_block_remove): New function.
537         (selftest::reverse_cmp): New function.
538         (selftest::test_qsort): New function.
539         (selftest::vec_c_tests): New function.c.
540         * wide-int.cc: Include selftest.h and wide-int-print.h.
541         (selftest::from_int <wide_int>): New function.
542         (selftest::from_int <offset_int>): New function.
543         (selftest::from_int <widest_int>): New function.
544         (selftest::assert_deceq): New function.
545         (selftest::assert_hexeq): New function.
546         (selftest::test_printing <VALUE_TYPE>): New function template.
547         (selftest::test_ops <VALUE_TYPE>): New function template.
548         (selftest::test_comparisons <VALUE_TYPE>): New function template.
549         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
550         template.
551         (selftest::wide_int_cc_tests): New function.
553 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
555         PR middle-end/37780
556         * ifcvt.c (noce_try_ifelse_collapse): New function.
557         Declare prototype.
558         (noce_process_if_block): Call noce_try_ifelse_collapse.
559         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
560         (simplify_ternary_operation): Use the above to simplify
561         conditional CLZ/CTZ expressions.
563 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
565         PR middle-end/37780
566         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
567         define_insn_and_split.
569 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
571         PR middle-end/37780
572         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
574 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
576         PR c/24414
577         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
578         Implicitly clobber memory for basic asm with non-empty assembler
579         string.  Use targetm.md_asm_adjust also here.
580         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
581         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
582         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
583         non-empty assembler string.
584         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
585         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
586         (decode_asm_operands): Handle basic asm in PARALLEL block.
587         (extract_insn): Handle basic asm in PARALLEL block.
588         * doc/extend.texi: Mention new behavior of basic asm.
589         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
590         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
591         branch_needs_nop_p): Use asm_noperands.
593 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
595         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
596         Include the M7 SPARC DFA scheduler.
597         New attribute v3pipe.
598         Annotate insns with v3pipe where appropriate.
599         Define cpu_feature vis4.
600         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
601         Add (V8QI "8") to vbits.
602         Add insns {add,sub}v8qi3
603         Add insns ss{add,sub}v8qi3
604         Add insns us{add,sub}{v8qi,v4hi}3
605         Add insns {min,max}{v8qi,v4hi,v2si}3
606         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
607         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
608         * config/sparc/niagara4.md: Add a comment explaining the
609         discrepancy between the documented latenty numbers and the
610         implemented ones.
611         * config/sparc/niagara7.md: New file.
612         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
613         supports SPARC5 and VIS 4.0 instructions.
614         * configure: Regenerate.
615         * config.in: Likewise.
616         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
617         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
618         TARGET_CPU_niagara7.
619         (ASM_CPU64_DEFAULT_SPEC): Likewise.
620         (CPP_CPU_SPEC): Handle niagara7.
621         (ASM_CPU_SPEC): Likewise.
622         * config/sparc/sparc-opts.h (processor_type): Add
623         PROCESSOR_NIAGARA7.
624         (mvis4): New option.
625         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
626         (AS_NIAGARA7_FLAG): Define.
627         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
628         (CPP_CPU64_DEFAULT_SPEC): Likewise.
629         (CPP_CPU_SPEC): Handle niagara7.
630         (ASM_CPU_SPEC): Likewise.
631         * config/sparc/sparc.c (niagara7_costs): Define.
632         (sparc_option_override): Handle niagara7 and adjust cache-related
633         parameters with better values for niagara cpus.  Also support VIS4.
634         (sparc32_initialize_trampoline): Likewise.
635         (sparc_use_sched_lookahead): Likewise.
636         (sparc_issue_rate): Likewise.
637         (sparc_register_move_cost): Likewise.
638         (dump_target_flag_bits): Support VIS4.
639         (sparc_vis_init_builtins): Likewise.
640         (sparc_builtins): Likewise.
641         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
642         VIS4 4.0.
643         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
644         UltraSparc M7.
645         * config/sparc/sparc.opt (sparc_processor_type): New value
646         niagara7.
647         * config/sparc/visintrin.h (__attribute__): Prototypes for the
648         VIS4 builtins.
649         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
650         -mvis4.
651         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
652         VIS4 builtins.
654 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
656         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
658 2016-06-06  Richard Biener  <rguenther@suse.de>
660         PR tree-optimization/71398
661         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
662         remove edges.
664 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
666         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
667         ft32_expand_prolog, ft32_expand_epilogue):
668         Handle pretend_args.
669         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
670         * config/ft32/ft32.md: Add pretend_returner.
672 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
674         PR target/71389
675         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
676         Copy op1 RTX to avoid invalid sharing.
677         (ix86_expand_vector_move_misalign): Ditto.
679 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
681         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
682         ATTRIBUTE_UNUSED.
684 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
686         * predict.c (predicted_by_loop_heuristics_p): New function.
687         (predict_iv_comparison): Use it.
688         (predict_loops): Walk from innermost loops; do not predict edges
689         leaving multiple loops multiple times; implement
690         PRED_LOOP_ITERATIONS_MAX heuristics.
691         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
693 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
695         * cfg.c (check_bb_profile): Do not report mismatched profiles when
696         only edges out of BB are EH edges.
698 2016-06-04  Martin Sebor  <msebor@redhat.com>
699             Marcin Baczyński <marbacz@gmail.com>
701         PR c/48116
702         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
703         a void expression in a void function.
705 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
707         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
708         aux; dump reasons of decisions.
709         (should_duplicate_loop_header_p): Likewise.
710         (do_while_loop_p): Likewise.
711         (ch_base::copy_headers): Dump asi num insns duplicated.
713 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
715         PR tree-optimization/71405
716         * tree-ssa.c (execute_update_addresses_taken): For clobber with
717         incompatible type, build a new clobber with the right type instead
718         of building a VIEW_CONVERT_EXPR around it.
720 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
722         PR tree-optimization/52171
723         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
724         by_pieces_ninsns instead of move_by_pieces_ninsns.
726 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
728         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
729         for reg+reg addressing mode.
731 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
733         * rs6000-c.c (c/c-tree.h): Add #include.
734         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
735         in C++ when found in the base position of vec_ld or vec_st.
737 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
739         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
740         use of profile unless profile status is PROFILE_READ.
741         * profile.c (compute_branch_probabilities): Set profile status
742         only after reporting predictor hitrates.
744 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
746         PR target/71276
747         PR target/71277
748         * common.opt (ffp-int-builtin-inexact): New option.
749         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
750         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
751         (ceil@var{m}2): Document dependence on this option.
752         * ipa-inline-transform.c (inline_call): Handle
753         flag_fp_int_builtin_inexact.
754         * ipa-inline.c (can_inline_edge_p): Likewise.
755         * config/i386/i386.md (rintxf2): Do not test
756         flag_unsafe_math_optimizations.
757         (rint<mode>2_frndint): New define_insn.
758         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
759         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
760         for 387 instead of extending and truncating.
761         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
762         !flag_trapping_math instead of flag_unsafe_math_optimizations.
763         Change to frndint<mode>2_<rounding>.
764         (frndintxf2_<rounding>_i387): Likewise.  Change to
765         frndint<mode>2_<rounding>_i387.
766         (<rounding_insn>xf2): Likewise.
767         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
768         !flag_trapping_math instead of flag_unsafe_math_optimizations for
769         x87.  Test TARGET_ROUND || !flag_trapping_math ||
770         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
771         SSE.  Use ROUND_NO_EXC in constant operand of
772         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
773         for 387 instead of extending and truncating.
775 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
776             Julia Koval  <julia.koval@intel.com>
778         PR target/66960
779         PR target/67630
780         PR target/67634
781         PR target/67841
782         PR target/68037
783         PR target/68618
784         PR target/68661
785         PR target/69575
786         PR target/69596
787         PR target/69734
788         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
789         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
790         all registers, except for function return registers if there are
791         no caller-saved registers.
792         (ix86_set_func_type): New function.
793         (ix86_set_current_function): Call ix86_set_func_type to set
794         no_caller_saved_registers and func_type.  Call reinit_regs if
795         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
796         nor x87 instructions in interrupt handler nor function with
797         no_caller_saved_registers attribute.
798         (ix86_function_ok_for_sibcall): Return false if there are no
799         caller-saved registers.
800         (type_natural_mode): Don't warn ABI change for MMX in interrupt
801         handler.
802         (ix86_function_arg_advance): Skip for callee in interrupt handler.
803         (ix86_function_arg): Return special arguments in interrupt handler.
804         (ix86_promote_function_mode): Promote pointer to word_mode only
805         for normal functions.
806         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
807         interrupt handler.
808         (ix86_epilogue_uses): New function.
809         (ix86_hard_regno_scratch_ok): Likewise.
810         (ix86_save_reg): Preserve all registers in interrupt handler
811         after reload.  Preserve all registers, except for function return
812         registers, if there are no caller-saved registers after reload.
813         (find_drap_reg): Always use callee-saved register if there are
814         no caller-saved registers.
815         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
816         for interrupt handler.
817         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
818         Emit cld instruction if stringops are used in interrupt handler
819         or interrupt handler isn't a leaf function.
820         (ix86_expand_epilogue): Generate interrupt return for interrupt
821         handler and pop the 'ERROR_CODE' off the stack before interrupt
822         return in exception handler.
823         (ix86_expand_call): Disallow calling interrupt handler directly.
824         If there are no caller-saved registers, mark all registers that
825         are clobbered by the call which returns as clobbered.
826         (ix86_handle_no_caller_saved_registers_attribute): New function.
827         (ix86_handle_interrupt_attribute): Likewise.
828         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
829         attributes.
830         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
831         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
832         accumulation in interrupt function if stack may be realigned to
833         avoid DRAP.
834         (EPILOGUE_USES): New.
835         (function_type): New enum.
836         (machine_function): Add func_type and no_caller_saved_registers.
837         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
838         (interrupt_return): New pattern.
839         * doc/extend.texi: Document x86 interrupt and
840         no_caller_saved_registers attributes.
842 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
844         PR tree-optimization/52171
845         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
846         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
847         Look for constant strings.  Move some code to emit_block_cmp_hints
848         and use it.
849         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
850         * defaults.h (COMPARE_MAX_PIECES): New macro.
851         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
852         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
853         (clear_by_pieces_1): Don't declare.  Move definition before use.
854         (can_do_by_pieces): New static function.
855         (can_move_by_pieces): Use it.  Return bool.
856         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
857         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
858         (class pieces_addr); New.
859         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
860         pieces_addr::adjust, pieces_addr::increment_address,
861         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
862         functions for it.
863         (class op_by_pieces_d): New.
864         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
865         functions for it.
866         (class move_by_pieces_d, class compare_by_pieces_d,
867         class store_by_pieces_d): New subclasses of op_by_pieces_d.
868         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
869         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
870         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
871         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
872         compare_by_pieces_d::finish_mode): New member functions.
873         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
874         functions.
875         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
876         (emit_block_cmp_hints): New function.
877         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
878         use the newly defined classes.
879         * expr.h (by_pieces_constfn): New typedef.
880         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
881         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
882         (move_by_pieces_ninsns): Don't declare.
883         (can_move_by_pieces): Change return value to bool.
884         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
885         (compare_by_pieces_branch_ratio): New hook.
886         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
887         (by_pieces_ninsns): Declare.
888         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
889         COMPARE_BY_PIECES.
890         (default_compare_by_pieces_branch_ratio): New function.
891         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
892         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
893         * doc/tm.texi: Regenerate.
894         * tree-ssa-strlen.c: Include "builtins.h".
895         (handle_builtin_memcmp): New static function.
896         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
897         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
899 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
901         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
902         relevant stmts which are simple and invariant.
903         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
904         instead of simple and invariant
906 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
908         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
909         (vectorizable_reduction): Check for new relevant state.
910         (vectorizable_live_operation): vectorize live stmts using
911         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
912         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
913         (vect_stmt_relevant_p): Check for stmts which are only used live.
914         (process_use): Use of a stmt does not inherit it's live value.
915         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
916         (vect_analyze_stmt): Check for new relevant state.
917         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
918         outside the loop, but not inside it.
920 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
922         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
923         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
924         (vect_get_vec_def_for_operand): Split out code.
926 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
928         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
930 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
932         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
934 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
936         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
938 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
940         PR middle-end/71387
941         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
942         to noreturn e->callee->decl that has void return type and void
943         arguments, adjust gimple_call_fntype and remove lhs even if it had
944         previously addressable type.
946 2016-06-02  Jeff Law  <law@redhat.com>
948         PR tree-optimization/71328
949         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
950         error when checking for a jump back onto the copied path.
952 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
954         * config/microblaze/microblaze.c (get_branch_target): Add return
955         NULL_RTX for the non-CALL_P case.
956         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
957         (insert_wic): Remove unused local "j".
959 2016-06-02  Martin Liska  <mliska@suse.cz>
961         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
963 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
964             Julia Koval  <julia.koval@intel.com>
966         * function.c (assign_parm_setup_stack): Force source into a
967         register if needed.
968         * target.def (function_incoming_arg): Update documentation to
969         allow arbitrary address computation based on hard register.
970         * doc/tm.texi: Regenerated.
972 2016-06-02  Martin Liska  <mliska@suse.cz>
974         * predict.c (combine_predictions_for_bb): Fix first match in
975         cases where a first predictor contains more than one occurence
976         in list of predictors.  Take the best value in such case.
978 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
980         PR rtl-optimization/71295
981         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
982         offset would go over the size of the inner mode reject it.
984 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
986         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
987         x=x,x and v=v,m instead of x=x,m.
989         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
990         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
991         alternative to v=rm,C.
993         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
994         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
995         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
996         instead of vex for the last two above mentioned alternatives.
998 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1000         PR target/70830
1001         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
1003 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
1005         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
1007 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
1009         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
1010         from int to unsigned.
1012 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
1014         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
1015         alternatives, eliminating preferred register class.  Add support
1016         for the MTVSRDD instruction in ISA 3.0.
1017         (vsx_splat_v4si_internal): Use splat_input_operand instead of
1018         reg_or_indexed_operand.
1019         (vsx_splat_v4sf_internal): Likewise.
1021 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
1023         PR target/71186
1024         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
1025         for loading up all 0's or all 1's.
1027 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1029         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
1031 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
1033         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
1034         extension.
1035         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
1036         * gcc.c (set_source_date_epoch_envvar): New function, sets
1037         the SOURCE_DATE_EPOCH environment variable to the current time.
1039 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
1041         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
1042         the factor for live Phi nodes.
1044 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
1046         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
1047         * tree-parloops.c (parallelize_loops): likewise.
1048         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
1049         tree_unswitch_outer_loop): likewise.
1051 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
1053         PR middle-end/71371
1054         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
1055         around creation of the temporary.
1057 2016-06-01  Richard Biener  <rguenther@suse.de>
1059         PR tree-optimization/71366
1060         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
1061         (unloop_loops): Move removing edges here ...
1062         (try_unroll_loop_completely): ... from here.
1063         (try_peel_loop): ... and here.
1064         (tree_unroll_loops_completely_1): Track parent loops via
1065         bitmap of header BBs.
1066         (tree_unroll_loops_completely): Adjust for that.
1068 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1070         * config/rs6000/altivec.h (vec_slv): New macro.
1071         (vec_srv): New macro.
1072         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
1073         (UNSPEC_VSRV): New value.
1074         (vslv): New insn.
1075         (vsrv): New insn.
1076         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
1077         (vsrv): New builtin definition.
1078         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
1079         define argument types for new builtin.
1080         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
1081         new builtin.
1082         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
1083         functions.
1085 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
1086             Jocelyn Mayer  <l_indien@magic.fr>
1088         PR target/67310
1089         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
1090         detect processor family for signature_CENTAUR_ebx.
1091         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
1092         signature_CENTAUR_ebx.
1093         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
1094         <default>: Pass x86-64 for has_longmode.
1096 2016-06-01  Nathan Sidwell  <nathan@acm.org>
1098         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
1099         undefined weak.
1101 2016-06-01  Richard Biener  <rguenther@suse.de>
1103         PR tree-optimization/71261
1104         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
1105         of stmts successfully put in the bool pattern.  Remove
1106         single-use restriction.
1107         (adjust_bool_pattern_cast): Add cast at the use site via the
1108         pattern def sequence.
1109         (adjust_bool_pattern): Remove recursion, maintain a hash-map
1110         of patterned defs.  Use the pattern def seqence instead of
1111         multiple independent patterns.
1112         (sort_after_uid): New qsort compare function.
1113         (adjust_bool_stmts): New function to process stmts in the bool
1114         pattern in IL order.
1115         (vect_recog_bool_pattern): Adjust.
1116         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
1117         (ifcvt_walk_pattern_tree): Likewise.
1118         (stmt_is_root_of_bool_pattern): Likewise.
1119         (ifcvt_repair_bool_pattern): Likewise.
1120         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
1122 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
1124         * loop-unroll.c (decide_unroll_constant_iterations,
1125         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
1126         likely upper bounds.
1127         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
1129 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
1131         * tree-core.h (enum omp_clause_code): Remove
1132         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
1134 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1136         * config/arm/sync.md (arm_store_exclusive<mode>):
1137         Use 'H' output modifier on operands[2] rather than creating a new
1138         entry in out-of-bounds memory of the operands array.
1139         (arm_store_release_exclusivedi): Likewise.
1141 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1143         * config/arm/arm.c (arm_fusion_enabled_p): New function.
1144         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
1145         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
1146         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
1148 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
1150         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
1151         into account live statements for mask producers.
1153 2016-06-01  Richard Biener  <rguenther@suse.de>
1155         PR tree-optimization/71311
1156         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
1157         restrict to non-INTEGER_CST @0.
1159 2016-06-01  Richard Biener  <rguenther@suse.de>
1161         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
1162         (relational patterns): Use :c to avoid pattern duplications.
1164 2016-06-01  Richard Biener  <rguenther@suse.de>
1166         * genmatch.c (comparison_code_p): New predicate.
1167         (swap_tree_comparison): New function.
1168         (commutate): Add for_vec parameter to append new for entries.
1169         Support commutating relational operators by swapping it alongside
1170         operands.
1171         (lower_commutative): Adjust.
1172         (dt_simplify::gen): Do not pass artificial operators to gen
1173         functions.
1174         (decision_tree::gen): Do not add artificial operators as parameters.
1175         (parser::parse_expr): Verify operator commutativity when :c is
1176         applied.  Allow :C to override this.
1177         * match.pd: Adjust patterns to use :C instead of :c where required.
1179 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
1181         PR tree-optimization/71077
1182         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
1183         the combining step, use boolean_false_node and boolean_true_node
1184         as the designated false/true return values.
1186 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
1188         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
1189         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
1190         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
1191         PRED_LOOP_EXIT.
1193 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
1195         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
1196         of flags impliying the register renaming.
1197         * toplev.c (process_options): Do not imply flag_rename_registers with
1198         loop peeling.
1200 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
1202         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
1203         default implementation.
1205 2016-05-31  Nathan Sidwell  <nathan@acm.org>
1207         * dwarf2out.c (cur_line_info_table): Add GTY marker.
1209 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
1211         * config/sh/constraints.md (b): Remove constraint.
1212         * config/sh/predicates.md (arith_reg_operand): Remove
1213         TARGET_REGISTER_P.
1214         * config/sh/sh-modes.def (PDI): Remove.
1215         * config/sh/sh.c (sh_target_reg_class,
1216         sh_optimize_target_register_callee_saved): Remove functions.
1217         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
1218         (sh_expand_epilogue): Update comment.
1219         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
1220         sh_secondary_reload): Remove TARGET_REGS related code.
1221         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
1222         TARGET_REGISTER_P): Remove macros.
1223         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
1224         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
1225         TR1_REG, TR2_REG): Remove constants.
1226         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
1228 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
1230         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
1231         define_expand patterns.
1232         (adddi3_compact): Rename to adddi3.
1233         (subdi3_compact): Rename to subdi3.
1234         (*negdi2): Rename to negdi2.
1235         (*abs<mode>2): Rename to abs<mode>2.
1237 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
1239         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
1240         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
1241         (atomic_sub_fetchsi): ... this new pattern.
1242         (mvtc): Add CC_REG clobber.
1244 2016-05-31  Marek Polacek  <polacek@redhat.com>
1246         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
1248 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1250         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
1251         aarch64_fusion_enabled_p to check for fusion capabilities.
1253 2016-05-31  Richard Biener  <rguenther@suse.de>
1255         PR tree-optimization/71352
1256         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
1257         minus one and a negate.
1259 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1261         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
1262         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
1263         Delete prototype.
1264         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
1265         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
1266         Remove use of aarch64_simd_attr_length_move, set length attribute
1267         directly.
1268         (*aarch64_be_movoi): Likewise.
1269         (*aarch64_be_movci): Likewise.
1270         (*aarch64_be_movxi): Likewise.
1272 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
1274         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
1275         It no longer does that.
1276         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
1278 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
1280         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
1281         attribute __unused__.
1283 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1285         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
1286         * config/arm/arm.c (arm_arch_thumb1): Define.
1287         (arm_option_override): Initialize arm_arch_thumb1.
1288         * config/arm/arm.h (arm_arch_thumb1): Declare.
1289         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
1290         support Thumb-1 ISA.
1292 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
1294         PR target/71346
1295         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
1296         `Yv' for scalar operand.
1298 2016-05-31  Tom de Vries  <tom@codesourcery.com>
1300         PR tree-optimization/69068
1301         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
1302         phis with more than two args.
1304 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
1306         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
1307         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
1308         target.
1310 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
1312         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
1313         tune_64.
1314         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
1315         support on SPARC.
1316         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
1317         cpu_32, cpu_64, tune_32 and tune_64.
1318         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
1320 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
1322         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
1324 2016-05-30  Andi Kleen  <ak@linux.intel.com>
1326         * auto-profile.c (read_profile): Replace asserts with errors
1327         when file does not exist.
1328         * gcov-io.c (gcov_read_words): Dito.
1330 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
1332         * tree-cfg.c (print_loop): Print likely upper bounds.
1334 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
1336         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
1337         * opts.c (default_options): Enable peel loops at -O3.
1338         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
1339         (try_peel_loop): Do not re-peel already peeled loops;
1340         use likely upper bounds; fix profile updating.
1341         (pass_complete_unroll::execute): Initialize peeled_loops.
1343 2016-05-30  Martin Liska  <mliska@suse.cz>
1345         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
1346         computed costs by frequency of BB they belong to.
1347         (get_scaled_computation_cost_at): New function.
1349 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
1350             Marc Glisse  <marc.glisse@inria.fr>
1352         PR tree-optimization/71289
1353         * match.pd (-1 / B < A, A > -1 / B): New transformations.
1355 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
1357         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
1359 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
1361         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
1362         for peeled copies; avoid underflow when updating estimates; correctly
1363         scale loop profile.
1365 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
1367         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
1368         r236875. Corrected oe3 to oe2 as obvious.
1370 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
1372         PR middle-end/71269
1373         PR middle-end/71252
1374         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
1375         that inserted stmt will not dominate stmts that defines its operand.
1376         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
1377         (rewrite_expr_tree_parallel): Likewise.
1379 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
1381         PR middle-end/71252
1382         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
1383         all fields including stmt_to_insert are swapped.
1385 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
1387         * predict.h (force_edge_cold): Declare.
1388         * predict.c (force_edge_cold): New function.
1389         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
1390         updating.
1391         (canonicalize_loop_induction_variables): Fix formating.
1393 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
1395         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
1396         (visium_expand_copysign): Use gen_int_mode directly.
1397         (visium_compute_frame_size): Minor tweaks.
1399 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
1401         * tree-vect-loop.c (vect_analyze_loop_2): Use
1402         likely_max_stmt_executions_int.
1404 2016-05-30  Tom de Vries  <tom@codesourcery.com>
1406         PR tree-optimization/69067
1407         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
1409 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
1411         PR target/71245
1412         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
1413         New peepholes to remove unneeded fild/fistp pairs.
1414         (define_peephole2 atomic_loaddi_fpu): Ditto.
1416 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
1418         * predict.c (maybe_hot_frequency_p): Avoid division.
1420 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
1422         * doc/install.texi: Use https for shop.fsf.org.
1424 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
1426         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
1427         likely_max_stmt_executions_int.
1429 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
1431         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
1432         likely_max_stmt_executions_int.
1434 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
1436         * profile.c (compute_branch_probabilities): Do not report hitrates
1437         here.
1438         (branch_prob): Report hitrates here.
1439         * predict.c (gimple_predict_edge): Do not assert profile status;
1440         fix formatting issues.
1442 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
1444         * predict.c (edge_predicted_by_p): New function.
1445         (predict_paths_for_bb): Do not put multiple predictions of the same type
1446         on one edge.
1448 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
1450         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
1451         commit.
1453 2016-05-28  Alan Modra  <amodra@gmail.com>
1455         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
1457 2016-05-28  Alan Modra  <amodra@gmail.com>
1459         PR rtl-optimization/71275
1460         * ira.c (ira): Free dominance info.
1462 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
1464         * doc/sourcebuild.texi: New address for upstream Go repository.
1466 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1468         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
1469         (TARGET_ARM_V7M): Likewise.
1471 2016-05-26  Jeff Law  <law@redhat.com>
1473         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
1474         (thread_across_edge): Remove calls to find_jump_threads_backwards.
1475         * passes.def: Add jump threading passes before DOM/VRP.
1476         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
1477         argument to a basic block from an edge.  Remove tests which are
1478         handled elsewhere.
1479         (pass_data_thread_jumps, class pass_thread_jumps): New.
1480         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
1481         (make_pass_thread_jumps): Likewise.
1482         * tree-pass.h (make_pass_thread_jumps): Declare.
1484 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
1486         * config/visium/visium-protos.h (split_double_move): Rename into...
1487         (visium_split_double_move): ...this.
1488         (visium_split_double_add): Declare.
1489         * config/visium/visium.c (split_double_move): Rename into...
1490         (visium_split_double_move): ...this.
1491         (visium_split_double_add): New function.
1492         (visium_expand_copysign): Renumber operands for consistency.
1493         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
1494         (DFmode move splitter): Likewise.
1495         (*addi3_insn): Split by means of visium_split_double_add.
1496         (*adddi3_insn_flags): Delete.
1497         (*plus_plus_sltu<subst_arith>): New insn.
1498         (*subdi3_insn): Split by means of visium_split_double_add.
1499         (subdi3_insn_flags): Delete.
1500         (*minus_minus_sltu<subst_arith>): New insn.
1501         (*negdi2_insn): Split by means of visium_split_double_add.
1502         (*negdi2_insn_flags): Delete.
1504 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
1506         * configure.ac: Treat a --with-headers option without argument
1507         the same as the default (i.e. consult sys-include directory).
1508         * configure: Regenerate.
1510 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1512         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
1513         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
1514         prototype.
1515         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
1516         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
1518 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
1520         PR target/63596
1521         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
1522         tree-stdarg analysis results.
1523         (aarch64_setup_incoming_varargs): Likewise.
1525 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
1527         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
1528         va_list_gpr_counter_field and va_list_fpr_counter_field.
1530 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
1532         PR67609
1533         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
1534         * config/aarch64/aarch64.c
1535         (aarch64_cannot_change_mode_class): Remove function.
1536         * config/aarch64/aarch64-protos.h
1537         (aarch64_cannot_change_mode_class): Remove.
1539 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
1541         * cfgloop.c (record_niter_bound): Record likely upper bounds.
1542         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
1543         get_likely_max_loop_iterations_int): New.
1544         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
1545         any_likely_upper_bound.
1546         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
1547         Declare.
1548         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
1549         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
1550         upper bound.
1551         (unroll_loop_constant_iterations): Likewise.
1552         (unroll_loop_runtime_iterations): Likewise.
1553         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
1554         * lto-streamer-out.c (output_cfg): Likewise.
1555         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
1556         bounds.
1557         (canonicalize_loop_induction_variables): Dump likely upper bounds.
1558         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
1559         (likely_max_loop_iterations): New.
1560         (likely_max_loop_iterations_int): New.
1561         (likely_max_stmt_executions): New.
1562         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
1563         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
1564         likely_max_stmt_executions): Declare.
1566 2016-05-27  Marek Polacek  <polacek@redhat.com>
1568         PR middle-end/71308
1569         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
1571 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1573         * config/s390/s390.md (2x risbg splitters): Use
1574         reg_overlap_mentioned_p instead of rtx_equal_p.
1576 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1578         * combine.c (make_compound_operation): Take known zero bits into
1579         account when checking for possible zero_extend.
1581 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1583         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
1584         Use const_int_operand for operand 2 predicate.  Simplify expand code
1585         as a result.
1587 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
1589         PR middle-end/71279
1590         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
1591         into comparison.
1593 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1595         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
1596         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
1597         that returns CC_SESWPmode and CC_ZESWPmode.
1598         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
1599         and CC_SESWPmode.
1600         (aarch64_rtx_costs): Likewise.
1602 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1604         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
1605         for ISA 3.0 min/max support.
1606         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
1607         conditional move support.
1608         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
1609         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
1610         available.
1611         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
1612         conditional moves where the comparison type is different from move
1613         type.
1614         (fp_minmax): New code iterator for smin/smax.
1615         (minmax): New code attributes for min/max.
1616         (SMINMAX): Likewise.
1617         (smax<mode>3): Combine min, max insns into one insn using the
1618         fp_minmax code iterator.  Add support for ISA 3.0 min/max
1619         instructions that don't need -ffast-math.
1620         (s<minmax><mode>3): Likewise.
1621         (smax<mode>3_vsx): Likewise.
1622         (smin<mode>3): Likewise.
1623         (s<minmax><mode>3_vsx): Likewise.
1624         (smin<mode>3_vsx): Likewise.
1625         (pre-VSX min/max splitters): Likewise.
1626         (s<minmax><mode>3_fpr): Likewise.
1627         (movsfcc): Rewrite floating point conditional moves to combine
1628         SFmode/DFmode into a single insn.
1629         (mov<mode>cc): Likewise.
1630         (movdfcc): Likewise.
1631         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
1632         SFDF2 iterators to handle all combinations.
1633         (fseldfsf4): Likewise.
1634         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
1635         (fseldfdf4): Likewise.
1636         (fselsfdf4): Likewise.
1637         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
1638         comparison instructions that set a 0/-1 mask, and use it for
1639         floating point conditional move via XXSEL.
1640         (fpmask<mode>): Likewise.
1641         (xxsel<mode>): Likewise.
1642         * config/rs6000/predicates.md (min_max_operator): Delete, no
1643         longer used.
1644         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
1645         instructions that generate a 0/-1 mask for use with XXSEL.
1646         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
1647         say whether floating point min/max is available, either through
1648         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
1649         (TARGET_MINMAX_DF): Likewise.
1651 2016-05-27  Alan Modra  <amodra@gmail.com>
1653         PR rtl-optimization/71275
1654         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
1655         for update_equiv_regs and combine_and_move_insns.
1657 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
1659         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
1660         if_then_else or cond RTXes to calculate attribute value.
1661         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
1662         <attr "length_immediate>: Ditto.
1663         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
1664         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
1665         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
1666         <attr "type">: Ditto.
1667         <attr "prefix_data16">: Ditto.
1668         <attr "prefix_extra">: Ditto.
1669         <attr "length_immediate">: Ditto.
1670         <attr "prefix">: Ditto.
1671         (vec_set<mode>_0) <attr "isa">: Ditto.
1672         <attr "prefix_extra">: Ditto.
1673         <attr "length_immediate">: Ditto.
1674         <attr "prefix">: Ditto.
1675         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
1676         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
1677         (sse2_storelpd) <attr "prefix_data16">: Ditto.
1678         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
1679         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
1680         <attr "length_immediate">: Ditto.
1681         <attr "prefix">: Ditto.
1682         (sse2_movsd) <attr "length_immediate">: Ditto.
1683         <attr "prefix">: Ditto.
1684         (vec_concatv2df)  <attr "isa">: Ditto.
1685         <attr "prefix">: Ditto.
1686         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
1687         (*vec_extractv2di_1) <attr "isa">: Ditto.
1688         <attr "type">: Ditto.
1689         <attr "length_immediate">: Ditto.
1690         <attr "prefix_rex">: Ditto.
1691         <attr "prefix_extra">: Ditto.
1692         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
1693         <attr "prefix_extra">: Ditto.
1694         <attr "length_immediate">: Ditto.
1695         (vec_concatv2di) <attr "isa">: Ditto.
1696         <attr "prefix_extra">: Ditto.
1697         <attr "length_immediate">: Ditto.
1698         <attr "prefix">: Ditto.
1700 2016-05-26  Martin Liska  <mliska@suse.cz>
1702         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
1703         function.
1704         (operator+): Likewise.
1705         (operator-): Likewise.
1706         (comp_cost::operator+=): Likewise.
1707         (comp_cost::operator-=): Likewise.
1708         (comp_cost::operator/=): Likewise.
1709         (comp_cost::operator*=): Likewise.
1710         (operator<): Likewise.
1711         (operator==): Likewise.
1712         (operator<=): Likewise.
1713         (new_cost): Remove.
1714         (infinite_cost_p): Likewise.
1715         (add_costs): Likewise.
1716         (sub_costs): Likewise.
1717         (compare_costs): Likewise.
1718         (set_group_iv_cost): Use the newly introduced functions.
1719         (get_address_cost): Likewise.
1720         (get_shiftadd_cost): Likewise.
1721         (force_expr_to_var_cost): Likewise.
1722         (split_address_cost): Likewise.
1723         (ptr_difference_cost): Likewise.
1724         (difference_cost): Likewise.
1725         (get_computation_cost_at): Likewise.
1726         (determine_group_iv_cost_generic): Likewise.
1727         (determine_group_iv_cost_address): Likewise.
1728         (determine_group_iv_cost_cond): Likewise.
1729         (autoinc_possible_for_pair): Likewise.
1730         (determine_group_iv_costs): Likewise.
1731         (cheaper_cost_pair): Likewise.
1732         (iv_ca_recount_cost): Likewise.
1733         (iv_ca_set_no_cp): Likewise.
1734         (iv_ca_set_cp): Likewise.
1735         (iv_ca_cost): Likewise.
1736         (iv_ca_new): Likewise.
1737         (iv_ca_dump): Likewise.
1738         (iv_ca_narrow): Likewise.
1739         (iv_ca_prune): Likewise.
1740         (iv_ca_replace): Likewise.
1741         (try_add_cand_for): Likewise.
1742         (try_improve_iv_set): Likewise.
1743         (find_optimal_iv_set): Likewise.
1745 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
1747         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
1748         that internal functions will clobber all caller-saved registers.
1750 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
1752         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
1753         Return a better case_values_threshold when optimizing.
1755 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
1757         * config/aarch64/aarch64-simd.md (aarch64_combinez):
1758         Add ? to integer variant.
1759         (aarch64_combinez_be): Likewise.
1761 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
1763         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
1764         instead of x constraint.
1765         (vcvtps2ph256<mask_name>): Likewise.
1767         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
1768         alternative.  Formatting fix.
1770         * config/i386/sse.md
1771         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
1772         to ...
1773         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
1774         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
1775         maybe_evex prefix instead of vex.
1776         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
1777         EXT_REX_SSE_REG_P (op0) case in the splitter.
1779 2016-05-25  Jeff Law  <law@redhat.com>
1781         PR tree-optimization/71272
1782         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
1783         Update comments.  Add test for empty path.
1785 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
1787         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
1788         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
1789         special case builtin.
1790         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1791         code for ALTIVEC_BUILTIN_VEC_CMPNE.
1792         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1793         for __builtin_vec_cmpne.
1795 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1797         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
1798         redundant test and bail out if the type of the new operand is not
1799         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
1801 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
1803         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
1804         (x_ix86_target_flags_explicit): Remove.
1805         * config/i386/i386.c (ix86_function_specific_save): Do not copy
1806         x_ix86_target_flags_explicit.
1807         (ix86_function_specific_restore): Ditto.
1809 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
1810             H.J. Lu  <hongjiu.lu@intel.com>
1812         PR target/70738
1813         * common/config/i386/i386-common.c
1814         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
1815         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
1816         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
1817         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
1818         (-mgeneral-regs-only): Add new option.
1819         * config/i386/i386.c (ix86_option_override_internal): Don't enable
1820         x87 instructions if only general registers are allowed.
1821         (ix86_target_string): Add ix86_flags argument. Handle additional
1822         flags options through ix86_flags argument.  Update all callers.
1823         * doc/invoke.texi: Document -mgeneral-regs-only.
1825 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1827         PR rtl-optimization/66940
1828         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
1829         decrementing desired_val will not overflow before performing these
1830         operations.
1832 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
1834         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
1835         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
1836         * config/i386/i386.c (enum ix86_builtins): Add
1837         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
1838         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
1839         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
1840         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
1841         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
1842         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
1843         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
1844         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
1845         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
1846         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
1847         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
1848         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
1849         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
1850         __builtin_ia32_cvtps2dq512_mask.
1851         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
1852         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
1853         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
1854         * config/i386/sse.md
1855         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
1856         Rename to ...
1857         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
1858         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
1859         to ...
1860         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
1861         (avx512f_vec_pack_sfix_v8df): New define_expand.
1862         (avx512f_roundpd512): Rename to ...
1863         (avx512f_round<castmode>512): ... this.  Change iterator.
1864         (avx512f_roundps512_sfix): New define_expand.
1865         (round<mode>2_sfix): Change iterator.
1867 2016-05-25  Nick Clifton  <nickc@redhat.com>
1869         * config/msp430/msp430.c (msp430_attr): Produce an error if a
1870         static interrupt handler is detected.
1871         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
1872         default linker script.
1873         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
1874         the low part of a symbolic pointer.
1876 2016-05-25  Richard Biener  <rguenther@suse.de>
1878         PR tree-optimization/71261
1879         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
1880         interesting stmt instead of immediate uses when looking
1881         for the use operand to replace.
1883 2016-05-25  Martin Liska  <mliska@suse.cz>
1885         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
1887 2016-05-25  Richard Biener  <rguenther@suse.de>
1889         PR tree-optimization/71264
1890         * tree-vect-stmts.c (vect_init_vector): Properly deal with
1891         vector type val.
1893 2016-05-25  Martin Liska  <mliska@suse.cz>
1895         PR tree-optimization/71239
1896         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
1897         if DECL_SIZE is NULL.
1899 2016-05-25  Richard Biener  <rguenther@suse.de>
1901         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
1902         * tree-if-conv.c (pass_data_if_conversion): Use it.
1904 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1906         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
1907         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
1908         * varpool.c (varpool_node::get_availability): Likewise.
1910 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1912         * config/rs6000/altivec.md (VNEG iterator): New iterator for
1913         VNEGW/VNEGD instructions.
1914         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
1915         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
1916         support for ISA 3.0 VNEGW/VNEGD instructions.
1918 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
1920         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
1921         pointers inside OACC_DATA regions.
1922         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
1923         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
1924         (gimplify_adjust_omp_clauses): Fix typo in comment.
1926 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1928         * config/rs6000/altivec.md (VParity): New mode iterator for vector
1929         parity built-in functions.
1930         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
1931         zeros.
1932         (p9v_parity<mode>2): Likewise.
1933         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
1934         parity.
1935         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
1936         (parity<mode>2): ISA 3.0 expander for vector parity.
1937         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
1938         power9 built-ins.
1939         (BU_P9_64BIT_MISC_0): Likewise.
1940         (BU_P9_MISC_0): Likewise.
1941         (BU_P9V_AV_1): Likewise.
1942         (BU_P9V_AV_2): Likewise.
1943         (BU_P9V_AV_3): Likewise.
1944         (BU_P9V_AV_P): Likewise.
1945         (BU_P9V_VSX_1): Likewise.
1946         (BU_P9V_OVERLOAD_1): Likewise.
1947         (BU_P9V_OVERLOAD_2): Likewise.
1948         (BU_P9V_OVERLOAD_3): Likewise.
1949         (VCTZB): Add vector count trailing zeros support.
1950         (VCTZH): Likewise.
1951         (VCTZW): Likewise.
1952         (VCTZD): Likewise.
1953         (VPRTYBD): Add vector parity support.
1954         (VPRTYBQ): Likewise.
1955         (VPRTYBW): Likewise.
1956         (VCTZ): Add overloaded vector count trailing zeros support.
1957         (VPRTYB): Add overloaded vector parity support.
1958         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1959         overloaded vector count trailing zeros and parity instructions.
1960         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
1961         vector parity support.
1962         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
1963         trailing zeros support.
1964         (vec_cntlz): Likewise.
1965         (vec_vctzb): Likewise.
1966         (vec_vctzd): Likewise.
1967         (vec_vctzh): Likewise.
1968         (vec_vctzw): Likewise.
1969         (vec_vprtyb): Add ISA 3.0 vector parity support.
1970         (vec_vprtybd): Likewise.
1971         (vec_vprtybw): Likewise.
1972         (vec_vprtybq): Likewise.
1973         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1974         the ISA 3.0 vector count trailing zeros and vector parity built-in
1975         functions.
1977 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
1979         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
1980         when there is stmt_to_insert.
1982 2016-05-24  Martin Sebor  <msebor@redhat.com>
1984         PR c++/71147
1985         * tree.h (complete_or_array_type_p): New inline function.
1987 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
1989         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
1990         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
1991         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
1993         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
1994         Limit 1st alternative to noavx isa, split 2nd alternative into one
1995         noavx and one avx alternative, use *x and Bm in the former and
1996         x and m in the latter.
1998         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
1999         of sse4 for the first alternative, drop %v from the template
2000         and d operand modifier.  Split second alternative into one sse4_noavx
2001         and one avx alternative, use *x instead of *v in the former and v
2002         instead of *v in the latter.
2003         (*sse4_1_extractps): Use noavx isa instead of * for the first
2004         alternative, drop %v from the template.  Split second alternative into
2005         one noavx and one avx alternative, use *x instead of *v in the
2006         former and v instead of *v in the latter.
2007         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
2008         with noavx and the last one with avx.
2009         (sse4_1_phminposuw): Guard first alternative with noavx isa,
2010         split the second one into one noavx and one avx alternative,
2011         use *x and Bm in the former and x and m in the latter one.
2012         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
2013         alternatives.
2015         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
2016         first two alternatives to noavx, use *x instead of *v in the second
2017         one, add avx alternative without *.
2018         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
2019         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
2020         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2022 2016-05-24  Jeff Law  <law@redhat.com>
2024         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
2025         New function, extracted from...
2026         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
2027         Allow simple copies and constant initializations in the SSA chain.
2029 2016-05-24  Marek Polacek  <polacek@redhat.com>
2031         PR c/71249
2032         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
2033         scope.
2035 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
2037         PR c++/71257
2038         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
2039         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
2040         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
2041         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
2042         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
2044 2016-05-24  Richard Biener  <rguenther@suse.de>
2046         PR tree-optimization/71240
2047         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
2048         has integral type.
2050 2016-05-24  Richard Biener  <rguenther@suse.de>
2052         PR tree-optimization/71230
2053         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
2055 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
2057         * tree-vectorizer.h (vectorizable_comparison): Delete.
2058         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
2059         PURE_SLP_STMT check.
2060         * tree-vect-stmts.c (vectorizable_call): Likewise.
2061         (vectorizable_simd_clone_call): Likewise.
2062         (vectorizable_conversion): Likewise.
2063         (vectorizable_assignment): Likewise.
2064         (vectorizable_shift): Likewise.
2065         (vectorizable_operation): Likewise.
2066         (vectorizable_load): Likewise.
2067         (vectorizable_condition): Likewise.
2068         (vectorizable_store): Likewise.  Assert that we don't have
2069         hybrid SLP.
2070         (vectorizable_comparison): Make static.  Remove redundant
2071         PURE_SLP_STMT check.
2072         (vect_transform_stmt): Assert that we always have an slp_node
2073         if PURE_SLP_STMT.
2075 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2077         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
2078         operands[2] against 1 with comparison against CONST1_RTX.
2079         (<shift>di3_neon): Likewise.
2080         * config/arm/predicates.md (const0_operand): Replace with comparison
2081         against CONST0_RTX.
2083 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2085         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
2086         operands[2] against 1 with comparison against CONST1_RTX.
2087         (ashrdi3): Likewise.
2088         (lshrdi3): Likewise.
2089         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
2090         UINTVAL.
2091         (ashrsi3): Likewise.
2092         (lshrsi3): Likewise.
2093         (rotrsi3): Likewise.
2094         (define_split above *compareqi_eq0): Likewise.
2095         (define_split above "prologue"): Likewise.
2096         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
2097         * config/arm/predicates.md (shift_operator): Likewise.
2098         (shift_nomul_operator): Likewise.
2099         (sat_shift_operator): Likewise.
2100         (thumb1_cmp_operand): Likewise.
2101         (const_neon_scalar_shift_amount_operand): Replace manual range
2102         check with IN_RANGE.
2103         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
2104         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
2106 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2108         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
2109         with HOST_WIDE_INT_1.
2110         (insv): Likewise.
2111         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
2112         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
2113         (arm_canonicalize_comparison): Likewise.
2114         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
2115         HOST_WIDE_INT_1.
2116         (thumb1_size_rtx_costs): Likewise.
2117         (vfp_const_double_index): Replace cast of 1 to unsigned
2118         HOST_WIDE_INT with HOST_WIDE_INT_1U.
2119         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
2120         HOST_WIDE_INT_1.
2121         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
2122         HOST_WIDE_INT with HOST_WIDE_INT_1U.
2123         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
2124         HOST_WIDE_INT with HOST_WIDE_INT_1.
2126 2016-05-24  Marek Polacek  <polacek@redhat.com>
2128         * tree-cfg.h (should_remove_lhs_p): New predicate.
2129         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
2130         * gimplify.c (gimplify_modify_expr): Likewise.
2131         * tree-cfg.c (verify_gimple_call): Likewise.
2132         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2133         * gimple-fold.c: Include "tree-cfg.h".
2134         (gimple_fold_call): Use should_remove_lhs_p.
2136 2016-05-24  Richard Biener  <rguenther@suse.de>
2138         PR tree-optimization/71253
2139         * cfganal.h (control_dependences): Make robust against edge
2140         and BB removal.
2141         (control_dependences::control_dependences): Remove edge_list argument.
2142         (control_dependences::get_edge): Remove.
2143         (control_dependences::get_edge_src): Add.
2144         (control_dependences::get_edge_dest): Likewise.
2145         (control_dependences::m_el): Make a vector of edge src/dest index.
2146         * cfganal.c (control_dependences::find_control_dependence): Adjust.
2147         (control_dependences::control_dependences): Likewise.
2148         (control_dependences::~control_dependence): Likewise.
2149         (control_dependences::get_edge): Remove.
2150         (control_dependences::get_edge_src): Add.
2151         (control_dependences::get_edge_dest): Likewise.
2152         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
2153         get_edge_src.
2154         (perform_tree_ssa_dce): Adjust.
2155         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
2156         get_edge_src.
2157         (pass_loop_distribution::execute): Adjust.  Do loop destroying
2158         conditional on changed.
2160 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2162         PR target/69857
2163         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
2164         return.  Reindent transformation comment and mention the ARM state
2165         behavior.
2167 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
2169         PR middle-end/71252
2170         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
2171         after build_and_add_sum creates new use stmt.
2173 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
2175         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
2176         load_lanes/grouped_load classification comes first.  Don't check
2177         whether the vectorization factor is a multiple of the group size
2178         for load_lanes.
2180 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
2182         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
2183         GROUP_GAP for single-element interleaving.
2184         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
2185         variable.
2187 2016-05-24  Richard Biener  <rguenther@suse.de>
2189         PR middle-end/70434
2190         PR c/69504
2191         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
2192         bases which are accessed with non-invariant indices.
2193         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
2194         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
2196 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
2198         PR middle-end/71170
2199         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
2200         (add_to_ops_vec): Add stmt_to_insert.
2201         (add_repeat_to_ops_vec): Init stmt_to_insert.
2202         (insert_stmt_before_use): New.
2203         (transform_add_to_multiply): Remove mult_stmt insertion and add it
2204         to ops vector.
2205         (get_ops): Init stmt_to_insert.
2206         (maybe_optimize_range_tests): Likewise.
2207         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
2208         (rewrite_expr_tree_parallel): Likewise.
2209         (reassociate_bb): Likewise.
2211 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2213         PR target/71201
2214         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
2215         ISA 3.0 xxperm fusion alternative.
2216         (altivec_vperm_v8hiv16qi): Likewise.
2217         (altivec_vperm_<mode>_uns_internal): Likewise.
2218         (vperm_v8hiv4si): Likewise.
2219         (vperm_v16qiv8hi): Likewise.
2221 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2222             Kelvin Nilsen  <kelvin@gcc.gnu.org>
2224         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
2225         vpermr/xxpermr on ISA 3.0.
2226         (altivec_expand_vec_perm_le): Likewise.
2227         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
2228         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
2229         ISA 3.0.
2231 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
2233         * config/i386/i386.h (IS_STACK_MODE): Enable for
2234         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
2235         SSE_FLOAT_MODE_P macros.
2236         * config/i386/i386.c (ix86_preferred_reload_class): Use
2237         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
2238         Cleanup regclass processing for CONST_DOUBLE_P.
2239         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
2240         (ix86_rtx_costs): Remove redundant TARGET_80387 check
2241         with IS_STACK_MODE macro.
2242         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
2243         with TARGET_SSE2.
2244         (*movdf_internal): Use IS_STACK_MODE macro.
2245         (*movsf_internal): Ditto.
2247 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
2249         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
2250         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
2252 2016-05-23  Jeff Law  <law@redhat.com>
2254         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
2255         extracted from ...
2256         (fsm_find_control_statement_thread_paths): Call it.
2258 2016-05-23  Martin Jambor  <mjambor@suse.cz>
2260         PR ipa/71234
2261         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
2262         from_global_constant if t is not NULL.
2264 2016-05-23  Marek Polacek  <polacek@redhat.com>
2266         PR c/49859
2267         * common.opt (Wswitch-unreachable): New option.
2268         * doc/invoke.texi: Document -Wswitch-unreachable.
2269         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
2270         warning.
2272 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
2274         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
2275         TMR_INDEX is non-NULL.
2277 2016-05-23  Richard Biener  <rguenther@suse.de>
2279         PR tree-optimization/71230
2280         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
2281         (try_special_add_to_ops): ... here.  Always test for single-use.
2283 2016-05-23  Martin Jambor  <mjambor@suse.cz>
2285         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
2286         default block if a PHI node in the original one would be resized.
2288 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2290         PR tree-optimization/58135
2291         * tree-vect-slp.c: When group size is not multiple
2292         of vector size, allow splitting of store group at
2293         vector boundary.
2295 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
2297         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
2299 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
2301         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
2302         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
2303         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
2304         of 64x2.
2306         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
2307         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
2308         v constraint instead of x and vinserti32x4 insn.
2310         * config/i386/sse.md (i128vldq): New mode iterator.
2311         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
2312         avx512dq and avx512vl alternatives.
2314         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
2315         constraint, use maybe_evex prefix instead of vex.
2316         (vec_dupv4sf): Use v constraint instead of x for output
2317         operand except for noavx alternative, use Yv constraint
2318         instead of x for input.  Use maybe_evex prefix instead of vex.
2319         (*vec_dupv4si): Likewise.
2320         (*vec_dupv2di): Likewise.
2322 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
2324         PR middle-end/40921
2325         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
2326         (linearize_expr_tree): Call try_special_add_to_ops.
2327         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
2329 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2331         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
2332         to computed stack_usage.
2334 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2336         PR target/71103
2337         * config/avr/avr.md (define_expand "mov<mode>"): If the source
2338         operand is subreg (symbol_ref) then move the symbol ref to register.
2340 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
2342         * tree.c (array_at_struct_end_p): Look through MEM_REF.
2344 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2346         PR middle-end/71179
2347         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
2348         VECTOR type.
2350 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
2352         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
2353         ranges by calling get_single_symbol and tidy up.  Look more closely
2354         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
2356 2016-05-20  Jeff Law  <law@redhat.com>
2358         * bitmap.c (bitmap_find_bit): Remove useless test.
2360 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
2362         * function.c (thread_prologue_and_epilogue_insns): Commit the
2363         insertion of the epilogue.
2365 2016-05-20  Martin Jambor  <mjambor@suse.cz>
2367         PR tree-optimization/70884
2368         * tree-sra.c (initialize_constant_pool_replacements): Do not check
2369         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
2370         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
2371         of constant pool data as a reason for scalarization.
2373 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
2375         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
2376         for naked functions.
2377         (thumb1_expand_prologue): Likewise.
2379 2016-05-20  Nathan Sidwell  <nathan@acm.org>
2381         * config/nvptx/nptx.c (nvptx_option_override): Only set
2382         flag_toplevel_reorder, if not explicitly specified.  Set
2383         flag_no_common, unless explicitly specified.
2385 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
2387         * calls.c (can_implement_as_sibling_call_p): Mark param
2388         reg_parm_stack_space with ATTRIBUTE_UNUSED.
2390 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
2392         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
2393         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
2394         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
2395         constants.
2396         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
2397         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
2398         and CASE_CONST_ANY.
2400 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
2402         * config/nvptx/nvptx.md (sincossf3): New pattern.
2404 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
2406         * calls.c (maybe_complain_about_tail_call): New function.
2407         (initialize_argument_information): Call
2408         maybe_complain_about_tail_call when clearing *may_tailcall.
2409         (can_implement_as_sibling_call_p): Call
2410         maybe_complain_about_tail_call when returning false.
2411         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
2412         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
2413         if tail-call optimization fails.
2414         * cfgexpand.c (expand_call_stmt): Initialize
2415         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
2416         * gimple-pretty-print.c (dump_gimple_call): Dump
2417         gimple_call_must_tail_p.
2418         * gimple.c (gimple_build_call_from_tree): Call
2419         gimple_call_set_must_tail with the value of
2420         CALL_EXPR_MUST_TAIL_CALL.
2421         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
2422         (gimple_call_set_must_tail): New function.
2423         (gimple_call_must_tail_p): New function.
2424         * print-tree.c (print_node): Update printing of TREE_STATIC
2425         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
2426         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
2427         trailing comment listing applicable flags.
2428         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
2430 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
2432         * calls.c (expand_call): Move "Rest of purposes for tail call
2433         optimizations to fail" to...
2434         (can_implement_as_sibling_call_p): ...this new function, and
2435         split into multiple "if" statements.
2437 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
2439         * cfgloop.h (expected_loop_iterations_unbounded,
2440         expected_loop_iterations): Unconstify.
2441         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
2442         profile with known upper bound; return 3 when profile is absent.
2443         (expected_loop_iterations): Update.
2445 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
2447         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
2448         and get_max_loop_iterations_int.
2450 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
2452         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
2453         realistic upper bounds here.
2455 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
2457         PR c++/71210
2458         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
2459         calls if the LHS is variable length or has addressable type.
2460         If targets[0]->decl is a noreturn call with void return type and
2461         zero arguments, adjust fntype and remove lhs in that case.
2463 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
2465         PR tree-optimization/71079
2466         PR tree-optimization/71206
2467         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
2469 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2471         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
2472         (get_vec_alignment_for_array_decl): Likewise.
2473         (get_vec_alignment_for_record_decl): Likewise.
2474         (increase_alignment::execute): Move code to find alignment to
2475         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
2476         (type_align_map): New hash_map.
2478 2016-05-20  Richard Guenther  <rguenther@suse.de>
2480         PR tree-optimization/29756
2481         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
2482         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
2483         * fold-const.c (operand_equal_p): Likewise.
2484         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
2485         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
2486         * tree-inline.c (estimate_operator_cost): Likewise.
2487         * tree-pretty-print.c (dump_generic_node): Likewise.
2488         * tree-ssa-operands.c (get_expr_operands): Likewise.
2489         * cfgexpand.c (expand_debug_expr): Likewise.
2490         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
2491         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
2492         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
2493         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
2494         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
2495         (execute_update_addresses_taken): Do it.
2497 2016-05-20  Richard Biener  <rguenther@suse.de>
2499         PR tree-optimization/71185
2500         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
2501         register operations.
2503 2016-05-20  Richard Biener  <rguenther@suse.de>
2505         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
2506         gimple_seq_add_seq_without_update.
2507         (release_bb_predicate): Assert we have no operands to free.
2508         (if_convertible_loop_p_1): Calculate post dominators later.
2509         Do not free BB predicates here.
2510         (combine_blocks): Do not recompute BB predicates.
2511         (version_loop_for_if_conversion): Save BB predicates around
2512         loop versioning.
2514 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
2516         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
2517         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
2518         code.  Ignore sibcalls on EDGE_IGNORE edges.
2519         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
2520         on edges for sibcalls that run without prologue.  The rest of the
2521         function is combined from...
2522         (fix_fake_fallthrough_edge): ... this, and ...
2523         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
2524         function argument, make it a local variable.
2526 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
2528         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
2529         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
2530         for 32-bit mode and SEH for 64-bit.
2531         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
2532         TARGET_64BIT_DEFAULT.
2534 2016-05-19  Ryan Burn  <contact@rnburn.com>
2536         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
2537         * gengtype.c (open_base_files): Add cilk.h to ifiles.
2539 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
2541         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
2542         force pending loads from memory.
2544 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2546         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
2547         (UNSPEC_DARN_32): New unspec constant.
2548         (UNSPEC_DARN_RAW): New unspec constant.
2549         (darn_32): New instruction.
2550         (darn_raw): New instruction.
2551         (darn): New instruction.
2552         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
2553         support and documentation for this macro.
2554         (BU_P9_MISC_1): New macro definition.
2555         (BU_P9_64BIT_MISC_0): New macro definition.
2556         (BU_P9_MISC_0): New macro definition.
2557         (darn_32): New builtin definition.
2558         (darn_raw): New builtin definition.
2559         (darn): New builtin definition.
2560         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
2561         RS6000_BUILTIN_0 directives to surround each occurrence of
2562         #include "rs6000-builtin.def".
2563         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
2564         RS6000_BTM_64BIT flags to the returned mask, depending on
2565         configuration.
2566         (def_builtin): Correct an error in the assignments made to the
2567         debugging variable attr_string.
2568         (rs6000_expand_builtin): Add support for no-operand built-in
2569         functions.
2570         (builtin_function_type): Remove fatal_error assertion that is no
2571         longer valid.
2572         (rs6000_common_init_builtins): Add support for no-operand built-in
2573         functions.
2574         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
2575         definition.
2576         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
2577         definition.
2578         (RS6000_BTM_64BIT): New macro definition.
2579         * doc/extend.texi: Document __builtin_darn (void),
2580         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
2581         functions.
2583 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
2585         * tree-vect-loop.c (vect_analyze_loop_2): Use also
2586         max_loop_iterations_int.
2588 2016-05-19  Marek Polacek  <polacek@redhat.com>
2590         PR tree-optimization/71031
2591         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
2592         condition and adjust the code a bit.
2594 2016-05-19  Martin Liska  <mliska@suse.cz>
2596         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
2597         auto_vec instead of vec.
2599 2016-05-19  Martin Liska  <mliska@suse.cz>
2601         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
2603 2016-05-19  Martin Liska  <mliska@suse.cz>
2605         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
2607 2016-05-19  Martin Liska  <mliska@suse.cz>
2609         * ipa-pure-const.c (set_function_state): Remove an existing
2610         funct_state.
2611         (remove_node_data): Do not free it as it's released
2612         in set_function_state.
2614 2016-05-19  Martin Liska  <mliska@suse.cz>
2616         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
2617         bitmap.
2619 2016-05-19  Martin Liska  <mliska@suse.cz>
2621         * omp-simd-clone.c (simd_clone_adjust): Release vector.
2623 2016-05-19  Martin Liska  <mliska@suse.cz>
2625         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
2626         an auto_vec instead of re-creating it.
2628 2016-05-19  Martin Liska  <mliska@suse.cz>
2630         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
2631         auto_vec instead of vec.
2633 2016-05-19  Martin Liska  <mliska@suse.cz>
2635         * lto-section-in.c (lto_get_section_data): Call
2636         lto_check_version with additional argument.
2637         * lto-streamer.c (lto_check_version): Add new argument.
2638         * lto-streamer.h (lto_check_version): Likewise.
2640 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2642         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
2643         Don't add cost of inner memory when handling sign-extended loads.
2645 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
2647         PR rtl-optimization/71148
2648         * cse.c (cse_main): Free dominance info.
2649         (rest_of_handle_cse): Don't free dominance info.
2650         (rest_of_handle_cse2): Likewise.
2651         (rest_of_handle_cse_after_global_opts): Likewise.
2653 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2655         PR target/71056
2656         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
2657         NULL_TREE early if NEON is not available.  Remove now redundant check
2658         in ARM_CHECK_BUILTIN_MODE.
2660 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
2662         PR sanitizer/64354
2663         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
2664         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
2665         * doc/cpp.texi: Document new macros.
2667 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
2669         PR tree-optimization/69848
2670         * tree-vect-loop.c (vectorizable_reduction): Don't factor
2671         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
2673 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
2675         * function.c (thread_prologue_and_epilogue_insn): Move the
2676         "goto epilogue_done" one block later.
2678 2016-05-19  Richard Biener  <rguenther@suse.de>
2680         PR tree-optimization/70729
2681         * passes.def: Move LIM pass before PRE.  Remove no longer
2682         required copyprop and move first DCE out of the loop pipeline.
2684 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
2686         PR driver/69265
2687         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
2688         (OBJS-libcommon-target): ...here.
2689         * opts-common.c: Include spellcheck.h.
2690         (cmdline_handle_error): Build a vec of valid options and use it
2691         to suggest provide hints for misspelled arguments.
2693 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
2695         PR c++/71100
2696         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
2697         lhs if it has TREE_ADDRESSABLE type.
2699 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
2701         PR target/71145
2702         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
2703         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
2705 2016-05-18  Martin Jambor  <mjambor@suse.cz>
2707         PR ipa/69708
2708         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
2709         input for NOP_EXPR pass-through functions.
2710         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
2711         aggregate global constant VAR_DECLs in constant jump functions.
2713 2016-05-18  Martin Jambor  <mjambor@suse.cz>
2715         PR ipa/69708
2716         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
2717         from TREE_READONLY parameters.
2719 2016-05-18  Martin Jambor  <mjambor@suse.cz>
2721         PR ipa/69708
2722         * cgraph.h (cgraph_indirect_call_info): New field
2723         guaranteed_unmodified.
2724         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
2725         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
2726         appropriate.
2727         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
2728         pass the parameter value to ipa_find_agg_cst_for_param.
2729         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
2730         guaranteed_unmodified, store AA results there instead of bailing out
2731         if present.
2732         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
2733         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
2734         (find_constructor_constant_at_offset): New function.
2735         (ipa_find_agg_cst_from_init): Likewise.
2736         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
2737         static initializers of contants, report back through a new paameter
2738         from_global_constant if that was the case.
2739         (try_make_edge_direct_simple_call): Also pass parameter value to
2740         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
2741         appropriate.
2742         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
2743         (ipa_read_indirect_edge_info): Likewise.
2744         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
2745         (ipa_load_from_parm_agg): Likewise.
2747 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
2749         PR rtl-optimization/71150
2750         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
2751         check.
2753 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2755         PR target/70915
2756         * config/rs6000/constraints.md (wE constraint): New constraint
2757         for a vector constant that can be loaded with XXSPLTIB.
2758         (wM constraint): New constraint for a vector constant of a 1's.
2759         (wS constraint): New constraint for a vector constant that can be
2760         loaded with XXSPLTIB and a vector sign extend instruction.
2761         * config/rs6000/predicates.md (xxspltib_constant_split): New
2762         predicates for wE/wS constraints.
2763         (xxspltib_constant_nosplit): Likewise.
2764         (easy_vector_constant): Add support for constants that can be
2765         loaded via XXSPLTIB.
2766         (all_ones_constant): New predicate for vector constant with all
2767         1's set.
2768         (splat_input_operand): Add support for ISA 3.0 word splat operations.
2769         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
2770         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
2771         instruction and possibly with a sign extension.
2772         (output_vec_const_move): Add support for XXSPLTIB. If we are
2773         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
2774         instead of XXLXOR/XXLORC.
2775         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
2776         operations.
2777         (rs6000_legitimize_reload_address): Likewise.
2778         (rs6000_output_move_128bit): Use output_vec_const_move to emit
2779         constants.
2780         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
2781         combine VSX_M and VSX_M2 into one iterator.
2782         (VSX_M2): Likewise.
2783         (VSINT_84): New iterators for loading constants with XXSPLTIB.
2784         (VSINT_842): Likewise.
2785         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
2786         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
2787         XXSPLTIB instruction.
2788         (xxspltib_<mode>_nosplit): Likewise.
2789         (xxspltib_<mode>_split): New insn to load up constants with
2790         XXSPLTIB and a sign extend instruction.
2791         (vsx_mov<mode>): Replace single move that handled all vector types
2792         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
2793         moves (when -mvsx-timode is in effect) into the main vector
2794         moves.  Eliminate separate moves for <VSr> <VSa>, where the
2795         preferred register class (<VSr>) is listed first, and the
2796         secondary register class (<VSa>) is listed second with a '?' to
2797         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
2798         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
2799         that if the register was involved in a slow operation, the
2800         clear/set operation does not wait for the slow operation to
2801         finish.  Adjust the length attributes for 32-bit mode.  Use
2802         rs6000_output_move_128bit and drop the use of the string
2803         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
2804         spacing so that the alternatives and attributes don't generate
2805         long lines, and put things in columns, so that it is easier to
2806         match up the operands and attributes with the insn alternatives.
2807         (vsx_mov<mode>_64bit): Likewise.
2808         (vsx_mov<mode>_32bit): Likewise.
2809         (vsx_movti_64bit): Fold movti into normal vector moves.
2810         (vsx_movti_32bit): Likewise.
2811         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
2812         splat instructions.
2813         (vsx_splat_v4si_internal): Likewise.
2814         (vsx_splat_v4sf_internal): Likewise.
2815         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
2816         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
2817         extend vector elements.
2818         (vsx_sign_extend_hi_<mode>): Likewise.
2819         (vsx_sign_extend_si_v2di): Likewise.
2820         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
2821         declaration.
2822         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
2823         constraints.  Add trailing period to wL documentation.
2825 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
2827         PR middle-end/71020
2828         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
2829         * tree-dfa.c (replace_abnormal_ssa_names): New function.
2830         * tree-call-cdce.c: Include tree-dfa.h.
2831         (can_guard_call_p): New function, extracted from...
2832         (can_use_internal_fn): ...here.
2833         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
2834         and return void.
2835         (shrink_wrap_one_built_in_call): Likewise.
2836         (use_internal_fn): Likewise.
2837         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
2838         and return void.  Call replace_abnormal_ssa_names.
2839         (pass_call_cdce::execute): Check can_guard_call_p during the
2840         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
2841         will always change something.
2843 2016-05-18  Martin Jambor  <mjambor@suse.cz>
2845         PR ipa/70646
2846         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
2847         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
2849 2016-05-18  Martin Jambor  <mjambor@suse.cz>
2851         PR ipa/70646
2852         * ipa-inline.h (condition): New field size.
2853         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
2854         for comaprison and store it into the new condition.
2855         (evaluate_conditions_for_known_args): Use condition size to check
2856         access sizes for all but CHANGED conditions.
2857         (unmodified_parm_1): New parameter size_p, store access size into it.
2858         (unmodified_parm): Likewise.
2859         (unmodified_parm_or_parm_agg_item): Likewise.
2860         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
2861         (set_cond_stmt_execution_predicate): Extract access sizes and store
2862         them to conditions.
2863         (set_switch_stmt_execution_predicate): Likewise.
2864         (will_be_nonconstant_expr_predicate): Likewise.
2865         (will_be_nonconstant_predicate): Likewise.
2866         (inline_read_section): Stream condition size.
2867         (inline_write_summary): Likewise.
2869 2016-05-18  Richard Biener  <rguenther@suse.de>
2871         * tree-ssa-loop-im.c (determine_max_movement): Properly add
2872         condition cost to PHI cost instead of total_cost.
2874 2016-05-18  Martin Liska  <mliska@suse.cz>
2876         PR fortran/70856
2877         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
2878         merged variables.
2880 2016-05-18  Richard Biener  <rguenther@suse.de>
2882         * lto-streamer.h (LTO_major_version): Bump to 6.
2884 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
2886         * function.c (make_split_prologue_seq, make_prologue_seq,
2887         make_epilogue_seq): New functions, factored out from...
2888         (thread_prologue_and_epilogue_insns): Here.
2890 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
2892         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
2893         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
2894         of before.  Add a comment.
2896 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
2898         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
2899         expression pointer, not pointer to the pointer.
2901 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
2903         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
2904         (avx2_pbroadcast<mode>): Add another alternative with v instead
2905         of x constraints in it, using <pbroadcast_evex_isa> isa.
2906         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
2908         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
2909         constraint x instead of v in second alternative, add avx512bw
2910         alternative.
2912         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
2913         constraint x instead of v in second alternative, add avx512bw
2914         alternative.
2916         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
2917         constraint x instead of v in second alternative, add avx512bw
2918         alternative.
2920         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
2921         avx512bw alternative.
2923 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2925         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
2926         array to 128 chars.
2927         (define_insn "*andnottf3"): Ditto.
2928         (define_insn "*<code><mode>3"/any_logic): Ditto.
2929         (define_insn "*<code>tf3"/any_logic): Ditto.
2930         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
2931         operand to block AVX-512VL insn variant emit when it is not enabled.
2933 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2935         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
2936         constraint fot SF mode.
2938 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
2939             Kirill Yukhin  <kirill.yukhin@intel.com>
2941         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
2942         modifiers.
2943         (define_insn "rsqrt14<mode>"): Ditto.
2944         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
2945         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
2946         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
2947         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
2948         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
2949         Ditto.
2950         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
2951         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
2952         * config/i386/i386.c (ix86_print_operand): Expand check for size
2953         override codes for Intel syntax.
2955 2016-05-18  Richard Biener  <rguenther@suse.de>
2957         PR tree-optimization/71168
2958         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
2959         initialization earlier.
2961 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
2963         * config/aarch64/aarch64-simd.md
2964         (aarch64_reduc_plus_internal<mode>): Rename to...
2965         (reduc_plus_scal): ...This, and remove previous implementation.
2967 2016-05-18  Richard Biener  <rguenther@suse.de>
2969         * passes.def: Put late dse and cd_dce in canonical order.
2971 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
2973         * ipa-inline-transform.c (preserve_function_body_p): Look for
2974         first non-thunk clone.
2975         (save_function_body): Save into first non-thunk.
2976         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
2977         up call stmt id.
2978         (lto_output_node): Inline thunks don't need body in every
2979         partition.
2980         * lto-streamer-in.c: Do not fixup thunk clones.
2981         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
2982         thunks.
2983         * tree-inline.c (copy_bb): Be prepared for target node to be new after
2984         folding suceeds.
2986 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
2988         PR middle-end/63586
2989         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
2990         (reassociate_bb): Call transform_add_to_multiply.
2992 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
2994         * config/aarch64/aarch64.c (all_extensions): Removed unused
2995         static variable.
2997 2016-05-17  Nathan Sidwell  <nathan@acm.org>
2999         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
3000         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
3002 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
3004         PR tree-optimization/54579
3005         PR middle-end/55299
3006         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
3008 2016-05-17  Marek Polacek  <polacek@redhat.com>
3010         PR ipa/71146
3011         * tree-inline.c (expand_call_inline): Call
3012         maybe_remove_unused_call_args.
3014 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
3016         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
3017         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
3018         * doc/md.texi (fmin@var{m}3): Likewise.
3020 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
3022         * match.pd (X & C): New transformation.
3024 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
3026         * match.pd (~X & Y): New transformation.
3028 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
3030         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
3031         information for new SSA_NAME.
3032         (simplify_conversion_using_ranges): Get range through get_range_info
3033         instead of get_value_range.
3035 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
3037         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
3038         Remove inline assembly.
3039         (vmvn_s16): Likewise.
3040         (vmvn_s32): Likewise.
3041         (vmvn_u8): Likewise.
3042         (vmvn_u16): Likewise.
3043         (vmvn_u32): Likewise.
3044         (vmvnq_s8): Likewise.
3045         (vmvnq_s16): Likewise.
3046         (vmvnq_s32): Likewise.
3047         (vmvnq_u8): Likewise.
3048         (vmvnq_u16): Likewise.
3049         (vmvnq_u32): Likewise.
3050         (vmvn_p8): Likewise.
3051         (vmvnq_p16): Likewise.
3053 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
3055         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
3056         Use builtin.
3057         (vmul_n_s16): Likewise.
3058         (vmul_n_s32): Likewise.
3059         (vmul_n_u16): Likewise.
3060         (vmul_n_u32): Likewise.
3061         (vmulq_n_f32): Likewise.
3062         (vmulq_n_f64): Likewise.
3063         (vmulq_n_s16): Likewise.
3064         (vmulq_n_s32): Likewise.
3065         (vmulq_n_u16): Likewise.
3066         (vmulq_n_u32): Likewise.
3068 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
3070         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
3071         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
3073 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
3075         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
3076         to *aarch64_fma4_elt_from_dup<mode>.
3077         (*aarch64_fnma4_elt_to_128df): Rename to
3078         *aarch64_fnma4_elt_from_dup<mode>.
3079         * config/aarch64/arm_neon.h (vfma_n_f64): New.
3080         (vfms_n_f32): Likewise.
3081         (vfms_n_f64): Likewise.
3082         (vfmsq_n_f32): Likewise.
3083         (vfmsq_n_f64): Likewise.
3085 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
3087         * wide-int.h: Change fixed_wide_int_storage from class to struct.
3089 2016-05-17  Richard Biener  <rguenther@suse.de>
3091         PR tree-optimization/71132
3092         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
3093         Only add control dependences for blocks in the loop.
3094         (build_rdg): Adjust.
3095         (generate_code_for_partition): Return whether loop should
3096         be destroyed and delay that.
3097         (distribute_loop): Likewise.
3098         (pass_loop_distribution::execute): Record loops to be destroyed
3099         and perform delayed destroying of loops.
3101 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3103         PR target/70809
3104         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
3106 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
3108         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
3110 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
3112         PR target/71114
3113         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
3114         insertion point for instructions generated by validize_mem.
3116 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
3118         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
3119         in brackets.
3121 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
3123         * config/aarch64/aarch64.c
3124         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
3125         rather than a macro.
3127 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
3129         * doc/invoke.texi (AArch64 Options): Various updates.
3131 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
3133         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
3134         into instrumentation thunks.
3135         * cif-code.def (CIF_CHKP): New.
3137 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
3139         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
3141 2016-05-16  Martin Jambor  <mjambor@suse.cz>
3143         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
3144         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
3146 2016-05-16  Marek Polacek  <polacek@redhat.com>
3148         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
3149         commentary.
3151 2016-05-16  Martin Jambor  <mjambor@suse.cz>
3153         PR hsa/70857
3154         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
3155         the outlined kernel function.
3157 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
3159         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
3160         (ISA_HAS_DLSA): Ditto.
3162 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
3164         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
3166 2016-05-16  Nathan Sidwell  <nathan@acm.org>
3168         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
3169         (nvptx_name_replacement): Restore.  Add comment.
3170         (write_fn_proto, write_fn_proto_from_insn,
3171         nvptx_output_call_insn): Restore
3172         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
3174 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
3176         * config/aarch64/aarch64.md
3177         (add<mode>3_compareC_cconly_imm): Remove use of %w.
3178         (add<mode>3_compareC_imm): Likewise.
3179         (<optab>si3_uxtw): Split into register and immediate variants.
3180         (andsi3_compare0_uxtw): Likewise.
3181         (and<mode>3_compare0): Likewise.
3182         (and<mode>3nr_compare0): Likewise.
3183         (stack_protect_test_<mode>): Don't use %x for memory operands.
3185 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
3187         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
3189 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
3191         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
3192         Split integer shifts into shift_reg and bfm.
3193         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
3194         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
3195         (ror<mode>3_insn): Likewise.
3196         (<optab>si3_insn_uxtw): Likewise.
3197         (<optab><mode>3_insn): Change to rotate_imm.
3198         (extr<mode>5_insn_alt): Likewise.
3199         (extrsi5_insn_uxtw): Likewise.
3200         (extrsi5_insn_uxtw_alt): Likewise.
3202 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
3204         * doc/tm.texi: Regenerate.
3205         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
3206         (TARGET_INVALID_RETURN_TYPE): Remove.
3207         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
3208         TARGET_INVALID_RETURN_TYPE.
3209         * target.def (invalid_parameter_type): Remove.
3210         (invalid_return_type): Remove.
3212 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
3214         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
3215         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
3216         calls from thunk.
3217         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
3218         gimple body.
3219         (preserve_function_body_p): No need to preserve function body
3220         * cif-codes.def (CIF_THUNK): Remove.
3221         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
3223 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
3225         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
3227 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
3229         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
3230         for thunks.
3232 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
3234         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
3235         (inline_small_functions): Do not look for function symbol when
3236         resetting caches.
3238 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
3240         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
3241         of inline thunks
3243 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
3244             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3245             Jiong Wang  <jiong.wang@arm.com>
3247         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
3248         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
3249         Define __ARM_FP16_ARGS when appropriate.
3250         * config/arm/arm.c (arm_invalid_parameter_type): Remove
3251         declaration.
3252         (arm_invalid_return_type): Likewise.
3253         (TARGET_INVALID_PARAMETER_TYPE): Remove.
3254         (TARGET_INVALID_RETURN_TYPE): Remove.
3255         (aapcs_vfp_sub_candidate): Allow HFmode.
3256         (aapcs_vfp_allocate): Add comment.  Support HFmode.
3257         (aapcs_vfp_allocate_return_reg): Likewise.
3258         (struct aapcs_cp_arg_layout): Slightly reword comments for
3259         is_return_candidate and allocate_return_reg.
3260         (output_mov_vfp): Update assert.
3261         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
3262         condition.
3263         (arm_invalid_parameter_type): Remove.
3264         (amr_invalid_return_type): Remove.
3265         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
3266         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
3267         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
3269 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
3271         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
3272         * config/aarch64/arch64-protos.h
3273         (aarch64_legitimize_reload_address): Remove.
3274         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
3275         Remove.
3277 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
3279         * configure.ac: Add ACX_NONCANONICAL_HOST.
3280         * configure: Regenerate.
3281         * Makefile.in: Set host_noncanonical.
3283 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
3285         PR target/71097
3286         * config/i386/i386.md (*movtf_internal): Before register allocation,
3287         do not allow FP constants for CM_MEDIUM memory model, allow only
3288         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
3289         (*movxf_internal): Ditto.
3290         (*movdf_internal): Ditto.
3291         (*movsf_internal): Ditto.
3293 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
3295         PR rtl-optimization/67483
3296         * combine.c (make_compound_operation): Don't call extract_left_shift
3297         with negative shift amounts.
3299 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
3301         PR bootstrap/71071
3302         * fold-const.c (fold_checksum_tree): Allow modification
3303         of TYPE_ALIAS_SET during folding.
3305         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
3306         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
3307         (ix86_split_to_parts): Likewise.  Fix up formatting.
3309 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
3311         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
3312         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
3313         printf format.
3315 2016-05-13  Nathan Sidwell  <nathan@acm.org>
3317         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
3318         (nvptx_name_replacement): Delete.
3319         (write_fn_proto, write_fn_proto_from_insn,
3320         nvptx_output_call_insn): Remove nvptx_name_replacement call.
3321         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
3322         * langhooks.c (add_builtin_funcction_common): Call
3323         targetm.mangle_decl_assembler_name.
3325         * config/nvptx/nvptx.c (write_fn_proto): Handle
3326         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
3328 2016-05-13  Martin Liska  <mliska@suse.cz>
3330         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
3331         and PRIu64 in printf format.
3333 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3335         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
3336         comment.
3338 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3340         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
3341         Change --param max-completely-peeled-times to
3342         --param max-completely-peel-times in dump file printing.
3344 2016-05-13  Richard Biener  <rguenther@suse.de>
3346         PR tree-optimization/42587
3347         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
3348         (find_bswap_or_nop_1): Likewise.
3349         (bswap_replace): Likewise.
3351 2016-05-13  Martin Liska  <mliska@suse.cz>
3353         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
3354         Initialize a variable with default value.
3356 2016-05-13  Martin Liska  <mliska@suse.cz>
3358         * doc/invoke.texi: Enhance explanation of error recovery
3359         of sanitizers.
3361 2016-05-13  Martin Liska  <mliska@suse.cz>
3363         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
3364         (struct cost_pair): Change inv_expr_id (int) to inv_expr
3365         (iv_inv_expr_ent *).
3366         (struct iv_inv_expr_ent): Comment struct fields.
3367         (sort_iv_inv_expr_ent): New function.
3368         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
3369         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
3370         a hash_map between iv_inv_expr_ent and number of usages.
3371         (niter_for_exit): Fix coding style.
3372         (tree_ssa_iv_optimize_init): Use renamed variable.
3373         (determine_base_object): Fix coding style.
3374         (alloc_iv): Likewise.
3375         (find_interesting_uses_outside): Likewise.
3376         (add_candidate_1): Likewise.
3377         (add_standard_iv_candidates): Likewise.
3378         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
3379         (prepare_decl_rtl): Fix coding style.
3380         (get_address_cost): Likewise.
3381         (get_shiftadd_cost): Likewise.
3382         (force_expr_to_var_cost): Likewise.
3383         (compare_aff_trees): Likewise.
3384         (get_expr_id): Restructure the function.
3385         (get_loop_invariant_expr_id): Renamed to
3386         get_loop_invariant_expr.
3387         (get_computation_cost_at): Replace usage of inv_expr_id with
3388         inv_expr.
3389         (get_computation_cost): Likewise.
3390         (determine_group_iv_cost_generic): Likewise.
3391         (determine_group_iv_cost_address): Likewise.
3392         (iv_period): Fix coding style.
3393         (iv_elimination_compare_lt): Likewise.
3394         (may_eliminate_iv): Likewise.
3395         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
3396         inv_expr.
3397         (determine_group_iv_costs): Dump invariant expressions.
3398         (iv_ca_recount_cost): Use the newly added hash_map.
3399         (iv_ca_set_remove_invariants): Fix coding style.
3400         (iv_ca_set_add_invariants): Fix coding style.
3401         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
3402         invariants.
3403         (iv_ca_set_cp): Likewise.
3404         (iv_ca_new): Initialize the newly added hash_map and remove
3405         initialization of fields.
3406         (iv_ca_free): Delete the hash_map.
3407         (iv_ca_dump): Dump invariant expressions.
3408         (iv_ca_extend): Fix coding style.
3409         (try_add_cand_for): Likewise.
3410         (create_new_ivs): Dump information about # of avg iterations and
3411         # of used invariant expressions.
3412         (rewrite_use_compare): Fix coding style.
3413         (free_loop_data): Set default value for max_inv_expr_id.
3415 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
3417         * cse.c (rest_of_handle_cse): Use cleanup_cfg
3418         returned value cse_cfg_altered computation.
3419         (rest_of_handle_cse2): Likewise.
3420         (rest_of_handle_cse_after_global_opts): Likewise.
3422 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3424         PR target/53440
3425         * config/arm/arm.c (arm32_output_mi_thunk): New.
3426         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
3427         to split Thumb1 vs TARGET_32BIT functionality.
3428         (arm_thumb1_mi_thunk): New.
3430 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3432         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
3433         to true.
3435 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3437         PR target/71080
3438         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
3440 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
3442         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
3443         (expand_builtin_trap): Emit a regular call.
3444         (set_builtin_user_assembler_name): Remove obsolete cases.
3445         * dse.c (scan_insn): Adjust.
3446         * except.c: Include calls.h.
3447         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
3448         emit a regular call to setjmp.
3449         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
3450         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
3451         (emit_block_move_via_libcall): Delete.
3452         (block_move_fn): Delete.
3453         (init_block_move_fn): Likewise.
3454         (emit_block_move_libcall_fn): Likewise.
3455         (emit_block_op_via_libcall): New function.
3456         (set_storage_via_libcall): Tidy up and use memset builtin.
3457         (block_clear_fn): Delete.
3458         (init_block_clear_fn): Likewise.
3459         (clear_storage_libcall_fn): Likewise.
3460         (expand_assignment): Call emit_block_move_via_libcall.
3461         Do not include gt-expr.h.
3462         * expr.h (emit_block_op_via_libcall): Declare.
3463         (emit_block_copy_via_libcall): New inline function.
3464         (emit_block_move_via_libcall): Likewise.
3465         (emit_block_comp_via_libcall): Likewise.
3466         (block_clear_fn): Delete.
3467         (init_block_move_fn): Likewise.
3468         (init_block_clear_fn): Likewise.
3469         (emit_block_move_via_libcall): Likewise.
3470         (set_storage_via_libcall): Add default parameter value.
3471         * libfuncs.h (enum libfunc_index): Remove obsolete values.
3472         (abort_libfunc): Delete.
3473         (memcpy_libfunc): Likewise.
3474         (memmove_libfunc): Likewise.
3475         (memcmp_libfunc): Likewise.
3476         (memset_libfunc): Likewise.
3477         (setbits_libfunc): Likewise.
3478         (setjmp_libfunc): Likewise.
3479         (longjmp_libfunc): Likewise.
3480         (profile_function_entry_libfunc): Likewise.
3481         (profile_function_exit_libfunc): Likewise.
3482         (gcov_flush_libfunc): Likewise.
3483         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
3484         and DECL_VISIBILITY on the declaration.
3485         (init_optabs): Do not initialize obsolete libfuncs.
3486         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
3487         * tree-core.h (ECF_RET1): Define.
3488         (ECF_TM_PURE): Adjust.
3489         (ECF_TM_BUILTIN): Likewise.
3490         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
3491         (build_common_builtin_nodes): Initialize abort builtin.
3492         Add ECF_RET1 on memcpy, memmove and memset builtins.
3493         Pass final flags for alloca and alloca_with_align builtins.
3494         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
3495         obsolete builtins.
3496         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
3497         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
3498         set_storage_via_libcall and call emit_block_copy_via_libcall.
3500 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
3502         * config/i386/i386.md (*call_got_x32): Change operand 0 to
3503         DImode before it is passed to ix86_output_call_operand.
3504         (*call_value_got_x32): Ditto for operand 1.
3506 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
3508         PR rtl-optimization/70904
3509         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
3510         reload for wide mode.
3512 2016-05-12  Marek Polacek  <polacek@redhat.com>
3514         PR c/70756
3515         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
3516         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
3517         * langhooks.h (incomplete_type_error): Likewise.
3518         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
3519         parameter, pass it down to incomplete_type_error.
3520         * tree.h (size_in_bytes): New inline overload.
3521         (size_in_bytes_loc): Renamed from size_in_bytes.
3523 2016-05-12  Richard Biener  <rguenther@suse.de>
3525         PR tree-optimization/71059
3526         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
3527         nary before looking up or entering the expression into the VN
3528         hashes.
3529         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
3530         Make sure to re-use NARYs without result as inserted by
3531         phi-translation.
3533 2016-05-12  Richard Biener  <rguenther@suse.de>
3535         PR tree-optimization/71062
3536         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
3537         field.
3538         * tree-ssa-structalias.c (set_uids_in_ptset): Set
3539         vars_contains_restrict if the var is a restrict tag.
3540         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
3541         do not disambiguate pointers against it.
3542         (dump_points_to_solution): Re-structure and adjust for new
3543         vars_contains_restrict flag.
3544         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
3546 2016-05-12  Martin Liska  <mliska@suse.cz>
3548         * doc/invoke.texi: Explain connection between
3549         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
3551 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
3553         PR tree-optimization/71006
3554         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3555         consider COND_EXPR as a mask producer.
3557 2016-05-12  Marek Polacek  <polacek@redhat.com>
3559         PR driver/71063
3560         * opts.c (common_handle_option): Detect missing argument for --help^.
3562 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3564         PR target/70830
3565         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
3566         when popping the PC and within an interrupt handler routine.
3567         Add missing tab to output of "ldmfd".
3568         (output_return_instruction): Output LDMFD with SP update rather
3569         than POP when returning from interrupt handler.
3571 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
3573         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
3574         TARGET_64BIT && TARGET_AVX512DQ.
3575         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
3576         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
3577         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
3578         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
3579         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
3580         (*vec_extractv4si_zext): Add avx512dq alternative.
3581         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
3582         use v instead of x constraint in other alternatives where possible.
3584         * config/i386/sse.md (sse2_loadld): Use v instead of x
3585         constraint in alternatives 0,1,4.
3587         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
3588         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
3589         v constraints instead of x and <pinsr_evex_isa> isa attribute.
3591         PR target/71019
3592         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
3593         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
3594         is not emitted unless TARGET_AVX512BW.
3595         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
3596         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
3597         for the result operand.
3599         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
3600         constraint instead of x in avx alternatives.  Use maybe_evex instead
3601         of vex prefix.
3603         * config/i386/constraints.md (Yv): New constraint.
3604         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
3605         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
3606         * config/i386/i386.md (avx512fvecmode): New mode attr.
3607         (*pushtf): Use v constraint instead of x.
3608         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
3609         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
3610         (*absneg<mode>2): Use Yv constraint instead of x constraint.
3611         (*absnegtf2_sse): Likewise.
3612         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
3613         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
3614         avx512f alternatives.
3615         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
3617 2016-05-12  Richard Biener  <rguenther@suse.de>
3619         PR tree-optimization/71060
3620         * tree-data-ref.c (initialize_data_dependence_relation): Do not
3621         require exact match of DR_BASE_OBJECT but only matching address and
3622         type.
3624 2016-05-12  Richard Biener  <rguenther@suse.de>
3626         PR tree-optimization/70986
3627         * cfganal.c: Include cfgloop.h.
3628         (dfs_find_deadend): Prefer to take edges exiting loops.
3630 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3632         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
3633         compile and run time.
3635 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
3637         PR c/43651
3638         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
3640 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
3642         * config/i386/i386.c (legitimize_pic_address): Use
3643         copy_to_suggested_reg instead of gen_movsi.
3645 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3647         * config/rs6000/predicates.md (quad_memory_operand): Move most of
3648         the code into quad_address_p and call it to share code with
3649         vsx_quad_dform_memory_operand.
3650         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
3651         d-form support.
3652         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
3653         bit instead of being a separate word.  Split -mpower9-dform into
3654         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3655         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
3656         for the register class supporting 128-bit quad word memory offsets.
3657         (mode_supports_vsx_dform_quad): Helper function to return if the
3658         register class uses quad word memory offsets.
3659         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
3660         (rs6000_debug_reg_global): Always print if we are using LRA or not.
3661         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
3662         instructions are enabled, set up the appropriate addr_masks for
3663         128-bit types.
3664         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
3665         -mpower9-dform-scalar, instead of -mpower9-dform.
3666         (rs6000_option_override_internal): Split -mpower9-dform into two
3667         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
3668         -mpower9-dform switch sets or clears both.  If we are not using
3669         the LRA register allocator, do not enable -mpower9-dform-vector by
3670         default.  If we are using LRA, enable -mpower9-dform-vector and
3671         -mvsx-timode if it is appropriate.  Issue a warning if either
3672         -mpower9-dform-vector or -mvsx-timode are explicitly used without
3673         enabling LRA.
3674         (quad_address_offset_p): New helper function to return if the
3675         offset is legal for quad word memory instructions.
3676         (quad_address_p): New function to determin if GPR or vector
3677         register quad word memory addresses are legal.
3678         (mem_operand_gpr): Validate quad word address offsets.
3679         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
3680         d-form (register + offset) instructions.
3681         (offsettable_ok_by_alignment): Likewise.
3682         (rs6000_legitimate_offset_address_p): Likewise.
3683         (legitimate_lo_sum_address_p): Likewise.
3684         (rs6000_legitimize_address): Likewise.
3685         (rs6000_legitimize_reload_address): Add more debug statements for
3686         -mdebug=addr.
3687         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
3688         d-form instructions.
3689         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
3690         d-form instructions.  Distinguish different cases in debug
3691         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
3692         d-form instructions.
3693         (rs6000_preferred_reload_class): Likewise.
3694         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
3695         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
3696         of the ISA 2.06 indexed memory instructions.
3697         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
3698         use them to save/restore the saved vector registers instead of
3699         using Altivec instructions.
3700         (rs6000_emit_epilogue): Likewise.
3701         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
3702         (rs6000_opt_masks): Split -mpower9-dform into
3703         -mpower9-dform-scalar and -mpower9-dform-vector.
3704         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
3705         was not selected.
3706         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
3707         ISA 3.0 vector indexed memory instructions, and fold the code into
3708         the normal mov<mode> patterns.
3709         (p9_vecstore_<mode>): Likewise.
3710         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
3711         instructions.
3712         (vsx_movti_64bit): Likewise.
3713         (vsx_movti_32bit): Likewise.
3714         * config/rs6000/constraints.md (wO constraint): New constraint for
3715         ISA 3.0 vector d-form support.
3716         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
3717         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
3718         include -mpower9-dform-vector until we switch over to LRA.
3719         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
3720         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3721         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
3722         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
3723         for -mpower9-dform and -mlra.
3724         * doc/md.texi (wO constraint): Document wO constraint.
3726 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
3728         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
3729         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
3730         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
3731         Move handling of non-insn arguments inline into the sole user:
3732         (output_trans_func): ...here.
3733         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
3734         in emitted function prototype.
3735         (output_internal_insn_latency_func): Ditto.  Simplify.
3736         (output_internal_maximal_insn_latency_func): Ditto.  Delete
3737         always-unused argument.
3738         (output_insn_latency_func): Ditto.
3739         (output_maximal_insn_latency_func): Ditto.
3741 2016-05-11  Richard Biener  <rguenther@suse.de>
3743         PR tree-optimization/71055
3744         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
3745         sth with precision not equal to access size verify we don't chop
3746         off bits.
3748 2016-05-11  Richard Biener  <rguenther@suse.de>
3750         PR debug/71057
3751         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
3752         (dwarf2out_finish): Move retry_incomplete_types call ...
3753         (dwarf2out_early_finish): ... here.
3755 2016-05-11  Richard Biener  <rguenther@suse.de>
3757         PR middle-end/71002
3758         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
3759         if the langhook insists on it.
3760         * fold-const.c (make_bit_field_ref): Add arg for the original
3761         reference and preserve its alias-set.
3762         (decode_field_reference): Take exp by reference and adjust it
3763         to the original memory reference.
3764         (optimize_bit_field_compare): Adjust callers.
3765         (fold_truth_andor_1): Likewise.
3766         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
3768 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
3770         PR middle-end/70807
3771         * cfgrtl.h (delete_insn_and_edges): Now return bool.
3772         * cfgrtl.c (delete_insn_and_edges): Likewise.
3773         * config/i386/i386.c (convert_scalars_to_vector): Remove
3774         redundant code.
3775         * cse.c (cse_insn): Compute cse_cfg_altered.
3776         (delete_trivially_dead_insns): Likewise.
3777         (cse_cc_succs): Likewise.
3778         (rest_of_handle_cse): Free dominance info if required.
3779         (rest_of_handle_cse2): Likewise.
3780         (rest_of_handle_cse_after_global_opts): Likewise.
3782 2016-05-11  Alan Modra  <amodra@gmail.com>
3784         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
3785         abi_v4_pass_in_fpr): New functions.
3786         (rs6000_function_arg_boundary): Exclude complex IBM long double
3787         from 64-bit alignment when ABI_V4.
3788         (rs6000_function_arg, rs6000_function_arg_advance_1,
3789         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
3791 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
3793         PR rtl-optimization/71028
3794         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
3795         jump with just a return in the fallthrough block if the branch
3796         block contains just a return as well.
3798 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
3800         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
3801         * match.pd ((X & Y) ^ Y): ... this.
3802         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
3803         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
3805 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
3807         * read-md.c (require_char_ws): New function.
3808         (read_string): Simplify using require_char_ws.
3809         (handle_constants): Likewise.
3810         (handle_enum): Likewise.
3811         (handle_file): Likewise.
3812         * read-md.h (require_char_ws): New declaration.
3813         * read-rtl.c (read_conditions): Simplify using require_char_ws.
3814         (read_mapping): Likewise.
3815         (read_rtx_code): Likewise.
3816         (read_nested_rtx): Likewise.
3818 2016-05-10  James Norris  <jnorris@codesourcery.com>
3820         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
3821         if offloading is enabled and -fopenacc or -fopenmp is specified.
3822         (CRTOFFLOADEND): Likewise.
3823         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
3824         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
3826 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
3828         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
3829         gotoff_operand code paths.  Use copy_to_suggested_regs and
3830         expand_simple_binop where appropriate.  Cleanup.
3832 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3834         PR target/70799
3835         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
3836         integer constants.
3837         (dimode_scalar_chain::vector_const_cost): New.
3838         (dimode_scalar_chain::compute_convert_gain): Handle constants.
3839         (dimode_scalar_chain::convert_op): Likewise.
3840         (dimode_scalar_chain::convert_insn): Likewise.
3842 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
3844         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
3845         unary operation, not a binary one.
3847 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3849         PR middle-end/70877
3850         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
3851         calls with type casted fndecl.
3853 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3855         PR tree-optimization/70786
3856         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
3857         * calls.c (initialize_argument_information): Bind bounds
3858         with corresponding args passed by reference.
3860 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
3862         PR target/70927
3863         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
3864         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
3865         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
3866         accordingly.
3868 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3870         PR target/70963
3871         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
3872         code for a zero scale factor.
3873         (vsx_xvcvdpuxds_scale): Likewise.
3875 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
3877         * diagnostic-show-locus.c (layout::layout): Call show_ruler
3878         if show_ruler_p was set on the context.
3879         (layout::show_ruler): New method.
3880         * diagnostic.h (struct diagnostic_context): Add field
3881         "show_ruler_p".
3883 2016-05-10  Richard Biener  <rguenther@suse.de>
3885         PR tree-optimization/71039
3886         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
3887         (chk_uses): New function.
3888         (propagate_with_phi): Verify we can safely replicate the lhs of an
3889         aggregate assignment on all incoming edges.
3891 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
3893         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
3894         Forward declare.
3895         (rx_atomic_sequence): New class.
3896         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
3897         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
3898         non-inline.
3899         (rx_atomic_sequence::rx_atomic_sequence,
3900         rx_atomic_sequence::~rx_atomic_sequence): New functions.
3901         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
3902         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
3903         CTRLREG_INTB): New constants.
3904         (FETCHOP): New code iterator.
3905         (fethcop_name, fetchop_name2): New iterator code attributes.
3906         (QIHI): New mode iterator.
3907         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
3908         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
3909         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
3911 2016-05-10  Martin Liska  <mliska@suse.cz>
3913         * tree-inline.c (remap_dependence_clique): Do not remap
3914         debugging statements.
3916 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3918         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
3919         ("*fixuns_truncdfdi2_z13")
3920         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
3921         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
3922         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
3924 2016-05-10  Richard Biener  <rguenther@suse.de>
3926         PR tree-optimization/70497
3927         PR tree-optimization/28367
3928         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
3929         split out from ...
3930         (visit_reference_op_load): ... here.
3931         (vn_reference_lookup_3): Use it to handle subreg-like accesses
3932         with simplified BIT_FIELD_REFs.
3933         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
3934         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
3935         correctly.
3937 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
3939         * dwarf2out.c (add_abstract_origin_attribute): Adjust
3940         documentation comment.  For BLOCK nodes, add a
3941         DW_AT_abstract_origin attribute that points to the DIE generated
3942         for the origin BLOCK.
3943         (gen_lexical_block_die): Call add_abstract_origin_attribute for
3944         blocks from inlined functions.
3946 2016-05-10  Alan Modra  <amodra@gmail.com>
3948         PR target/70947
3949         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
3950         regrename modifying insns saving lr before __morestack call.
3951         * config/rs6000/rs6000.md (split_stack_return): Similarly for
3952         insns restoring lr after __morestack call.
3954 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
3956         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
3957         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
3958         expanders.
3959         * config/i386/sse.md (vec_interleave_high<mode>,
3960         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
3961         <avx512>_vpermt2var<mode>3_maskz): Likewise.
3963 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3965         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
3966         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
3967         parallel reassociation for power8 and forward.
3969 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
3971         * config/i386/i386.md (absneg splitters with general regs): Use
3972         general_reg_operand predicate.
3973         (btsq peephole2): Use x86_64_immediate_operand to check if new
3974         value is suitable for immediate operand.  Generate emitted insn
3975         using RTL expressions.
3976         (btcq peephole2): Ditto.
3977         (btrq peephole2): Ditto.  Generate correct immediate operand
3978         for AND masking.
3980 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
3982         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
3983         bitpos.
3985 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
3987         * tree-affine.c (wide_int_constant_multiple_p): Add missing
3988         pointer dereference.
3990 2016-05-09  Richard Biener  <rguenther@suse.de>
3992         PR tree-optimization/70985
3993         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
3994         op0 isn't a gimple register.
3996 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
3998         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
3999         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
4000         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
4001         (i6400_fpu_mult): New cpu units.
4002         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
4003         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
4004         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
4005         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
4006         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
4007         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
4008         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
4009         (i6400_msa_long_float4, i6400_msa_long_float5)
4010         (i6400_msa_long_float8, i6400_msa_fdiv_df)
4011         (i6400_msa_fdiv_sf): New reservations.
4012         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
4013         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
4014         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
4015         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
4016         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
4017         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
4018         (msa_short_cmp, msa_short_float2, msa_short_logic3)
4019         (msa_short_store4, msa_long_load, msa_short_store)
4020         (msa_long_logic, msa_long_float2, msa_long_float4)
4021         (msa_long_float5, msa_long_float8, msa_long_mult)
4022         (msa_long_fdiv, msa_long_div): New reservations.
4024 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
4025             Sameera Deshpande  <sameera.deshpande@imgtec.com>
4026             Matthew Fortune  <matthew.fortune@imgtec.com>
4027             Graham Stott  <graham.stott@imgtec.com>
4028             Chao-ying Fu  <chao-ying.fu@imgtec.com>
4030         * config.gcc: Add MSA header file for mips*-*-* target.
4031         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
4032         (Ubv8i, Urv8):  New constraints.
4033         * config/mips/mips-ftypes.def: Add function types for MSA
4034         builtins.
4035         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
4036         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
4037         * config/mips/mips-msa.md: New file.
4038         * config/mips/mips-protos.h
4039         (mips_split_128bit_const_insns): New prototype.
4040         (mips_msa_idiv_insns): Likewise.
4041         (mips_split_128bit_move): Likewise.
4042         (mips_split_128bit_move_p): Likewise.
4043         (mips_split_msa_copy_d): Likewise.
4044         (mips_split_msa_insert_d): Likewise.
4045         (mips_split_msa_fill_d): Likewise.
4046         (mips_expand_msa_branch): Likewise.
4047         (mips_const_vector_same_val_p): Likewise.
4048         (mips_const_vector_same_bytes_p): Likewise.
4049         (mips_const_vector_same_int_p): Likewise.
4050         (mips_const_vector_shuffle_set_p): Likewise.
4051         (mips_const_vector_bitimm_set_p): Likewise.
4052         (mips_const_vector_bitimm_clr_p): Likewise.
4053         (mips_msa_vec_parallel_const_half): Likewise.
4054         (mips_msa_output_division): Likewise.
4055         (mips_ldst_scaled_shift): Likewise.
4056         (mips_expand_vec_cond_expr): Likewise.
4057         * config/mips/mips.c (enum mips_builtin_type): Add
4058         MIPS_BUILTIN_MSA_TEST_BRANCH.
4059         (mips_gen_const_int_vector_shuffle): New prototype.
4060         (mips_const_vector_bitimm_set_p): New function.
4061         (mips_const_vector_bitimm_clr_p): Likewise.
4062         (mips_const_vector_same_val_p): Likewise.
4063         (mips_const_vector_same_bytes_p): Likewise.
4064         (mips_const_vector_same_int_p): Likewise.
4065         (mips_const_vector_shuffle_set_p): Likewise.
4066         (mips_symbol_insns): Forbid loading symbols via immediate for
4067         MSA.
4068         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
4069         stores.
4070         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
4071         MSA.
4072         (mips_lx_address_p): Add support load indexed address for MSA.
4073         (mips_address_insns): Add calculation of instructions needed for
4074         stores and loads for MSA.
4075         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
4076         CONST_VECTOR for MSA and let it fall through.
4077         (mips_ldst_scaled_shift): New function.
4078         (mips_subword_at_byte): Likewise.
4079         (mips_msa_idiv_insns): Likewise.
4080         (mips_legitimize_move): Validate MSA moves.
4081         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
4082         calculation of costs for MSA division.
4083         (mips_split_move_p): Check if MSA moves need splitting.
4084         (mips_split_move): Split MSA moves if necessary.
4085         (mips_split_128bit_move_p): New function.
4086         (mips_split_128bit_move): Likewise.
4087         (mips_split_msa_copy_d): Likewise.
4088         (mips_split_msa_insert_d): Likewise.
4089         (mips_split_msa_fill_d): Likewise.
4090         (mips_output_move): Handle MSA moves.
4091         (mips_expand_msa_branch): New function.
4092         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
4093         Reinstate 'y' modifier.
4094         (mips_file_start): Add MSA .gnu_attribute.
4095         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
4096         FPRs.
4097         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
4098         (mips_class_max_nregs): Add register size for MSA supported mode.
4099         (mips_cannot_change_mode_class): Allow conversion between MSA
4100         vector modes and TImode.
4101         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
4102         instruction.
4103         (mips_secondary_reload_class): Force MSA loads/stores via memory.
4104         (mips_preferred_simd_mode): Add preffered modes for MSA.
4105         (mips_vector_mode_supported_p): Add MSA supported modes.
4106         (mips_autovectorize_vector_sizes): New function.
4107         (mips_msa_output_division): Likewise.
4108         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
4109         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
4110         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
4111         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
4112         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
4113         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
4114         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
4115         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
4116         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
4117         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
4118         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
4119         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
4120         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
4121         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
4122         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
4123         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
4124         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
4125         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
4126         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
4127         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
4128         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
4129         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
4130         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
4131         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
4132         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
4133         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
4134         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
4135         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
4136         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
4137         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
4138         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
4139         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
4140         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
4141         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
4142         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
4143         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
4144         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
4145         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
4146         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
4147         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
4148         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
4149         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
4150         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
4151         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
4152         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
4153         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
4154         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
4155         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
4156         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
4157         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
4158         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
4159         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
4160         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
4161         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
4162         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
4163         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
4164         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
4165         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
4166         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
4167         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
4168         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
4169         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
4170         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
4171         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
4172         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
4173         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
4174         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
4175         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
4176         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
4177         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
4178         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
4179         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
4180         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
4181         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
4182         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
4183         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
4184         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
4185         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
4186         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
4187         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
4188         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
4189         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
4190         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
4191         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
4192         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
4193         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
4194         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
4195         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
4196         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
4197         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
4198         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
4199         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
4200         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
4201         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
4202         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
4203         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
4204         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
4205         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
4206         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
4207         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
4208         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
4209         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
4210         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
4211         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
4212         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
4213         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
4214         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
4215         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
4216         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
4217         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
4218         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
4219         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
4220         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
4221         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
4222         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
4223         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
4224         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
4225         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
4226         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
4227         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
4228         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
4229         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
4230         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
4231         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
4232         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
4233         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
4234         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
4235         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
4236         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
4237         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
4238         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
4239         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
4240         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
4241         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
4242         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
4243         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
4244         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
4245         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
4246         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
4247         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
4248         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
4249         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
4250         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
4251         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
4252         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
4253         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
4254         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
4255         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
4256         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
4257         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
4258         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
4259         move_v builtins.
4260         (mips_get_builtin_decl_index): New array.
4261         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
4262         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
4263         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
4264         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
4265         (mips_init_builtins): Initialize mips_get_builtin_decl_index
4266         array.
4267         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
4268         hook.
4269         (mips_expand_builtin_insn): Prepare operands for
4270         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
4271         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
4272         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
4273         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
4274         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
4275         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
4276         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
4277         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
4278         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
4279         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
4280         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
4281         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
4282         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
4283         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
4284         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
4285         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
4286         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
4287         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
4288         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
4289         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
4290         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
4291         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
4292         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
4293         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
4294         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
4295         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
4296         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
4297         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
4298         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
4299         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
4300         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
4301         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
4302         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
4303         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
4304         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
4305         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
4306         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
4307         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
4308         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
4309         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
4310         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
4311         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
4312         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
4313         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
4314         These are set implicitly and an error is reported if overridden.
4315         (mips_expand_builtin_msa_test_branch): New function.
4316         (mips_expand_msa_shuffle): Likewise.
4317         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
4318         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
4319         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
4320         (mips_expand_vec_unpack): Add support for MSA.
4321         (mips_expand_vector_init): Likewise.
4322         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
4323         instead of const0_rtx.
4324         (mips_msa_vec_parallel_const_half): New function.
4325         (mips_gen_const_int_vector): Likewise.
4326         (mips_gen_const_int_vector_shuffle): Likewise.
4327         (mips_expand_msa_cmp): Likewise.
4328         (mips_expand_vec_cond_expr): Likewise.
4329         * config/mips/mips.h
4330         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
4331         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
4332         specified.
4333         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
4334         (ISA_HAS_MSA): New macro.
4335         (UNITS_PER_MSA_REG): Likewise.
4336         (BITS_PER_MSA_REG): Likewise.
4337         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
4338         (MSA_REG_FIRST): New macro.
4339         (MSA_REG_LAST): Likewise.
4340         (MSA_REG_NUM): Likewise.
4341         (MSA_REG_P): Likewise.
4342         (MSA_REG_RTX_P): Likewise.
4343         (MSA_SUPPORTED_MODE_P): Likewise.
4344         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
4345         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
4346         * config/mips/mips.md: Include mips-msa.md.
4347         (alu_type): Add simd_add.
4348         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
4349         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
4350         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
4351         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
4352         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
4353         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
4354         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
4355         simd_move, simd_load, simd_store.  Choose "multi" for moves
4356         for "qword_mode".
4357         (qword_mode): New attribute.
4358         (insn_count): Add instruction count for quad moves.
4359         Increase the count for MIPS SIMD division.
4360         (UNITMODE): Add UNITMODEs for vector types.
4361         (addsub): New code iterator.
4362         * config/mips/mips.opt (mmsa): New option.
4363         * config/mips/msa.h: New file.
4364         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
4365         specified.
4366         * config/mips/mti-linux.h: Likewise.
4367         * config/mips/predicates.md
4368         (const_msa_branch_operand): New constraint.
4369         (const_uimm3_operand): Likewise.
4370         (const_uimm4_operand): Likewise.
4371         (const_uimm5_operand): Likewise.
4372         (const_uimm8_operand): Likewise.
4373         (const_imm5_operand): Likewise.
4374         (aq10b_operand): Likewise.
4375         (aq10h_operand): Likewise.
4376         (aq10w_operand): Likewise.
4377         (aq10d_operand): Likewise.
4378         (const_m1_operand): Likewise.
4379         (reg_or_m1_operand): Likewise.
4380         (const_exp_2_operand): Likewise.
4381         (const_exp_4_operand): Likewise.
4382         (const_exp_8_operand): Likewise.
4383         (const_exp_16_operand): Likewise.
4384         (const_vector_same_val_operand): Likewise.
4385         (const_vector_same_simm5_operand): Likewise.
4386         (const_vector_same_uimm5_operand): Likewise.
4387         (const_vector_same_uimm6_operand): Likewise.
4388         (const_vector_same_uimm8_operand): Likewise.
4389         (par_const_vector_shf_set_operand): Likewise.
4390         (reg_or_vector_same_val_operand): Likewise.
4391         (reg_or_vector_same_simm5_operand): Likewise.
4392         (reg_or_vector_same_uimm6_operand): Likewise.
4393         * doc/extend.texi (MIPS SIMD Architecture Functions): New
4394         section.
4395         * doc/invoke.texi (-mmsa): Document new option.
4397 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4399         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
4400         * configure: Regenerate.
4401         * config.in: Regenerate.
4402         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
4403         on -fvtable-verify.
4404         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
4405         (ENDFILE_VTV_SPEC): Define.
4407 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
4409         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
4410         registers in all interrupt handlers if necessary.
4411         (rl78_option_override): Add warning.
4412         (MUST_SAVE_MDUC_REGISTERS): New macro.
4413         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
4414         * config/rl78/rl78.c (check_mduc_usage): New function.
4415         (mduc_regs): New structure to hold MDUC register data.
4416         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
4417         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
4418         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
4419         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
4420         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
4421         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
4423 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
4425         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
4426         (tree-ssa-loop-niter.h): Ditto.
4427         (idx_within_array_bound, ref_within_array_bound): New functions.
4428         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
4429         Factor out check on writable base object to ...
4430         (base_object_writable): ... here.
4432 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4434         * config/arm/arm.md (probe_stack): Add modes to set source
4435         and destination.
4437 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
4439         * regrename.c (base_reg_class_for_rename): New static function.
4440         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
4442 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
4444         * cgraph.c (thunk_adjust): Export.
4445         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
4446         * cgraphunit.c (thunk_adjust): Export.
4447         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
4448         thunks.
4449         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
4450         inlinable.
4451         * tree-inline.c (expand_call_inline): Expand thunks inline.
4453 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
4455         PR target/70998
4456         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
4457         (*sse2_vd_cvtss2sd): Ditto.
4458         * config/i386/i386.md
4459         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
4460         Generate *sse2_vd_cvtsd2ss pattern.
4461         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
4462         Generate *sse2_vd_cvtss2sd pattern.
4464 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
4466         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
4467         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
4468         users.
4470 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
4472         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
4473         * config/sh/sh.c: Define and declare variables on first use throughout
4474         the file.
4475         (current_function_interrupt): Change to bool type.
4476         (frame_insn): Rename to emit_frame_insn and update users.
4477         (push_regs): Use bool for 'interrupt_handler' argument.
4478         (save_schedule_s): Remove.
4479         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
4480         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
4481         targetm.asm_out.unaligned_op.di.
4482         (gen_far_branch): Remove redundant forward declaration.
4483         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
4484         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
4485         (sh_set_return_address, sh_function_ok_for_sibcall,
4486         scavenge_reg): Update comments.
4487         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
4488         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
4489         (sh_attr_renesas_p): Remove unnecessary parentheses.
4490         (branch_dest): Simplify.
4491         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
4492         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
4493         (CUMULATIVE_ARGS): Change macro to typedef.
4494         (current_function_interrupt): Change to bool type.
4495         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
4496         Surround with __cplusplus ifdef.
4497         (sh_compare_op0, sh_compare_op1): Remove.
4498         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
4500 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
4502         * config/arm/arm.md: (arch): Add neon.
4503         (arch_enabled): Return yes for arch neon when TARGET_NEON.
4504         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
4505         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
4506         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
4507         attributes for alt renumbering.  Mark alt 3 as non-predicable.
4508         (thumb2_movdf_vfp): Likewise.
4510 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
4512         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
4513         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
4514         (*andqi_1): Add preferred_for_speed attribute to disparage
4515         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
4516         (*<code>qi_1): Ditto.
4517         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
4518         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
4519         (*ashlqi3_1): Ditto.
4520         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
4521         Add preferred_for_size attribute to disparage alternative 0 and
4522         preferred_for_speed attribute to disparage alternative 1 for
4523         TARGET_PARTIAL_REG_STALL targets.
4525 2016-05-07  Tom de Vries  <tom@codesourcery.com>
4527         PR tree-optimization/70956
4528         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
4529         def.
4531 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
4533         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
4534         * config/sh/sh.c (sh_cbranch_distance): Implement it.
4535         * config/sh/sh.md (branch_zero): Remove define_attr.
4536         (define_delay): Disable delay slot if branch distance is one insn.
4538 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
4540         * config/i386/i386.md (LEAMODE): New mode attribute.
4541         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
4542         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
4543         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
4544         operand 2 predicate.
4545         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
4546         (*lea<mode>_general_3): Ditto.
4547         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
4549 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
4551         * genmddump.c (main): Convert argv from char ** to const char **.
4553 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
4555         * coretypes.h (OVERRIDE): New macro.
4556         (FINAL): New macro.
4558 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
4560         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
4561         allow coalescing if the types are compatible.
4563 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
4565         * pass_manager.h (pass_manager::register_pass_name): New method.
4566         (pass_manager::get_pass_by_name): New method.
4567         (pass_manager::create_pass_tab): New method.
4568         (pass_manager::m_name_to_pass_map): New field.
4569         * passes.c (name_to_pass_map): Delete global in favor of field
4570         "m_name_to_pass_map" of pass_manager.
4571         (register_pass_name): Rename from a function to...
4572         (pass_manager::register_pass_name): ...this method, updating
4573         for renaming of global "name_to_pass_map" to field
4574         "m_name_to_pass_map".
4575         (create_pass_tab): Rename from a function to...
4576         (pass_manager::create_pass_tab): ...this method, updating
4577         for renaming of global "name_to_pass_map" to field.
4578         (get_pass_by_name): Rename from a function to...
4579         (pass_manager::get_pass_by_name): ...this method.
4580         (enable_disable_pass): Convert use of get_pass_by_name to
4581         a method call, locating the pass_manager singleton.
4583 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
4585         * genattr-common.c (main): Convert argv from char ** to const char **.
4586         * genattr.c (main): Likewise.
4587         * genattrtab.c (main): Likewise.
4588         * genautomata.c (initiate_automaton_gen): Likewise.
4589         (main): Likewise.
4590         * gencodes.c (main): Likewise.
4591         * genconditions.c (main): Likewise.
4592         * genconfig.c (main): Likewise.
4593         * genconstants.c (main): Likewise.
4594         * genemit.c (main): Likewise.
4595         * genenums.c (main): Likewise.
4596         * genextract.c (main): Likewise.
4597         * genflags.c (main): Likewise.
4598         * genmddeps.c (main): Likewise.
4599         * genopinit.c (main): Likewise.
4600         * genoutput.c (main): Likewise.
4601         * genpeep.c (main): Likewise.
4602         * genpreds.c (main): Likewise.
4603         * genrecog.c (main): Likewise.
4604         * gensupport.c (init_rtx_reader_args_cb): Likewise.
4605         (init_rtx_reader_args): Likewise.
4606         * gensupport.h (init_rtx_reader_args_cb): Likewise.
4607         (init_rtx_reader_args): Likewise.
4608         * gentarget-def.c (main): Likewise.
4609         * read-md.c (read_md_files): Likewise.
4610         * read-md.h (read_md_files): Likewise.
4612 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
4614         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
4615         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
4616         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
4617         Remove unused predicate.
4618         (register_and_not_fp_reg_operand): Ditto.
4620 2016-05-06  Martin Liska  <mliska@suse.cz>
4622         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
4623         instead of vec as the vector is local to the function.
4625 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
4627         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
4628         avx512bw alternative.
4630         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
4631         before the ashr<mode>3 pattern.
4633         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
4634         v instead of x in vex or maybe_vex alternatives, use
4635         maybe_evex instead of vex in prefix.
4637         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
4638         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
4639         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
4640         in vex or maybe_vex alternatives, use maybe_evex instead of vex
4641         in prefix.
4643         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
4644         v instead of x in vex or maybe_vex alternatives, use
4645         maybe_evex instead of vex in prefix.
4647         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
4648         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
4649         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
4650         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
4651         alternatives, use maybe_evex instead of vex in prefix.
4653         * config/i386/sse.md (vec_interleave_lowv4sf,
4654         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
4655         v instead of x in vex or maybe_vex alternatives, use
4656         maybe_evex instead of vex in prefix.
4658         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
4659         v instead of x in vex or maybe_vex alternatives, use
4660         maybe_evex instead of vex in prefix.
4662         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
4663         v constraint instead of x.
4665 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
4667         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
4668         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
4669         equality first.
4671 2016-05-06  Richard Biener  <rguenther@suse.de>
4673         PR tree-optimization/70948
4674         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4675         Properly clobber all fields of va_list for __builtin_va_start.
4677 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
4679         PR debug/70935
4680         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
4681         loop latch destination.
4683 2016-05-06  Martin Liska  <mliska@suse.cz>
4685         * tree-ssa-uninit.c: Apply manual changes
4686         to the GNU coding style.
4687         (prune_uninit_phi_opnds): Rename from
4688         prune_uninit_phi_opnds_in_unrealizable_paths.
4690 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4692         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
4693         mspace): Remove deprecated options.
4694         * doc/invoke.texi (SH options): Remove -mspace.
4696 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4698         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
4700 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4702         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
4703         corresponding combine split pattern.
4705 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4707         PR target/58219
4708         * config/sh/predicates.md (long_displacement_mem_operand): New.
4709         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
4710         Add movi20, movi20s alternatives.  Adjust length attribute for
4711         alternatives.
4712         (movsi_ie): Allow for any FPU.  Adjust length attribute for
4713         alternatives.
4714         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
4715         attribute for alternatives.
4716         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
4717         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
4718         length attribute for alternatives.
4720 2016-05-06  Richard Biener  <rguenther@suse.de>
4722         PR tree-optimization/70960
4723         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
4725 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4727         PR target/52933
4728         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
4729         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
4731 2016-05-06  Marek Polacek  <polacek@redhat.com>
4733         PR sanitizer/70875
4734         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
4736 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
4738         PR target/54089
4739         * config/sh/sh.md (*rotcr): Add another variant.
4741 2016-05-06  Richard Biener  <rguenther@suse.de>
4743         PR middle-end/70931
4744         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
4746 2016-05-06  Richard Biener  <rguenther@suse.de>
4748         PR middle-end/70941
4749         * fold-const.c (split_tree): Always convert to the original type
4750         before negating.
4752 2016-05-06  Richard Biener  <rguenther@suse.de>
4754         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
4755         (fwprop_addr): Likewise.
4757 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
4759         PR target/70873
4760         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
4761         New prototype.
4762         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
4763         * config/i386/i386.md (push mem splitter): Use find_constant_src in
4764         the splitter condition.
4765         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
4766         the splitter condition.
4767         (FP float_extend load splitter): Ditto.
4769 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
4771         * config/i386/i386.md (peehole2 patterns): Change true_regnum
4772         to REGNO in all peephole2 patterns.
4773         (post-reload splitters): Change true_regnum to REGNO in
4774         post-reload splitters.
4775         (zero_extend splitters): Use general_reg_operand and
4776         nonimmediate_gr_operand predicates.
4778 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
4780         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
4781         v constraint instead of x.
4783 2016-05-05  Alan Modra  <amodra@gmail.com>
4785         PR target/68662
4786         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
4787         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
4788         TARGET_NO_FP_IN_TOC for -mrelocatable.
4789         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
4790         TARGET_RELOCATABLE test.
4791         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4792         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4793         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4794         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4795         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4796         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4797         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4798         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4799         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
4800         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
4801         Likewise.
4802         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
4803         (rs6000_stack_info): Likewise.
4804         (rs6000_elf_asm_out_constructor): Likewise.
4805         (rs6000_elf_asm_out_destructor): Likewise.
4806         (rs6000_elf_declare_function_name): Likewise.
4807         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
4808         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
4809         Don't define.
4811 2016-05-05  Alan Modra  <amodra@gmail.com>
4813         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
4815 2016-05-05  Alan Modra  <amodra@gmail.com>
4817         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
4818         out-of-line gpr restore for one or two regs if that would add
4819         a save of lr.
4821 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
4823         PR target/70873
4824         * config/i386/i386.md
4825         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
4826         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
4827         as operand 0 predicate.
4828         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
4829         Ditto.
4830         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
4831         Ditto.  Emit the pattern using RTX.
4833         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
4834         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
4835         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
4836         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
4837         Ditto.
4838         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
4839         sse_reg_operand as operand 0 predicate.
4841         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
4842         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
4843         instead of gen_rtx_REG.
4844         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
4845         Ditto.
4847 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4849         * function.c (emit_use_return_register_into_block): Delete.
4850         (gen_return_pattern): Delete.
4851         (emit_return_into_block): Delete.
4852         (active_insn_between): Delete.
4853         (convert_jumps_to_returns): Delete.
4854         (emit_return_for_exit): Delete.
4855         (thread_prologue_and_epilogue_insns): Delete all code dealing with
4856         simple_return for shrink-wrapped blocks.
4857         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
4858         end of blocks that need one.
4859         (get_unconverted_simple_return): Delete.
4860         (convert_to_simple_return): Delete.
4861         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
4862         (convert_to_simple_return): Ditto.
4864 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4866         * cfgcleanup.c (bb_is_just_return): New function.
4867         (try_optimize_cfg): Simplify jumps to return, branches to return,
4868         and branches around return.
4870 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
4872         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
4873         branch to a return.
4875 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
4877         PR c++/70906
4878         PR c++/70933
4879         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
4880         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
4881         assert flags & OEP_HASH_CHECK, instead of asserting it
4882         never happens.  Handle TARGET_EXPR.
4883         * fold-const.c (operand_equal_p): For hash verification,
4884         or in OEP_HASH_CHECK into flags.
4886 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4888         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
4889         comment.
4890         (compute_samebase_partition_bases): Fix typo.
4892 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
4894         * config/i386/sse.md (vec_interleave_highv8sf,
4895         vec_interleave_lowv8sf, vec_interleave_highv4df,
4896         vec_interleave_lowv4df): Remove constraints from expanders.
4898         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
4900 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
4902         * tree-inline.c (expand_call_inline): Fix path dealing with
4903         making lhs of call statement undefined.
4905 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
4907         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
4908         Check availability on NODE, too.
4909         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
4910         (cgraph_node::call_for_symbol_and_aliases): Likewise.
4911         (varpool_node::call_for_symbol_and_aliase): Likewise.
4912         * ipa-pure-const.c (add_new_function): Analyze all bodies.
4913         (propagate_pure_const): Propagate across interposable functions, too.
4914         (skip_function_for_local_pure_const): Do not skip interposable bodies
4915         with aliases.
4916         (pass_local_pure_const::execute): Update.
4918 2016-05-04  Marek Polacek  <polacek@redhat.com>
4920         * doc/invoke.texi: Document -Wdangling-else.
4922 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4924         * config.gcc: Error out when conflicting multilib is detected.  Do not
4925         loop over multilibs since no combination is legal.
4927 2016-05-04  Alan Modra  <amodra@gmail.com>
4929         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
4930         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
4931         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
4932         Align .toc.
4934 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
4936         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
4937         Clean up p5600 comments.
4939 2016-05-04  Richard Biener  <rguenther@suse.de>
4941         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
4942         constructor simplifications.
4943         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
4945 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
4947         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
4948         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
4949         result.set_rtx is null instead of aborting.
4950         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
4951         Always enable.
4952         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
4953         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
4954         *mov<mode>_store_postinc): New patterns.
4956 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
4958         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
4959         as commutative.  Check both conversions are NOP.
4960         ((A & B) OP (C & B)): Remove.
4962 2016-05-04  Alan Modra  <amodra@gmail.com>
4964         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
4966 2016-05-04  Alan Modra  <amodra@gmail.com>
4968         PR target/70866
4969         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
4970         when cr2,3,4 are all fixed regs.
4972 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
4974         PR rtl-optimization/57193
4975         * opts.c (default_options_table): Revert OPT_frename_registers change.
4976         * doc/invoke.texi (-frename-registers, -O2): Likewise.
4978 2016-05-03  Martin Sebor  <msebor@redhat.com>
4980         PR c++/66561
4981         * builtins.c (fold_builtin_FILE): New function.
4982         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
4983         (fold_builtin_0): Call them.
4984         * gimplify.c (gimplify_call_expr): Remove the handling of
4985         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
4987         PR c++/66561
4988         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
4989         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
4990         constants.
4992         PR c++/66639
4993         * doc/extend.texi (Function Names as Strings): Update __func__,
4994         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
4995         constants.
4997 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
4998             Richard Biener  <rguenther@suse.de>
5000         PR tree-optimization/70916
5001         * tree-if-conv.c: Include cfganal.h.
5002         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
5003         and remove_fake_exit_edges around the optimization pass.
5005 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
5007         * cgraph.c (symbol_table::create_edge): Set inline_failed.
5008         (cgraph_edge::make_direct): Likewise.
5009         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
5010         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
5011         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
5012         (CIF_THUNK): New code.
5013         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
5014         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
5015         (compute_inline_parameters): Set inline_failed for thunks.
5016         (inline_analyze_function): Cleanup.
5017         * ipa-inline.c (can_inline_edge_p): Do not deal with
5018         call_stmt_cannot_inline_p.
5019         (can_early_inline_edge_p): Likewise.
5020         (early_inliner): Initialize inline_failed.
5021         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
5023 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
5025         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
5026         from nonimm_ssenomem_operand.
5027         (nonimm_ssenomem_operand): New predicate.
5028         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
5029         as operand 0 predicate.
5030         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
5031         Disable unsupported alternatives using "enabled" attribute.
5032         Use register_ssemem_operand as operand 0 predicate.
5033         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
5035 2016-05-03  Marek Polacek  <polacek@redhat.com>
5037         PR c/70859
5038         * input.c (expansion_point_location): New function.
5039         * input.h (expansion_point_location): Declare.
5041 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
5043         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
5044         occurence with frame_offset_ ones.
5046 2016-05-03  Alan Modra  <amodra@gmail.com>
5048         PR rtl-optimization/70890
5049         * ira.c (combine_and_move_insns): When moving def_insn, remove
5050         equivs on use_insn.
5052 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5054         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
5055         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
5056         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
5057         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
5059 2016-05-03  Alan Modra  <amodra@gmail.com>
5061         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
5062         for SAVE_MULTIPLE/STORE_MULTIPLE.
5064 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
5066         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
5067         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
5069 2016-05-03  Richard Biener  <rguenther@suse.de>
5071         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
5072         default true.
5073         (gimplify_arg): Likewise.
5074         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
5075         re-writing the result to a decl if required.
5076         (internal_get_tmp_var): Add allow_ssa parameter
5077         and override into_ssa with it.
5078         (get_formal_tmp_var): Adjust.
5079         (get_initialized_tmp_var): Add allow_ssa parameter.
5080         (gimplify_arg): Add allow_ssa parameter and avoid generating
5081         SSA names for the result false.
5082         (gimplify_call_expr): If the call may return twice do not
5083         gimplify parameters into SSA.
5084         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
5085         (gimplify_modify_expr): Adjust assert.  For noreturn calls
5086         with a SSA name LHS adjust its def.
5087         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
5088         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
5089         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
5090         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
5091         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
5092         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
5093         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
5094         (optimize_target_teams): Do not allow SSA names for clause operands.
5095         (gimplify_expr): Likewise for where we mark the result addressable.
5096         * passes.def (pass_init_datastructures): Remove.
5097         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
5098         (rewrite_stmt): Likewise.
5099         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
5100         (replace_locals_op): Replace SSA names.
5101         (copy_gimple_seq_and_replace_locals): Init src_cfun.
5102         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
5103         * cgraph.c (release_function_body): Free CFG annotations only
5104         when we have a CFG.  Simplify.
5105         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
5106         force_gimple_operand instead of get_initialized_tmp_var.
5107         * tree-pass.h (make_pass_init_datastructures): Remove.
5108         * tree-ssa.c (execute_init_datastructures): Remove.
5109         (pass_data_init_datastructures): Likewise.
5110         (class pass_init_datastructures): Likewise.
5111         (make_pass_init_datastructures): Likewise.
5112         * omp-low.c (create_omp_child_function): Init SSA data structures.
5113         (grid_expand_target_grid_body): Likewise.
5114         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
5115         name before adding it to names_to_release.
5116         (remove_bb): Always release SSA defs.
5117         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
5118         before dereferencing it.
5119         * cgraphunit.c (init_lowered_empty_function): Always
5120         int SSA data structures.
5121         * tree-ssanames.c (release_defs): Remove assert that we are in
5122         SSA form.
5123         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
5125 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
5126             Uros Bizjak  <ubizjak@gmail.com>
5128         PR rtl-optimization/70467
5129         * config/i386/predicates.md (x86_64_hilo_int_operand,
5130         x86_64_hilo_general_operand): New predicates.
5131         * config/i386/constraints.md (Wd): New constraint.
5132         * config/i386/i386.md (mode attr di): Use Wd instead of e.
5133         (general_hilo_operand): New mode attr.
5134         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
5135         instead of <general_operand>.
5136         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
5137         x86_64_hilo_general_operand instead of <general_operand>.
5139 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
5141         PR tree-optimization/70916
5142         * tree-if-conv.c (constant_or_ssa_name): Removed.
5143         (fold_build_cond_expr): Use is_gimple_val instead of
5144         constant_or_ssa_name.
5146         PR tree-optimization/70916
5147         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
5148         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
5150         PR target/49244
5151         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
5152         (optimize_atomic_bit_test_and): New function.
5153         (pass_fold_builtins::execute): Use it.
5154         * optabs.def (atomic_bit_test_and_set_optab,
5155         atomic_bit_test_and_complement_optab,
5156         atomic_bit_test_and_reset_optab): New optabs.
5157         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
5158         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
5159         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
5160         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
5161         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
5162         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
5163         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
5164         * doc/md.texi (atomic_bit_test_and_set@var{mode},
5165         atomic_bit_test_and_complement@var{mode},
5166         atomic_bit_test_and_reset@var{mode}): Document.
5167         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
5168         atomic_bit_test_and_complement<mode>,
5169         atomic_bit_test_and_reset<mode>): New expanders.
5170         (atomic_bit_test_and_set<mode>_1,
5171         atomic_bit_test_and_complement<mode>_1,
5172         atomic_bit_test_and_reset<mode>_1): New insns.
5174 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
5176         PR rtl-optimization/70687
5177         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
5178         instead of unsigned HOST_WIDE_INT.
5180 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
5182         PR rtl-optimization/44281
5183         * hard-reg-set.h (struct target_hard_regs): New field
5184         x_fixed_nonglobal_reg_set.
5185         (fixed_nonglobal_reg_set): New macro.
5186         * reginfo.c (init_reg_sets_1): Initialize it.
5187         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
5188         of fixed_reg_set.
5189         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
5191 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
5193         PR tree-optimization/56541
5194         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
5195         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
5196         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
5197         (any_complicated_phi): new static variable.
5198         (aggressive_if_conv): delete.
5199         (if_convertible_phi_p): support phis with more than two arguments.
5200         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
5201         critical pred edges.
5202         (ifcvt_split_critical_edges): support phis with more than two
5203         arguments by checking new parameter.  only split critical edges
5204         if needed.
5205         (tree_if_conversion): handle simd pragma marked loop using new
5206         local variable aggressive_if_conv.  check any_complicated_phi.
5208 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
5210         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
5211         before using it.
5213 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
5215         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
5216         cbase.
5218 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
5220         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
5221         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
5222         define_insn_and_split.
5223         (mulsi3_i): New define_insn_and_split.
5224         (mulsi3_call): Convert to define_insn.
5225         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
5226         Remove constraints.
5228 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5230         * machmode.h (mode_complex): Add support to give the complex mode
5231         for a given mode.
5232         (GET_MODE_COMPLEX_MODE): Likewise.
5233         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
5234         stored by build_complex_type and gfc_build_complex_type instead of
5235         trying to figure out the appropriate mode based on the size. Raise
5236         an assertion error, if the type was not set.
5237         * genmodes.c (struct mode_data): Add field for the complex type of
5238         the given type.
5239         (blank_mode): Likewise.
5240         (make_complex_modes): Remember the complex mode created in the
5241         base type.
5242         (emit_mode_complex): Write out the mode_complex array to map a
5243         type mode to the complex version.
5244         (emit_insn_modes_c): Likewise.
5245         * tree.c (build_complex_type): Set the complex type to use before
5246         calling layout_type.
5247         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
5248         support for __float128 complex datatypes.
5249         (rs6000_hard_regno_mode_ok): Likewise.
5250         (rs6000_setup_reg_addr_masks): Likewise.
5251         (rs6000_complex_function_value): Likewise.
5252         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
5253         __float128 and __ibm128 complex.
5254         (FLOAT128_IBM_P): Likewise.
5255         (ALTIVEC_ARG_MAX_RETURN): Likewise.
5256         * doc/extend.texi (Additional Floating Types): Document that
5257         -mfloat128 must be used to enable __float128.  Document complex
5258         __float128 and __ibm128 support.
5260 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
5262         PR target/49244
5263         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
5264         char/short arguments promoted to int because of promote_prototypes.
5266 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
5268         * config/i386/predicates.md (register_ssemem_operand): New predicate.
5269         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
5270         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
5271         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
5272         alternatives using "enabled" attribute.  Use register_ssemem_operand
5273         as operand 1 predicate.
5274         (*cmpi<unord>xf_i387): Split XFmode pattern from
5275         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
5276         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
5277         *absneg<mode>2_i387.  Disable unsupported alternatives using
5278         "enabled" attribute.
5279         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
5281 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
5283         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
5284         marker.
5285         (oacc_loop_process): Check mask for loop termination.
5287 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
5289         * cif-code.def (CIF_THUNK): Add.
5290         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
5291         accidental change.
5293 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
5295         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
5296         (dump_inline_summary): Dump it.
5297         (fp_expression_p): New predicate.
5298         (estimate_function_body_sizes): Use it.
5299         (inline_merge_summary): Merge fp_expressions.
5300         (inline_read_section): Read fp_expressions.
5301         (inline_write_summary): Write fp_expressions.
5302         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
5303         codegen boundary if either caller or callee is !fp_expressions.
5304         * ipa-inline.h (inline_summary): Add fp_expressions.
5305         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
5306         to fp_expressions be sure the fp generation flags are updated.
5308 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
5310         PR rtl-optimization/70467
5311         * cse.c (cse_insn): Handle no-op MEM moves after folding.
5313         PR rtl-optimization/70467
5314         * ipa-pure-const.c (check_call): Handle internal calls even in
5315         ipa mode like in local mode.
5317 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5319         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
5321 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
5323         * match.pd (X u< X, X u> X): New transformations.
5325 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
5327         * flag-types.h (enum warn_strict_overflow_code): Move ...
5328         * coretypes.h: ... here.
5329         * fold-const.h (fold_overflow_warning): Declare.
5330         * fold-const.c (fold_overflow_warning): Make non-static.
5331         (fold_comparison): Move the transformation of X +- C1 CMP C2
5332         into X CMP C2 -+ C1 ...
5333         * match.pd: ... here.
5334         * gimple-fold.c (fold_stmt_1): Protect with
5335         fold_defer_overflow_warnings.
5337 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
5339         * omp-low.c (struct oacc_loop): Add 'inner' field.
5340         (new_oacc_loop_raw): Initialize it to zero.
5341         (oacc_loop_fixed_partitions): Initialize it.
5342         (oacc_loop_auto_partitions): Partition outermost loop to outermost
5343         available partitioning.
5345 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
5347         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
5348         register_operand.
5349         (umulsidi3): Likewise.
5350         (indirect_jump): Fix jump instruction assembly patterns.
5352 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
5354         PR target/70860
5355         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
5356         (nvptx_function_value): Assert non-NULL cfun.
5358 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
5360         PR rtl-optimization/70886
5361         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
5363         * cselib.h (rtx_equal_for_cselib_1): Declare.
5364         (rtx_equal_for_cselib_p: New inline function.
5365         * cselib.c (rtx_equal_for_cselib_p): Delete.
5366         (rtx_equal_for_cselib_1): Make public.
5368 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
5370         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
5371         (register_mixssei387nonimm_operand): Remove predicate.
5372         * config/i386/i386.md (*fop_<mode>_comm): Merge from
5373         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
5374         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
5375         for TARGET_MIX_SSE_I387 alternatives.
5376         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
5377         Disable unsupported alternatives using "enabled" attribute.  Use
5378         nonimm_ssenomem_operand as operand 1 predicate.  Also check
5379         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
5381 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
5383         * tree.c (cst_and_fits_in_hwi): Simplify.
5385 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
5387         * tree.h (wi::to_wide): New function.
5388         * expr.c (expand_expr_real_1): Use wi::to_wide.
5389         * fold-const.c (int_const_binop_1): Likewise.
5390         (extract_muldiv_1): Likewise.
5392 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
5394         * wide-int.h: Update offset_int and widest_int documentation.
5395         (WI_SIGNED_SHIFT_RESULT): New macro.
5396         (wi::binary_shift): Define signed_shift_result_type for
5397         shifts on offset_int- and widest_int-like types.
5398         (generic_wide_int): Support <<= and >>= if << and >> are supported.
5399         * tree.h (int_bit_position): Use shift operators instead of wi::
5400          shifts.
5401         * alias.c (adjust_offset_for_component_ref): Likewise.
5402         * expr.c (get_inner_reference): Likewise.
5403         * fold-const.c (fold_comparison): Likewise.
5404         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
5405         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
5406         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5407         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5408         (stmt_kills_ref_p): Likewise.
5409         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
5410         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
5411         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5412         (ao_ref_init_from_vn_reference): Likewise.
5414 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
5416         * wide-int.h: Update offset_int and widest_int documentation.
5417         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
5418         (wi::binary_traits): Allow ordered comparisons between offset_int and
5419         offset_int, between widest_int and widest_int, and between either
5420         of these types and basic C types.
5421         (operator <, <=, >, >=): Define for the same combinations.
5422         * tree.h (tree_int_cst_lt): Use comparison operators instead
5423         of wi:: comparisons.
5424         (tree_int_cst_le): Likewise.
5425         * gimple-fold.c (fold_array_ctor_reference): Likewise.
5426         (fold_nonarray_ctor_reference): Likewise.
5427         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
5428         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
5429         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
5430         * tree-sra.c (completely_scalarize): Likewise.
5431         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
5432         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
5433         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
5434         (check_for_binary_op_overflow): Likewise.
5435         (search_for_addr_array): Likewise.
5436         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
5438 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
5440         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
5441         (arc_save_restore): Likewise.
5442         (arc_dwarf_register_span): Likewise.
5443         (arc_output_pic_addr_const): Initialize suffix variable.
5445 2016-05-02  Martin Liska  <mliska@suse.cz>
5447         * symbol-summary.h (function_summary::function_summary):
5448         Remove checking assert for all cgraph nodes.
5449         (function_summary::get): Check summary_uid.
5450         (symtab_insertion): Check summary_uid.
5452 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
5454         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
5455         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
5456         bmaskn instruction.
5457         (arc_dwarf_register_span): Remove enum keyword.
5458         (compact_memory_operand_p): New function.
5459         * config/arc/arc.h (reg_class): Add code density register classes.
5460         (REG_CLASS_NAMES): Likewise.
5461         (REG_CLASS_CONTENTS): Likewise.
5462         * config/arc/arc.md (*movqi_insn): Add code density instructions.
5463         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
5464         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
5465         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
5466         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
5467         constraints.
5468         (h, Rcd, Rsd, Rzd): New register constraints.
5469         (T): Use compact_memory_operand_p function.
5470         * config/arc/predicates.md (compact_load_memory_operand): Remove.
5472 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
5474         * config/sh/sh.md (*negnegt, *movtt): Remove.
5476 2016-05-02  Marek Polacek  <polacek@redhat.com>
5477             Tom de Vries  <tom@codesourcery.com>
5479         PR tree-optimization/70700
5480         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
5481         bigger than FIRST_REF_NODE.
5483 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
5485         PR target/52898
5486         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
5487         TARGET_CMPEQDI_T.
5488         (prepare_cbranch_operands): Don't use scratch register.  Assume that
5489         function is used when pseudos can be created.
5490         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
5491         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
5492         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
5493         define_expand.  Allow it only when pseudos can be created.
5494         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
5496 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
5498         * config/i386/constraints.md (BC): Only allow -1 operands.
5499         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
5500         Add "enabled" attribute.  Update XI mode attribute calculation.
5501         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
5502         (*movoi_internal_avx): Update XI mode attribute calculation.
5503         (*movti_internal): Ditto.
5505 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
5507         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
5508         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
5510 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
5512         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
5513         statement on instruction code.  Remove trailing spaces.
5514         (altivec_expand_stv_builtin): Likewise.
5516 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
5518         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
5519         (TARGET_FPU_DOUBLE): Simplify.
5520         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
5521         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
5522         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
5523         with 'TARGET_FPU_DOUBLE'.
5524         * config/sh/sh.md: Likewise.
5526 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
5528         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
5529         SH_DIV_STR_FOR_SIZE): Remove.
5530         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
5531         SH_DIV_STR_FOR_SIZE): Remove.
5533 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
5535         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
5536         logical_reg_operand): Delete.
5537         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
5538         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
5539         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
5540         match_operand and match_test.
5541         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
5542         variables on their first use.  Return bool values.
5543         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
5544         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
5545         arith_reg_operand for input operand.  Remove empty constraints.
5546         (xorsi3): Delete.
5547         (*xorsi3_compact): Rename to xorsi3.
5548         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
5549         (*zero_extend<mode>si2_disp_mem): Update comment.
5550         (mov_nop): Delete.
5552 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
5554         * config/sh/t-sh: Remove SH5 support.
5555         * config.gcc: Likewise.
5556         * configure: Likewise.
5558 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5560         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
5562 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
5564         * config/sh/sh.c (register_sh_passes, sh_option_override,
5565         sh_print_operand, prepare_move_operands,
5566         sh_can_follow_jump): Remove TARGET_SH1 checks.
5567         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
5568         PROMOTE_MODE): Likewise.
5569         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
5570         movdi): Likewise.
5572 2016-04-30  Alan Modra  <amodra@gmail.com>
5574         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
5575         restoring when fixed_reg_p, but allow out-of-line or stmw save.
5576         Check for user regs later to avoid unnecessary looping over regs.
5577         Merge user reg check with non-saved reg check.  Don't force
5578         inline VR restore when static chain used.
5579         (rs6000_frame_related): Omit eh_frame info for user regs when
5580         saving.
5581         (fixed_regs_p): Delete.
5583 2016-04-30  Alan Modra  <amodra@gmail.com>
5585         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
5586         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
5587         Update all uses.
5589 2016-04-30  Alan Modra  <amodra@gmail.com>
5591         PR target/69645
5592         * config/rs6000/rs6000.c (fixed_reg_p): New function.
5593         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
5594         Update all uses.
5596 2016-04-30  Alan Modra  <amodra@gmail.com>
5598         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
5599         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
5600         flag_pic test for Darwin.
5602 2016-04-30  Alan Modra  <amodra@gmail.com>
5604         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
5605         throw_calls_crossed.
5606         (REG_FREQ_CALLS_CROSSED): Delete.
5607         (REG_N_THROWING_CALLS_CROSSED): Delete.
5608         * regstat.c (regstat_bb_compute_ri): Don't calculate
5609         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
5610         (dump_reg_info): Don't print call cross frequency.
5611         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
5612         and REG_N_THROWING_CALLS_CROSSED.
5614 2016-04-30  Alan Modra  <amodra@gmail.com>
5616         * regs.h (struct reg_info_t): Delete live_length.
5617         (REG_LIVE_LENGTH): Delete macro.
5618         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
5619         local_live, local_processed and local_live_last_luid params.
5620         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
5621         Formatting fixes.
5622         (regstat_compute_ri): Adjust for above.  Don't set
5623         REG_LIVE_LENGTH.
5624         (dump_reg_info): Don't print live length.
5625         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
5626         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
5627         Localize loop_depth var.
5629 2016-04-30  Alan Modra  <amodra@gmail.com>
5631         * ira.c (enum valid_equiv): New.
5632         (validate_equiv_mem): Return enum.
5633         (update_equiv_mem): Create replacement in more cases.
5634         (add_store_equivs): Update validate_equiv_mem call.
5636 2016-04-30  Alan Modra  <amodra@gmail.com>
5638         * ira.c (combine_and_move_insns): Rather than scanning insns,
5639         use DF infrastucture to find use and def insns.
5641 2016-04-30  Alan Modra  <amodra@gmail.com>
5643         ira.c (combine_and_move_insns): Move invariant conditions..
5644         (ira.c): ..to here.  Call combine_and_move_insns before
5645         add_store_equivs.  Call grow_reg_equivs later.  Allocate
5646         req_equiv later using max_reg_num() rather than global max_regno.
5647         (contains_replace_regs): Delete.
5648         (add_store_equivs): Remove contains_replace_regs test.
5650 2016-04-30  Alan Modra  <amodra@gmail.com>
5652         * ira.c (struct equiv_mem_data): New.
5653         (equiv_mem, equiv_mem_modified): Delete static vars.
5654         (validate_equiv_mem_from_store): Use "data" param to communicate..
5655         (validate_equiv_mem): ..from here.
5657 2016-04-30  Alan Modra  <amodra@gmail.com>
5659         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
5660         split out from..
5661         (update_reg_equivs): ..here.  Move allocation and freeing of
5662         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
5663         end_alias_analysis to..
5664         (ira): ..here.
5666 2016-04-30  Alan Modra  <amodra@gmail.com>
5668         * ira.c (pdx_subregs): Delete.
5669         (struct equivalence): Add pdx_subregs field.
5670         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
5671         pdx_subregs access.
5672         (update_equiv_regs): Don't create or free pdx_subregs.  Update
5673         pdx_subregs access.
5675 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5677         * config/rs6000/altivec.h: Change definitions of vec_xl and
5678         vec_xst.
5679         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
5680         (LD_ELEMREV_V2DI): New.
5681         (LD_ELEMREV_V4SF): New.
5682         (LD_ELEMREV_V4SI): New.
5683         (LD_ELEMREV_V8HI): New.
5684         (LD_ELEMREV_V16QI): New.
5685         (ST_ELEMREV_V2DF): New.
5686         (ST_ELEMREV_V2DI): New.
5687         (ST_ELEMREV_V4SF): New.
5688         (ST_ELEMREV_V4SI): New.
5689         (ST_ELEMREV_V8HI): New.
5690         (ST_ELEMREV_V16QI): New.
5691         (XL): New.
5692         (XST): New.
5693         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5694         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
5695         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
5696         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
5697         (altivec_expand_builtin): Add handling for
5698         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
5699         (rs6000_invalid_builtin): Add error-checking for
5700         RS6000_BTM_P9_VECTOR.
5701         (altivec_init_builtins): Define builtins used to implement vec_xl
5702         and vec_xst.
5703         (rs6000_builtin_mask_names): Define power9-vector.
5704         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
5705         (RS6000_BTM_P9_VECTOR): Define.
5706         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
5707         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
5708         (vsx_ld_elemrev_v2df): Likewise.
5709         (vsx_ld_elemrev_v4sf): Likewise.
5710         (vsx_ld_elemrev_v4si): Likewise.
5711         (vsx_ld_elemrev_v8hi): Likewise.
5712         (vsx_ld_elemrev_v16qi): Likewise.
5713         (vsx_st_elemrev_v2df): Likewise.
5714         (vsx_st_elemrev_v2di): Likewise.
5715         (vsx_st_elemrev_v4sf): Likewise.
5716         (vsx_st_elemrev_v4si): Likewise.
5717         (vsx_st_elemrev_v8hi): Likewise.
5718         (vsx_st_elemrev_v16qi): Likewise.
5719         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
5720         grammar.
5722 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
5724         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
5725         out into ...
5726         (simplify_control_stmt_condition_1): ... here.  Recurse into
5727         BIT_AND_EXPRs and BIT_IOR_EXPRs.
5729 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
5731         PR target/69810
5732         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
5733         (zero_extendqi<mode>2_dot): Revert earlier conversion from
5734         define_insn_and_split to define_insn.
5735         (zero_extendqi<mode>2_dot2): Same.
5736         (extendqi<mode>2_dot): Same.
5737         (extendqi<mode>2_dot2): Same.
5739 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
5741         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
5742         (probe_stack): New expander.
5743         (probe_stack_<mode>): New insn pattern.
5745 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
5747         * config/i386/i386.md
5748         (operations with memory inputs setting flags peephole2):
5749         Remove uneeded REG_P checks.  Cleanup pattern generation.
5751 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
5753         * tree-vect-loop.c (vect_transform_loop): Fix
5754         nb_iterations_upper_bound computation for vectorized loop.
5756 2016-04-29  Marek Polacek  <polacek@redhat.com>
5757             Jakub Jelinek  <jakub@redhat.com>
5759         PR sanitizer/70342
5760         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
5761         TARGET_EXPR_SLOT as a base.
5763 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
5765         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
5766         with 'rCm2' constraints to limit possible immediate size.
5767         (*load_zeroextendqisi_update): Likewise.
5768         (*load_signextendqisi_update): Likewise.
5769         (*loadhi_update): Likewise.
5770         (*load_zeroextendhisi_update): Likewise.
5771         (*load_signextendhisi_update): Likewise.
5772         (*loadsi_update): Likewise.
5773         (*loadsf_update): Likewise.
5775 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
5777         * config/i386/predicates.md (constm1_operand): Fix comparison.
5779 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
5781         * testsuite/gcc.target/arc/ieee_eq.c: New test.
5783 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
5785         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
5786         remaining SH5 related settings.
5787         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
5788         shmedia_prepare_call_address): Delete.
5789         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
5790         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
5791         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
5792         UNSUPPORTED_SH2A): Remove m5 checks.
5793         (sh_divide_strategy_e): Remove SH5 division strategies.
5794         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
5795         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
5797 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5799         * config/s390/s390.c (s390_rtx_costs): Update documentation.
5801 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5803         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
5804         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
5805         Change lder to ldr.
5806         * config/s390/vector.md ("mov<mode>"): Likewise.
5808 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
5810         * config/s390/constraints.md ("U", "W"): Invoke
5811         s390_mem_constraint with "ZR" and "ZT".
5812         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
5813         addresses when using LRA.  Accept also short displacements for S
5814         and T constraints.  Do not check for long displacement target for
5815         S and T constraints.
5816         (s390_mem_constraint): Remove handling of U and W constraints.
5817         * config/s390/s390.md (various patterns): Remove the short
5818         displacement constraints (Q and R) if a long displacement
5819         constraint is present.  Add longdisp as required CPU capability.
5820         * config/s390/vector.md: Likewise.
5821         * config/s390/vx-builtins.md: Likewise.
5823 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5825         PR target/60040
5826         * reload1.c (reload): Call finish_spills before
5827         restarting reload loop. Skip select_reload_regs
5828         if update_eliminables_and_spill returns true.
5830 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
5832         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
5833         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
5834         (umulhisi3_imm): Update predicates and constraint letters.
5835         (umulhisi3_reg): Declare instruction as commutative.
5836         * config/arc/constraints.md (J12, J16): New constraints.
5837         * config/arc/predicates.md (short_unsigned_const_operand): New
5838         predicate.
5839         (arc_short_operand): Likewise.
5840         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
5842 2016-04-29  Richard Biener  <rguenther@suse.de>
5844         PR tree-optimization/13962
5845         PR tree-optimization/65686
5846         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
5847         * tree-ssa-alias.c (ptrs_compare_unequal): New function
5848         using PTA to compare pointers.
5849         * match.pd: Add pattern for pointer equality compare simplification
5850         using ptrs_compare_unequal.
5852 2016-04-29  Richard Biener  <rguenther@suse.de>
5854         * stor-layout.c (layout_type): Do not build a pointer-to-element
5855         type for arrays.
5857 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
5859         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
5860         Use SWI mode iterator.  Use general_reg_operand predicate.
5861         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
5862         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
5863         predicates.
5865 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
5867         PR middle-end/70843
5868         * fold-const.c (operand_equal_p): Don't verify hash value equality
5869         if arg0 == arg1.
5870         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
5871         and OMP_CLAUSE.
5873 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
5875         PR target/70858
5876         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
5877         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
5878         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
5879         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
5880         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
5882 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
5884         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
5885         to info.  Don't initialize separate fields to 0.  Clean up
5886         formatting a bit.
5888 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
5890         * config/i386/i386.md (peephole2s for operations with memory inputs):
5891         Use SWI mode iterator.
5892         (peephole2s for operations with memory outputs): Ditto.
5893         Do not check for stack checking probe.
5895         (probe_stack): Remove expander.
5897 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5898             Andrew Burgess  <andrew.burgess@embecosm.com>
5900         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
5901         operands as 32-bits.
5903 2016-04-28  Jason Merrill  <jason@redhat.com>
5905         * gdbinit.in: Skip line-map.h.
5907 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5908             Andrew Burgess  <andrew.burgess@embecosm.com>
5910         * config/arc/arc.c (arc_conditional_register_usage): Take
5911         TARGET_RRQ_CLASS into account.
5912         (arc_print_operand): Support printing 'p' and 's' operands.
5913         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
5914         as 0.
5915         (TARGET_RRQ_CLASS): Define.
5916         (IS_POWEROF2_OR_0_P): Define.
5917         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
5918         alternatives.
5919         (*tst_movb): New define_insn.
5920         (*tst): Avoid recognition if it could prevent '*tst_movb'
5921         combination; replace c/CnL with c/Chs alternative.
5922         (*tst_bitfield_tst): New define_insn.
5923         (*tst_bitfield_asr): New define_insn.
5924         (*tst_bitfield): New define_insn.
5925         (andsi3_i): Add Rrq variant.
5926         (extzv): New define_expand.
5927         (insv): New define_expand.
5928         (*insv_i): New define_insn.
5929         (*movb): New define_insn.
5930         (*movb_signed): New define_insn.
5931         (*movb_high): New define_insn.
5932         (*movb_high_signed): New define_insn.
5933         (*movb_high_signed + 1): New define_split pattern.
5934         (*mrgb): New define_insn.
5935         (*mrgb + 1): New define_peephole2 pattern.
5936         (*mrgb + 2): New define_peephole2 pattern.
5937         * config/arc/arc.opt (mbitops): New option for nps400, uses
5938         TARGET_NPS_BITOPS_DEFAULT.
5939         * config/arc/constraints.md (q): Make register class conditional.
5940         (Rrq): New register constraint.
5941         (Chs): New constraint.
5942         (Clo): New constraint.
5943         (Chi): New constraint.
5944         (Cbf): New constraint.
5945         (Cbn): New constraint.
5946         (C18): New constraint.
5947         (Cbi): New constraint.
5949 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
5951         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
5952         dst->popcount.
5953         (bitmap_intersection_of_preds): Ditto.
5954         (bitmap_union_of_succs): Ditto.
5955         (bitmap_union_of_preds): Ditto.
5956         * sbitmap.c (do_popcount): Delete.
5957         (BITMAP_DEBUGGING): Delete.
5958         (sbitmap_verify_popcount): Delete.
5959         (sbitmap_alloc): Don't initialize the popcount field.
5960         (sbitmap_alloc_with_popcount): Delete.
5961         (sbitmap_resize): Don't resize the popcount array.
5962         (sbitmap_vector_alloc): Don't initialize the popcount field.
5963         (bitmap_copy): Don't copy the popcount array.
5964         (bitmap_clear): Don't clear the popcount array.
5965         (bitmap_clear): Delete the popcount array handling.
5966         (bitmap_ior_and_compl): Delete the popcount assert.
5967         (bitmap_not): Ditto.
5968         (bitmap_and_compl): Ditto.
5969         (bitmap_and): Delete the popcount array handling.
5970         (bitmap_xor): Ditto.
5971         (bitmap_ior): Ditto.
5972         (bitmap_or_and): Delete the popcount assert.
5973         (bitmap_and_or): Ditto.
5974         (popcount_table): Delete.
5975         (sbitmap_elt_popcount): Delete.
5976         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
5977         (bitmap_set_bit): Delete the popcount assert.
5978         (bitmap_clear_bit): Ditto.
5979         (sbitmap_free): Don't free the popcount array.
5980         (sbitmap_alloc_with_popcount): Delete declaration.
5981         (sbitmap_popcount): Ditto.
5983 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
5984             Andrew Burgess  <andrew.burgess@embecosm.com>
5986         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
5987         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
5988         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
5989         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
5990         * config/arc/arc.opt (mcmem): New option.
5991         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
5992         supply length for r/m alternative.
5993         (*extendqisi2_ac): Likewise.
5994         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
5995         r/Uex alternative.
5996         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
5997         (movhi_insn): Likewise.
5998         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
5999         (*zero_extendqihi2_i): Add r/Ucm alternative.
6000         (*zero_extendqisi2_ac): Likewise.
6001         (*zero_extendhisi2_i): Likewise.
6002         * config/arc/constraints.md (Uex): New memory constraint.
6003         (Ucm): New define_constraint.
6004         * config/arc/predicates.md (long_immediate_loadstore_operand):
6005         Return 0 for MEM with cmem_address address.
6006         (cmem_address_0): New predicates.
6007         (cmem_address_1): Likewise.
6008         (cmem_address_2): Likewise.
6009         (cmem_address): Likewise.
6011 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
6013         * config/rs6000/rs6000.c (machine_function): Rename
6014         insn_chain_scanned_p to spe_insn_chain_scanned_p.
6015         (rs6000_stack_info): Adjust.
6017 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6018             Andrew Burgess  <andrew.burgess@embecosm.com>
6020         * config/arc/constraints.md (Usd): Convert to define_constraint.
6021         (Us<): Likewise.
6022         (Us>): Likewise.
6024 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
6026         PR target/70821
6027         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
6028         Add new peephole2 where the first insn is *mov<mode>_or instead of
6029         *mov<mode>_internal.
6031 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
6033         * tracer.c (bb_seen): Make static.
6035 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
6037         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
6038         support, setup defaults.
6039         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
6040         * config/arc/arc.c (arc_init): Add NPS400 support.
6041         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
6042         (TARGET_ARC700): NPS400 is also an ARC700.
6043         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
6045 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
6047         PR target/70668
6048         * config/nds32/nds32.md (casesi): Don't access the operands array
6049         out of bounds.
6051 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
6053         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
6054         (or $-1,reg peephole2): Ditto.
6055         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
6057 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
6059         * doc/extend.texi (Common Function Attributes) [optimize]:
6060         Discourage use of the optimize attribute.
6062 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
6064         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
6065         special case builtin.
6066         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
6067         ALTIVEC_BUILTIN_VEC_ADDE.
6068         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6069         support for ALTIVEC_BUILTIN_VEC_ADDE.
6070         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6071         for __builtin_vec_adde.
6073 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
6075         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
6076         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
6078 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6080         PR testsuite/70595
6081         * doc/sourcebuild.texi (Effective-Target Keywords, Other
6082         attributes): Document cilkplus_runtime.
6084 2016-04-28  Martin Jambor  <mjambor@suse.cz>
6086         * tree-cfg.c (verify_expr): Verify that local declarations belong to
6087         this function.  Call verify_expr on MEM_REFs and bases of other
6088         handled_components.
6090 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6092         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
6093         for WORD_REGISTER_OPERATIONS to runtime check.
6095 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
6097         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
6099 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
6101         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
6102         big-endian compilation.
6103         * config/arc/arc.md (addf3): Likewise.
6104         (subdf3): Likewise.
6105         (muldf3): Likewise.
6107 2016-04-28  Richard Biener  <rguenther@suse.de>
6109         PR tree-optimization/70840
6110         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
6111         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
6112         Mark x * pow(x,c) -> pow(x,c+1) commutative.
6113         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
6115 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6117         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
6118         and explain why in a comment.
6120 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
6122         * config/arc/arc.md (cpu_facility): Add fpx variant.
6123         (subdf3): Prohibit use reverse sub when assist operations option
6124         is enabled.
6125         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
6126         instructions only when FPX is enabled.
6127         * testsuite/gcc.target/arc/trsub.c: New test.
6129 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
6131         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
6132         mult_operator when calculating "type" attribute.
6133         (*fop_<mode>_1_i387): Ditto.
6134         (*fop_xf_1_i387): Ditto.
6135         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
6136         Use std::swap to swap operands.  Use RTL expressions to generate
6137         converted pattern.
6139 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
6140             Joern Rennecke  <joern.rennecke@embecosm.com>
6142         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
6143         declaration.
6144         (emit_pic_move): Remove.
6145         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
6146         * config/arc/arc.c (emit_pic_move): Removed.
6147         (TARGET_HAVE_TLS): Define.
6148         (arc_conditional_register_usage): Test for arc_tp_regno.
6149         (arc_print_operand, arc_print_operand_address): Handle TLS
6150         unspecs.
6151         (arc_needs_pcl_p): New function.
6152         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
6153         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
6154         (arc_raw_symbolic_reference_mentioned_p): Likewise.
6155         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
6156         (arc_legitimize_tls_address): Likewise.
6157         (DTPOFF_ZERO_SYM): Define.
6158         (arc_legitimize_pic_address): Make it static, handle TLS cases.
6159         (arc_output_pic_addr_const): Print TLS unspecs.
6160         (prepare_pic_move): New function, replaces emit_pic_move.
6161         (arc_legitimate_constant_p): Handle TLS unspecs.
6162         (arc_legitimate_address_p): Likewise.
6163         (arc_rewrite_small_data_p): Use assert for TLS constants.
6164         (prepare_move_operands): Use prepare_pic_move.
6165         (arc_legitimize_address): Legitimize tls addresses.
6166         (arc_epilogue_uses): Check for arc_tp_regno.
6167         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
6168         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
6169         Define.
6170         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
6171         Likewise.
6172         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
6173         %(arc_tls_extra_start_spec).
6174         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
6175         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
6176         (EH_USES): Define.
6177         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
6178         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
6179         (UNSPEC_TLS_OFF): Add.
6180         (R10_REG): Define.
6181         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
6182         (get_thread_pointersi): New patterns.
6183         * config/arc/arc.opt (mtp-regno): New option.
6184         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
6185         (move_dest_operand): Likewise.
6186         * configure: Regenerate.
6187         * configure.ac: Add arc*-*-* case to test for tls.
6188         * doc/invoke.texi (ARC options): Document mtp-regno.
6190 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
6192         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
6193         the new ARC HS SIMD instructions.
6194         (arc_preferred_simd_mode): New function.
6195         (arc_autovectorize_vector_sizes): Likewise.
6196         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
6197         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6198         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
6199         (arc_init_builtins): Add new SIMD builtin types.
6200         (arc_split_move): Handle 64 bit vector moves.
6201         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
6202         (TARGET_PLUS_QMACW): Define.
6203         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
6204         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
6205         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
6206         (VSUBADD4H): New builtins.
6207         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
6208         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
6210 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
6211             Matthias Klose  <doko@debian.org>
6213         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
6215 2016-04-28  Richard Biener  <rguenther@suse.de>
6217         PR middle-end/70777
6218         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
6219         canonicalization.
6221 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
6223         * common/config/sh/sh-common.c: Remove SH5 support.
6224         * config/sh/constraints.md: Likewise.
6225         * config/sh/config/sh/elf.h: Likewise.
6226         * config/sh/linux.h: Likewise.
6227         * config/sh/netbsd-elf.h: Likewise.
6228         * config/sh/predicates.md: Likewise.
6229         * config/sh/sh-c.c: Likewise.
6230         * config/sh/sh-protos.h: Likewise.
6231         * config/sh/sh.c: Likewise.
6232         * config/sh/sh.h: Likewise.
6233         * config/sh/sh.md: Likewise.
6234         * config/sh/sh.opt: Likewise.
6235         * config/sh/sync.md: Likewise.
6236         * config/sh/sh64.h: Delete.
6237         * config/sh/shmedia.h: Likewise.
6238         * config/sh/shmedia.md: Likewise.
6239         * config/sh/sshmedia.h: Likewise.
6240         * config/sh/t-netbsd-sh5-64: Likewise.
6241         * config/sh/t-sh64: Likewise.
6242         * config/sh/ushmedia.h: Likewise.
6244 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
6246         * config/i386/i386.md (sign_extend to memory peephole2s): Use
6247         general_reg_operand instead of register_operand predicate.
6249 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6251         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
6253 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
6255         * match.pd (A - B > A, A + B < A): New transformations.
6257 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
6259         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
6260         which defaults to true.  Emit an outer pair of parentheses only if
6261         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
6262         don't emit parentheses for the right-hand operand.
6264 2016-04-27  Jeff Law  <law@redhat.com>
6266         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
6268 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6270         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
6271         (altivec_lvx_<mode>_internal): Document.
6272         (altivec_lvx_<mode>_2op): New define_insn.
6273         (altivec_lvx_<mode>_1op): Likewise.
6274         (altivec_lvx_<mode>_2op_si): Likewise.
6275         (altivec_lvx_<mode>_1op_si): Likewise.
6276         (altivec_stvx_<mode>): Remove.
6277         (altivec_stvx_<mode>_internal): Document.
6278         (altivec_stvx_<mode>_2op): New define_insn.
6279         (altivec_stvx_<mode>_1op): Likewise.
6280         (altivec_stvx_<mode>_2op_si): Likewise.
6281         (altivec_stvx_<mode>_1op_si): Likewise.
6282         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6283         Expand vec_ld and vec_st during parsing.
6284         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
6285         changes.
6286         (altivec_expand_stvx_be): Likewise.
6287         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
6288         address-masking behavior in RTL.
6289         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
6290         address-masking behavior in RTL.
6291         (altivec_expand_builtin): Change builtin code arguments for calls
6292         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
6293         (insn_is_swappable_p): Avoid incorrect swap optimization in the
6294         presence of lvx/stvx patterns.
6295         (alignment_with_canonical_addr): New function.
6296         (alignment_mask): Likewise.
6297         (find_alignment_op): Likewise.
6298         (recombine_lvx_pattern): Likewise.
6299         (recombine_stvx_pattern): Likewise.
6300         (recombine_lvx_stvx_patterns): Likewise.
6301         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
6302         stvx patterns from expand.
6303         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
6304         expansions.
6305         (vector_altivec_store_<mode>): Likewise.
6307 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
6309         * config/aarch64/aarch64.md
6310         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
6311         remove the "fp" attributes.
6312         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
6313         add the "simd" attributes.
6314         (*movdf_aarch64): Likewise.
6315         (*movtf_aarch64): Remove the "fp" attributes.
6316         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
6317         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
6319 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
6321         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
6322         rtx to rtx_code_label *.
6323         * rtl.h (maybe_set_first_label_num): Likewise.
6325 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
6327         * df-core.c (df_add_problem): Make the problem param be const.
6328         (df_remove_problem): Make local "problem" be const.
6329         * df-problems.c (problem_RD): Make const.
6330         (problem_LR): Likewise.
6331         (problem_LIVE): Likewise.
6332         (problem_MIR): Likewise.
6333         (problem_CHAIN): Likewise.
6334         (problem_WORD_LR): Likewise.
6335         (problem_NOTE): Likewise.
6336         (problem_MD): Likewise.
6337         * df-scan.c (problem_SCAN): Likewise.
6338         * df.h (struct df_problem): Make field "dependent_problem" be
6339         const.
6340         (struct dataflow): Likewise for field "problem".
6341         (df_add_problem): Make param const.
6343 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
6345         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
6346         inter-unit moves to/from vector registers are enabled.  Do not disable
6347         for TARGET_MMX.
6349 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
6351         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
6352         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
6353         #define to...
6354         (enum df_problem_id): ...this new enum.
6355         (struct df_problem): Convert field "id" from "int" to
6356         enum df_problem_id.
6358 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
6360         * rtl.def: Update comment for "things in the instruction chain" to
6361         reflect the removal of the leading "i" field for INSN_UID in
6362         r210360.  Fix bogus apostrophe.
6364 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
6366         * config/i386/i386.md
6367         (lea arith with mem operand + setcc peephole2): Set operator mode.
6369 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
6371         PR target/70155
6372         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
6373         (dimode_scalar_to_vector_candidate_p): This.
6374         (timode_scalar_to_vector_candidate_p): New function.
6375         (scalar_to_vector_candidate_p): Likewise.
6376         (timode_check_non_convertible_regs): Likewise.
6377         (timode_remove_non_convertible_regs): Likewise.
6378         (remove_non_convertible_regs): Likewise.
6379         (remove_non_convertible_regs): Renamed to ...
6380         (dimode_remove_non_convertible_regs): This.
6381         (scalar_chain::~scalar_chain): Make it virtual.
6382         (scalar_chain::compute_convert_gain): Make it pure virtual.
6383         (scalar_chain::mark_dual_mode_def): Likewise.
6384         (scalar_chain::convert_insn): Likewise.
6385         (scalar_chain::convert_registers): Likewise.
6386         (scalar_chain::add_to_queue): Make it protected.
6387         (scalar_chain::emit_conversion_insns): Likewise.
6388         (scalar_chain::replace_with_subreg): Likewise.
6389         (scalar_chain::replace_with_subreg_in_insn): Likewise.
6390         (scalar_chain::convert_op): Likewise.
6391         (scalar_chain::convert_reg): Likewise.
6392         (scalar_chain::make_vector_copies): Likewise.
6393         (scalar_chain::convert_registers): New pure virtual function.
6394         (class dimode_scalar_chain): New class.
6395         (class timode_scalar_chain): Likewise.
6396         (scalar_chain::mark_dual_mode_def): Renamed to ...
6397         (dimode_scalar_chain::mark_dual_mode_def): This.
6398         (timode_scalar_chain::mark_dual_mode_def): New function.
6399         (timode_scalar_chain::convert_insn): Likewise.
6400         (dimode_scalar_chain::convert_registers): Likewise.
6401         (scalar_chain::compute_convert_gain): Renamed to ...
6402         (dimode_scalar_chain::compute_convert_gain): This.
6403         (scalar_chain::replace_with_subreg): Renamed to ...
6404         (dimode_scalar_chain::replace_with_subreg): This.
6405         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
6406         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
6407         (scalar_chain::make_vector_copies): Renamed to ...
6408         (dimode_scalar_chain::make_vector_copies): This.
6409         (scalar_chain::convert_reg): Renamed to ...
6410         (dimode_scalar_chain::convert_reg ): This.
6411         (scalar_chain::convert_op): Renamed to ...
6412         (dimode_scalar_chain::convert_op): This.
6413         (scalar_chain::convert_insn): Renamed to ...
6414         (dimode_scalar_chain::convert_insn): This.
6415         (scalar_chain::convert): Call convert_registers.
6416         (convert_scalars_to_vector): Change to scalar_chain pointer to
6417         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
6418         in 32-bit mode.  Delete scalar_chain pointer.  Call
6419         free_dominance_info in 64-bit mode.
6420         (pass_stv::gate): Remove TARGET_64BIT check.
6421         (ix86_option_override): Put the 64-bit STV pass before the CSE
6422         pass.
6424 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
6426         * dwarf2out.h (struct dw_loc_descr_node): Remove the
6427         dw_loc_frame_offset field.
6428         * dwarf2out.c (new_loc_descr): Likewise.
6429         (resolve_args_picking_1): Turn the VISITED hash set into a
6430         FRAME_OFFSET hash map. Use it to associate a frame offset to
6431         visited nodes. Remove uses of the CHECKING_P macro.
6432         (resolve_args_picking): Update call to resolve_args_picking_1.
6434 2016-04-27  Martin Liska  <mliska@suse.cz>
6436         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
6437         (free_loop_data): Release vuses of groups.
6439 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
6441         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
6442         instead of redundant use_id and boolean have_use_for.
6443         (struct iv_use): Change sub_id into group_id.  Remove field next.
6444         Move fields: related_cands, n_map_members, cost_map and selected
6445         to ...
6446         (struct iv_group): ... here.  New structure.
6447         (struct iv_common_cand): Use structure declaration directly.
6448         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
6449         (MAX_CONSIDERED_USES): Rename macro to ...
6450         (MAX_CONSIDERED_GROUPS): ... here.
6451         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
6452         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
6453         (dump_uses): Rename to ...
6454         (dump_groups): ... here.  Update all uses.
6455         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
6456         (find_induction_variables): Refactor format of dump information.
6457         (record_sub_use): Delete.
6458         (record_use): Update all uses.
6459         (record_group): New function.
6460         (record_group_use, find_interesting_uses_op): Call above functions.
6461         Update all uses.
6462         (find_interesting_uses_cond): Ditto.
6463         (group_compare_offset): New function.
6464         (split_all_small_groups): Rename to ...
6465         (split_small_address_groups_p): ... here.  Update all uses.
6466         (split_address_groups):  Update all uses.
6467         (find_interesting_uses): Refactor format of dump information.
6468         (add_candidate_1): Update all uses.  Remove redundant check on iv,
6469         base and step.
6470         (add_candidate, record_common_cand): Remove redundant assert.
6471         (add_iv_candidate_for_biv): Update use.
6472         (add_iv_candidate_derived_from_uses): Update all uses.
6473         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
6474         (alloc_use_cost_map): Ditto.
6475         (set_use_iv_cost, get_use_iv_cost): Rename to ...
6476         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
6477         (determine_use_iv_cost_generic): Ditto.
6478         (determine_group_iv_cost_generic): Ditto.
6479         (determine_use_iv_cost_address): Ditto.
6480         (determine_group_iv_cost_address): Ditto.
6481         (determine_use_iv_cost_condition): Ditto.
6482         (determine_group_iv_cost_cond): Ditto.
6483         (determine_use_iv_cost): Ditto.
6484         (determine_group_iv_cost): Ditto.
6485         (set_autoinc_for_original_candidates): Update all uses.
6486         (find_iv_candidates): Update all uses.  Refactor dump information.
6487         (determine_use_iv_costs): Ditto.
6488         (determine_iv_costs): Ditto.
6489         (iv_ca_cand_for_use): Rename to ...
6490         (iv_ca_cand_for_group): ... here.  Update all uses.
6491         (iv_ca_add_use, iv_ca_add_group): Ditto.
6492         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
6493         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
6494         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
6495         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
6496         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
6497         (create_new_iv, adjust_iv_update_pos): Ditto.
6498         (rewrite_use_address): Delete.
6499         (rewrite_use_address_1): Rename to ...
6500         (rewrite_use_address): ... here.
6501         (rewrite_use_compare): Update all uses.
6502         (rewrite_use): Delete.
6503         (rewrite_uses): Rename to ...
6504         (rewrite_groups): ... here.  Update all uses.
6505         (remove_unused_ivs, free_loop_data): Update all uses.
6506         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
6508 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6510         * rtlanal.c (nonzero_bits1): Convert preprocessor check
6511         for WORD_REGISTER_OPERATIONS to runtime check.
6513 2016-04-27  Richard Biener  <rguenther@suse.de>
6515         PR ipa/70760
6516         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
6517         aggregate_value_p to determine if a function result is
6518         returned by reference.
6519         (ipa_pta_execute): Functions having their address taken are
6520         not automatically nonlocal.
6522 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
6524         PR sanitizer/70683
6525         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
6526         * fold-const.c (operand_equal_p): If flag_checking and
6527         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
6528         and if it returns non-zero, assert iterative_hash_expr on both
6529         args is the same.
6531 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
6533         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
6535 2016-04-27  Nick Clifton  <nickc@redhat.com>
6537         PR middle-end/49889
6538         * varasm.c (merge_weak): Generate an error if an attempt is made
6539         to convert a non-weak static function into a weak, public function.
6541 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6543         * params.def (MAX_PARTITION_SIZE): New param.
6544         * doc/invoke.texi: Document lto-max-partition.
6546 2016-04-27  Richard Biener  <rguenther@suse.de>
6548         PR ipa/70785
6549         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
6550         function cummulating used_from_other_partition, externally_visible
6551         and force_output from aliases.
6552         (refered_from_nonlocal_var): Likewise.
6553         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
6554         node flags properly.
6556 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
6558         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
6559         (-Wmemset-elt-size): New item.
6561 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
6563         PR ada/70759
6564         * stor-layout.h (internal_reference_types): Delete.
6565         * stor-layout.c (reference_types_internal): Likewise.
6566         (internal_reference_types): Likewise.
6567         (layout_type) <REFERENCE_TYPE>: Adjust.
6569 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
6571         PR sanitizer/70683
6572         * tree.h (inchash::add_expr): Add FLAGS argument.
6573         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
6574         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
6575         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
6576         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
6577         if swap_tree_comparison (code) is smaller than code, hash that
6578         and arguments in the other order.  Hash CONVERT_EXPR the same
6579         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
6580         of ADDR_EXPR of decl as the decl itself.  Add or remove
6581         OEP_ADDRESS_OF from recursive flags as needed.  For
6582         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
6583         operands commutatively and only the third one normally.
6584         For internal CALL_EXPR hash in CALL_EXPR_IFN.
6586 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6588         * config/rtems.h (LIB_SPEC): Add -latomic.
6590 2016-04-27  Joel Sherrill  <joel@rtems.org>
6592         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
6593         xilink.ld and flags not relevant to RTEMS.
6595 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
6597         * toplev.c (backend_init_target): Avoid calling init_reload when using
6598         LRA.
6600 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
6602         * reorg.c (try_merge_delay_insns): Declare i and j inside the
6603         for loops rather than one for the whole function.
6605 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
6607         * match.pd (X + CST CMP X): New transformation.
6609 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
6611         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
6612         * fold-const.c (fold_binary_loc): Remove 2 transformations
6613         superseded by match.pd.
6614         * match.pd (x+x -> x*2): Generalize to integers.
6616 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
6618         * config/i386/i386.md (operation on memory peephole): Duplicate an
6619         existing peephole and adapt it to match lea rather than an operation
6620         that clobbers CC.
6622         PR rtl-optimization/57193
6623         * opts.c (default_options_table): Add OPT_frename_registers at -O2
6624         and above.
6625         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
6627 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
6629         * tree-if-conv.c (any_pred_load_store): New static variable.
6630         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
6631         any_pred_load_store instead of and_mask_load_store.
6632         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
6633         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
6634         (combine_blocks, tree_if_conversion): Ditto.
6636 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
6638         PR tree-optimization/70771
6639         PR tree-optimization/70775
6640         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
6641         virtual PHI nodes.  Delete parameter.
6642         (if_convertible_loop_p_1): Delete argument to above function.
6643         (predicate_all_scalar_phis): Delete code handling single-argument
6644         PHIs.
6645         (tree_if_conversion): Mark and update virtual SSA.
6647 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6649         PR target/61821
6650         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
6651         (x86_elf_aligned_common): Rename to ...
6652         (x86_elf_aligned_decl_common): ... this.
6653         Add decl arg.  Switch to .lbss for largecomm object.  Use
6654         LARGECOMM_SECTION_ASM_OP.
6655         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
6656         renaming.
6657         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
6658         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
6659         Pass new decl arg.
6660         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6661         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
6663 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6665         PR target/59407
6666         * config/i386/i386.c (SECTION_LARGE): Define.
6667         (x86_64_elf_select_section): Set it for large data/bss sections.
6668         Only clear SECTION_WRITE for .lrodata.
6669         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
6670         data/bss sections.
6671         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
6672         * varasm.c (default_elf_asm_named_section): Grow flagchars.
6673         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
6674         SECTION_MACH_DEP.
6675         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
6676         * doc/tm.texi: Regenerate.
6678 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
6680         PR bootstrap/70704
6681         * configure.ac (--enable-checking): Document extra flag, for
6682         non-release builds default to --enable-checking=yes,extra.
6683         If misc checking and extra checking, define CHECKING_P to 2 instead
6684         of 1.
6685         * common.opt (fchecking=): Add.
6686         * doc/invoke.texi (-fchecking=): Document.
6687         * doc/install.texi: Document --enable-checking changes.
6688         * configure: Regenerated.
6689         * config.in: Regenerated.
6691 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
6693         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
6694         attribute instead of which_alternative.
6695         * config/i386/sse.md (*mov<mode>_internal): Ditto.
6696         Use EXT_REX_SSE_REG_P where appropriate.
6698 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
6700         * config/i386/predicates.md (const0_operand): Do not match
6701         const_wide_int code.
6702         (const1_operand): Ditto.
6704 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
6706         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
6707         for SSE constm1 operands and TARGET_AVX512VL.
6708         (*movti_internal): Ditto.
6709         (*mov<mode>_or): Use constm1_operand predicate.
6710         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
6711         for SSE vector_all_ones operands and TARGET_AVX512VL.
6712         * config/i386/predicates.md (constm1_operand): New predicate.
6713         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
6714         emission of constant -1 load.
6716 2016-04-25  Jason Merrill  <jason@redhat.com>
6718         * gdbinit.in: Skip is-a.h.
6720         * attribs.c (register_scoped_attributes): Fix logic.
6721         * attribs.h: Declare register_scoped_attributes.
6723 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6725         * config/rs6000/rs6000-builtin.def: Correct pasto error for
6726         stxvd2x and stxvw4x built-in functions.
6728 2016-04-25  DJ Delorie  <dj@redhat.com>
6730         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
6731         (ashrhi3): Likewise.
6732         (lshrhi3): Likewise.
6734 2016-04-25  Richard Biener  <rguenther@suse.de>
6736         PR tree-optimization/70780
6737         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
6738         wasn't visited yet.
6739         (compute_antic): Mark blocks with abnormal preds as visited as
6740         they have a final empty antic-in solution already.
6742 2016-04-25  Michael Collison  <michael.collison@linaro.org>
6744         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
6746 2016-04-25  Michael Collison  <michael.collison@linaro.org>
6748         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
6749         mode is VQI to improve mixed mode vectorization.
6750         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
6751         define_insn to match low half of signed vaddw.
6752         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
6753         define_insn to match high half of signed vaddw.
6754         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
6755         define_insn to match low half of unsigned vaddw.
6756         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
6757         define_insn to match high half of unsigned vaddw.
6758         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
6759         (arm_simd_check_vect_par_cnst_half_p): Likewise.
6760         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
6761         for new function.
6762         (arm_simd_check_vect_par_cnst_half_p): Likewise.
6763         * config/arm/predicates.md (vect_par_constant_high): Support
6764         big endian and simplify by calling
6765         arm_simd_check_vect_par_cnst_half
6766         (vect_par_constant_low): Likewise.
6768 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
6770         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
6771         predicate for operand 2.
6773 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
6774             H.J. Lu  <hongjiu.lu@intel.com>
6776         * config/i386/i386-protos.h (standard_sse_constant_p): Add
6777         machine_mode argument.
6778         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
6779         constm1_rtx operands.  For VOIDmode constants, get mode from
6780         pred_mode.  Check mode size if the mode is supported by ABI.
6781         (standard_sse_constant_opcode): Do not use standard_constant_p.
6782         Strictly check ABI support for all-ones operands.
6783         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
6784         immediates. Update calls to standard_sse_constant_p.
6785         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
6786         (ix86_rtx_costs): Ditto.
6787         * config/i386/i386.md (*movxi_internal_avx512f): Use
6788         nonimmediate_or_sse_const_operand instead of vector_move_operand.
6789         Use (v,BC) alternative instead of (v,C). Use register_operand
6790         checks instead of MEM_P.
6791         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
6792         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
6793         isa attribute.  Use register_operand checks instead of MEM_P.
6794         (*movti_internal): Use nonimmediate_or_sse_const_operand for
6795         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
6796         alternative and corresponding sse2 isa attribute.
6797         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
6798         to standard_sse_constant_p.
6799         (FP constant splitters): Ditto.
6800         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
6801         (C): Ditto.
6802         * config/i386/predicates.md (constm1_operand): Remove.
6803         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
6804         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
6805         vector_all_ones_operand instead of constm1_operand.
6807 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6809         * print-rtl.c (print_rtx_insn_vec): New function.
6810         * print-rtl.h: New prototype.
6811         * store-motion.c (struct st_expr): Make avail_stores a vector.
6812         (st_expr_entry): Adjust.
6813         (free_st_expr_entry): Likewise.
6814         (print_store_motion_mems): Likewise.
6815         (find_moveable_store): Likewise.
6816         (compute_store_table): Likewise.
6817         (delete_store): Likewise.
6818         (build_store_vectors): Likewise.
6820 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6822         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
6824 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6826         * vec.h (vec_safe_contains): New function.
6827         (vec::contains): Likewise.
6828         (vec::begin): Likewise.
6829         (vec::end): Likewise.
6831 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
6833         PR sanitizer/70712
6834         * cfgexpand.c (expand_stack_vars): Fix typo.
6836 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6838         * system.h (list, map, set, vector): Include conditionally.
6839         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
6840         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
6841         * ipa-icf.c (INCLUDE_LIST): Define.
6842         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
6843         * config/sh/sh.c (INCLUDE_VECTOR): Define.
6844         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
6845         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
6846         * cp/logic.cc (INCLUDE_LIST): Define.
6847         * fortran/trans-common.c (INCLUDE_MAP): Define.
6849 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6851         * auto-profile.c: Remove <string.h> include.
6852         * ipa-icf-gimple.c: Remove <list> include.
6853         * diagnostic.c: Remove <new> include.
6854         * genmatch.c: Likewise.
6855         * pretty-print.c: Likewise.
6856         * toplev.c: Likewise
6857         * c/c-objc-common.c: Likewise.
6858         * cp/error.c: Likewise.
6859         * fortran/error.c: Likewise.
6861 2016-04-22  Richard Biener  <rguenther@suse.de>
6863         * lto-streamer-in.c (input_ssa_names): Do not allocate
6864         GIMPLE_NOP for all SSA names.
6865         * lto-streamer-out.c (output_ssa_names): Do not output
6866         SSA names that should have been released.
6868 2016-04-22  Richard Biener  <rguenther@suse.de>
6870         PR tree-optimization/70740
6871         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
6872         VDEF.
6874 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
6876         PR target/70750
6877         * config/i386/predicates.md (call_insn_operand): Replace
6878         sibcall_memory_operand with memory_operand.
6880 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
6882         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
6883         has_single_use() tests.
6884         (register_edge_assert_for_1): Likewise.
6885         (find_assert_locations_1): Check the liveness bitmap instead of
6886         checking has_single_use().
6888 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
6890         PR target/70728
6891         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
6892         Extract AVX-512BW constraint from AVX.
6894 2016-04-21  Richard Biener  <rguenther@suse.de>
6896         PR tree-optimization/70725
6897         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
6898         for phi_convertible_by_degenerating_args.
6899         (predicate_all_scalar_phis): Handle single-argument PHIs.
6901 2016-04-21  Richard Biener  <rguenther@suse.de>
6903         PR middle-end/70747
6904         * fold-const.c (fold_comparison): Return properly typed
6905         constant boolean.
6907 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
6909         PR tree-optimization/70715
6910         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
6911         after expanding BASE using expand_simple_operations.
6913 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
6915         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
6916         New transformations.
6918 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
6920         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
6922 2016-04-20  Jan Hubicka  <jh@suse.cz>
6924         * ipa-inline.c (can_inline_edge_p): Pass caller info to
6925         ultiimate_alias_target.
6926         (update_callee_keys): Likewise.
6927         (lookup_recursive_calls): Likewise.
6928         (speculation_useful_p): Likewise.
6930 2016-04-20  Jan Hubicka  <jh@suse.cz>
6932         PR ipa/70018
6933         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
6934         (set_nothrow_flag_1): ... this; handle interposition correctly;
6935         recurse on aliases and thunks.
6936         (cgraph_node::set_nothrow_flag): New.
6937         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
6938         functions compiled with non-call exceptions that binds to current
6939         def.
6940         (propagate_nothrow): Be safe WRT interposition.
6941         * cgraph.h (set_nothrow_flag): Update prototype.
6943 2016-04-18  Jan Hubicka  <jh@suse.cz>
6945         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6946         max_loop_iterations_int.
6947         (tree_unswitch_outer_loop): Likewise.
6949 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
6951         PR tree-optimization/69489
6952         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
6953         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
6954         Revise dump message.
6955         (if_convertible_bb_p): Remove check on edge count of basic block's
6956         predecessors.
6958 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
6960         PR tree-optimization/56625
6961         PR tree-optimization/69489
6962         * tree-data-ref.h (DR_INNERMOST): New macro.
6963         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
6964         hashing struct innermost_loop_behavior.
6965         (ref_DR_map): Remove.
6966         (innermost_DR_map): New map.
6967         (baseref_DR_map): Revise comment.
6968         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
6969         to innermost_DR_map accroding to its innermost loop behavior.
6970         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
6971         to its innermost loop behavior.
6972         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
6973         Add initialization for innermost_DR_map.  Record memory reference
6974         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
6975         have innermost loop behavior.
6976         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
6977         innermost_DR_map.
6979 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
6981         * config/i386/i386.md (*lea<mode>_general_1): Rename from
6982         *lea_general_1.  Use explicit SWI12 mode interator.
6983         (*lea<mode>_general_2): Rename from *lea_general_2.
6984         Use explicit SWI12 mode interator.
6985         (*lea<mode>_general_3): Rename from *lea_general_3.
6986         Use explicit SWI12 mode interator.
6987         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
6988         Use explicit SWI12 mode interator.
6989         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
6990         Use explicit SWI48 mode interator.
6992 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
6994         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
6995         Short-cut unaligned load and store cases.  Handle all integer
6996         vector modes.
6997         (ix86_expand_vector_move_misalign): Short-cut unaligned load
6998         and store cases.  Call ix86_avx256_split_vector_move_misalign
6999         directly without checking mode class.
7001 2016-04-20  Andrew Pinski  <apinski@cavium.com>
7002             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7004         PR target/64971
7005         * config/aarch64/aarch64.md (sibcall): Force call
7006         address to be DImode for ILP32.
7007         (sibcall_value): Likewise.
7009 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
7011         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
7013 2016-04-20  Richard Biener  <rguenther@suse.de>
7015         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
7016         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
7017         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
7018         (maybe_push_res_to_seq): Adjust.
7019         * gimple-fold.c (maybe_build_generic_op): Likewise.
7021 2016-04-20  Marek Polacek  <polacek@redhat.com>
7023         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
7024         rather than true.
7026 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
7028         * config/i386/sse.md (vec_unpacks_lo_hi): Always
7029         use kmovw to support AVX512F target.
7031 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
7033         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
7035 2016-04-20  Marek Polacek  <polacek@redhat.com>
7037         PR tree-optimization/70725
7038         * tree-if-conv.c (is_false_predicate): New function.
7039         (predicate_mem_writes): Use it.
7041 2016-04-20  Richard Biener  <rguenther@suse.de>
7043         PR tree-optimization/70726
7044         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
7045         shift amounts from a pattern stmt operand.
7047 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7049         PR target/70674
7050         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
7051         stack_restore_from_fpr pattern when restoring r15.
7052         (s390_optimize_prologue): Strip away the memory barrier in the
7053         parallel when trying to get rid of restore insns.
7054         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
7055         definition for loading the stack pointer from an FPR.  Compared to
7056         the normal move insn this pattern includes a full memory barrier.
7058 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
7060         PR middle-end/70680
7061         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
7062         implicitly linear or lastprivate iterator on the outer context.
7064 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
7066         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
7067         alignment check.
7068         * config/i386/i386.md (ssememalign): Removed.
7069         * config/i386/sse.md: Remove ssememalign attribute from patterns.
7071 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
7073         PR target/69201
7074         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
7075         const short * to __builtin_ia32_loaddquhi512_mask.
7076         (_mm512_maskz_loadu_epi16): Likewise.
7077         (_mm512_mask_storeu_epi16): Pass short * to
7078         __builtin_ia32_storedquhi512_mask.
7079         (_mm512_mask_loadu_epi8): Pass const char * to
7080         __builtin_ia32_loaddquqi512_mask.
7081         (_mm512_maskz_loadu_epi8): Likewise.
7082         (_mm512_mask_storeu_epi8): Pass char * to
7083         __builtin_ia32_storedquqi512_mask.
7084         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
7085         const double * to __builtin_ia32_loadupd512_mask.
7086         (_mm512_mask_loadu_pd): Likewise.
7087         (_mm512_maskz_loadu_pd): Likewise.
7088         (_mm512_storeu_pd): Pass double * to
7089         __builtin_ia32_storeupd512_mask.
7090         (_mm512_mask_storeu_pd): Likewise.
7091         (_mm512_loadu_ps): Pass const float * to
7092         __builtin_ia32_loadups512_mask.
7093         (_mm512_mask_loadu_ps): Likewise.
7094         (_mm512_maskz_loadu_ps): Likewise.
7095         (_mm512_storeu_ps): Pass float * to
7096         __builtin_ia32_storeups512_mask.
7097         (_mm512_mask_storeu_ps): Likewise.
7098         (_mm512_mask_loadu_epi64): Pass const long long * to
7099         __builtin_ia32_loaddqudi512_mask.
7100         (_mm512_maskz_loadu_epi64): Likewise.
7101         (_mm512_mask_storeu_epi64): Pass long long *
7102         to __builtin_ia32_storedqudi512_mask.
7103         (_mm512_loadu_si512): Pass const int * to
7104         __builtin_ia32_loaddqusi512_mask.
7105         (_mm512_mask_loadu_epi32): Likewise.
7106         (_mm512_maskz_loadu_epi32): Likewise.
7107         (_mm512_storeu_si512): Pass int * to
7108         __builtin_ia32_storedqusi512_mask.
7109         (_mm512_mask_storeu_epi32): Likewise.
7110         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
7111         char * to __builtin_ia32_storedquqi256_mask.
7112         (_mm_mask_storeu_epi8): Likewise.
7113         (_mm256_mask_loadu_epi16): Pass const short * to
7114         __builtin_ia32_loaddquhi256_mask.
7115         (_mm256_maskz_loadu_epi16): Likewise.
7116         (_mm_mask_loadu_epi16): Pass const short * to
7117         __builtin_ia32_loaddquhi128_mask.
7118         (_mm_maskz_loadu_epi16): Likewise.
7119         (_mm256_mask_loadu_epi8): Pass const char * to
7120         __builtin_ia32_loaddquqi256_mask.
7121         (_mm256_maskz_loadu_epi8): Likewise.
7122         (_mm_mask_loadu_epi8): Pass const char * to
7123         __builtin_ia32_loaddquqi128_mask.
7124         (_mm_maskz_loadu_epi8): Likewise.
7125         (_mm256_mask_storeu_epi16): Pass short * to.
7126         __builtin_ia32_storedquhi256_mask.
7127         (_mm_mask_storeu_epi16): Pass short * to.
7128         __builtin_ia32_storedquhi128_mask.
7129         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
7130         const double * to __builtin_ia32_loadupd256_mask.
7131         (_mm256_maskz_loadu_pd): Likewise.
7132         (_mm_mask_loadu_pd): Pass onst double * to
7133         __builtin_ia32_loadupd128_mask.
7134         (_mm_maskz_loadu_pd): Likewise.
7135         (_mm256_mask_storeu_pd): Pass double * to
7136         __builtin_ia32_storeupd256_mask.
7137         (_mm_mask_storeu_pd): Pass double * to
7138         __builtin_ia32_storeupd128_mask.
7139         (_mm256_mask_loadu_ps): Pass const float * to
7140         __builtin_ia32_loadups256_mask.
7141         (_mm256_maskz_loadu_ps): Likewise.
7142         (_mm_mask_loadu_ps): Pass const float * to
7143         __builtin_ia32_loadups128_mask.
7144         (_mm_maskz_loadu_ps): Likewise.
7145         (_mm256_mask_storeu_ps): Pass float * to
7146         __builtin_ia32_storeups256_mask.
7147         (_mm_mask_storeu_ps): ass float * to
7148         __builtin_ia32_storeups128_mask.
7149         (_mm256_mask_loadu_epi64): Pass const long long * to
7150         __builtin_ia32_loaddqudi256_mask.
7151         (_mm256_maskz_loadu_epi64): Likewise.
7152         (_mm_mask_loadu_epi64): Pass const long long * to
7153         __builtin_ia32_loaddqudi128_mask.
7154         (_mm_maskz_loadu_epi64): Likewise.
7155         (_mm256_mask_storeu_epi64): Pass long long * to
7156         __builtin_ia32_storedqudi256_mask.
7157         (_mm_mask_storeu_epi64): Pass long long * to
7158         __builtin_ia32_storedqudi128_mask.
7159         (_mm256_mask_loadu_epi32): Pass const int * to
7160         __builtin_ia32_loaddqusi256_mask.
7161         (_mm256_maskz_loadu_epi32): Likewise.
7162         (_mm_mask_loadu_epi32): Pass const int * to
7163         __builtin_ia32_loaddqusi128_mask.
7164         (_mm_maskz_loadu_epi32): Likewise.
7165         (_mm256_mask_storeu_epi32): Pass int * to
7166         __builtin_ia32_storedqusi256_mask.
7167         (_mm_mask_storeu_epi32): Pass int * to
7168         __builtin_ia32_storedqusi128_mask.
7169         * config/i386/i386-builtin-types.def (PCSHORT): New.
7170         (PINT64): Likewise.
7171         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
7172         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
7173         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
7174         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
7175         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
7176         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
7177         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
7178         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
7179         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
7180         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
7181         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
7182         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
7183         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
7184         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
7185         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
7186         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
7187         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
7188         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
7189         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
7190         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
7191         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
7192         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
7193         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
7194         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
7195         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
7196         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
7197         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
7198         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
7199         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
7200         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
7201         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
7202         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
7203         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
7204         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
7205         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
7206         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
7207         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
7208         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
7209         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
7210         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
7211         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
7212         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
7213         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
7214         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
7215         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
7216         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
7217         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
7218         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
7219         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
7220         use UNSPEC_STOREU.
7221         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
7222         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
7223         load nor store.
7224         (ix86_expand_vector_move_misalign): Likewise.
7225         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
7226         to scalar function prototype for unaligned load/store builtins.
7227         (ix86_expand_special_args_builtin): Updated.
7228         * config/i386/sse.md (UNSPEC_LOADU): Removed.
7229         (UNSPEC_STOREU): Likewise.
7230         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
7231         (VI_ULOADSTORE_F_AVX512VL): Likewise.
7232         (ssescalarsize): Handle V4TI, V2TI and V1TI.
7233         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
7234         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
7235         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
7236         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
7237         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
7238         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
7239         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
7240         (<avx512>_storedqu<mode>_mask): Likewise.
7241         (*sse4_2_pcmpestr_unaligned): Likewise.
7242         (*sse4_2_pcmpistr_unaligned): Likewise.
7243         (*mov<mode>_internal): Renamed to ...
7244         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
7245         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
7246         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
7247         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
7249 2016-04-19  Richard Biener  <rguenther@suse.de>
7251         PR tree-optimization/70171
7252         * tree-ssa-phiprop.c: Include stor-layout.h.
7253         (phiprop_insert_phi): Handle the aggregate copy case.
7254         (propagate_with_phi): Likewise.
7256 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
7258         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
7259         instead of simplify_gen_subreg (... , 0).
7260         (ix86_delegitimize_address): Ditto.
7261         (ix86_split_divmod): Ditto.
7262         (ix86_split_copysign_const): Ditto.
7263         (ix86_split_copysign_var): Ditto.
7264         (ix86_expand_args_builtin): Ditto.
7265         (ix86_expand_round_builtin): Ditto.
7266         (ix86_expand_special_args_builtin): Ditto.
7267         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
7268         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
7269         (udivmodqi4): Ditto.
7270         (absneg splitters): Ditto.
7271         (*jcc_bt<mode>_1): Ditto.
7273 2016-04-19  Richard Biener  <rguenther@suse.de>
7275         PR tree-optimization/70724
7276         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
7277         restoring out from ...
7278         (free_scc_vn): ... here.
7279         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
7280         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
7281         tail merging.
7282         (pass_fre::execute): Restore SSA info.
7284 2016-04-19  Richard Biener  <rguenther@suse.de>
7286         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
7287         * gimple-walk.c (walk_gimple_op): Initialize it.
7288         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
7289         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
7290         remapping SSA names of defs.
7291         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
7292         adjustment.
7294 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
7296         PR middle-end/70689
7297         * lra-constraints.c (equiv_substition_p): New.
7298         (process_alt_operands): Use it.
7299         (swap_operands): Swap it.
7300         (curr_insn_transform): Update it.
7302 2016-04-18  Michael Matz  <matz@suse.de>
7304         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
7305         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
7306         * tree-core.h (tree_type_common.align): Use bit-field.
7307         (tree_type_common.spare): New.
7308         (tree_decl_common.off_align): Make smaller.
7309         (tree_decl_common.align): Use bit-field.
7311         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
7312         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
7313         (scan_sharing_clauses): Ditto.
7314         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
7315         (omp_finish_file): Ditto.
7316         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
7317         (layout_decl): Ditto.
7318         (relayout_decl): Ditto.
7319         (finalize_record_size): Use SET_TYPE_ALIGN.
7320         (finalize_type_size): Ditto.
7321         (finish_builtin_struct): Ditto.
7322         (layout_type): Ditto.
7323         (initialize_sizetypes): Ditto.
7324         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
7325         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
7326         (lookup_field_for_decl): Use SET_DECL_ALIGN.
7327         (get_chain_field): Ditto.
7328         (get_trampoline_type): Ditto.
7329         (get_nl_goto_field): Ditto.
7330         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
7331         SET_DECL_ALIGN.
7332         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
7333         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
7334         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
7335         (build_qualified_type): Use SET_TYPE_ALIGN.
7336         (build_aligned_type, build_range_type_1): Ditto.
7337         (build_atomic_base): Ditto.
7338         (build_common_tree_nodes): Ditto.
7339         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
7340         (expand_one_stack_var_at): Ditto.
7341         * coverage.c (build_var): Use SET_DECL_ALIGN.
7342         * except.c (init_eh): Ditto.
7343         * function.c (assign_parm_setup_block): Ditto.
7344         * symtab.c (increase_alignment_1): Ditto.
7345         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
7346         * tree-vect-stmts.c (ensure_base_align): Ditto.
7347         * varasm.c (align_variable): Ditto.
7348         (assemble_variable): Ditto.
7349         (build_constant_desc): Ditto.
7350         (output_constant_def_contents): Ditto.
7352         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
7353         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
7354         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
7355         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
7356         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
7358 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
7360         PR target/70708
7361         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
7362         replace %vmovsd with "%vmovq".
7363         (vec_concatv2df): Likewise.
7365 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
7367         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
7368         (*vec_extractv2si_0): Ditto.
7369         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
7370         (zero_extended_scalar_load_operand splitters): Ditto.
7371         (vec_extract splitters): Ditto.
7372         (*vec_extractv4si_0_zext): Ditto.
7373         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
7374         and lowpart_subreg.
7375         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
7376         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
7377         (*sse4_1_extractps): Use lowpart_subreg.
7378         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
7380 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7382         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
7383         gld requirements.
7384         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
7385         Mention Solaris 11 packaging changes.
7386         Update gas and gld requirements.
7387         Remove reference to pre-Solaris 10 bug.
7388         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
7389         systems and bugs.
7390         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
7391         with cc.
7393 2016-04-17  Jan Hubicka  <jh@suse.cz>
7395         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
7396         max_loop_iterations_int.
7398 2016-04-18  Richard Biener  <rguenther@suse.de>
7400         PR tree-optimization/43434
7401         * tree-ssa-structalias.c (struct vls_data): New.
7402         (visit_loadstore): Handle all pointer-based accesses.
7403         (compute_dependence_clique): Compute a bitmap of restrict tags
7404         assigned bases and pass it to visit_loadstore.
7406 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
7408         PR target/70711
7409         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
7410         armv8.1-a and armv8.1-a+crc.
7412 2016-04-18  Richard Biener  <rguenther@suse.de>
7414         PR tree-optimization/70701
7415         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
7416         references after translating through a memcpy.
7418 2016-04-18  Richard Biener  <rguenther@suse.de>
7420         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
7421         (compute_antic): ... here.  For partial antic use regular
7422         postorder and scrap iteration.
7423         (compute_partial_antic_aux): Remove unused return value.
7424         (init_pre): Do not allocate postorder.
7425         (fini_pre): Do not free postorder.
7427 2016-04-18  Richard Biener  <rguenther@suse.de>
7429         PR middle-end/37870
7430         * expmed.c (extract_bit_field_1): Remove broken case
7431         using a wider MODE_INT mode.
7433 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
7435         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
7436         unless compiling with at least GCC-4.8.
7438 2016-04-17  Jan Hubicka  <jh@suse.cz>
7440         PR bootstrap/70706
7441         * graphite.c (graphite_finalize): Update call to
7442         tree_estimate_probability.
7443         * predict.h (tree_estimate_probability): Update prototype.
7445 2016-04-17  Jan Hubicka  <jh@suse.cz>
7447         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
7448         (tree_estimate_probability): Likewise.
7449         (pass_profile::execute): Update.
7450         (report_predictor_hitrates): New function.
7451         * profile.c (compute_branch_probabilities): Use it.
7452         * predict.h (report_predictor_hitrates): Declare.
7454 2016-04-17  Jan Hubicka  <jh@suse.cz>
7456         PR ipa/70018
7457         * cgraph.h (cgraph_node::set_const_flag,
7458         cgraph_node::set_pure_flag): Update prototype to return bool;
7459         update comment.
7460         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
7461         of interposable symbol are interposable, too.
7462         (cgraph_set_const_flag_1): Rename to ...
7463         (set_const_flag_1): ... this one; change to self recursive function
7464         instead of call_for_symbol_thunks_and_aliases. Handle correctly
7465         clearnig the flag in all variants and also virtual thunks of const
7466         functions are pure; track if any change was done.
7467         (cgraph_node::set_const_flag): Update.
7468         (struct set_pure_flag_info): New struct.
7469         (cgraph_set_pure_flag_1): Rename to ...
7470         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
7471         rather than pointer encoded flags; track if any changes was done;
7472         handle correctly clearning flag and setting flag of aliases already
7473         declared const.
7474         (cgraph_node::set_pure_flag): Update.
7475         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
7477 2016-04-17  Tom de Vries  <tom@codesourcery.com>
7479         PR other/70433
7480         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
7481         backslash in label.
7483 2016-04-17  Tom de Vries  <tom@codesourcery.com>
7485         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
7486         '{}<> ' as escape-for-record.
7488 2016-04-17  Tom de Vries  <tom@codesourcery.com>
7490         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
7491         structure.
7493 2016-04-17  Tom de Vries  <tom@codesourcery.com>
7495         PR other/70185
7496         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
7497         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
7498         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
7499         * passes.c (finish_optimization_passes): Only call
7500         finish_graph_dump_file if dfi->graph_dump_initialized.
7501         (execute_function_dump, pass_init_dump_file): Use
7502         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
7504 2016-04-17  Tom de Vries  <tom@codesourcery.com>
7506         PR tree-optimization/70256
7507         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
7508         (debug_varmap): New function.
7510 2016-04-17  Tom de Vries  <tom@codesourcery.com>
7512         PR other/70183
7513         * passes.c (pass_manager::register_pass): Propagate pflags.
7515 2016-04-17  Tom de Vries  <tom@codesourcery.com>
7517         PR other/68875
7518         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
7519         * passes.c (pass_manager::pass_manager): Declare and init p_start in
7520         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
7521         check if it's equal to p_start.
7522         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
7524 2016-04-15  Jan Hubicka  <jh@suse.cz>
7526         PR ipa/70018
7527         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
7528         function does not bind to current def.
7529         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
7530         handle conservatively calls to functions that does not need to bind
7531         to current def.
7532         (check_call): Update call of worse_state.
7533         (ignore_edge_for_nothrow): Update.
7534         (ignore_edge_for_pure_const): Likewise.
7535         (propagate_pure_const): Update calls to worse_state.
7536         (skip_function_for_local_pure_const): Reformat comments.
7538 2016-04-15  Jan Hubicka  <jh@suse.cz>
7540         PR ipa/70018
7541         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
7542         (cgraph_node::function_symbol): Likewise.
7543         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
7544         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
7545         (symtab_node::ultimate_alias_target): Add REF parameter.
7546         (symtab_node::binds_to_current_def_p): Declare.
7547         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
7548         (cgraph_node::function_symbol): Likewise.
7549         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
7550         (cgraph_node::get_availability): Likewise.
7551         (cgraph_edge::binds_to_current_def_p): New inline function.
7552         (varpool_node::get_availability): Add REF parameter.
7553         (varpool_node::ultimate_alias_target): Likewise.
7554         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
7555         (symtab_node::binds_to_current_def_p): Likewise.
7556         * varpool.c (varpool_node::get_availability): Likewise.
7558 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
7560         PR target/70662
7561         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
7562         Fix mode size check.
7564 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
7566         * BASE-VER: Set to 7.0.0.
7568 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
7570         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
7572 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7574         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
7575         architecture revisions.
7577 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
7579         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
7580         * config/i386/i386.c (ix86_using_red_zone): No longer static.
7581         * config/i386/i386.md (stack decrement to push peepholes): Guard
7582         with !x86_using_red_zone ().
7584 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
7586         PR c++/70675
7587         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
7588         to dump_generic_node.
7589         (NIY): Pass also flags to do_niy.
7591 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
7593         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
7594         (simd_clone_vector_of_formal_parm_types)
7595         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
7596         (simd_clone_mangle, simd_clone_create)
7597         (simd_clone_adjust_return_type, create_tmp_simd_array)
7598         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
7599         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
7600         (ipa_simd_modify_function_body, simd_clone_linear_addend)
7601         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
7602         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
7603         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
7604         * omp-simd-clone.c: ... this new file.
7605         (simd_clone_vector_of_formal_parm_types): Make it static.
7606         * Makefile.in (OBJS): Add omp-simd-clone.o.
7608 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
7610         PR target/70662
7611         * config/i386/sse.md: Use proper memory operand modifiers.
7614 2016-04-15  Richard Biener  <rguenther@suse.de>
7615         Alan Modra  <amodra@gmail.com>
7617         PR tree-optimization/70130
7618         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
7619         when alignment stays not the same and no not use the realign
7620         scheme then.
7622 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7624         PR target/70669
7625         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
7626         direct move handlers for KFmode. Change TFmode handlers test from
7627         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
7629 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
7631         PR c++/70594
7632         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
7633         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
7634         (inlined_polymorphic_ctor_dtor_block_p): Use it.
7635         * tree-ssa-live.c (remove_unused_scope_block_p): When
7636         in_ctor_dtor_block, avoid discarding not just BLOCKs with
7637         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
7638         block_ultimate_origin is FUNCTION_DECL.
7639         (remove_unused_locals): If current_function_decl is
7640         polymorphic_ctor_dtor_p, pass initial true to
7641         remove_unused_scope_block_p' is_ctor_dtor_block.
7643 2016-04-14  Martin Sebor  <msebor@redhat.com>
7645         PR c++/69517
7646         PR c++/70019
7647         PR c++/70588
7648         * doc/extend.texi (Variable Length): Revert.
7650 2016-04-14  Marek Polacek  <polacek@redhat.com>
7651             Jan Hubicka  <hubicka@ucw.cz>
7653         PR c++/70029
7654         * tree.c (verify_type): Disable the canonical type of main variant
7655         check.
7657 2016-04-14  Jason Merrill  <jason@redhat.com>
7659         * cfgexpand.c, expr.c: Revert previous change.
7661 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
7663         PR middle-end/70643
7664         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
7665         when building a mem ref for the incoming reduction variable.
7667 2016-04-14  Richard Biener  <rguenther@suse.de>
7669         PR tree-optimization/70614
7670         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
7671         loop if the evolution dropped to chrec_dont_know.
7672         (interpret_condition_phi): Likewise.
7674 2016-04-14  Richard Biener  <rguenther@suse.de>
7676         PR tree-optimization/70623
7677         * tree-ssa-pre.c (changed_blocks): Make global ...
7678         (compute_antic): ... local here.  Move and fix worklist
7679         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
7680         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
7681         worklist handling, dump when ANTIC_IN changed.
7682         (compute_partial_antic_aux): Remove worklist handling.
7683         (init_pre): Do not compute post dominators.  Add a comment about
7684         the CFG order chosen.
7685         (fini_pre): Do not free post dominators.
7687 2016-04-13  Martin Sebor  <msebor@redhat.com>
7689         PR c++/69517
7690         PR c++/70019
7691         PR c++/70588
7692         * doc/extend.texi (Variable Length): Document C++ specifics.
7694 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
7696         PR c++/70641
7697         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
7698         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
7699         eh edges have been purged.
7701         PR c++/70594
7702         * tree-sra.c (create_access_replacement,
7703         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
7704         gets fancy name.
7705         * tree-pretty-print.c (dump_fancy_name): New function.
7706         (dump_decl_name, dump_generic_node): Use it.
7708 2016-04-13  Jason Merrill  <jason@redhat.com>
7710         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
7711         * expr.c (expand_expr_real_1): Likewise.
7713 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7715         * config/i386/i386.md (kunpckhi): Swap operands.
7716         (kunpcksi): Likewise.
7717         (kunpckdi): Likewise.
7718         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
7719         (vec_pack_trunc_<mode>): Likewise.
7721 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
7723         PR debug/70628
7724         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
7726         PR middle-end/70633
7727         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
7728         gimplification turns some element into non-constant.
7730         PR debug/70628
7731         * rtl.h (convert_memory_address_addr_space_1): New prototype.
7732         * explow.c (convert_memory_address_addr_space_1): No longer static,
7733         add NO_EMIT argument and don't call convert_modes if true, pass
7734         it down recursively, remove break after return.
7735         (convert_memory_address_addr_space): Adjust caller.
7736         * simplify-rtx.c (simplify_unary_operation_1): Call
7737         convert_memory_address_addr_space_1 instead of convert_memory_address,
7738         if it returns NULL, don't simplify.
7740 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
7742         PR target/70630
7743         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
7745 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
7747         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7748         Bump the upper SIMDLEN limits, so that if the return type or
7749         characteristic type if the return type is void can be passed in
7750         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
7751         allowed.
7753 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7755         PR target/70640
7756         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
7757         Do not use "=" constraint on an input constraint.
7758         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7759         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7760         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
7761         generates (neg (abs ...)) instead of (abs ...).
7763 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
7765         PR rtl-optimization/70596
7766         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
7767         just invalidate LRA data and reset them.  Adjust dump wording.
7769 2016-04-12  Martin Liska  <mliska@suse.cz>
7771         Revert
7772         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
7774         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
7775         estimates here.
7776         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7777         max_loop_iterations_int.
7778         (tree_unswitch_outer_loop): Likewise.
7779         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7780         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7782 2016-04-12  Tom de Vries  <tom@codesourcery.com>
7784         PR tree-optimization/68756
7785         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
7786         instead of new_name.
7788 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
7790         PR tree-optimization/70602
7791         * tree-sra.c (generate_subtree_copies): Don't write anything into
7792         constant pool decls.
7794         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
7795         regardless whether there are depend clauses or not.
7797 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7799         PR target/70381
7800         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
7801         target attribute and pragma from changing the -mfloat128
7802         and -mfloat128-hardware options.
7804         * doc/extend.texi (Additional Floating Types): Document PowerPC
7805         __float128 restrictions.
7807 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
7809         PR target/70133
7810         * config/aarch64/driver-aarch64.c
7811         (aarch64_get_extension_string_for_isa_flags): New.
7812         (arch_extension): Rename to...
7813         (aarch64_arch_extension): ...This.
7814         (ext_to_feat_string): Rename to...
7815         (aarch64_extensions): ...This.
7816         (aarch64_core_data): Keep track of architecture extension flags.
7817         (cpu_data): Rename to...
7818         (aarch64_cpu_data): ...This.
7819         (aarch64_arch_driver_info): Keep track of architecture extension
7820         flags.
7821         (get_arch_name_from_id): Rename to...
7822         (get_arch_from_id): ...This, change return type.
7823         (host_detect_local_cpu): Update and reformat for renames, handle
7824         extensions through common infrastructure.
7826 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
7828         PR target/70133
7829         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
7830         track of a canonical flag name.
7831         (all_extensions): Likewise.
7832         (arch_to_arch_name): Also track extension flags enabled by the arch.
7833         (all_architectures): Likewise.
7834         (aarch64_parse_extension): Move to here.
7835         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
7836         rework.
7837         (aarch64_rewrite_selected_cpu): Update for above change.
7838         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
7839         are handled, such that the single explicit value enabled by an
7840         extension is kept seperate from the implicit values it also enables.
7841         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
7842         to here.
7843         (aarch64_parse_extension): New.
7844         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
7845         here to config/aarch64/aarch64-protos.h.
7846         (aarch64_parse_extension): Move from here to
7847         common/config/aarch64/aarch64-common.c.
7848         (aarch64_option_print): Update.
7849         (aarch64_declare_function_name): Likewise.
7850         (aarch64_start_file): Likewise.
7851         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
7852         the canonical flag for extensions.
7853         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
7854         flags.
7856 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
7858         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
7859         AARCH64_FL_CRC.
7861 2016-04-09  Tom de Vries  <tom@codesourcery.com>
7863         PR tree-optimization/68953
7864         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
7865         first to last subscript.
7867 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
7869         PR tree-optimization/70586
7870         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
7871         for any calls.
7873 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
7875         PR lto/70289
7876         PR ipa/70348
7877         PR tree-optimization/70373
7878         PR middle-end/70533
7879         PR middle-end/70534
7880         PR middle-end/70535
7881         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
7882         clauses for acc parallel reductions as necessary.  Error on those
7883         that are private.
7884         * omp-low.c (scan_sharing_clauses): Don't install variables which
7885         are used in acc parallel reductions.
7886         (lower_rec_input_clauses): Remove dead code.
7887         (lower_oacc_reductions): Add support for reference reductions.
7888         (lower_reduction_clauses): Remove dead code.
7889         (lower_omp_target): Don't remap variables appearing in acc parallel
7890         reductions.
7891         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
7893 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
7895         PR middle-end/70593
7896         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
7897         with multiple SSA_NAME defs, force the outputs other than first
7898         to be live before calling live_track_process_def on each output.
7900         PR rtl-optimization/70574
7901         * fwprop.c (forward_propagate_and_simplify): Don't add
7902         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
7903         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
7904         paradoxical subregs within *loc.
7906 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
7908         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
7909         -ftree-parallelize-loops={0,1}.
7910         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
7911         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
7912         * config/ia64/hpux.h (LIB_SPEC): Likewise.
7913         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7914         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
7916 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
7918         PR sanitizer/70541
7919         * asan.c (instrument_derefs): If we get unknown location, extract it
7920         with EXPR_LOCATION.
7921         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
7923 2016-04-08  Tom de Vries  <tom@codesourcery.com>
7925         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
7926         implicit firstprivate clause.
7928 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7930         PR target/70566
7931         * config/arm/thumb2.md (tst + branch-> lsls + branch
7932         peephole below *orsi_not_shiftsi_si): Require that condition
7933         register is dead after the peephole.
7934         (second peephole after the above): Likewise.
7936 2016-04-08  Alan Modra  <amodra@gmail.com>
7938         PR target/70117
7939         * builtins.c (fold_builtin_classify): For IBM extended precision,
7940         look at just the high-order double to test for NaN.
7941         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
7942         test just the high double for Inf but both doubles for subnormal
7943         limit.
7945 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
7947         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
7948         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
7949         node->simdclone->mask_mode != VOIDmode masks.
7950         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
7951         earlier, use it instead of node->simdclone.
7952         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7953         Set clonei->mask_mode.
7955 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
7957         PR c/70436
7958         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
7959         Pass it through to cp_parser_already_scoped_statement.
7960         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
7961         it through to cp_parser_statement.
7962         (cp_parser_statement): Pass IF_P through to
7963         cp_parser_iteration_statement.
7964         (cp_parser_pragma): Adjust call to
7965         cp_parser_iteration_statement.
7967 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
7969         PR c/70436
7970         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
7971         resolve a future -Wparentheses warning.
7972         * omp-low.c (scan_sharing_clauses): Likewise.
7973         * tree-parloops.c (eliminate_local_variables): Likewise.
7975 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
7977         PR rtl-optimization/70398
7978         * lra-constraints.c (process_address_1): Check zero scale and code
7979         for reloading with zero scale.
7981 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
7983         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
7984         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
7986 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
7988         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7989         Add support for AVX512F clones, include them by default for
7990         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
7991         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
7992         up to 128.
7994         PR middle-end/70550
7995         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
7996         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
7997         firstprivate clauses.
7998         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
7999         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
8000         (lower_omp_target): Set TREE_NO_WARNING for
8001         non-addressable possibly uninitialized vars which are copied into
8002         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
8004 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
8006         * config/pa/predicates.md (integer_store_memory_operand): Accept
8007         REG+D operands with a large offset when reload_in_progress is true.
8008         (floating_point_store_memory_operand): Likewise.
8010 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
8012         PR c++/70336
8013         * match.pd (nested int casts): Limit to GIMPLE.
8015 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
8017         PR ipa/66223
8018         * ipa-devirt.c (maybe_record_node): Fix comment; use
8019         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
8021 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
8023         PR rtl-optimization/70542
8024         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
8025         if there are any uses other than insn or debug insns.
8027 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
8028             Jakub Jelinek  <jakub@redhat.com>
8030         PR tree-optimization/70509
8031         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
8032         Shift HOST_WIDE_INT_1U instead of 1.
8034 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
8036         PR tree-optimization/70509
8037         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
8038         of the vector base type for index.
8040 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
8042         PR target/70510
8043         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
8045 2016-04-05  Richard Biener  <rguenther@suse.de>
8047         PR tree-optimization/70526
8048         * tree-sra.c (build_ref_for_offset): Use prev_base to
8049         extract the alias pointer type.
8051 2016-04-05  Richard Biener  <rguenther@suse.de>
8053         * dse.c (struct store_info): Remove alias_set member.
8054         (struct read_info_type): Likewise.
8055         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
8056         spill_deleted, clear_alias_set_lookup): Remove.
8057         (get_group_info): Remove dead base == NULL_RTX case.
8058         (dse_step0): Remove initialization of removed variables.
8059         (delete_dead_store_insn): Reomve alias set dumping.
8060         (free_read_records): Remove alias_set handling.
8061         (canon_address): Remove alias_set_out parameter.
8062         (record_store): Remove spill_alias_set, it's always zero.
8063         (check_mem_read_rtx): Likewise.
8064         (dse_step2): Rename from ...
8065         (dse_step2_nospill): ... this.  Adjust.
8066         (scan_stores): Rename from ...
8067         (scan_stores_nospill): ... this.
8068         (scan_reads): Rename from ...
8069         (scan_reads_nospill): ... this.
8070         (scan_stores_spill, scan_reads_spill): Remove.
8071         (dse_step3_scan): Remove for_spills argument which is always false.
8072         (dse_step3): Likewise.
8073         (dse_step5): Rename from ...
8074         (dse_step5_nospill): ... this.  Remove alias_set handling.
8075         (rest_of_handle_dse): Adjust.
8077 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
8079         PR target/70525
8080         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
8081         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
8082         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
8083         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
8085 2016-04-05  Richard Biener  <rguenther@suse.de>
8087         PR middle-end/70499
8088         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
8089         non-register type temporaries into SSA.
8091 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
8093         PR ipa/66223
8094         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
8095         calls when sanitizing.
8096         (possible_polymorphic_call_target_p): Fix formatting.
8098 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8099             Jakub Jelinek <jakub@redhat.com>
8101         PR middle-end/70457
8102         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
8103         to ensure a call statement is compatible with a built-in's
8104         prototype.
8105         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
8106         Likewise.
8108 2016-04-04  Richard Biener  <rguenther@suse.de>
8110         PR rtl-optimization/70484
8111         * rtl.h (canon_output_dependence): Declare.
8112         * alias.c (canon_output_dependence): New function.
8113         * dse.c (record_store): Use canon_output_dependence rather
8114         than canon_true_dependence.
8116 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
8118         PR ipa/68881
8119         * cgraph.h (symtab_node::copy_visibility_from): New function.
8120         * symtab.c (symtab_node::copy_visibility_from): New function.
8121         * ipa-visibility.c (optimize_weakref): New function.
8122         (function_and_variable_visibility): Use it.
8124 2016-04-04  Martin Liska  <mliska@suse.cz>
8126         PR hsa/70402
8127         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
8128         value that is really in range handled by SBR instruction.
8129         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
8130         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
8131         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
8133 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
8135         PR target/70416
8136         PR target/67391
8137         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
8138         set, but not for SP_REG operands.
8140 2016-04-02  Martin Sebor  <msebor@redhat.com>
8142         PR c++/67376
8143         * fold-const.c (maybe_nonzero_address): New function.
8144         (fold_comparison): Call it.  Fold equality and relational
8145         expressions involving null pointers.
8146         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
8148 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
8150         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
8151         the "Y" constraint (scalar FP 0.0 immediate).
8153         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
8154         Add the "const_double" to the list of operand constraints.
8156 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
8158         PR rtl-optimization/70467
8159         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
8160         If low word of the last operand is 0, just emit addition/subtraction
8161         for the high word.
8163 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8165         PR target/70404
8166         * config/s390/s390.c (s390_expand_insv): Check for everything
8167         constant instead of just VOIDmode stuff.
8169 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8171         PR target/70496
8172         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
8174 2016-04-01  Nathan Sidwell  <nathan@acm.org>
8176         * tree.def (TRY_CATCH_EXPR): Correct documentation.
8178 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
8180         PR rtl-optimization/70461
8181         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
8182         is necessary.
8184 2016-03-31  Martin Liska  <mliska@suse.cz>
8186         PR hsa/70399
8187         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
8188         a tree value or an immediate integer value to a buffer
8189         that is eventually copied to a BRIG section.
8190         (emit_immediate_operand): Call the function here.
8191         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
8192         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
8193         of class' fields that are removed.
8194         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
8195         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
8196         m_brig_repr_size fields.
8198 2016-03-31  Martin Liska  <mliska@suse.cz>
8200         PR hsa/70391
8201         * hsa-gen.c (hsa_function_representation::update_dominance): New
8202         function.
8203         (convert_addr_to_flat_segment): Likewise.
8204         (gen_hsa_memory_set): New alignment argument.
8205         (gen_hsa_ctor_assignment): Likewise.
8206         (gen_hsa_insns_for_single_assignment): Provide alignment
8207         to gen_hsa_ctor_assignment.
8208         (gen_hsa_insns_for_direct_call): Add new argument.
8209         (expand_lhs_of_string_op): New function.
8210         (expand_string_operation_builtin): Likewise.
8211         (expand_memory_copy): New function.
8212         (expand_memory_set): New function.
8213         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
8214         (convert_switch_statements): Change signature.
8215         (generate_hsa): Use a return value of the function.
8216         (pass_gen_hsail::execute): Do not call
8217         convert_switch_statements here.
8218         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
8219         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
8220         (hsa_function_representation::update_dominance): New function.
8222 2016-03-31  Martin Liska  <mliska@suse.cz>
8224         PR hsa/70391
8225         * hsa-brig.c (emit_directive_variable): Emit alignment
8226         according to hsa_symbol::m_align.
8227         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
8228         (dump_hsa_symbol): Dump alignment of HSA symbols.
8229         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
8230         (gen_hsa_addr_with_align): New function.
8231         (hsa_bitmemref_alignment): Use newly added function.
8232         (gen_hsa_insns_for_load): Likewise.
8233         (gen_hsa_insns_for_store): Likewise.
8234         (gen_hsa_memory_copy): New argument added.
8235         (gen_hsa_insns_for_single_assignment): Respect
8236         alignment for assignments processed via gen_hsa_memory_copy.
8237         (gen_hsa_insns_for_direct_call): Likewise.
8238         (gen_hsa_insns_for_return): Likewise.
8239         (gen_function_def_parameters): Set default alignment.
8240         * hsa.c (hsa_object_alignment): New function.
8241         (hsa_byte_alignment): Pasted function.
8242         * hsa.h (hsa_symbol::m_align): New field.
8244 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
8246         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
8247         scratch field for goto case.
8249 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
8251         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
8253 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
8255         PR target/70442
8256         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
8257         (scalar_chain::convert_insn): Call convert_op for reg
8258         moves to handle undefined registers.
8260 2016-03-31  Nathan Sidwell  <nathan@acm.org>
8262         PR c++/70393
8263         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
8264         Assert we don't want to move backwards.
8266 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
8268         PR target/70453
8269         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
8271 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
8273         PR rtl-optimization/70460
8274         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
8275         with operand from REG_LABEL_OPERAND, instead substitute
8276         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
8277         Don't do anything for REG_NON_LOCAL_GOTO jumps.
8279 2016-03-31  Martin Liska  <mliska@suse.cz>
8281         * passes.c (execute_one_pass): Do not call
8282         todo_after for a discarded function.
8284 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
8286         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
8287         (no_cost, infinite_cost): Initialize the new field.
8288         (get_computation_cost_at): Record setup cost.
8289         (determine_use_iv_cost_address): Skip cost computation for sub
8290         uses if we can estimate it without losing accuracy.
8292 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
8294         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
8295         estimates here.
8296         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8297         max_loop_iterations_int.
8298         (tree_unswitch_outer_loop): Likewise.
8299         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
8300         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8302 2016-03-30  Richard Biener  <rguenther@suse.de>
8304         PR middle-end/70450
8305         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
8307 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
8309         PR target/70421
8310         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
8311         in gen_blendm expander.
8313 2016-03-30  Nick Clifton  <nickc@redhat.com>
8315         PR target/62254
8316         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
8317         case where we are already provided with an SImode SUBREG.
8319 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
8321         PR target/70439
8322         * config/i386/i386.c (ix86_expand_epilogue): Properly check
8323         conflict between DRAP register and __builtin_eh_return.
8325 2016-03-30  Michael Matz  <matz@suse.de>
8326             Richard Biener  <rguenther@suse.de>
8328         PR ipa/12392
8329         * ipa-polymorphic-call.c (struct type_change_info): Change
8330         speculative to an unsigned allowing to limit the work we do.
8331         (csftc_abort_walking_p): New inline function..
8332         (check_stmt_for_type_change): Limit the number of may-defs
8333         skipped for speculative devirtualization to
8334         max-speculative-devirt-maydefs.
8335         * params.def (max-speculative-devirt-maydefs): New param.
8336         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
8338 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
8340         PR target/63890
8341         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
8342         and TARGET_MACHO.
8344 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
8346         PR tree-optimization/59124
8347         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
8348         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
8350 2016-03-29  Jeff Law  <law@redhat.com>
8352         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
8354 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
8356         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
8357         to HOST_WIDE_INT.
8359 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
8361         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
8362         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
8363         gcrt0.o if linking dynamically.
8365 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
8367         PR ipa/70283
8368         * ipa-devirt.c (methods_equal_p): New function.
8369         (compare_virtual_tables): Use it.
8370         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
8371         * cgraphclones.c (clone_function_name_1): Use
8372         symbol_table::symbol_suffix_separator.
8373         * coverage.c (build_var): Likewise.
8374         * symtab.c (symbol_table::symbol_suffix_separator): New.
8376 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
8378         PR rtl-optimization/70429
8379         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
8380         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
8381         mode != result_mode.
8383         PR c++/70353
8384         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
8386         PR tree-optimization/70405
8387         * ssa-iterators.h (num_imm_uses): Add missing braces.
8389 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8391         PR rtl-optimization/68695
8392         * ira-color.c (allocno_copy_cost_saving): New.
8393         (improve_allocation): Use it.
8395 2016-03-29  Richard Henderson  <rth@redhat.com>
8397         PR middle-end/70355
8398         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
8400 2016-03-29  Richard Biener  <rguenther@suse.de>
8402         PR middle-end/70424
8403         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
8404         use alignment returned by get_pointer_alignment_1 if it is
8405         bigger than BITS_PER_UNIT.
8406         * builtins.c (get_pointer_alignment_1): Do not return true
8407         for alignment extracted from SSA info.
8409 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
8411         * config/ft32/ft32.opt (mnodiv): New.
8412         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
8413         * doc/invoke.texi (FT32 Options -mnodiv): New.
8415 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
8417         PR target/70406
8418         * config/i386/i386.md (define_split, andn): Fix modes.
8420 2016-03-26  Richard Biener  <rguenther@suse.de>
8421             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8423         PR ipa/70366
8424         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
8425         instead of
8426         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
8427         as 2nd argument to cl_optimization_restore().
8429 2016-03-25  Richard Henderson  <rth@redhat.com>
8431         PR target/70120
8432         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
8433         * config/aarch64/aarch64-protos.h: Declare it.
8434         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
8436 2016-03-25  Alan Modra  <amodra@gmail.com>
8438         PR target/70052
8439         * config/rs6000/constraints.md (j): Simplify.
8440         * config/rs6000/predicates.md (easy_fp_constant): Exclude
8441         decimal float 0.D.
8442         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
8443         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
8444          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
8445         in all constraint alternatives.
8446         (movtd_64bit_nodm): Delete "j" constraint alternative.
8448 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
8450         * tree-ssa-propagate.c: Enhance docs for
8451         SSA_PROP_NOT_INTERESTING.
8453 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
8455         * doc/extend.texi: Fix typo in documentation to pure attribute.
8457 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
8459         PR target/70319
8460         * config/pa/pa.md (bswapdi2): Use a scratch register.
8462 2016-03-24  Richard Henderson  <rth@redhat.com>
8464         PR middle-end/69845
8465         * fold-const.c (extract_muldiv_1): Correct test for multiplication
8466         overflow.
8468 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
8470         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
8471         using ix86_expand_binary_operator instead of gen_andsi3.
8473 2016-03-24  Richard Biener  <rguenther@suse.de>
8475         PR tree-optimization/70396
8476         * tree-vect-stmts.c (vectorizable_comparison): Use
8477         get_vectype_for_scalar_type.
8479 2016-03-24  Richard Biener  <rguenther@suse.de>
8481         PR middle-end/70370
8482         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
8483         with register bases.
8485 2016-03-24  Richard Biener  <rguenther@suse.de>
8487         PR tree-optimization/70372
8488         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
8489         build_all_ones_cst to also handle vector types correctly.
8491 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
8493         PR target/70381
8494         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
8495         -mfloat128 here.
8497 2016-03-23  Marek Polacek  <polacek@redhat.com>
8499         PR c++/69884
8500         * doc/invoke.texi: Document -Wignored-attributes.
8502 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
8504         PR tree-optimization/69042
8505         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
8506         parameter from 30 to 40.
8508 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
8510         PR tree-optimization/69042
8511         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
8512         for use with constant offset stripped in base.
8514 2016-03-23  Richard Biener  <rguenther@suse.de>
8516         PR middle-end/70251
8517         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
8518         mode compatibility check.
8519         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
8521 2016-03-23  Jeff Law  <law@redhat.com>
8523         PR tree-optimization/64058
8524         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
8525         CONFLICT_COUNT.
8526         (struct ssa_conflicts): Move up earlier in the file.
8527         (conflicts_, var_map_): New static variables.
8528         (initialize_conflict_count): New function to initialize the
8529         CONFLICT_COUNT field for each conflict pair.
8530         (compare_pairs): Lazily initialize the conflict count and use it
8531         as the first tie-breaker.
8532         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
8533         and wipe conflicts_ and map_ around the call to qsort.  Remove
8534         special case for 2 coalesce pairs.
8535         * bitmap.c (bitmap_count_unique_bits): New function.
8536         (bitmap_count_bits_in_word): New function, extracted from
8537         bitmap_count_bits.
8538         (bitmap_count_bits): Use bitmap_count_bits_in_word.
8539         * bitmap.h (bitmap_count_unique_bits): Declare it.
8541 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
8543         PR target/69917
8544         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
8545         transparent alias chain for decl assembler name.
8546         * config/sol2.c (solaris_assemble_visibility): Likewise.
8548 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8550         * config/arm/arm1020e.md (1020call_op): Reduce reservation
8551         duration.
8552         (v10_fdivs): Likewise.
8553         (v10_fdivd): Likewise.
8555 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8557         PR driver/70132
8558         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
8559         to not call fclose twice on file.
8561 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
8563         PR tree-optimization/70354
8564         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
8565         oprnd0 is wider than oprnd1 and there is a cast from the wider
8566         type to oprnd1, mask it with the mask of the narrower type.
8568         PR target/70321
8569         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
8570         Optimize TARGET_STV splitters, if high or low word of last argument
8571         is 0 or -1.
8573 2016-03-22  Jeff Law  <law@redhat.com>
8575         PR target/70232
8576         tree-ssa-threadbackward.c
8577         (fsm_find_control_statement_thread_paths): Correctly distinguish
8578         between old style jump threads vs FSM jump threads.
8580 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
8582         PR target/70302
8583         * config/i386/i386.c (scalar_chain::convert_op): Support
8584         uninitialized register usage case.
8586 2016-03-22  Richard Biener  <rguenther@suse.de>
8588         PR middle-end/70251
8589         * genmatch.c (gen_transform): Adjust last parameter to a three-state
8590         int...
8591         (capture::gen_transform): ... to change behavior when substituting
8592         a condition into cond or not-cond expr context.
8593         (dt_simplify::gen_1): Adjust.
8594         * gimple-match-head.c: Include gimplify.h for unshare_expr.
8595         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
8596         last change and instead change to
8597         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
8598         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
8600 2016-03-22  Anthony Green  <green@moxielogic.com>
8602         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
8603         issue for moxiebox targets.
8604         (CC1PLUS_SPEC): Ditto.
8606 2016-03-22  Richard Biener  <rguenther@suse.de>
8608         PR middle-end/70333
8609         * fold-const.c (extract_muldiv_1): Properly perform multiplication
8610         in the wide type.
8612 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8614         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
8616 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
8618         PR target/70325
8619         * config/i386/i386.c (def_builtin): Handle
8620         OPTION_MASK_ISA_AVX512VL to be and-ed with other
8621         bits.
8622         (const struct builtin_description bdesc_special_args[]):
8623         Remove duplicate ISA bits.
8625 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
8627         PR target/70329
8628         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
8629         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
8630         in a way that works also for AVX512BW.
8632         PR target/70300
8633         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
8634         instead of source if operands[1] is xmm16 and above and
8635         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
8636         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
8638         PR c++/70295
8639         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
8640         on assign if (*from_p) is a comparison, set it to
8641         TREE_NO_WARNING (*from_p).
8643 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
8645         PR middle-end/70326
8646         * lra.c (restore_scratches): Ignore deleted insns.
8648 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
8649             Jakub Jelinek  <jakub@redhat.com>
8651         PR tree-optimization/70317
8652         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
8653         to HONOR_NANS.
8655 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
8657         PR target/70327
8658         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
8659         of ix86_expand_move.
8660         (movoi): Ditto.
8661         (movti): Use general_operand for operand 1 predicate.
8663 2016-03-21  Martin Liska  <mliska@suse.cz>
8665         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
8666         insns.
8667         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
8669 2016-03-21  Martin Liska  <mliska@suse.cz>
8671         PR ipa/70306
8672         * ipa-icf.c (sem_function::parse): Skip static
8673         constructors and destructors.
8675 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
8677         PR target/70296
8678         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
8679         function-like macro, peek following token(s) if it is followed
8680         by CPP_OPEN_PAREN token with optional padding in between, and
8681         if not, don't treat it like a macro.
8683 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8684             Alexander Monakov  <amonakov@ispras.ru>
8686         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
8687         for the stabs debug format.
8689 2016-03-21  Richard Biener  <rguenther@suse.de>
8691         PR tree-optimization/70310
8692         * tree-vect-generic.c (expand_vector_condition): Fold the built
8693         condition.
8695 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
8697         PR target/70293
8698         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
8699         Block third alternative for AVX-512VL target,
8701 2016-03-21  Martin Liska  <mliska@suse.cz>
8703         PR hsa/70234
8704         * hsa-brig.c (emit_function_directives): Mark unemitted
8705         global variables for emission.
8706         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
8707         (get_symbol_for_decl): Likewise.
8708         * hsa.h (struct hsa_symbol): New flag.
8710 2016-03-21  Richard Biener  <rguenther@suse.de>
8712         PR tree-optimization/70288
8713         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
8714         we do not estimate unsimplified all-constant conditionals or
8715         switches as optimized away.
8717 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
8719         PR rtl-optimization/69102
8720         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
8721         when we have a readonly dependency context.
8723 2016-03-18  Jeff Law  <law@redhat.com>
8725         PR rtl-optimization/70263
8726         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
8727         (update_equiv_regs): When trying to move a store to after the insn
8728         that sets the source of the store, make sure the store occurs after
8729         the insn that sets the source of the store.  When successful note
8730         the REG_EQUIV note created in the dump file.
8732 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
8733             Bernd Schmidt  <bschmidt@redhat.com>
8735         * doc/extend.texi: Document more potential problems with basic asms.
8737 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
8739         PR rtl-optimization/70278
8740         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
8741         VOIDmode.
8743 2016-03-18  Jason Merrill  <jason@redhat.com>
8745         * calls.c (load_register_parameters): Fix zero size sibcall logic.
8747 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
8749         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
8750         values to 128b regs.
8752 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
8754         PR tree-optimization/70252
8755         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
8756         boolean vector has a proper number of elements.
8757         (supportable_narrowing_operation): Likewise.
8759 2016-03-18  Tom de Vries  <tom@codesourcery.com>
8761         PR ipa/70269
8762         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
8764 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
8766         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
8767         instead of replace_rtx for DEBUG_INSNs.
8769 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8771         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
8772         load type reservations.
8774 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
8776         PR target/70188
8777         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
8778         define_constraint for "Q" and "T" constraints.
8780 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
8782         Tweak the pipeline model for Exynos M1
8784         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
8785         model.
8787 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
8789         PR c/70264
8790         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
8791         where one or both locations aren't within a line_map.
8793 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8795         PR driver/70192
8796         * opts.c (finish_options): Don't set flag_pie to the default if
8797         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
8798         if it is -1.
8800 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
8802         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
8803         true as ALL_REGS argument to replace_rtx.
8805 2016-03-17  Richard Biener  <rguenther@suse.de>
8807         PR debug/70271
8808         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
8809         last.
8811 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
8813         PR target/70245
8814         * rtl.h (replace_rtx): Add ALL_REGS argument.
8815         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
8816         equality and assert mode is the same, instead of just rtx pointer
8817         equality.
8818         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
8819         true as ALL_REGS argument to replace_rtx.
8821 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
8823         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
8824         for boolean vector with vector mode only.
8825         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
8827 2016-03-17  Nick Clifton  <nickc@redhat.com>
8829         PR target/70162
8830         * config/rx/rx.c (rx_print_integer): Print negative constants in
8831         decimal.
8833 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
8835         PR target/70261
8836         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
8838 2016-03-16  Richard Henderson  <rth@redhat.com>
8839             Richard Biener  <rguenth@suse.de>
8841         PR middle-end/70240
8842         PR middle-end/68215
8843         PR tree-opt/68714
8844         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
8845         first operand as is_gimple_condexpr.
8847         PR middle-end/70240
8848         PR middle-end/68215
8849         Revert r231575
8850         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
8851         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
8852         Do not gimplify the result.
8853         (do_unop): Adjust call to tree_vec_extract.
8854         (do_binop): Likewise.
8855         (do_compare): Likewise.
8856         (do_plus_minus): Likewise.
8857         (do_negate): Likewise.
8858         (expand_vector_condition): Likewise.
8859         (do_cond): Likewise.
8861 2016-03-16  Richard Henderson  <rth@redhat.com>
8863         PR target/70048
8864         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
8865         (aarch64_classify_address): Use it.
8866         (aarch64_legitimize_address): Force all subexpressions of PLUS
8867         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
8869 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
8870             Richard Biener  <rguenth@suse.de>
8872         PR target/70245
8873         * rtlanal.c (replace_rtx): For REG, if from is a REG,
8874         return to even if only REGNO is equal, and assert
8875         mode is the same.
8877 2016-03-11  Jeff Law  <law@redhat.com>
8879         PR rtl-optimization/70224
8880         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
8882 2016-03-16  Richard Henderson  <rth@redhat.com>
8884         PR middle-end/70199
8885         * function.h (struct function): Add has_forced_label_in_static.
8886         * gimplify.c (force_labels_r): Set it.
8887         * lto-streamer-in.c (input_struct_function_base): Read it.
8888         * lto-streamer-out.c (output_struct_function_base): Write it.
8889         * tree-inline.c (has_label_address_in_static_1): Remove.
8890         (copy_forbidden): Remove fndecl parameter; test
8891         has_forced_label_in_static.
8892         (inline_forbidden_p): Update call to copy_forbidden.
8893         (tree_versionable_function_p): Likewise.
8894         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
8895         (chkp_versioning): Likewise.
8896         * tree-inline.h (copy_forbidden): Update decl.
8898 2016-03-16  Marek Polacek  <polacek@redhat.com>
8900         PR c/70093
8901         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
8902         function being thunked if the result type doesn't have fixed size.
8903         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
8904         doesn't have fixed size.
8906 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
8908         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
8909         reporting malformed loop nest.
8911 2016-03-16  Tom de Vries  <tom@codesourcery.com>
8913         PR lto/70187
8914         * ipa-devirt.c (possible_polymorphic_call_targets): Move
8915         nodes.length () == 1 test to before first nodes[0] access.
8917 2016-03-16  Tom de Vries  <tom@codesourcery.com>
8919         PR tree-optimization/68715
8920         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
8921         single_pred_p test.
8923 2016-03-16  Tom de Vries  <tom@codesourcery.com>
8925         PR tree-optimization/68809
8926         * graphite-scop-detection.c (same_close_phi_node): Test if result types
8927         are the same.
8929 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
8930             Sandra Loosemore  <sandra@codesourcery.com>
8932         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
8933         on leaf attribute. Mention ELF interposition problems.
8935 2016-03-16  Alan Modra  <amodra@gmail.com>
8937         PR rtl-optimization/69195
8938         PR rtl-optimization/47992
8939         * ira.c (indirect_jump_optimize): Ignore artificial defs.
8940         Add comments.
8942 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
8944         PR bootstrap/69513
8945         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
8947 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8949         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
8951 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
8953         PR rtl-optimization/70222
8954         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
8955         optimization if mode is different from result_mode, queue up masking
8956         of the result in outer_op.  Formatting fix.
8958         PR middle-end/70239
8959         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
8960         of safe_grow.
8962 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
8964         PR rtl-optimization/69032
8965         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
8966         looping backwards over basic block insns.
8968 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
8970         PR target/66660
8971         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
8972         to non-speculative when propagating trap bits.
8974 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
8976         PR rtl-optimization/63384
8977         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
8978         DEBUG_INSN_P insns.
8980 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
8982         PR target/64411
8983         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
8984         factored out from ...
8985         (sched_analyze_insn): ... here.
8986         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
8987         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
8988         get_implicit_reg_pending_clobbers in it.
8989         (setup_id_reg_sets): Use setup_id_implicit_regs.
8990         (deps_init_id): Ditto.
8992 2016-03-15  Tom de Vries  <tom@codesourcery.com>
8994         PR ipa/70161
8995         * cgraph.c (cgraph_node::get_body): Save, reset and restore
8996         dump_file_name.
8997         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
8998         execute_function_dump.
8999         (execute_one_pass): Don't dump function if it will be dumped after ipa
9000         transform.
9002 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
9004         * genrecog.c (match_pattern_2): If pred is NULL don't call
9005         safe_predicate_mode on it.
9007 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
9009         PR middle-end/70219
9010         * lra-constraints.c (delete_move_and_clobber): Change assertion
9011         to also allow dregno == 0.
9013 2016-03-14  Richard Henderson  <rth@redhat.com>
9015         PR tree-opt/68714
9016         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
9017         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
9018         (reassociate_bb): Use optimize_vec_cond_expr; avoid
9019         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
9020         on vectors.
9022 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
9024         PR target/70083
9025         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
9026         regs.
9027         (lra_create_live_ranges_1): initialize hard register biggest_mode to
9028         VOIDmode.
9029         * lra-constraints.c (split_reg): For hard regs, try to find the
9030         biggest single-register mode used in the function.
9032 2016-03-14  Richard Biener  <rguenther@suse.de>
9034         PR tree-optimization/56365
9035         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
9036         constants to compare against.
9038 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
9040         PR target/70098
9041         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9042         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
9043         (define_split for the GPR case): Use int_reg_operand instead of
9044         gpc_reg_operand for the output.
9046 2016-03-14  Tom de Vries  <tom@codesourcery.com>
9048         PR tree-optimization/70045
9049         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
9050         create_empty_if_region_on_edge argument.
9052 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
9054         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
9055         (STACK_CHECK_PROTECT): Likewise.
9056         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
9057         (STACK_CHECK_PROTECT): Likewise.
9058         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
9059         (STACK_CHECK_PROTECT): Likewise.
9060         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
9061         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9062         (STACK_CHECK_PROTECT): Likewise.
9064 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
9066         PR rtl-optimization/69307
9067         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
9068         registers in modes that span more than one register.
9070 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
9072         PR target/69614
9073         * lra-constraints.c (delete_move_and_clobber): New.
9074         (remove_inheritance_pseudos): Use it.
9076 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
9078         PR ada/70017
9079         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
9080         the libcall is LCT_THROW.
9081         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
9082         for the checking routine.
9084 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9086         PR target/70131
9087         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
9088         optimization if we have direct move.
9089         (roundu32<mode>2_fprs): Likewise.
9091 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
9093         PR target/70123
9094         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
9095         be rematerialized.
9096         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
9097         Arguments swapped.  All callers changed.  Take reg_renumber into
9098         account, and Calculate and compare register ranges for hard regs.
9100 2016-03-11  Jeff Law  <law@redhat.com>
9102         PR tree-optimization/70190
9103         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9104         Handle cases where we can not extract the taken edge, even though we
9105         found a constant value.
9107         PR tree-optimization/64058
9108         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
9109         (num_coalesce_pairs): Move up earlier in file.
9110         (find_coalesce_pair): Initialize the INDEX field for each pair
9111         discovered.
9112         (compare_pairs): No longer sort on the elements in each pair.
9113         Instead break ties with the index of the coalesce pair.
9115 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9117         PR target/70002
9118         * config/aarch64/aarch64-protos.h
9119         (aarch64_save_restore_target_globals): New prototype.
9120         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
9121         Call the above when popping pragma.
9122         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
9123         New function.
9124         (aarch64_set_current_function): Rewrite using the above.
9126 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
9128         PR tree-optimization/70177
9129         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
9130         (extract_ops_from_tree): ... this.  In the 2 argument
9131         overload remove _1 suffix.
9132         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
9133         (extract_ops_from_tree): ... this.
9134         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
9135         Adjust callers.
9136         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
9137         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
9138         extract_ops_from_tree instead of 2 operand one.
9140 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
9142         PR tree-optimization/70013
9143         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
9144         for constant-pool entries.
9146 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
9148         PR rtl-optimization/70174
9149         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
9150         followed by gen_lowpart on force_reg instead of just gen_lowpart.
9152         PR tree-optimization/70169
9153         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
9154         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
9155         for unknown codes.
9157 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
9158             Jakub Jelinek  <jakub@redhat.com>
9160         PR target/70160
9161         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
9162         of uninitialized values.
9164 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9166         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
9167         define_expand.
9168         ("*trunctddd2"): New pattern definition.
9169         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
9170         TD->DD truncation.
9172 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9174         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
9175         definitions for BFP and DFP rounding modes.
9176         ("fixuns_truncdddi2", "fixuns_trunctddi2")
9177         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
9178         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
9179         ("fix_trunctf<mode>2"): Use the new constants instead of magic
9180         numbers.
9182 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9184         * config/s390/constraints.md: Adjust comment.
9185         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
9186         s390_decompose_addrstyle_without_index.
9187         * config/s390/predicates.md (shift_count_or_setmem_operand):
9188         Rename to setmem_operand.
9189         * config/s390/s390-protos.h
9190         (s390_decompose_shift_count): Rename to
9191         s390_decompose_addrstyle_without_index.
9192         * config/s390/s390.c (s390_decompose_shift_count)
9193         (s390_mem_constraint, print_shift_count_operand)
9194         (print_operand_address, print_operand): Rename
9195         s390_decompose_shift_count to
9196         s390_decompose_addrstyle_without_index and rename
9197         print_shift_count_operand to print_addrstyle_operand troughout the
9198         file.
9199         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
9200         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
9201         Rename shift_count_or_setmem_operand to setmem_operand.
9202         * config/s390/vx-builtins.md ("vec_insert<mode>")
9203         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
9204         nonmemory_operand.
9206 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9208         PR target/70168
9209         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
9210         Handle overlapping retval and newval.
9212 2016-03-10  Nick Clifton  <nickc@redhat.com>
9214         PR target/7044
9215         * config/aarch64/aarch64.c
9216         (aarch64_override_options_after_change_1): When forcing
9217         flag_omit_frame_pointer to be true, use a special value that can
9218         be detected if this function is called again, thus preventing
9219         flag_omit_leaf_frame_pointer from being forced to be false.
9221 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9223         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9224         Set x_flag_omit_leaf_frame_pointer when handling
9225         -momit-leaf-frame-pointer.
9227 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9229         PR lto/69589
9230         * cgraph.c (cgraph_node::dump): Dump split_part and
9231         indirect_call_target.
9232         * cgraph.h (cgraph_node): Add indirect_call_target flag.
9233         * ipa.c (has_addr_references_p): Cleanup.
9234         (is_indirect_call_target_p): New.
9235         (walk_polymorphic_call_targets): Do not mark virtuals that may be
9236         called indirectly as local.
9237         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
9239 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9241         PR ipa/69630
9242         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
9243         on cxa_pure_virtual.
9245 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9247         PR lto/69589
9248         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
9250 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9252         PR lto/69589
9253         * tree.c (need_assembler_name_p): Only record main variant type names.
9255 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
9257         PR target/70113.
9258         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
9259         Always define to 0 or 1.
9260         (TARGET_FIX_ERR_A53_843419): New macro.
9261         * config/aarch64/aarch64-elf-raw.h
9262         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
9263         * config/aarch64/aarch64-linux.h: Likewise.
9264         * config/aarch64/aarch64.c
9265         (aarch64_override_options_after_change_1): Do not default
9266         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
9267         843419 is on.
9268         (aarch64_attributes): Handle fix-cortex-a53-843419.
9269         (aarch64_can_inline_p): Likewise.
9270         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
9272 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
9273         Jakub Jelinek <jakub@redhat.com>
9275         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
9276         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
9277         DECL_COMMONS if flag_unconstrained_commons is set.
9278         * tree-dfa.c (get_ref_base_and_extent): Likewise.
9279         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
9280         (funconstrained-commons): Document.
9282 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
9284         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
9285         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
9287 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
9289         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
9290         has a proper number of elements.
9292 2016-03-10  Alan Modra  <amodra@gmail.com>
9294         PR rtl-optimization/69195
9295         PR rtl-optimization/47992
9296         * ira.c (recorded_label_ref): Delete.
9297         (update_equiv_regs): Return void.
9298         (indirect_jump_optimize): New function.
9299         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
9300         before regstat_compute_ri.  Don't rebuild_jump_labels here.
9301         Delete update_regstat.
9303 2016-03-10  Richard Biener  <rguenther@suse.de>
9305         PR tree-optimization/70128
9306         * tree-ssa-structalias.c (set_uids_in_ptset): Set
9307         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
9309 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
9311         PR tree-optimization/70152
9312         * tree-sra.c (replace_removed_params_ssa_names): Copy over
9313         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
9315         PR target/70086
9316         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
9317         instead of gen_sse2_loadlpd.
9318         * config/i386/sse.md (*vec_concatv2df): Rename to...
9319         (vec_concatv2df): ... this.
9321         PR tree-optimization/70127
9322         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
9324 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
9326         PR c/68473
9327         PR c++/70105
9328         * diagnostic-show-locus.c (compatible_locations_p): New function.
9329         (layout::layout): Sanitize ranges using compatible_locations_p.
9331 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
9333         PR c/68473
9334         PR c++/70105
9335         * diagnostic-show-locus.c (layout_range::layout_range): Replace
9336         location_range param with three const expanded_locations * and a
9337         bool.
9338         (layout::layout): Replace call to
9339         rich_location::lazily_expand_location with get_expanded_location.
9340         Extract the range and perform location expansion here, passing
9341         the results to the layout_range ctor.
9342         * diagnostic.c (source_range::debug): Delete.
9343         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
9344         of rich_location::get_expanded_location.
9345         * gcc-rich-location.c (get_range_for_expr): Delete.
9346         (gcc_rich_location::add_expr): Reimplement to avoid the
9347         rich_location::add_range overload that took a location_range,
9348         passing a location_t instead.
9350 2016-03-09  Richard Biener  <rguenther@suse.de>
9351         Jakub Jelinek  <jakub@redhat.com>
9353         PR tree-optimization/70138
9354         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
9355         Also skip vect_double_reduction_def.
9357 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
9359         PR target/70049
9360         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
9361         if the operand is "m".
9363 2016-03-09  Nathan Sidwell  <nathan@acm.org>
9365         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
9367 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9369         * config/i386/i386.c (processor_target_table): Fix cost table
9370         intialization order for znver1.
9372 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
9374         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
9375         - becuase -> because.
9376         * ipa-reference.c (ignore_module_statics): Likewise.
9377         * cgraph.c (cgraph_node::get_body): Likewise.
9378         * ipa-inline.c (early_inliner): Likewise.
9379         * ipa-devirt.c (types_same_for_odr): Likewise.
9380         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
9381         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
9383 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9385         * tree-ssa-math-opts.c: Fix typo in comment.
9387 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
9389         PR target/70110
9390         * config/i386/i386.c (scalar_chain::make_vector_copies,
9391         scalar_chain::convert_reg): Call end_sequence in between
9392         get_insns and emit_conversion_insns rather than after both
9393         calls.
9395 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
9397         PR target/70064
9398         * config/i386/i386.h (machine_function): Add
9399         pc_thunk_call_expanded flag.
9400         (ix86_pc_thunk_call_expanded): New define.
9401         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
9402         (*set_got): Rename insn pattern from set_got.
9403         (*set_got_labelled): Rename inst pattern from set_got_labelled.
9404         * config/i386/i386.c (ix86_compute_frame_layout): Use
9405         ix86_pc_thunk_call_expanded to prevent red-zone.
9407 2016-03-07  Martin Jambor  <mjambor@suse.cz>
9409         * hsa.h (hsa_get_ctor_statements): Declare.
9410         (hsa_get_dtor_statements): Likewise.
9411         (hsa_get_kernel_dispatch_type): Likewise.
9412         * hsa.c (hsa_get_ctor_statements): New function.
9413         (hsa_get_dtor_statements): Likewise.
9414         (hsa_get_kernel_dispatch_type): Likewise.
9415         * hsa-brig.c (hsa_cdtor_statements): Removed.
9416         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
9417         hsa_get_dtor_statements.
9418         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
9419         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
9421 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9423         * config/arm/arm-cores.def (cortex-r8): New.
9424         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
9425         * config/arm/arm-tune.md: Likewise.
9426         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
9428 2016-03-07  Martin Sebor  <msebor@redhat.com>
9430         PR rtl-optimization/19705
9431         * doc/invoke.texi (Options That Control Optimization): Clarify
9432         -fno-branch-count-reg.
9434 2016-02-26  Richard Biener  <rguenther@suse.de>
9435             Jeff Law  <law@redhat.com>
9437         PR tree-optimization/69740
9438         * cfghooks.c (remove_edge): Request loop fixups if we delete
9439         an edge that might turn an irreducible loop into a natural
9440         loop.
9441         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
9442         Move after definition of loops_state_clear.
9444 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
9446         PR rtl-optimization/69052
9447         * rtlanal.c (commutative_operand_precedence): Set higher precedence
9448         to CONST_WIDE_INT.
9450 2016-03-07  Tom de Vries  <tom@codesourcery.com>
9452         PR tree-optimization/70116
9453         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
9454         is_tm_ending stmts and ubsan/asan internal functions.
9455         (find_duplicate): Use it.  Don't test is_tm_ending here.
9457 2016-03-07  Richard Biener  <rguenther@suse.de>
9459         PR tree-optimization/70115
9460         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
9461         (propagate_constants_for_unrolling): Use replace_uses_by.
9463 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
9465         PR middle-end/69916
9466         * omp-low.c (struct oacc_loop): Add ifns.
9467         (new_oacc_loop_raw): Initialize it.
9468         (finish_oacc_loop): Clear mask & flags if no ifns.
9469         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
9470         (oacc_loop_xform_loop): Add ifns arg & adjust.
9471         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
9473 2016-03-07  Richard Henderson  <rth@redhat.com>
9475         PR rtl-opt/70061
9476         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
9477         (insert_value_copy_on_edge): Likewise.
9479 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9481         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
9483 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9485         PR target/62281
9486         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
9488 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
9490         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
9492 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
9494         Fix sseimul type attribute.
9495         * config/i386/znver1.md
9496         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
9497         znver1_sseimul_avx256_load) : Fix the type attribute.
9498         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
9499         pipe usage and latency.
9501 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
9503         PR c++/70084
9504         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
9505         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
9506         to the right type.
9508 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
9510         PR c/69973
9511         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
9513         PR rtl-optimization/69941
9514         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
9515         the reg share its mode.
9517 2016-03-04  Jeff Law  <law@redhat.com>
9519         PR tree-optimization/69196
9520         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9521         If the both SSA_NAMEs are anonymous, then consider them unassociated
9522         and include the PHI in the statement count.
9524 2016-03-05  Tom de Vries  <tom@codesourcery.com>
9526         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
9527         construct in oacc routine.  Check for oacc region in oacc routine.
9529 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
9531         PR target/70062
9532         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
9533         2016-02-22 changes, instead don't recurse if RECUR is already true.
9534         Don't change *dynamic_check if RECUR.  Adjust recursive caller
9535         to pass true to the new argument.
9536         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
9538         PR target/70059
9539         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
9540         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
9541         fixes.
9542         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
9544 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
9546         PR rtl-optimization/57676
9547         * lra-assigns.c (lra_assign): Guard test for maximum iterations
9548         with flag_checking.
9550 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
9552         * tree-vect-patterns.c (search_type_for_mask): Handle
9553         comparison of booleans.
9555 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
9557         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
9558         Fix @xref usage.
9560         PR debug/69947
9561         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
9562         all other ops that have dw_val_class_die_ref operands,
9563         and DW_OP_GNU_entry_value.
9565 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9567         PR rtl-optimization/69904
9568         * config/arm/arm.c (arm_cannot_copy_insn_p):
9569         Return true for load-exclusive instructions.
9571 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
9573         PR target/70021
9574         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
9575         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
9576         the pattern no matter if it is used just by non-pattern, pattern
9577         or mix thereof.
9578         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
9579         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
9580         oprnd1 def_stmt is in pattern, don't look through it.
9582 2016-03-03  Marek Polacek  <polacek@redhat.com>
9584         PR middle-end/70050
9585         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
9587 2016-03-03  Martin Liska  <mliska@suse.cz>
9589         PR tree-optimization/70043
9590         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
9591         previous statement if we see a debug statement.
9593 2016-03-03  Richard Biener  <rguenther@suse.de>
9595         PR tree-optimization/55936
9596         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
9597         parameter and guard unsafe equivalence use.
9598         (vrp_evaluate_conditional_warnv_with_ops): Always use
9599         safe equivalences but not via the quadratic compare_names
9600         helper.
9602 2016-03-03  Michael Collison  <michael.collison@linaro.org>
9604         PR target/70014
9605         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
9606         for operand 1 to s_register_operand. Change predicate for operand
9607         2 to arm_not_immediate_operand.
9609 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
9611         * doc/tm.texi: Regenerated.
9613 2016-03-02  Richard Henderson  <rth@redhat.com>
9615         PR rtl-opt/67145
9616         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
9617         simplification when all args are positive non-fixed registers.
9619 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9621         * target.def (lra_p): Specify that new ports should use LRA.
9623 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
9625         PR libgomp/69555
9626         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
9627         gimplify_type_sizes the type they refer to.
9628         (omp_notice_variable): Handle reference vars to VLAs.
9629         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
9630         reference to VLA decls in the second pass instead of first pass.
9632 2016-03-02  Tom de Vries  <tom@codesourcery.com>
9634         PR tree-optimization/68659
9635         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
9636         new_expr == NULL_TREE.
9637         (get_new_name): Handle ADDR_EXPR.
9639 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
9641         PR rtl-optimization/69052
9642         * loop-invariant.c (canonicalize_address): New function.
9643         (inv_can_prop_to_addr_use): Check validity of address expression
9644         which is canonicalized by above function.
9646 2016-03-02  Alan Modra  <amodra@gmail.com>
9648         PR ipa/69990
9649         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
9650         larger alignment.
9652 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
9654         PR target/70028
9655         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
9656         (*movhi_internal): Put mask moves from and to memory separately
9657         from moves from/to GPRs.
9659 2016-03-02  Richard Biener  <rguenther@suse.de>
9661         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
9662         GENERIC expressions in GIMPLE.
9664 2016-03-02  Richard Biener  <rguenther@suse.de>
9666         * config/i386/i386.c (type_natural_mode): Fix typo.
9668 2016-03-02  Nick Clifton  <nickc@redhat.com>
9670         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
9672 2016-03-02  Richard Biener  <rguenther@suse.de>
9673             Uros Bizjak  <ubizjak@gmail.com>
9675         PR target/67278
9676         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
9678 2016-03-02  Richard Biener  <rguenther@suse.de>
9680         PR middle-end/67278
9681         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
9683 2016-03-02  Marek Polacek  <polacek@redhat.com>
9685         PR c/67854
9686         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
9687         "is promoted to" warning.
9689 2016-03-01  DJ Delorie  <dj@redhat.com>
9691         * config.gcc: Deprecate mep-*.
9693 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
9695         PR middle-end/70025
9696         * lra-constraints.c (regno_val_use_in): New.
9697         (match_reload): Use it instead of regno_use_in.
9699 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
9701         PR rtl-optimization/70007
9702         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
9703         references present in REG_EQUAL notes attached to non-SET patterns.
9705 2016-03-01  Jeff Law  <law@redhat.com>
9707         PR tree-optimization/69196
9708         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9709         Appropriately clamp the number of statements to copy when the
9710         thread path does not traverse a loop backedge.
9712         PR tree-optimization/69196
9713         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9714         Do count some PHIs in the thread path against the insn count.  Decrease
9715         final statement count by one as the control statement in the last
9716         block will get removed.  Remove special cased code for handling PHIs
9717         in the last block.
9719 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
9721         PR target/70027
9722         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
9723         asm dialect alternatives to explicit GOTPCREL calls.
9725 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
9727         PR ada/70017
9728         * ira.c (do_reload): Issue warning for generic stack checking here...
9729         * reload1.c (reload): ...instead of here and streamline it.
9731 2016-03-01  Nick Clifton  <nickc@redhat.com>
9733         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
9735 2016-03-01  Richard Biener  <rguenther@suse.de>
9737         PR tree-optimization/69983
9738         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
9739         types and fall back to operand_equal_p.
9741 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9743         Revert
9744         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9746         * config/s390/constraints.md ("jm8"): New constraint.
9747         * config/s390/predicates.md ("const_int_8bitset_operand"): New
9748         predicate.
9749         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
9750         into ...
9751         ("*setmem_long<setmem_and>"): New pattern.
9752         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
9753         into ...
9754         ("*setmem_long_31z<setmem_and>"): New pattern.
9755         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
9756         New substitution rules with the required attributes.
9759 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9761         Revert
9762         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9764         * gensupport.c (process_substs_on_one_elem): Split loop to
9765         complete mark_operands_used_in_match_dup on all expressions in the
9766         vector first.
9767         (adjust_operands_numbers): Inline into process_substs_on_one_elem
9768         and remove function.
9770 2016-03-01  Richard Biener  <rguenther@suse.de>
9772         PR middle-end/70022
9773         * fold-const.c (fold_indirect_ref_1): Fix range checking for
9774         vector BIT_FIELD_REF extract.
9776 2016-03-01  Richard Biener  <rguenther@suse.de>
9778         PR tree-optimization/69994
9779         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
9781 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
9783         PR tree-optimization/69956
9784         * tree-vect-stmts.c (supportable_widening_operation): Support
9785         multi-step conversion of boolean vectors.
9786         (supportable_narrowing_operation): Likewise.
9788 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9790         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
9791         anymore.
9793 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9795         * config/s390/subst.md (DSI_VI): New mode iterator.
9796         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
9797         * config/s390/vector.md ("vec_set<mode>"): Move expander before
9798         the insn definition.
9799         ("*vec_set<mode>"): Change predicate and add alternative to
9800         support only either register or const_int operands as element
9801         selector.
9802         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
9803         operands.
9804         ("vec_extract<mode>"): New expander.
9805         ("*vec_extract<mode>"): New insn definition supporting reg and
9806         const_int element selectors.
9807         ("*vec_extract<mode>_plus"): New insn definition supporting
9808         reg+const_int element selectors.
9809         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
9810         following expander+insn definition.
9811         ("<vec_shifts_name><mode>3"): New expander.
9812         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
9814 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9816         * config/s390/s390.md ("*tabort_1"): Change predicate to
9817         nonmemory_operand.  Add a second alternative to cover
9818         register as well as const int operands.
9819         ("*tabort_1_plus"): New pattern definition.
9821 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9823         * config/s390/s390.md ("*ashrdi3_cc_31")
9824         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
9825         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
9826         Merge insn definitions into ...
9827         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
9828         New pattern definition.
9829         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
9830         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
9831         ("*ashr<mode>3_and"): Merge insn definitions into ...
9832         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
9833         New pattern definition.
9834         * config/s390/subst.md ("addr_style_op_cc_subst")
9835         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
9836         substitutions patterns plus attributes.
9837         Add ashiftrt to SUBST iterator.
9839 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9841         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
9842         op2 to nonmemory_operand.
9843         ("*<shift>di3_31", "*<shift>di3_31_and"):
9844         Merge into single pattern definition ...
9845         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
9846         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
9847         pattern definition ...
9848         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
9849         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
9850         iterator.
9852 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9854         * config/s390/predicates.md (const_int_6bitset_operand): New
9855         predicate.
9856         * config/s390/s390.md: Include subst.md.
9857         ("rotl<mode>3"): New expander.
9858         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
9859         ...
9860         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
9861         * config/s390/subst.md: New file.
9863 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9865         * config/s390/s390.md ("op_type", "atype", "length" attributes):
9866         Remove RRR type.  It doesn't really exist.
9867         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
9868         attributes.
9869         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
9870         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
9871         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
9872         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
9873         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
9874         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
9875         `enabled' attribute.
9877 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9879         * gensupport.c (process_substs_on_one_elem): Split loop to
9880         complete mark_operands_used_in_match_dup on all expressions in the
9881         vector first.
9882         (adjust_operands_numbers): Inline into process_substs_on_one_elem
9883         and remove function.
9885 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
9887         PR target/69706
9888         * config/sparc/sparc.c (NWORDS_UP): Rename to...
9889         (CEIL_NWORDS): ...this.  Use CEIL macro.
9890         (compute_fp_layout): Adjust to above renaming.
9891         (function_arg_union_value): Likewise.
9892         (sparc_arg_partial_bytes): Likewise.
9893         (sparc_function_arg_advance): Likewise.
9895 2016-02-29  Jeff Law  <law@redhat.com>
9897         PR tree-optimization/70005
9898         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
9899         where an object with a boolean range is compared against a value
9900         outside [0..1].
9902         PR tree-optimization/69999
9903         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
9904         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
9905         loop cleanups.
9907 2016-02-29  Richard Biener  <rguenther@suse.de>
9909         PR tree-optimization/69994
9910         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
9911         (get_unary_op): Look through nop conversions.
9912         (ops_equal_values_p): New function, look for equality diregarding
9913         nop conversions.
9914         (eliminate_plus_minus_pair): Use ops_equal_values_p
9915         (repropagate_negates): Do not use get_unary_op here.
9917 2016-02-29  Martin Liska  <mliska@suse.cz>
9919         * system.h: Poison ENABLE_CHECKING macro.
9921 2016-02-29  Martin Liska  <mliska@suse.cz>
9923         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
9924         is presented in dump flags.
9925         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
9926         (hsa_regalloc): Likewise.
9928 2016-02-19  Richard Biener  <rguenther@suse.de>
9930         PR tree-optimization/69980
9931         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
9932         permutation of those we need to keep.
9934 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
9936         PR target/69706
9937         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
9938         (NWORDS_UP): ...this
9939         (init_cumulative_args): Minor tweaks.
9940         (sparc_promote_function_mode): Likewise.
9941         (scan_record_type): Delete.
9942         (traverse_record_type): New function template.
9943         (classify_data_t): New structure type.
9944         (classify_registers): New inline function.
9945         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
9946         exhausted.  Instantiate traverse_record_type on classify_registers and
9947         deal with the case of a structure passed in slot #15 with no FP field
9948         in the first word.
9949         (assign_data_t): New structure type.
9950         (compute_int_layout): New static function.
9951         (compute_fp_layout): Likewise.
9952         (count_registers): New inline function.
9953         (assign_int_registers): New static function.
9954         (assign_fp_registers): Likewise.
9955         (assign_registers): New inline function.
9956         (function_arg_record_value_1): Delete.
9957         (function_arg_record_value_2): Likewise.
9958         (function_arg_record_value_3): Likewise.
9959         (function_arg_record_value): Adjust to above changes.  Instantiate
9960         traverse_record_type on count_registers to first count the number of
9961         registers to be used and then on assign_registers to assign them.
9962         (function_arg_union_value): Adjust to above renaming.
9963         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
9964         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
9965         case of a structure passed in slot #15
9966         (sparc_function_arg_advance): Likewise.
9967         (function_arg_padding): Minor tweak.
9969 2016-02-29  Richard Biener  <rguenther@suse.de>
9971         PR tree-optimization/69720
9972         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
9973         the adjustment_def path for possibly vectorized defs.
9974         (vect_create_epilog_for_reduction): Handle vectorized initial
9975         defs properly.
9977 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
9979         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
9981 2016-02-27  Jeff Law  <law@redhat.com>
9983         Revert
9984         2016-02-26  Richard Biener  <rguenther@suse.de>
9985                     Jeff Law  <law@redhat.com>
9987         PR tree-optimization/69740
9988         * cfghooks.c (remove_edge): Request loop fixups if we delete
9989         an edge that might turn an irreducible loop into a natural
9990         loop.
9992 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
9994         PR rtl-optimization/69896
9995         * tree-vect-generic.c (get_compute_type): Avoid single element
9996         vector types.
9998 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
10000         Rename the AArch64 tuning option and related functions to enable the
10001         Newton series for the reciprocal square root to reflect its
10002         approximative characteristic.
10004         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
10005         function to "aarch64_emit_approx_rsqrt".
10006         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
10007         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
10008         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
10009         (xgene1_tunings): Likewise.
10010         (use_rsqrt_p): Likewise.
10011         (aarch64_emit_swrsqrt): Use new function name.
10012         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
10013         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
10014         text explaining this option.
10015         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
10017 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
10019         PR target/69969
10020         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10021         complain about -mallow-movmisalign without -mvsx if
10022         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
10024 2016-02-26  Joel Sherrill  <joel@rtems.org>
10026         * config.gcc: Add x86_64-*-rtems*.
10027         * config/i386/rtems-64.h: New file.
10029 2016-02-26  Joel Sherrill  <joel@rtems.org>
10031         * config.gcc: Add aarch64-*-rtems*.
10032         * config/aarch64/rtems.h: New file.
10034 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
10036         PR target/69946
10037         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
10038         shift amount using %h.  Add comment.
10040 2016-02-26  Richard Biener  <rguenther@suse.de>
10041             Jeff Law  <law@redhat.com>
10043         PR tree-optimization/69740
10044         * cfghooks.c (remove_edge): Request loop fixups if we delete
10045         an edge that might turn an irreducible loop into a natural
10046         loop.
10048 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10050         PR middle-end/69920
10051         * tree-sra.c (sra_modify_assign): Do not remove loads of
10052         uninitialized aggregates to SSA_NAMEs.
10054 2016-02-26  Richard Henderson  <rth@redhat.com>
10056         PR target/69709
10057         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
10058         pseudo in case the target rtx matches the source of the left
10059         shift.
10061 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10063         PR hsa/69568
10064         * hsa.h (hsa_type_packed_p): Declare.
10065         * hsa.c (hsa_type_packed_p): New function.
10066         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
10067         loads.
10068         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
10069         * hsa-brig.c (emit_basic_insn): Likewise.
10071 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10073         pr hsa/69674
10074         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
10075         pointers.
10076         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
10078 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10080         * hsa.h (is_a_helper): New overload for hsa_op_immed for
10081         hsa_op_with_type operands.
10082         (hsa_unsigned_type_for_type): Declare.
10083         * hsa.c (hsa_unsigned_type_for_type): New function.
10084         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
10085         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
10086         the finalizer.  Do not emit extra move.
10088 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10090         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
10091         atomic operations in private segment.
10093 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10095         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
10096         statements to wi->info.  Also disallow omp simd constructs.
10097         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
10098         for not gridifying.  Dump special string for omp_for.
10100 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10102         PR target/69245
10103         * config/aarch64/aarch64.c (aarch64_set_current_function):
10104         Save/restore target globals when switching to
10105         target_option_default_node.
10107 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10109         PR target/69613
10110         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
10111         Return 0 if !SHIFT_COUNT_TRUNCATED.
10113 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
10114             Eric Botcazou  <ebotcazou@adacore.com>
10116         PR rtl-optimization/69891
10117         * dse.c (scan_insn): If we can't figure out memset arguments
10118         or they are non-constant, call clear_rhs_from_active_local_stores.
10120 2016-02-26  Martin Liska  <mliska@suse.cz>
10122         * doc/extend.texi: Mention clog10, clog10f an clog10l
10123         in Builtins section.
10125 2016-02-26  Martin Liska  <mliska@suse.cz>
10127         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
10128         CHECKING_P.
10129         (resolve_args_picking_1): Likewise.
10130         * dwarf2out.h (struct GTY): Likewise.
10132 2016-02-26  Martin Liska  <mliska@suse.cz>
10134         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
10135         with flag_checking.
10136         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
10138 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10139             Martin Liska  <mliska@suse.cz>
10141         * doc/install.texi: Mention --enable-valgrind-annotations.
10143 2016-02-26  Richard Biener  <rguenther@suse.de>
10145         PR tree-optimization/69551
10146         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
10147         looking through aliases adjust DECL_PT_UID to refer to the
10148         ultimate alias target.
10150 2016-02-25  Martin Liska  <mliska@suse.cz>
10152         PR middle-end/69919
10153         * alloc-pool.c (after_memory_report): New variable.
10154         * alloc-pool.h (base_pool_allocator ::release): Do not use
10155         the infrastructure if after_memory_report.
10156         * toplev.c (toplev::main): Mark after memory report.
10158 2016-02-25  Richard Biener  <rguenther@suse.de>
10160         PR tree-optimization/48795
10161         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
10163 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
10165         PR driver/68463
10166         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
10167         offloading is enabled and -fopenacc or -fopenmp is specified.
10168         (CRTOFFLOADEND): Likewise.
10169         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
10170         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
10171         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
10172         (offload_objects_file_name): New static var.
10173         (tool_cleanup): Remove offload_objects_file_name file.
10174         (find_offloadbeginend): Replace with ...
10175         (find_crtoffloadtable): ... this.
10176         (run_gcc): Remove offload_argc and offload_argv.
10177         Get offload_objects_file_name from -foffload-objects=... option.
10178         Read names of object files with offload from this file, pass them to
10179         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
10180         don't pass offloadbegin and offloadend to the linker.  Don't pass
10181         offload non-LTO files to the linker, because now they're not claimed.
10183 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
10185         PR ipa/69630
10186         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
10187         on builtin_unreachable.
10189 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
10191         PR rtl-optimization/69896
10192         * regcprop.c: Include cfgrtl.h.
10193         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
10194         than remembered mode, either delete it (if noop_move_p), or
10195         treat like copy_p but not noop_p instruction.
10197 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
10199         PR debug/69705
10200         * dwarf2out.c (gen_variable_die): Work around buggy LTO
10201         - allow NULL decl for Fortran DW_TAG_common_block variables.
10203 2016-02-24  Jason Merrill  <jason@redhat.com>
10205         * common.opt (flifetime-dse): Add -flifetime-dse=1.
10207 2016-02-24  Richard Biener  <rguenther@suse.de>
10208             Jakub Jelinek  <jakub@redhat.com>
10210         PR middle-end/69760
10211         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
10212         conditionally executed ops to well-defined overflow behavior.
10214 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
10216         PR middle-end/69915
10217         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
10218         elements.
10220 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10222         PR rtl-optimization/69886
10223         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
10224         argument.  Use it when checking validity of set instructions.
10225         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
10226         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
10227         callsite.
10228         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
10229         * store-motion.c (find_moveable_store): Update
10230         can_assign_to_reg_without_clobbers_p callsite.
10232 2016-02-24  Richard Biener  <rguenther@suse.de>
10234         PR middle-end/68963
10235         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
10236         bogus check.
10237         (record_nonwrapping_iv): Do not fall back to the low/high bound
10238         for non-constant IV bases if the stmt is not always executed.
10240 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10242         * config/arm/arm-cores.def (cortex-a32): New entry.
10243         * config/arm/arm-tables.opt: Regenerate.
10244         * config/arm/arm-tune.md: Regenerate.
10245         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
10246         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
10247         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
10248         for -mcpu and -mtune.
10250 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10252         PR target/69875
10253         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
10254         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
10255         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
10256         (atomic_loaddi_1): Delete.
10257         (atomic_loaddi): Rewrite expander using the above changes.
10259 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
10261         PR c/69918
10262         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
10263         2 to 3.
10265 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
10266             Richard Biener  <rguenth@suse.de>
10268         PR middle-end/69909
10269         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
10270         set_mem_attributes if tem is SSA_NAME which got expanded
10271         as a MEM.
10273 2016-02-24  Richard Biener  <rguenther@suse.de>
10275         PR tree-optimization/69907
10276         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
10277         end of permutations for BB vectorization.
10279 2016-02-24  Christian Bruel  <christian.bruel@st.com>
10281         * config/arm/arm-c.c (arm_option_override): Initialize
10282         target_option_current_node.
10283         * config/arm/arm.c (arm_pragma_target_parse): Replace
10284         build_target_option_node call by target_option_current_node.
10285         Set target_option_current_node.
10286         Fix comments.
10288 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
10290         PR target/69810
10291         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
10292         define_insn_and_split to define_insn.
10293         (zero_extendqi<mode>2_dot2): Same.
10294         (extendqi<mode>2_dot): Same.
10295         (extendqi<mode>2_dot2): Same.
10297 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
10299         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
10300         and add bypass for AES{D,E} and AESMC pairs.
10301         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
10302         and AESMC pairs.
10304 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
10306         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
10307         series for reciprocal square root in Exynos M1.
10309 2016-02-23  Martin Sebor  <msebor@redhat.com>
10311         PR c/69759
10312         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
10313         __builtin_alloca_with_align.
10315 2016-02-23  Richard Henderson  <rth@redhat.com>
10317         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
10318         (ix86_register_pragmas): Remove __seg_tls.
10319         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
10320         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
10321         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
10322         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
10323         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
10324         * doc/extend.texi (__seg_tls): Remove item.
10326 2016-02-23  Richard Biener  <rguenther@suse.de>
10328         * alloc-pool.h (struct allocation_object): Make id member
10329         conditional on CHECKING_P again.
10330         (get_instance): Adjust.
10331         (base_pool_allocator): Likewise.
10333 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
10335         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
10336         (parallelize_loops): In OpenACC kernels mode, set n_threads to
10337         zero.
10338         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
10339         flag_openacc.
10340         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
10342 2016-02-23  Richard Biener  <rguenther@suse.de>
10344         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
10345         * bitmap.h (struct bitmap_usage): Likewise.
10346         (bitmap_move): Declare.
10347         * bitmap.c (register_overhead): Take size_t argument.
10348         (bitmap_move): New function.
10349         * df-problems.c (df_rd_transfer_function): Use bitmap_move
10350         to properly account overhead.
10351         * tree.c (free_node): Use tree_size.
10353 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
10355         PR c++/69902
10356         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
10357         when inverting comparison.
10359         PR c/69900
10360         * common.opt (Wunreachable-code): Add Warning flag.
10362 2016-02-23  Mark Wielaard  <mjw@redhat.com>
10363             Jakub Jelinek  <jakub@redhat.com>
10365         PR c/69911
10366         * cgraphunit.c (check_global_declaration): Check main_input_filename
10367         and DECL_SOURCE_FILE are not NULL.
10369 2016-02-23  Martin Jambor  <mjambor@suse.cz>
10371         PR tree-optimization/69666
10372         * tree-sra.c (sra_modify_assign): Do not attempt to create
10373         default_def replacements for unscalarizable regions.
10375 2016-02-20  Mark Wielaard  <mjw@redhat.com>
10377         PR c/28901
10378         * cgraphunit.c (check_global_declaration): Check level of
10379         warn_unused_const_variable and main_input_filename.
10380         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
10381         (-Wunused-variable): For C implies -Wunused-const-variable=1.
10382         (-Wunused-const-variable): Explain levels 1 and 2.
10384 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
10386         PR target/69888
10387         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
10388         identical arguments.  Formatting and spelling fixes.
10390         PR target/69885
10391         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
10392         be specified.
10394         PR target/69894
10395         PR target/69895
10396         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
10397         and m68k-devices.def.
10398         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
10399         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
10401 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
10403         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
10404         and HImode registers.
10406 2016-02-22  Richard Biener  <rguenther@suse.de>
10408         PR tree-optimization/69882
10409         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
10410         preserve permutations present because of gaps.
10411         (vect_supported_load_permutation_p): Always continue checking
10412         permutations after vect_attempt_slp_rearrange_stmts.
10414 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
10416         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
10417         min_profitable_estimate, rather than min_profitable_iters.
10419 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
10421         PR target/69885
10422         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
10423         SImode for last match_operand.
10425 2016-02-22  Martin Liska  <mliska@suse.cz>
10427         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
10428         return bitsize - 1 as the return value.
10430 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
10432         PR target/69806
10433         PR target/54089
10434         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
10435         Handle negative shift counts.
10436         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
10437         force_reg on the shift constant.
10438         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
10439         (lshrsi3_d): Handle negative shift counts.
10441 2016-02-22  Richard Biener  <rguenther@suse.de>
10442             Tom de Vries  <tom@codesourcery.com>
10444         * graph.c: Include dumpfile.h.
10445         (print_graph_cfg): Split into three overloads.
10446         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
10448 2016-02-22  Tom de Vries  <tom@codesourcery.com>
10450         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
10451         dump-fn.
10453 2016-02-22  Richard Biener  <rguenther@suse.de>
10455         PR ipa/37448
10456         * ipa-inline-transform.c (inline_call): When not updating
10457         overall summaries adjust self size by the growth estimate.
10458         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
10459         hash-set, do not update overall summaries here.  Renamed from ...
10460         (inline_to_all_callers): ... this which is now wrapping the
10461         above and performing delayed overall summary update.
10462         (early_inline_small_functions): Delay updating of the overall
10463         summary.
10465 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10467         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
10468         variable.
10470 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
10472         PR driver/69805
10473         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
10474         :%* in %:gt() argument.
10475         (greater_than_spec_func): Adjust for expecting only numbers,
10476         if there are more than two numbers, compare the last two.
10478 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
10480         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
10481         -Wnarrowing with -std.
10483 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
10485         PR c++/69851
10486         * expr.c (store_field): Don't use bit-field path if exp is
10487         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
10488         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
10489         and the assignment can be performed by bitwise copy.  Formatting
10490         fix.
10492         PR middle-end/69838
10493         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
10494         call copy_reg_eh_region_note_forward on before and/or after sequences
10495         and remove note from insn if it no longer can throw.
10497         PR target/69820
10498         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
10499         if TARGET_AVX512BW.
10501 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10503         * config/s390/vector.md: Add missing commutative operand markers
10504         to the patterns which qualify for one.
10505         * config/s390/vx-builtins.md: Likewise.
10507 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10509         * config/s390/vector.md (VI, VI_QHS): Add single element vector
10510         types to mode iterators.
10511         (vec_double): ... and mode attribute.
10512         * config/s390/vx-builtins.md (non_vec_int): Likewise.
10514 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10516         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
10517         Change the predicate of op2 from nonimmediate to general and let
10518         reload fix it if necessary.
10520 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10522         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
10524 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10526         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
10527         mode.
10529 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10531         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
10532         * config/s390/s390.c (s390_expand_vec_movstr): New function.
10533         * config/s390/s390.md ("movstr<P:mode>"): Call
10534         s390_expand_vec_movstr.
10536 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10538         * config/s390/s390.md: Add missing output modifier for operand 1
10539         to print it as address properly.
10541 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10543         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
10544         * config/s390/2964.md: New file.
10545         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
10546         of insn grouping attributes depending on the CPU level.
10547         (s390_get_unit_mask): New function.
10548         (s390_sched_score): Remove the OOO from the scheduling macros.
10549         Add loop to calculate a score for the instruction mix.
10550         (s390_sched_reorder): Likewise plus improve debug output.
10551         (s390_sched_variable_issue): Rename macros as above.  Calculate
10552         the unit distances after actually scheduling an insn.  Improve
10553         debug output.
10554         (s390_sched_init): Clear last_scheduled_unit_distance array.
10555         * config/s390/s390.md: Include 2964.md.
10557 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
10559         PR target/69671
10560         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
10561         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
10562         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
10563         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
10564         *avx512f_<code>v8div16qi2_mask_1): New insns.
10566 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
10568         PR target/68404
10569         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
10570         2016-02-09 change.
10572         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
10573         earlyclobber from target.  Use wF constraint for fused memory
10574         address.
10575         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
10577 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
10578             Martin Liska  <mliska@suse.cz>
10580         PR sanitizer/69863
10581         * cfgexpand.c (asan_sanitize_stack_p): New function.
10582         (partition_stack_vars): Use the function.
10583         (expand_stack_vars): Likewise.
10584         (defer_stack_allocation): Likewise.
10585         (expand_used_vars): Likewise.
10587 2016-02-18  Richard Biener  <rguenther@suse.de>
10589         PR middle-end/69553
10590         * fold-const.c (operand_equal_p): Properly compare offsets for
10591         IMAGPART_EXPR and ARRAY_REF.
10593 2016-02-18  Nick Clifton  <nickc@redhat.com>
10595         PR target/62254
10596         PR target/69610
10597         * config/arm/arm.c (arm_option_override_internal): Disable
10598         interworking if the target does not support thumb instructions.
10599         (arm_reload_in_hi): Handle the case where a register to register
10600         move needs reloading because there is no simple pattern to handle
10601         it.
10602         (arm_reload_out_hi): Likewise.
10604 2016-02-18  Richard Biener  <rguenther@suse.de>
10606         PR middle-end/69854
10607         * match.pd: Don't use fold_binary or fold_unary for folding
10608         constants.
10610 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
10612         PR c++/69850
10613         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
10614         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
10615         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
10616         warn on gimple_no_warning_p statements.
10618 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
10620         * doc/extend.texi (C++ Attributes): Correct description of
10621         warn_unused type attribute.
10623 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10625         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
10626         correct instruction.
10628 2016-02-17  Richard Biener  <rguenther@suse.de>
10630         PR rtl-optimization/69609
10631         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
10632         (find_traces_1_round): When ending a trace update cached priority
10633         of successors.
10634         (bb_to_key): Use cached priority when available.
10635         (copy_bb): Initialize cached priority.
10636         (reorder_basic_blocks_software_trace_cache): Likewise.
10638 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10640         PR target/69161
10641         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
10642         New predicate.
10643         (aarch64_comparison_operator): Break overly long line into two.
10644         (aarch64_comparison_operation): Likewise.
10645         * config/aarch64/aarch64.md (cstorecc4): Use
10646         aarch64_comparison_operator_mode instead of
10647         aarch64_comparison_operator.
10648         (cstore<mode>4): Likewise.
10649         (aarch64_cstore<mode>): Likewise.
10650         (*cstoresi_insn_uxtw): Likewise.
10651         (cstore<mode>_neg): Likewise.
10652         (*cstoresi_neg_uxtw): Likewise.
10654 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10656         PR target/69161
10657         * config/arm/predicates.md (arm_comparison_operator_mode):
10658         New predicate.
10659         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
10660         instead of arm_comparison_operator.
10661         (*mov_negscc): Likewise.
10662         (*mov_notscc): Likewise.
10663         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
10664         (*thumb2_mov_negscc): Likewise.
10665         (*thumb2_mov_negscc_strict_it): Likewise.
10666         (*thumb2_mov_notscc): Likewise.
10667         (*thumb2_mov_notscc_strict_it): Likewise.
10669 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
10671         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
10672         Add missing return.
10674 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
10676         * config/visium/visium.c (machine_libfunc_index): New enum.
10677         (machine_libfuncs): New structure.
10678         (visium_libfuncs): New static variable.
10679         (TARGET_INIT_LIBFUNCS): Define to...
10680         (visium_init_libfuncs): ...this.  New function.
10681         (expand_block_move_4): Use the appropriate libfunc.
10682         (expand_block_move_2): Likewise.
10683         (expand_block_move_1): Likewise.
10684         (expand_block_set_4): Likewise.
10685         (expand_block_set_2): Likewise.
10686         (expand_block_set_1): Likewise.
10687         (visium_trampoline_init): Likewise.
10689 2016-02-17  Nick Clifton  <nickc@redhat.com>
10691         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
10692         TI's devices.csv file as of March 2016.
10694 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10696         PR Target/48344
10697         * opts-global.c (handle_common_deferred_options): Introduce and
10698         initialize two global variables to remember command-line options
10699         specifying a stack-limiting register.
10700         * opts.h: Add extern declarations of the two new global variables.
10701         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
10702         variable based on the values of the two new global variables.
10704 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
10706         PR c/69835
10707         * common.opt (Wnonnull-compare): New warning.
10708         * doc/invoke.texi (-Wnonnull): Remove text about comparison
10709         of arguments against NULL.
10710         (-Wnonnull-compare): Document.
10711         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
10712         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
10713         * passes.def (pass_warn_nonnull_compare): Add.
10714         * gimple-ssa-nonnull-compare.c: New file.
10716 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
10718         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
10719         AARCH64_EXTRA_TUNE_RECIP_SQRT.
10721 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
10723         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
10724         reciprocal sqrt for -mlow-precision-recip-sqrt.
10726 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
10727             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10729         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
10730         always use lane loads to construct non-constant vectors.
10732 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
10734         * config/aarch64/aarch64.md
10735         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
10736         constraints for operand 3.
10737         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
10739 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
10740             Richard Biener  <rguenther@suse.de>
10742         PR tree-optimization/69820
10743         * tree-vect-patterns.c (type_conversion_p): Return false if
10744         *orig_type is unsigned single precision or boolean.
10745         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
10746         Formatting fix.
10748 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
10750         PR rtl-optimization/69764
10751         PR rtl-optimization/69771
10752         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
10753         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
10755 2016-02-16  Richard Biener  <rguenther@suse.de>
10757         PR tree-optimization/69776
10758         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
10759         sets from caller.
10760         (indirect_refs_may_alias_p): Likewise.
10761         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
10762         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
10763         according to tbaa_p.
10764         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
10765         (optimize_stmt): For redundant store discovery do not allow tbaa.
10767 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
10769         PR tree-optimization/69714
10770         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
10771         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
10773 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
10775         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
10776         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
10777         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
10778         * config/arc/arc.c (arc_init): Check FPU options.
10779         (get_arc_condition_code): Handle new CC_FPU* modes.
10780         (arc_select_cc_mode): Likewise.
10781         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
10782         register pair only. Allow access for ARCv2 accumulator.
10783         (gen_compare_reg): Whenever we have FPU support use FPU compare
10784         instructions.
10785         (arc_reorg): Don't generate brcc insns when FPU compare
10786         instructions are involved.
10787         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
10788         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
10789         floating point emulation.
10790         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
10791         (REVERSE_CONDITION): Add new CC_FPU* modes.
10792         (TARGET_FP_SP_BASE): Define.
10793         (TARGET_FP_DP_BASE): Likewise.
10794         (TARGET_FP_SP_FUSED): Likewise.
10795         (TARGET_FP_DP_FUSED): Likewise.
10796         (TARGET_FP_SP_CONV): Likewise.
10797         (TARGET_FP_DP_CONV): Likewise.
10798         (TARGET_FP_SP_SQRT): Likewise.
10799         (TARGET_FP_DP_SQRT): Likewise.
10800         (TARGET_FP_DP_AX): Likewise.
10801         * config/arc/arc.md (ARCV2_ACC): New constant.
10802         (type): New fpu type attribute.
10803         (SDF): Conditional iterator.
10804         (cstore<mode>, cbranch<mode>): Change expand condition.
10805         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
10806         handles FPU/FPX cases as well.
10807         * config/arc/arc.opt (mfpu): New option.
10808         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
10809         Renamed.
10810         (adddf3, muldf3, subdf3): Removed.
10811         * config/arc/predicates.md (proper_comparison_operator): Recognize
10812         CC_FPU* modes.
10813         * config/arc/fpu.md: New file.
10814         * doc/invoke.texi (ARC Options): Document mfpu option.
10816 2016-02-16  Richard Biener  <rguenther@suse.de>
10818         PR rtl-optimization/69291
10819         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
10820         noce_operand_ok check.
10822 2016-02-16  Tom de Vries  <tom@codesourcery.com>
10824         PR lto/67709
10825         * omp-low.c (simd_clone_create): Remove call to
10826         symtab->call_cgraph_insertion_hooks.
10828 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
10830         PR tree-optimization/69802
10831         * tree-ssa-reassoc.c (update_range_test): If op is
10832         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
10833         op == 1 test of precision 1 integral op, otherwise handle
10834         that case as op itself.  Fix up formatting.
10835         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
10836         up formatting.
10838 2016-02-16  Richard Biener  <rguenther@suse.de>
10840         PR tree-optimization/69586
10841         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
10842         types for conversion sources.
10844 2016-02-16  Richard Biener  <rguenther@suse.de>
10846         PR middle-end/69801
10847         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
10848         mask OEP_ADDRESS_OF.
10850 2016-02-16  Alan Modra  <amodra@gmail.com>
10852         PR target/68973
10853         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
10854         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
10855         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
10856         (p8_mtvsrwz): New.
10857         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
10858         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
10859         (p8_fmrgow_<mode>): Likewise.
10860         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
10861         changes.
10862         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
10863         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
10864         to use movdi_internal64.  Remove op0_di.
10865         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
10867 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
10869         Add support for the FCCMP insn types
10871         * config/aarch64/aarch64.md (fccmp): Change insn type.
10872         (fccmpe): Likewise.
10873         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
10874         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
10875         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
10876         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
10877         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
10878         * config/arm/types.md (fccmps): Add new insn type.
10879         (fccmpd): Likewise.
10881 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10883         * alias.c (get_alias_set): Fix a typo in comment.
10885 2016-02-15  Richard Biener  <rguenther@suse.de>
10887         PR tree-optimization/69595
10888         * match.pd: Complete range test simplification to true.
10890 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
10892         PR rtl-optimization/69648
10893         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
10894         pic_offset_table_rtx.
10896         PR rtl-optimization/69752
10897         * ira.c (update_equiv_regs): When looking for more than a single SET,
10898         also take other side effects into account.
10900 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
10902         * config/s390/s390.c (s390_function_profiler): Add a new sequence
10903         for z900+ CPUs in 31-bit mode.
10905 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
10907         * common/config/s390/s390-common.c (s390_supports_split_stack):
10908         New function.
10909         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
10910         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
10911         * config/s390/s390.c (struct machine_function): New field
10912         split_stack_varargs_pointer.
10913         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
10914         in s390_emit_prologue.
10915         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
10916         vararg pointer.
10917         (morestack_ref): New global.
10918         (SPLIT_STACK_AVAILABLE): New macro.
10919         (s390_expand_split_stack_prologue): New function.
10920         (s390_live_on_entry): New function.
10921         (s390_va_start): Use split-stack vararg pointer if appropriate.
10922         (s390_asm_file_end): Emit the split-stack note sections.
10923         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
10924         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
10925         (UNSPECV_SPLIT_STACK_CALL): New unspec.
10926         (UNSPECV_SPLIT_STACK_DATA): New unspec.
10927         (split_stack_prologue): New expand.
10928         (split_stack_space_check): New expand.
10929         (split_stack_data): New insn.
10930         (split_stack_call): New expand.
10931         (split_stack_call_*): New insn.
10932         (split_stack_cond_call): New expand.
10933         (split_stack_cond_call_*): New insn.
10935 2016-02-15  Richard Biener  <rguenther@suse.de>
10937         PR tree-optimization/69783
10938         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10939         Add trivially correct cases.
10941 2016-02-15  Tom de Vries  <tom@codesourcery.com>
10943         PR lto/69655
10944         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
10945         do_force_output.
10946         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
10948 2016-02-15  Richard Biener  <rguenther@suse.de>
10950         PR tree-optimization/69776
10951         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10952         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
10953         indicate whether we can use TBAA to disambiguate against stores.
10954         Use alias-set zero if not.
10955         (visit_reference_op_store): Do not use TBAA when looking up
10956         redundant stores.
10957         * tree-ssa-pre.c (compute_avail): Use TBAA here.
10958         (eliminate_dom_walker::before_dom_children): But not when looking
10959         up redundant stores.
10961 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
10963         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
10965 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10967         *  config/i386/znver1.md
10968         (znver1_pop, znver1_pop_mem,
10969         znver1_load_imov_double_store,
10970         znver1_load_imov_direct_store,
10971         znver1_load_imov_direct_load,
10972         znver1_load_imov_double_load): Add new.
10973         (znver1_insn, znver1_insn_load): Add icmov type.
10974         (znver1_sseavx_fma,
10975         znver1_sseavx_fma_load,
10976         znver1_avx256_fma,
10977         znver1_avx256_fma_load): Fix pipe usage.
10979 2016-02-14  Alan Modra  <amodra@gmail.com>
10981         PR target/68973
10982         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
10983         with an invalid hard reg, reload just the reg not the entire
10984         pre/post-inc/dec address expression.
10986 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
10988         PR target/67260
10989         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
10990         fixed R1_REG scratch reg.
10991         (sibcall_value_pcrel_fdpic): Likewise.
10993 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
10995         PR target/67636
10996         PR target/64345
10997         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
10999 2016-02-12  Walter Lee  <walt@tilera.com>
11001         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
11002         * config/tilegx/t-tilegx: Likewise.
11004 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
11006         PR other/69554
11007         * diagnostic-show-locus.c (struct line_span): New struct.
11008         (layout::get_first_line): Delete.
11009         (layout::get_last_line): Delete.
11010         (layout::get_num_line_spans): New member function.
11011         (layout::get_line_span): Likewise.
11012         (layout::print_heading_for_line_span_index_p): Likewise.
11013         (layout::get_expanded_location): Likewise.
11014         (layout::calculate_line_spans): Likewise.
11015         (layout::m_first_line): Delete.
11016         (layout::m_last_line): Delete.
11017         (layout::m_line_spans): New field.
11018         (layout::layout): Update comment.  Replace m_first_line and
11019         m_last_line with m_line_spans, replacing their initialization
11020         with a call to calculate_line_spans.
11021         (diagnostic_show_locus): When printing source lines and
11022         annotations, rather than looping over a single span
11023         of lines, instead loop over each line_span within
11024         the layout, with an inner loop over the lines within them.
11025         Call the context's start_span callback when changing line spans.
11026         * diagnostic.c (diagnostic_initialize): Initialize start_span.
11027         (diagnostic_build_prefix): Break out the building of the location
11028         part of the string into...
11029         (diagnostic_get_location_text): ...this new function, rewriting
11030         it from nested ternary expressions to a sequence of "if"
11031         statements.
11032         (default_diagnostic_start_span_fn): New function.
11033         * diagnostic.h (diagnostic_start_span_fn): New typedef.
11034         (diagnostic_context::start_span): New field.
11035         (default_diagnostic_start_span_fn): New prototype.
11037 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
11039         PR driver/69779
11040         * gcc.c (driver::finalize): Fix cleanup of "specs".
11042 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
11044         PR driver/69265
11045         PR driver/69453
11046         * gcc.c (driver::driver): Initialize m_option_suggestions.
11047         (driver::~driver): Clean up m_option_suggestions.
11048         (suggest_option): Convert to...
11049         (driver::suggest_option): ...this, and split out into
11050         driver::build_option_suggestions and find_closest_string.
11051         (driver::build_option_suggestions): New function, from
11052         first half of suggest_option.  Special-case
11053         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
11054         the sanitizer_opts array.  For options of enum types, add the
11055         various enum values to the candidate strings.
11056         (driver::handle_unrecognized_options): Remove "const".
11057         * gcc.h (driver::handle_unrecognized_options): Likewise.
11058         (driver::build_option_suggestions): New decl.
11059         (driver::suggest_option): New decl.
11060         (driver::m_option_suggestions): New field.
11061         * opts-common.c (add_misspelling_candidates): New function.
11062         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
11063         and make non-static.
11064         * opts.h (sanitizer_opts): New array decl.
11065         (add_misspelling_candidates): New function decl.
11066         * spellcheck.c (find_closest_string): New function.
11067         * spellcheck.h (find_closest_string): New function decl.
11069 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
11071         PR rtl-optimization/69764
11072         PR rtl-optimization/69771
11073         * optabs.c (expand_binop_directly): For shift_optab_p, force
11074         convert_modes with VOIDmode if xop1 has VOIDmode.
11076 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
11078         PR target/69729
11079         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
11080         to correctly determine instrumentation thunks.
11082 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
11084         PR ipa/69241
11085         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
11086         type by reference, force lhs on the call.
11088         PR ipa/68672
11089         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
11090         Compute retval and retbnd early in all cases if split_part_return_p
11091         and return_bb is not EXIT.  Remove all clobber stmts and reset
11092         all debug stmts that refer to SSA_NAMEs defined in split part,
11093         except if it is retval, in that case replace the old retval with the
11094         lhs of the call to the split part.
11096 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11098         revert:
11099         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11101         PR middle-end/66726
11102         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
11103         whose result is used in PHI.
11104         (maybe_optimize_range_tests): Likewise.
11105         (final_range_test_p): Likweise.
11107 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11109         PR middle-end/66726
11110         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
11111         whose result is used in PHI.
11112         (maybe_optimize_range_tests): Likewise.
11113         (final_range_test_p): Likweise.
11115 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
11117         * cgraph.c: Spelling fixes - behaviour -> behavior and
11118         neighbour -> neighbor.
11119         * target.def: Likewise.
11120         * sel-sched.c: Likewise.
11121         * config/mips/mips.c: Likewise.
11122         * config/arc/arc.md: Likewise.
11123         * config/arm/cortex-a57.md: Likewise.
11124         * config/arm/arm.c: Likewise.
11125         * config/arm/neon.md: Likewise.
11126         * config/arm/arm-c.c: Likewise.
11127         * config/vms/vms-c.c: Likewise.
11128         * config/s390/s390.c: Likewise.
11129         * config/i386/znver1.md: Likewise.
11130         * config/i386/i386.c: Likewise.
11131         * config/ia64/hpux-unix2003.h: Likewise.
11132         * config/msp430/msp430.md: Likewise.
11133         * config/rx/rx.c: Likewise.
11134         * config/rx/rx.md: Likewise.
11135         * config/aarch64/aarch64-simd.md: Likewise.
11136         * config/aarch64/aarch64.c: Likewise.
11137         * config/nvptx/nvptx.c: Likewise.
11138         * config/bfin/bfin.c: Likewise.
11139         * config/cris/cris.opt: Likewise.
11140         * config/rs6000/rs6000.c: Likewise.
11141         * target.h: Likewise.
11142         * spellcheck.c: Likewise.
11143         * ira-build.c: Likewise.
11144         * tree-inline.c: Likewise.
11145         * builtins.c: Likewise.
11146         * lra-constraints.c: Likewise.
11147         * explow.c: Likewise.
11148         * hwint.h: Likewise.
11149         * targhooks.c: Likewise.
11150         * tree-vect-data-refs.c: Likewise.
11151         * expr.c: Likewise.
11152         * doc/tm.texi: Likewise.
11153         * doc/extend.texi: Likewise.
11154         * doc/install.texi: Likewise.
11155         * doc/md.texi: Likewise.
11156         * tree-ssa-tail-merge.c: Likewise.
11157         * sched-int.h: Likewise.
11158         * match.pd: Likewise.
11159         * sched-ebb.c: Likewise.
11160         * target.def (omit_struct_return_reg): Likewise.
11161         * gimple-ssa-isolate-paths.c: Likewise.
11162         (find_implicit_erroneous_behaviour): Renamed to...
11163         (find_implicit_erroneous_behavior): ... this.
11164         (find_explicit_erroneous_behaviour): Renamed to...
11165         (find_explicit_erroneous_behavior): ... this.
11166         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
11168 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
11170         PR rtl-optimization/64682
11171         PR rtl-optimization/69567
11172         PR rtl-optimization/69737
11173         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
11174         in I2 as well, just lose it.
11176 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11178         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
11179         New variable.
11180         (aarch64_last_printed_tune_string): Likewise.
11181         (aarch64_declare_function_name): Only output .arch assembler
11182         directive if it will be different from the previously output
11183         directive.  Same for .tune comment but only if -dA is set.
11184         (aarch64_start_file): New function.
11185         (TARGET_ASM_FILE_START): Define.
11187 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
11189         PR plugins/69758
11190         * Makefile.in (PLUGIN_HEADERS): Add params.list.
11192 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
11194         PR target/65313
11195         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
11196         -Wmaybe-uninitialized warning.
11198 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
11200         PR target/69713
11201         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
11203 2016-02-11  Richard Biener  <rguenther@suse.de>
11205         PR rtl-optimization/69291
11206         * ifcvt.c (noce_try_store_flag_constants): Do not allow
11207         subexpressions affected by changing the result.
11209 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
11211         PR target/69148
11212         * lra-constraints.c (curr_insn_transform): Find in/out operands
11213         for secondary memory moves.  Update dups.
11215 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
11217         PR tree-optimization/69652
11218         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
11219         to nested loop, did source re-formatting, skip debug statements,
11220         add check on statement with volatile operand, remove dead scalar
11221         statements.
11223 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
11224             Patrick Palka  <ppalka@gcc.gnu.org>
11226         PR ipa/69241
11227         PR c++/69649
11228         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
11229         calls if the return type is TREE_ADDRESSABLE.
11230         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
11231         * ipa-split.c (split_function): Fix doubled "we" in comment.
11232         Use void return type for the split part even if
11233         !split_point->split_part_set_retval.
11235 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
11237         PR tree-optimization/68021
11238         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
11239         when computing the value of biv cand by itself.
11241 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
11243         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
11244         (cortexa57_tunings): Likewise.
11245         (cortexa72_tunings): Likewise.
11246         (arch_macro_fusion_pair_p): Add support for AES fusion.
11247         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
11248         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
11249         Allow virtual registers before reload so early scheduling works.
11250         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
11251         correct latency and pipeline.
11252         (cortex_a57_crypto_complex): Likewise.
11253         (cortex_a57_crypto_xor): Likewise.
11254         (define_bypass): Add AES bypass.
11256 2016-02-10  Richard Biener  <rguenther@suse.de>
11258         PR tree-optimization/69726
11259         * passes.def: Add DCE pass before late uninit.
11260         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
11261         really fixup if-conversions job.
11263 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
11265         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
11266         (arm_cortex_a57_tune): Likewise.
11267         (aarch_macro_fusion_pair_p): Add support for AES fusion.
11268         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
11270 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
11272         * timevar.def (TV_PHASE_DBGINFO): Delete.
11273         (TV_PHASE_CHECK_DBGINFO): Likewise.
11274         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
11276 2016-02-10  Richard Biener  <rguenther@suse.de>
11278         PR tree-optimization/69719
11279         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
11280         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
11282 2016-02-09  Andrew Pinski  <apinski@cavium.com>
11284         PR tree-opt/69282
11285         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
11286         get_vcond_mask_icode returns false.
11288 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
11290         PR target/68404
11291         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
11292         an ADDIS that adds a pointer to a large constant that sets the
11293         upper16 bits with a load operation.
11295 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
11297         PR target/68532
11298         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
11299         order.
11300         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
11301         endian.
11302         (vzipq_s16): Likewise.
11303         (vzipq_s32): Likewise.
11304         (vzipq_f32): Likewise.
11305         (vzipq_u8): Likewise.
11306         (vzipq_u16): Likewise.
11307         (vzipq_u32): Likewise.
11308         (vzipq_p8): Likewise.
11309         (vzipq_p16): Likewise.
11311 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
11313         PR target/68532
11314         * config/arm/arm.c (neon_endian_lane_map): New function.
11315         (neon_vector_pair_endian_lane_map): New function.
11316         (arm_evpc_neon_vuzp): Allow for big endian lane order.
11317         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
11318         endian.
11319         (vuzpq_s16): Likewise.
11320         (vuzpq_s32): Likewise.
11321         (vuzpq_f32): Likewise.
11322         (vuzpq_u8): Likewise.
11323         (vuzpq_u16): Likewise.
11324         (vuzpq_u32): Likewise.
11325         (vuzpq_p8): Likewise.
11326         (vuzpq_p16): Likewise.
11328 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
11330         PR target/69634
11331         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
11332         debug insns.
11334 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
11336         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
11337         truncate const_int operand 1 to QImode.
11339 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
11341         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
11342         corresponding to an abnormal edge.
11344 2016-02-09  Tom de Vries  <tom@codesourcery.com>
11346         PR tree-optimization/69599
11347         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
11348         function.
11349         (find_func_aliases_for_builtin_call, find_func_clobbers)
11350         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
11351         partition.
11353 2016-02-09  Richard Biener  <rguenther@suse.de>
11355         PR tree-optimization/69715
11356         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
11357         LHS on calls as non-rewritable.
11359 2016-02-09  Tom de Vries  <tom@codesourcery.com>
11361         PR lto/69707
11362         * lto-wrapper.c (append_diag_options): New function.
11363         (compile_offload_image): Call append_diag_options.
11365 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
11367         PR other/69722
11368         * doc/extend.texi (Flag Output Operands): Correct sectioning.
11369         Minor copy-edit to fix verb tenses.
11371 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
11373         PR tree-optimization/69209
11374         * ipa-split.c (split_function): If split part is not
11375         returning retval, retval has gimple type but is not
11376         gimple value, force it into a SSA_NAME first.
11378 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
11380         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
11381         outdated section.
11383 2016-02-08  Jason Merrill  <jason@redhat.com>
11385         PR c++/69631
11386         * convert.c (convert_to_integer_1): Check dofold on truncation
11387         distribution.
11388         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
11389         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
11390         Rename from *_nofold.
11391         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
11392         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
11394 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
11396         PR target/60410
11397         * tree.c (build_common_tree_nodes): Remove short_double argument.
11398         All callers changed.
11399         * tree.h (build_common_tree_nodes): Adjust declaration.
11400         * doc/invoke.texi (-fshort-double): Remove documentation.
11401         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
11402         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
11403         * lto-wrapper.c (merge_and_complain, append_compiler_options)
11404         (append_linker_options): Don't handle OPT_fshort_double.
11406         PR rtl-optimization/68730
11407         * lra-remat.c (insn_to_cand_activation): New static variable.
11408         (lra_remat): Allocate and free it.
11409         (create_cand): New arg activation. Initialize a field in
11410         insn_to_cand_activation if it is nonnull.
11411         (create_cands): Pass the activation insn to create_cand when making
11412         a candidate involving an output reload.  Reorganize code a little.
11413         (do_remat): Keep track of active status of candidates in a separate
11414         bitmap.
11416 2016-02-08  Richard Biener  <rguenther@suse.de>
11418         PR tree-optimization/69719
11419         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
11420         Properly use absolute of the difference of the two offsets to
11421         compare or adjust the segment length.
11423 2016-02-08  Richard Biener  <rguenther@suse.de>
11424             Jeff Law  <law@redhat.com>
11426         PR target/68273
11427         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
11428         types for anonymous SSA names.
11430 2016-02-08   Richard Biener  <rguenther@suse.de>
11432         PR rtl-optimization/69274
11433         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
11435 2016-02-08  Jeff Law  <law@redhat.com>
11437         PR tree-optimization/65917
11438         * tree-ssa-dom.c (record_temporary_equivalences): Record both
11439         equivalences from if (x == y) style conditionals.
11440         (loop_depth_of_name): Remove.
11441         (record_equality): Remove loop depth check.
11442         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
11443         (const_and_copies::record_const_or_copy_raw): New member function.
11444         * tree-ssa-scopedtables.c
11445         (const_and_copies::record_const_or_copy_raw): New, factored out of
11446         (const_and_copies::record_const_or_copy): Call new member function.
11448 2016-02-05  Jeff Law  <law@redhat.com>
11450         PR tree-optimization/68541
11451         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
11452         (count_stmts_in_block): New function.
11453         (poor_ifcvt_candidate_code): Likewise.
11454         (is_feasible_trace): Add some heuristics to determine when path
11455         splitting is profitable.
11456         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
11457         is a diamond with a single exit.
11459 2016-02-05  Martin Sebor  <msebor@redhat.com>
11461         PR c++/69662
11462         * doc/invoke.texi: Update -Wplacement-new to take an optional
11463         argument.
11465 2016-02-06  Richard Henderson  <rth@redhat.com>
11467         PR c/69643
11468         * tree.c (tree_nop_conversion_p): Do not strip casts into or
11469         out of non-standard address spaces.
11471 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
11473         PR rtl-optimization/69691
11474         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
11476 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
11478         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
11479         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
11480         (*ieee128_mfvsrd_64bit): Likewise.
11481         (*ieee128_mfvsrd_32bit): Likewise.
11483 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
11485         PR target/69369
11486         Revert r232560:
11487         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
11489         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
11490         instrumented_version.
11492 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
11494         * doc/invoke.texi (Optimize Options): In table of --param options
11495         rename second occurrence of tracer-min-branch-ratio to
11496         tracer-min-branch-probability, rename
11497         tracer-min-branch-ratio-feedback to
11498         tracer-min-branch-probability-feedback and clarify description,
11499         rename sched-spec-state-edge-prob-cutoff to
11500         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
11501         to selsched-insns-to-rename, rename lto-minpartition to
11502         lto-min-partition, delete reorder-blocks-duplicate and
11503         reorder-blocks-duplicate-feedback.
11505 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11507         * config/s390/s390.c (s390_register_info_set_ranges): Remove
11508         superfluous loops.
11510 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11512         * doc/extend.texi: S/390: Correct some typos.
11514 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11516         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
11518 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11520         PR target/69625
11521         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
11522         (s390_register_info_gprtofpr): Use new macros above.
11523         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
11524         its name.
11525         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
11526         its name.  Adjust restore and save gpr ranges.
11527         (s390_register_info_set_ranges): New function.
11528         (s390_register_info): Use new macros above.  Call
11529         s390_register_info_set_ranges.
11530         (s390_optimize_register_info): Likewise.
11531         (s390_hard_regno_rename_ok): Use new macros.
11532         (s390_hard_regno_scratch_ok): Likewise.
11533         (s390_emit_epilogue): Likewise.
11534         (s390_can_use_return_insn): Likewise.
11535         (s390_optimize_prologue): Likewise.
11536         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
11538 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
11540         PR bootstrap/69677
11541         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
11542         alignment fixes.
11543         (ix86_option_override_internal): Disable TARGET_STV even for
11544         -m{incoming,preferred}-stack-boundary=3.
11546 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11548         * config.gcc: Mark deprecated rtems targets as obsolete.
11550 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
11552         PR rtl-optimization/64682
11553         PR rtl-optimization/69567
11554         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
11555         before I2 only if the register is both used and set in I2.
11557 2016-02-04  DJ Delorie  <dj@redhat.com>
11559         * config/msp430/msp430.c (msp430_start_function): Add function type.
11561 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
11563         PR fortran/69368
11564         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
11566 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
11568         PR rtl-optimization/69577
11569         Revert:
11570         2015-10-29  Richard Henderson  <rth@redhat.com>
11572         PR target/68124
11573         PR rtl-opt/67609
11574         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
11575         sse check to the exact conditions of PR 67609.
11577 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
11579         PR target/69667
11580         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
11581         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
11582         not allowed into the traditional Altivec registers.
11583         (movtd_64bit_nodm): Likewise.
11584         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
11586 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
11588         * config/aarch64/cortex-a57-fma-steering.c
11589         (aarch64_register_fma_steering): Remove "static" from arguments
11590         to register_pass.
11592 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
11594         PR target/69619
11595         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
11596         twice when complex.
11598 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
11600         * doc/invoke.texi: Delete -mno-fma4.
11602 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
11604         PR rtl-optimization/69577
11605         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
11606         (find_subregs_of_mode): Update accordingly.  Iterate over partial
11607         definitions.
11609 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
11611         * config/arm/arm-protos.h (neon_reinterpret): Remove.
11612         * config/arm/arm.c (neon_reinterpret): Remove.
11613         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
11614         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
11615         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
11616         vreinterpretti): Remove.
11617         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
11618         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11619         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
11620         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
11621         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
11622         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
11623         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
11624         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
11625         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
11626         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
11627         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
11628         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
11629         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
11630         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
11631         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
11632         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
11633         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
11634         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
11635         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
11636         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
11637         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
11638         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
11639         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
11640         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
11641         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
11642         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
11643         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
11644         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
11645         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
11646         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
11647         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
11648         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
11649         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
11650         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
11651         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
11652         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
11653         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
11654         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
11655         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
11656         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
11657         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
11658         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
11659         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
11660         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
11661         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
11662         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
11663         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
11664         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
11665         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
11666         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
11667         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
11668         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
11669         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
11670         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
11671         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
11672         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
11673         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
11674         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
11675         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
11676         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
11677         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
11678         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
11679         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
11680         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
11681         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
11682         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
11683         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
11684         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
11685         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
11686         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
11687         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
11688         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
11689         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
11690         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
11691         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
11692         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
11693         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
11694         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
11695         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
11696         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
11697         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
11698         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
11699         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
11700         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
11701         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
11702         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
11703         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
11704         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
11705         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
11706         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
11707         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
11708         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
11709         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
11710         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
11711         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
11712         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
11713         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
11714         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
11715         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
11716         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
11717         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
11718         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
11719         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
11721 2016-02-04  Martin Liska  <mliska@suse.cz>
11723         PR sanitizer/69276
11724         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
11725         that are gimple_store_p.
11726         (maybe_instrument_call): Likewise.
11728 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
11730         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
11731         register scaling out of memory reference and comment why.
11733 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11735         PR target/65932
11736         PR target/67714
11737         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
11738         folding the source of a SET.
11740 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11742         PR target/65932
11743         PR target/67714
11744         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
11745         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
11747 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
11749         PR target/65932
11750         PR target/67714
11751         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
11752         HImode.
11754 2016-02-04  Christian Bruel  <christian.bruel@st.com>
11756         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
11757         * config/arm/arm.c (arm_set_current_function): Likewise.
11759 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
11760             Ilya Enkovich  <enkovich.gnu@gmail.com>
11761             H.J. Lu  <hongjiu.lu@intel.com>
11763         PR target/69454
11764         * config/i386/i386.c (convert_scalars_to_vector): Remove
11765         stack alignment fixes.
11766         (ix86_option_override_internal): Disable TARGET_STV if stack
11767         might not be aligned enough.
11768         (ix86_minimum_alignment): Assert that TARGET_STV is false.
11770 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
11772         * config/i386/x86-tune.def: Disable default prefetching
11773         for -march=znver1.
11775 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11776             Vladimir Makarov  <vmakarov@redhat.com>
11778         PR target/69461
11779         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
11780         in validating fused toc addresses.
11782 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
11784         PR c/69627
11785         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
11786         range->m_caret fields if range->m_show_caret_p is false.
11788         PR target/69644
11789         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
11790         Force oldval into register if it does not satisfy reg_or_short_operand
11791         predicate.  Fix up formatting.
11793 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
11794             Alexandre Oliva  <aoliva@redhat.com>
11796         PR target/69461
11797         * lra-constraints.c (simplify_operand_subreg): Check additionally
11798         address validity after potential reloading.
11799         (process_address_1): Check insns validity.  In case of failure do
11800         nothing.
11802 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
11804         PR target/69118
11805         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
11806         Fix target.
11808 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
11810         * wide-int.cc (canonize_uhwi): New function.
11811         (wi::divmod_internal): Use it.
11813 2016-02-02  James Norris  <jnorris@codesourcery.com
11815         * gimplify.c (omp_notice_variable): Add usage check.
11817 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
11819         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
11820         like LE, GE, LT, GT when emitting relational operator.
11822 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
11824         * ira-costs.c (find_costs_and_classes): Add extra argument.
11825         * target.def (ira_change_pseudo_allocno_class): Add parameter.
11826         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
11827         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
11828         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
11829         Add best_class parameter, and return it if not ALL_REGS.
11830         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
11831         Add parameter.
11832         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
11833         Update target hook.
11835 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
11837         * config/aarch64/aarch64.c
11838         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
11839         (aarch64_ira_change_pseudo_allocno_class): New function.
11841 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
11843         PR target/67032
11844         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
11846 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11848         * config/avr/avr.c (avr_option_override): Set
11849         PARAM_ALLOW_STORE_DATA_RACES to 1.
11851 2016-02-02  Richard Biener  <rguenther@suse.de>
11853         PR tree-optimization/69595
11854         * match.pd: Add range test simplifications to true/false.
11856 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
11858         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
11859         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
11860         instead.
11862 2016-02-02  Richard Biener  <rguenther@suse.de>
11864         PR tree-optimization/69606
11865         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
11866         info on the result before moving a stmt.
11868 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
11870         PR middle-end/68542
11871         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
11872         branch with vector comparison.
11873         * config/i386/sse.md (VI48_AVX): New mode iterator.
11874         (define_expand "cbranch<mode>4): Add support for conditional branch
11875         with vector comparison.
11876         * tree-vect-loop.c (optimize_mask_stores): New function.
11877         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
11878         has_mask_store field of vect_info.
11879         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
11880         vectorized loops having masked stores after vec_info destroy.
11881         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
11882         correspondent macros.
11883         (optimize_mask_stores): Add prototype.
11885 2016-02-02  Alan Modra  <amodra@gmail.com>
11887         PR target/69548
11888         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
11889         allow subregs.
11891 2016-02-02  Alan Modra  <amodra@gmail.com>
11893         PR target/68662
11894         * config/rs6000/rs6000.c (need_toc_init): New var, set it
11895         whenever toc_label_name used.
11896         (rs6000_file_start): Don't set up toc section here,
11897         (rs6000_output_function_epilogue): do so here instead,
11898         (rs6000_xcoff_file_start): and here.
11899         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
11900         (load_toc_aix_di): Likewise.
11902 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
11904         PR rtl-optimization/69592
11905         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
11906         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
11907         (num_sign_bit_copies_binary_arith_p): New inline function.
11908         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
11910 2016-02-01  Jeff Law  <law@redhat.com>
11912         PR tree-optimization/69580
11913         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
11914         * tree-ssa-threadbackward.c
11915         (fsm_find_control_statement_thread_paths): Do not try to walk
11916         through large PHI nodes.
11918 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
11920         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
11921         when count is incremented above limit, don't analyze further
11922         insns afterwards.
11924         * omp-low.c (oacc_parse_default_dims): Avoid
11925         -Wsign-compare warning, make sure value fits into int
11926         rather than just unsigned int.
11928 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
11930         PR tree-optimization/67921
11931         * fold-const.c (split_tree): New parameters.  Convert pointer
11932         type variable part to proper type before negating.
11933         (fold_binary_loc): Pass new arguments to split_tree.
11935 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
11937         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
11938         (nvptx_goacc_validate_dims): Extend to handle global defaults.
11939         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
11940         * doc/tm.texti: Rebuilt.
11941         * doc/invoke.texi (fopenacc-dim): Document.
11942         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
11943         (append_compiler_options): Likewise.
11944         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
11945         (oacc_parse_default_dims): New.
11946         (oacc_validate_dims): Add USED arg.  Select non-unity default when
11947         possible.
11948         (oacc_loop_fixed_partitions): Return mask of used partitions.
11949         (oacc_loop_auto_partitions): Emit dump info.
11950         (oacc_loop_partition): Return mask of used partitions.
11951         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
11952         loop partitioning and validation calls.
11954 2016-02-01  Richard Biener  <rguenther@suse.de>
11956         PR middle-end/69556
11957         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
11959 2016-02-01  Richard Biener  <rguenther@suse.de>
11961         PR tree-optimization/69574
11962         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
11963         of asserting return chrec_dont_know.
11965 2016-02-01  Martin Liska  <mliska@suse.cz>
11967         * mem-stats-traits.h: Add copyright header.
11968         * mem-stats.h: Likewise.
11970 2016-02-01  Richard Biener  <rguenther@suse.de>
11972         PR tree-optimization/69579
11973         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
11974         Do not propagate through abnormal PHI results.
11976 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
11978         * postreload.c (reload_cse_simplify): Remove dead code.
11980 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
11982         PR rtl-optimization/69570
11983         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
11984         if there is more than one set, not if there is a single set.
11986 2016-02-01  Richard Henderson  <rth@redhat.com>
11988         PR rtl-opt/69535
11989         * combine.c (make_compound_operation): When looking through a
11990         subreg, make sure to re-extend to the width of the outer mode.
11992 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
11994         PR tree-optimization/69546
11995         * wide-int.cc (wi::divmod_internal): For unsigned division
11996         where both operands fit into uhwi, if o1 is 1 and o0 has
11997         msb set, if divident_prec is larger than bits per hwi,
11998         clear another quotient word and return 2 instead of 1.
11999         Similarly for remainder with msb in HWI set, if dividend_prec
12000         is larger than bits per hwi.
12002 2016-01-29  Martin Jambor  <mjambor@suse.cz>
12004         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
12005         Use short lowercase names.
12006         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
12007         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
12008         acq_rel one.  Protect warning agains segfaults if
12009         get_memory_order_name returns NULL.
12010         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
12011         with release semantics.  Do not warn if get_memory_order already did.
12012         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
12013         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
12014         if get_memory_order already did.
12016 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
12018         * doc/install.texi: Document that isl-0.16 is supported.
12020 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
12022         PR target/69299
12023         * config/i386/constraints.md (Bm): Describe as special memory
12024         constraint.
12025         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
12026         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12027         * genpreds.c (struct constraint_data): Add is_special_memory.
12028         (have_special_memory_constraints, special_memory_start): New
12029         static vars.
12030         (special_memory_end): Ditto.
12031         (add_constraint): Add new arg is_special_memory.  Add code to
12032         process its true value.  Update have_special_memory_constraints.
12033         (process_define_constraint): Pass the new arg.
12034         (process_define_register_constraint): Ditto.
12035         (choose_enum_order): Process special memory.
12036         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
12037         function insn_extra_special_memory_constraint.
12038         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12039         * gensupport.c (process_rtx): Process
12040         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12041         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
12042         * ira-lives.c (single_reg_class): Use
12043         insn_extra_special_memory_constraint.
12044         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
12045         * lra-constraints.c (process_alt_operands): Ditto.
12046         (curr_insn_transform): Use insn_extra_special_memory_constraint.
12047         * recog.c (asm_operand_ok, preprocess_constraints): Process
12048         CT_SPECIAL_MEMORY.
12049         * reload.c (find_reloads): Ditto.
12050         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
12051         * stmt.c (parse_input_constraint): Use
12052         insn_extra_special_memory_constraint.
12054 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
12056         PR target/69530
12057         * lra-splill.c (lra_final_code_change): Revert r229087 by
12058         removing all sub-registers.
12060 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
12062         PR target/65604
12063         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
12065 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
12067         PR target/69551
12068         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
12069         SSE1, copy target into the temporary reg first before recursing
12070         on it.
12072 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
12074         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
12075         with vm.
12077 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
12079         * ginclude/stdarg.h: Test __cplusplus instead of
12080         __GXX_EXPERIMENTAL_CXX0X__.
12082 2016-01-29  Richard Biener  <rguenther@suse.de>
12084         PR tree-optimization/69547
12085         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
12086         Do not mark clobbers necessary.
12087         (mark_all_reaching_defs_necessary_1): Likewise.
12089 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12091         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
12092         declaration name with %qs and print it in both error messages.
12093         Also fix indentation.
12095 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12097         PR other/69006
12098         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
12099         trailing blank line from error message.
12101 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
12103         PR c++/69462
12104         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
12105         for C++-11.
12107 2016-01-29  Richard Biener  <rguenther@suse.de>
12109         PR middle-end/69537
12110         * match.pd: Allow all integral types when simplifying a
12111         widening or sign-changing conversion.
12113 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
12115         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
12116         back to setting codegen_error to fail codegen.
12118 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
12120         PR target/69459
12121         * config/i386/constraints.md (C): Only accept constant zero operand.
12122         (BC): New constraint.
12123         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
12124         instead of C constraint.
12125         * doc/md.texi (Machine Constraints): Update description
12126         of C constraint.
12128 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
12130         PR target/68400
12131         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
12133 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
12135         PR middle-end/69542
12136         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
12137         non-debug insns.
12139 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
12141         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
12142         branches if using guessed profile.
12144 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
12146         * graphite-optimize-isl.c (optimize_isl): Fix dump.
12148 2016-01-28  Richard Henderson  <rth@redhat.com>
12150         PR target/69305
12151         * config/aarch64/aarch64-modes.def (CC_Cmode): New
12152         * config/aarch64/aarch64-protos.h: Update.
12153         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
12154         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
12155         (aarch64_get_condition_code_1): Handle CC_Cmode.
12156         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
12157         (*add<mode>3_compareC_cconly_imm): New.
12158         (*add<mode>3_compareC_cconly): New.
12159         (*add<mode>3_compareC_imm): New.
12160         (add<mode>3_compareC): New.
12161         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
12162         to be first.  Use aarch64_carry_operation.
12163         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
12164         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
12165         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
12166         (subti3): Use subdi3_compare1.
12167         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
12168         (sub<mode>3_compare1): New.
12169         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
12170         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
12171         (*subsi3_carryin_uxtw): Likewise.
12172         (*ngc<mode>, *ngcsi_uxtw): Likewise.
12173         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
12174         * config/aarch64/iterators.md (DWI): New.
12175         * config/aarch64/predicates.md (aarch64_carry_operation): New.
12176         (aarch64_borrow_operation): New.
12178 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
12180         * graphite-optimize-isl.c (optimize_isl): Print a different debug
12181         message when isl does not return a valid schedule.
12183 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
12185         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12186         Remove comments from class declarations: they are already in the code
12187         close by the defs.
12189 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
12191         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
12192         codegen_error_p.
12193         (ternary_op_to_tree): Same.
12194         (unary_op_to_tree): Same.
12195         (nary_op_to_tree): Same.
12196         (gcc_expression_from_isl_expr_op): Same.
12197         (gcc_expression_from_isl_expression): Same.
12198         (graphite_create_new_loop): Same.
12199         (graphite_create_new_loop_guard): Same.
12200         (build_iv_mapping): Same.
12201         (graphite_create_new_guard): Same.
12202         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
12203         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
12205 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
12207         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
12208         instead of setting codegen_error to fail codegen.
12210 2016-01-28  Jason Merrill  <jason@redhat.com>
12212         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
12214 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
12216         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
12217         Remove CONST_INT_P check in CCMP cost calculation.
12219 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
12221         * config/aarch64/aarch64.c (generic_vector_cost):
12222         Set vec_permute_cost.
12223         (cortexa57_vector_cost): Likewise.
12224         (exynosm1_vector_cost): Likewise.
12225         (xgene1_vector_cost): Likewise.
12226         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
12227         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
12228         Add vec_permute_cost entry.
12230 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
12232         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
12233         immediate as %1.
12234         (add<mode>3_compare0): Likewise.
12235         (addsi3_compare0_uxtw): Likewise.
12236         (add<mode>3nr_compare0): Likewise.
12237         (compare_neg<mode>): Likewise.
12238         (<optab><mode>3): Likewise.
12240 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
12242         * tree-vect-stmts.c (vectorizable_comparison): Add
12243         NULL check for vectype.
12245 2016-01-28  Richard Biener  <rguenther@suse.de>
12247         PR tree-optimization/69466
12248         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
12249         Account for PHIs we couldn't duplicate.
12251 2016-01-28  Martin Liska  <mliska@suse.cz>
12253         PR pch/68758
12254         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
12255         instead of ENABLE_VALGRIND_CHECKING.
12257 2016-01-27  Richard Henderson  <rth@redhat.com>
12259         PR rtl-opt/69447
12260         * lra-remat.c (subreg_regs): New.
12261         (dump_candidates_and_remat_bb_data): Dump it.
12262         (operand_to_remat): Reject if operand in subreg_regs.
12263         (set_bb_regs): Collect subreg_regs.
12264         (lra_remat): Init and free subreg_regs.  Compute
12265         calculate_local_reg_remat_bb_data before create_cands.
12267 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
12269         PR target/68986
12270         * config/i386/i386.c (ix86_update_stack_boundary): Don't
12271         change stack_alignment_needed for __tls_get_addr call.
12273 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
12275         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
12277 2016-01-27  Jeff Law  <law@redhat.com>
12279         PR tree-optimization/68398
12280         PR tree-optimization/69196
12281         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
12282         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
12283         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12284         Only count PHIs in the last block in the path.  The others will
12285         const/copy propagate away.  Add heuristic to allow more irreducible
12286         subloops to be created when it is likely profitable to do so.
12288         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12289         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
12290         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
12292 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
12294         PR lto/69254
12295         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
12296         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
12297         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
12298         * tree-streamer-in.c: Include asan.h.
12299         (streamer_get_builtin_tree): For builtins in sanitizer
12300         range call initialize_sanitizer_builtins and retry.
12302 2016-01-27  Ian Lance Taylor  <iant@google.com>
12304         * common.opt (fkeep-gc-roots-live): New undocumented option.
12305         * tree-ssa-loop-ivopts.c (add_candidate_1): If
12306         -fkeep-gc-roots-live, skip pointers.
12307         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
12308         NULL.
12310 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
12312         PR target/69512
12313         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
12314         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
12316 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
12318         PR target/68380
12319         * configure.ac: NetBSD provides SSP in its C library.
12320         * configure: Updated.
12322 2016-01-27  Richard Biener  <rguenther@suse.de>
12324         PR tree-optimization/69166
12325         * tree-vect-loop.c (vect_is_simple_reduction): Always check
12326         reduction code for commutativity / associativity.
12328 2016-01-27  Martin Jambor  <mjambor@suse.cz>
12330         PR tree-optimization/69355
12331         * tree-sra.c (analyze_access_subtree): Correct hole detection when
12332         total_scalarization fails.
12334 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
12336         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
12337         power9.
12339 2016-01-27  Christian Bruel  <christian.bruel@st.com>
12341         PR target/69245
12342         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
12343         Move arm_reset_previous_fndecl and set_target_option_current_node in
12344         the conditional part.  Call save_restore_target_globals.
12345         * config/arm/arm.c (arm_set_current_function):
12346         Refactor to better support #pragma target and attribute mix.
12347         Call save_restore_target_globals.
12348         * config/arm/arm-protos.h (save_restore_target_globals): New function.
12350 2016-01-27  Martin Liska  <mliska@suse.cz>
12352         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
12353         reference for an HSA kernel and its host function.
12355 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
12357         PR tree-optimization/69399
12358         * wide-int.h (wi::lrshift): For larger precisions, only
12359         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
12361 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
12363         * config/arc/predicates.md (proper_comparison_operator): Reject
12364         constant-constant comparison.
12366 2016-01-26  Tom de Vries  <tom@codesourcery.com>
12368         PR tree-optimization/69110
12369         * tree-data-ref.c (initialize_data_dependence_relation): Handle
12370         DR_NUM_DIMENSIONS == 0.
12372 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
12373             Sebastian Pop  <s.pop@samsung.com>
12375         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
12376         isl_ast_op_cond and isl_ast_op_select.
12377         (gcc_expression_from_isl_expr_op): Same.
12379 2016-01-26  Jason Merrill  <jason@redhat.com>
12381         PR c++/68782
12382         * tree.c (recompute_constructor_flags): Split out from
12383         build_constructor.
12384         (verify_constructor_flags): New.
12385         * tree.h: Declare them.
12387 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
12389         PR rtl-optimization/69217
12390         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
12391         are no TYPE_FIELDS set for the record type.
12393 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
12395         PR target/68662
12396         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
12397         toc_label_name unconditionally.
12398         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
12399         SYMBOL_REF string.  Use toc_label_name instead of constructing
12400         LCTOC1.
12401         (rs6000_elf_declare_function_name): Use toc_label_name instead of
12402         constructing LCTOC1.
12404 2016-01-26  Martin Sebor  <msebor@redhat.com>
12406         PR other/69477
12407         * doc/extend.texi (Common Type Attributes): Move text that talks about
12408         attribute packed from attribute aligned to the section discussing
12409         the former attribute for clarity.
12411 2016-01-26  Richard Henderson  <rth@redhat.com>
12413         PR middle-end/60908
12414         * trans-mem.c (tm_region_init): Mark entry block as visited.
12416 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
12418         PR other/69006
12419         * diagnostic-show-locus.c (layout::print_source_line): Replace
12420         call to pp_newline with call to layout::print_newline.
12421         (layout::print_annotation_line): Likewise.
12422         (layout::move_to_column): Likewise.
12423         (layout::print_any_fixits): After printing any fixits, print a
12424         trailing newline, if necessary.
12425         (layout::print_newline): New method, resetting any colorization
12426         before a newline.
12427         (diagnostic_show_locus): Move the pp_newline to before the
12428         early bailout.  Remove dummy block enclosing the layout instance.
12429         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
12430         of pp_newline_and_flush with pp_flush.
12431         (diagnostic_append_note): Delete use of pp_newline.
12432         (diagnostic_append_note_at_rich_loc): Delete.
12433         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
12434         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
12435         when newline characters are added to the buffer.
12437 2016-01-26  Michael Matz  <matz@suse.de>
12439         * configure.ac (ac_cv_std_swap_in_utility): New test.
12440         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
12441         * configure: Regenerate.
12442         * config.in: Regenerate.
12444 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
12446         * config/arc/arc.md (cstoresi4): Force operand into register.
12447         (arcset<code>): Fix predicate.
12448         (arcsetltu): Likewise.
12449         (arcsetgeu): Likewise.
12450         (arcsethi): Likewise.
12451         (arcsetls): Likewise.
12453 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
12455         PR tree-optimization/69483
12456         * gimple-fold.c (canonicalize_constructor_val): Return NULL
12457         if base has error_mark_node type.
12459 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
12461         PR target/68620
12462         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
12463         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
12464         New helper macros.
12465         (vget_lane_f16): Handle big-endian.
12466         (vgetq_lane_f16): Likewise.
12467         (vset_lane_f16): Likewise.
12468         (vsetq_lane_f16): Likewise.
12469         * config/arm/iterators.md (VQXMOV): Add V8HF.
12470         (VDQ): Add V4HF and V8HF.
12471         (V_reg): Handle V4HF and V8HF.
12472         (Is_float_mode): Likewise.
12473         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
12474         neon_vdup_nv8hf): New patterns.
12475         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
12476         Use VD_LANE iterator.
12477         (neon_vld1_dup<mode>): Use VQ2 iterator.
12479 2016-01-26  Nathan Sidwell  <nathan@acm.org>
12481         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
12482         (set_oacc_fn_attrib): Add IS_KERNEL arg.
12483         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
12484         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
12485         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
12486         (oacc_validate_dims): Add LEVEL arg, don't return level.
12487         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
12488         oacc_validate_dims.
12489         (execute_oacc_device_lower): Adjust, add more dump output.
12490         * tree-ssa-loop.c (gate_oacc_kernels): Use
12491         oacc_fn_attrib_kernels_p.
12492         * tree-parloops.c (create_parallel_loop): Adjust
12493         set_oacc_fn_attrib call.
12495 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
12497         PR lto/69254
12498         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
12499         (append_compiler_options): Handle -fcilkplus.
12500         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
12502 2016-01-26  Nick Clifton  <nickc@redhat.com>
12504         PR target/66655
12505         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
12506         been marked as DECL_ONE_ONLY but we do not the means to make it
12507         so, then do not allow it to bind locally.
12509 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
12511         PR lto/69254
12512         * opts.h (parse_sanitizer_options): New prototype.
12513         * opts.c (sanitizer_opts): New array.
12514         (parse_sanitizer_options): New function.
12515         (common_handle_option): Use parse_sanitizer_options.
12517 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
12519         PR target/68986
12520         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
12521         alignment adjustment to ...
12522         (ix86_update_stack_boundary): Here.  Don't over-align stack for
12523         __tls_get_addr.
12524         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
12525         if __tls_get_addr is called.
12527 2016-01-26  Christian Bruel  <christian.bruel@st.com>
12529         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
12531 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12533         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
12535 2016-01-26  Richard Biener  <rguenther@suse.de>
12537         PR middle-end/69467
12538         * match.pd: Guard X * CST CMP 0 pattern with single_use.
12540 2016-01-26  Richard Biener  <rguenther@suse.de>
12542         PR tree-optimization/69452
12543         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
12544         (move_computations_dom_walker::before_dom_children): Rename
12545         to ...
12546         (move_computations_worker): This.
12547         (move_computations): Perform an RPO rather than a DOM walk.
12549 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
12551         PR target/69442
12552         * combine.c (combine_instructions): For REG_EQUAL note with
12553         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
12554         to the underlying register.
12555         * doc/rtl.texi (REG_EQUAL): Document the behavior of
12556         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
12558 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
12560         PR target/67896
12561         * config/aarch64/aarch64-builtins.c
12562         (aarch64_init_simd_builtin_types): Do not set structural
12563         equality to __Poly{8,16,64,128}_t types.
12565 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
12567         PR tree-optimization/69400
12568         * wide-int.cc (wi_pack): Take the precision as argument and
12569         perform canonicalization here rather than in the callers.
12570         Use the main loop to handle all full-width HWIs.  Add a
12571         zero HWI if in_len isn't a full result.
12572         (wi::divmod_internal): Update accordingly.
12573         (wi::mul_internal): Likewise.  Simplify.
12575 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
12576             Sebastian Pop  <s.pop@samsung.com>
12578         * graphite-poly.c (apply_poly_transforms): Simplify.
12579         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
12580         (print_isl_map): Same.
12581         (print_isl_union_map): Same.
12582         (print_isl_schedule): New.
12583         (debug_isl_schedule): New.
12584         * graphite-dependences.c (scop_get_reads): Do not call
12585         isl_union_map_add_map that is undocumented isl functionality.
12586         (scop_get_must_writes): Same.
12587         (scop_get_may_writes): Same.
12588         (scop_get_original_schedule): Remove.
12589         (scop_get_dependences): Do not call isl_union_map_compute_flow that
12590         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
12591         (compute_deps): Remove.
12592         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
12593         (debug_schedule_ast): New.
12594         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
12595         set_separate_option.
12596         (graphite_regenerate_ast_isl): Add dump.
12597         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
12598         from scop->transformed_schedule.
12599         (graphite_regenerate_ast_isl): Add more dump.
12600         * graphite-optimize-isl.c (optimize_isl): Set
12601         scop->transformed_schedule.  Check whether schedules are equal.
12602         (apply_poly_transforms): Move here.
12603         * graphite-poly.c (apply_poly_transforms): ... from here.
12604         (free_poly_bb): Static.
12605         (free_scop): Static.
12606         (pbb_number_of_iterations_at_time): Remove.
12607         (print_isl_ast): New.
12608         (debug_isl_ast): New.
12609         (debug_scop_pbb): New.
12610         * graphite-scop-detection.c (print_edge): Move.
12611         (print_sese): Move.
12612         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
12613         (build_scop_scattering): Remove.
12614         (create_pw_aff_from_tree): Assert instead of bailing out.
12615         (add_condition_to_pbb): Remove unused code, do not fail.
12616         (add_conditions_to_domain): Same.
12617         (add_conditions_to_constraints): Remove.
12618         (build_scop_context): New.
12619         (add_iter_domain_dimension): New.
12620         (build_iteration_domains): Initialize pbb->iterators.
12621         Call add_conditions_to_domain.
12622         (nested_in): New.
12623         (loop_at): New.
12624         (index_outermost_in_loop): New.
12625         (index_pbb_in_loop): New.
12626         (outermost_pbb_in): New.
12627         (add_in_sequence): New.
12628         (add_outer_projection): New.
12629         (outer_projection_mupa): New.
12630         (add_loop_schedule): New.
12631         (build_schedule_pbb): New.
12632         (build_schedule_loop): New.
12633         (embed_in_surrounding_loops): New.
12634         (build_schedule_loop_nest): New.
12635         (build_original_schedule): New.
12636         (build_poly_scop): Call build_original_schedule.
12637         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
12638         (free_poly_dr): Remove.
12639         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
12640         (free_poly_bb): Remove.
12641         (debug_loop_vec): Remove.
12642         (print_isl_ast): Declare.
12643         (debug_isl_ast): Declare.
12644         (scop_do_interchange): Remove.
12645         (scop_do_strip_mine): Remove.
12646         (scop_do_block): Remove.
12647         (flatten_all_loops): Remove.
12648         (optimize_isl): Remove.
12649         (pbb_number_of_iterations_at_time): Remove.
12650         (debug_scop_pbb): Declare.
12651         (print_schedule_ast): Declare.
12652         (debug_schedule_ast): Declare.
12653         (struct scop): Remove schedule.  Add original_schedule,
12654         transformed_schedule.
12655         (free_gimple_poly_bb): Remove.
12656         (print_generated_program): Remove.
12657         (debug_generated_program): Remove.
12658         (unify_scattering_dimensions): Remove.
12659         * sese.c (print_edge): ... here.
12660         (print_sese): ... here.
12661         (debug_edge): ... here.
12662         (debug_sese): ... here.
12663         * sese.h (print_edge): Declare.
12664         (print_sese): Declare.
12665         (dump_edge): Declare.
12666         (dump_sese): Declare.
12668 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
12669             Sebastian Pop  <s.pop@samsung.com>
12671         * Makefile.in: Set ISLVER in site.exp.
12673 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
12675         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
12676         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
12677         through DECL_VALUE_EXPR for expansion.
12679 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12681         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
12682         the frame info after reload completed.
12684 2016-01-25  Jeff Law  <law@redhat.com>
12686         PR tree-optimization/69196
12687         PR tree-optimization/68398
12688         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
12689         tree-ssa-threadupdate.c.
12690         (determine_bb_domination_status): Prototype
12691         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
12692         (determine_bb_domination_status): No longer static.
12693         (valid_jump_thread_path): Remove code to detect characteristics
12694         of the jump thread path not associated with correctness.
12695         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
12696         Correct test for thread path length.  Count PHIs for real operands as
12697         statements that need to be copied.  Do not count ASSERT_EXPRs.
12698         Look at all the blocks in the thread path.  Compute and selectively
12699         filter thread paths based on threading through the latch, threading
12700         a multiway branch or crossing a multiway branch.
12702 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12704         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
12705         decl with __attribute__ ((unused)) annotation.
12707 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
12709         PR target/69421
12710         * tree-vect-stmts.c (vectorizable_condition): Check vectype
12711         of operands is compatible with a statement vectype.
12713 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
12715         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
12716         improve wording for mixed storage order support.
12718 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
12720         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
12721         (vcvt_u64_f64): Likewise.
12722         (vcvta_s64_f64): Likewise.
12723         (vcvta_u64_f64): Likewise.
12724         (vcvtm_s64_f64): Likewise.
12725         (vcvtm_u64_f64): Likewise.
12726         (vcvtn_s64_f64): Likewise.
12727         (vcvtn_u64_f64): Likewise.
12728         (vcvtp_s64_f64): Likewise.
12729         (vcvtp_u64_f64): Likewise.
12731 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
12733         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
12734         (arc_init): Check validity mll64 option.
12735         (arc_save_restore): Use double load/store instruction.
12736         (arc_expand_movmem): Likewise.
12737         (arc_split_move): Don't split if we have double load/store
12738         instructions. Returns a boolean.
12739         (arc_process_double_reg_moves): Change function to return boolean
12740         instead of a sequence of instructions.
12741         (arc_dwarf_register_span): New function.
12742         * config/arc/arc-protos.h (arc_split_move): Change prototype.
12743         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
12744         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
12745         (*movdf_insn): Likewise.
12746         * config/arc/arc.opt (mll64): New option.
12747         * config/arc/predicates.md (even_register_operand): New predicate.
12748         * doc/invoke.texi (ARC Options): Add mll64 documentation.
12750 2016-01-25  Richard Biener  <rguenther@suse.de>
12752         PR lto/69393
12753         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
12754         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
12755         DECL_NAMELESS.
12756         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
12758 2016-01-25  Richard Biener  <rguenther@suse.de>
12760         PR tree-optimization/69376
12761         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
12762         flag.
12763         (VN_INFO_ANTI_RANGE_P): New inline.
12764         (VN_INFO_RANGE_TYPE): Likewise.
12765         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
12766         SSA_NAME_ANTI_RANGE_P.
12767         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
12768         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12769         Properly query VN_INFO_RANGE_TYPE.
12771 2016-01-25  Nick Clifton  <nickc@redhat.com>
12773         PR target/66655
12774         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
12776 2016-01-23  Tom de Vries  <tom@codesourcery.com>
12778         PR tree-optimization/69426
12779         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
12780         removed clobber.
12782 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
12784         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
12785         "the the" with "the" in the comments.
12786         * ipa-devirt.c (build_type_inheritance_graph,
12787         update_type_inheritance_graph): Likewise.
12788         * tree.c (build_function_type_list_1): Likewise.
12789         * cfgloopmanip.c (scale_loop_profile): Likewise.
12790         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
12791         * gimple-ssa-split-paths.c
12792         (find_block_to_duplicate_for_splitting_paths): Likewise.
12793         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
12794         * expr.c (convert_move): Likewise.
12795         * var-tracking.c (vt_stack_adjustments): Likewise.
12796         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
12797         * tree-vrp.c (test_for_singularity): Likewise.
12799         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
12800         directly instead of building a temporary tree.
12802         PR bootstrap/69434
12803         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
12804         remove <algorithm> include.
12806 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
12808         PR target/69432
12809         * config/i386/i386.c: Include dojump.h.
12810         (expand_small_movmem_or_setmem,
12811         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
12812         fixes.
12813         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
12814         if dynamic_check != -1.
12816 2016-01-21  Jeff Law  <law@redhat.com>
12818         PR middle-end/69347
12819         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
12820         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
12821         into dominated_by_p.
12822         (cprop_into_successor_phis): Avoid unnecessary tests.
12824 2016-01-22  Richard Henderson  <rth@redhat.com>
12826         PR target/69416
12827         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
12828         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
12830 2016-01-22  Michael Matz  <matz@suse.de>
12832         * system.h (string, algorithm): Include only conditionally.
12833         (new): Include always under C++.
12834         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
12835         * final.c (toplevel): Ditto.
12836         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
12837         * genconditions.c (write_header): Make gencondmd.c define
12838         INCLUDE_STRING.
12839         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
12841         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
12842         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
12844 2016-01-22  Christian Bruel  <christian.bruel@st.com>
12846         PR target/68674
12847         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
12849 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12851         PR target/69403
12852         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
12853         define_insn_and_split.  Ensure operands[1] and operands[0] do not
12854         get assigned the same register.
12856 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
12858         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
12860 2016-01-22  Christian Bruel  <christian.bruel@st.com>
12862         * config/arm/arm-c.c (arm_pragma_target_parse):
12863         Remove warn_builtin_macro_redefined overwrite.
12865 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
12867         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
12868         flag_non_call_exceptions compatibility.
12870 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
12872         PR debug/66668
12873         * dwarf2out.c (add_child_die_after): New function.
12874         (dwarf_qual_info_t): New type.
12875         (dwarf_qual_info): New variable.
12876         (qualified_die_p): New function.
12877         (modified_type_die): For -fdebug-types-section, ensure
12878         canonical order of qualifiers.  Put qualified DIEs adjacent
12879         to the corresponding non-qualified type DIE and search there
12880         for existing qualified DIEs.
12882 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
12884         * doc/extend.texi (scalar_storage_order type attribute): Document
12885         restriction on type punning and aliasing, and remove future tense.
12887 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
12889         PR target/69252
12890         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
12891         first stage.
12893 2016-01-21  Jeff Law  <law@redhat.com>
12895         PR middle-end/69347
12896         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
12897         useless call to record_temporary_equivalences.
12898         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
12899         allocate 10 slots in the bb_path vector and let it grow as needed.
12900         (fsm_find_control_statement_thread_paths): Similarly for the next_path
12901         vector.
12903 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
12905         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
12906         Detangle.
12907         * configure: Regenerate.
12909 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
12911         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
12912         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
12914 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
12916         PR middle-end/66178
12917         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
12918         drop EXPAND_INITIALIZER.
12919         * rtl.h (contains_symbolic_reference_p): Declare.
12920         * rtlanal.c (contains_symbolic_reference_p): New function.
12921         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
12922         a subtraction into a NOT if symbolic constants are involved.
12924 2016-01-21  Anton Blanchard  <anton@samba.org>
12925             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12927         PR target/63354
12928         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
12929         #define.
12930         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
12931         function.
12933 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
12935         * config/microblaze/microblaze.c
12936         (get_branch_target): New.
12937         (insert_wic_for_ilb_runout): New.
12938         (insert_wic): New.
12939         (microblaze_machine_dependent_reorg): New.
12940         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
12941         * config/microblaze/microblaze.md
12942         (UNSPEC_IPREFETCH): Define.
12943         (iprefetch): New pattern
12944         * config/microblaze/microblaze.opt
12945         (mxl-prefetch): New flag.
12947 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
12949         * config/microblaze/microblaze.h
12950         (FIXED_REGISTERS): Update in macro.
12951         (CALL_USED_REGISTERS): Update in macro.
12953 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
12955         PR rtl-optimization/68920
12956         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
12957         moves.
12959 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
12961         PR rtl-optimization/68990
12962         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
12963         pseudo instead of inheritance ones.
12965 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12966             Nick Clifton  <nickc@redhat.com>
12968         PR target/69129
12969         PR target/69012
12970         * config/mips/mips.c (mips_compute_frame_info): Initialise
12971         args_size and hard_frame_pointer_offset fields of the frame
12972         structure before calling mips_global_pointer.
12974 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
12976         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
12977         label reference.
12978         * configure: Regenerate.
12980 2016-01-21  Richard Biener  <rguenther@suse.de>
12982         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
12984 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
12986         * config/s390/s390.c (s390_asm_declare_function_size): Add code
12987         to actually emit the .size directive.
12989 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
12990              Jakub Jelinek  <jakub@redhat.com>
12992         PR target/69187
12993         PR target/65624
12994         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
12995         args array size by one to avoid buffer overflow.
12997 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
12999         * config/s390/s390.md (pool_section_start): Use switch_to_section
13000         to select proper read-only data section instead of hardcoding
13001         .rodata.
13002         (pool_section_end): Use switch_to_section to match the above.
13004 2016-01-21  Richard Biener  <rguenther@suse.de>
13006         PR tree-optimization/69378
13007         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
13008         (set_ssa_val_to): Use it for dominance checks taking into
13009         account not executable edges.
13011 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
13013         PR c++/69355
13014         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
13015         for bitsize instead of GET_MODE_PRECISION (mode).
13017 2016-01-20  Martin Sebor  <msebor@redhat.com>
13019         PR c/52291
13020         * extend.texi (__sync Builtins): Clarify the semantics of
13021         __sync_fetch_and_OP built-ins on pointers.
13022         (__atomic Builtins): Same.
13024 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13025             Sebastian Pop  <s.pop@samsung.com>
13027         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
13028         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
13029         (is_valid_rename): Same.
13030         (translate_isl_ast_to_gimple::get_rename): Same.
13031         (translate_isl_ast_to_gimple::rename_all_uses): Same.
13032         (translate_isl_ast_to_gimple::rename_uses): Same.
13033         (get_new_name): Check for close_phi nodes.
13034         (copy_loop_phi_args): Use phi_node_kind.
13035         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
13036         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
13038 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13039             Sebastian Pop  <s.pop@samsung.com>
13041         Revert commit r229783.
13042         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13043         Remove use of parameter_rename_map.
13044         (copy_def): Remove.
13045         (copy_internal_parameters): Remove.
13046         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
13047         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
13048         (free_sese_info): Do not free parameter_rename_map.
13049         (set_rename): Do not use parameter_rename_map.
13050         (rename_uses): Update call to set_rename.
13051         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
13052         * sese.h (parameter_rename_map_t): Remove.
13053         (struct sese_info_t): Remove field parameter_rename_map.
13055 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13056             Sebastian Pop  <s.pop@samsung.com>
13058         * graphite-isl-ast-to-gimple.c: Fix comment.
13059         * graphite-scop-detection.c (defined_in_loop_p): New.
13060         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
13061         names defined in loop.
13063 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13064             Sebastian Pop  <s.pop@samsung.com>
13066         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
13067         Discard unstructured if-then-else regions.
13069 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13070             Sebastian Pop  <s.pop@samsung.com>
13072         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
13073         (cleanup_loop_iter_dom): Remove.
13074         (build_loop_iteration_domains): Remove.
13075         (build_scop_context): Remove.
13076         (build_scop_iteration_domain): Remove.
13077         (add_loop_constraints): New.
13078         (build_iteration_domains): New.
13079         (build_poly_scop): Call build_iteration_domains.
13081 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13082             Sebastian Pop  <s.pop@samsung.com>
13084         * graphite-scop-detection.c
13085         (scop_detection::harmful_loop_in_region): Free dom and loops.
13086         (scop_detection::loop_body_is_valid_scop): Free bbs.
13088 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13089             Sebastian Pop  <s.pop@samsung.com>
13091         * graphite-scop-detection.c (record_loop_in_sese): New.
13092         (gather_bbs::before_dom_children): Call record_loop_in_sese.
13093         (build_scops): Remove call to build_sese_loop_nests.
13094         * sese.c (sese_record_loop): Remove.
13095         (build_sese_loop_nests): Remove.
13096         (new_sese_info): Remove region->loops.
13097         (free_sese_info): Same.
13098         * sese.h (sese_contains_loop): Same.
13099         (build_sese_loop_nests): Remove.
13100         (sese_contains_loop): Remove.
13102 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13103             Sebastian Pop  <s.pop@samsung.com>
13105         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
13106         loop_is_valid_in_scop.
13107         (scop_detection::harmful_stmt_in_region): Renamed
13108         harmful_loop_in_region.
13109         Call loop_is_valid_in_scop.
13111 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13112             Sebastian Pop  <s.pop@samsung.com>
13114         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
13115         isl_ast_node_mark.
13117 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13118             Sebastian Pop  <s.pop@samsung.com>
13120         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
13121         * graphite.h (struct poly_bb): Remove field is_reduction.
13122         (PBB_IS_REDUCTION): Remove.
13124 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13125             Sebastian Pop  <s.pop@samsung.com>
13127         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
13128         (add_pdr_constraints): Same.
13129         (scop_get_reads): Same.
13130         (scop_get_must_writes): Same.
13131         (scop_get_may_writes): Same.
13132         (scop_get_original_schedule): Same.
13133         (extend_schedule): Same.
13134         (apply_schedule_on_deps): Same.
13135         (carries_deps): Same.
13136         (compute_deps): Same.
13137         (scop_get_dependences): Same.
13138         * graphite-isl-ast-to-gimple.c
13139         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
13140         * graphite-optimize-isl.c (get_schedule_for_band): Same.
13141         (get_schedule_for_band_list): Same.
13142         (get_schedule_map): Same.
13143         (apply_schedule_map_to_scop): Same.
13144         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
13145         (build_loop_iteration_domains): Same.
13146         (add_condition_to_pbb): Same.
13147         (add_param_constraints): Same.
13148         (pdr_add_memory_accesses): Same.
13149         (pdr_add_data_dimensions): Same.
13151 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
13153         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
13154         requirements.
13156 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
13158         * common.opt (feliminate-dwarf2-dups): Replace references to
13159         "DWARF 2" with just "DWARF".
13160         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
13161         * doc/extend.texi: Likewise.
13162         * doc/cpp.texi: Likewise.
13163         * doc/invoke.texi: Likewise.
13164         (Option Summary): Add -gdwarf to list of Debugging Options.
13165         (Debugging Options): Document -gdwarf.
13166         * doc/contrib.texi: Spell "DWARF" like that.
13168 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
13170         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
13171         warning.  Fix up formatting.
13173         PR middle-end/67653
13174         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
13175         attempt to mark memory input operand addressable and
13176         call prepare_gimple_addressable in that case.  Don't adjust
13177         input_location for diagnostics, use error_at instead.
13179 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
13181         * config/rs6000/ppc-auxv.h: New file.
13182         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
13183         (cpu_is): Likewise.
13184         (cpu_supports): Likewise.
13185         * config/rs6000/rs6000.c: include "ppc-auxv.h".
13186         (cpu_is_info): New variable.
13187         (cpu_supports_info): Likewise.
13188         (tcb_verification_symbol): Likewise.
13189         (cpu_builtin_p): Likewise.
13190         (cpu_expand_builtin): New function.
13191         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
13192         (rs6000_init_builtins): Likewise.
13193         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
13194         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
13195         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
13196         * configure: Regenerate.
13197         * config.in: Likewise.
13198         * doc/extend.texi (PowerPC Built-in Functions): Document
13199         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
13201 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
13203         PR target/68609
13204         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
13205         domain check.
13206         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
13207         for V4SFmode.
13209 2016-01-20  Richard Henderson  <rth@redhat.com>
13211         PR bootstrap/69343
13212         PR bootstrap/69339
13213         PR tree-opt/68964
13214         Revert:
13215         * tree.c (tm_define_builtin): New.
13216         (find_tm_vector_type): New.
13217         (build_tm_vector_builtins): New.
13218         (build_common_builtin_nodes): Call it.
13220 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
13222         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
13223         (arm_fp_ok): Likewise.
13224         (arm_fp): Likewise.
13225         (arm_crypto): Likewise.
13227 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
13228             Richard Biener  <rguenther@suse.de>
13230         PR tree-optimization/69328
13231         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
13232         vectors have same number of elements.
13233         (vectorizable_condition): Fix masked version recognition.
13235 2016-01-20  Richard Biener  <rguenther@suse.de>
13237         PR tree-optimization/69345
13238         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
13239         (VN_INFO_PTR_INFO): Likewise.
13240         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
13241         info when it is equal between non-dominating SSA names.
13242         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13243         Make sure to look at original SSA infos.
13245 2016-01-20  Jeff Law  <law@redhat.com>
13247         PR target/25114
13248         * config/m68k/predicates.md (pow2_m1_operand): New predicate
13249         extracted from ...
13250         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
13251         (pc_or_label_operand): New predicate.
13252         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
13253         tests for small integers that are 2^n - 1.
13255 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
13257         * doc/invoke.texi (Options Summary): Add '.' after @xref.
13259 2016-01-19  Jeff Law  <law@redhat.com>
13261         PR middle-end/69347
13262         * tree-ssa-threadbackwards.c
13263         (fsm_find_control_statement_thread_paths): Do not try to lookup
13264         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
13266 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
13268         * doc/lto.texi: Remove text that says only Gold has linker plugin
13269         support.
13271 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
13273         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
13274         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
13275         the DIE accordingly.
13276         (modified_type_die): Add REVERSE parameter and pass it recursively,
13277         as well as to base_type_die.  Adjust presence check accordingly.
13278         (base_type_for_mode): Adjust call to modified_type_die.
13279         (add_type_attribute): Add REVERSE parameter and pass it to
13280         modified_type_die.
13281         (generic_parameter_die): Adjust call to add_type_attribute.
13282         (add_scalar_info): Likewise.
13283         (add_subscript_info): Likewise.
13284         (gen_array_type_die): Likewise.
13285         (gen_descr_array_type_die): Likewise.
13286         (gen_entry_point_die): Likewise.
13287         (gen_enumeration_type_die): Likewise.
13288         (gen_formal_parameter_die): Likewise.
13289         (gen_subprogram_die): Likewise.
13290         (gen_variable_die ): Likewise.
13291         (gen_const_die): Likewise.
13292         (gen_field_die): Likewise.
13293         (gen_pointer_type_die): Likewise.
13294         (gen_reference_type_die): Likewise.
13295         (gen_ptr_to_mbr_type_die): Likewise.
13296         (gen_inheritance_die): Likewise.
13297         (gen_subroutine_type_die): Likewise.
13298         (gen_typedef_die): Likewise.
13299         (force_type_die): Adjust call to modified_type_die.
13301 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
13303         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
13304         flow throughout the file.  Fix broken link to Objective-C 2.0
13305         documentation.
13306         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
13307         errors.
13309 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
13311         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
13313 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
13315         PR ipa/66223
13316         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
13317         (maybe_record_node): Record cxa_pure_virtual as the only possible
13318         target if there are not ohter candidates.
13319         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
13321 2016-01-19  Richard Biener  <rguenther@suse.de>
13323         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
13324         (get_memory_order): Likewise.
13326 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
13328         * tree-vect-stmts.c (vectorizable_store): Check
13329         rhs vectype.
13331 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
13333         PR jit/68446
13334         * gcc.c (driver::decode_argv): Add call to
13335         init_opts_obstack before init_options_struct.
13336         * opts.c (init_opts_obstack): Remove idempotency.
13337         (init_options_struct): Replace call to init_opts_obstack
13338         with a gcc_assert to verify that it has already been called.
13339         * toplev.c (toplev::main): Add call to init_opts_obstack before
13340         calls to init_options_struct.
13341         (toplev::finalize): Move cleanup of opts_obstack next to
13342         cleanup of save_decoded_options, clearing the latter, and
13343         save_decoded_options_count.
13345 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13347         PR target/69135
13348         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
13349         attribute to unconditional.  Remove %? from output template.
13351 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
13352             Jiong Wang  <jiong.wang@arm.com>
13354         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
13355         generated from different expand order.
13357 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
13359         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
13360         Add support for CCMP costing.
13362 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
13364         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
13365         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
13366         (fccmpe<mode>): Likewise.
13367         (fcmp): Rename to fcmp and globalize pattern.
13368         (fcmpe): Likewise.
13369         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
13370         (aarch64_gen_ccmp_next): Add FP support.
13372 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
13374         * target.def (gen_ccmp_first): Update documentation.
13375         (gen_ccmp_next): Likewise.
13376         * doc/tm.texi (gen_ccmp_first): Update documentation.
13377         (gen_ccmp_next): Likewise.
13378         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
13379         expand_ccmp_expr_1.  Improve comments.
13380         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
13381         (ccmp_ior<mode>): Remove pattern.
13382         (cmp<mode>): Remove expand.
13383         (cmp): Globalize pattern.
13384         (cstorecc4): Use cc_register.
13385         (mov<mode>cc): Remove ccmp_cc_register check.
13386         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
13387         Simplify after removal of CC_DNE/* modes.
13388         (aarch64_ccmp_mode_to_code): Remove.
13389         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
13390         In 'k' case use integer as condition.
13391         (aarch64_nzcv_codes): Remove inverted cases.
13392         (aarch64_code_to_ccmode): Remove.
13393         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
13394         comparison with CC register to be used in folowing CCMP/branch/CSEL.
13395         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
13396         pattern.  Return the comparison with CC register.  Invert conditions
13397         when bitcode is OR.
13398         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
13399         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
13401 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
13403         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
13404         instrumented_version.
13406 2016-01-19  Richard Biener  <rguenther@suse.de>
13408         PR tree-optimization/69336
13409         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
13410         handled components with get_ref_base_and_extent.
13411         (equal_mem_array_ref_p): Adjust.
13413 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
13415         PR debug/65779
13416         * shrink-wrap.c: Include valtrack.h.
13417         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
13418         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
13419         in between insn and where it will be moved to.  Call
13420         dead_debug_insert_temp.
13421         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
13422         first and dead_debug_local_finish at the end.
13423         For uses and defs bitmap, handle all regs in between REGNO and
13424         END_REGNO, not just the first one.
13426 2016-01-19  Richard Biener  <rguenther@suse.de>
13428         PR tree-optimization/69352
13429         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
13430         (equal_mem_array_ref_p): Constrain size and max size properly.
13431         Compare the reverse flag.
13433 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
13435         * ira.c (ira): Update regstat data if we deleted insns.
13437 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
13439         PR rtl-optimization/68955
13440         PR rtl-optimization/64557
13441         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
13442         here.  Fix up formatting.
13443         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
13445 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
13447         PR lto/69133
13448         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
13449         assume that the node has body.
13450         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
13451         check.
13453 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
13455         * lto-streamer-out.c (lto_output): Do not stream instrumentation
13456         thunks.
13458 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
13460         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
13461         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
13463 2016-01-19  Martin Jambor  <mjambor@suse.cz>
13464             Martin Liska  <mliska@suse.cz>
13465             Michael Matz  <matz@suse.de>
13467         * Makefile.in (OBJS): Add new source files.
13468         (GTFILES): Add hsa.c.
13469         * common.opt (disable_hsa): New variable.
13470         (-Whsa): New warning.
13471         * config.in (ENABLE_HSA): New.
13472         * configure.ac: Treat hsa differently from other accelerators.
13473         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
13474         $enable_offloading.
13475         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
13476         * doc/install.texi (Configuration): Document --with-hsa-runtime,
13477         --with-hsa-runtime-include, --with-hsa-runtime-lib and
13478         --with-hsa-kmt-lib.
13479         * doc/invoke.texi (-Whsa): Document.
13480         (hsa-gen-debug-stores): Likewise.
13481         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
13482         to invoke offload compiler for hsa acclerator.
13483         * opts.c (common_handle_option): Determine whether HSA offloading
13484         should be performed.
13485         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
13486         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
13487         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
13488         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
13489         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
13490         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
13491         GF_OMP_FOR_KIND_GRID_LOOP.
13492         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
13493         (pp_gimple_stmt_1): Likewise.
13494         * gimple-walk.c (walk_gimple_stmt): Likewise.
13495         * gimple.c (gimple_build_omp_grid_body): New function.
13496         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
13497         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
13498         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
13499         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
13500         GF_OMP_TEAMS_GRID_PHONY.
13501         (gimple_statement_omp_single_layout): Updated comments.
13502         (gimple_build_omp_grid_body): New function.
13503         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
13504         (gimple_omp_for_grid_phony): New function.
13505         (gimple_omp_for_set_grid_phony): Likewise.
13506         (gimple_omp_parallel_grid_phony): Likewise.
13507         (gimple_omp_parallel_set_grid_phony): Likewise.
13508         (gimple_omp_teams_grid_phony): Likewise.
13509         (gimple_omp_teams_set_grid_phony): Likewise.
13510         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
13511         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
13512         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
13513         (BUILT_IN_GOMP_TARGET): Updated type.
13514         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
13515         (adjust_for_condition): New function.
13516         (get_omp_for_step_from_incr): Likewise.
13517         (extract_omp_for_data): Moved parts to adjust_for_condition and
13518         get_omp_for_step_from_incr.
13519         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
13520         (fixup_child_record_type): Bail out if receiver_decl is NULL.
13521         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
13522         (scan_omp_parallel): Do not create child functions for phony
13523         constructs.
13524         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
13525         (scan_omp_1_op): Checking assert we are not remapping to
13526         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
13527         (parallel_needs_hsa_kernel_p): New function.
13528         (expand_parallel_call): Register apprpriate parallel child
13529         functions as HSA kernels.
13530         (grid_launch_attributes_trees): New type.
13531         (grid_attr_trees): New variable.
13532         (grid_create_kernel_launch_attr_types): New function.
13533         (grid_insert_store_range_dim): Likewise.
13534         (grid_get_kernel_launch_attributes): Likewise.
13535         (get_target_argument_identifier_1): Likewise.
13536         (get_target_argument_identifier): Likewise.
13537         (get_target_argument_value): Likewise.
13538         (push_target_argument_according_to_value): Likewise.
13539         (get_target_arguments): Likewise.
13540         (expand_omp_target): Call get_target_arguments instead of looking
13541         up for teams and thread limit.
13542         (grid_expand_omp_for_loop): New function.
13543         (grid_arg_decl_map): New type.
13544         (grid_remap_kernel_arg_accesses): New function.
13545         (grid_expand_target_kernel_body): New function.
13546         (expand_omp): Call it.
13547         (lower_omp_for): Do not emit phony constructs.
13548         (lower_omp_taskreg): Do not emit phony constructs but create for them
13549         a temporary variable receiver_decl.
13550         (lower_omp_taskreg): Do not emit phony constructs.
13551         (lower_omp_teams): Likewise.
13552         (lower_omp_grid_body): New function.
13553         (lower_omp_1): Call it.
13554         (grid_reg_assignment_to_local_var_p): New function.
13555         (grid_seq_only_contains_local_assignments): Likewise.
13556         (grid_find_single_omp_among_assignments_1): Likewise.
13557         (grid_find_single_omp_among_assignments): Likewise.
13558         (grid_find_ungridifiable_statement): Likewise.
13559         (grid_target_follows_gridifiable_pattern): Likewise.
13560         (grid_remap_prebody_decls): Likewise.
13561         (grid_copy_leading_local_assignments): Likewise.
13562         (grid_process_kernel_body_copy): Likewise.
13563         (grid_attempt_target_gridification): Likewise.
13564         (grid_gridify_all_targets_stmt): Likewise.
13565         (grid_gridify_all_targets): Likewise.
13566         (execute_lower_omp): Call grid_gridify_all_targets.
13567         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
13568         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
13569         (tree_omp_clause): Added union field dimension.
13570         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
13571         * tree.c (omp_clause_num_ops): Added number of arguments of
13572         OMP_CLAUSE__GRIDDIM_.
13573         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
13574         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
13575         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
13576         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
13577         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
13578         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
13579         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
13580         * tree-pass.h (make_pass_gen_hsail): Declare.
13581         (make_pass_ipa_hsa): Likewise.
13582         * ipa-hsa.c: New file.
13583         * lto-section-in.c (lto_section_name): Add hsa section name.
13584         * lto-streamer.h (lto_section_type): Add hsa section.
13585         * timevar.def (TV_IPA_HSA): New.
13586         * hsa-brig-format.h: New file.
13587         * hsa-brig.c: New file.
13588         * hsa-dump.c: Likewise.
13589         * hsa-gen.c: Likewise.
13590         * hsa.c: Likewise.
13591         * hsa.h: Likewise.
13592         * toplev.c (compile_file): Call hsa_output_brig.
13593         * hsa-regalloc.c: New file.
13595 2016-01-18  Jeff Law  <law@redhat.com>
13597         PR tree-optimization/69320
13598         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
13599         ranged object, do nothing if the RHS constant is not [0..1].
13600         (optimize_stmt): Comparing a boolean ranged object against a
13601         constant outside [0..1] results in a compile-time constant.
13603         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
13604         test.
13606 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
13608         * doc/invoke.texi (Invoking GCC): Add new section to menu.
13609         (Option Summary): Update to reflect new section and moved options.
13610         (C++ Dialect Options): Move -fstats to new section.
13611         (Debugging Options): Move all dump, statistics, and other GCC
13612         developer options to new section.  Rewrite section introduction
13613         and re-order remaining options to put the more basic ones first.
13614         (Optimization Options): Move -fira-verbose and -flto-report* to
13615         new section.
13616         (Developer Options): New section incorporating moved options.
13617         * doc/cppopts.texi (-dM): Update cross-reference.
13619 2016-01-18  Richard Henderson  <rth@redhat.com>
13621         PR target/69176
13622         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
13623         operands to pseudo only if CSE is expected.  Split long immediate
13624         operands only after reload, and for the stack pointer.
13625         (*add<GPI>3_pluslong): Remove.
13626         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
13627         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
13628         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
13629         (*add<GPI>3 peepholes): New.
13630         (*add<GPI>3 splitters): New.
13631         * config/aarch64/constraints.md (Upl): New.
13632         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
13634 2016-01-18  Richard Biener  <rguenther@suse.de>
13636         PR tree-optimization/69297
13637         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
13638         stmt at most once.
13639         (vect_bb_vectorization_profitable_p): Clear visited flag again.
13641 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
13643         PR middle-end/68542
13644         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
13645         of mixind vector and scalar types.
13646         (fold_relational_const): Add handling of vector
13647         comparison with boolean result.
13648         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
13649         comparison of vector operands with boolean result for EQ/NE only.
13650         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
13651         (verify_gimple_cond): Likewise.
13652         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
13653         valid type of VAL.
13655 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
13657         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
13658         !TARGET_OCTEON.
13660 2016-01-18  Richard Biener  <rguenther@suse.de>
13662         PR middle-end/69308
13663         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
13665 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13667         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
13669 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13671         * omp-low.c (set_oacc_fn_attrib): Make extern.
13672         * omp-low.h (set_oacc_fn_attrib): Declare.
13673         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
13674         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
13675         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
13676         Add and handle function parameter oacc_kernels_p.
13677         (find_reduc_addr, get_omp_data_i_param): New function.
13678         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
13679         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
13680         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
13681         Calculate dominance info.  Skip loops that are not in a kernels region
13682         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
13683         (pass_parallelize_loops::execute): Call parallelize_loops with
13684         oacc_kernels_p argument.
13685         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
13686         New member function.
13687         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
13688         * passes.def: Add argument to pass_parallelize_loops instantation.
13690 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13692         * tree-parloops.c (pass_parallelize_loops::execute): Allow
13693         pass_parallelize_loops to be run outside the loop pipeline.
13695 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
13697         * tree-scalar-evolution.c (follow_copies_to_constant): New.
13698         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
13700 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
13702         PR target/63679
13703         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
13704         using get_ref_base_and_extent.
13705         (equal_mem_array_ref_p): New.
13706         (hashable_expr_equal_p): Add call to previous.
13708 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
13710         PR target/63679
13711         * tree-sra.c (disqualified_constants, constant_decl_p): New.
13712         (sra_initialize): Allocate disqualified_constants.
13713         (sra_deinitialize): Free disqualified_constants.
13714         (disqualify_candidate): Update disqualified_constants when appropriate.
13715         (create_access): Scan for constant-pool entries as we go along.
13716         (scalarizable_type_p): Add check against type_contains_placeholder_p.
13717         (maybe_add_sra_candidate): Allow constant-pool entries.
13718         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
13719         (initialize_constant_pool_replacements): New.
13720         (sra_modify_assign): Avoid mangling assignments created by previous,
13721         and don't generate writes into constant pool.
13722         (sra_modify_function_body): Call initialize_constant_pool_replacements.
13724 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
13726         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
13727         andnot instruction.
13728         (scalar_chain::convert_op): Likewise.
13729         * config/i386/i386.md (*andndi3_doubleword): New.
13731 2016-01-18  Richard Biener  <rguenther@suse.de>
13733         PR tree-optimization/69170
13734         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
13735         building a vector from scalar results of a pattern stmt.
13737 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
13739         * haifa-sched.c (autopref_multipass_init): Work around
13740         -Wmaybe-uninitialized warning.
13742 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13744         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
13745         against the constant 0.
13747 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13749         PR tree-optimization/68799
13750         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
13751         look up phi candidates in the statement-candidate map.
13752         (phi_add_costs): Likewise.
13753         (record_phi_increments): Likewise.
13754         (phi_incr_cost): Likewise.
13755         (ncd_with_phi): Likewise.
13756         (all_phi_incrs_profitable): Likewise.
13758 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
13760         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
13761         -Wmaybe-uninitialized warning.
13763 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
13765         * doc/invoke.texi (Invoking GCC): Add new section to menu.
13766         (Option Summary): Update to reflect new section and moved options.
13767         (C++ Dialect Options): Move -fvtable-verify and related options.
13768         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
13769         and profiling-related options.
13770         (Optimization Options): Move profile generation options and
13771         -fstack-protector and related options.
13772         (Instrumentation Options): New section incorporating moved options.
13773         (Code Generation Options): Move -finstrument-functions and
13774         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
13776 2016-01-16  Tom de Vries  <tom@codesourcery.com>
13778         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
13780 2016-01-16  Tom de Vries  <tom@codesourcery.com>
13782         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
13784 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
13786         * hash-table.h (hash_table::empty): Turn into an inline wrapper
13787         that checks whether the table is already empty.  Rename the
13788         original implementation to...
13789         (hash_table::empty_slot): ...this new private function.
13791 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
13793         PR diagnostic/68899
13794         * diagnostic-show-locus.c (layout::print_source_line): Move x
13795         offset of line until after call to
13796         get_line_width_without_trailing_whitespace.
13798 2016-01-15  Jeff Law  <law@redhat.com>
13800         PR tree-optimization/69270
13801         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
13802         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
13803         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
13804         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
13805         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
13806         ssa_name_has_boolean_range and constant_boolean_node.
13808 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
13810         PR rtl-optimization/69030
13811         * lra-spills.c (remove_pseudos): Check nrefs and make the function
13812         returning bool.
13813         (spill_pseudos): Delete debug insn for dead pseudo.
13814         (lra_spill): Initiate spill_hard_reg and slots memory separately.
13816 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
13818         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
13819         New.
13820         (TYPES_UNOPUS): Likewise.
13821         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
13822         builtin type, from UNOP to UNOPUS.
13823         (lbtruncuv4sf): Likewise.
13824         (lbtruncuv2df): Likewise.
13825         (lrounduv2sf): Likewise.
13826         (lrounduv4sf): Likewise.
13827         (lrounduv2df): Likewise.
13828         (lroundusf): Likewise.
13829         (lroundusf): Likewise.
13830         (lceiluv2sf): Likewise.
13831         (lceiluv4sf): Likewise.
13832         (lceiluv2df): Likewise.
13833         (lceilusf): Likewise.
13834         (lceiludf): Likewise.
13835         (lflooruv2sf): Likewise.
13836         (lflooruv4sf): Likewise.
13837         (lflooruv2df): Likewise.
13838         (lfloorusf): Likewise.
13839         (lfloorudf): Likewise.
13840         (lfrintnuv2sf): Likewise.
13841         (lfrintnuv4sf): Likewise.
13842         (lfrintnuv2df): Likewise.
13843         (lfrintnusf): Likewise.
13844         (lfrintnudf): Likewise.
13845         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
13846         conversion.
13847         (vcvtq_u32_f32): Likewise.
13848         (vcvtq_u64_f64): Likewise.
13849         (vcvta_u32_f32): Likewise.
13850         (vcvtaq_u32_f32): Likewise.
13851         (vcvtaq_u64_f64): Likewise.
13852         (vcvtm_u32_f32): Likewise.
13853         (vcvtmq_u32_f32): Likewise.
13854         (vcvtmq_u64_f64): Likewise.
13855         (vcvtn_u32_f32): Likwise.
13856         (vcvtnq_u32_f32): Likewise.
13857         (vcvtnq_u64_f64): Likewise.
13858         (vcvtp_u32_f32): Likewise.
13859         (vcvtpq_u32_f32): Likewise.
13860         (vcvtpq_u64_f64): Likewise.
13861         (vcvtmd_u64_f64): Likewise.
13862         (vcvtms_u32_f32): Likewise.
13863         (vcvtad_u64_f64): Likewise.
13864         (vcvtas_u32_f32): Likewise.
13865         (vcvtnd_u64_f64): Likewise.
13866         (vcvtns_u32_f32): Likewise.
13867         (vcvtpd_u64_f64): Likewise.
13868         (vcvtps_u32_f32): Likewise.
13870 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13872         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
13873         CSEL of zero_extended registers.
13875 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13877         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
13878         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
13880 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13882         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
13883         false when argument string is not found in the attributes table
13884         at all.
13886 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
13888         PR target/68609
13889         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
13890         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
13891         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
13892         precision estimate.
13894 2016-01-15  Richard Biener  <rguenther@suse.de>
13896         PR tree-optimization/66856
13897         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
13898         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
13899         (vect_create_new_slp_node): Increment stmt reference count.
13900         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
13901         an SLP tree before swapping operands.
13902         (vect_build_slp_tree): Likewise.
13903         (destroy_bb_vec_info): Free stmt info after SLP instances.
13904         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
13905         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
13906         (STMT_VINFO_NUM_SLP_USES): New macro.
13908 2016-01-15  Richard Biener  <rguenther@suse.de>
13910         PR debug/69137
13911         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
13912         (add_linkage_name): ... here.
13913         (gen_typedef_die): Use add_linkage_name_raw instead of
13914         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
13915         if necessary.
13917 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
13919         * gimplify.c (oacc_default_clause): Decode reference and pointer
13920         types for both kernels and parallel regions.
13922 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
13924         PR middle-end/69246
13925         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
13927 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
13929         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
13930         (convert_scalars_to_vector): Likewise.
13932 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
13934         * doc/extend.texi (Type Traits): Fix grammar.
13936 2016-01-15  Martin Jambor  <mjambor@suse.cz>
13938         * tree-inline.c (remap_decl): Use existing dclarations if
13939         remapping a type and prevent_decl_creation_for_types.
13940         (replace_locals_stmt): Do an initial remapping of non-VLA typed
13941         decls first.  Do real remapping with
13942         prevent_decl_creation_for_types set.
13943         * tree-inline.h (copy_body_data): New field
13944         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
13945         padding.
13947 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13949         * config/s390/s390.opt (mmvcle): More verbose help text.
13951 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13953         * config/s390/s390.opt: Add period to -mzvector option text.
13955 2016-01-15  Richard Biener  <rguenther@suse.de>
13957         PR tree-optimization/68961
13958         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
13959         of invariants in stores again.
13961 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13963         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
13965 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
13967         * config/i386/i386.c (ix86_expand_branch): Don't split
13968         DI mode xor instruction to SI mode.
13970 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
13972         PR ipa/68148
13973         * ipa-icf.c (sem_function::merge): Virtual functions may become
13974         reachable even if they address is not taken and there are no
13975         idrect calls.
13977 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
13979         * lto-streamer-out.c (subtract_estimated_size): New function.
13980         (get_symbol_initial_value): Use it.
13982 2016-01-15  Christian Bruel  <christian.bruel@st.com>
13984         PR target/65837
13985         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
13986         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
13987         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
13988         use add_builtin_function_ext_scope instead of add_builtin_function.
13989         (neon_set_p, neon_crypto_set_p): Remove.
13990         (arm_init_builtins): Always call arm_init_neon_builtins and
13991         arm_init_crypto_builtins.
13992         (arm_expand_builtin): Check that builtins are allowed for the arch.
13993         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
13994         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
13995         arm_init_neon_builtins call.
13997 2016-01-15  Richard Biener  <rguenther@suse.de>
13999         PR tree-optimization/69117
14000         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
14001         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
14002         of the leader conservatively.
14003         (free_scc_vn): Restore original SSA name infos.
14005 2016-01-14  Jeff Law  <law@redhat.com>
14007         PR tree-optimization/69270
14008         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
14009         single bit of precision, verify it's also unsigned.
14010         (record_edge_info): Use constant_boolean_node rather than fold_convert
14011         to convert boolean_true/boolean_false to the right type.
14013 2016-01-14  Richard Henderson  <rth@redhat.com>
14015         PR rtl-opt/69014
14016         * loop-doloop.c (record_reg_sets): New.
14017         (doloop_optimize): Reject the transform if the sequence
14018         clobbers registers live at the end of the loop block.
14019         (doloop_optimize_loops): Enable df_live if needed.
14021 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14023         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
14024         * config/rs6000/rs6000.c: Likewise.
14025         * config/rs6000/rs6000.h: Likewise.
14026         * config/rs6000/rs6000.md: Likewise.
14027         * doc/extend.texi: Likewsie.
14029 2016-01-14  Jeff Law  <law@redhat.com>
14031         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
14032         typo.
14034 2016-01-14  Richard Henderson  <rth@redhat.com>
14036         PR c/69272
14037         PR tree-opt/68964
14038         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
14039         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
14040         instead of builtin_decl_declared_p to test for declaration.
14042 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
14044         * doc/loop.texi (Loop Analysis and Representation): Document
14045         loop_depth function.
14047 2016-01-14  Tom de Vries  <tom@codesourcery.com>
14049         PR tree-optimization/68773
14050         * omp-low.c (expand_omp_target): Don't set force_output.
14051         * varpool.c (varpool_node::get_create): Same.
14052         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
14053         offload_funcs with force_output.
14055 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
14057         PR debug/69244
14058         * lra-eliminations.c (move_plus_up): Don't change anything if either
14059         the outer or inner subreg mode is not MODE_INT.
14060         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
14061         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
14063 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
14065         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
14066         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
14067         reduc_uplus_@var{m}): Remove.
14068         * expr.c (expand_expr_real_2): Remove expansion path for
14069         reduc_[us](min|max|plus) optabs.
14070         * optabs-tree.c (scalar_reduc_to_vector): Remove.
14071         * optabs-tree.h (scalar_reduc_to_vector): Remove.
14072         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
14073         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
14074         * tree-vect-loop.c (vectorizable_reduction): Remove test for
14075         reduc_[us](min|max|plus) optabs.
14077 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
14079         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
14080         (reduc_plus_scal_v2sf): New.
14081         (reduc_smax_v2sf): Rename to...
14082         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
14083         (reduc_smin_v2sf): Rename to...
14084         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
14086 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
14088         * alias.c (compare_base_symbol_refs): New function.
14089         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
14090         it.
14092 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
14094         PR middle-end/68146
14095         PR tree-optimization/69155
14096         * tree-complex.c: Include cfganal.h.
14097         (phis_to_revisit): New variable.
14098         (extract_component): Add phiarg_p argument.  Assert that returned
14099         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
14100         (update_phi_components): Partly rewrite to use loop over real/imag
14101         components instead of code duplication.  If extract_component returns
14102         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
14103         create_tmp_reg into the PHI node instead, and mention the phi triplet
14104         in phis_to_revisit.
14105         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
14106         in phis_to_revisit at the end.
14108 2016-01-14  Richard Biener  <rguenther@suse.de>
14110         PR tree-optimization/68060
14111         * tree-vect-loop.c (vect_is_simple_reduction): Check the
14112         outer loop reduction is only used in the inner loop before
14113         detecting a double reduction.
14115 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
14117         PR target/68269
14118         * combine.c (expand_field_assignment): Punt if compute_mode is
14119         unsupported scalar mode.
14121 2016-01-14  Richard Biener  <rguenther@suse.de>
14123         PR tree-optimization/66856
14124         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
14125         SLP node only if it built successfully.
14126         (vect_analyze_slp_instance): Adjust.
14128 2016-01-14  Jeff Law  <law@redhat.com>
14130         PR tree-optimization/69270
14131         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
14132         (record_edge_info): Use it.  Convert boolean_{true,false}_node
14133         to the type of op0.
14135 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
14137         PR ipa/66487
14138         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
14139         use block_ultimate_origin
14140         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
14142 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
14144         * doc/invoke.texi (Submodel Options): Rename section to
14145         "Machine-Dependent Options" to better reflect its content.
14146         Rewrite introductory text to remove archaic CPU names.
14147         Update references.
14149 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
14151         * doc/invoke.texi (Code Gen Options): Move section up in file,
14152         before target-specific options.  Update menu and option summary
14153         to reflect the new section ordering.
14155 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
14157         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
14158         (C++ Dialect Options): Add cross-reference to -std option.
14159         * doc/standards.texi (C++ Language): Document C++14 support.
14161 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14163         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
14164         for pack/unpack functions for __ibm128.
14165         (PACK_IF): Likewise.
14166         (UNPACK_IF): Likewise.
14168         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
14169         support for __ibm128 pack/unpack functions.
14170         (rs6000_invalid_builtin): Likewise.
14171         (rs6000_init_builtins): Likewise.
14172         (rs6000_opt_masks): Likewise.
14174         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
14175         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
14176         functions
14177         (RS6000_BTM_COMMON): Likewise.
14179         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
14180         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
14181         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
14182         128-bit floating point.  Add support for the double values to be
14183         in Altivec registers for TF/IF packing and unpacking, but restrict
14184         TD packing sub-fields to be FPR registers.  Don't allow overlapped
14185         register support for packing.  Allow pack inputs to be memory
14186         locations.  Don't build generator functions for unpack<mode>_dm
14187         and unpack<mode>_nodm.
14188         (unpack<mode>_dm): Likewise.
14189         (unpack<mode>_nodm): Likewise.
14190         (pack<mode>): Likewise.
14192         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
14193         built-in functions to pack/unpack explicit __ibm128 values.
14194         (__builtin_unpack_ibm128): Likewise.
14196         * doc/extend.texi (PowerPC Built-in Functions): Document
14197         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
14199 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
14201         PR c/66208
14202         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
14203         Add new arg loc and pass it down as context.
14204         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
14205         to the location to use for the warning.
14206         (check_function_arguments): New arg loc.  All callers changed.  Pass
14207         it to check_function_nonnull.
14208         * c-common.h (check_function_arguments): Adjust declaration.
14210 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
14212         PR tree-optimization/69156
14213         * gimple.c (validate_type): Removed.
14214         (gimple_builtin_call_types_compatible_p): Use
14215         useless_type_conversion_p instead of validate_type.
14216         * value-prof.c (gimple_stringop_fixed_value): Fold
14217         icall_size to correct type.
14219 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
14221         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
14222         effects.
14224 2016-01-13  Richard Henderson  <rth@redhat.com>
14226         PR tree-opt/68964
14227         * target.def (builtin_tm_load, builtin_tm_store): Remove.
14228         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
14229         (ix86_builtin_tm_store): Remove.
14230         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
14231         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
14232         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
14233         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
14234         * doc/tm.texi: Rebuild.
14236         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
14237         (BUILT_IN_TM_MEMCPY_RTWN): New.
14238         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
14239         fallback from vector to integer helpers.
14240         (build_tm_load): Handle vector types directly, instead of
14241         via target hook.
14242         (build_tm_store): Likewise.
14243         (expand_assign_tm): Prepare for register types not handled by
14244         the above.  Copy them to memory and use memcpy.
14245         * tree.c (tm_define_builtin): New.
14246         (find_tm_vector_type): New.
14247         (build_tm_vector_builtins): New.
14248         (build_common_builtin_nodes): Call it.
14250 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
14252         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
14253         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
14255 2016-01-13  Tom de Vries  <tom@codesourcery.com>
14257         PR tree-optimization/69169
14258         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
14259         handled_struct_type param.
14260         (create_variable_info_for, intra_create_variable_infos): Call
14261         create_variable_info_for_1 with extra arg.
14263 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
14265         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
14266         and "armv8.1-a+crc" entries.
14268 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
14270         PR target/69228
14271         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
14272         Change first operand predicate from register_or_constm1_operand
14273         to register_operand.
14274         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
14275         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
14276         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
14277         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
14278         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
14279         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
14280         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
14281         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
14282         comparison with constm1_rtx from vec_prefetch_gen part.
14284 2016-01-13  Richard Biener  <rguenther@suse.de>
14286         PR tree-optimization/69013
14287         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
14288         Exchange assert for a test.
14290 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14292         PR target/69247
14293         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
14295 2016-01-13  Richard Biener  <rguenther@suse.de>
14297         PR tree-optimization/69242
14298         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
14299         assert with a check.
14301 2016-01-13  Richard Biener  <rguenther@suse.de>
14303         PR tree-optimization/69186
14304         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14305         Properly guard vect_update_misalignment_for_peel call.
14307 2016-01-12  Jeff Law  <law@redhat.com>
14309         PR tree-optimization/pr67755
14310         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
14311         "need_profile_correction".
14312         (thread_block_1): Initialize new field to false by default.  If we
14313         have multiple thread paths through a common joiner to different
14314         final targets, then set new field to true.
14315         (compute_path_counts): Only do count adjustment when it's really
14316         needed.
14318 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
14320         * doc/invoke.texi (Spec Files): Move section down in file, past
14321         all command-line option descriptions.
14323 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14325         PR middle-end/54809
14326         * doc/gty.texi: Remove documentation of mark_hook.
14327         * gengtype.c (struct write_types_data): Remove code to support
14328         mark_hook attribute.
14329         (walk_type): Likewise.
14330         (write_func_for_structure): Likewise.
14332 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
14334         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
14335         Directory Options, and -specs= to Overall Options.
14336         (Overall Options): Adjust similarly.  Reorder to group related
14337         options together.  Make -specs= cross-reference the spec file details.
14338         (Directory Options): Adjust similarly.
14340 2016-01-12  Jeff Law  <law@redhat.com>
14342         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
14344 2016-01-12  Olivier Hainque  <hainque@adacore.com>
14346         * gcc.c (spec_undefvar_allowed): New global.
14347         (process_command): Set to true when running for --version or --help,
14348         alone or together.
14349         (getenv_spec_function): When the variable is not defined, use the
14350         variable name as the variable value if we're allowed not to issue
14351         a fatal error.
14353 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
14355         PR tree-optimization/68911
14356         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
14357         information computed for expression "init + nit * step".
14359 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
14361         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
14362         about name of GCC executable.  Remove deleted node from menu.
14363         (Directory Options) <-B>: Remove cross-reference to deleted node.
14364         (Target Options): Delete section.
14366 2016-01-12  Christian Bruel  <christian.bruel@st.com>
14368         PR target/69180
14369         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
14370         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
14372 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
14374         PR target/69198
14375         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
14376         aligned_mem is properly set for AVX512-VL floating point masked
14377         stores.
14379         PR target/69175
14380         * ifcvt.c (cond_exec_process_if_block): When removing the last
14381         insn from then_bb, remove also any possible barriers that follow it.
14383 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
14385         PR target/68456
14386         PR target/69226
14387         * config/i386/iamcu.h (SIZE_TYPE): New macro.
14388         (PTRDIFF_TYPE): Likewise.
14389         (WCHAR_TYPE): Likewise.
14390         (WCHAR_TYPE_SIZE): Likewise.
14391         (STDINT_LONG32): Likewise.
14393 2016-01-12  Richard Biener  <rguenther@suse.de>
14395         PR tree-optimization/69053
14396         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
14397         convert initial value for cond reductions.
14399 2016-01-12  Richard Biener  <rguenther@suse.de>
14401         PR tree-optimization/69007
14402         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
14403         widen_sum after dot_prod and sad.
14405 2016-01-12  Richard Biener  <rguenther@suse.de>
14407         PR tree-optimization/69168
14408         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
14409         pattern stmt SLP type.
14410         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
14411         end up unused so cope with that case.
14413 2016-01-12  Richard Biener  <rguenther@suse.de>
14415         PR tree-optimization/69157
14416         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
14417         stmts def type only during analyze phase.
14418         (vectorizable_call): Likewise.
14419         (vectorizable_simd_clone_call): Likewise.
14420         (vectorizable_conversion): Likewise.
14421         (vectorizable_assignment): Likewise.
14422         (vectorizable_shift): Likewise.
14423         (vectorizable_operation): Likewise.
14424         (vectorizable_store): Likewise.
14425         (vectorizable_load): Likewise.
14427 2016-01-12  Richard Biener  <rguenther@suse.de>
14429         PR tree-optimization/69174
14430         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
14431         space.
14432         (vectorizable_load): Properly compute the number of loads needed
14433         for permuted strided SLP loads and do not spuriously assign
14434         to SLP_TREE_VEC_STMTS.
14436 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
14438         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
14439         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
14440         (MD_EXEC_PREFIX): Remove.
14441         (MD_STARTFILE_PREFIX) Removee.
14442         (FILE_NAME_ABSOLUTE_P): Remove.
14443         (CPP_SPEC): Do not read macros from sys/version.h.
14444         (LINK_COMMAND_SPEC): Remove.
14445         (LOCAL_INCLUDE_DIR): Remove.
14446         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
14447         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
14448         (POST_LINK_SPEC): Define to invoke stubify after linker
14449         (LIBSTDCXX): Remove define
14450         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
14451         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
14452         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
14453         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
14454         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
14455         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
14456         (i386_djgpp_asm_named_section): Add propotype of new procedure
14458         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
14459         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
14460         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
14461         in config/i386/djgpp.h).
14462         (STANDARD_STARTFILE_PREFIX_2): Define identical to
14463         STANDARD_STARTFILE_PREFIX_1.
14464         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
14465         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
14466         installation errors.
14467         (MAX_OFILE_ALIGNMENT): Define to 128.
14468         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
14470         * config/i386/djgpp.c: New file. Add implementation of
14471         i386_djgpp_asm_named_section.
14473         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
14475         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
14476         Add rule for building djgpp.o.
14478 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14480         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
14481         (rtx_is_swappable_p): Reductions are swappable.
14482         (insn_is_swappable_p): V2DF reductions are swappable.
14484 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
14486         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
14487         reloads for other unsupported memory operands.
14489 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
14490             Jim Wilson  <jim.wilson@linaro.org>
14492         PR target/69194
14493         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
14494         copy_to_mode_reg instead of force_reg.
14496 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14498         PR target/69225
14499         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
14500         TARGET_80387 is true.
14502 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
14504         PR target/69071
14505         * lra-eliminations.c (move_plus_up): Only move plus up
14506         if subreg of the constant can be simplified into constant
14507         and use the simplified subreg of the constant instead of
14508         the original constant.
14510         * fold-const.c (fold_convertible_p): Don't return true
14511         for conversion of VECTOR_TYPE to same sized integral type.
14512         (fold_convert_loc): Fix up formatting.  Fold conversion of
14513         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
14514         instead of NOP_EXPR.
14516         PR tree-optimization/69214
14517         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
14518         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
14519         Formatting fix.
14521         PR tree-optimization/69207
14522         * tree-vect-slp.c (vect_get_constant_vectors): For
14523         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
14524         fold_convertible_p to vector_type's element type, and always
14525         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
14527 2016-01-11  Richard Biener  <rguenther@suse.de>
14529         PR tree-optimization/69173
14530         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
14531         fixup the cycle if all stmts are in a pattern.
14533 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
14535         PR middle-end/68999
14536         * alias.c (base_alias_check): Move check for addresses with
14537         alignment ANDs before the call for compare_base_decls.
14538         (memrefs_conflict_p): Return -1 for different decls
14539         that went through alignment adjustments.
14541 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14543         PR rtl-optimization/68796
14544         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
14545         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
14546         and QImode comparisons against zero with CC_NZmode.
14547         * config/aarch64/iterators.md (short_mask): New mode_attr.
14549 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
14551         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
14552         (<avx512>_store<mode>_mask): Likewise.
14554 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
14555             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14557         PR rtl-optimization/68841
14558         * ifcvt.c (struct noce_if_info): Add orig_x field.
14559         (bbs_ok_for_cmove_arith): Add to_rename parameter.
14560         Don't record conflicts on to_rename if it's present.
14561         Allow memory destinations in sets.
14562         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
14563         blocks, passing orig_x to the checks.
14564         (noce_process_if_block): Set if_info->orig_x appropriately.
14566 2016-01-11  Tom de Vries  <tom@codesourcery.com>
14568         PR tree-optimization/69069
14569         * tree-parloops.c (create_parallel_loop): Add missing phi args.
14571 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
14573         PR rtl-optimization/68920
14574         * config/i386/i386.c (ix86_option_override_internal): Restrict number
14575         of conditional moves for  RTL if-conversion to 1 for
14576         TARGET_ONE_IF_CONV_INSN.
14577         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
14578         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
14579         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
14580         parameter to restirct number of conditional moves for
14581         RTL if-conversion.
14582         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
14583         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
14584         conditionl moves.
14586 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
14588         PR bootstrap/69123
14589         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
14590         onepart vars.  Fix typo in comment.  Fix reversed condition in
14591         unshare test.
14592         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
14594         PR bootstrap/69123
14595         * var-tracking.c (dump_onepart_variable_differences): New.
14596         (dataflow_set_different): If a detailed dump is requested,
14597         delay early returns and dump differences between onepart
14598         variables present before and after, and added variables.
14600 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
14602         PR target/69010
14603         * expr.c (expand_expr_real_1): For boolean vector constants
14604         with a scalar mode use const_scalar_mask_from_tree.
14605         (const_scalar_mask_from_tree): New.
14606         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
14607         assigned to a mask type to handle constants.
14609 2016-01-11  Martin Jambor  <mjambor@suse.cz>
14611         PR ipa/69044
14612         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
14613         useless parameters if we cannot change function signature.
14615 2016-01-11  Martin Jambor  <mjambor@suse.cz>
14617         PR ipa/66616
14618         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
14619         flag.
14621 2016-01-11  Tom de Vries  <tom@codesourcery.com>
14623         PR tree-optimization/69109
14624         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
14625         latch with phi.
14627 2016-01-11  Tom de Vries  <tom@codesourcery.com>
14629         PR tree-optimization/69108
14630         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
14631         res is not used in a phi.
14633 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
14635         PR 67425
14636         * common.opt (frandom-seed): Fix parameter name.
14637         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
14639 2016-01-11  Tom de Vries  <tom@codesourcery.com>
14641         PR tree-optimization/69058
14642         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
14643         not supported.
14645 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
14647         * config/arc/arc.opt (mdiv-rem): Add period to the end.
14648         (mcode-density): Likewise.
14650 2016-01-10  Tom de Vries  <tom@codesourcery.com>
14652         PR tree-optimization/69062
14653         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
14654         (parallelize_loops): Don't paralelize loop that has phi with address
14655         arg.
14657 2016-01-10  Tom de Vries  <tom@codesourcery.com>
14659         PR tree-optimization/69039
14660         * tree-parloops.c (try_create_reduction_list): Only allow single exit
14661         phi for reduction.
14663 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
14665         PR middle-end/68743
14666         * match.pd: Require target has function_c99_misc before doing
14667         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
14669 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
14671         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
14672         use GMPINC.
14673         * configure: Regenerate.
14675 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
14677         PR middle-end/50865
14678         PR tree-optimization/69097
14679         * fold-const.h (expr_not_equal_to): New prototype.
14680         * fold-const.c: Include stringpool.h and tree-ssanames.h.
14681         (expr_not_equal_to): New function.
14682         * match.pd (X % -Y is the same as X % Y): Don't optimize
14683         unless X is known not to be equal to minimum or Y is known
14684         not to be equal to -1.
14685         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
14686         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
14687         (simplify_stmt_using_ranges): Adjust caller.
14688         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
14689         substitute_and_fold.
14691 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
14693         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
14694         w/o DECL_NAME.
14696 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
14698         PR tree-optimization/69167
14699         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
14700         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
14701         ops[0] comparison.
14702         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
14704 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
14705             Richard Biener  <rguenther@suse.de>
14707         PR tree-optimization/68707
14708         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
14709         instances that can be handled via vect_load_lanes.
14711 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
14713         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
14714         if we can't determine address equivalence.
14715         * alias.c (compare_base_decl): Update for changed return value of
14716         symtab_node::equal_address_to.
14718 2016-01-08  Jason Merrill  <jason@redhat.com>
14720         PR c++/68983
14721         PR c++/67557
14722         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
14723         * expr.c (store_field): Not here.
14724         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
14725         call with TREE_ADDRESSABLE type.
14726         * tree-cfg.c (verify_gimple_call): Adjust.
14728 2016-01-08  Olivier Hainque  <hainque@adacore.com>
14730         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
14731         libc_internal.
14733 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
14735         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
14736         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
14737         (reduc_smin_v2sf): Rename to...
14738         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
14739         (reduc_splus_v2sf): Rename to...
14740         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
14742 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
14744         PR tree-optimization/69162
14745         * gimplify.c (gimplify_va_arg_expr): Encode original type of
14746         valist argument in another argument.
14747         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
14748         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
14749         to determine the va_list type, build a MEM_REF instead of
14750         build_fold_indirect_ref.
14752         PR tree-optimization/69172
14753         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
14754         gimple_build.
14756 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14758         PR tree-optimization/67781
14759         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
14760         and cmpnop in two steps: first the ones not accessed in original
14761         gimple expression in a endian independent way and then the ones not
14762         accessed in the final result in an endian-specific way.
14764 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
14766         PR tree-optimization/69083
14767         * tree-vect-slp.c (vect_get_constant_vectors): For
14768         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
14769         element type.  If op is fold_convertible_p to vector_type's element
14770         type, use NOP_EXPR instead of VCE.
14772 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
14774         PR rtl-optimization/67778
14775         PR rtl-optimization/68634
14776         PR rtl-optimization/68909
14777         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
14778         block from the stack until done with it.  Remove a superfluous
14779         bitmap set.  Remove a superfluous bitmap test.
14781 2016-01-07  Martin Sebor  <msebor@redhat.com>
14783         PR c/68966
14784         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
14785         constraint on the type of arguments.
14787 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
14789         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
14790         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
14791         unaligned_access on the gcc_options set.
14792         * config/arm/arm.c (arm_option_override_internal): Use
14793         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
14795 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
14797         PR target/69140
14798         * config/i386/i386.c (ix86_frame_pointer_required): Enable
14799         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
14801 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
14803         Revert
14804         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
14806         PR target/69140
14807         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
14808         depending on frame_pointer_needed before remaining integer and SSE
14809         registers are saved.
14811 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
14813         PR 1078
14814         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
14816 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14818         PR target/69171
14819         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
14820         Use the "xBm" constraint.
14821         (float<sseintvecmodelower><mode>2<mask_name><round_name):
14822         Likewise.
14823         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
14824         (sse_cvtsi2ssq<round_name>): Likewise.
14825         (sse_cvtss2si<round_name>): Likewise.
14826         (sse_cvtss2siq<round_name>): Likewise.
14827         (sse2_cvtsi2sdq<round_name>): Likewise.
14828         (sse2_cvtsd2si<round_name>): Likewise.
14829         (sse2_cvtsd2siq<round_name>): Likewise.
14830         * config/i386/subst.md (round_nimm_scalar_predicate): New
14831         predicate.
14833 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
14835         PR middle-end/67639
14836         * varasm.c (make_decl_rtl): Mark invalid register vars as
14837         DECL_EXTERNAL.
14839         PR rtl-optimization/66206
14840         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
14841         All callers changed.
14843 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
14845         PR tree-optimization/69141
14846         * tree-ssa-pre.c: Include langhooks.h.
14847         (eliminate_dom_walker::before_dom_children): Use
14848         lang_hooks.decl_printable_name instead of
14849         cgraph_node::get ()->name ().
14851         PR middle-end/68960
14852         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
14853         it and DECL_ALIGN too.
14855 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
14857         * config/mips/mips-ftypes.def: Sort to lexicographical order.
14859 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
14861         PR target/69140
14862         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
14863         depending on frame_pointer_needed before remaining integer and SSE
14864         registers are saved.
14866 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14868         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
14869         mode iterator with VSX_M2.
14870         (*p9_vecstore_<mode>): Likewise.
14871         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
14872         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
14873         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
14874         (define_split for VSX_LE128 stores): Likewise.
14875         (define_peephole2 for TImode LE swaps): Likewise.
14876         (define_split for VSX_LE128 post-reload stores): Likewise.
14878 2016-01-06  Marek Polacek  <polacek@redhat.com>
14880         PR sanitizer/69099
14881         * convert.c (convert_to_integer_1): Adjust call to
14882         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
14883         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
14884         EXPR instead of ARG.
14885         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
14887 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
14889         PR 1078
14890         * doc/extend.texi (RL78 Variable Attributes): New section.
14892 2016-01-05  Marek Polacek  <polacek@redhat.com>
14894         PR c/69104
14895         * builtins.c (get_memmodel): Use expansion point location rather than
14896         the input location.  Call warning_at rather than warning.
14897         (expand_builtin_atomic_compare_exchange): Likewise.
14898         (expand_builtin_atomic_load): Likewise.
14899         (expand_builtin_atomic_store): Likewise.
14900         (expand_builtin_atomic_clear): Likewise.
14902 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
14904         PR target/68991
14905         * config/i386/i386.c (ix86_expand_vector_logical_operator):
14906         Replace nonimmediate_operand with vector_operand.
14907         * config/i386/predicates.md (vector_operand): New predicate.
14908         (general_vector_operand): Replace nonimmediate_operand with
14909         vector_operand.
14910         * config/i386/sse.md: Replace nonimmediate_operand with
14911         vector_operand and m constraint with Bm constraint on SSE
14912         patterns with 16-byte memory operand.
14913         * config/i386/subst.md (round_nimm_predicate): Replace
14914         nonimmediate_operand with vector_operand.
14915         (round_saeonly_nimm_predicate): Likewise.
14916         (round_saeonly_nimm_scalar_predicate): New.
14918 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
14920         PR target/68991
14921         * config/i386/constraints.md (Bm): New constraint.
14922         * config/i386/predicates.md (vector_memory_operand): New
14923         predicate.
14924         * config/i386/sse.md: Replace xm with xBm in plusminus and
14925         any_logic patterns.
14927 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
14929         PR 1078
14930         * doc/extend.texi (V850 Function Attributes): New section.
14931         (V850 Variable Attributes): New section.
14933 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
14935         PR 1078
14936         * doc/extend.texi (MicroBlaze Function Attributes): Document
14937         interrupt_handler and fast_interrupt attributes.
14939 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
14941         PR other/60465
14942         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
14943         for local symbolic operands.
14944         * config/ia64/predicates.md (local_symbolic_operand64): New
14945         predicate.
14947 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14949         PR rtl-optimization/68651
14950         * combine.c (combine_simplify_rtx): Canonicalize x + x into
14951         x << 1.
14953 2016-01-05  Nathan Sidwell  <nathan@acm.org>
14955         * alias.c (compare_base_decls): Use symtab_node::get.
14957 2016-01-05  Nick Clifton  <nickc@redhat.com>
14959         PR target/68770
14960         * ira-costs.c (copy_cost): Initialise the t_icode field of the
14961         secondary_reload_info structure.
14963         PR target/66655
14964         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
14965         decls if weak support is available.
14967 2016-01-04  Martin Sebor  <msebor@redhat.com>
14969         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
14971 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
14973         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
14974         OPTION_MASK_P9_DFORM.
14976         * config/rs6000/constraints.md (wo constraint): New constraint for
14977         ISA 3.0 (power9).
14979         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
14980         for wo constraint.
14981         (rs6000_init_hard_regno_mode_ok): Likewise.
14983         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
14984         wo constraint.
14986         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
14987         expanders not to have constraints.  Add support for ISA 3.0 xxperm
14988         instruction.  Add support for fusing xxlor with xxperm.
14989         (altivec_vperm_<mode>_internal): Likewise.
14990         (altivec_vperm_v8hiv16qi): Likewise.
14991         (altivec_vperm_<mode>v16q): Likewise.
14992         (altivec_vperm_<mode>_uns): Likewise.
14993         (vperm_v8hiv4si): Likewise.
14994         (vperm_v16qiv8hi): Likewise.
14996         * doc/md.texi (RS/6000 constraints): Document wo constraint.
14998 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
15000         Update copyright years.
15002         * gcc.c (process_command): Update copyright notice dates.
15003         * gcov-dump.c (print_version): Ditto.
15004         * gcov.c (print_version): Ditto.
15005         * gcov-tool.c (print_version): Ditto.
15006         * gengtype.c (create_file): Ditto.
15007         * doc/cpp.texi: Bump @copying's copyright year.
15008         * doc/cppinternals.texi: Ditto.
15009         * doc/gcc.texi: Ditto.
15010         * doc/gccint.texi: Ditto.
15011         * doc/gcov.texi: Ditto.
15012         * doc/install.texi: Ditto.
15013         * doc/invoke.texi: Ditto.
15015 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15017         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
15018         modes larger than TImode as TImode if NEON is not enabled.
15020 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15022         PR target/69100
15023         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
15024         mode for %f0-%f31 only if TARGET_FPU.
15026 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15028         PR target/69072
15029         * config/sparc/sparc.c (scan_record_type): Take into account subfields
15030         to compute the PACKED_P predicate.
15031         (function_arg_record_value): Minor tweaks.
15033 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15035         * doc/install.texi (--with-multilib-list): Describe the meaning of the
15036         option for arm*-*-* targets.
15038 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
15040         * doc/extend.texi (Common Function Attributes): Move docs for
15041         MSP430-specific attributes to....
15042         (MSP430 Function Attributes): ...here.  Delete the redundant
15043         entries and copy-edit the remaining text.
15044         (MSP430 Variable Attributes): Use uniform format for index
15045         entries and add a cross-reference to the corresponding function
15046         attribute docs.
15048 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
15050         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
15051         -finite-math typo.
15052         (x86 Options): Likewise.
15054 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
15056         PR 1078
15058         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
15059         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
15060         to corresponding attribute.
15062 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
15064         * doc/extend.texi (Common Function Attributes) <noplt>: Move
15065         to correct alphabetization of table.  Copy-edit and correct
15066         markup.
15067         <stack_protect>: Likewise.
15068         <target_clones>: Likewise.
15069         <simd>: Likewise.
15070         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
15071         Correct punctuation.
15072         (Code Gen Options) <-fno-plt>: Copy-edit.
15074 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15076         PR target/68917
15077         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
15078         SI values.  Explicitly convert SI to DI and vice-versa.
15080 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
15082         PR tree-optimization/69070
15083         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
15084         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
15086         PR sanitizer/69055
15087         * ubsan.c (ubsan_instrument_float_cast): Call
15088         initialize_sanitizer_builtins.
15090         PR target/69015
15091         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
15093 Copyright (C) 2016 Free Software Foundation, Inc.
15095 Copying and distribution of this file, with or without modification,
15096 are permitted in any medium without royalty provided the copyright
15097 notice and this notice are preserved.